:root {
    --bg-dark: #0a0a0d;
    --bg-card: #16161a;
    --primary: #ccff00;
    /* Neon Green/Yellow typical of PES/eFootball */
    --primary-hover: #b3e600;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-blue: #00daff;
    --border-color: #2a2a2e;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --spacing-container: 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    :root {
        --spacing-container: 1rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html {
    scroll-behavior: smooth;
    width: 100%;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    width: 100%;
    position: relative;
    /* Ensure footer doesn't overlap content on mobile with safe area */
    min-height: 100dvh;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* HIDE SCROLLBAR GLOBALLY */
::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}
html, body, * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    /* text-transform: uppercase; Removed for ElevenHub branding */
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #fff;
}

.logo span {
    color: var(--primary);
}

.highlight {
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.narrow {
    max-width: 600px;
}

/* NAVBAR */
.premium-navbar {
    background: linear-gradient(180deg, rgba(10, 10, 13, 0.45) 0%, rgba(10, 10, 13, 0.3) 100%);
    padding: 0;
    margin: 16px auto;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1280px;
    height: 76px;
    border-radius: 999px;
    z-index: 1000;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-color 0.4s ease;
    display: flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
}

.premium-navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: radial-gradient(150px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(214, 255, 0, 0.08), transparent 80%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.premium-navbar:hover::after {
    opacity: 1;
}

body {
    padding-top: 0;
}

/* Scroll shrink states */
.premium-navbar.navbar-hidden {
    transform: translate(-50%, -120%);
}

.premium-navbar.navbar-shrink {
    height: 64px;
    margin-top: 8px;
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.7) 0%, rgba(8, 8, 10, 0.55) 100%);
    border-color: rgba(255, 255, 255, 0.12);
}

.premium-nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px !important;
    height: 100%;
}

/* Logo capsule - VisionOS / Dynamic Island style */
.logo-capsule {
    display: flex;
    align-items: center;
    padding: 6px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.logo-capsule::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.logo-capsule:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(214, 255, 0, 0.4);
    box-shadow: 0 8px 30px rgba(214, 255, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.logo-capsule:hover::before {
    opacity: 1;
}

.premium-logo {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    letter-spacing: -0.03em !important;
    color: #fff !important;
    text-transform: none !important;
}

.premium-logo-accent {
    color: #D6FF00;
    margin-left: 2px;
}

/* Nav Links - Capsules with interactive properties */
.premium-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 999px;
    height: 46px;
}

.premium-nav-item {
    font-size: 0.85rem;
    font-weight: 500;
    color: #8A8F98;
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.premium-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.premium-nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.premium-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #D6FF00;
    box-shadow: 0 0 8px #D6FF00;
}

/* User actions area */
.premium-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.premium-navbar .nav-icons-group {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* AI Button */
.premium-ai-btn {
    background: linear-gradient(90deg, rgba(214, 255, 0, 0.15) 0%, rgba(0, 218, 255, 0.08) 100%);
    border: 1px solid rgba(214, 255, 0, 0.3);
    padding: 8px 18px;
    border-radius: 999px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(214, 255, 0, 0.05);
}

.premium-ai-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(214, 255, 0, 0.6);
    box-shadow: 0 6px 20px rgba(214, 255, 0, 0.15), 0 0 12px rgba(0, 218, 255, 0.2);
    background: linear-gradient(90deg, rgba(214, 255, 0, 0.22) 0%, rgba(0, 218, 255, 0.12) 100%);
}

.sparkle-icon {
    display: inline-block;
    animation: sparkleRotate 2.5s infinite linear;
}

@keyframes sparkleRotate {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* Search capsule */
.premium-search-capsule {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    height: 38px;
    padding: 0 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    min-width: 220px;
}

.premium-search-capsule:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.premium-search-capsule .search-icon {
    width: 14px;
    height: 14px;
    color: #8A8F98;
}

.search-placeholder {
    font-size: 0.8rem;
    color: #8A8F98;
    flex-grow: 1;
}

.shortcut-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #8A8F98;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Premium Icon Buttons */
.premium-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A8F98 !important;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-icon-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.premium-icon-btn svg {
    width: 16px;
    height: 16px;
}

/* Avatar layout */
.premium-profile-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.premium-avatar-ring {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.premium-profile-wrapper:hover .premium-avatar-ring {
    background: linear-gradient(135deg, #D6FF00 0%, #00daff 100%);
    box-shadow: 0 0 15px rgba(214, 255, 0, 0.25);
    transform: scale(1.05);
}

.premium-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #111115;
    display: flex;
    align-items: center;
    justify-content: center;
}

.online-indicator {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D6FF00;
    border: 2px solid #000;
    box-shadow: 0 0 8px #D6FF00;
}

/* Premium Login button */
.premium-login-btn {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 999px !important;
    color: #fff !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.premium-login-btn:hover {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
    box-shadow: 0 8px 25px rgba(255,255,255,0.15);
}

/* Mobile Toggle Hamburger styling */
.premium-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease;
}

/* Hamburger morphing animations */
.premium-menu-toggle.active-toggle .bar-1 {
    transform: translateY(7px) rotate(45deg);
}

.premium-menu-toggle.active-toggle .bar-2 {
    opacity: 0;
}

.premium-menu-toggle.active-toggle .bar-3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile glass menu */
.premium-mobile-menu {
    display: none;
    position: fixed;
    top: 84px;
    left: 20px;
    right: 20px;
    z-index: 99999;
    background: #0f0f14 !important;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.premium-mobile-menu.active-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.premium-mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-card {
    padding: 14px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #ccc;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-card:hover, .mobile-nav-card.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.12);
}

.mobile-nav-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, margin-top 0.3s ease-out;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0;
}

.mobile-submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #aaa;
    font-size: 0.88rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.mobile-submenu-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-card.ai-card {
    background: linear-gradient(90deg, rgba(214, 255, 0, 0.15) 0%, rgba(0, 218, 255, 0.08) 100%);
    border-color: rgba(214, 255, 0, 0.25);
    color: #D6FF00;
    font-weight: 600;
}

/* Standalone/PWA modifications */
.pwa-standalone .premium-navbar {
    top: env(safe-area-inset-top, 0px);
}

/* Media Query breakpoints */
@media (max-width: 1024px) {
    .premium-search-capsule {
        min-width: 150px;
    }
}

/* Mobile actions pill (Search + Hamburger) styles */
.premium-mobile-actions {
    display: none;
}

@media (max-width: 900px) {
    .premium-navbar {
        height: 64px;
        margin: 10px auto;
        width: calc(100% - 20px);
    }
    body {
        padding-top: 0;
    }
    .page {
        padding-top: calc(105px + env(safe-area-inset-top, 0px));
    }
    #home.page, #tournaments.page {
        padding-top: 0;
    }
    .premium-nav-links, .premium-ai-btn, .shortcut-badge, .desktop-only-icon {
        display: none !important;
    }
    .premium-mobile-menu {
        display: block;
    }
    .premium-search-capsule, .accounts-search-wrapper {
        display: none !important;
    }
    .logo-capsule {
        padding: 4px 12px;
    }
    .premium-logo {
        font-size: 1rem !important;
    }
    .premium-user-actions {
        display: none !important;
    }
    .premium-navbar .nav-icons-group {
        gap: 6px;
    }
    .premium-mobile-actions {
        display: flex;
        align-items: center;
        gap: 16px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        padding: 8px 16px;
        border-radius: 999px;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .mobile-header-wishlist {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.8) !important;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease !important;
    }
    .mobile-header-wishlist:hover,
    .mobile-header-wishlist:active {
        color: #ff5080 !important;
        transform: scale(1.15) !important;
    }
    .hamburger-notif-badge {
        position: absolute;
        top: -8px;
        right: -10px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        background: #ff3333;
        color: #ffffff;
        font-size: 0.68rem;
        font-weight: 900;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 12px rgba(255, 51, 51, 0.9);
        border: 1.5px solid #06080d;
        z-index: 20;
        line-height: 1;
        pointer-events: none;
        font-family: var(--font-heading), sans-serif;
    }
    .wishlist-badge {
        background: linear-gradient(135deg, #00daff 0%, #0088ff 100%) !important;
        color: #000000 !important;
        box-shadow: 0 0 12px rgba(0, 218, 255, 0.95) !important;
    }
    .mobile-search-btn {
        background: none;
        border: none;
        padding: 0;
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.2s;
    }
    .mobile-search-btn:hover {
        opacity: 0.8;
    }
    .mobile-search-btn svg {
        width: 18px;
        height: 18px;
    }
    .premium-mobile-actions .premium-menu-toggle {
        display: flex !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   INLINE ANIMATED SEARCH BAR — Fluid pill expansion in navbar
   ═══════════════════════════════════════════════════════════════ */

/* Default state: collapsed, takes no space */
.nav-inline-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 0px;
    max-width: 0;
    width: 0;
    height: 38px; /* Match height of other header pills */
    opacity: 0;
    visibility: hidden; /* Guaranteed invisible when collapsed */
    overflow: hidden;
    padding: 0;
    margin: 0;
    /* Pill container: match background, border, radius, and shadow of other header capsules */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid transparent; /* Hide border when collapsed */
    border-radius: 999px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    min-width: 0;
    box-sizing: border-box;
    transition:
        flex 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        width 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.3s ease,
        padding 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        margin 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.3s ease,
        visibility 0.4s ease;
}

/* Search icon (left side, inside the pill) */
.nav-inline-search-icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease 0.18s;
}

/* Input: clean transparent styling with no outline or borders */
.nav-inline-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    opacity: 0;
    transition: opacity 0.25s ease 0.2s;
}

.nav-inline-search input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

/* Close button (right side, inside the pill) */
.nav-search-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
    transition:
        opacity 0.2s ease 0.25s,
        transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) 0.25s,
        color 0.2s ease;
}

.nav-search-close-btn svg {
    width: 14px;
    height: 14px;
}

.nav-search-close-btn:hover {
    color: #ccff00;
}

/* ─── EXPANDED STATE: triggered by .search-expanded on .premium-navbar ─── */

/* Logo capsule: collapse to zero */
.premium-navbar.search-expanded .logo-capsule {
    flex: 0 0 0px !important;
    max-width: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-color: transparent !important;
    overflow: hidden !important;
    pointer-events: none;
    visibility: hidden !important;
    transition:
        flex 0s,
        max-width 0s,
        width 0s,
        opacity 0.05s ease,
        padding 0s,
        margin 0s,
        border-color 0s,
        visibility 0s;
}

/* Default logo state: animatable max-width */
.premium-navbar .logo-capsule {
    max-width: 200px;
    visibility: visible;
    transition:
        flex 0.45s cubic-bezier(0.25, 1, 0.5, 1),
        max-width 0.45s cubic-bezier(0.25, 1, 0.5, 1),
        width 0.45s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.4s ease 0.12s,
        padding 0.45s cubic-bezier(0.25, 1, 0.5, 1),
        margin 0.45s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.3s ease,
        transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.3s ease,
        visibility 0.45s ease;
}

/* Inline search: expand to fill — unified pill */
.premium-navbar.search-expanded .nav-inline-search {
    flex: 1 1 auto;
    max-width: 600px;
    width: auto;
    opacity: 1;
    visibility: visible; /* Show when expanded */
    padding: 0 16px; /* Matching padding of actions capsule */
    margin: 0 6px;
    border-color: rgba(255, 255, 255, 0.12); /* Show border when expanded */
    pointer-events: auto;
}

.premium-navbar.search-expanded .nav-inline-search-icon {
    opacity: 1;
}

.premium-navbar.search-expanded .nav-inline-search input {
    opacity: 1;
}

.premium-navbar.search-expanded .nav-search-close-btn {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Search icon in action pill: collapse */
.premium-navbar.search-expanded .mobile-search-btn {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    pointer-events: none;
    transition:
        max-width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.2s ease,
        padding 0.25s ease,
        margin 0.25s ease;
}

/* Wishlist heart in action pill: collapse */
.premium-navbar.search-expanded .mobile-header-wishlist {
    max-width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none;
    transition:
        max-width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.2s ease,
        padding 0.25s ease,
        margin 0.25s ease;
}

/* Hide actions pill border/bg when active to prevent split pill appearance */
.premium-navbar.search-expanded .premium-mobile-actions {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    gap: 0 !important;
}

/* Default reverse-transition for search btn & wishlist */
.premium-navbar .mobile-search-btn {
    max-width: 40px;
    transition:
        max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.12s,
        opacity 0.35s ease 0.15s,
        padding 0.4s ease 0.12s,
        margin 0.4s ease 0.12s;
}

.premium-navbar .mobile-header-wishlist {
    max-width: 40px;
    transition:
        max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.12s,
        opacity 0.35s ease 0.15s,
        padding 0.4s ease 0.12s,
        margin 0.4s ease 0.12s;
}

/* Desktop: hide inline search (desktop uses overlay) */
@media (min-width: 901px) {
    .nav-inline-search {
        display: none !important;
    }
}

/* Myntra-style Placeholder Carousel */
.nav-search-carousel {
    position: absolute;
    left: 6px; /* Indent spacing from the search icon */
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Let clicks pass through to input */
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    overflow: hidden;
    height: 20px;
    display: flex;
    align-items: center;
    width: calc(100% - 25px);
    white-space: nowrap; /* Prevent wrapping to second line */
}

#nav-search-carousel-text {
    display: inline-block;
    white-space: nowrap; /* Prevent wrapping */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

#nav-search-carousel-text.slide-out {
    animation: slideOutUp 0.3s forwards;
}

#nav-search-carousel-text.slide-in {
    animation: slideInUp 0.3s forwards;
}

@keyframes slideOutUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

@keyframes slideInUp {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Hide placeholder text when input has content */
.nav-search-input-wrapper.has-value .nav-search-carousel {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none;
}


/* Premium Dashboard Key Button */
.premium-dashboard-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(40, 40, 45, 0.9));
    border: 1px solid var(--accent-blue);
    border-radius: 50px;
    color: var(--accent-blue);
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 218, 255, 0.2);
    transition: 0.3s;
    margin-right: 10px;
    white-space: nowrap;
}

.premium-dashboard-btn:hover {
    background: var(--accent-blue);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 218, 255, 0.6);
    transform: translateY(-2px);
}

.premium-dashboard-btn i {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .premium-dashboard-btn .dashboard-text {
        display: none;
        /* Hide text on very small screens if needed, but keep icon */
    }

    .premium-dashboard-btn {
        padding: 0.5rem;
        /* Icon only style on mobile */
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }

    .premium-dashboard-btn i {
        width: 18px;
        height: 18px;
    }
}

.icon-link i,
.icon-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Notification Dot */
.notification-link {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    border: 1px solid #000;
    display: none;
    /* Hidden by default */
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 5px rgba(255, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

.badge-ready {
    background: var(--primary);
    color: #000;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.sell-option-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sell-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.sell-option-card:hover::before {
    left: 100%;
}

.sell-option-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(204, 255, 0, 0.2);
}

.sell-option-card i {
    transition: transform 0.4s ease, color 0.3s;
}

.sell-option-card:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px var(--primary));
}

.sell-option-card h3 {
    margin-top: 0.5rem;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.sell-option-card p {
    font-size: 0.95rem;
    max-width: 250px;
    margin: 0 auto;
}

.tracking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.tracking-table th,
.tracking-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.tracking-table th {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-text {
    background: none;
    color: var(--text-muted);
    padding-left: 0;
}

.btn-text:hover {
    color: var(--primary);
}

/* HERO */
/* HERO PARALLAX */
.parallax-hero {
    position: relative;
    height: 85vh;
    /* Taller for better video impact */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller than container for parallax movement */
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, #0a0a0d 90%);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    opacity: 0;
    /* Hidden initially for reveal */
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: 0.5rem;
}

.nav-icons-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* PREMIUM FORM ELEMENTS */
.geo-select {
    padding: 0.8rem 2rem 0.8rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    /* Standard */
    -webkit-appearance: none;
    /* Chrome/Safari */
    -moz-appearance: none;
    /* Firefox */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
}

.geo-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.2);
}

.search-bar.glass-effect {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar.glass-effect input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1rem 1rem 1rem 3rem !important;
    width: 100%;
    color: white;
}

@media (max-width: 768px) {
    .search-bar.glass-effect input {
        padding: 0.8rem 1rem 0.8rem 2.5rem !important;
    }
}

/* PREMIUM UTILS & ANIMATIONS */
.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.text-glow {
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
}

/* Scroll Animation Classes */
/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(90px);
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
    /* Staggered delay support */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Listing Card Hover Upgrade (3D Effect) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lists-grid {
    perspective: 1000px;
}

.listing-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

@media (hover: hover) {
    .listing-card:hover {
        transform: translateY(-10px) rotateX(1deg) !important;
        border-color: var(--primary) !important;
        box-shadow: 0 20px 40px rgba(204, 255, 0, 0.15) !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }
}

.card-img {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.listing-card:hover .card-img img {
    transform: scale(1.08);
}

.badge-exchange,
.badge-discount,
.badge-sold {
    display: inline-block;
    position: relative;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
}

.badge-exchange {
    background: linear-gradient(135deg, var(--primary) 0%, #a6d000 100%);
    color: #000;
    border: 1px solid rgba(204, 255, 0, 0.3);
}

.badge-discount {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #00a5c4 100%);
    color: #000;
    border: 1px solid rgba(0, 218, 255, 0.3);
}

.badge-sold {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 68, 68, 0.3) !important;
}

.badge-sold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-20deg);
    animation: soldShine 2.5s infinite;
}

@keyframes soldShine {
    0% {
        left: -150%;
    }
    30% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* Badge Cycle Container */
.badge-cycle-container {
    position: relative;
    display: inline-flex;
    height: 20px;
    z-index: 10;
    perspective: 800px;
}

.badge-cycle-item {
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
}

.badge-cycle-item:not(.active) {
    opacity: 0 !important;
    transform: rotateX(-180deg) !important;
    pointer-events: none;
}

.badge-cycle-item.active {
    opacity: 1 !important;
    transform: rotateX(0deg) !important;
    pointer-events: auto;
}

/* Shining Effect for Badges */
.badge-exchange::after,
.badge-discount::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: badgeReflect 2.5s infinite linear;
}

@keyframes badgeReflect {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.1);
}

.search-bar i,
.search-bar svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* GRID */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding-bottom: 4rem;
}

/* ==========================================================================
   FEATURED ACCOUNTS PREMIUM CONTAINER & CATEGORY PRICING LAYOUT
   ========================================================================== */
.featured-section-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    position: relative;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.featured-section-container::before {
    display: none !important;
}

.featured-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.featured-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(204, 255, 0, 0.12);
    border: 1px solid rgba(204, 255, 0, 0.35);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    text-transform: uppercase;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 14px var(--primary); }
}

.featured-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
    letter-spacing: 1px;
    margin: 2px 0 0 0;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

.featured-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-count-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ddd;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

/* CATEGORY & PRICE FILTER CHIPS */
.featured-category-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.featured-category-bar::-webkit-scrollbar {
    display: none;
}

.featured-cat-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.featured-cat-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

.featured-cat-chip.active {
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.2) 0%, rgba(204, 255, 0, 0.1) 100%);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.15);
}

.featured-grid-scroll-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

/* FULL CONTAINER GRID LAYOUT - NO BLANK SPACE ON RIGHT */
.featured-listings-grid,
.listings-grid.featured-listings-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
    gap: 1.25rem !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* CARD STYLING SPECIFIC TO FEATURED CONTAINER */
.featured-listings-grid .listing-card,
.featured-section-container .listing-card,
#dealer-store-featured-listings .listing-card {
    background: linear-gradient(160deg, rgba(22, 28, 42, 0.9) 0%, rgba(14, 18, 28, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    /* Soft transitions for real-time scroll updates, plus box-shadow/border for hovers */
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* Driven dynamically by scroll-linked JS custom properties for single one-by-one reveal */
    opacity: var(--scroll-opacity, 0);
    transform: translate3d(0, var(--scroll-translate-y, 50px), 0);
    will-change: opacity, transform;
}

/* Smooth active state override once fully scrolled in */
.featured-listings-grid .listing-card.active,
.featured-section-container .listing-card.active,
#dealer-store-featured-listings .listing-card.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.featured-listings-grid .listing-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(204, 255, 0, 0.5);
    box-shadow: 0 16px 35px rgba(204, 255, 0, 0.15), 0 0 20px rgba(0, 0, 0, 0.6);
}

.featured-listings-grid .card-img {
    aspect-ratio: 16 / 9;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #0d0e15;
}

.featured-listings-grid .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-listings-grid .listing-card:hover .card-img img {
    transform: scale(1.06);
}

.featured-listings-grid .card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.0) 50%, rgba(10,12,20,0.85) 100%);
    pointer-events: none;
}

/* Glassmorphic Floating Badge Pills */
/* ==========================================================================
   CLEAN SAAS DESIGN SYSTEM (Stripe / Vercel / Linear Level)
   ========================================================================== */
.badge-discount, .badge-exchange, .badge-sold, .badge-promoted {
    display: inline-block;
    background: rgba(24, 24, 28, 0.9) !important;
    border: 1px solid var(--accent-blue) !important;
    color: var(--accent-blue) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.badge-exchange {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.badge-sold {
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #ef4444 !important;
    background: rgba(30, 15, 15, 0.9) !important;
}

.badge-promoted {
    border-color: rgba(234, 179, 8, 0.4) !important;
    color: #eab308 !important;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
    vertical-align: middle;
}

/* FEATURED CONTAINER */
.featured-section-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    box-sizing: border-box;
    width: 100%;
}

.featured-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(204, 255, 0, 0.06);
    border: 1px solid rgba(204, 255, 0, 0.2);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

.featured-verified-count {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.featured-category-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.featured-cat-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.featured-cat-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.featured-cat-chip.active {
    background: rgba(204, 255, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

/* PREMIUM SELECTIONS */
.premium-selections-container {
    background: #121215;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.8rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    width: 100%;
    box-sizing: border-box;
}

.premium-selections-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.premium-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(204, 255, 0, 0.06);
    border: 1px solid rgba(204, 255, 0, 0.2);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.premium-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.premium-section-sub {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

.premium-features-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.p-feature-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #a1a1aa;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.premium-slide {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: border-color 0.2s ease;
}

.premium-slide-btn {
    pointer-events: auto;
    background: rgba(204, 255, 0, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    transition: background 0.2s ease;
}

.premium-slide-btn:hover {
    background: var(--primary);
    color: #000;
}

/* LIVE TOURNAMENTS */
.empty-tournaments-card {
    grid-column: 1 / -1;
    background: #121215;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}

.empty-t-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
    background: rgba(204, 255, 0, 0.06);
    border: 1px solid rgba(204, 255, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-t-body {
    flex: 1;
}

.premium-tournament-card {
    background: #121215;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.9rem;
    transition: border-color 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.premium-tournament-card:hover {
    border-color: rgba(204, 255, 0, 0.3);
}

.t-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.t-badge {
    background: rgba(0, 218, 255, 0.08);
    border: 1px solid rgba(0, 218, 255, 0.2);
    color: var(--accent-blue);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.t-status-live {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.t-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
}

.t-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.t-card-meta div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.t-card-prize-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.t-prize-tag span {
    color: var(--primary);
    font-weight: 700;
}

.t-entry-tag span {
    color: #fff;
    font-weight: 600;
}

.listing-time-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: #a1a1aa;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* HERO CONTAINER */
.hero-section-wrapper {
    padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.1rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .hero-section-wrapper {
        padding-top: calc(5.8rem + env(safe-area-inset-top, 0px));
    }
}

.premium-hero-card {
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    width: 100%;
}

.hero-bg-images {
    position: relative;
    width: 100%;
    min-height: 250px;
}

.hero-banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    overflow: hidden;
}

.hero-banner-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Player image - right side, uniform sizing for all players */
.hero-player-img {
    position: absolute;
    right: -2% !important;
    bottom: 0 !important;
    height: 100% !important;
    width: auto;
    max-width: 65% !important;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 0 25px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

/* Messi - match other players */
.hero-player-messi {
    height: 100% !important;
    bottom: 0 !important;
    right: -2% !important;
    max-width: 65% !important;
}

/* Ronaldinho - match other players */
.hero-player-ronaldinho {
    height: 100% !important;
    bottom: 0 !important;
    right: -2% !important;
    max-width: 65% !important;
}

/* Keep old class for backwards compat but hide */
.hero-bg-img {
    display: none;
}

/* Per-slide text content */
.hero-slide-content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 58%;
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 3;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.3) 70%,
        transparent 100%
    );
    box-sizing: border-box;
}

.hero-slide-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.15;
    margin: 0 0 0.4rem 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

.hero-slide-sub {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.6rem 0;
    font-weight: 500;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-slide-btn {
    display: inline-block;
    width: fit-content;
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-slide-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shineSweep 3.5s infinite ease-in-out;
}

@keyframes shineSweep {
    0% {
        left: -150%;
    }
    45% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

.hero-slide-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero-fog-overlay {
    display: none;
}

/* Mobile responsive hero banner - exact 16:9 aspect ratio */
@media (max-width: 768px) {
    .premium-hero-card {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
        display: block !important;
    }
    .hero-bg-images {
        min-height: auto !important;
        aspect-ratio: 16 / 9 !important;
        height: 100% !important;
    }
    .hero-slide-content {
        width: 58% !important;
        padding: 1rem 0.8rem !important;
    }
    .hero-slide-title {
        font-size: clamp(1.05rem, 4.8vw, 1.3rem) !important;
        margin-bottom: 0.25rem !important;
    }
    .hero-slide-sub {
        font-size: clamp(0.65rem, 2.8vw, 0.75rem) !important;
        margin-bottom: 0.4rem !important;
    }
    .hero-player-img {
        height: 102% !important;
        bottom: 0 !important;
        right: -2% !important;
        max-width: 68% !important;
    }
    .hero-player-messi {
        height: 102% !important;
        bottom: 0 !important;
        right: -2% !important;
        max-width: 68% !important;
    }
    .hero-player-ronaldinho {
        height: 102% !important;
        bottom: 0 !important;
        right: -2% !important;
        max-width: 68% !important;
    }
    .hero-slide-btn {
        padding: 5px 12px !important;
        font-size: 0.65rem !important;
    }
}

.hero-card-content {
    position: relative;
    z-index: 3;
    max-width: 100%;
    margin: 0 auto;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    line-height: 1.18;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.95);
}

.hero-sub-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    color: #f4f4f5;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(204, 255, 0, 0.06);
    border: 1px solid rgba(204, 255, 0, 0.2);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.8px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    line-height: 1.18;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

.hero-sub-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    color: #f4f4f5;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

.hero-stat-pills {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-stat-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e4e4e7;
    font-family: 'Rajdhani', sans-serif;
    transition: border-color 0.2s ease;
}

.hero-stat-pill:hover {
    border-color: rgba(204, 255, 0, 0.3);
    color: #fff;
}

/* ==========================================================================
   ULTRA-PREMIUM PROFESSIONAL FOOTER
   ========================================================================== */
.premium-footer {
    background: linear-gradient(180deg, #0a0c12 0%, #040508 100%);
    border-top: 1px solid rgba(204, 255, 0, 0.2);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 4.5rem 0 2rem 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.premium-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.8;
}

/* Trust & Newsletter Top Banner */
.footer-trust-banner {
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.05) 0%, rgba(0, 240, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    backdrop-filter: blur(12px);
}

.footer-trust-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    color: #fff;
    text-transform: uppercase;
}

.footer-trust-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-trust-badges {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #eee;
    font-weight: 600;
}

.trust-badge-item i, .trust-badge-item svg {
    color: var(--primary);
}

/* Footer Main Grid */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}

.footer-brand-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-founders-tag {
    background: rgba(204, 255, 0, 0.08);
    border: 1px solid rgba(204, 255, 0, 0.2);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0.5rem;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-btn:hover {
    background: rgba(204, 255, 0, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 0 12px rgba(204, 255, 0, 0.3);
}

/* Footer Links Columns */
.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 1.2px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-item a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link-item a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* Contact Column Cards */
.footer-contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.footer-contact-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(204, 255, 0, 0.06);
}

.footer-ai-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 218, 255, 0.15) 0%, rgba(0, 218, 255, 0.05) 100%);
    border: 1px solid rgba(0, 218, 255, 0.3);
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-ai-btn:hover {
    background: rgba(0, 218, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 218, 255, 0.3);
    transform: translateY(-2px);
}

/* Payment Icons Row */
.footer-payment-methods {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.payment-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #666;
    font-size: 0.85rem;
}

.footer-heart {
    color: var(--primary);
    display: inline-block;
    vertical-align: middle;
    animation: heartBeat 1.5s infinite ease-in-out;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

@media (max-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-trust-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* CARD */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.card-img {
    aspect-ratio: 16 / 9;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-price {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-blue);
    color: #000;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

/* FORMS */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 4px;
    font-family: var(--font-body);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* FILE UPLOAD */
.file-drop-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: 4px;
    transition: 0.2s;
    background: var(--bg-card);
}

.file-drop-area:hover {
    border-color: var(--primary);
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.preview-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

/* PAGES */
.page {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    padding-top: calc(110px + env(safe-area-inset-top, 0px));
}

#home.page {
    padding-top: 0;
}

.page.active {
    display: block;
}

/* WISHLIST HEADER & CLOSE BTN */
.wishlist-header {
    margin-bottom: 2rem;
}

.wishlist-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.wishlist-close-btn:hover {
    background: rgba(204, 255, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}

.wishlist-close-btn i {
    width: 20px;
    height: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DETAILS PAGE */
.details-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .details-layout {
        grid-template-columns: 1.5fr 1fr;
        gap: 2rem;
        margin-top: 1rem;
    }
}

.detail-img-large {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.2rem;
    aspect-ratio: 2.2 / 1;
    object-fit: cover;
}

.detail-info {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    height: fit-content;
}

/* SQUAD DETAILS */
.squad-details {
    background: #111;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
}

.manager-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.manager-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text-muted);
}

.manager-card h4 {
    color: var(--text-main);
    font-size: 1.1rem;
}

/* SQUAD GRID */
.squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.player-card {
    background: #222;
    border-radius: 6px;
    height: 120px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;
}

/* PREMIUM PLAYER CARD ENHANCEMENTS */
.player-card {
    background: #000;
    /* Solid fallback */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.player-card:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(204, 255, 0, 0.2);
}

.player-card.epic {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.player-card.big-time {
    border-color: #ff3399;
    box-shadow: 0 0 15px rgba(255, 51, 153, 0.3);
}

.player-card.showtime {
    border-color: #00daff;
    box-shadow: 0 0 15px rgba(0, 218, 255, 0.3);
}

.player-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.player-card:hover::after {
    left: 100%;
}

.player-card-img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
}

.player-card:hover .player-card-img {
    transform: scale(1.1);
}

.player-card-info {
    text-align: center;
    z-index: 2;
    position: relative;
    width: 100%;
}

.player-card-name {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-card-rating {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

/* PLAYER CARD MODAL */
.card-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(8px);
}

.card-popup-content {
    background: #111;
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: popupScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupScale {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-card-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
}

.card-popup-img {
    width: 100%;
    max-width: 280px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(204, 255, 0, 0.4));
}

/* DRAG & DROP FOR DEALER */
.card-manager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px dashed #333;
    margin-top: 10px;
}

.draggable-card {
    cursor: grab;
}

.draggable-card:active {
    cursor: grabbing;
}

.drop-zone-active {
    border-color: var(--primary);
    background: rgba(204, 255, 0, 0.05);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    z-index: 0;
}

.player-card.epic {
    border-color: #b3e600;
}

.player-card.epic .card-bg {
    background: linear-gradient(135deg, #b3e600 0%, #000 100%);
}

.player-card.epic .player-rating {
    color: #b3e600;
}

.player-card.big-time {
    border-color: #ffcc00;
}

.player-card.big-time .card-bg {
    background: linear-gradient(135deg, #ffcc00 0%, #000 100%);
}

.player-card.big-time .player-rating {
    color: #ffcc00;
}

.player-card.showtime {
    border-color: #aa00ff;
}

.player-card.showtime .card-bg {
    background: linear-gradient(135deg, #aa00ff 0%, #000 100%);
}

.player-card.showtime .player-rating {
    color: #aa00ff;
}

.player-card.legend {
    border-color: #ffaaaa;
}

.player-card.legend .card-bg {
    background: linear-gradient(135deg, #ffaaaa 0%, #000 100%);
}

.player-card.legend .player-rating {
    color: #ffaaaa;
}

.player-card.highlight {
    border-color: #00daff;
}

.player-card.highlight .card-bg {
    background: linear-gradient(135deg, #00daff 0%, #000 100%);
}

.player-card.highlight .player-rating {
    color: #00daff;
}

.p-rating {
    font-weight: bold;
    color: #000;
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 35px;
    text-align: center;
}

.p-rating.epic {
    background: #b3e600;
    /* Greenish */
}

.p-rating.big-time {
    background: #ffcc00;
    /* Gold */
}

.p-rating.showtime {
    background: #aa00ff;
    color: white;
    /* Purple */
}

.p-rating.legend {
    background: #ffaaaa;
    /* Pinkish */
}

.p-name {
    flex-grow: 1;
    margin-left: 1rem;
    font-weight: 500;
}

.p-card-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    /* Higher than footer nav (1000) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* Prevent edge touching */
}

.modal.open {
    display: flex;
    opacity: 1;
}

/* Premium Image Zoom Styles */
#imageZoomModal {
    transition: opacity 0.3s ease;
}

#imageZoomModal.open #zoomed-image {
    transform: scale(1);
    opacity: 1;
}

#zoomed-image {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
}

.zoom-close:hover {
    color: var(--primary) !important;
    transform: scale(1.1);
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid var(--primary);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    /* Scrollable if too tall */
    overflow-y: auto;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.2);
}

/* Custom File Upload Button */
.custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    color: #ccc;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    margin-top: 5px;
}

.custom-file-upload:hover {
    border-color: var(--primary);
    color: #fff;
    background: #333;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.1);
}

.custom-file-upload i {
    color: var(--primary);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.qr-code-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
    margin: 1.5rem auto;
    display: block;
}

/* TOGGLE SWITCH */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* CART SIDEBAR */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    bottom: 0;
    width: 350px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 3000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item img,
.cart-item-img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    /* Prevent shrinking/growing */
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
    /* Allow taking up remaining space */
    min-width: 0;
    /* Prevent text overflow from stretching flex */
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 20px));
}

@media (max-width: 768px) {
    .cart-footer {
        padding-bottom: 110px !important;
        /* Space for footer-nav / bottom toolbars */
    }
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary);
}

.btn-remove {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 5px;
    text-decoration: underline;
}

/* ANIMATIONS & GLOW */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--primary);
    }

    50% {
        box-shadow: 0 0 20px var(--primary), 0 0 10px var(--primary);
    }

    100% {
        box-shadow: 0 0 5px var(--primary);
    }
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.card:hover .card-img img {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.hero h1 span {
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

/* Glassmorphism for Modal */
.modal-content {
    background: rgba(22, 22, 26, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Scrollbar styles removed - hidden globally */

/* Toggle Switch Enhancement */
.slider {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

/* LANDING PAGE */
#landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.landing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.landing-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeIn 1.5s ease;
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
    /* text-transform: uppercase; Removed */
    letter-spacing: 1px;
}

.landing-logo {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: 5px;
}

.landing-logo span {
    color: var(--primary);
}

.landing-content p {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-landing {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #000;
    background: var(--primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
}

.btn-landing:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(204, 255, 0, 0.6);
    background: #fff;
}

/* FILTER BAR */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.geo-select {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.geo-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.geo-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

.filter-chips::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.filter-chip {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ccc;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.filter-chip:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.filter-chip.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
}

/* BLITZ CARD */
.player-card.blitz {
    border-color: #ff3300;
}

.player-card.blitz .card-bg {
    background: linear-gradient(135deg, #ff3300 0%, #000 100%);
}

.player-card.blitz .player-rating {
    color: #ff3300;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.8);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #333;
    border-radius: 2px;
}

.active-mode {
    background: var(--primary) !important;
    color: #000 !important;
    border-color: var(--primary) !important;
}

.btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

/* DEALER DASHBOARD STYLES */
.rank-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #000;
}

.rank-badge.member {
    background: #444;
    color: #ccc;
    border: 1px solid #555;
}

.rank-badge.bronze {
    background: linear-gradient(145deg, #cd7f32, #8b4513);
    color: #fff;
    border: 1px solid #8b4513;
    box-shadow: 0 2px 5px rgba(139, 69, 19, 0.4);
}

.rank-badge.silver {
    background: linear-gradient(145deg, #f0f0f0, #a9a9a9);
    color: #000;
    border: 1px solid #808080;
    box-shadow: 0 2px 5px rgba(169, 169, 169, 0.4);
}

.rank-badge.platinum {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    color: #000;
    border: 1px solid #ccc;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.rank-badge.gold {
    background: linear-gradient(145deg, #ffd700, #ffa500);
    color: #000;
    border: 1px solid #daa520;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.rank-badge.diamond {
    background: linear-gradient(145deg, #e0ffff, #00bfff);
    color: #000;
    border: 1px solid #00bfff;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.8);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* In case of specific order request: 500 Platinum, 750 Gold */

/* Enhanced Dealer Portal */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally */
    justify-content: center;
    /* Center vertically */
    text-align: center;
    /* Ensure text alignment */
    padding: 1.5rem;
    /* Ensure consistent padding */
}

.action-card {
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(204, 255, 0, 0.2);
}

.dealer-badge-large {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rank-legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 100px;
    /* Fixed width to prevent squeezing */
    scroll-snap-align: center;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    padding: 15px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    overflow: hidden;
    /* For shine sweep */
}

.rank-legend-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.rank-legend-item.active {
    background: rgba(204, 255, 0, 0.08);
    border-color: rgba(204, 255, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(204, 255, 0, 0.15);
    z-index: 2;
    transform: scale(1.05);
}

.rank-legend-item.achieved {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.rank-icon {
    width: 58px;
    height: 58px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.rank-icon-large {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 8px;
}

/* Premium Shining Effect for Active/Current Rank Icons */
.rank-legend-item.active .rank-icon,
.rank-icon-large {
    animation: rankShine 3s infinite;
}

@keyframes rankShine {

    0%,
    100% {
        filter: brightness(1) contrast(1);
        transform: scale(1);
    }

    50% {
        filter: brightness(1.5) contrast(1.2) saturate(1.2);
        transform: scale(1.05);
    }
}

/* Keep rank-dot for generic/member if image fails/missing */
.rank-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.rank-legend-item.active .rank-dot {
    box-shadow: 0 0 15px currentColor;
}

.rank-legend-item small {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-legend-item.active small {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

.rank-legend {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    margin-top: 2rem;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    -webkit-overflow-scrolling: touch;
}

.rank-legend::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

/* Premium Dealer Progress Bar */
.d-progress-bar {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

#d-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ccff00, #00ff88, #00b4ff, #ccff00);
    background-size: 300% 100%;
    animation: premiumGradient 4s linear infinite;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.6);
}

@keyframes premiumGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* Premium Dealer Table Styling */
.dealer-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.dealer-table th {
    color: #555;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px;
    font-weight: 700;
}

.dealer-table tr {
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.dealer-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.005);
}

.dealer-table td {
    padding: 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dealer-table td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px 0 0 8px;
}

.dealer-table td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0 8px 8px 0;
}

.dealer-panel {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(18, 18, 18, 0.95));
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.dealer-panel h3 {
    margin-bottom: 1.2rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-dot.silver {
    background: linear-gradient(145deg, #f0f0f0, #a9a9a9);
    border: 1px solid #808080;
}

.rank-dot.platinum {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: 1px solid #ccc;
}

.rank-dot.gold {
    background: linear-gradient(145deg, #ffd700, #ffa500);
    border: 1px solid #daa520;
}

.rank-dot.diamond {
    background: linear-gradient(145deg, #e0ffff, #00bfff);
    border: 1px solid #00bfff;
    box-shadow: 0 0 10px var(--accent-blue);
}

/* FOOTER NAV (Spotify-Style Foggy Translucent Bottom Bar) */
.footer-nav {
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    min-width: 320px;
    max-width: 480px;
    background: rgba(18, 18, 22, 0.78) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px;
    z-index: 10000;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 8px 6px;
    border-radius: 12px;
    position: relative;
    flex: 1;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent !important;
    border: none !important;
}

.footer-link i,
.footer-link svg {
    width: 22px;
    height: 22px;
    stroke-width: 2px;
    margin-bottom: 0px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease, stroke 0.25s ease, filter 0.25s ease;
}

.footer-link .nav-label {
    display: none !important;
}

/* Active State - Minimal Clean Highlight (No dot, no border) */
.footer-link.active {
    color: var(--primary) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.footer-link.active i,
.footer-link.active svg {
    color: var(--primary) !important;
    stroke: var(--primary) !important;
    transform: translateY(-1px) scale(1.1);
    filter: drop-shadow(0 0 6px rgba(204, 255, 0, 0.45));
}

/* Hover/Tap Feedback — only on pointer devices to prevent sticky touch highlights on mobile */
@media (hover: hover) {
    .footer-link:hover,
    .footer-link:focus {
        color: #ffffff;
        outline: none;
    }

    .footer-link:hover i,
    .footer-link:hover svg {
        transform: translateY(-1px) scale(1.05);
        color: var(--primary);
    }
}

.footer-link:focus {
    outline: none;
}

/* Clean Football Icon Styling */
.football-icon {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease, color 0.2s ease;
    transform-origin: center center;
    cursor: pointer;
}

@media (hover: hover) {
    .footer-link:hover .football-icon,
    .mobile-nav-card:hover .football-icon,
    .football-icon:hover {
        transform: scale(1.12);
        color: var(--primary) !important;
    }
}

.footer-link.active .football-icon,
.mobile-nav-card.active .football-icon {
    color: var(--primary) !important;
}

.football-icon:active,
.footer-link:active .football-icon,
.mobile-nav-card:active .football-icon {
    transform: scale(0.92);
    transition: transform 0.1s ease;
}

.header-football-icon {
    vertical-align: -3px;
}

/* Centered Highlighted Add/Upload Button */
.center-add-btn .center-add-inner {
    width: 32px !important;
    height: 32px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-image: linear-gradient(90deg, #ccff00, #00ff88, #00b4ff, #ccff00) !important;
    background-size: 300% 100% !important;
    background-repeat: repeat !important;
    background-position: 0% 50%;
    animation: premiumGradient 4s linear infinite !important;
    box-shadow: 0 0 12px rgba(204, 255, 0, 0.4) !important;
    margin-bottom: 2px;
    transition: all 0.25s ease;
}

.center-add-btn .center-add-inner i,
.center-add-btn .center-add-inner svg {
    color: #000 !important;
    stroke: #000 !important;
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.5px !important;
    margin-bottom: 0 !important;
}

.center-add-btn:hover .center-add-inner {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(204, 255, 0, 0.6);
}

/* Notification Badge on Footer Updates Icon */
.footer-notif-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4444;
    border: 1.5px solid #0c0c10;
    box-shadow: 0 0 6px #ff4444;
}

/* SMOOTH IMAGE POP ZOOM MODAL & ANIMATION */
#imageZoomModal {
    opacity: 0;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.28s ease !important;
    pointer-events: none;
}

#imageZoomModal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#zoom-wrapper {
    transform: scale(0.85);
    transition: transform 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    will-change: transform;
}

#imageZoomModal.open #zoom-wrapper {
    transform: scale(1) !important;
}

.card-img {
    cursor: zoom-in !important;
    overflow: hidden;
}

.card-img img {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-img:hover img {
    transform: scale(1.04);
}

/* COMBINED DEALER PILL BUTTON (SELL + DASHBOARD) FOR DEALERS */
.dealer-combined-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(18, 18, 22, 0.95);
    border: 1px solid rgba(204, 255, 0, 0.35);
    padding: 3px 6px;
    border-radius: 999px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(204, 255, 0, 0.1);
    flex-shrink: 0;
}

.dealer-pill-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #aacc00 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.35);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.dealer-pill-icon-btn:hover,
.dealer-pill-icon-btn:active {
    transform: scale(1.08);
}

.dealer-pill-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, var(--primary) 0%, #aacc00 100%);
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.3);
}

.dealer-pill-sub-btn.dashboard {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary) !important;
    box-shadow: none;
    border: 1px solid rgba(204, 255, 0, 0.2);
}

.dealer-pill-sub-btn:hover,
.dealer-pill-sub-btn:active {
    transform: scale(1.04);
}

.dealer-pill-sub-btn.dashboard:hover {
    background: rgba(204, 255, 0, 0.15);
    border-color: var(--primary);
}

.dealer-pill-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 2px;
}

.view-more-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: var(--primary) !important;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    box-shadow: none !important;
}

.view-more-pill-btn:hover,
.view-more-pill-btn:active {
    background: transparent !important;
    color: var(--primary) !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.view-more-pill-btn svg,
.view-more-pill-btn i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    stroke-width: 2.5px;
}

.view-more-pill-btn:hover svg,
.view-more-pill-btn:hover i {
    transform: translateX(6px);
}

.center-add-inner i,
.center-add-inner svg {
    color: #000 !important;
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.5px !important;
}

.center-add-btn:hover .center-add-inner,
.center-add-btn.active .center-add-inner {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(204, 255, 0, 0.65);
}

/* Active State - Minimal Spotify Style Clean Highlight */
.footer-link.active {
    color: var(--primary) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.footer-link.active i,
.footer-link.active svg {
    color: var(--primary) !important;
    stroke: var(--primary) !important;
    transform: translateY(-1px) scale(1.1);
    filter: drop-shadow(0 0 6px rgba(204, 255, 0, 0.45));
    stroke-width: 2.2px;
}

/* Hover/Focus/Active State Unified — desktop only */
@media (hover: hover) {
    .footer-link:hover,
    .footer-link:focus {
        color: var(--primary);
        outline: none;
    }

    .footer-link:hover i,
    .footer-link:hover svg {
        transform: translateY(-3px);
        filter: drop-shadow(0 0 8px rgba(204, 255, 0, 0.6));
    }
}


/* --- POINT EXCHANGE PAGE --- */
.exchange-panel {
    background: linear-gradient(145deg, #1b1b1f, #222);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.exchange-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.exchange-balance-card {
    text-align: center;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 35, 0.9));
    border: 1px solid var(--accent-blue);
    padding: 2.5rem;
}

.exchange-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin: 1rem 0;
    text-shadow: 0 0 25px rgba(0, 218, 255, 0.3);
    font-family: var(--font-heading);
}

.history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.history-table th {
    text-align: left;
    color: #888;
    font-size: 0.8rem;
    padding: 0 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-table tr.history-row {
    background: #1a1a1a;
    transition: 0.2s;
}

.history-table tr.history-row:hover {
    background: #252525;
    transform: scale(1.01);
}

.history-table td {
    padding: 1rem;
    color: #ccc;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.history-table td:first-child {
    border-left: 1px solid #333;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.history-table td:last-child {
    border-right: 1px solid #333;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* --- MOBILE & RESPONSIVE --- */
@media (max-width: 768px) {
    main {
        padding-bottom: 70px;
    }

    .nav-icons-group {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        width: 100%;
        margin-top: 1rem;
        flex-direction: row !important;
        /* Force row on mobile */
    }
}

/* ==========================================================================
   PRO eSPORTS TOURNAMENTS LAYOUT (9.5/10 PREMIUM AESTHETICS)
   ========================================================================== */

/* Pulsing Live Badge */
.live-dot-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.live-dot-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulseLiveDot 1.5s infinite ease-in-out;
}

@keyframes pulseLiveDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Override page top gap for tournaments specifically */
#tournaments.page {
    padding-top: 0;
}

/* Master Header Container */
.tourney-hero-header {
    margin-bottom: 1.25rem;
}

.th-top-row {
    padding: 0.6rem 0 0.4rem 0;
}

.tourney-arena-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: #fff;
    font-weight: 800;
    margin: 0 0 2px 0;
    letter-spacing: -0.4px;
    display: block;
}

.tourney-page-sub {
    color: #666;
    font-size: 0.75rem;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Sleek Navigation Toolbar */
.tourney-nav-toolbar {
    margin-top: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tourney-minimal-tabs {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tourney-minimal-tabs::-webkit-scrollbar { display: none; }

.tourney-tab-item {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 0 10px 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.18s ease, border-color 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

.tourney-tab-item:hover { color: #aaa; }

.tourney-tab-item.active {
    color: #fff;
    font-weight: 700;
    border-bottom-color: var(--primary, #ccff00);
}

.joined-count-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
}

/* Filters Toolbar Bar */
.tourney-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.9rem;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tourney-filter-bar::-webkit-scrollbar { display: none; }

.tf-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.tf-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.tf-pills {
    display: flex;
    gap: 3px;
}

.tf-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.tf-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #666;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.tf-btn:hover {
    color: #bbb;
    background: rgba(255, 255, 255, 0.03);
}

.tf-btn.active {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-weight: 700;
    border-color: rgba(255, 255, 255, 0.12);
}

.tf-btn--ended.active {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
}



/* Tournament Card V2 Layout — Compact & Mobile-Optimized */
.tournament-card-v2 {
    background: #111114;
    border: 1px solid #1f1f24;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: border-color 0.2s ease;
}
.tournament-card-v2:hover {
    border-color: #2e2e36;
}

.tc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tc-badges {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tc-badge {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.tc-badge--open {
    color: #38bdf8;
    background: rgba(56,189,248,0.1);
    border: 1px solid rgba(56,189,248,0.22);
}

.tc-badge--paid {
    color: #4ade80;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.22);
}

.tc-badge--ended {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.tc-type-badge {
    color: #777;
    font-size: 0.62rem;
    font-weight: 700;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1px 5px;
    border-radius: 4px;
}

.tc-date {
    color: #555;
    font-size: 0.7rem;
    font-weight: 500;
}

.tc-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.25;
}

.tc-slots {
    margin-top: -0.1rem;
}

.tc-slots-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 3px;
}

.tc-prize-row {
    background: #0b0b0e;
    border: 1px solid #18181e;
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tc-label {
    color: #444;
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.tc-prize-val {
    color: var(--primary, #ccff00);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.88rem;
}

.tc-entry-val {
    color: #eee;
    font-weight: 700;
    font-size: 0.82rem;
}

.tc-actions {
    display: flex;
    gap: 6px;
}

.tc-btn {
    flex: 1;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.tc-btn--outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
}
.tc-btn--outline:hover {
    border-color: rgba(255,255,255,0.22);
    color: #fff;
}

.tc-btn--primary {
    background: var(--primary, #ccff00);
    color: #000;
    border: none;
}
.tc-btn--primary:hover {
    opacity: 0.9;
}

.tc-winner-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    padding: 5px 8px;
    text-align: center;
    color: #777;
    font-size: 0.72rem;
}
.tc-winner-row strong {
    color: #fff;
}



/* Slots Progress Bar */
.slots-progress-wrap {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    height: 4px;
    width: 100%;
    overflow: hidden;
    margin-top: 6px;
}

.slots-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, var(--primary, #ccff00));
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Bracket Layout */
.bracket-wrapper {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}

.bracket-column {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-width: 190px;
    flex-shrink: 0;
}

.bracket-round-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #666;
    margin-bottom: 0.8rem;
    text-align: center;
    font-family: var(--font-heading);
}

.bracket-match-card {
    background: #141418;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 8px 10px;
    margin: 6px 0;
}

.bracket-match-card.final-match {
    border-color: rgba(204, 255, 0, 0.3);
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.04), #141418);
}

.bracket-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #888;
}

.bracket-player.winner {
    color: #fff;
    font-weight: 700;
}

.bracket-player-score {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
}

/* Minimal Table */
.tourney-table-wrap {
    background: #111114;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
}

.tourney-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.82rem;
}

.tourney-table th {
    background: #16161a;
    padding: 10px 12px;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #222;
}

.tourney-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #1a1a1e;
    color: #bbb;
}

.tourney-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.tourney-table .rank-cell {
    font-family: var(--font-heading);
    font-weight: 800;
    width: 40px;
    text-align: center;
}

.tourney-table .rank-1 { color: #ffd700; }
.tourney-table .rank-2 { color: #c0c0c0; }
.tourney-table .rank-3 { color: #cd7f32; }

.form-w { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.form-d { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.form-l { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* ==========================================================================
   MY MATCHES — Compact Expandable Cards
   ========================================================================== */

/* Outer card */
.my-match-card {
    background: #111114;
    border: 1px solid #222;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.my-match-card.expanded {
    border-color: rgba(204,255,0,0.18);
}

/* Compact always-visible header */
.mmc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}
.mmc-header:active { background: rgba(255,255,255,0.02); }
.mmc-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.mmc-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mmc-paid-tag {
    background: rgba(34,197,94,0.12);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.28);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.mmc-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mmc-sub {
    color: #666;
    font-size: 0.74rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mmc-vs {
    color: var(--primary, #ccff00);
    font-weight: 800;
}

.mmc-round-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
}

/* Animated chevron */
.mmc-chevron {
    color: #555;
    transition: transform 0.28s ease;
    flex-shrink: 0;
}
.mmc-chevron.rotated {
    transform: rotate(180deg);
    color: #aaa;
}

/* Expandable section */
.mmc-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.38s ease, opacity 0.28s ease;
}

.mmc-details-inner {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid #1c1c20;
}

/* Match info row inside expand */
.mmc-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 0 0.65rem 0;
    flex-wrap: wrap;
}

.mmc-label {
    color: #555;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
    margin-bottom: 3px;
}

.mmc-matchup {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.mmc-meta {
    color: #666;
    font-size: 0.74rem;
    margin-top: 2px;
}

/* Room Info button */
.mmc-room-btn {
    background: #1a1a20;
    border: 1px solid rgba(204,255,0,0.25);
    color: var(--primary, #ccff00);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.mmc-room-btn:hover { background: rgba(204,255,0,0.06); }

/* Room info reveal block (toggle) */
.mmc-room-info {
    background: #0d0d11;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.6rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.2s ease;
}
.mmc-room-info.room-open {
    max-height: 200px;
    opacity: 1;
    padding: 0.7rem 0.9rem;
}

.mmc-room-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.mmc-room-val {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.mmc-room-note {
    color: #555;
    font-size: 0.72rem;
    margin: 6px 0 0 0;
    line-height: 1.4;
}

/* Dividers & prize row */
.mmc-divider {
    height: 1px;
    background: #1c1c20;
    margin: 0.6rem 0;
}

.mmc-prize-row {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 0.78rem;
    color: #666;
    padding: 0.15rem 0;
    flex-wrap: wrap;
}
.mmc-prize-row strong { color: #ccc; }

.mmc-in-bracket {
    margin-left: auto;
    color: #4ade80;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Bracket header row inside expand */
.mmc-bracket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}


.tournament-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.tournament-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.t-status {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.t-status.open {
    background: rgba(204, 255, 0, 0.2);
    color: var(--primary);
}

.t-status.finished {
    background: rgba(255, 51, 51, 0.2);
    color: #ff3333;
}

.t-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-family: var(--font-heading);
}

.t-info {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.t-prize {
    font-size: 1.1rem;
    color: var(--accent-blue);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.winners-grid {
    display: flex;
    flex-direction: column;
}

/* Hall of Fame compact rows */
.hof-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hof-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 0;
    border-bottom: 1px solid #1c1c20;
}
.hof-row:last-child { border-bottom: none; }

.hof-rank {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.hof-info {
    flex: 1;
    min-width: 0;
}

.hof-winner {
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hof-event {
    color: #555;
    font-size: 0.74rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hof-prize {
    color: var(--primary, #ccff00);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.88rem;
    flex-shrink: 0;
}


/* UPDATES */
.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.update-item {
    background: rgba(22, 22, 26, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--primary);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.update-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.update-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* --- LinkedIn-style Custom Notification Center --- */
.notif-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
}
.notif-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.notif-pill.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* iOS Style Premium Switch Toggle */
.premium-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.premium-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.premium-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.08);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.premium-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.premium-switch input:checked + .premium-switch-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}
.premium-switch input:checked + .premium-switch-slider:before {
    transform: translateX(20px);
    background-color: #000;
}
.premium-switch input:disabled + .premium-switch-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* LinkedIn-style Notification Rows */
.premium-notif-row {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: transparent;
    transition: background 0.2s ease;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.03);
}
.premium-notif-row.unread {
    background: rgba(0, 218, 255, 0.025) !important;
    border-color: rgba(0, 218, 255, 0.08);
}
.premium-notif-row:hover {
    background: rgba(255,255,255,0.03);
}
.premium-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0073b1;
    position: absolute;
    left: 6px;
    top: 22px;
}
.premium-notif-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

/* New desktop footer tweak */
@media (min-width: 769px) {
    .footer-nav {
        display: none;
    }
}

/* Full Screen Layout restored */
@media (min-width: 1024px) {

    /* Ensure content is centered but backgrounds can be full width if transparency allows, 
       or just rely on the .container class to center content. 
       We mostly just want to undo the 'floating box' look. */
    body {
        /* Reset any body centering */
        display: block;
        min-height: 100dvh;
    }
}

/* ANIMATIONS - commented out to prevent immediate activation of all reveal elements */
/*
.reveal {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/

/* Hover Glows for Cards */
.listing-card,
.tournament-card,
.update-item {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.listing-card:hover,
.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(204, 255, 0, 0.2);
    border-color: var(--primary);
}

/* MOBILE LAYOUT FIXES (Enhanced for specific viewports) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Landing Page Mobile Fixes */
    .landing-logo {
        font-size: 2.8rem !important;
        letter-spacing: 3px !important;
    }

    .landing-content p {
        font-size: 1.1rem !important;
        letter-spacing: 1px !important;
        margin-bottom: 2rem !important;
    }

    .btn-landing {
        padding: 1rem 2.5rem !important;
        font-size: 1.1rem !important;
    }

    .landing-content {
        padding: 0 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* GRID FIXES */
    /* Force grids to single column on very small screens */
    .listings-grid,
    #home-tournaments-preview {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    /* CARD SIZING - Ensure they fit within 360px - 440px widths */
    .listing-card,
    .tournament-card {
        width: 100%;
        max-width: 100%;
        /* Prevent overflow */
        margin: 0 auto;
        box-sizing: border-box;
        /* Include padding/border in width */
    }

    /* NAVBAR FIXES */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
        width: 90%;
        margin: 0 auto;
    }

    .desktop-only {
        display: none !important;
    }

    .logo {
        font-size: 1.4rem;
        /* Safe size for 360px width */
    }

    /* TYPOGRAPHY SCALING */
    .section-title {
        text-align: center;
        font-size: 1.5rem;
        /* Reduced for mobile */
        margin-bottom: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        /* Fit text on small screens */
        line-height: 1.3;
        padding: 0 10px;
    }

    .hero-content p {
        font-size: 0.9rem;
        padding: 0 20px;
    }

    /* SEARCH BAR */
    .search-bar {
        width: 90%;
        margin: 0 auto;
    }

    .search-bar input {
        font-size: 16px;
        /* Prevent iOS zoom */
        padding: 0.8rem 1rem 0.8rem 2.5rem;
    }

    /* FOOTER NAV adjustments (Floating Dock) */
    .footer-nav {
        width: calc(100% - 28px) !important;
        min-width: 320px !important;
        max-width: 420px !important;
        bottom: calc(16px + env(safe-area-inset-bottom)) !important;
        padding: 10px 18px !important;
    }

    .footer-link {
        width: 48px !important;
        height: 48px !important;
    }

    .footer-link i,
    .footer-link svg {
        width: 24px !important;
        height: 24px !important;
    }

    .center-add-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Ensure content doesn't get hidden behind footer */
    body {
        padding-bottom: calc(95px + env(safe-area-inset-bottom));
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 370px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .footer-nav {
        width: calc(100% - 16px) !important;
        min-width: 290px !important;
        bottom: 12px !important;
        padding: 8px 12px !important;
    }

    .footer-link {
        width: 44px !important;
        height: 44px !important;
    }

    .footer-link i,
    .footer-link svg {
        width: 22px !important;
        height: 22px !important;
    }
}

/* NATIVE APP-LIKE SIZING FIXES */

/* Global Mobile adjustments for App Feel */
@media (max-width: 480px) {

    /* Hero Section - App Splash Screen Style */
    .parallax-hero {
        height: 100dvh;
        /* Dynamic Viewport Height for iOS */
        /* Full viewport height like an app launch screen */
        min-height: auto;
        padding-bottom: 80px;
        /* Space for bottom content overlap if any */
    }

    /* Logo/Heading Sizing - Compact & Sleek */
    .hero h1 {
        font-size: 1.8rem;
        /* Much smaller, cleaner */
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    /* Subtext */
    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        color: #ccc;
    }

    /* Main CTA Button - App Style */
    .btn-primary {
        padding: 0.7rem 2rem;
        font-size: 0.9rem;
        letter-spacing: 1px;
        width: auto;
        min-width: 160px;
        border-radius: 50px;
        /* Pill shape */
    }

    /* Section Titles */
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: left;
        /* Align left like many modern apps */
        padding-left: 0.5rem;
        border-left: 3px solid var(--primary);
        line-height: 1;
    }

    /* Grid Spacing */
    .listings-grid,
    #home-tournaments-preview {
        gap: 1rem;
        /* Tighter spacing */
    }

    /* Card Polish */
    .listing-card,
    .tournament-card {
        border-radius: 12px;
        /* Softer corners */
        overflow: hidden;
    }
}

/* Small Screens Override (iPhone SE, older Androids) */
@media (max-width: 370px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* SPECIFIC OVERRIDES FOR SMALL & MEDIUM MOBILE (Requested to be smaller) */
@media (max-width: 420px) {

    /* Reduce sizes further for < 420px (Small/Medium) */
    .hero h1 {
        font-size: 1.5rem !important;
        /* Force smaller size */
        margin-bottom: 0.3rem;
    }

    .hero p {
        font-size: 0.8rem !important;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .btn-primary {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.8rem !important;
        min-width: 140px;
    }

    /* Adjust Hero Height to be more compact */
    .parallax-hero {
        height: 100dvh;
        max-height: 750px;
        /* Cap height for medium screens so it doesn't feel too stretched */
    }
}

/* Extra Small (360px) Specific */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.3rem !important;
    }

    .listings-grid {
        gap: 0.8rem;
    }

    /* FIX: Ensure Dealer Dashboard Header is visible on mobile */
    #dealer-dashboard {
        padding-top: 2rem;
        /* Add breathing room from navbar */
    }

    #dealer-dashboard .section-header {
        flex-direction: column;
        /* Stack rank badge under title */
        align-items: flex-start !important;
        gap: 1rem;
    }

    /* FIX: Ensure User/Dealer Options in Navbar are visible */
    .nav-links {
        /* Ensure flex container handles small widths */
        flex-wrap: nowrap;
    }

    #nav-user-profile {
        /* Force visibility and alignment on mobile */
        display: flex !important;
        margin-left: 10px !important;
        /* Move closer to cart, remove 'auto' */
        gap: 10px !important;
        /* Tighter gap */
        align-items: center;
    }

    #user-name-display {
        display: none;
        /* Hide name on super small screens to save space */
    }

    #nav-dealer-link {
        font-size: 1rem;
        /* Reset font size for icon, text hidden via span */
        display: flex !important;
        align-items: center;
        margin-right: 5px;
    }

    #nav-dealer-link .desktop-text {
        display: none !important;
        /* Force hide text on mobile */
    }

    /* Make the icons bigger and glowing for premium touch */
    #nav-dealer-link svg,
    #nav-user-profile svg.feather-log-out {
        width: 24px;
        height: 24px;
        stroke-width: 2.5;
        filter: drop-shadow(0 0 8px rgba(0, 218, 255, 0.6));
        /* Cyan glow for Dashboard */
    }

    #nav-user-profile svg.feather-log-out {
        color: #ff3333;
        margin-left: 8px;
        filter: drop-shadow(0 0 5px rgba(255, 51, 51, 0.5));
        /* Red glow for logout */
    }

    /* PREMIUM MOBILE DASHBOARD STYLING */
    #dealer-dashboard .panel {
        background: linear-gradient(145deg, #121215, #1a1a1e) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    }

    #dealer-dashboard .stat-card {
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(5px);
    }
}

/* DESKTOP SCALING (Laptop/PC) - Balanced 'Perfect' Size */
@media (min-width: 1024px) {
    html {
        font-size: 20px;
        /* Balanced: larger than mobile, smaller than prev giant */
    }

    .container {
        max-width: 1300px;
        /* Standard laptop width */
        padding: 0 3rem;
    }

    .hero h1 {
        font-size: 3.5rem;
        /* Clean, big but not huge */
        max-width: 15ch;
        /* Force 2-line wrap: "Upgrade Your" (break) "eFootball Squad" */
        margin: 0 auto 1rem auto;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .navbar {
        padding: 1.2rem 0;
    }

    .nav-links a {
        font-size: 1rem;
        margin-left: 1.5rem;
    }
}

/* --- MOBILE HEADER REFACTOR --- */
@media (max-width: 768px) {
    main {
        padding-bottom: 70px;
    }

    .menu-toggle {
        display: none !important;
        /* Hide hamburger */
    }

    .nav-links {
        display: flex !important;
        /* Always visible */
        flex-direction: row;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .nav-icons-group {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 18px;
        /* Slightly tighter for better proportion */
        width: 100%;
        margin-top: 0;
        padding-right: 0 !important;
    }

    /* UNIFIED ICON STYLES FOR MOBILE */
    .nav-icons-group svg {
        width: 24px !important;
        height: 24px !important;
        stroke-width: 2px;
        color: #e0e0e0;
        /* Premium off-white */
        transition: 0.3s;
        filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    }

    /* Dashboard Icon Specifics - PURE ICON ONLY */
    .btn-premium-dashboard {
        background: transparent !important;
        border: none !important;
        /* Remove border to match others */
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        /* Let it be natural size */
        height: auto !important;
        min-width: unset !important;
        border-radius: 0 !important;
        align-items: center;
        justify-content: center;
    }

    /* Hide the text absolutely */
    .btn-premium-dashboard .dashboard-text {
        display: none !important;
    }

    .btn-premium-dashboard i,
    .btn-premium-dashboard svg {
        margin: 0 !important;
        width: 24px !important;
        /* Exact match to other icons */
        height: 24px !important;
        color: var(--accent-blue) !important;
        filter: drop-shadow(0 0 5px rgba(0, 218, 255, 0.4)) !important;
    }



    /* Profile Active State */
    #nav-profile-icon svg {
        color: #fff !important;
    }

    /* Logout Icon */
    .nav-icons-group .feather-log-out {
        color: #ff4444 !important;
    }

    /* BADGE ADJUSTMENT */
    .badge {
        top: -6px;
        right: -8px;
        background: var(--primary);
        color: #000;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.6rem;
        padding: 0;
        box-shadow: 0 0 5px var(--primary);
    }
}

/* Header Separator for Mobile */
@media (max-width: 768px) {
    .navbar {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(10, 10, 12, 0.95);
        /* Slightly darker/more opaque */
    }
}

/* --- LOGIN/SIGNUP TOGGLE BUTTONS --- */
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    transition: 0.3s;
    cursor: pointer;
    display: inline-block;
}

.btn-outline:hover,
.btn-outline.active-mode {
    background: var(--primary) !important;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.4);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* MANAGE SQUAD UI */
.ms-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #111;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #222;
    margin-bottom: 10px;
}

.ms-item-img {
    width: 40px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    background: #222;
}

.ms-item-info {
    flex: 1;
}

.ms-item-remove {
    color: #ff4444 !important;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
}

.ms-item-remove:hover {
    transform: scale(1.1);
}

.uploading-animation {
    background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SQUAD GRID & PLAYER CARDS OPTIMIZATION */
.squad-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
}

@media (max-width: 768px) {
    .squad-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .manager-card {
        margin-bottom: 0.5rem !important;
    }

    .squad-details {
        padding: 5px !important;
    }
}

.player-card {
    opacity: 1 !important;
    transform: none !important;
    aspect-ratio: 3 / 4.2 !important;
    /* Perfect Portrait Ratio */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    border: 1px solid #222;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    /* Contain to prevent cropping, or use cover */
    z-index: 1;
}

.player-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 10px 5px;
    z-index: 2;
    text-align: center;
}

.player-card-rating {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

.player-card-name {
    font-size: 0.8rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- PREMIUM 3D CAROUSEL SLIDER --- */
/* --- PREMIUM 3D CAROUSEL SLIDER (SWIPER) --- */
.swiper {
    padding-bottom: 50px !important;
    /* Space for pagination dots */
}

.swiper-slide {
    width: 320px;
    max-width: 90vw;
    /* Safety constraint */
    height: auto;
    transition: transform 0.3s ease;
}

.swiper-pagination-bullet {
    background: var(--primary);
}

@media(max-width: 768px) {
    .swiper-slide {
        width: 280px !important;
        height: auto !important;
        border-radius: 12px !important;
    }

    .slider-title {
        display: none !important;
    }

    .desktop-navigation-arrow,
    .swiper-pagination {
        display: none !important;
    }
}

/* =========================================
   MY SALES PAGE
   ========================================= */

/* Summary stat boxes row */
/* Summary stat boxes row */
.my-sales-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .my-sales-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

.my-sales-stat-box {
    background: linear-gradient(145deg, #0e0e12, #14141a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.my-sales-stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
}

.my-sales-stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, var(--card-glow, rgba(255,255,255,0.02)), transparent 70%);
    pointer-events: none;
}

.my-sales-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    width: 100%;
}

.my-sales-stat-box-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #8c8c9a;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: var(--font-heading);
}

.my-sales-stat-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-bg, rgba(255,255,255,0.05));
    color: var(--icon-color, #fff);
}

.my-sales-stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.my-sales-stat-sub {
    font-size: 0.75rem;
    color: var(--sub-color, #888);
    font-weight: 500;
}

/* Card grid */
.my-sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding-bottom: 4rem;
}

/* Individual card */
.my-sales-card {
    background: rgba(20, 20, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.3s,
        border-color 0.3s;
    cursor: default;
}

.my-sales-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(204, 255, 0, 0.12);
    border-color: rgba(204, 255, 0, 0.3);
}

.my-sales-card.ms-card-sold {
    opacity: 0.75;
    border-color: rgba(204, 255, 0, 0.15);
}

.my-sales-card.ms-card-sold:hover {
    opacity: 1;
}

/* Image wrapper */
.ms-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.ms-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.my-sales-card:hover .ms-img-wrap img {
    transform: scale(1.05);
}

/* Status pill overlay */
.ms-status-pill {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 5;
}

/* Badges */
.ms-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.ms-badge-sold {
    background: var(--primary);
    color: #000;
}

.ms-badge-hot {
    background: #ff6b35;
    color: #fff;
}

.ms-badge-wa {
    background: #25d366;
    color: #fff;
}

.ms-badge-paid {
    background: #fa0;
    color: #000;
}

.ms-badge-listed {
    background: rgba(255, 255, 255, 0.12);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card body */
.ms-card-body {
    padding: 1rem;
}

.ms-card-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-card-price {
    color: var(--primary);
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* Stat row */
.ms-stat-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 0.6rem;
}

.ms-stat {
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}

.ms-stat small {
    font-size: 0.7rem;
    color: #555;
    margin-left: 1px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .my-sales-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .my-sales-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .my-sales-stat-value {
        font-size: 1.4rem;
    }

    .my-sales-stat-label {
        font-size: 0.65rem;
    }
}

/* --- PREMIUM IMAGE ZOOM MODAL --- */
#imageZoomModal {
    display: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#imageZoomModal.open {
    display: flex !important;
    opacity: 1;
}

.zoom-content {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.95);
}

#imageZoomModal.open .zoom-content {
    transform: scale(1);
}

.zoom-close-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

#zoom-wrapper img {
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes zoomHintPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translateX(-50%) scale(1.05);
        opacity: 1;
    }
}

.zoom-hint {
    animation: zoomHintPulse 2s infinite ease-in-out;
}

/* --- PREMIUM DEALER DASHBOARD CARDS --- */
.premium-stat-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(18, 18, 18, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: cardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardEntrance {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.premium-stat-card:nth-child(1) { animation-delay: 0.05s; }
.premium-stat-card:nth-child(2) { animation-delay: 0.10s; }
.premium-stat-card:nth-child(3) { animation-delay: 0.15s; }
.premium-stat-card:nth-child(4) { animation-delay: 0.20s; }
.premium-stat-card:nth-child(5) { animation-delay: 0.25s; }
.premium-stat-card:nth-child(6) { animation-delay: 0.30s; }
.premium-stat-card:nth-child(7) { animation-delay: 0.35s; }

.premium-stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.premium-stat-card.action-card.redeem {
    border: 1px solid rgba(204, 255, 0, 0.3);
    background: linear-gradient(145deg, rgba(204, 255, 0, 0.05), rgba(0, 0, 0, 0.1));
}

.premium-stat-card.action-card.redeem:hover {
    background: rgba(204, 255, 0, 0.1);
    box-shadow: 0 8px 25px rgba(204, 255, 0, 0.15);
    border-color: var(--primary);
}

.premium-stat-card.action-card.tracking {
    border: 1px solid rgba(0, 218, 255, 0.3);
    background: linear-gradient(145deg, rgba(0, 218, 255, 0.05), rgba(0, 0, 0, 0.1));
}

.premium-stat-card.action-card.tracking:hover {
    background: rgba(0, 218, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 218, 255, 0.15);
    border-color: var(--accent-blue);
}

.card-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.premium-stat-card:hover .card-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.live-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 218, 255, 0.7);
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
        box-shadow: 0 0 0 8px rgba(0, 218, 255, 0);
    }

    100% {
        transform: scale(1);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(0, 218, 255, 0);
    }
}

.redeem-glow {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.15), transparent 70%);
    filter: blur(10px);
}

@keyframes textShine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.shine-text {
    background: linear-gradient(90deg, var(--primary) 20%, #ffffff 50%, var(--primary) 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 2.5s linear infinite;
    font-weight: 800;
}

/* ==========================================================================
   ELEVENHUB FULLSCREEN SEARCH OVERLAY & ASSISTANT STYLES
   ========================================================================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 2200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    animation: fadeIn 0.25s ease-out;
}

.search-overlay-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 13, 0.98);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-back-btn {
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.search-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.search-overlay-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-overlay-input-wrapper input {
    width: 100%;
    padding: 14px 90px 14px 48px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-family: var(--font-body);
    font-size: 1.05rem !important;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.search-overlay-input-wrapper input:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.search-overlay-input-wrapper input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.search-voice-btn,
.search-camera-btn {
    position: absolute;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: 0.2s;
}

.search-voice-btn {
    right: 48px;
}

.search-camera-btn {
    right: 14px;
}

.search-voice-btn:hover,
.search-camera-btn:hover {
    color: var(--primary);
    background: rgba(204, 255, 0, 0.08);
}

.search-overlay-content {
    padding: 1.5rem var(--spacing-container);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

.search-section {
    margin-bottom: 2.2rem;
}

.search-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.search-section-header h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 1px;
    margin: 0;
}

.clear-all-btn {
    border: none;
    background: none;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.clear-all-btn:hover {
    opacity: 0.8;
}

.recent-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recent-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.25s;
    font-family: var(--font-body);
}

.recent-chip:hover {
    border-color: var(--primary);
    color: #fff;
    background: rgba(204, 255, 0, 0.05);
}

/* AI Assistant Banner */
.ai-assistant-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.08) 0%, rgba(0, 218, 255, 0.04) 100%);
    border: 1px solid rgba(204, 255, 0, 0.25);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 2.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.ai-assistant-banner:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.08);
}

.ai-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 0.95rem;
}

.sparkle-icon {
    color: var(--primary);
    animation: sparkle-pulse 2s infinite alternate;
}

.ai-banner-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Popular Search Grid */
.popular-search-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.popular-search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.popular-search-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.02);
}

.popular-search-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.popular-search-item span {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Popular Trends */
.popular-trends-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.trend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.trend-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.02);
}

.trend-item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trend-info {
    display: flex;
    flex-direction: column;
}

.trend-info h4 {
    color: #fff;
    font-size: 0.95rem;
    margin: 0 0 3px 0;
    font-weight: bold;
}

.trend-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* Bottom Camera Drawer */
.camera-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2500;
    display: flex;
    align-items: flex-end;
    animation: fadeIn 0.25s ease-out;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.camera-drawer-content {
    background: #111115;
    border-top: 2px solid var(--primary);
    border-radius: 20px 20px 0 0;
    padding: 2.2rem 2rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
    animation: drawerSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.camera-drawer-handle {
    width: 44px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: -15px auto 1.5rem auto;
}

.camera-drawer-header {
    text-align: center;
    margin-bottom: 2rem;
}

.camera-drawer-header h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.camera-drawer-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.camera-drawer-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.drawer-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 1.5rem;
    border-radius: 14px;
    cursor: pointer;
    width: 140px;
    transition: 0.3s;
    font-family: var(--font-body);
}

.drawer-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(204, 255, 0, 0.03);
    transform: translateY(-3px);
}

.drawer-action-btn i {
    width: 28px;
    height: 28px;
}

/* Voice Overlay */
.voice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 13, 0.98);
    z-index: 2600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease-out;
}

.voice-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 2rem;
    max-width: 400px;
}

.voice-pulse-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite;
}

.voice-pulse-circle i {
    width: 36px;
    height: 36px;
}

.voice-content h2 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.6rem;
    margin: 0;
    letter-spacing: 0.5px;
}

.voice-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.voice-close-btn {
    margin-top: 1.5rem;
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: 0.3s;
}

.voice-close-btn:hover {
    border-color: #ff4444;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

/* Squad Scanning Animation Overlay */
.scanning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 13, 0.98);
    z-index: 2700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease-out;
}

.scanning-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 2rem;
}

.scanning-container {
    position: relative;
    width: 300px;
    height: 190px;
    border: 2px dashed rgba(204, 255, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    background: #16161a;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.scanning-image-preview {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.75;
}

.scanning-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: scan 2.2s linear infinite;
}

.scanning-content h2 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.4rem;
    margin: 10px 0 0 0;
    letter-spacing: 0.5px;
}

.scanning-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Keyframes */
@keyframes drawerSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 22px rgba(204, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(204, 255, 0, 0);
    }
}

@keyframes scan {
    0% {
        top: 0%;
    }
    50% {
        top: 100%;
    }
    100% {
        top: 0%;
    }
}

@keyframes sparkle-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 5px var(--primary));
    }
}

@media (max-width: 500px) {
    .popular-search-grid,
    .popular-trends-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SEARCH AUTOCOMPLETE SUGGESTIONS DROPDOWN
   ========================================================================== */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #16161a;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 20;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.search-suggestions-dropdown.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(204,255,0,0.05);
}

.suggestion-item .suggestion-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.suggestion-item .suggestion-text {
    font-size: 0.9rem;
    color: #ccc;
    flex: 1;
}

.suggestion-item .suggestion-text mark {
    color: var(--primary);
    background: none;
    font-weight: bold;
}

.suggestion-item .suggestion-card-img {
    width: 36px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #333;
    flex-shrink: 0;
}

.suggestion-item .suggestion-type {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ==========================================================================
   SEARCH PLAYER CARD RESULTS (small card previews)
   ========================================================================== */
.search-card-results {
    display: none;
    margin-bottom: 2rem;
}

.search-card-results.active {
    display: block;
}

.search-card-results h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 1px;
    margin: 0 0 1rem 0;
}

.search-card-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
}

.search-card-result-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.search-card-result-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(204,255,0,0.1);
}

.search-card-result-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.search-card-result-item .card-result-name {
    font-size: 0.7rem;
    color: #ccc;
    padding: 4px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-card-result-item .card-result-type {
    font-size: 0.6rem;
    color: var(--primary);
    padding: 0 4px 6px;
}

/* ==========================================================================
   MULTI-CARD SEARCH SELECTOR
   ========================================================================== */
.multi-card-search-section {
    margin-bottom: 2rem;
    display: none;
}

.multi-card-search-section.active {
    display: block;
}

.multi-card-search-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(204,255,0,0.06);
    border: 1px solid rgba(204,255,0,0.2);
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 2rem;
}

.multi-card-search-toggle:hover {
    border-color: var(--primary);
    background: rgba(204,255,0,0.1);
}

.multi-card-search-toggle i {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.multi-card-search-toggle span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.multi-card-search-toggle .toggle-arrow {
    margin-left: auto;
    color: #666;
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.multi-card-search-toggle.expanded .toggle-arrow {
    transform: rotate(180deg);
}

.multi-card-selector {
    display: none;
}

.multi-card-selector.active {
    display: block;
}

.multi-card-selected-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
}

.multi-card-selected-bar .selected-card-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(204,255,0,0.1);
    border: 1px solid rgba(204,255,0,0.3);
    border-radius: 20px;
    padding: 4px 10px 4px 4px;
    cursor: pointer;
    transition: 0.2s;
}

.multi-card-selected-bar .selected-card-chip img {
    width: 28px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
}

.multi-card-selected-bar .selected-card-chip span {
    font-size: 0.75rem;
    color: #fff;
}

.multi-card-selected-bar .selected-card-chip .remove-chip {
    font-size: 0.9rem;
    color: #ff4444;
    font-weight: bold;
    margin-left: 4px;
}

.multi-card-selected-bar .selected-card-chip:hover {
    border-color: #ff4444;
    background: rgba(255,68,68,0.1);
}

.multi-card-selected-bar .placeholder-text {
    color: #555;
    font-size: 0.8rem;
    font-style: italic;
}

.multi-card-search-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    margin-bottom: 10px;
}

.multi-card-search-input:focus {
    border-color: var(--primary);
}

.multi-card-bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding: 4px;
}

.multi-card-bank-item {
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    overflow: hidden;
    transition: 0.2s;
    text-align: center;
    background: var(--bg-card);
}

.multi-card-bank-item:hover {
    border-color: rgba(204,255,0,0.4);
}

.multi-card-bank-item.selected {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(204,255,0,0.2);
}

.multi-card-bank-item img {
    width: 100%;
    height: 85px;
    object-fit: cover;
}

.multi-card-bank-item .bank-item-name {
    font-size: 0.6rem;
    color: #888;
    padding: 3px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multi-card-find-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.multi-card-find-btn:hover {
    background: #b8e600;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204,255,0,0.3);
}

.multi-card-find-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.match-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(204,255,0,0.15);
    border: 1px solid rgba(204,255,0,0.3);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 8px;
}

/* ==========================================================================
   ELEVEN AI CHATBOT MODAL
   ========================================================================== */
.eleven-ai-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 2800;
    display: none;
    flex-direction: column;
    animation: fadeIn 0.25s ease-out;
}

.eleven-ai-modal.active {
    display: flex;
}

.eleven-ai-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 13, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.eleven-ai-header .ai-back-btn {
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.eleven-ai-header .ai-back-btn:hover {
    background: rgba(255,255,255,0.08);
}

.eleven-ai-header .ai-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.eleven-ai-header .ai-title .ai-dot {
    display: none !important;
}

.eleven-ai-header .ai-title h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: 1px;
}

.eleven-ai-header .ai-title p {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin: 0;
}

.eleven-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

/* Chat Message Rows */
.ai-message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 1.2rem;
    width: 100%;
}

.ai-message-row.bot {
    justify-content: flex-start;
}

.ai-message-row.user {
    justify-content: flex-end;
}

/* Chat Avatars */
.ai-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.ai-message-avatar.bot {
    border: 1.5px solid var(--primary);
    background: #000;
    box-shadow: 0 0 8px rgba(204,255,0,0.25);
}

.ai-message-avatar.bot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-message-avatar.user {
    border: 1px solid rgba(255,255,255,0.2);
    background: #222;
    color: #fff;
}

.ai-message-avatar.user i {
    width: 16px;
    height: 16px;
}

/* Chat Message Bubbles */
.ai-message {
    max-width: 75%;
    padding: 14px 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: messageSlideIn 0.3s ease-out;
}

.ai-message.bot {
    background: rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px 20px 20px 4px;
}

.ai-message.bot .bot-label {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-message.user {
    background: #00b87c; /* Opaque emerald green bubble */
    color: #fff;
    border-radius: 20px 20px 4px 20px;
    border: none;
}

.ai-message .uploaded-image {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.ai-typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
}

.ai-typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.ai-typing-indicator span:nth-child(1) { animation-delay: 0s; }
.ai-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

.eleven-ai-input-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 1rem calc(14px + env(safe-area-inset-bottom, 0px)) 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d0d0f;
    flex-shrink: 0;
}

.eleven-ai-input-container {
    display: flex;
    align-items: center;
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2px 14px;
    gap: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.eleven-ai-input-container:focus-within {
    border-color: #00b87c;
    box-shadow: 0 0 10px rgba(0, 184, 124, 0.15);
}

.eleven-ai-input-container input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    color: #fff !important;
    padding: 10px 0 !important;
    font-size: 0.92rem !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: var(--font-body) !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.eleven-ai-input-container .ai-upload-btn {
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
    outline: none;
}

.eleven-ai-input-container .ai-upload-btn:hover {
    color: #00b87c;
    background: rgba(0, 184, 124, 0.08);
}

.eleven-ai-input-bar .ai-send-btn {
    border: none;
    background: #00b87c;
    color: #000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    flex-shrink: 0;
    outline: none;
}

.eleven-ai-input-bar .ai-send-btn:hover {
    background: #009664;
    transform: scale(1.05);
}

.eleven-ai-input-bar .ai-send-btn i {
    width: 18px;
    height: 18px;
    stroke-width: 2.5px;
}

.eleven-ai-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.ai-quick-action {
    background: rgba(204,255,0,0.06);
    border: 1px solid rgba(204,255,0,0.15);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: var(--font-body);
}

.ai-quick-action:hover {
    background: rgba(204,255,0,0.12);
    border-color: var(--primary);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Green Gradient Animation for Multi-Card Search buttons */
@keyframes greenGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.green-gradient-animated-btn {
    background: linear-gradient(135deg, #071000, #132400, #091700, #071000) !important;
    background-size: 300% 300% !important;
    border: 1px solid #ccff00 !important;
    animation: greenGradientMove 5s ease infinite !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.green-gradient-animated-btn:hover {
    transform: translateY(-1px) scale(1.01) !important;
    border-color: #e6ff80 !important;
}

/* Eleven AI Chatbot Header Logo */
.eleven-ai-header .ai-title .ai-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary);
    box-shadow: 0 0 8px rgba(204,255,0,0.3);
}

/* CSS Override to hide borders/bg when search select bar is empty */
.multi-card-selected-bar:has(.placeholder-text) {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    box-shadow: none !important;
}

/* Splash Screen Animation Keyframes */
@keyframes splashFadeScale {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Splash Screen Layout and Styling */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.splash-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    opacity: 0;
    text-align: center;
    max-width: 90vw;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
}

.fonts-loaded .splash-logo {
    animation: splashFadeScale 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-hub-shine {
    background: linear-gradient(90deg, var(--primary) 20%, #ffffff 50%, var(--primary) 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 1.8s linear infinite;
    font-weight: 700;
}

@media (max-width: 480px) {
    .splash-logo {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
}

/* Get Verified Shine Button Animation */
@keyframes shine-sweep {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.verify-shine-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(204,255,0,0.1) 30%, rgba(204,255,0,0.4) 50%, rgba(204,255,0,0.1) 70%, rgba(255,255,255,0.03) 100%);
    background-size: 200% auto;
    border: 1px solid rgba(204,255,0,0.4);
    color: #ccff00;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(204,255,0,0.05);
    transition: all 0.3s ease;
    animation: shine-sweep 3.5s linear infinite;
}

.verify-shine-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(204,255,0,0.25);
    border-color: #ccff00;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(204,255,0,0.2) 30%, rgba(204,255,0,0.5) 50%, rgba(204,255,0,0.2) 70%, rgba(255,255,255,0.06) 100%);
    background-size: 200% auto;
}

/* Disable all hover, active, and glow effects on Footer Dealer Link */
#footer-dealer-link,
#footer-dealer-link.active,
#footer-dealer-link:hover,
#footer-dealer-link:active,
#footer-dealer-link:focus {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    transition: none !important;
}

#footer-dealer-link i,
#footer-dealer-link svg,
#footer-dealer-link.active i,
#footer-dealer-link.active svg,
#footer-dealer-link:hover i,
#footer-dealer-link:hover svg {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
    stroke-width: 2px !important;
    transition: none !important;
}

#footer-dealer-link span,
#footer-dealer-link.active span,
#footer-dealer-link:hover span {
    transform: none !important;
    text-shadow: none !important;
    font-weight: normal !important;
}

/* Premium Dealer Metric Cards with Animated Gradient Backgrounds & Shadows */
.premium-metric-card {
    position: relative;
    background: linear-gradient(135deg, #111113, var(--bg-gradient-color, rgba(255, 255, 255, 0.05)), #111113);
    background-size: 200% 200%;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 110px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.04);
    -webkit-animation: bgGradientMove 6s ease infinite;
    animation: bgGradientMove 6s ease infinite;
}

@-webkit-keyframes bgGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bgGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes growBar {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.premium-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--card-hover-shadow);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Card Specific Variables */
.premium-metric-card.card-purple {
    --bg-gradient-color: rgba(147, 51, 234, 0.14);
    --card-hover-shadow: rgba(168, 85, 247, 0.25);
}

.premium-metric-card.card-green {
    --bg-gradient-color: rgba(34, 197, 94, 0.14);
    --card-hover-shadow: rgba(34, 197, 94, 0.25);
}

.premium-metric-card.card-orange {
    --bg-gradient-color: rgba(245, 158, 11, 0.14);
    --card-hover-shadow: rgba(245, 158, 11, 0.25);
}

.premium-metric-card.card-pink {
    --bg-gradient-color: rgba(236, 72, 153, 0.14);
    --card-hover-shadow: rgba(236, 72, 153, 0.25);
}

.premium-metric-card.card-blue {
    --bg-gradient-color: rgba(0, 218, 255, 0.14);
    --card-hover-shadow: rgba(0, 218, 255, 0.25);
}

#header-dealer-search-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.15) !important;
    background: rgba(255,255,255,0.07) !important;
}

@keyframes growBarScale {
    to {
        transform: scaleY(1);
    }
}

.premium-transaction-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.premium-transaction-card:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   PRODUCTION DASHBOARD RENOVATION DESIGN SYSTEM (Vercel/Linear Style)
   ========================================================================== */
.renovated-dashboard {
    color: #e4e4e7;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.renovated-card {
    background: #121215;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.renovated-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

/* Premium Animated Gradient KPI Cards */
.renovated-kpi-card {
    cursor: pointer;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background-color: #111113;
    background-image: linear-gradient(135deg, #111113, var(--bg-gradient-color, rgba(255, 255, 255, 0.05)), #111113) !important;
    background-size: 200% 200% !important;
    -webkit-animation: bgGradientMove 6s ease infinite !important;
    animation: bgGradientMove 6s ease infinite !important;
}

.renovated-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.04),
        transparent
    );
    transition: 0.6s;
    pointer-events: none;
}

.renovated-kpi-card:hover::before {
    left: 100%;
}

/* Card Themes */
.kpi-card-purple {
    --bg-gradient-color: rgba(168, 85, 247, 0.14);
    --card-hover-shadow: rgba(168, 85, 247, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.16) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.03);
}
.kpi-card-purple:hover {
    border-color: rgba(168, 85, 247, 0.45) !important;
    box-shadow: 0 12px 30px var(--card-hover-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}
.kpi-card-purple .kpi-icon-wrap {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.kpi-card-green {
    --bg-gradient-color: rgba(34, 197, 94, 0.14);
    --card-hover-shadow: rgba(34, 197, 94, 0.25);
    border: 1px solid rgba(34, 197, 94, 0.16) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.03);
}
.kpi-card-green:hover {
    border-color: rgba(34, 197, 94, 0.45) !important;
    box-shadow: 0 12px 30px var(--card-hover-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}
.kpi-card-green .kpi-icon-wrap {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.kpi-card-blue {
    --bg-gradient-color: rgba(6, 182, 212, 0.14);
    --card-hover-shadow: rgba(6, 182, 212, 0.25);
    border: 1px solid rgba(6, 182, 212, 0.16) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.03);
}
.kpi-card-blue:hover {
    border-color: rgba(6, 182, 212, 0.45) !important;
    box-shadow: 0 12px 30px var(--card-hover-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}
.kpi-card-blue .kpi-icon-wrap {
    color: #00daff;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.kpi-card-orange {
    --bg-gradient-color: rgba(245, 158, 11, 0.14);
    --card-hover-shadow: rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(245, 158, 11, 0.16) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.03);
}
.kpi-card-orange:hover {
    border-color: rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 12px 30px var(--card-hover-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}
.kpi-card-orange .kpi-icon-wrap {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.kpi-card-pink {
    --bg-gradient-color: rgba(236, 72, 153, 0.14);
    --card-hover-shadow: rgba(236, 72, 153, 0.25);
    border: 1px solid rgba(236, 72, 153, 0.16) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.03);
}
.kpi-card-pink:hover {
    border-color: rgba(236, 72, 153, 0.45) !important;
    box-shadow: 0 12px 30px var(--card-hover-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}
.kpi-card-pink .kpi-icon-wrap {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.kpi-card-indigo {
    --bg-gradient-color: rgba(139, 92, 246, 0.14);
    --card-hover-shadow: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.16) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.03);
}
.kpi-card-indigo:hover {
    border-color: rgba(139, 92, 246, 0.45) !important;
    box-shadow: 0 12px 30px var(--card-hover-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}
.kpi-card-indigo .kpi-icon-wrap {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.kpi-icon-wrap {
    padding: 5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    box-sizing: border-box;
}

.renovated-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #8e8e93;
}

.renovated-kpi-value {
    font-family: var(--font-heading), 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 8px 0 4px 0;
    line-height: 1;
}

.renovated-kpi-sub {
    font-family: var(--font-body), 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Analytics Chart Container */
.renovated-chart-panel {
    background: #121215;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    margin-top: 1.5rem;
}

.renovated-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1rem;
}

.renovated-chart-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.renovated-chart-tab {
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Rajdhani', sans-serif;
}

.renovated-chart-tab.active {
    background: var(--primary);
    color: #000000;
}

.renovated-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    max-height: 300px;
}

/* Renovation Table Design */
.renovated-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.renovated-table th {
    background: rgba(255, 255, 255, 0.02);
    color: #a1a1aa;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.renovated-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e4e4e7;
    vertical-align: middle;
}

.renovated-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Skeleton Loading State */
.renovated-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 6px;
    display: inline-block;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Universal Mobile Viewport Optimization (320px - 768px) */
@media (max-width: 768px) {
    .renovated-kpi-value {
        font-size: 1.7rem;
    }
    .renovated-canvas-wrapper {
        height: 200px;
    }
    .renovated-table th, .renovated-table td {
        padding: 10px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .dealer-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .renovated-kpi-card {
        padding: 14px 12px !important;
        min-height: 110px !important;
    }
    .renovated-kpi-value {
        font-size: 1.6rem !important;
    }
}

body.scroll-locked {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: auto !important;
}

/* ===== RIGHT-ALIGNED PROFILE SLIDING DRAWER ===== */
#profile-modal {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.82);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 0 !important;
    margin: 0 !important;
}

#profile-modal.active-drawer {
    opacity: 1;
    pointer-events: auto;
}

#profile-modal #profile-modal-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px !important;
    height: 100% !important;
    background: #0d0d12 !important;
    border-left: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-top-left-radius: 28px !important;
    border-bottom-left-radius: 28px !important;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.95) !important;
    padding: 1.5rem 1.5rem max(5.5rem, calc(4.5rem + env(safe-area-inset-bottom))) 1.5rem !important;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    will-change: transform;
}

#profile-modal.active-drawer #profile-modal-main {
    transform: translateX(0);
}

/* Fix mobile input rotation bug in PWA standalone mode */
#profile-mobile-input,
#profile-mobile-input-wrapper {
    transform: none !important;
    transform-origin: center !important;
    writing-mode: horizontal-tb !important;
    direction: ltr !important;
    unicode-bidi: normal !important;
}

/* ===== DETAIL IMAGE SLIDER ===== */
.detail-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
    touch-action: pan-y;
}

.detail-slider-track {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.detail-slider-track img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    cursor: zoom-in;
    aspect-ratio: 2.2 / 1;
}

.detail-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 0 6px;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.slider-dot.active {
    width: 18px;
    border-radius: 3px;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(204, 255, 0, 0.4);
}

/* ===== ZOOM NAV BUTTONS ===== */
#zoom-prev-btn:hover,
#zoom-next-btn:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

/* ===== CROP MODAL RANGE SLIDER ===== */
#crop-zoom-slider {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    outline: none;
}

#crop-zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(204, 255, 0, 0.3);
    border: 2px solid #000;
}

#crop-zoom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(204, 255, 0, 0.3);
    border: 2px solid #000;
}

/* Chrome/Safari Autofill Dark Mode Override */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    border: none !important;
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0px 1000px #1a1a1f inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Premium Quick Options Layout & Aesthetics */
.premium-quick-options {
    display: flex;
    gap: 16px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.premium-quick-options .quick-option-card {
    flex: 1;
    min-width: 200px;
    padding: 16px 24px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.premium-quick-options .search-cards-btn {
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.08) 0%, rgba(204, 255, 0, 0.02) 100%);
    border: 1px solid rgba(204, 255, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.premium-quick-options .search-cards-btn span {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.premium-quick-options .search-cards-btn i {
    color: var(--primary);
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.premium-quick-options .search-cards-btn:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(204, 255, 0, 0.15);
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.12) 0%, rgba(204, 255, 0, 0.04) 100%);
}

.premium-quick-options .search-cards-btn:hover i {
    transform: rotate(15deg) scale(1.1);
}

.premium-quick-options .ask-ai-btn {
    background: linear-gradient(135deg, rgba(0, 218, 255, 0.08) 0%, rgba(0, 218, 255, 0.02) 100%);
    border: 1px solid rgba(0, 218, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.premium-quick-options .ask-ai-btn span {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.premium-quick-options .ask-ai-btn i {
    color: var(--accent-blue);
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.premium-quick-options .ask-ai-btn:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: var(--accent-blue);
    box-shadow: 0 12px 24px rgba(0, 218, 255, 0.15);
    background: linear-gradient(135deg, rgba(0, 218, 255, 0.12) 0%, rgba(0, 218, 255, 0.04) 100%);
}

.premium-quick-options .ask-ai-btn:hover i {
    transform: scale(1.2);
}

/* Mobile & iOS Performance Optimizations: Disable expensive backdrop blurs to prevent scrolling lags/freezes on iOS */
@media (max-width: 1024px), (pointer: coarse) {
    *, *::before, *::after {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

html.is-ios *, html.is-ios *::before, html.is-ios *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media (max-width: 1024px), (pointer: coarse) {
    .glass-card, .quick-option-card, .premium-card, .stats-card {
        background: #16161a !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    .modal-content, .bottom-nav, .filter-overlay {
        background: #111115 !important;
    }
    
    /* Hide heavy video backgrounds on mobile to save CPU/GPU and prevent freezes */
    #bg-video, .video-background video {
        display: none !important;
    }
    
    /* Fallback high-performance static poster backgrounds */
    #landing {
        background-image: url('assets/landing-poster.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
    }
    .parallax-hero {
        background-image: url('assets/messi-poster.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
}

/* iOS Performance Overrides to completely bypass animations & smooth scrolling bugs */
html.is-ios, html.is-ios body {
    scroll-behavior: auto !important;
}
html.is-ios .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

html.is-ios .listing-card,
html.is-ios .featured-listings-grid .listing-card {
    transform-style: flat !important;
    backface-visibility: visible !important;
    perspective: none !important;
    transform: none !important;
    transition: none !important;
}

/* Premium Referral dashboard buttons with gradient animations */
.btn-premium-gradient {
    background: linear-gradient(90deg, #ccff00, #00ff88, #00b4ff, #ccff00);
    background-size: 300% 100%;
    animation: premiumGradient 4s linear infinite;
    box-shadow: 0 0 12px rgba(204, 255, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-premium-gradient:hover {
    box-shadow: 0 0 22px rgba(204, 255, 0, 0.85);
    transform: translateY(-2px);
    filter: brightness(1.05);
}
.btn-premium-gradient:active {
    transform: translateY(0);
}

.btn-share-whatsapp {
    background: rgba(37, 211, 102, 0.05);
    border: 1px solid rgba(37, 211, 102, 0.35) !important;
    color: #25d366 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-share-whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25d366 !important;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
}
.btn-share-whatsapp:active {
    transform: translateY(0);
}



/* SHINING TEXT EFFECT FOR THE EFOOTBALL HIGHLIGHT */
.hero-main-title .highlight {
    background: linear-gradient(120deg, #ccff00 25%, #ffffff 50%, #ccff00 75%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 3s linear infinite;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(204, 255, 0, 0.4));
    font-weight: 800;
}

@keyframes shineText {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* Custom premium gradient designs for filter chips */
.filter-chip {
    background: rgba(255, 255, 255, 0.02) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    border-radius: 999px !important;
    padding: 8px 20px !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    color: #ffffff !important;
}

/* Epic */
.filter-chip.chip-epic {
    border: 1px solid rgba(0, 255, 136, 0.18) !important;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.04) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
}
.filter-chip.chip-epic:hover {
    border-color: rgba(0, 255, 136, 0.5) !important;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.2) !important;
}
.filter-chip.chip-epic.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%) !important;
    border-color: #00ff88 !important;
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.45) !important;
}

/* Big Time */
.filter-chip.chip-bigtime {
    border: 1px solid rgba(191, 0, 255, 0.18) !important;
    background: linear-gradient(135deg, rgba(191, 0, 255, 0.04) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
}
.filter-chip.chip-bigtime:hover {
    border-color: rgba(191, 0, 255, 0.5) !important;
    box-shadow: 0 0 12px rgba(191, 0, 255, 0.2) !important;
}
.filter-chip.chip-bigtime.active {
    background: linear-gradient(135deg, rgba(191, 0, 255, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%) !important;
    border-color: #bf00ff !important;
    box-shadow: 0 0 16px rgba(191, 0, 255, 0.45) !important;
}

/* Showtime */
.filter-chip.chip-showtime {
    border: 1px solid rgba(0, 180, 255, 0.18) !important;
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.04) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
}
.filter-chip.chip-showtime:hover {
    border-color: rgba(0, 180, 255, 0.5) !important;
    box-shadow: 0 0 12px rgba(0, 180, 255, 0.2) !important;
}
.filter-chip.chip-showtime.active {
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%) !important;
    border-color: #00b4ff !important;
    box-shadow: 0 0 16px rgba(0, 180, 255, 0.45) !important;
}

/* Blitz */
.filter-chip.chip-blitz {
    border: 1px solid rgba(255, 51, 0, 0.18) !important;
    background: linear-gradient(135deg, rgba(255, 51, 0, 0.04) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
}
.filter-chip.chip-blitz:hover {
    border-color: rgba(255, 51, 0, 0.5) !important;
    box-shadow: 0 0 12px rgba(255, 51, 0, 0.2) !important;
}
.filter-chip.chip-blitz.active {
    background: linear-gradient(135deg, rgba(255, 51, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%) !important;
    border-color: #ff3300 !important;
    box-shadow: 0 0 16px rgba(255, 51, 0, 0.45) !important;
}

/* Legend */
.filter-chip.chip-legend {
    border: 1px solid rgba(255, 215, 0, 0.18) !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.04) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
}
.filter-chip.chip-legend:hover {
    border-color: rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2) !important;
}
.filter-chip.chip-legend.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%) !important;
    border-color: #ffd700 !important;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.45) !important;
}

/* Shining effect for special Admin shortcut buttons in profile drawer */
.btn-access-shine {
    position: relative;
    overflow: hidden;
}

.btn-access-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.16) 40%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0.16) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: accessShineSweep 3.5s infinite ease-in-out;
}

@keyframes accessShineSweep {
    0% {
        left: -150%;
    }
    45% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* Refer & Earn Page Premium Styling */
.premium-cashback-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.premium-cashback-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.3) !important;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 15px rgba(204, 255, 0, 0.05);
        border-color: rgba(204, 255, 0, 0.15);
    }
    100% {
        box-shadow: 0 0 25px rgba(204, 255, 0, 0.25);
        border-color: rgba(204, 255, 0, 0.45);
    }
}

/* Ask AI Quick Button Premium Styling */
.ask-ai-btn-quick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.12), rgba(0, 218, 255, 0.08)) !important;
    border: 1px solid rgba(204, 255, 0, 0.35) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 12px rgba(204, 255, 0, 0.15) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    outline: none !important;
}

.ask-ai-btn-quick i {
    width: 14px !important;
    height: 14px !important;
    color: var(--primary) !important;
    filter: drop-shadow(0 0 4px rgba(204, 255, 0, 0.6)) !important;
    animation: flashZap 1.5s infinite alternate !important;
}

.ask-ai-btn-quick:hover {
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.2), rgba(0, 218, 255, 0.15)) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 18px rgba(204, 255, 0, 0.3) !important;
    transform: translateY(-1px) !important;
}

@keyframes flashZap {
    0% { opacity: 0.6; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Daily Spin Wheel Game Styles */
.wheel-game-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 2.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-glow {
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(204,255,0,0.18) 0%, rgba(0,0,0,0) 70%);
    filter: blur(15px);
    pointer-events: none;
    z-index: 1;
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 1; }
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid var(--primary);
    filter: drop-shadow(0 4px 10px rgba(204,255,0,0.5));
    z-index: 10;
}

#wheel-canvas {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 6px solid #1a1a1f;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7), inset 0 2px 8px rgba(255,255,255,0.15);
    background: #111;
    z-index: 5;
}

#spin-button {
    position: absolute;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #16161a;
    border: 4px solid var(--primary);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(204,255,0,0.3), inset 0 2px 4px rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    outline: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#spin-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(204,255,0,0.5), inset 0 2px 4px rgba(255,255,255,0.1);
}

#spin-button:active:not(:disabled) {
    transform: scale(0.95);
}

#spin-button:disabled {
    border-color: #333;
    color: #555;
    box-shadow: none;
    cursor: not-allowed;
}

#spin-cooldown-timer {
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(204,255,0,0.3);
    font-weight: 700;
    letter-spacing: 1px;
}