* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-night: #080B1A;
    --bg-deep: #0E1330;
    --bg-surface: #151B3D;
    --bg-surface-high: #1E2652;
    --stroke: #2C3770;
    --color-orange: #FF6A3D;
    --color-pink: #FF3D7F;
    --color-yellow: #FFC93C;
    --color-cyan: #2EE6D6;
    --color-green: #3BE38B;
    --color-red: #FF4D6D;
    --color-violet: #8B5CFF;
    --color-text: #F4F6FF;
    --color-muted: #8D96C4;
}

body {
    background: #03050C;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
    position: relative;
}

/* BASE APP & MOBILE FRAME */
.app-frame, .mobile-frame {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-night) 100%);
    border: 2px solid var(--stroke);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(46, 230, 214, 0.12);
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.3s ease, min-height 0.3s ease;
}

.status-bar {
    height: 38px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-muted);
}
.notch {
    width: 120px;
    height: 18px;
    background: #050712;
    border-radius: 0 0 14px 14px;
}

/* SCREENS */
.screen {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.screen.active {
    display: flex;
}

/* HEADERS */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.brand h1 {
    font-size: 30px;
    font-weight: 900;
    font-style: italic;
    color: var(--color-orange);
    letter-spacing: -0.5px;
    line-height: 1;
}
.brand .sub {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-cyan);
    letter-spacing: 2px;
}
.badge-btn {
    background: var(--bg-surface-high);
    border: 1px solid var(--stroke);
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* PROFILE CARD */
.profile-card {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 16px;
}
.profile-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.avatar-box {
    width: 42px;
    height: 42px;
    background: var(--color-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}
.profile-meta {
    flex: 1;
}
.profile-meta h3 {
    font-size: 17px;
    font-weight: 900;
}
.profile-meta p {
    font-size: 12px;
    color: var(--color-muted);
}
.best-record {
    text-align: right;
}
.best-record span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--color-muted);
}
.best-record strong {
    font-size: 16px;
    color: var(--color-yellow);
    font-weight: 900;
}
.xp-bar-bg {
    height: 6px;
    background: var(--bg-deep);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}
.xp-bar-fill {
    height: 100%;
    background: var(--color-orange);
    transition: width 0.5s ease;
}
.car-preview-row {
    background: var(--bg-deep);
    border-radius: 12px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.car-info {
    text-align: right;
}
.car-info span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--color-yellow);
}
.car-info small {
    color: var(--color-muted);
    font-size: 11px;
}

/* SECTION TITLE */
.section-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-muted);
    letter-spacing: 1.5px;
    margin: 10px 0 6px;
}

/* DIFFICULTY */
.diff-picker {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}
.diff-btn {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    color: var(--color-muted);
    padding: 8px 4px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
}
.diff-btn.active {
    background: var(--color-orange);
    color: #fff;
    border-color: var(--color-orange);
}

/* BUTTONS */
.btn-primary {
    width: 100%;
    height: 56px;
    background: linear-gradient(90deg, #FF6A3D 0%, #FF3D7F 100%);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 106, 61, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: transform 0.1s;
}
.btn-primary:active {
    transform: scale(0.98);
}
.btn-secondary {
    width: 100%;
    height: 48px;
    background: var(--bg-surface-high);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    color: var(--color-cyan);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
}
.btn-outline {
    width: 100%;
    height: 48px;
    background: transparent;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.bottom-nav {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.nav-btn {
    flex: 1;
    height: 46px;
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

/* RACE SCREEN */
#screen-race {
    padding: 8px 12px;
}
.race-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    margin-bottom: 6px;
}
.hud-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wpm-display span {
    display: block;
    font-size: 16px;
    font-weight: 900;
    font-style: italic;
    color: var(--color-orange);
}
.wpm-display small {
    font-size: 11px;
    color: var(--color-muted);
}
.rank-badge {
    background: var(--color-green);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    padding: 4px 14px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(59, 227, 139, 0.4);
}
.hud-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 15px;
}
.pause-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-surface-high);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

/* TRACK */
.track-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--stroke);
}
#track-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.countdown-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 26, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}
.countdown-overlay.hidden {
    display: none;
}
.traffic-lights {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.light {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.light.red.active { background: var(--color-red); box-shadow: 0 0 15px var(--color-red); }
.light.yellow.active { background: var(--color-yellow); box-shadow: 0 0 15px var(--color-yellow); }
.light.green.active { background: var(--color-green); box-shadow: 0 0 15px var(--color-green); }
.countdown-num {
    font-size: 42px;
    font-weight: 900;
    font-style: italic;
    color: var(--color-yellow);
}

/* TYPING */
.typing-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.typo-alert {
    background: rgba(46, 125, 50, 0.95);
    border: 2px solid #66BB6A;
    border-radius: 18px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    animation: bounce 0.3s;
}
.typo-alert.hidden {
    display: none;
}
.alert-icon {
    background: var(--color-red);
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}
.typing-box {
    background: #171C38;
    border: 2px solid var(--stroke);
    border-radius: 14px;
    padding: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    line-height: 24px;
    min-height: 90px;
    cursor: text;
}
.typing-box.has-error {
    border-color: var(--color-red);
}
.text-done {
    color: #6C7A9C;
}
.text-error {
    background: var(--color-red);
    color: #fff;
    font-weight: 900;
}
.text-current {
    background: #134E5E;
    color: var(--color-cyan);
    font-weight: 800;
    border-bottom: 2px solid var(--color-cyan);
}
.text-remaining {
    color: #ECEFF8;
}
.touch-keys {
    display: flex;
    gap: 8px;
}
.touch-key {
    height: 44px;
    border-radius: 10px;
    border: none;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}
.touch-key.backspace {
    background: var(--color-red);
    color: #fff;
    padding: 0 14px;
}
.touch-key.space {
    flex: 1;
    background: var(--bg-surface-high);
    color: var(--color-cyan);
}
.touch-key.focus {
    width: 44px;
    background: var(--bg-surface-high);
    color: #fff;
    font-size: 18px;
}
#hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* RESULTS */
#screen-results h1 {
    font-size: 34px;
    font-weight: 900;
    font-style: italic;
    color: var(--color-yellow);
    text-align: center;
    margin-top: 8px;
}
#res-subtitle {
    text-align: center;
    color: var(--color-muted);
    font-size: 14px;
    margin-bottom: 16px;
}
.stats-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.stat-card {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 10px;
    text-align: center;
}
.stat-card small {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--color-muted);
}
.stat-card strong {
    font-size: 18px;
    font-weight: 900;
}
.accent-orange { color: var(--color-orange); }
.accent-cyan { color: var(--color-cyan); }
.accent-green { color: var(--color-green); }
.accent-yellow { color: var(--color-yellow); }

.xp-card {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
}
.xp-card-header {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 6px;
}
.standings-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}
.standing-row {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.standing-row.is-player {
    background: var(--bg-surface-high);
    border-color: var(--color-green);
}
.standing-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    background: var(--bg-deep);
    margin-right: 8px;
}
.standing-rank.gold { background: #FFD45C; color: #000; }
.standing-rank.silver { background: #CBD5E1; color: #000; }
.standing-rank.bronze { background: #E29A5B; color: #000; }
.bot-tag {
    background: rgba(255, 201, 60, 0.2);
    color: var(--color-yellow);
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}
.results-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

/* GARAGE */
.screen-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.icon-back {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.garage-preview-card {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    margin-bottom: 12px;
}
.garage-preview-card h3 {
    margin-top: 8px;
    color: var(--color-yellow);
    font-weight: 900;
}
.garage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.car-card {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
}
.car-card.selected {
    border: 2px solid var(--color-orange);
    background: var(--bg-surface-high);
}
.car-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

/* STATS */
.stats-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px;
}
.hidden { display: none !important; }
.modal.hidden { display: none !important; }
.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 24px;
    width: 85%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@keyframes bounce {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ONLINE BUTTON & MULTIPLAYER */
.btn-online {
    background: linear-gradient(135deg, #00F0FF, #00A3FF);
    color: #060919;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.35);
    transition: transform 0.1s, filter 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-online:active { transform: scale(0.98); }

.online-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
.btn-online-action {
    background: var(--color-cyan);
    color: #060919;
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}
.join-room-row {
    display: flex;
    gap: 8px;
    width: 100%;
}
.join-room-row input {
    flex: 1;
    background: var(--bg-deep);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
}
.join-room-row button {
    padding: 10px 18px;
    font-size: 13px;
}

.room-code-badge {
    background: var(--bg-surface);
    border: 2px solid var(--color-cyan);
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    text-align: center;
}
.room-code-badge h1 {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--color-cyan);
    margin: 4px 0;
}

.lobby-players-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.lobby-player-row {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lobby-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lobby-player-num {
    width: 24px;
    height: 24px;
    background: var(--color-cyan);
    color: #060919;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.guest-msg {
    margin-top: 16px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13px;
}
.error-card {
    background: rgba(255, 75, 75, 0.2);
    border: 1px solid var(--color-red);
    color: var(--color-red);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
    width: 100%;
    margin-bottom: 12px;
}

/* WIKIPEDIA TOPIC BADGE */
.wiki-badge {
    background: rgba(18, 25, 44, 0.85);
    border: 1px solid rgba(255, 201, 60, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--color-yellow);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
}
.wiki-badge strong {
    color: #fff;
}
.wiki-badge span {
    color: var(--color-yellow);
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--stroke);
    border-top-color: var(--color-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-top: 20px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    body {
        padding: 0;
        align-items: stretch;
    }
    .mobile-frame {
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border: none;
        border-radius: 0;
    }
}

/* ============================================================ */
/* COIN BADGES & PROFILE STATS ROW                              */
/* ============================================================ */
.coin-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 201, 60, 0.15), rgba(255, 106, 61, 0.1));
    border: 1px solid rgba(255, 201, 60, 0.4);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-yellow);
}
.coin-icon {
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(255, 201, 60, 0.6));
}
.coin-add-btn {
    background: var(--color-yellow);
    color: #111;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.15s ease;
}
.coin-add-btn:active {
    transform: scale(0.9);
}

.profile-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 10px 0;
    gap: 8px;
}
.trophy-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(46, 230, 214, 0.08);
    border: 1px solid rgba(46, 230, 214, 0.3);
    padding: 5px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
}
.trophy-pill strong {
    color: var(--color-yellow);
    font-weight: 900;
}
.country-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--stroke);
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.league-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.league-bronze { background: rgba(205, 127, 50, 0.3); color: #E5A663; border: 1px solid #CD7F32; }
.league-silver { background: rgba(192, 192, 192, 0.3); color: #E0E0E0; border: 1px solid #C0C0C0; }
.league-gold { background: rgba(255, 215, 0, 0.3); color: #FFD700; border: 1px solid #FFD700; }
.league-plat { background: rgba(46, 230, 214, 0.3); color: #2EE6D6; border: 1px solid #2EE6D6; }
.league-diamond { background: rgba(181, 123, 255, 0.3); color: #C9A0FF; border: 1px solid #B57BFF; }
.league-master { background: linear-gradient(135deg, #FF3D6E, #FF6A3D); color: #FFF; }

.bottom-nav .accent-nav {
    border-color: rgba(46, 230, 214, 0.5);
    color: var(--color-cyan);
}
.bottom-nav .gold-nav {
    border-color: rgba(255, 201, 60, 0.5);
    color: var(--color-yellow);
}

/* RESULTS REWARD ROW */
.rewards-row {
    display: flex;
    gap: 10px;
    margin: 12px 0;
}
.reward-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 900;
}
.coins-pill {
    background: rgba(255, 201, 60, 0.12);
    border: 1px solid rgba(255, 201, 60, 0.4);
    color: var(--color-yellow);
}
.trophies-pill {
    background: rgba(46, 230, 214, 0.12);
    border: 1px solid rgba(46, 230, 214, 0.4);
    color: var(--color-cyan);
}

/* ============================================================ */
/* LEADERBOARD & PODIUM STYLES                                  */
/* ============================================================ */
.lb-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.lb-tab-btn {
    flex: 1;
    padding: 10px 4px;
    border: 1px solid var(--stroke);
    background: var(--bg-surface);
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.lb-tab-btn.active {
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 106, 61, 0.35);
}

.lb-country-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 10px;
    scrollbar-width: none;
}
.lb-country-bar::-webkit-scrollbar { display: none; }
.country-chip {
    flex-shrink: 0;
    padding: 6px 12px;
    background: var(--bg-surface-high);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    color: var(--color-text);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.country-chip.active {
    background: var(--color-cyan);
    color: #080B1A;
    border-color: var(--color-cyan);
    font-weight: 900;
}

/* 3D PODIUM */
.podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding: 18px 8px 10px 8px;
    margin-bottom: 14px;
    background: radial-gradient(circle at 50% 20%, rgba(255, 201, 60, 0.12) 0%, transparent 70%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.podium-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}
.podium-crown {
    font-size: 20px;
    margin-bottom: -4px;
    animation: bounceCrown 1.8s infinite ease-in-out;
}
@keyframes bounceCrown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.podium-avatar-wrapper {
    position: relative;
    margin-bottom: 4px;
}
.podium-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface-high);
    border: 2px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    color: #fff;
}
.gold-avatar {
    width: 52px;
    height: 52px;
    border-color: #FFD700;
    background: linear-gradient(135deg, #FF6A3D, #FFD23C);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}
.podium-medal {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 14px;
}
.podium-name {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text);
    max-width: 90px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.gold-name {
    color: #FFD700;
    font-size: 12px;
}
.podium-trophies {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-muted);
    margin-bottom: 6px;
}
.gold-trophies {
    color: #FFE082;
    font-weight: 800;
}
.podium-pillar {
    width: 100%;
    border-radius: 10px 10px 4px 4px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
.pillar-rank {
    font-size: 18px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.7);
}
.pillar-gold {
    height: 80px;
    background: linear-gradient(180deg, #FFD700 0%, #B8860B 100%);
    border: 1px solid #FFE57F;
}
.pillar-silver {
    height: 55px;
    background: linear-gradient(180deg, #D9E2EC 0%, #627D98 100%);
    border: 1px solid #F0F4F8;
}
.pillar-bronze {
    height: 40px;
    background: linear-gradient(180deg, #E5A663 0%, #8C4B1E 100%);
    border: 1px solid #F6C898;
}

/* LEAGUE PROGRESS CARD */
.league-card {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.league-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.league-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.league-icon {
    font-size: 24px;
}
.league-info strong {
    font-size: 14px;
    display: block;
}
.league-info small {
    font-size: 11px;
    color: var(--color-muted);
}
.league-badge-pill {
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--color-cyan);
}
.league-bar-bg {
    height: 6px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}
.league-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-yellow));
    border-radius: 4px;
    transition: width 0.4s ease;
}
.league-next-info {
    font-size: 10px;
    color: var(--color-muted);
    text-align: right;
}

/* LEADERBOARD LIST */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 60px;
}
.lb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    padding: 8px 12px;
    border-radius: 14px;
    transition: transform 0.15s ease;
}
.lb-row.me {
    border-color: var(--color-cyan);
    background: rgba(46, 230, 214, 0.08);
    box-shadow: 0 0 12px rgba(46, 230, 214, 0.2);
}
.lb-rank-num {
    font-size: 13px;
    font-weight: 900;
    width: 24px;
    text-align: center;
    color: var(--color-muted);
}
.lb-rank-num.top-1 { color: #FFD700; font-size: 16px; }
.lb-rank-num.top-2 { color: #E0E0E0; font-size: 15px; }
.lb-rank-num.top-3 { color: #CD7F32; font-size: 15px; }
.lb-avatar-box {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-surface-high);
    border: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}
.lb-user-details {
    flex: 1;
    overflow: hidden;
}
.lb-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lb-username {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-flag {
    font-size: 12px;
}
.lb-sub-info {
    font-size: 10px;
    color: var(--color-muted);
}
.lb-stats-box {
    text-align: right;
    flex-shrink: 0;
}
.lb-trophies-val {
    font-size: 13px;
    font-weight: 900;
    color: var(--color-yellow);
    display: block;
}
.lb-wpm-val {
    font-size: 10px;
    color: var(--color-muted);
}

/* STICKY MY RANK CARD */
.my-rank-sticky {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    background: linear-gradient(135deg, #1A2147, #232B5C);
    border: 2px solid var(--color-cyan);
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -8px 20px rgba(0,0,0,0.6);
    z-index: 10;
}
.my-rank-badge {
    width: 32px;
    height: 32px;
    background: var(--color-cyan);
    color: #080B1A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
}
.my-rank-info {
    flex: 1;
}
.my-rank-info strong {
    font-size: 13px;
    display: block;
}
.my-rank-info small {
    font-size: 11px;
    color: var(--color-muted);
}
.my-rank-score {
    font-size: 15px;
    font-weight: 900;
    color: var(--color-yellow);
}

/* ============================================================ */
/* SHOP SCREEN STYLES                                           */
/* ============================================================ */
.shop-balance-card {
    background: linear-gradient(135deg, rgba(255, 201, 60, 0.15), rgba(255, 106, 61, 0.15));
    border: 1px solid rgba(255, 201, 60, 0.4);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.shop-balance-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.shop-coin-big {
    font-size: 36px;
    filter: drop-shadow(0 0 10px rgba(255, 201, 60, 0.6));
}
.shop-balance-left small {
    font-size: 10px;
    color: var(--color-muted);
    font-weight: 800;
    letter-spacing: 0.5px;
}
.shop-balance-left h2 {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-yellow);
}
.btn-micro {
    background: var(--bg-surface-high);
    border: 1px solid var(--stroke);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.shop-packs-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
}
.shop-pack-card {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.shop-pack-card.featured {
    border-color: rgba(255, 106, 61, 0.6);
    background: linear-gradient(180deg, rgba(255, 106, 61, 0.1) 0%, var(--bg-surface) 100%);
    box-shadow: 0 4px 20px rgba(255, 106, 61, 0.2);
}
.pack-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 9px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-muted);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.pack-badge.popular {
    background: var(--color-orange);
    color: #fff;
}
.pack-badge.bonus {
    background: var(--color-green);
    color: #052615;
}
.pack-badge.super {
    background: var(--color-yellow);
    color: #2b1f03;
}
.pack-badge.vip {
    background: linear-gradient(135deg, #B57BFF, #FF3D7F);
    color: #fff;
}
.pack-coins-visual {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-yellow);
}
.pack-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}
.pack-desc {
    font-size: 11px;
    color: var(--color-muted);
    line-height: 1.4;
    margin-bottom: 6px;
}
.btn-buy-pack {
    background: var(--bg-surface-high);
    border: 1px solid var(--color-yellow);
    color: var(--color-yellow);
    font-size: 14px;
    font-weight: 900;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    align-self: flex-start;
    min-width: 110px;
}
.btn-buy-pack:active {
    transform: scale(0.96);
}
.btn-buy-pack.btn-featured {
    background: linear-gradient(135deg, var(--color-orange), var(--color-yellow));
    color: #080B1A;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 106, 61, 0.4);
}

/* GOOGLE PLAY MODAL */
.play-store-card {
    background: #202124 !important;
    border-radius: 24px 24px 0 0 !important;
    border: 1px solid #3c4043 !important;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px !important;
    animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.play-store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.play-logo {
    font-size: 13px;
    font-weight: 700;
    color: #9aa0a6;
    letter-spacing: 0.5px;
}
.play-close {
    background: none;
    border: none;
    color: #9aa0a6;
    font-size: 18px;
    cursor: pointer;
}
.play-product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #3c4043;
    border-bottom: 1px solid #3c4043;
    margin-bottom: 14px;
}
.play-app-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    background: #303134;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-product-row h4 {
    font-size: 14px;
    color: #e8eaed;
}
.play-product-row small {
    font-size: 11px;
    color: #9aa0a6;
}
.play-price-tag {
    margin-left: auto;
    font-size: 16px;
    color: #8ab4f8;
}
.play-payment-method {
    background: #303134;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #e8eaed;
    margin-bottom: 16px;
}
.play-payment-method small {
    color: #81c995;
    font-weight: 700;
}
.btn-play-confirm {
    width: 100%;
    background: #8ab4f8;
    color: #202124;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 0.5px;
}
.btn-play-confirm:active {
    background: #aecbfa;
}
.play-disclaimer {
    font-size: 10px;
    color: #80868b;
    text-align: center;
    margin-top: 10px;
}

/* ============================================================ */
/* GARAGE IMPROVEMENTS                                          */
/* ============================================================ */
.garage-coin-badge {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 201, 60, 0.15);
    border: 1px solid rgba(255, 201, 60, 0.4);
    padding: 4px 8px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 800;
    color: var(--color-yellow);
}
.status-equipped {
    font-size: 10px;
    font-weight: 900;
    background: var(--color-green);
    color: #052615;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 4px;
}
.car-card-price-tag {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 900;
    color: var(--color-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}


/* ============================================================ */
/* DESKTOP WEBSITE & CROSS-PLATFORM PC PORTAL STYLES (v3.0)     */
/* ============================================================ */

/* SITE HEADER NAVBAR */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 11, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(44, 55, 112, 0.6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}
.brand-logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 10px rgba(255, 106, 61, 0.6));
    animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.brand-titles {
    display: flex;
    flex-direction: column;
}
.brand-name {
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.5px;
    color: #fff;
    line-height: 1;
}
.brand-name .accent-orange {
    color: var(--color-orange);
    text-shadow: 0 0 14px rgba(255, 106, 61, 0.6);
}
.brand-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--color-cyan);
    margin-top: 3px;
}

/* DESKTOP NAV LINKS */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.desktop-nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.nav-link {
    background: transparent;
    border: none;
    color: var(--color-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.nav-link.active {
    color: var(--color-cyan);
    background: rgba(46, 230, 214, 0.12);
    border: 1px solid rgba(46, 230, 214, 0.35);
    box-shadow: 0 0 12px rgba(46, 230, 214, 0.2);
}
.nav-icon {
    font-size: 14px;
}
.badge-count {
    background: var(--color-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 10px;
}

/* HEADER ACTIONS & CONTROLS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.server-status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(59, 227, 139, 0.12);
    border: 1px solid rgba(59, 227, 139, 0.3);
    color: var(--color-green);
}
.server-status-pill.offline {
    background: rgba(255, 77, 109, 0.12);
    border-color: rgba(255, 77, 109, 0.3);
    color: var(--color-red);
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.header-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
}
.mini-add-btn {
    background: var(--color-green);
    color: #000;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}
.audio-control-group, .view-switcher-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
.icon-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.icon-toggle-btn:hover {
    border-color: var(--color-cyan);
    background: var(--bg-surface-high);
}
.view-switch-btn {
    background: linear-gradient(135deg, rgba(46, 230, 214, 0.15), rgba(139, 92, 255, 0.15));
    border: 1px solid rgba(46, 230, 214, 0.4);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.view-switch-btn:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 12px rgba(46, 230, 214, 0.3);
}

.lang-switch-btn {
    background: linear-gradient(135deg, rgba(255, 106, 61, 0.15), rgba(255, 201, 60, 0.15));
    border: 1px solid rgba(255, 106, 61, 0.45);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.lang-switch-btn:hover {
    border-color: var(--color-orange);
    box-shadow: 0 0 12px rgba(255, 106, 61, 0.4);
    transform: scale(1.04);
}

.btn-login-header {
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    border: none;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 900;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 106, 61, 0.4);
    transition: all 0.2s;
}
.btn-login-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 106, 61, 0.6);
}
.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
}
.avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}
.user-meta {
    display: flex;
    flex-direction: column;
}
.user-meta span {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
}
.provider-tag {
    font-size: 8px;
    font-weight: 800;
    color: var(--color-cyan);
    letter-spacing: 0.5px;
}

/* ============================================================ */
/* SITE MAIN & RESPONSIVE APP-FRAME                             */
/* ============================================================ */
.site-main {
    flex: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px 20px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.game-portal {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* PC WIDESCREEN MODE (DEFAULT) */
body.mode-pc .app-frame {
    width: 100%;
    max-width: 1400px;
    min-height: 820px;
    height: auto;
    max-height: none;
    border-radius: 24px;
    border: 2px solid var(--stroke);
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-night) 100%);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(46, 230, 214, 0.12);
}
body.mode-pc #mobile-status-bar {
    display: none !important;
}

/* MOBILE SIMULATOR MODE */
body.mode-mobile .app-frame {
    width: 100%;
    max-width: 440px;
    height: 900px;
    max-height: 94vh;
    border-radius: 40px;
    border: 3px solid var(--stroke);
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-night) 100%);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(46, 230, 214, 0.15);
    margin: 16px auto;
}
body.mode-mobile #mobile-status-bar {
    display: flex !important;
}

/* ============================================================ */
/* HOME SCREEN ENHANCEMENTS (PC WIDESCREEN HERO)                 */
/* ============================================================ */
.home-hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(21, 27, 61, 0.8), rgba(14, 19, 48, 0.9));
    border: 1px solid rgba(44, 55, 112, 0.7);
    border-radius: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.home-hero-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 106, 61, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.hero-left {
    flex: 1.2;
}
.hero-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-cyan);
    margin-bottom: 8px;
}
.hero-title {
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #FFFFFF, #FFE0D1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-muted);
    margin-bottom: 20px;
    max-width: 600px;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-hero-primary {
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    border: none;
    color: #fff;
    padding: 14px 24px;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(255, 106, 61, 0.4);
    transition: all 0.25s ease;
}
.btn-hero-primary span { font-size: 16px; font-weight: 900; }
.btn-hero-primary small { font-size: 11px; opacity: 0.85; font-weight: 600; }
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 106, 61, 0.6);
}

.btn-hero-online {
    background: linear-gradient(135deg, #12284C, #183C66);
    border: 1.5px solid var(--color-cyan);
    color: #fff;
    padding: 14px 24px;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(46, 230, 214, 0.2);
    transition: all 0.25s ease;
}
.btn-hero-online span { font-size: 16px; font-weight: 900; color: var(--color-cyan); }
.btn-hero-online small { font-size: 11px; opacity: 0.85; font-weight: 600; }
.btn-hero-online:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(46, 230, 214, 0.4);
}

.btn-hero-secondary {
    background: var(--bg-surface-high);
    border: 1px solid var(--stroke);
    color: #fff;
    padding: 14px 20px;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.25s;
}
.btn-hero-secondary span { font-size: 15px; font-weight: 800; }
.btn-hero-secondary small { font-size: 11px; color: var(--color-muted); }
.btn-hero-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--color-muted);
}

/* CAR SHOWCASE 3D STAGE */
.hero-right {
    flex: 0.9;
    display: flex;
    justify-content: center;
}
.car-stage-card {
    position: relative;
    background: radial-gradient(circle at center, rgba(30, 38, 82, 0.9) 0%, rgba(14, 19, 48, 0.9) 100%);
    border: 1.5px solid rgba(46, 230, 214, 0.35);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}
.car-stage-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--color-cyan);
    box-shadow: 0 20px 50px rgba(46, 230, 214, 0.25);
}
.stage-glow {
    position: absolute;
    bottom: 50px;
    width: 220px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(46, 230, 214, 0.4) 0%, transparent 70%);
    filter: blur(10px);
}
.stage-info {
    margin-top: 10px;
    text-align: center;
}
.car-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.car-title-row h3 {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
}
.car-level-badge {
    font-size: 9px;
    font-weight: 900;
    background: var(--color-orange);
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
}
.stage-info p {
    font-size: 11px;
    color: var(--color-cyan);
    font-weight: 700;
    margin-top: 4px;
}

/* HOME DASHBOARD 3-COLUMN GRID */
.home-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.dash-card {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}
.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.dash-card-header h3 {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--color-muted);
}
.country-chip-badge {
    background: var(--bg-surface-high);
    border: 1px solid var(--stroke);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}
.xp-bar-container {
    margin: 12px 0;
}
.xp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-muted);
    font-weight: 700;
    margin-bottom: 4px;
}
.profile-auth-prompt {
    margin-top: 14px;
    padding: 8px 12px;
    background: rgba(255, 201, 60, 0.08);
    border: 1px dashed rgba(255, 201, 60, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-yellow);
}
.btn-micro-link {
    background: none;
    border: none;
    color: var(--color-cyan);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
}

/* DIFFICULTY PICKER GRID */
.diff-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.diff-picker-grid .diff-btn {
    padding: 12px 8px;
    border-radius: 12px;
    background: var(--bg-surface-high);
    border: 1px solid var(--stroke);
    color: var(--color-muted);
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.diff-picker-grid .diff-btn strong { display: block; font-size: 13px; font-weight: 900; }
.diff-picker-grid .diff-btn small { font-size: 10px; opacity: 0.8; }
.diff-picker-grid .diff-btn.active {
    background: rgba(46, 230, 214, 0.15);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: 0 0 14px rgba(46, 230, 214, 0.2);
}

.custom-room-shortcut-box {
    margin-top: auto;
    padding: 14px;
    background: linear-gradient(135deg, rgba(30, 38, 82, 0.6), rgba(21, 27, 61, 0.8));
    border: 1px solid var(--stroke);
    border-radius: 14px;
}
.shortcut-text h4 { font-size: 13px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.shortcut-text p { font-size: 11px; color: var(--color-muted); margin-bottom: 10px; line-height: 1.4; }
.btn-accent-glow {
    width: 100%;
    background: linear-gradient(135deg, var(--color-cyan), #0099FF);
    border: none;
    color: #03050C;
    padding: 10px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(46, 230, 214, 0.3);
    transition: all 0.2s;
}
.btn-accent-glow:hover {
    box-shadow: 0 6px 20px rgba(46, 230, 214, 0.5);
}

/* CHAMPIONS LIST PREVIEW */
.top-champions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.champ-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--bg-surface-high);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.champ-row.gold { border-color: rgba(255, 201, 60, 0.4); background: rgba(255, 201, 60, 0.08); }
.champ-row.silver { border-color: rgba(180, 190, 210, 0.3); }
.champ-row.bronze { border-color: rgba(205, 127, 50, 0.3); }
.champ-name { font-size: 12px; font-weight: 800; color: #fff; flex: 1; }
.champ-score { font-size: 12px; font-weight: 900; color: var(--color-yellow); }

.my-current-standing-box {
    margin-top: auto;
    padding: 10px 14px;
    background: rgba(46, 230, 214, 0.08);
    border: 1px solid rgba(46, 230, 214, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.my-rank-left small { font-size: 9px; font-weight: 800; color: var(--color-muted); display: block; }
.my-rank-left strong { font-size: 18px; font-weight: 900; color: var(--color-yellow); }
.my-rank-right span { font-size: 14px; font-weight: 900; color: var(--color-cyan); display: block; text-align: right; }
.my-rank-right small { font-size: 11px; color: var(--color-muted); display: block; text-align: right; }

/* ============================================================ */
/* RACE SCREEN WIDESCREEN ENHANCEMENTS                          */
/* ============================================================ */
body.mode-pc .track-container {
    height: 380px !important;
    border-radius: 20px;
}
.race-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--stroke);
    margin-bottom: 12px;
}
.hud-center {
    display: flex;
    align-items: center;
    gap: 14px;
}
.race-streak-pill {
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 106, 61, 0.15);
    border: 1px solid rgba(255, 106, 61, 0.4);
    font-size: 12px;
    color: var(--color-orange);
}
.timer-box {
    text-align: right;
    margin-right: 10px;
}
.timer-box span {
    font-size: 20px;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    display: block;
    line-height: 1;
}
.timer-box small { font-size: 9px; font-weight: 800; color: var(--color-muted); }

/* WIDE TYPING CONTAINER */
.typing-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.track-theme-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-cyan);
    padding: 4px 10px;
    background: rgba(46, 230, 214, 0.1);
    border: 1px solid rgba(46, 230, 214, 0.25);
    border-radius: 8px;
}
body.mode-pc .typing-box {
    font-size: 22px !important;
    line-height: 1.8 !important;
    min-height: 120px !important;
    padding: 18px 24px !important;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
}
.keyboard-helper-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.pc-tips {
    font-size: 11px;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tip-key {
    background: var(--bg-surface-high);
    border: 1px solid var(--stroke);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 10px;
}

/* ============================================================ */
/* CUSTOM ROOMS SCREEN                                          */
/* ============================================================ */
.custom-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 14px;
}
.custom-card {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 22px;
}
.custom-card h3 {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
}
.custom-card p {
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: 18px;
}
.form-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.form-group label {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-muted);
    letter-spacing: 0.5px;
}
.form-group input, .form-group select {
    background: var(--bg-surface-high);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(46, 230, 214, 0.25);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.full-width {
    width: 100%;
}
.join-code-box {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.join-code-box input {
    flex: 1;
    background: var(--bg-surface-high);
    border: 1.5px solid var(--stroke);
    border-radius: 12px;
    padding: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}
.join-code-box input:focus {
    border-color: var(--color-cyan);
}
.quick-match-box {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.quick-match-box h4 {
    font-size: 13px;
    font-weight: 900;
    color: var(--color-cyan);
    margin-bottom: 4px;
}

/* ============================================================ */
/* FRIENDS SCREEN STYLES                                        */
/* ============================================================ */
.friends-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.friends-search-bar input {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
}
.friends-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.friend-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 12px 16px;
}
.friend-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.friend-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}
.friend-info strong { font-size: 14px; color: #fff; display: block; }
.friend-info small { font-size: 11px; color: var(--color-muted); }
.status-pill {
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 8px;
}
.status-pill.online { background: rgba(59, 227, 139, 0.15); color: var(--color-green); }
.status-pill.racing { background: rgba(255, 106, 61, 0.15); color: var(--color-orange); }
.status-pill.offline { background: rgba(255, 255, 255, 0.08); color: var(--color-muted); }

/* ============================================================ */
/* DOWNLOADS SCREEN                                             */
/* ============================================================ */
.downloads-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 16px;
}
.download-card {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.os-icon { font-size: 48px; margin-bottom: 12px; }
.download-card h3 { font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.download-card p { font-size: 12px; color: var(--color-muted); line-height: 1.5; margin-bottom: 16px; }
.features-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--color-cyan);
    font-weight: 700;
}
.btn-download-apk {
    background: linear-gradient(135deg, #3BE38B, #0DAA54);
    color: #03050C;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 900;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(59, 227, 139, 0.3);
}
.btn-download-ios {
    background: linear-gradient(135deg, #0099FF, #6A4BC4);
    border: none;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 900;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 153, 255, 0.3);
}

/* ============================================================ */
/* RULES & KEYBOARD SHORTCUTS SCREEN                            */
/* ============================================================ */
.rules-card {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 24px;
}
.rules-card h3 {
    font-size: 15px;
    font-weight: 900;
    color: var(--color-yellow);
    margin: 16px 0 6px 0;
}
.rules-card h3:first-child { margin-top: 0; }
.rules-card p {
    font-size: 13px;
    color: #CAD0EC;
    line-height: 1.6;
}
.shortcuts-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.shortcut-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-surface-high);
    padding: 8px 12px;
    border-radius: 8px;
}
.shortcut-row kbd {
    background: #000;
    border: 1px solid var(--stroke);
    color: var(--color-cyan);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
}
.shortcut-row span {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

/* ============================================================ */
/* AUTHENTICATION MODAL (GOOGLE, FACEBOOK, INVITÉ)               */
/* ============================================================ */
.auth-card {
    max-width: 440px;
    padding: 28px;
    text-align: center;
}
.auth-header {
    position: relative;
    margin-bottom: 24px;
}
.auth-header h2 {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}
.auth-header p {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 4px;
}
.modal-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: 20px;
    cursor: pointer;
}
.auth-options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-oauth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}
.oauth-icon {
    width: 20px;
    height: 20px;
}
.btn-google {
    background: #FFFFFF;
    color: #3c4043;
    border: 1px solid #dadce0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.btn-facebook {
    background: #1877F2;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(24, 119, 242, 0.3);
}
.btn-facebook:hover {
    background: #166fe5;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.5);
}

.auth-divider {
    position: relative;
    margin: 8px 0;
    text-align: center;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--stroke);
}
.auth-divider span {
    position: relative;
    background: var(--bg-surface);
    padding: 0 10px;
    font-size: 11px;
    color: var(--color-muted);
    font-weight: 700;
}

.guest-auth-box {
    background: var(--bg-surface-high);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 14px;
    text-align: left;
}
.guest-auth-box label {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-cyan);
    display: block;
    margin-bottom: 6px;
}
.guest-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}
.guest-input-row input {
    flex: 1;
    background: var(--bg-night);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding: 10px 12px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
}
.guest-auth-box small {
    font-size: 10px;
    color: var(--color-muted);
    line-height: 1.3;
    display: block;
}

/* ============================================================ */
/* RESULT CARD IMAGE SHARE MODAL                                */
/* ============================================================ */
.share-card-preview-modal {
    max-width: 640px;
}
.share-canvas-wrapper {
    margin: 14px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}
.share-canvas-wrapper canvas {
    width: 100%;
    height: auto;
    display: block;
}
.btn-share-glow {
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    border: none;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 106, 61, 0.4);
}

/* ============================================================ */
/* RESPONSIVE DESIGN ADJUSTMENTS                                */
/* ============================================================ */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    .home-hero-banner {
        flex-direction: column;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-desc {
        margin: 0 auto 20px auto;
    }
}


/* ============================================================ */
/* HERO DIFFICULTY SELECTOR                                      */
/* ============================================================ */
.hero-diff-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}
.hero-diff-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-muted);
    letter-spacing: 1px;
}
.hero-diff-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.hero-diff-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--stroke);
    color: var(--color-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hero-diff-btn:hover {
    color: #fff;
    border-color: var(--color-cyan);
    background: rgba(46, 230, 214, 0.1);
}
.hero-diff-btn.active {
    background: linear-gradient(135deg, rgba(255, 106, 61, 0.25), rgba(255, 61, 127, 0.25));
    border-color: var(--color-orange);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 106, 61, 0.4);
}

/* PROFILE HEADER ACTIONS & EDIT BUTTON */
.profile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-edit-profile {
    background: var(--bg-surface-high);
    border: 1px solid var(--stroke);
    color: var(--color-cyan);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-edit-profile:hover {
    border-color: var(--color-cyan);
    background: rgba(46, 230, 214, 0.15);
    color: #fff;
}

/* ============================================================ */
/* ANDROID-MATCHED GARAGE SHOWROOM & ATELIER                     */
/* ============================================================ */
.garage-showroom-container {
    display: flex;
    align-items: center;
    gap: 28px;
    background: radial-gradient(circle at top left, rgba(30, 38, 82, 0.85) 0%, rgba(14, 19, 48, 0.95) 100%);
    border: 1.5px solid rgba(46, 230, 214, 0.4);
    border-radius: 24px;
    padding: 24px 28px;
    margin-bottom: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(46, 230, 214, 0.1);
    position: relative;
    overflow: hidden;
}
.garage-showroom-container::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 250px;
    height: 150px;
    background: radial-gradient(ellipse, rgba(46, 230, 214, 0.2) 0%, transparent 70%);
    pointer-events: none;
}
.showroom-left {
    flex: 1.1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.showroom-canvas-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.showroom-glow {
    position: absolute;
    bottom: 10px;
    width: 260px;
    height: 35px;
    background: radial-gradient(ellipse, rgba(46, 230, 214, 0.45) 0%, transparent 70%);
    filter: blur(12px);
    pointer-events: none;
}
#garage-car-canvas {
    display: block;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8));
    animation: showroomFloat 4s ease-in-out infinite;
}
@keyframes showroomFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.showroom-right {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.showroom-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}
.category-badge {
    background: rgba(46, 230, 214, 0.15);
    border: 1px solid rgba(46, 230, 214, 0.4);
    color: var(--color-cyan);
    font-size: 11px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}
.level-required-badge {
    background: rgba(255, 106, 61, 0.15);
    border: 1px solid rgba(255, 106, 61, 0.4);
    color: var(--color-orange);
    font-size: 11px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 8px;
}
.showroom-car-meta h2 {
    font-size: 26px;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.showroom-car-meta p {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.4;
    margin-top: 4px;
}
.garage-specs-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(8, 11, 26, 0.6);
    border: 1px solid rgba(44, 55, 112, 0.5);
    border-radius: 14px;
    padding: 12px 16px;
}
.spec-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.spec-label {
    width: 130px;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-muted);
    flex-shrink: 0;
}
.spec-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}
.spec-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease;
}
.speed-fill { background: linear-gradient(90deg, #FF6A3D, #FF3D7F); }
.accel-fill { background: linear-gradient(90deg, #FFC93C, #FF6A3D); }
.drift-fill { background: linear-gradient(90deg, #2EE6D6, #8B5CFF); }
.spec-val {
    width: 38px;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}
.showroom-action-row {
    margin-top: 4px;
}
.btn-equip-car {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 900;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 106, 61, 0.4);
    transition: all 0.2s;
}
.btn-equip-car.equipped {
    background: rgba(59, 227, 139, 0.2);
    border: 1.5px solid var(--color-green);
    color: var(--color-green);
    box-shadow: none;
    cursor: default;
}
.btn-equip-car.buy-mode {
    background: linear-gradient(135deg, #EAB308, #CA8A04);
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.4);
}

/* CUSTOMISATION SECTION (PEINTURE & PACKS) */
.garage-custom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 18px 22px;
    margin-bottom: 22px;
}
.custom-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.custom-group-header h4 {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #fff;
}
.custom-hint {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-cyan);
}
.color-palette-scroll {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}
.color-palette-scroll::-webkit-scrollbar { display: none; }
.color-chip-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.2s;
    position: relative;
}
.color-chip-btn:hover {
    transform: scale(1.1);
}
.color-chip-btn.selected {
    border-color: #fff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.8);
}
.color-chip-btn.locked::after {
    content: '🔒';
    font-size: 11px;
}
.color-chip-btn.orig {
    background: var(--bg-surface-high);
    border: 1.5px solid var(--stroke);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.accessory-chips-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.acc-chip-btn {
    background: var(--bg-surface-high);
    border: 1px solid var(--stroke);
    color: var(--color-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.acc-chip-btn:hover {
    border-color: var(--color-cyan);
    color: #fff;
}
.acc-chip-btn.selected {
    background: linear-gradient(135deg, rgba(255, 106, 61, 0.2), rgba(255, 61, 127, 0.2));
    border-color: var(--color-orange);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 106, 61, 0.35);
}

/* GARAGE CATEGORY BAR */
.garage-category-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 18px;
    scrollbar-width: none;
}
.garage-category-bar::-webkit-scrollbar { display: none; }
.garage-cat-btn {
    background: var(--bg-surface);
    border: 1px solid var(--stroke);
    color: var(--color-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 16px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.garage-cat-btn:hover {
    color: #fff;
    border-color: var(--color-cyan);
}
.garage-cat-btn.active {
    background: var(--color-orange);
    color: #fff;
    border-color: var(--color-orange);
    box-shadow: 0 4px 16px rgba(255, 106, 61, 0.4);
}

/* GARAGE VEHICLES GRID */
.garage-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.garage-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--stroke);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.garage-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-cyan);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
.garage-card.equipped {
    border-color: var(--color-green);
    background: rgba(59, 227, 139, 0.05);
    box-shadow: 0 0 20px rgba(59, 227, 139, 0.2);
}
.garage-card.locked {
    opacity: 0.75;
}
.garage-card-canvas-wrap {
    width: 100%;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 8px;
}
.garage-card-price-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 201, 60, 0.4);
    color: var(--color-yellow);
    font-size: 11px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 6px;
}
.garage-card-title {
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2px;
}
.garage-card-cat {
    font-size: 10px;
    font-weight: 800;
    color: var(--color-cyan);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.garage-card-btn {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 900;
    border: none;
    cursor: pointer;
    margin-top: 4px;
}
.garage-card-btn.btn-equipped {
    background: rgba(59, 227, 139, 0.15);
    color: var(--color-green);
    border: 1px solid rgba(59, 227, 139, 0.4);
}
.garage-card-btn.btn-select {
    background: var(--bg-surface-high);
    color: #fff;
    border: 1px solid var(--stroke);
}
.garage-card-btn.btn-buy {
    background: linear-gradient(135deg, #EAB308, #CA8A04);
    color: #000;
}

/* ============================================================ */
/* PROFILE EDIT MODAL                                            */
/* ============================================================ */
.profile-edit-card {
    max-width: 480px;
    text-align: left;
}
.edit-profile-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.avatar-picker-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.avatar-pick-chip {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-surface-high);
    border: 2px solid var(--stroke);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.avatar-pick-chip:hover {
    border-color: var(--color-cyan);
    transform: scale(1.1);
}
.avatar-pick-chip.selected {
    background: var(--color-orange);
    border-color: #fff;
    box-shadow: 0 0 14px rgba(255, 106, 61, 0.6);
}

/* ============================================================ */
/* FLOATING TOAST NOTIFICATIONS (ESPORT ALERT BANNER)          */
/* ============================================================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 440px;
}
.toast-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(14, 18, 36, 0.96);
    border: 1px solid rgba(255, 106, 61, 0.5);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 18px rgba(255, 106, 61, 0.25);
    border-radius: 14px;
    padding: 14px 20px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    pointer-events: auto;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}
.toast-banner.success {
    border-color: rgba(32, 227, 178, 0.7);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(32, 227, 178, 0.3);
}
.toast-banner.error {
    border-color: rgba(255, 77, 77, 0.7);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 77, 77, 0.3);
}
.toast-banner.info {
    border-color: rgba(77, 166, 255, 0.7);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(77, 166, 255, 0.3);
}
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* -------------------------------------------------------------
 * SITE FOOTER STYLES
 * ----------------------------------------------------------- */
.site-footer {
    background: #090c1a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 36px 20px 48px;
    margin-top: 50px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.footer-brand-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin: 8px 0;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.footer-link:hover {
    color: var(--color-orange);
    background: rgba(255, 255, 255, 0.04);
}

.footer-privacy-badge {
    color: var(--color-cyan) !important;
    font-weight: 700;
    background: rgba(46, 230, 214, 0.08);
    border: 1px solid rgba(46, 230, 214, 0.25);
    border-radius: 20px;
    padding: 4px 14px;
}

.footer-privacy-badge:hover {
    background: rgba(46, 230, 214, 0.16);
    border-color: var(--color-cyan);
    transform: translateY(-1px);
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 6px;
}

/* ============================================================ */
/* ACCESSIBILITY & KEYBOARD NAVIGATION (A11Y-001)               */
/* ============================================================ */
:focus-visible {
    outline: 2.5px solid var(--primary-orange, #FF6A3D) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 12px rgba(255, 106, 61, 0.45) !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
.nav-link:focus-visible,
.hero-diff-btn:focus-visible,
.diff-btn:focus-visible,
.country-chip:focus-visible {
    outline: 2.5px solid var(--primary-orange, #FF6A3D) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 14px rgba(255, 106, 61, 0.5) !important;
}



