:root {
    --primary: #000000;
    --primary-light: #111111;
    --primary-dark: #000000;
    --secondary: #ffb400;
    /* Richer orange/yellow */
    --secondary-hover: #e09600;
    --accent: #29b6f6;
    /* Bright Cyan */
    --text: #ffffff;
    --text-muted: #e0e0e0;
    --bg: #050505;
    /* Almost black */
    --glass: rgba(20, 20, 20, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
    --card-bg: #111111;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
    --primary: #ffffff;
    --primary-light: #f8f9fa;
    --primary-dark: #e9ecef;
    --text: #1a1a1a;
    --text-muted: #555555;
    /* Darker muted text for readability */
    --bg: #f0f2f5;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(240, 165, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(18, 51, 37, 0.3) 0%, transparent 40%);
    min-height: 100vh;
}

[data-theme="light"] body {
    background-image: none;
    /* Cleaner look for light mode */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    /* Lighter shadow in light mode */
    min-height: 100vh;
    position: relative;
    padding: 0 20px 160px;
}

[data-theme="light"] .app-container {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text);
    box-shadow: var(--shadow);
}

/* Form Elements */
.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 15px;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

[data-theme="light"] .input-field {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.input-field:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(240, 165, 0, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .input-field:focus {
    background: #ffffff;
}

.input-field::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    /* Explicitly set color */
}

/* ... existing styles ... */

/* Dashboard Specific */
.balance-card {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    position: relative;
    overflow: hidden;
    color: var(--text);
    /* Ensure contrast */
}

[data-theme="light"] .balance-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.balance-card h1,
.balance-card span {
    color: var(--text) !important;
}

/* Bottom Nav Fixes for Light Mode */
/* Bottom Nav - Floating Island Style */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #0f241a;
    /* Default Premium Dark */
    border: 1px solid #f0a500;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-item {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    transition: all 0.3s ease;
    width: 60px;
    /* Fixed width for alignment */
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.nav-item.active {
    color: #f0a500;
    /* Orange for active */
}

/* Central Menu Button - Highlighted & Floating */
.nav-item.menu-btn {
    width: 65px;
    height: 65px;
    background: #f0a500;
    /* Main Action Color */
    border-radius: 50%;
    color: #000;
    /* Contrast Icon Color */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    /* Float Up */
    border: 5px solid var(--bg);
    /* Cutout effect matching background */
    box-shadow: 0 -5px 15px rgba(240, 165, 0, 0.3);
    /* Upward glowing shadow */
    z-index: 1001;
}

.nav-item.menu-btn i {
    font-size: 1.8rem;
    margin: 0;
}

.nav-item.menu-btn span {
    display: none;
    /* Icon only for center button */
}

/* Light Mode Navigation Overrides */
[data-theme="light"] .bottom-nav {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .nav-item {
    color: #999;
}

[data-theme="light"] .nav-item.active {
    color: #f0a500;
}

/* Ensure Menu Button Cutout matches Light BG */
[data-theme="light"] .nav-item.menu-btn {
    border-color: #f0f2f5;
    /* Match Light Page BG */
    background: #f0a500;
    /* Keep Orange */
    color: #000;
    box-shadow: 0 5px 20px rgba(240, 165, 0, 0.4);
}

/* Add extra space at bottom of pages for the floating nav */
.app-container {
    padding-bottom: 100px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Dashboard Specific */
.balance-card {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.balance-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: var(--secondary);
    opacity: 0.05;
    border-radius: 50%;
}

/* Mobile Responsiveness */
/* Navigation Styles */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: block !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(8, 8, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px !important;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-grid h1 {
        font-size: 2.5rem !important;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .partner-grid {
        gap: 20px !important;
    }

    .partner-grid i {
        font-size: 2rem !important;
    }

    .hero-grid h1 {
        font-size: 2rem !important;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .marketplace-slider {
        height: 350px !important;
    }

    .slider-item i {
        font-size: 5rem !important;
    }
    
    .slider-item h2 {
        font-size: 1.2rem !important;
    }

    .glass-card-premium {
        padding: 10px !important;
    }
}

/* Premium Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary), #fff9c4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.hero-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease-out;
    pointer-events: none;
}

.hero-btn:hover::after {
    transform: scale(1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(240, 165, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(240, 165, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(240, 165, 0, 0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}


.text-glow {
    text-shadow: 0 0 15px rgba(240, 165, 0, 0.4);
}

.glass-card-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.glass-card-premium:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

/* Marquee / Scroll Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-flex;
    gap: 100px;
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}