/* ========================================
   FH TOOLS — FORZA HORIZON PROFESSIONAL REDESIGN
   Inspired by nintendo project editorial style
   Colors: FH6 purples, magentas, electric blue, warm white
   ======================================== */

/* --- TOKENS --- */
:root {
    /* ── Dynamic header heights (updated by JS ResizeObserver) ── */
    --navbar-h:   58px;
    --search-h:   58px;
    --filter-h:   78px;
    /* Derived stacks */
    --stack-nav-search:        calc(var(--navbar-h) + var(--search-h));
    --stack-nav-search-filter: calc(var(--navbar-h) + var(--search-h) + var(--filter-h));
    --fh-purple:     #6b21d9;
    --fh-magenta:    #d4006c;
    --fh-electric:   #00c8ff;
    --fh-warm:       #ff6b35;
    --fh-yellow:     #f7c948;
    --fh-dark:       #08060f;
    --fh-dark-2:     #100d1c;
    --fh-dark-3:     #1a1530;
    --fh-surface:    #13102080;
    --fh-border:     rgba(255,255,255,0.07);
    --white:         #ffffff;
    --text-muted:    rgba(255,255,255,0.42);
    --text-dim:      rgba(255,255,255,0.65);

    /* accent shorthand */
    --accent:        var(--fh-magenta);
    --accent-glow:   rgba(212,0,108,0.35);
    --card-bg:       #0e0c1a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; scroll-behavior: smooth; }

/* Ocultar la barra de desplazamiento visualmente, manteniendo la funcionalidad de scroll */
::-webkit-scrollbar {
    display: none; /* Ocultar en navegadores webkit (Chrome, Safari, Edge) */
}

body {
    font-family: 'Barlow', system-ui, sans-serif;
    background: var(--fh-dark);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -ms-overflow-style: none; /* Ocultar en IE y Edge antiguo */
    scrollbar-width: none;    /* Ocultar en Firefox */
}

/* subtle grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
}

.accent { color: var(--fh-magenta); }
.hidden { display: none !important; }

/* ========================================
   NAVBAR — slim dark strip with purple accent line
   ======================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    height: 58px;
    background: rgba(8, 6, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--fh-border);
    /* top accent line */
    box-shadow: 0 -2px 0 0 var(--fh-purple) inset, 0 1px 0 0 rgba(107,33,217,0.25);
}


.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}
.nav-left:hover { opacity: 0.75; }

.nav-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(107,33,217,0.7));
}

.nav-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--white);
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
}
.nav-brand .accent { color: var(--fh-magenta); }

/* Center nav links */
.nav-center {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: none;
    border: none;
}

.nav-center a {
    position: relative;
    color: var(--text-dim);
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 0 20px;
    height: 58px;
    line-height: 58px;
    cursor: pointer;
    transition: color 0.2s;
    text-transform: uppercase;
    user-select: none;
}
.nav-center a:hover { color: var(--white); }

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20px; right: 20px;
    height: 2px;
    background: var(--fh-magenta);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 2px 2px 0 0;
}
.nav-center a:hover::after { transform: scaleX(1); }

@media (max-width: 768px) {
    .nav-center { display: none; }
    .navbar { padding: 0 18px; }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    background: var(--fh-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Scroll cue — bouncing chevron */
.hero-scroll-cue {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    animation: scrollCueFadeIn 1s ease 1.8s forwards;
    pointer-events: none;
}

.hero-scroll-cue span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
}

.hero-scroll-cue i {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.22);
    animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollCueFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    filter: brightness(0.75) saturate(1.3);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(8,6,15,0.55) 0%,
            rgba(8,6,15,0.04) 38%,
            rgba(8,6,15,0.04) 55%,
            rgba(8,6,15,0.7) 100%),
        linear-gradient(135deg,
            rgba(107,33,217,0.10) 0%,
            transparent 50%,
            rgba(212,0,108,0.07) 100%);
}

/* diagonal accent lines — decorative */
.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 120px,
        rgba(107,33,217,0.035) 120px,
        rgba(107,33,217,0.035) 121px
    );
    pointer-events: none;
}

/* ── Hero Content ─── */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    /* shift upward so there's breathing room above the stats row */
    margin-top: -110px;
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--fh-electric);
    text-transform: uppercase;
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--fh-electric);
    opacity: 0.6;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(80px, 15vw, 180px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.88;
    color: var(--white);
    text-transform: uppercase;
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero-title-accent {
    display: block;
    background: linear-gradient(90deg, #d4006c 0%, #9b00e8 50%, #00c8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-dim);
    font-weight: 300;
    max-width: 400px;
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--fh-purple), var(--fh-magenta));
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px 36px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
    box-shadow: 0 0 32px rgba(212,0,108,0.3);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.hero-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 8px 40px rgba(212,0,108,0.5);
}
.hero-cta i { font-size: 0.75rem; transition: transform 0.2s; }
.hero-cta:hover i { transform: translateX(4px); }

/* ── Stats Row ─── */
.hero-stats-row {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 6, 15, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(107,33,217,0.35);
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    animation: heroFadeUpCentered 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
    white-space: nowrap;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.hero-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 20px 48px;
    position: relative;
}

.hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--fh-purple), var(--fh-magenta));
}

.hero-stat-sep {
    width: 1px;
    background: rgba(107,33,217,0.3);
    flex-shrink: 0;
}

.stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--white);
    font-style: italic;
}

.stat-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--fh-electric);
    text-transform: uppercase;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUpCentered {
    from { opacity: 0; transform: translateX(-50%) translateY(28px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, rgba(8,6,15,0.85));
    pointer-events: none;
    z-index: 5;
}

@media (max-width: 768px) {
    .hero-stats-row { padding: 0; bottom: 44px; width: calc(100% - 40px); }
    .hero-stat-card { padding: 16px 24px; }
    .hero-title { font-size: clamp(64px, 19vw, 100px); }
    .hero-content { margin-top: -30px; }
}

/* ========================================
   SEARCH BAR
   ======================================== */
.search-wrapper {
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 28px;
    background: var(--fh-dark-2);
    border-bottom: 1px solid rgba(107,33,217,0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.search-logo {
    width: 24px; height: 24px;
    object-fit: contain;
    opacity: 0.85;
    filter: drop-shadow(0 0 4px rgba(107,33,217,0.6));
}

.search-icon {
    color: var(--fh-purple);
    font-size: 13px;
    flex-shrink: 0;
}

#searchInput {
    width: 460px;
    max-width: 55vw;
    background: rgba(107,33,217,0.08);
    border: 1px solid rgba(107,33,217,0.3);
    color: var(--white);
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    letter-spacing: 0.01em;
}
#searchInput::placeholder { color: var(--text-muted); }
#searchInput:focus {
    border-color: var(--fh-purple);
    background: rgba(107,33,217,0.14);
}

/* ========================================
   CARS GRID
   ======================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1px;
    background: rgba(107,33,217,0.12);
    padding-top: var(--stack-nav-search); /* navbar + search bar */
    min-height: 100vh;
}

.card {
    background: var(--card-bg);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}
.card:hover { background: #161224; }

/* glow line top on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--fh-purple), var(--fh-magenta));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}
.card:hover::before { transform: scaleX(1); }

.img-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #080614;
    position: relative;
}

.car-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    image-rendering: auto;
    filter: blur(0.3px) brightness(1.02) saturate(1.1);
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
}
.card:hover .car-img {
    transform: scale(1.07) translateZ(0);
    filter: blur(0px) brightness(1.1) saturate(1.2);
}

.card-info {
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(107,33,217,0.15);
    position: relative;
}

.card-model {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--white);
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.card-meta {
    font-size: 0.73rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.card-class-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 2px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
    padding: 100px 36px 80px;
    min-height: 80vh;
}

.section-header {
    margin-bottom: 52px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(107,33,217,0.2);
    position: relative;
}
.section-header::before {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 60px; height: 2px;
    background: linear-gradient(90deg, var(--fh-purple), var(--fh-magenta));
}

.section-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 0.92;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-style: italic;
}

.section-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
}

.tuning-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 40vh;
    gap: 16px;
    color: rgba(107,33,217,0.3);
}
.tuning-placeholder i { font-size: 3rem; }
.tuning-placeholder p { font-size: 0.9rem; color: var(--text-muted); font-weight: 300; }

/* ========================================
   LIVERY SECTION
   ======================================== */
.community-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.btn-upload {
    background: transparent;
    border: 1px solid rgba(107,33,217,0.4);
    color: var(--text-dim);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-upload:hover {
    border-color: var(--fh-magenta);
    background: rgba(212,0,108,0.08);
    color: var(--white);
}

.livery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.livery-card {
    background: var(--card-bg);
    border: 1px solid var(--fh-border);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.livery-card:hover {
    border-color: rgba(107,33,217,0.4);
    box-shadow: 0 0 20px rgba(107,33,217,0.1);
}

.livery-img-placeholder {
    aspect-ratio: 4/3;
    background: #0e0c1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(107,33,217,0.2);
}

.livery-info { padding: 14px; }

.livery-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 4px;
}
.livery-creator {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 12px;
}

.livery-code {
    background: transparent;
    border: 1px solid rgba(107,33,217,0.3);
    color: var(--text-dim);
    font-family: 'Barlow', sans-serif;
    font-size: 0.7rem;
    padding: 6px 12px;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.livery-code:hover { border-color: var(--fh-magenta); color: var(--white); }

/* ========================================
   COMING SOON — SEASONAL
   ======================================== */
.coming-soon {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 50%, rgba(107,33,217,0.08), transparent 70%);
}

.coming-soon-inner { text-align: center; }

.coming-tag {
    display: inline-block;
    border: 1px solid rgba(107,33,217,0.4);
    color: var(--fh-electric);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 0;
    margin-bottom: 24px;
}

.coming-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 0.88;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-style: italic;
}

.coming-soon-inner > p {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ========================================
   MODAL — UPGRADED FUTBIN STYLE
   ======================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(4, 3, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
}
.modal.open { display: flex; }

.modal-content {
    background: var(--fh-dark-2);
    border: 1px solid rgba(107,33,217,0.3);
    border-radius: 0;
    padding: 0;
    width: 92%;
    max-width: 880px;
    position: relative;
    overflow: hidden;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(107,33,217,0.2), 0 0 0 1px rgba(107,33,217,0.1);
    /* top accent */
    border-top: 2px solid var(--fh-purple);
}
.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(107,33,217,0.4); border-radius: 4px; }

.close-btn {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(107,33,217,0.15);
    border: 1px solid rgba(107,33,217,0.3);
    color: rgba(255,255,255,0.6);
    width: 34px; height: 34px;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 10;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.close-btn:hover {
    background: rgba(212,0,108,0.2);
    border-color: var(--fh-magenta);
    color: #fff;
}

/* ── TOP SECTION ─── */
.fut-modal-top {
    display: flex;
    gap: 0;
    min-height: 300px;
}

.fut-car-panel {
    flex: 0 0 38%;
    background: linear-gradient(160deg, #12102040 0%, #08061440 100%);
    border-right: 1px solid rgba(107,33,217,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 22px;
    gap: 10px;
    text-align: center;
}

.fut-car-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 0;
    overflow: hidden;
    background: #060412;
    border: 1px solid rgba(107,33,217,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
/* subtle corner accent */
.fut-car-img-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--fh-purple);
}

.fut-car-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(1.05) saturate(1.1);
    transition: filter 0.3s;
}

.fut-img-ph {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(107,33,217,0.25);
    font-size: 3rem;
}

.fut-class-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #000;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    margin-top: 4px;
}

.fut-car-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}
.fut-car-name span { color: var(--text-muted); font-weight: 400; }

.fut-car-year {
    font-size: 0.75rem;
    color: var(--fh-electric);
    font-weight: 300;
    margin: 0;
    letter-spacing: 0.1em;
}

/* ── PRICE PANEL ─── */
.fut-price-panel {
    flex: 1;
    padding: 24px 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fut-trend {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.trend-up  { color: #4ade80; }
.trend-down { color: #f87171; }

.fut-current-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    font-style: italic;
}

.fut-coin-icon { font-size: 1.1rem; color: var(--fh-yellow); }

.fut-history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(107,33,217,0.15);
    padding-top: 10px;
}

.price-history-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(107,33,217,0.06);
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}
.price-history-row:hover {
    background: rgba(107,33,217,0.12);
    border-color: rgba(107,33,217,0.25);
}

.ph-icon { color: var(--fh-yellow); font-size: 0.75rem; }
.ph-val { font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem; font-weight: 700; color: #fff; flex: 1; }
.ph-time { font-size: 0.7rem; color: var(--text-muted); }

.fut-updated {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.fut-range {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(107,33,217,0.07);
    border: 1px solid rgba(107,33,217,0.2);
    padding: 10px 14px;
    margin-top: auto;
    border-left: 3px solid var(--fh-purple);
}
.range-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; }
.range-val { font-family: 'Barlow Condensed', sans-serif; font-size: 0.9rem; font-weight: 700; color: #fff; }

/* ── BOTTOM SECTION ─── */
.fut-modal-bottom {
    border-top: 1px solid rgba(107,33,217,0.15);
    padding: 20px 28px;
    background: rgba(8,6,15,0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fut-meta-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.fut-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.fut-meta-item i { color: var(--fh-purple); font-size: 0.75rem; }
.fut-meta-item span { color: #fff; font-weight: 500; font-family: 'Barlow Condensed', sans-serif; font-size: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; }

.fut-tune-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tune-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(107,33,217,0.07);
    border: 1px solid rgba(107,33,217,0.2);
    border-radius: 0;
    padding: 5px 14px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.tune-tag:hover {
    border-color: var(--fh-magenta);
    color: #fff;
    background: rgba(212,0,108,0.08);
}
.tune-tag i { color: var(--fh-purple); font-size: 0.7rem; }

/* Mobile modal */
@media (max-width: 600px) {
    .fut-modal-top { flex-direction: column; }
    .fut-car-panel { border-right: none; border-bottom: 1px solid rgba(107,33,217,0.15); flex: unset; }
    .fut-price-panel { padding: 20px; }
    .fut-modal-bottom { padding: 16px 20px; }
}

/* ========================================
   UTILITY ANIMATIONS
   ======================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.grid-container .card {
    animation: fadeUp 0.35s ease both;
}

/* ========================================
   PRICE HISTORY CHART
   ======================================== */
.price-chart-wrapper {
    margin-top: 20px;
    padding: 16px 18px 14px;
    background: rgba(107,33,217,0.05);
    border: 1px solid rgba(107,33,217,0.2);
    border-left: 3px solid var(--fh-purple);
}

.price-chart-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.price-chart-title i { color: var(--fh-purple); font-size: 0.8rem; }

.price-chart-canvas-container {
    position: relative;
    height: 180px;
    width: 100%;
}

/* ========================================
   PRICE REPORT INPUT — in modal
   ======================================== */
/* Overriding the inline styles from script.js */
#infoModal [style*="background: rgba(255,255,255,0.05)"],
#infoModal [style*="background: rgba(255, 255, 255, 0.05)"] {
    background: rgba(107,33,217,0.08) !important;
    border-color: rgba(107,33,217,0.35) !important;
}

/* ========================================
   COMMUNITY PRICE REPORT BLOCK
   ======================================== */
.report-block {
    margin-top: 20px;
    padding: 18px 20px;
    background: rgba(107,33,217,0.07);
    border: 1px solid rgba(107,33,217,0.28);
    border-left: 3px solid var(--fh-purple);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-header {
    display: flex;
    align-items: center;
    gap: 9px;
}

.report-header > i {
    color: var(--fh-purple);
    font-size: 0.8rem;
}

.report-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    flex: 1;
}

.report-counter {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--fh-yellow);
    background: rgba(247,201,72,0.1);
    border: 1px solid rgba(247,201,72,0.25);
    padding: 2px 10px;
    text-transform: uppercase;
}

.report-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.report-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.report-input-icon {
    position: absolute;
    left: 12px;
    color: var(--fh-yellow);
    font-size: 0.75rem;
    pointer-events: none;
}

.report-input {
    width: 100%;
    padding: 10px 14px 10px 34px;
    background: rgba(8,6,15,0.7);
    border: 1px solid rgba(107,33,217,0.3);
    color: var(--white);
    font-family: 'Barlow', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    outline: none;
    border-radius: 0;
    transition: border-color 0.2s, background 0.2s;
    /* remove number arrows */
    -moz-appearance: textfield;
}
.report-input::-webkit-outer-spin-button,
.report-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.report-input::placeholder { color: var(--text-muted); }
.report-input:focus {
    border-color: var(--fh-purple);
    background: rgba(107,33,217,0.1);
}

.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--fh-purple), var(--fh-magenta));
    border: none;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition: filter 0.2s, transform 0.15s;
    white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.report-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}
.report-btn i { font-size: 0.72rem; }

.report-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.report-progress-wrap {
    height: 3px;
    background: rgba(107,33,217,0.15);
    border-radius: 0;
    overflow: hidden;
}

.report-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--fh-purple), var(--fh-magenta));
    border-radius: 0;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   FILTER BAR
   ======================================== */
.filter-bar {
    position: fixed;
    top: var(--stack-nav-search); /* navbar + search */
    left: 0; right: 0;
    z-index: 140;
    background: rgba(10, 8, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(107,33,217,0.2);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.filter-bar-inner {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.filter-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.filter-label i { color: var(--fh-purple); font-size: 0.6rem; }

.filter-divider {
    width: 1px;
    height: 28px;
    background: rgba(107,33,217,0.2);
    flex-shrink: 0;
    margin: 0 14px;
}

/* ── Chips ── */
.filter-chips {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.chip {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 11px;
    border: 1px solid rgba(107,33,217,0.2);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 0;
    transition: all 0.18s ease;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}
.chip:hover {
    border-color: rgba(107,33,217,0.5);
    color: var(--white);
    background: rgba(107,33,217,0.1);
}
.chip.active {
    background: var(--fh-purple);
    border-color: var(--fh-purple);
    color: #fff;
    box-shadow: 0 0 12px rgba(107,33,217,0.4);
}

.chip-sub {
    display: block;
    font-size: 0.55rem;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

/* Class-specific chip colors when active */
.chip-x.active  { background: #99e600; border-color: #99e600; color: #000; box-shadow: 0 0 12px rgba(153,230,0,0.4); }
.chip-s2.active { background: #00a2e8; border-color: #00a2e8; color: #000; box-shadow: 0 0 12px rgba(0,162,232,0.4); }
.chip-s1.active { background: #a349a4; border-color: #a349a4; color: #fff; box-shadow: 0 0 12px rgba(163,73,164,0.4); }
.chip-a.active  { background: #ff7f27; border-color: #ff7f27; color: #000; box-shadow: 0 0 12px rgba(255,127,39,0.4); }
.chip-b.active  { background: #ffc90e; border-color: #ffc90e; color: #000; box-shadow: 0 0 12px rgba(255,201,14,0.4); }
.chip-c.active  { background: #fff200; border-color: #fff200; color: #000; box-shadow: 0 0 12px rgba(255,242,0,0.4); }
.chip-d.active  { background: #b5e61d; border-color: #b5e61d; color: #000; box-shadow: 0 0 12px rgba(181,230,29,0.4); }

/* ── Selects ── */
.filter-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(107,33,217,0.08);
    border: 1px solid rgba(107,33,217,0.25);
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 30px 6px 12px;
    outline: none;
    cursor: pointer;
    border-radius: 0;
    min-width: 160px;
    transition: border-color 0.2s, background 0.2s;
}
.filter-select:hover,
.filter-select:focus {
    border-color: var(--fh-purple);
    background: rgba(107,33,217,0.15);
}
.filter-select option { background: #0e0c1a; color: #fff; }

.filter-select-arrow {
    position: absolute;
    right: 10px;
    font-size: 0.6rem;
    color: var(--fh-purple);
    pointer-events: none;
}

/* ── Reset button ── */
.filter-reset {
    flex-shrink: 0;
    margin-left: 10px;
    width: 30px; height: 30px;
    background: transparent;
    border: 1px solid rgba(107,33,217,0.2);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s;
}
.filter-reset:hover,
.filter-reset.active {
    border-color: var(--fh-magenta);
    color: var(--fh-magenta);
    background: rgba(212,0,108,0.08);
    box-shadow: 0 0 10px rgba(212,0,108,0.2);
}

/* ── Results count row ── */
.filter-results-row {
    padding: 0 24px 7px;
    min-height: 20px;
}

.results-count {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fh-electric);
}

/* ── Adjust grid top padding to account for filter bar ── */
.grid-container {
    padding-top: var(--stack-nav-search-filter); /* navbar + search + filterbar */
}

@media (max-width: 768px) {
    .filter-bar-inner { padding: 8px 14px; gap: 0; }
    .filter-divider   { margin: 0 10px; }
    .filter-select    { min-width: 130px; }
    .grid-container   { padding-top: 210px; }
}

/* ========================================
   POPULAR CARS SECTION
   ======================================== */
.popular-section {
    position: relative;
    z-index: 5;
    background: var(--fh-dark);
    padding: 36px 0 56px;
    border-top: 1px solid rgba(107,33,217,0.15);
    /* fade-in from below on scroll */
}

.popular-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 40px 24px;
}

.popular-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popular-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--fh-electric);
    display: flex;
    align-items: center;
    gap: 6px;
}
.popular-eyebrow i { font-size: 0.6rem; }

.popular-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
}

.popular-see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(107,33,217,0.35);
    color: var(--text-dim);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.popular-see-all:hover {
    border-color: var(--fh-magenta);
    color: var(--white);
    background: rgba(212,0,108,0.08);
    box-shadow: 0 0 16px rgba(212,0,108,0.2);
}

/* Scrollable row */
.popular-scroll-wrap {
    overflow-x: auto;
    padding: 8px 40px 16px;
    scrollbar-width: none;
}
.popular-scroll-wrap::-webkit-scrollbar { display: none; }

.popular-scroll {
    display: flex;
    gap: 12px;
    width: max-content;
}

/* ── Individual Pop Card (FutBin style) ── */
.pop-card {
    position: relative;
    width: 130px;
    height: 190px;
    background: linear-gradient(160deg, #1a1535 0%, #0e0c1a 100%);
    border: 1px solid rgba(107,33,217,0.2);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px 8px;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
                border-color 0.2s,
                box-shadow 0.2s;
    /* diagonal stripe accent */
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.pop-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(107,33,217,0.12) 0%,
        transparent 60%,
        rgba(212,0,108,0.06) 100%);
    pointer-events: none;
    transition: opacity 0.2s;
    opacity: 0;
}

.pop-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(107,33,217,0.55);
    box-shadow: 0 12px 36px rgba(107,33,217,0.25),
                0 0 0 1px rgba(107,33,217,0.3);
}
.pop-card:hover::before { opacity: 1; }

/* Rank badge */
.pop-rank {
    position: absolute;
    top: 7px;
    left: 7px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    color: rgba(255,255,255,0.18);
    line-height: 1;
    letter-spacing: -0.01em;
    user-select: none;
}

/* Class badge */
.pop-class-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000;
    padding: 2px 6px;
    line-height: 1.4;
}

/* Car image area */
.pop-img-wrap {
    width: 110px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.pop-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
    transition: transform 0.3s ease;
}
.pop-card:hover .pop-img { transform: scale(1.08) translateY(-2px); }

.pop-img-ph {
    font-size: 2rem;
    color: rgba(255,255,255,0.08);
}

/* Text info */
.pop-info {
    width: 100%;
    text-align: center;
    flex: 1;
}

.pop-model {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--white);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.pop-brand {
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.pop-clicks {
    font-size: 0.58rem;
    color: var(--fh-electric);
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* Price overlay — visible on hover */
.pop-price-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top,
        rgba(8,6,15,0.96) 0%,
        rgba(8,6,15,0.85) 60%,
        transparent 100%);
    padding: 18px 10px 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--fh-yellow);
    transform: translateY(100%);
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.pop-price-overlay i { font-size: 0.72rem; }

.pop-card:hover .pop-price-overlay {
    transform: translateY(0);
}

.pop-trend {
    font-size: 0.65rem;
    margin-left: 2px;
}
.pop-trend.trend-up   { color: #4ade80; }
.pop-trend.trend-down { color: #f87171; }

/* Top-3 cards get special glow */
.pop-card:nth-child(1) { border-color: rgba(247,201,72,0.35); }
.pop-card:nth-child(1):hover { box-shadow: 0 12px 36px rgba(247,201,72,0.2), 0 0 0 1px rgba(247,201,72,0.3); }

.pop-card:nth-child(2) { border-color: rgba(180,180,180,0.25); }
.pop-card:nth-child(3) { border-color: rgba(176,100,50,0.25); }

.pop-card:nth-child(1) .pop-rank { color: var(--fh-yellow); font-size: 0.9rem; }
.pop-card:nth-child(2) .pop-rank { color: rgba(200,200,200,0.55); font-size: 0.9rem; }
.pop-card:nth-child(3) .pop-rank { color: rgba(176,100,50,0.6); font-size: 0.9rem; }

@media (max-width: 768px) {
    .popular-header { padding: 0 18px 20px; }
    .popular-scroll-wrap { padding: 8px 18px 16px; }
    .popular-title { font-size: 1.4rem; }
}

/* ========================================
   RECENTLY VIEWED SECTION
   ======================================== */
.recent-section {
    position: relative;
    z-index: 5;
    background: linear-gradient(180deg, var(--fh-dark) 0%, #0b0917 100%);
    padding: 32px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.recent-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 40px 20px;
}

.recent-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.recent-eyebrow i { font-size: 0.6rem; color: var(--fh-purple); }

.recent-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
}

.recent-clear {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    border-radius: 2px;
}
.recent-clear:hover {
    border-color: rgba(212,0,108,0.35);
    color: var(--fh-magenta);
    background: rgba(212,0,108,0.06);
}
.recent-clear i { font-size: 0.6rem; }

.recent-scroll-wrap {
    overflow-x: auto;
    padding: 4px 40px 12px;
    scrollbar-width: none;
}
.recent-scroll-wrap::-webkit-scrollbar { display: none; }

.recent-scroll {
    display: flex;
    gap: 10px;
    width: max-content;
}

/* ── Recent Card — landscape/wide, distinto a pop-card ── */
.rec-card {
    width: 210px;
    height: 76px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s, transform 0.18s;
    position: relative;
}

.rec-card::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--fh-purple);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}

.rec-card:hover {
    border-color: rgba(107,33,217,0.35);
    background: rgba(107,33,217,0.07);
    transform: translateY(-2px);
}
.rec-card:hover::after { transform: scaleY(1); }

.rec-img-wrap {
    width: 90px;
    height: 76px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    overflow: hidden;
}

.rec-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.25s;
}
.rec-card:hover .rec-img { opacity: 1; transform: scale(1.05); }

.rec-img-ph {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.07);
}

.rec-info {
    flex: 1;
    padding: 10px 12px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rec-model {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--white);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.rec-brand {
    font-size: 0.6rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.rec-class-badge {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000;
    padding: 1px 5px;
    border-radius: 1px;
    line-height: 1.5;
}

.rec-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--fh-yellow);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .recent-header { padding: 0 18px 16px; }
    .recent-scroll-wrap { padding: 4px 18px 12px; }
    .recent-title { font-size: 1.3rem; }
    .rec-card { width: 180px; }
}

/* ══════════════════════════════════════════════════════════════════
   BOTÓN FAVORITO (corazón en las cards)
══════════════════════════════════════════════════════════════════ */
.img-container { position: relative; }

.fav-btn {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 10;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(8,6,15,0.75);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
    opacity: 0;
}
.card:hover .fav-btn { opacity: 1; }
.fav-btn.fav-active {
    opacity: 1;
    color: #f43f5e;
    border-color: rgba(244,63,94,0.4);
    background: rgba(244,63,94,0.15);
}
.fav-btn:hover { transform: scale(1.2); }
.fav-btn.fav-active:hover { transform: scale(1.15); color: #fb7185; }

/* Modal action buttons */
.fut-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-fav-btn, .modal-compare-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    border-radius: 2px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
}

.modal-fav-btn {
    background: rgba(244,63,94,0.1);
    border-color: rgba(244,63,94,0.3);
    color: rgba(244,63,94,0.85);
}
.modal-fav-btn:hover, .modal-fav-btn.fav-active {
    background: rgba(244,63,94,0.2);
    border-color: rgba(244,63,94,0.6);
    color: #f43f5e;
}
.modal-fav-btn.fav-active i { animation: heartPop 0.3s cubic-bezier(0.34,1.56,0.64,1); }

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.modal-compare-btn {
    background: rgba(107,33,217,0.1);
    border-color: rgba(107,33,217,0.3);
    color: rgba(139,60,247,0.85);
}
.modal-compare-btn:hover {
    background: rgba(107,33,217,0.2);
    border-color: rgba(107,33,217,0.6);
    color: #8b3cf7;
}

/* ══════════════════════════════════════════════════════════════════
   MI GARAJE — SECCIÓN
══════════════════════════════════════════════════════════════════ */
.garage-inner {
    min-height: 200px;
}

.garage-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-muted);
    text-align: center;
    gap: 10px;
}
.garage-empty i {
    font-size: 3rem;
    color: rgba(244,63,94,0.3);
    margin-bottom: 8px;
}
.garage-empty p { font-size: 1rem; }
.garage-empty-sub {
    font-size: 0.85rem !important;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════════
   COMPARADOR
══════════════════════════════════════════════════════════════════ */
.compare-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.compare-vs-badge {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--fh-magenta);
    text-shadow: 0 0 20px rgba(212,0,108,0.5);
    align-self: center;
    padding-top: 40px;
}

.compare-slot {
    min-height: 220px;
}

.compare-slot-empty {
    border: 2px dashed rgba(107,33,217,0.3);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--text-muted);
    text-align: center;
    transition: border-color 0.2s;
}
.compare-slot-empty:hover { border-color: rgba(107,33,217,0.55); }
.compare-slot-empty i { font-size: 2rem; color: rgba(107,33,217,0.4); }
.compare-slot-empty span { font-size: 0.85rem; }

.compare-pick-btn {
    padding: 8px 20px;
    background: rgba(107,33,217,0.15);
    border: 1px solid rgba(107,33,217,0.4);
    border-radius: 2px;
    color: #8b3cf7;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}
.compare-pick-btn:hover {
    background: rgba(107,33,217,0.28);
    border-color: rgba(107,33,217,0.7);
}

.compare-car-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--fh-border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    transition: border-color 0.2s;
}
.compare-car-card:hover { border-color: rgba(107,33,217,0.3); }

.compare-change-btn {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 5;
    padding: 4px 10px;
    background: rgba(8,6,15,0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 2px;
    color: var(--text-dim);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}
.compare-change-btn:hover { border-color: rgba(107,33,217,0.4); color: #8b3cf7; }

.compare-car-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    opacity: 0.9;
}
.compare-img-ph {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.3);
}

.compare-class-badge {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000;
    padding: 2px 8px;
    border-radius: 2px;
    margin-top: 12px;
}

.compare-car-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    margin-top: 8px;
    padding: 0 16px;
    text-align: center;
}

.compare-car-model {
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 0 16px;
    text-align: center;
}

.compare-car-year {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.compare-car-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--fh-yellow);
    margin-top: 6px;
}

/* Stats table */
.compare-stats {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.compare-stats-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-table { display: flex; flex-direction: column; gap: 2px; }

.compare-table-header {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 4px;
    margin-bottom: 8px;
}
.cth-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.cth-name:last-child { text-align: right; }
.cth-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

.compare-row {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 4px;
    align-items: center;
}

.compare-cell {
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--fh-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s;
}
.compare-cell-left { align-items: flex-end; border-radius: 3px 0 0 3px; }
.compare-cell-right { align-items: flex-start; border-radius: 0 3px 3px 0; }

.compare-cell.stat-win {
    background: rgba(247,201,72,0.08);
    border-color: rgba(247,201,72,0.25);
}

.cval {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.04em;
}
.stat-win .cval { color: var(--fh-yellow); }

.compare-cell-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    padding: 4px 0;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--fh-border);
    border-bottom: 1px solid var(--fh-border);
}

.stat-bar-wrap {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}
.stat-bar { height: 100%; border-radius: 2px; transition: width 0.5s ease; }
.stat-bar-left { margin-left: auto; }

/* ══════════════════════════════════════════════════════════════════
   COMPARE PICKER MODAL
══════════════════════════════════════════════════════════════════ */
.compare-picker-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}
.compare-picker-modal.open { display: flex; }

.compare-picker-content {
    background: var(--fh-dark-2);
    border: 1px solid rgba(107,33,217,0.35);
    border-radius: 6px;
    width: min(92vw, 820px);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(107,33,217,0.12);
}

.compare-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--fh-border);
}
.compare-picker-header h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.compare-picker-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--fh-border);
    background: rgba(0,0,0,0.2);
}
.compare-picker-search i { color: var(--text-muted); font-size: 0.85rem; }
.compare-picker-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
}
.compare-picker-search input::placeholder { color: var(--text-muted); }

.compare-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2px;
    overflow-y: auto;
    padding: 12px;
    flex: 1;
}

.picker-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--fh-border);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.18s;
    display: flex;
    flex-direction: column;
}
.picker-card:hover {
    border-color: rgba(107,33,217,0.5);
    background: rgba(107,33,217,0.07);
    transform: translateY(-2px);
}

.picker-img-wrap {
    width: 100%;
    height: 110px;
    background: rgba(8, 8, 20, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.picker-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.95;
    display: block;
}

.picker-img-icon {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.07);
}

.picker-img-ph {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.08);
    font-size: 1.5rem;
}

.picker-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.picker-model {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picker-brand {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picker-badge {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000;
    padding: 1px 5px;
    border-radius: 1px;
    margin-top: 3px;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .compare-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .compare-vs-badge {
        text-align: center;
        padding-top: 0;
        font-size: 1.5rem;
    }
    .compare-table-header, .compare-row {
        grid-template-columns: 1fr 70px 1fr;
    }
    .compare-picker-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* ========================================
   RESPONSIVE — COMPREHENSIVE OVERRIDES
   Device-adaptive layout for all screen sizes
   ======================================== */

/* ── Hamburger menu (mobile only) ──────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
    display: none;
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0;
    background: rgba(8, 6, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107,33,217,0.3);
    z-index: 190;
    flex-direction: column;
    padding: 8px 0 16px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
    color: var(--text-dim);
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 14px 28px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.nav-drawer a:hover {
    color: var(--white);
    border-left-color: var(--fh-magenta);
    background: rgba(212,0,108,0.06);
}

/* ── 1280px: condense nav links spacing ── */
@media (max-width: 1280px) {
    .nav-center a { padding: 0 14px; font-size: 0.75rem; }
}

/* ── 1024px: further condense ── */
@media (max-width: 1024px) {
    .nav-center a { padding: 0 10px; font-size: 0.72rem; letter-spacing: 0.1em; }
    .navbar { padding: 0 20px; }
    #searchInput { width: 320px; }
    .filter-select { min-width: 130px; }
}

/* ── 860px: hide some nav labels ── */
@media (max-width: 860px) {
    .nav-center a { padding: 0 8px; font-size: 0.68rem; }
    #searchInput { width: 240px; }
}

/* ── 768px: mobile – hamburger + search stacks ── */
@media (max-width: 768px) {
    /* Navbar */
    .navbar { padding: 0 16px; }
    .nav-center { display: none; }
    .nav-hamburger { display: flex; }

    /* Search bar wraps to 2 rows */
    .search-wrapper {
        flex-wrap: wrap;
        padding: 8px 14px;
        gap: 8px;
        justify-content: flex-start;
    }
    .search-logo { display: none; }
    #searchInput {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        order: 1;
    }
    .search-icon { order: 0; }
    .search-wrapper .filter-group { order: 2; flex: 1 1 auto; }
    .search-wrapper .filter-divider { display: none; }
    .search-wrapper .filter-select { min-width: 0; width: 100%; }
    .search-wrapper .filter-select-wrap { flex: 1; }

    /* Filter bar scrolls horizontally (already does) */
    .filter-bar-inner { padding: 8px 12px; gap: 0; }
    .filter-divider { margin: 0 8px; }
    .chip { padding: 3px 8px; font-size: 0.68rem; }
    .filter-select { min-width: 110px; font-size: 0.72rem; }

    /* Grid */
    .grid-container { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

    /* Hero */
    .hero-title { font-size: clamp(56px, 18vw, 90px); }
    .hero-stat-card { padding: 14px 20px; }
    .hero-stats-row { width: calc(100% - 32px); bottom: 24px; }

    /* Content sections */
    .content-section { padding: 80px 18px 60px; }
    .popular-header, .recent-header { padding: 0 18px 18px; }
    .popular-scroll-wrap, .recent-scroll-wrap { padding: 6px 18px 14px; }
}

/* ── 480px: small phones ── */
@media (max-width: 480px) {
    .navbar { height: 50px; padding: 0 14px; }
    /* Update token for very small screens (JS will handle dynamic, this is fallback) */
    :root { --navbar-h: 50px; }

    .nav-brand { font-size: 1rem; }
    .nav-logo { width: 22px; height: 22px; }

    .hero-title { font-size: clamp(48px, 20vw, 72px); }
    .hero-content { margin-top: -40px; gap: 12px; }
    .hero-desc { font-size: 0.88rem; }
    .hero-cta { padding: 12px 26px; font-size: 0.82rem; }
    .hero-stat-card { padding: 12px 16px; }

    .grid-container { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

    .section-header h2 { font-size: clamp(1.8rem, 9vw, 2.8rem); }

    /* Modal full width on small phones */
    .modal-content { width: 98%; }
    .fut-modal-top { flex-direction: column; }
    .fut-car-panel { border-right: none; border-bottom: 1px solid rgba(107,33,217,0.15); flex: unset; }
}

/* ── Very wide screens: cap grid columns ── */
@media (min-width: 1600px) {
    .grid-container { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (min-width: 2200px) {
    .grid-container { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .navbar { padding: 0 60px; }
    #searchInput { width: 560px; }
}

/* ===== FOOTER ===== */
.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--fh-border);
    background: rgba(4, 4, 12, 0.85);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 28px 36px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1 1 180px;
    min-width: 160px;
}

.footer-logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.footer-tagline {
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 180px;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    flex: 2 1 400px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 110px;
}

.footer-col-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 2px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.18s;
}

.footer-link i {
    font-size: 0.85rem;
    width: 14px;
    text-align: center;
    opacity: 0.7;
}

.footer-link:hover {
    color: var(--white);
}

.footer-link:hover i {
    opacity: 1;
}

.footer-donate {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 3px;
    padding: 6px 12px;
    transition: all 0.18s;
    width: fit-content;
}

.footer-donate:hover {
    border-color: rgba(0, 120, 212, 0.6);
    color: #4da6ff;
    background: rgba(0, 120, 212, 0.07);
}

.footer-donate i {
    font-size: 0.85rem;
}

.footer-donate-note {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.18);
    line-height: 1.4;
    max-width: 160px;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--fh-border);
    padding: 14px 28px;
    text-align: center;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.15);
    letter-spacing: 0.04em;
}

@media (max-width: 600px) {
    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-links { gap: 28px; }
}