:root {
    --bg-dark: #050505;
    --primary: #00ff88;
    --secondary: #00bfff;
    --accent: #7000ff;
    --text-main: #ffffff;
    --text-muted: #8892b0;
    --gradient-glow: linear-gradient(135deg, #00ff88 0%, #00bfff 100%);
    --gradient-text: linear-gradient(90deg, #00ff88, #00bfff, #7000ff);
    --font-heading: 'Outfit', sans-serif;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    /* Ensure overflow works */
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
}

.text-gradient {
    background: var(--gradient-text);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Backgrounds */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Changed from 100vw to prevent scrollbar issues */
    height: 100%;
    /* Changed from 100vh */
    background-image: linear-gradient(rgba(0, 255, 136, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) scale(2);
    animation: gridMove 20s linear infinite;
    mask-image: linear-gradient(to bottom, transparent, black, transparent);
    /* Fade edges */
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) scale(2);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(40px) scale(2);
    }
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    bottom: -10%;
    right: -10%;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 5, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    font-family: var(--font-heading);
}

.logo-img {
    height: 36px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:not(.btn):hover {
    color: white;
}

/* Auth Buttons in Navbar */
.nav-auth-link {
    font-weight: 600;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-auth-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-register-btn {
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #00ff88 0%, #00bfff 100%) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.nav-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.5);
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-glow);
    color: black;
    border: none;
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* Mobile Close Button - Hidden by default */
.mobile-close-btn {
    display: none;
}


/* Mobile Responsive Styles */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem !important;
        padding: 15px 30px !important;
        width: 80%;
        text-align: center;
    }

    .nav-auth-link {
        width: 80%;
        justify-content: center;
        display: flex;
    }

    .nav-register-btn {
        width: 80%;
        justify-content: center;
    }

    .lang-switch {
        margin-bottom: 20px;
    }

    /* Close button in mobile menu */
    .mobile-close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
    }

}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero-desc {
        font-size: 1rem;
        padding: 0 20px;
    }

    .navbar {
        padding: 12px 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 15px;
    }

    .live-dashboard-panel {
        padding: 15px;
    }

    .dash-stat-box {
        padding: 10px !important;
    }

    .dash-val {
        font-size: 1.3rem !important;
    }
}


/* Hero */
.hero {
    min-height: 100vh;
    /* Allow growth */
    height: auto;
    /* Remove fixed height */
    display: flex;
    flex-direction: column;
    /* Explicit column */
    align-items: center;
    /* Center horizontally */
    justify-content: flex-start;
    /* Start from TOP, not center */
    text-align: center;
    padding-top: 140px;
    /* Space for Navbar */
    padding-bottom: 80px;
}

.hero h1 {
    font-size: 4rem;
    /* Slightly reduced for better fit */
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.badge-capsule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 30px;
}

.dot.pulse {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Swiper 3D Carousel */
.showcase {
    padding: 50px 0;
    overflow: hidden;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
}

.swiper {
    position: relative;
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-slide {
    background: transparent;
    /* No background, just the phone */
    width: 300px;
    height: 600px;
    transition: 0.3s;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 40px;
    /* Match phone mockup radius */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Deep shadow */
}

.slide-caption {
    text-align: center;
    margin-top: 20px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.swiper-slide-active .slide-caption {
    opacity: 1;
    transform: translateY(0);
    color: var(--primary);
}

/* Unified Glass Panel */
.glass-panel {
    background: rgba(20, 25, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
}

/* Market Cards 3D */
.markets {
    padding: 100px 0;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.market-card-3d {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    cursor: pointer;
    transition: 0.3s;
}

.market-card-3d:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.1);
}

.icon-3d {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transform: translateZ(30px);
}

.market-card-3d h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    transform: translateZ(20px);
}

.market-card-3d p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    transform: translateZ(10px);
}

/* Quick Stats Strip */
.quick-stats {
    padding: 50px 0;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-val {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-heading);
}

.stat-lbl {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

/* Footer/Download */
.download-section {
    padding: 100px 0;
}

.social-links-minimal {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.social-links-minimal a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-links-minimal a:hover {
    color: white;
    transform: scale(1.2);
}

/* Responsive */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .markets-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .stat-val {
        font-size: 2rem;
    }
}

.badge-market {
    display: inline-block;
    margin-top: 15px;
    padding: 4px 10px;
    font-size: 0.7rem;
    color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1.5s ease-out;
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

#skip-intro {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    z-index: 10000;
    transition: 0.3s;
}

#skip-intro:hover {
    color: white;
    border-color: white;
}

#intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

#intro-overlay {
    z-index: 9999;
    background: #000;
}

/* Background Loop Video */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.15;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* Remove old intro styles if needed or let them cascade override */
#intro-overlay {
    display: none !important;
}

/* Modern Store Buttons */
.store-buttons.big-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 28px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.store-btn i {
    font-size: 2.5rem;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.btn-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.btn-apple {
    background: linear-gradient(135deg, #333, #000);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn-google {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    color: black;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-apple:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-google:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
    background: white;
}

.glow-effect-gold::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);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.lang-opt {
    cursor: pointer;
    transition: 0.3s;
}

.lang-opt:hover,
.lang-opt.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.lang-opt.active {
    font-weight: 700;
}

/* --- Live Dashboard Panel PRO Style (Compact & Fixed Position) --- */
.live-dashboard-panel {
    background: transparent;
    /* Changed from colored rgba to transparent */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    /* Reduced padding */
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px auto;
    /* Margin reduced, spacing handled by hero padding */
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
    text-align: left;
    overflow: hidden;
}

/* Glow light burst */
.live-dashboard-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
    opacity: 0.5;
    animation: pulseGlow 6s infinite ease-in-out;
}

.dashboard-header {
    display: flex;
    gap: 15px;
    /* Reduced gap */
    margin-bottom: 20px;
}

.dash-stat-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 10px;
    /* Compact padding */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.dash-stat-box:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
}

.dash-stat-box.success-box {
    border-bottom: 2px solid rgba(0, 255, 136, 0.5);
}

.dash-stat-box.total-box {
    border-bottom: 2px solid rgba(0, 191, 255, 0.5);
}

.dash-stat-box.result-box {
    border-bottom: 2px solid rgba(112, 0, 255, 0.5);
}

.dash-val {
    font-size: 2.5rem;
    /* Increased from 1.8rem to match hero stats */
    font-weight: 800;
    font-family: var(--font-heading);
    color: white;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.dash-val.green {
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.dash-val.blue {
    color: #00bfff;
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}

.dash-lbl {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.res-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.res-won {
    color: #00ff88;
}

.res-lost {
    color: #ff4757;
    margin-right: 5px;
}

.res-pending {
    color: #ffd700;
    /* Gold/Yellow for pending */
    margin-right: 5px;
}

/* Dashboard Body */
.dashboard-body {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    /* Compact padding */
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-title {
    display: flex;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    margin-bottom: 15px;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-title i {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Market List Grid - 2 Columns for compactness if width permits */
#market-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.market-stat-row {
    margin-bottom: 0;
    /* Handled by grid gap */
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.market-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    align-items: center;
}

.m-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.m-stats {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-family: monospace;
}

.m-icon {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.progress-track {
    width: 100%;
    height: 6px;
    /* Thinner */
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    box-shadow: 0 0 10px currentColor;
    /* Generic glow based on color */
}

/* Colors same as before */
.p-blue {
    background: #3b82f6;
    color: rgba(59, 130, 246, 0.5);
}

.p-purple {
    background: #8b5cf6;
    color: rgba(139, 92, 246, 0.5);
}

.p-orange {
    background: #f59e0b;
    color: rgba(245, 158, 11, 0.5);
}

.p-pink {
    background: #ec4899;
    color: rgba(236, 72, 153, 0.5);
}

.p-teal {
    background: #14b8a6;
    color: rgba(20, 184, 166, 0.5);
}

/* Dashboard Footer */
.dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

.last-updated {
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px var(--primary);
}

.pulsing-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
    opacity: 0.5;
}

@keyframes pulseDot {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    70% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        /* Reduce container padding */
    }

    /* Navbar Mobile */
    .nav-container {
        flex-wrap: wrap;
        /* Allow wrapping if needed */
        gap: 10px;
    }

    .logo {
        font-size: 1.2rem;
        /* Smaller logo */
    }

    .logo-img {
        height: 28px;
        /* Smaller icon */
    }

    .nav-links {
        gap: 10px;
        /* Tighter links */
    }

    .nav-links a:not(.btn) {
        font-size: 0.8rem;
    }

    .btn {
        padding: 6px 14px;
        /* Compact button */
        font-size: 0.8rem;
    }

    /* Dashboard Mobile */
    .live-dashboard-panel {
        margin-top: 20px;
        padding: 15px;
        width: 100%;
        /* Ensure full width */
        box-sizing: border-box;
        /* Include padding in width */
    }

    .dashboard-header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 columns grid */
        gap: 10px;
    }

    /* Make the Result Box span full width on mobile or fit in grid */
    .dash-stat-box.result-box {
        grid-column: span 2;
        /* Span across both columns */
        justify-content: center;
    }

    .dash-stat-box {
        min-width: 0;
        /* Prevent overflow in grid */
        padding: 10px;
        width: 100%;
    }

    .dash-val {
        font-size: 1.8rem;
        /* Smaller number on mobile */
    }

    .text-gradient.dash-val-small {
        font-size: 1.2rem !important;
        /* Fix for result row large numbers */
    }

    .dash-stat-box .result-row span.text-gradient {
        font-size: 1.5rem !important;
        /* Reduce result numbers size */
    }

    .hero {
        padding-top: 100px;
    }

    #market-stats-container {
        grid-template-columns: 1fr;
        /* Stack markets */
        gap: 10px;
    }

    .market-stat-row {
        padding: 10px;
    }

    .dashboard-footer {
        flex-direction: column;
        /* Stack footer items */
        gap: 10px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        /* Reduce hero title size */
    }

    .hero-desc {
        font-size: 1rem;
    }
}

/* Recent Predictions Section */
.recent-predictions-section {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 136, 0.02), transparent);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 3.5rem;
    margin: 15px 0;
    line-height: 1.1;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.predictions-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.prediction-card-glass {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.prediction-card-glass:hover {
    transform: translateY(-8px);
    background: rgba(15, 23, 42, 0.6);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 136, 0.1);
}

.pred-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.league-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-transform: uppercase;
}

.time-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.pred-matchup {
    margin-bottom: 20px;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.team-name {
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.team-score {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem;
}

.pred-selection-box {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.sel-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.sel-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

.pred-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--secondary);
}

.status-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 15px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom-left-radius: 12px;
}

.status-won {
    background: #00ff88;
    color: black !important;
}

.status-lost {
    background: #ff4757;
    color: white !important;
}

.status-pending {
    background: #ffd700;
    color: black !important;
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

/* Locked CTA Card for Pending Predictions */
.locked-cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.2) 0%, rgba(0, 191, 255, 0.1) 100%) !important;
    border: 2px solid rgba(112, 0, 255, 0.4) !important;
    overflow: hidden;
    min-height: 200px;
}

.locked-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.locked-overlay-landing {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.locked-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.locked-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
}

.locked-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 250px;
}

.locked-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #00ff88 0%, #00bfff 100%);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
    transition: all 0.3s ease;
}

.locked-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.6);
}

.locked-cta-btn i {
    font-size: 0.9rem;
}