/* ═══════════════════════════════════════════════
   ScoreCaster v4 — Design System
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Montserrat:wght@700;800;900&display=swap');

/* ── CSS Variables ──────────────────────────────── */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --secondary: #3b82f6;
  --secondary-dark: #2563eb;
  --secondary-light: #dbeafe;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-light: #fed7aa;
  --bg: #f8f9fc;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --card-hover: #f8fafc;
  --text: #1a1a2e;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #22c55e;
  --success-light: #dcfce7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --info: #3b82f6;
  --info-light: #dbeafe;
  --live: #22c55e;
  --upcoming: #3b82f6;
  --ended: #f97316;
  --admin: #8b5cf6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Mode ──────────────────────────────────── */
[data-theme="dark"] {
  --primary: #34d399;
  --primary-dark: #10b981;
  --primary-light: #064e3b;
  --secondary: #60a5fa;
  --secondary-dark: #3b82f6;
  --secondary-light: #1e3a5f;
  --accent: #fb923c;
  --accent-dark: #f97316;
  --accent-light: #7c2d12;
  --bg: #0b1220;
  --bg-alt: #111a2e;
  --card: #131c30;
  --card-hover: #182338;
  --text: #e6eaf2;
  --text-secondary: #9aa7bd;
  --text-muted: #66758f;
  --border: #243147;
  --border-light: #1d2940;
  --success: #22c55e;
  --success-light: #14532d;
  --danger: #f87171;
  --danger-light: #7f1d1d;
  --warning: #f59e0b;
  --warning-light: #78350f;
  --info: #60a5fa;
  --info-light: #1e3a5f;
  --live: #22c55e;
  --upcoming: #60a5fa;
  --ended: #fb923c;
  --admin: #a78bfa;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.7);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }
svg { display: block; }

/* ── Typography ─────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--text); }
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font); font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-secondary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--bg-alt); border-color: var(--text-muted); }

.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2rem; font-size: 1.125rem; border-radius: var(--radius-lg); }

.btn-icon {
  width: 2.25rem; height: 2.25rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
}

/* ── Forms ──────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text); margin-bottom: 0.375rem; }
.form-input, .form-select {
  display: block; width: 100%;
  font-family: var(--font); font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all var(--transition);
}
.form-input:focus, .form-select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.input-lg { padding: 0.875rem 1rem; font-size: 1rem; }
.form-input.mono { font-family: 'SF Mono', 'Fira Code', monospace; letter-spacing: 0.01em; }

.form-checkbox {
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer; font-size: 0.875rem;
}
.form-checkbox input[type="checkbox"] {
  width: 1rem; height: 1rem;
  accent-color: var(--primary);
  border-radius: var(--radius-sm);
}

.form-error { font-size: 0.8125rem; color: var(--danger); margin-top: 0.25rem; }

/* ── Cards ──────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}
.card-hover:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateY(-1px);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.card-title { font-size: 1.125rem; font-weight: 600; }
.card-body { }
.card-footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-light); }

/* ── Badges ─────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.1875rem 0.625rem;
  border-radius: 9999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-live { background: var(--success-light); color: #15803d; }
.badge-upcoming { background: var(--info-light); color: #1d4ed8; }
.badge-ended { background: var(--accent-light); color: #c2410c; }
.badge-pending { background: var(--warning-light); color: #92400e; }
.badge-suspended { background: var(--danger-light); color: #991b1b; }
.badge-admin { background: #ede9fe; color: #6d28d9; }
.badge-active { background: var(--primary-light); color: #065f46; }

/* ── Status Dots ────────────────────────────────── */
.status-dot {
  display: inline-block; width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.375rem;
}
.status-dot.live { background: var(--live); box-shadow: 0 0 6px var(--live); }
.status-dot.upcoming { background: var(--upcoming); }
.status-dot.ended { background: var(--ended); }
.status-dot.active { background: var(--success); }
.status-dot.error { background: var(--danger); }

/* ── Nav ────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: #0f172a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.5rem; height: 3.75rem;
}
.navbar-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Montserrat', var(--font-heading);
  font-size: 1.5rem; font-weight: 900;
  color: #ffffff; text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.navbar-brand span { color: #10b981; }
.navbar-links { display: flex; align-items: center; gap: 0.25rem; }
.navbar-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem; font-weight: 500;
  color: #cbd5e1; text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.navbar-link:hover, .navbar-link.active { background: rgba(255,255,255,0.08); color: #ffffff; }
.navbar-end { display: flex; align-items: center; gap: 0.5rem; }

.navbar .btn-ghost { color: #cbd5e1; }
.navbar .btn-ghost:hover { background: rgba(255,255,255,0.08); color: #ffffff; }
.navbar .btn-ghost span { color: #64748b !important; }

.theme-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.125rem; height: 2.125rem;
  background: none; border: 1px solid rgba(255,255,255,0.15); border-radius: 9999px;
  color: #cbd5e1; cursor: pointer;
  transition: all var(--transition);
}
.theme-toggle-btn:hover { background: rgba(255,255,255,0.08); color: #ffffff; }
.theme-toggle-btn .icon-moon { display: block; }
.theme-toggle-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-sun { display: block; }

body, .navbar, .card, .modal, .stat-tile, .modal-content, .toast, .onboarding-banner {
  transition: background-color var(--transition-slow), border-color var(--transition-slow), color var(--transition-slow);
}

html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease !important;
}

.navbar-profile {
  position: relative;
}
.navbar-profile-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  background: none; border: 1px solid rgba(255,255,255,0.15); border-radius: 9999px;
  cursor: pointer; font-family: var(--font); font-size: 0.875rem;
  color: #e2e8f0; transition: all var(--transition);
}
.navbar-profile-btn:hover { background: rgba(255,255,255,0.08); }
.navbar-avatar {
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.navbar-dropdown {
  position: absolute; top: calc(100% + 0.375rem); right: 0; z-index: 100;
  min-width: 200px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px); transition: all var(--transition);
}
.navbar-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.navbar-dropdown-header { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-light); }
.navbar-dropdown-header .name { font-weight: 600; font-size: 0.875rem; }
.navbar-dropdown-header .email { font-size: 0.75rem; color: var(--text-muted); }
.navbar-dropdown-header .subscription-days {
  margin-top: 0.375rem; padding-top: 0.375rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem; font-weight: 600; color: var(--primary-dark);
}
[data-theme="dark"] .navbar-dropdown-header .subscription-days { color: var(--primary); }
.navbar-dropdown-header .subscription-days.unlimited { color: var(--text-muted); font-weight: 500; }
.navbar-dropdown-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem; color: var(--text); text-decoration: none;
  transition: background var(--transition);
}
.navbar-dropdown-item:hover { background: var(--bg-alt); }
.navbar-dropdown-item.danger { color: var(--danger); }
.navbar-dropdown-divider { height: 1px; background: var(--border-light); margin: 0.25rem 0; }

/* ── Layout ─────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.page { padding: 2rem 0; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { margin-bottom: 0.25rem; }
.page-header p { color: var(--text-secondary); font-size: 0.9375rem; }

.section { margin-bottom: 2rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.section-title { font-size: 1.125rem; font-weight: 600; }

/* ── Grids ──────────────────────────────────────── */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ── Toasts ─────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column-reverse; gap: 0.5rem;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 0.75rem;
  min-width: 300px; max-width: 420px;
  padding: 0.875rem 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastSlideIn 300ms ease-out;
  font-size: 0.875rem;
}
.toast.removing { animation: toastSlideOut 250ms ease-in forwards; }
.toast-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; }
.toast-message { flex: 1; }
.toast-close {
  flex-shrink: 0; width: 1.25rem; height: 1.25rem;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info { border-left: 3px solid var(--info); }

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ── Skeleton ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
.skeleton-text { height: 0.875rem; margin-bottom: 0.5rem; width: 80%; }
.skeleton-text.short { width: 50%; }
.skeleton-title { height: 1.25rem; margin-bottom: 0.75rem; width: 60%; }
.skeleton-card { height: 180px; }
.skeleton-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.skeleton-badge { width: 4rem; height: 1.25rem; border-radius: 9999px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Modal ──────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all var(--transition-slow);
  padding: 1rem;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--card); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: all var(--transition-slow);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-light);
}
.modal-header h2 { font-size: 1.125rem; font-weight: 700; }
.modal-close {
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); border-radius: var(--radius-md);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-alt); color: var(--text); }
.modal-body { padding: 1.5rem; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border-light); }

/* ── Empty States ───────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.5rem;
}
.empty-state-icon { width: 4rem; height: 4rem; color: var(--text-muted); margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.125rem; margin-bottom: 0.375rem; }
.empty-state p { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 1.25rem; max-width: 400px; }

/* ── Onboarding Banner ──────────────────────────── */
.onboarding-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; padding: 0.75rem 0;
}
.onboarding-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  gap: 1rem; flex-wrap: wrap;
}
.onboarding-banner-left { display: flex; align-items: center; gap: 0.75rem; }
.onboarding-banner-left svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.onboarding-banner-text { font-size: 0.875rem; font-weight: 500; }
.onboarding-steps {
  display: flex; align-items: center; gap: 0.5rem;
}
.onboarding-step {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.75rem; opacity: 0.7;
}
.onboarding-step.active { opacity: 1; font-weight: 600; }
.onboarding-step.completed { opacity: 1; }
.onboarding-step-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.onboarding-step.completed .onboarding-step-dot { background: #fff; }
.onboarding-step.active .onboarding-step-dot { background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.8); }
.onboarding-banner-btn {
  background: rgba(255,255,255,0.2); color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.8125rem; padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md); cursor: pointer;
  font-family: var(--font); transition: all var(--transition);
}
.onboarding-banner-btn:hover { background: rgba(255,255,255,0.3); }

/* ── Command Palette ────────────────────────────── */
.cmdk-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 10vh;
  opacity: 0; visibility: hidden;
  transition: all var(--transition-slow);
}
.cmdk-overlay.open { opacity: 1; visibility: visible; }
.cmdk {
  background: var(--card); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 600px;
  max-height: 60vh; overflow: hidden;
  transform: scale(0.95);
  transition: all var(--transition-slow);
}
.cmdk-overlay.open .cmdk { transform: scale(1); }
.cmdk-input-wrap {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.cmdk-input-wrap svg { width: 1.25rem; height: 1.25rem; color: var(--text-muted); flex-shrink: 0; }
.cmdk-input {
  flex: 1; border: none; outline: none;
  font-family: var(--font); font-size: 1rem;
  color: var(--text); background: transparent;
}
.cmdk-input::placeholder { color: var(--text-muted); }
.cmdk-list { overflow-y: auto; max-height: 40vh; padding: 0.5rem; }
.cmdk-group { margin-bottom: 0.5rem; }
.cmdk-group-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); padding: 0.5rem 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cmdk-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer; font-size: 0.875rem;
  transition: background var(--transition);
}
.cmdk-item:hover, .cmdk-item.selected { background: var(--bg-alt); }
.cmdk-item svg { width: 1.125rem; height: 1.125rem; color: var(--text-muted); flex-shrink: 0; }
.cmdk-item .shortcut {
  margin-left: auto; font-size: 0.75rem;
  color: var(--text-muted); background: var(--bg-alt);
  padding: 0.125rem 0.375rem; border-radius: var(--radius-sm);
  font-family: var(--font);
}

/* ── Utilities ──────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hide-tablet { display: none; }
}
@media (max-width: 640px) {
  .navbar-links { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
  .page { padding: 1rem 0; }
  .onboarding-banner-inner { flex-direction: column; align-items: flex-start; }
  .toast { min-width: unset; max-width: calc(100vw - 2rem); }
}
