/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
       background: #f8fafc; color: #1e293b; min-height: 100vh; }
a { text-decoration: none; color: inherit; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav { background: #fff; border-bottom: 1px solid #e2e8f0;
       padding: 14px 32px; display: flex; align-items: center;
       justify-content: space-between; position: sticky; top: 0; z-index: 100;
       box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.nav-logo { font-size: 18px; font-weight: 800; color: #2563eb; letter-spacing: -.5px; }
.nav-logo span { color: #1e293b; }
.nav-links { display: flex; gap: 4px; }
.nav-link { padding: 7px 14px; border-radius: 7px; font-size: 13px; font-weight: 600;
            color: #64748b; transition: all .15s; }
.nav-link:hover { background: #f1f5f9; color: #1e293b; }
.nav-link.active { background: #eff6ff; color: #2563eb; }
.nav-user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #64748b; }
.nav-user-email { font-weight: 500; color: #374151; }
.btn-sm { padding: 7px 16px; border-radius: 7px; font-size: 13px; font-weight: 600;
          cursor: pointer; border: none; transition: all .15s; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { background: transparent; color: #64748b; border: 1px solid #e2e8f0; }
.btn-outline:hover { background: #f1f5f9; color: #1e293b; }

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
.page { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.page-header p { color: #64748b; font-size: 14px; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
        padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }

/* ── Auth gate ────────────────────────────────────────────────────────────── */
#authGate { display: flex; align-items: center; justify-content: center; min-height: 80vh; }
.auth-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
             padding: 48px; text-align: center; max-width: 400px;
             box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.auth-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: #0f172a; }
.auth-card p { color: #64748b; font-size: 14px; margin-bottom: 24px; line-height: 1.6; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px;
         font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.badge-blue { background: #eff6ff; color: #2563eb; }
.badge-green { background: #f0fdf4; color: #16a34a; }
.badge-purple { background: #faf5ff; color: #7c3aed; }
