/* ============================================================
   Car Wash Tracker — Light & Fresh theme
   Matches the Android app's teal/green Material 3 palette.
   ============================================================ */

:root {
  /* Brand palette */
  --primary: #0FA968;
  --primary-dark: #00854A;
  --primary-light: #5FD899;
  --primary-surface: #F0FBF5;
  --accent-coral: #FF6B6B;
  --accent-amber: #FFB547;
  --accent-sky: #4FC3F7;
  --accent-purple: #7E57C2;

  /* Neutrals */
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --surface-variant: #F1F3F5;
  --border: #E0E5EB;
  --border-strong: #C9D1D9;
  --text: #101820;
  --text-muted: #6B7785;
  --text-soft: #414A52;

  /* Semantic */
  --error: #E53E3E;
  --error-bg: #FEF2F2;
  --success: #0FA968;
  --warning: #FFB547;

  /* Layout */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 32, 0.04), 0 1px 4px rgba(16, 24, 32, 0.04);
  --shadow: 0 2px 8px rgba(16, 24, 32, 0.06), 0 1px 2px rgba(16, 24, 32, 0.04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 32, 0.08), 0 4px 12px rgba(16, 24, 32, 0.06);
  --sidebar-w: 260px;
  --max-w: 1280px;
}

[data-theme="dark"] {
  --primary: #5FD899;
  --primary-dark: #0FA968;
  --primary-light: #5FD899;
  --primary-surface: #14241C;
  --bg: #101418;
  --surface: #1A1F26;
  --surface-variant: #252B33;
  --border: #2E353D;
  --border-strong: #3A4148;
  --text: #E6E8EB;
  --text-muted: #9CA3AB;
  --text-soft: #BEC4CC;
  --error-bg: #2A1414;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2.mobile-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--surface-variant); }
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-variant); }
.btn-danger {
  background: var(--error-bg);
  color: var(--error);
  border-color: transparent;
}
.btn-danger:hover:not(:disabled) { background: #FCDADA; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 20px;
}
.card-clickable { cursor: pointer; transition: all 0.15s ease; }
.card-clickable:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--primary-light); }

/* ---------- Forms ---------- */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border 0.15s ease, box-shadow 0.15s ease;
  font-size: 14px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 169, 104, 0.15);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge-primary { background: var(--primary-surface); color: var(--primary-dark); }
.badge-amber { background: #FFF4E0; color: #B36B00; }
.badge-coral { background: #FFE5E5; color: #B33A3A; }
.badge-sky { background: #E0F4FF; color: #006FA0; }
.badge-gray { background: var(--surface-variant); color: var(--text-muted); }

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table th {
  background: var(--surface-variant);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table tr:hover td { background: var(--surface-variant); }
.table tr:last-child td { border-bottom: none; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.landing-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}
.landing-nav nav { display: flex; gap: 28px; align-items: center; }
.landing-nav nav a { font-size: 14px; font-weight: 500; color: var(--text-soft); }
.landing-nav nav a:hover { color: var(--primary); }
@media (max-width: 720px) { .landing-nav nav { display: none; } }

.hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, var(--primary-surface) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(15, 169, 104, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 24px;
}
.hero-eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--primary); }
.hero p.lead {
  font-size: 18px;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num { font-size: 28px; font-weight: 800; color: var(--text); }
.hero-stat-label { font-size: 13px; color: var(--text-muted); }
.hero-preview {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
}
.hero-preview-mock {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}
.hero-preview-mock h4 { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.hero-preview-mock .big-num { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.hero-preview-mock .mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding-top: 8px;
}
.hero-preview-mock .mini-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}

.section { padding: 80px 0; }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-align: center;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow); border-color: var(--primary-light); transform: translateY(-2px); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-soft); font-size: 14px; line-height: 1.6; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--primary-surface) 0%, var(--surface) 30%);
}
.price-card .price-tag {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.price-card .price-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price-card .price-num span { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.price-card ul { margin: 20px 0 24px; }
.price-card li { padding: 8px 0; color: var(--text-soft); font-size: 14px; display: flex; align-items: flex-start; gap: 8px; }
.price-card li::before { content: '✓'; color: var(--primary); font-weight: 700; }

.cta-band {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-band p { font-size: 17px; opacity: 0.9; margin-bottom: 24px; position: relative; }
.cta-band .btn-primary { background: white; color: var(--primary); position: relative; }
.cta-band .btn-primary:hover { background: #F0FBF5; }

.landing-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.landing-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .landing-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.landing-footer h5 { font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.landing-footer li { padding: 4px 0; }
.landing-footer li a { font-size: 14px; color: var(--text-muted); }
.landing-footer li a:hover { color: var(--primary); }
.landing-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   AUTH (login, setup, forgot-pin)
   ============================================================ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--primary-surface) 0%, var(--bg) 100%);
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
}
.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 28px;
  margin: 0 auto 20px;
}
.auth-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 32px; }

/* PIN pad */
.pin-display {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 24px 0;
}
.pin-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  transition: all 0.15s ease;
}
.pin-dot.filled { background: var(--primary); transform: scale(1.1); }
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 280px;
  margin: 24px auto 0;
}
.pin-key {
  height: 64px;
  border-radius: 50%;
  background: var(--surface-variant);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
  border: 1px solid var(--border);
}
.pin-key:hover { background: var(--border); }
.pin-key:active { transform: scale(0.95); }
.pin-key.empty { background: transparent; border: none; cursor: default; }

/* OTP input */
.otp-input {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}
.otp-input input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  padding: 0;
}

/* ============================================================
   APP SHELL (sidebar + topbar)
   ============================================================ */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .sidebar.open { transform: translateX(0); }
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-brand-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.sidebar-brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.sidebar-brand-sub { font-size: 12px; color: var(--text-muted); }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sidebar-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 12px 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-soft);
  transition: all 0.1s ease;
}
.sidebar-link:hover { background: var(--surface-variant); color: var(--text); }
.sidebar-link.active { background: var(--primary-surface); color: var(--primary-dark); font-weight: 600; }
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-footer { padding-top: 16px; border-top: 1px solid var(--border); }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
@media (max-width: 600px) { .topbar { padding: 12px 16px; } }
.topbar-title { font-size: 20px; font-weight: 700; }
.topbar-subtitle { font-size: 13px; color: var(--text-muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.app-content { padding: 32px; flex: 1; }
@media (max-width: 600px) { .app-content { padding: 16px; } }

/* Mobile menu toggle */
.mobile-menu-toggle { display: none; }
@media (max-width: 900px) { .mobile-menu-toggle { display: inline-flex; } }

/* ---------- Dashboard summary cards ---------- */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.summary-card-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.summary-card-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.summary-card-value { font-size: 22px; font-weight: 800; margin-top: 4px; }

/* ---------- Chart cards ---------- */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.chart-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.chart-card .chart-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.chart-container { position: relative; height: 220px; }

/* ---------- Wash list items ---------- */
.wash-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}
.wash-row:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.wash-row + .wash-row { margin-top: 8px; }
.wash-row-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wash-row-info { flex: 1; min-width: 0; }
.wash-row-title { font-weight: 600; font-size: 14px; }
.wash-row-sub { font-size: 12px; color: var(--text-muted); }
.wash-row-amount { font-weight: 700; color: var(--primary); }

/* ---------- QR code ---------- */
.qr-wrap {
  background: white;
  padding: 16px;
  border-radius: var(--radius);
  display: inline-block;
  border: 1px solid var(--border);
}
.qr-wrap canvas, .qr-wrap img { display: block; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 32, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.modal-close:hover { background: var(--surface-variant); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--surface);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.2s ease;
}
@keyframes toastIn { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---------- Utility colors ---------- */
.text-primary { color: var(--primary); }
.text-error { color: var(--error); }
.text-success { color: var(--success); }
.bg-primary-soft { background: var(--primary-surface); }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state svg {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  opacity: 0.5;
}

/* ---------- Loading spinner ---------- */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
