:root {
            --bg-primary: #0A0A0F;
            --bg-secondary: #0D1117;
            --bg-card: #0D1117;
            --accent-green: #00FF41;
            --accent-green-glow: rgba(0, 255, 65, 0.4);
            --accent-red: #FF006E;
            --accent-blue: #00B4FF;
            --accent-yellow: #FFD600;
            --accent-purple: #B400FF;
            --text-primary: #E0E0FF;
            --text-secondary: #8899CC;
            --text-muted: #667799;
            --border-color: rgba(0, 255, 65, 0.15);
            --border-light: rgba(0, 255, 65, 0.25);
        }

        .light-theme {
            --bg-primary: #F5F5F5;
            --bg-secondary: #FFFFFF;
            --bg-card: #FFFFFF;
            --accent-green: #008F11;
            --accent-green-glow: rgba(0, 143, 17, 0.3);
            --accent-red: #CC0058;
            --accent-blue: #0080CC;
            --accent-yellow: #CC8C00;
            --accent-purple: #7B00CC;
            --text-primary: #1A1A2E;
            --text-secondary: #555;
            --text-muted: #888;
            --border-color: rgba(0, 0, 0, 0.15);
            --border-light: rgba(0, 0, 0, 0.25);
        }
        .light-theme .navbar-glass {
            background: rgba(255, 255, 255, 0.9);
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }
        .light-theme .mobile-menu {
            background: #FFFFFF;
            border-right: 1px solid rgba(0, 0, 0, 0.1);
        }
        .light-theme .mobile-menu a:hover {
            background: rgba(0, 143, 17, 0.05);
        }
        .light-theme .mobile-overlay.active {
            background: rgba(0, 0, 0, 0.3);
        }
        .light-theme body::before { background: none; }
        .light-theme body::after { display: none; }

        * { box-sizing: border-box; }
        body {
            background: var(--bg-primary);
            color: var(--text-primary);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }
        body::before {
            content: '';
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(rgba(0, 255, 65, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 65, 0.02) 1px, transparent 1px);
            background-size: 50px 50px;
            pointer-events: none; z-index: -1;
        }
        body::after {
            content: '';
            position: fixed; top: 0; left: 0; right: 0;
            height: 2px;
            background: rgba(0, 255, 65, 0.08);
            animation: scanline 5s linear infinite;
            pointer-events: none; z-index: 9999;
        }
        @keyframes scanline {
            0% { top: -5%; }
            100% { top: 105%; }
        }

        .card-dark {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            position: relative; overflow: hidden;
        }
        .card-dark::before {
            content: '';
            position: absolute; top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
            opacity: 0; transition: opacity 0.3s;
        }
        .card-dark:hover::before { opacity: 1; }
        .card-dark:hover { border-color: var(--border-light); box-shadow: 0 0 20px rgba(0, 255, 65, 0.08); }

        .btn-primary-gradient {
            background: linear-gradient(135deg, #00E878, #00B864);
            color: #06080F; border: none; font-weight: 700; border-radius: 12px; padding: 12px 28px;
        }
        .btn-primary-gradient:hover { color: #06080F; box-shadow: 0 0 30px rgba(0, 255, 65, 0.4); }
        .btn-outline-gradient {
            background: transparent; border: 1px solid var(--border-color); color: var(--text-primary);
            font-weight: 500; border-radius: 12px; padding: 10px 22px;
        }

        .pulse-dot {
            display: inline-block; width: 8px; height: 8px;
            background: var(--accent-green); border-radius: 50%;
            animation: pulse-glow 2s infinite;
            box-shadow: 0 0 8px var(--accent-green), 0 0 20px var(--accent-green);
        }
        @keyframes pulse-glow {
            0%, 100% { box-shadow: 0 0 5px var(--accent-green-glow); }
            50% { box-shadow: 0 0 20px var(--accent-green-glow); }
        }

        .live-indicator {
            display: inline-flex; align-items: center; gap: 6px;
            font-size: 0.75rem; color: var(--accent-green); font-weight: 600;
            font-family: 'JetBrains Mono', monospace; letter-spacing: 1px;
        }

        .navbar-glass {
            background: rgba(10, 10, 15, 0.9);
            border-bottom: 1px solid rgba(0, 255, 65, 0.1);
            backdrop-filter: blur(20px);
        }

        .stat-card {
            background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px;
            padding: 20px; height: 100%;
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            min-height: 100px;
        }
        .stat-value { font-size: 1.3rem; font-weight: 800; letter-spacing: -1px; line-height: 1.1; word-break: break-word; }
        .stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

        .badge-chain {
            display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
            background: rgba(59,130,246,0.1); color: var(--accent-blue); border: 1px solid rgba(59,130,246,0.2);
        }
        .badge-apr { display: inline-block; padding: 4px 10px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; }
        .badge-apr-high { background: rgba(0,232,120,0.1); color: var(--accent-green); text-shadow: 0 0 8px rgba(0, 255, 65, 0.5); font-family: 'JetBrains Mono', monospace; }
        .badge-apr-medium { background: rgba(245,158,11,0.1); color: var(--accent-yellow); }
        .badge-apr-low { background: rgba(148,163,184,0.1); color: var(--text-secondary); }

        .table-dark {
            --bs-table-bg: transparent; --bs-table-color: var(--text-primary); --bs-table-border-color: rgba(30,41,59,0.4);
        }
        .table-dark thead th {
            color: var(--text-muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase;
            letter-spacing: 1px; border-bottom: 1px solid var(--border-color); padding: 16px;
            font-family: 'JetBrains Mono', monospace;
        }
        .table-dark tbody td { padding: 14px 16px; vertical-align: middle; }
        .table-dark tbody tr:hover { background: rgba(255,255,255,0.02); }

        .input-dark {
            background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary);
            padding: 12px 18px; border-radius: 12px; font-size: 1rem; outline: none;
        }
        .input-dark:focus { border-color: var(--accent-green); }
        .select-dark {
            background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary);
            padding: 10px 16px; border-radius: 10px; font-size: 0.9rem; cursor: pointer; outline: none;
        }

        .academy-card {
            background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px;
            padding: 24px; text-align: center; transition: all 0.2s; height: 100%; cursor: pointer;
        }
        .academy-card:hover { border-color: var(--accent-green); transform: translateY(-2px); }
        .academy-card .icon { font-size: 2rem; margin-bottom: 12px; }
        .academy-card h6 { font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
        .academy-card p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; opacity: 0.9; }

        .text-muted { color: var(--text-muted) !important; }

        .navbar .container { display: flex; flex-wrap: nowrap; align-items: center; }
        .navbar-brand { flex-shrink: 0; margin-right: 15px; }
        .navbar .container > div:last-child { overflow-x: visible; overflow-y: visible; white-space: nowrap; flex: 1; }
        .dropdown-menu { z-index: 9999 !important; }
        .navbar .dropdown { position: relative; }
        .navbar .dropdown-menu { position: absolute; top: 100%; left: 0; }

        @media (max-width: 768px) {
            .stat-value { font-size: 1.5rem; }
            .hide-mobile { display: none; }
            #desktopMenu { display: none !important; }
            .navbar .container { flex-direction: column; align-items: flex-start; }
            .navbar-brand { margin-bottom: 8px; }
            .navbar .container > div:last-child {
                overflow-x: auto; overflow-y: hidden; white-space: nowrap;
                -webkit-overflow-scrolling: touch; scrollbar-width: none;
                width: 100%; padding-bottom: 4px;
            }
            .navbar .container > div:last-child::-webkit-scrollbar { display: none; }
        }
        @media (max-width: 992px) {
            .hide-mobile { display: none; }
            .table-dark tbody td { padding: 8px 6px; font-size: 0.8rem; }
            .table-dark thead th { padding: 8px 6px; font-size: 0.7rem; }
            #desktopMenu { display: none !important; }
        }
        @media (min-width: 768px) { .stat-value { font-size: 1.5rem; } }
        @media (min-width: 992px) { .stat-value { font-size: 1.8rem; } }

        [title] { position: relative; }


        .mobile-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.7); opacity: 0; visibility: hidden;
            transition: all 0.3s; z-index: 149;
        }
        .mobile-overlay.active { opacity: 1; visibility: visible; }

        .mobile-menu {
            position: fixed; top: 0; left: -280px; width: 260px; height: 100vh;
            background: #0D1117; border-right: 1px solid var(--border-color);
            padding: 70px 16px 20px; transition: left 0.3s ease;
            z-index: 150; overflow-y: auto;
        }
        .mobile-menu.active { left: 0; }
        .mobile-menu a {
            display: block; padding: 12px 16px; color: var(--text-secondary);
            text-decoration: none; font-size: 0.95rem; border-radius: 8px;
            transition: all 0.2s; margin-bottom: 2px; white-space: normal;
        }
        .mobile-menu a:hover { background: rgba(0, 255, 65, 0.05); color: var(--accent-green); }
        .mobile-divider { height: 1px; background: var(--border-color); margin: 10px 0; }
        .mobile-section {
            color: var(--accent-green); font-size: 0.65rem; text-transform: uppercase;
            letter-spacing: 2px; padding: 8px 16px 4px; font-family: 'JetBrains Mono', monospace;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .animate-in { animation: fadeInUp 0.5s ease forwards; }

        .web3modal-modal-lightbox {
            z-index: 99999 !important;
        }
        .web3modal-modal-card {
            z-index: 99999 !important;
        }