:root {
    --bg-color: #0B0E14;
    /* Dark premium background */
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --card-bg: #11151C;
    /* Slightly lighter for cards */
    --card-border: #1F2532;
    --primary-color: #00DB6B;
    /* Vibrant green accent */
    --primary-hover: #00BF5D;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 1200px;
}

/* Light theme overrides */
[data-theme="light"] {
    --bg-color: #f5f7fb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --primary-color: #10b981;
    --primary-hover: #059669;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--card-border);
    padding: 1.25rem 0;
    background-color: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--primary-color);
}

.logo-suffix {
    font-weight: 400;
    color: var(--text-secondary);
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text-primary);
}

/* Mobile auth links: hidden on desktop */
.mobile-auth-links {
    display: none;
}

/* Base button */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #000;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    border-color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(0, 219, 107, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 219, 107, 0.2);
}

.alert-error {
    background-color: rgba(255, 85, 85, 0.1);
    color: #ff5555;
    border: 1px solid rgba(255, 85, 85, 0.2);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--card-border);
    padding: 3rem 0;
    margin-top: 5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

/* ══════════════════════════════════════════════════════════
   HAMBURGER MENU BUTTON (hidden on desktop)
   ══════════════════════════════════════════════════════════ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE – Tablet (≤ 900px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(11, 14, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        font-size: 1.3rem;
        z-index: 150;
    }

    .main-nav.open {
        display: flex;
    }

    .header-actions {
        display: none !important;
    }

    .main-nav.open~.header-actions,
    .mobile-actions {
        display: flex !important;
    }

    /* Show auth links inside mobile nav */
    .main-nav.open .mobile-auth-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE – Mobile (≤ 640px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .site-footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}