:root {
    --primary: #00c076; /* Bitunix Green */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
    --bg: #ffffff;
    --surface: #f5f5f5;
    --text: #1e2329;
    --border: #eaecef;
    --footer-bg: #f8f9fa;
}

/* Night/Dark Theme */
[data-theme="dark"] {
    --bg: #0b0e11;
    --surface: #1e2329;
    --text: #eaecef;
    --border: #2b3139;
    --footer-bg: #0b0e11;
}

/* Dim Theme */
[data-theme="dim"] {
    --bg: #161a1e;
    --surface: #21262c;
    --text: #f0f1f2;
    --border: #2d343c;
    --footer-bg: #161a1e;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg); color: var(--text); transition: background 0.3s; }
@media (max-width: 768px) {
    .btn-signup {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .logo {
        font-size: 18px !important;
    }
}
/* --- RESPONSIVE FIXES --- */

/* 1. Fix the main container */
.container {
    width: 100%;
    max-width: 1280px; /* Limit on desktop */
    margin: 0 auto;
    padding: 0 15px; /* Gutter for mobile edges */
    box-sizing: border-box;
}

/* 2. Fix the header scaling */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 3. Hide desktop elements on mobile */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none !important;
    }
    
    /* Make text bigger for mobile readability */
    h1 { font-size: 28px !important; }
    p { font-size: 16px !important; }
    
    /* Ensure the 100k perks bar doesn't overflow */
    .asset-bar {
        bottom: 100px !important; /* Move it up above the floating menu */
        width: calc(100% - 30px) !important;
        left: 15px !important;
        transform: none !important;
        font-size: 12px;
    }
    
    /* Fix the Bottom Pill Menu scale */
    .mobile-nav-wrapper {
        bottom: 15px;
        width: 100%;
        justify-content: center;
        transform: translateX(-50%) scale(0.9); /* Scale down slightly to fit all phones */
    }
}
/* UTILS */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* HEADER STYLES */
header {
    height: 64px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 1000;
}


.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    margin-right: 24px;
    transition: var(--primary);
}
.nav-links a:hover { color: var(--primary); }


/* --- CONSTANTS --- */
:root {
    --bitunix-night: #0b0e11;
    --bitunix-lime: #c8ff00; /* The bright Bitunix Sign Up color */
}

/* --- HEADER (STAYS DARK) --- */
header {
    height: 64px;
    background: var(--bitunix-night) !important; /* Force Dark */
    border-bottom: 1px solid #2b3139;
    color: #ffffff !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header a, header button, header span {
    color: #ffffff !important;
}

/* --- SIGN UP BUTTON --- */
.btn-signup {
    background: var(--bitunix-lime) !important;
    color: #000000 !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.btn-signup:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 4px 15px rgba(200, 255, 0, 0.3);
}

/* --- DOWNLOAD & QR TOOLTIP --- */
.download-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.qr-tooltip {
    position: absolute;
    top: 50px;
    right: 0;
    background: #1e2329;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #363c4e;
    display: none;
    text-align: center;
    width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.download-wrapper:hover .qr-tooltip {
    display: block;
    animation: fadeIn 0.2s ease;
}

.qr-tooltip img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* --- DESKTOP SETTINGS DROPDOWN --- */
.settings-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: #1e2329;
    border: 1px solid #363c4e;
    border-radius: 12px;
    width: 240px;
    padding: 15px;
    display: none; /* Toggled by JS */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1100;
}

.settings-dropdown.active { display: block; }

.drop-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #2b3139;
}

.drop-row:last-child { border: none; }

/* Small Mood Toggle Buttons inside Dropdown */
.mood-pill {
    display: flex;
    background: #0b0e11;
    border-radius: 8px;
    padding: 4px;
}

.mood-pill button {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.mood-pill button.active {
    background: #2b3139;
    color: var(--primary) !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* MOBILE SIDEBAR (Right Side) */
.sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: none; z-index: 1001;
}
.mobile-sidebar {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100%;
    background: var(--bg); z-index: 1002; transition: var(--transition);
    padding: 20px; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
.mobile-sidebar.active { right: 0; }




/* FLOATING ASSET BAR */
.asset-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 12px;
    z-index: 998;
    width: 90%;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
 
 
  




 






/* Icon Styling for selected mobile buttom footer*/
.nav-item .material-symbols-rounded {
    font-size: 24px;
    margin-bottom: 2px;
}
 

.nav-item.active .material-symbols-rounded {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px 8px;
} 

/* --- ASSET BAR POSITIONING --- */
@media (max-width: 1024px) {
    .mobile-bottom-bar, .floating-search { display: flex; }
    
    .asset-bar {
        bottom: 140px !important; /* Lifted higher to clear Search + Bottom Bar */
        width: 92% !important;
        background: rgba(var(--bg), 0.9);
        backdrop-filter: blur(10px);
    }
} 

/* --- Desktop Floating Menu --- */
.nav-item-dropdown { position: relative; display: inline-block; }
.dropdown-content {
    position: absolute; top: 100%; left: 0; min-width: 260px;
    background: #1e2329; border: 1px solid #363c4e; border-radius: 12px;
    padding: 10px; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 2000;
}
.nav-item-dropdown:hover .dropdown-content { 
    opacity: 1; visibility: visible; transform: translateY(0); 
}

/* --- Mega Menu (For Trade/Market) --- */
.mega-menu { width: 500px; display: grid; grid-template-columns: 200px 1fr; gap: 10px; padding: 0; }
.mega-left { padding: 15px; border-right: 1px solid #363c4e; }
.mega-right { padding: 15px; background: #0b0e11; max-height: 350px; display: flex; flex-direction: column; }

/* --- Mobile Sub-Menu --- */
.mobile-sub-menu { display: none; padding-left: 20px; flex-direction: column; gap: 15px; margin-top: 10px; }
.mobile-group.active .mobile-sub-menu { display: flex; }
.mobile-group .arrow-rotate { transition: 0.3s; }
.mobile-group.active .arrow-rotate { transform: rotate(180deg); }

/* --- Search & Item Styling --- */
.drop-link { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 8px; text-decoration: none; color: white !important; font-size: 13px; }
.drop-link:hover { background: rgba(0, 192, 118, 0.1); color: var(--primary) !important; }
.coin-item-small { display: flex; justify-content: space-between; padding: 8px; cursor: pointer; border-radius: 6px; }
.coin-item-small:hover { background: #1e2329; } 
 
/* =========================================
   4. DESKTOP FOOTER (BITGET STYLE)
   ========================================= */
.main-footer {
    background: var(--footer-bg);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) 180px; /* 5 menu cols + 1 QR col */
    gap: 30px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); }

.qr-section { text-align: center; }
.qr-box {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 10px;
}
.qr-box img { width: 120px; height: 120px; display: block; }
.qr-text { font-size: 12px; color: var(--text-muted); }

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================================
   5. FLOATING & MOBILE ELEMENTS
   ========================================= */
 

/* Mobile Nav Wrapper */
.mobile-nav-wrapper {
    position: fixed;
    bottom: 25px; left: 50%;
    transform: translateX(-50%);
    display: none; align-items: center;
    gap: 12px; z-index: 1000;
}

.mobile-nav-pill {
    display: flex;
    background: rgba(30, 35, 41, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 5px 10px;
    height: 60px;
}

.nav-item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-width: 60px; color: #848e9c; text-decoration: none;
}
.nav-item.active { color: var(--primary); }
.nav-item .material-symbols-rounded { font-size: 24px; }
.nav-item span { font-size: 10px; margin-top: 2px; }

.mobile-search-fab {
    width: 56px; height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #534545; border: none; cursor: pointer;
    box-shadow: 0 8px 24px rgba(97, 148, 128, 0.4);
}

/* =========================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .qr-section { grid-column: span 2; margin-top: 20px; }
    .mobile-nav-wrapper { display: flex; } 
    .desktop-nav { display: none !important; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .qr-section { grid-column: span 1; }
}