@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Syne:wght@400;600;700&display=swap');

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

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --accent:       #e94560;
    --accent-hover: #c73652;
    --bg-page:      #0e0e1a;
    --bg-card:      #1a1a2e;
    --bg-input:     #12122a;
    --border:       #2e2e50;
    --text-primary: #eee;
    --text-muted:   #888;
    --text-dim:     #555;
    --font-display: 'Syne', sans-serif;
    --font-mono:    'DM Mono', monospace;
    --radius:       4px;
    --shadow-card:  0 24px 64px rgba(0,0,0,0.25), 0 0 0 1px rgba(233,69,96,0.15);
}

/* ============================================================
   BASE
   ============================================================ */
body {
    font-family: var(--font-display);
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}

nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    padding: 1rem 0.75rem;
    flex-shrink: 0; 
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}

nav a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

nav a.active {
    background: var(--accent);
    color: #fff;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
#app {
    padding: 2.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================================
   SHARED CARD
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden { display: none !important; }

.btn-spinner {
    display: inline-block;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
