:root {
    /* Premium Deep Blue Palette */
    --bg-charcoal: #0B1121;       /* Deep Midnight Blue */
    --bg-overlay: rgba(255, 255, 255, 0.03); 
    
    --text-primary: #F8FAFC;      /* Off-White / Blue-Tinted White */
    --text-secondary: #94A3B8;    /* Slate-400 */
    --text-tertiary: #64748B;     /* Slate-500 */
    
    --accent-gold: #38BDF8;       /* Sky Blue (Cyan) - Modern Tech Luxury */
    --accent-silver: #E2E8F0;     /* Slate-200 */
    --accent-glow: rgba(56, 189, 248, 0.15); /* Blue Glow */
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(56, 189, 248, 0.3); /* Blue Highlight */
    
    --font-sans: 'Rajdhani', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-digital: 'Rajdhani', sans-serif; /* Unified tech look */
    
    /* Semantic mapping */
    --bg: var(--bg-charcoal);
    --bg-card: rgba(15, 23, 42, 0.6); /* Slate-900 with opacity */
    --border: var(--border-subtle);
    --primary: var(--text-primary);
    --muted: var(--text-secondary);
    --accent: var(--accent-gold);
    --radius: 4px;
}

/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    /* Deep Blue with Brighter Zones (Wider Shade Ratio) */
    background: 
        radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 25%), /* Emerald/Green tint */
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.12) 0%, transparent 30%), /* Sky Blue */
        var(--bg-charcoal);
}

/* Grainy Noise Texture - Brighter Zones compatible */
body::before {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Navigation - Minimalist & Luxury */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    background: transparent;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Logo */
.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 1rem;
    color: var(--accent-gold);
}

/* Right Side: Links + Actions */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem; /* Increased spacing for cleaner look */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    /* text-transform: uppercase; Removed for Title Case */
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

/* Minimalist Button Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 2px;
    transition: all 0.2s ease;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-charcoal);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
}

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

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

/* Connect / Login Special Styles */
.login-btn {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-highlight);
    padding: 0.5rem 1.2rem;
    border-radius: 2px;
    background: rgba(56, 189, 248, 0.1);
    transition: all 0.2s;
}

.login-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent-gold);
}

.logout-btn {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.logout-btn:hover {
    color: var(--text-primary);
}

/* Cards & Containers - Glassmorphism */
.card, .admin-card, .feature-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    backdrop-filter: blur(8px);
}

/* Footer (Minimal) */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0;
    margin-top: 4rem;
    background: linear-gradient(to top, #020617, var(--bg-charcoal));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-col h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* Mobile Nav */
.nav-toggle {
    display: none;
    color: var(--text-primary);
    background: none;
    border: none;
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-right {
        gap: 1rem;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-charcoal);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-links.open { display: flex; }
}
