/* ========== GOLD LUXURY THEME – HEADER & NAVIGATION ========== */
/* Uses your exact gold variables – ready to drop in */

:root {
    /* ================= SIGNATURE GOLD SYSTEM ================= */
    --gold-primary: #D4AF37;      /* Rich luxury gold */
    --gold-bright: #F5C542;       /* Highlight gold (buttons, glow) */
    --gold-light: #FFE08A;        /* Soft reflections */
    --gold-deep: #8C6A1E;         /* Depth / shadows */
    --gold-dark: #5E4A17;         /* Dark gold base */

    /* ================= BACKGROUND (to make gold POP) ================= */
    --background-dark: #0A0F1C;
    --background-secondary: #0F172A;
    --background-elevated: #111827;

    /* ================= GLASS / SURFACES ================= */
    --surface-glass: rgba(15, 23, 42, 0.65);
    --card-glass: rgba(255, 255, 255, 0.04);
    --glass-gold: rgba(212, 175, 55, 0.12);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* ================= TEXT ================= */
    --text-primary: #EDEDED;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --white: #FFFFFF;

    /* ================= TRADING COLORS ================= */
    --success: #22C55E;
    --danger: #EF4444;
    --warning: #F59E0B;

    /* ================= GOLD GLOW SYSTEM ================= */
    --gold-glow-soft: rgba(212, 175, 55, 0.25);
    --gold-glow-medium: rgba(245, 197, 66, 0.35);
    --gold-glow-strong: rgba(245, 197, 66, 0.5);

    /* ================= SHADOWS ================= */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 6px 18px rgba(212, 175, 55, 0.25);
    --shadow-glow: 0 0 30px rgba(245, 197, 66, 0.35);

    /* ================= GRADIENTS ================= */
    --gradient-gold-main: linear-gradient(135deg, #8C6A1E, #D4AF37, #F5C542);
    --gradient-gold-glow: linear-gradient(135deg, #F5C542, #FFE08A);
    --gradient-dark: linear-gradient(135deg, #0A0F1C, #1E293B);

    /* ================= TYPOGRAPHY ================= */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;

    /* ================= TRANSITIONS ================= */
    --transition-smooth: all 0.3s ease;
    --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Global Styles – crisp text */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

body {
    background: var(--background-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    font-weight: 400;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* Animated Particle Background (optional) */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--background-dark);
}

/* ========== MAIN NAVIGATION ========== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    height: 60px;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-icon {
    cursor: pointer;
    font-size: 24px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    padding: 8px;
    border-radius: 8px;
}
.menu-icon:hover {
    background: var(--glass-gold);
    color: var(--gold-primary);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-gold-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.account-display,
.balance-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}
.account-display:hover,
.balance-display:hover {
    transform: translateY(-1px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}
.account-display {
    margin-right: 15px;
}
.account-label,
.balance-label {
    font-size: 14px;
    color: var(--gold-light);
    font-weight: 500;
}
.account-value,
.balance-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 700;
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.status-indicators {
    display: flex;
    gap: 12px;
    align-items: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(4px);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}
.status-item:hover {
    background: var(--glass-gold);
    transform: translateY(-1px);
}
.status-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 6px var(--danger);
    animation: statusPulse 2s infinite;
    position: relative;
}
.status-dot.connected {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}
.status-dot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid currentColor;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    opacity: 0.3;
    animation: statusRipple 2s infinite;
}
@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}
@keyframes statusRipple {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-gold-main);
    color: var(--white);
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}
.login-btn i {
    font-size: 16px;
}

.account-select {
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.account-select:hover {
    background: var(--glass-gold);
    border-color: var(--gold-primary);
}

/* ========== SIDE NAVIGATION ========== */
.side-navbar {
    width: 80px;
    height: calc(100vh - 60px);
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
    border-right: 1px solid var(--glass-border);
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.05);
}
.side-navbar.active {
    width: 250px;
}
.side-navbar ul {
    list-style: none;
    padding: 20px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.side-navbar ul li {
    position: relative;
    margin: 8px 12px;
    padding: 12px 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 16px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.side-navbar ul li .initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-gold);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}
.side-navbar ul li .initial i {
    font-size: 18px;
}
.side-navbar ul li .initial::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s ease;
}
.side-navbar ul li:hover .initial::before {
    left: 100%;
}
.side-navbar ul li .text {
    display: none;
    font-size: 14px;
    font-weight: 600;
    margin-left: 15px;
    white-space: nowrap;
}
.side-navbar.active ul li {
    justify-content: flex-start;
    padding: 12px 20px;
}
.side-navbar.active ul li .text {
    display: block;
}
.side-navbar ul li:hover {
    background: var(--glass-gold);
    transform: scale(1.02);
}
.side-navbar ul li:hover .initial {
    background: var(--gold-primary);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}
.side-navbar:not(.active) ul li::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 15, 28, 0.96);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1000;
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}
.side-navbar:not(.active) ul li:hover::after {
    opacity: 1;
    visibility: visible;
    left: 70px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 8px;
        height: 50px;
    }
    .logo {
        font-size: 14px;
    }
    .account-display,
    .balance-display {
        padding: 4px 8px;
    }
    .account-label,
    .balance-label {
        font-size: 8px;
    }
    .account-value,
    .balance-value {
        font-size: 9px;
    }
    .login-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
    .account-select {
        padding: 4px 8px;
        font-size: 10px;
    }
    .status-item {
        padding: 4px 6px;
    }
    .side-navbar {
        width: 60px;
    }
    .side-navbar ul li .initial {
        width: 36px;
        height: 36px;
    }
    .side-navbar ul li .initial i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        height: auto;
        min-height: 40px;
    }
    .nav-container {
        padding: 2px 6px;
        flex-wrap: wrap;
        gap: 4px;
    }
    .nav-left {
        order: 1;
        gap: 4px;
    }
    .menu-icon {
        font-size: 16px;
        padding: 2px;
    }
    .logo {
        font-size: 11px;
    }
    .nav-center {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 4px;
        margin-top: 2px;
        flex-wrap: nowrap;
    }
    .account-display,
    .balance-display {
        padding: 2px 6px;
        flex: 1;
        text-align: center;
    }
    .account-label,
    .balance-label {
        font-size: 7px;
        display: block;
    }
    .account-value,
    .balance-value {
        font-size: 8px;
        display: block;
    }
    .nav-actions {
        order: 2;
        gap: 4px;
    }
    .login-btn {
        padding: 2px 6px;
        font-size: 8px;
    }
    .login-btn i {
        font-size: 9px;
    }
    .account-select {
        padding: 2px 4px;
        font-size: 8px;
        min-width: 65px;
    }
    .status-item {
        padding: 2px 4px;
    }
    .status-label {
        font-size: 8px;
    }
    .side-navbar {
        width: 50px;
    }
    .side-navbar ul li .initial {
        width: 30px;
        height: 30px;
    }
    .side-navbar ul li .initial i {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .nav-container {
        padding: 1px 4px;
    }
    .logo {
        font-size: 9px;
    }
    .account-label,
    .balance-label {
        font-size: 6px;
    }
    .account-value,
    .balance-value {
        font-size: 7px;
    }
    .login-btn {
        padding: 1px 4px;
        font-size: 6px;
    }
    .account-select {
        font-size: 6px;
        min-width: 50px;
    }
    .status-label {
        font-size: 6px;
    }
    .side-navbar {
        width: 45px;
    }
    .side-navbar ul li .initial {
        width: 24px;
        height: 24px;
    }
    .side-navbar ul li .initial i {
        font-size: 12px;
    }
}