/* ===== BES DESIGN TOKENS ===== */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ===== LIGHT MODE (Earthquake-themed: deep slate + seismic amber accent) ===== */
:root, [data-theme="light"] {
  --color-bg:             #f5f5f0;
  --color-surface:        #ffffff;
  --color-surface-2:      #fafaf7;
  --color-surface-offset: #eeeee8;
  --color-divider:        #d4d4cc;
  --color-border:         #c4c4bb;

  --color-text:           #1a1a2e;
  --color-text-muted:     #64647a;
  --color-text-faint:     #9e9eb0;
  --color-text-inverse:   #ffffff;

  /* Primary: Deep Seismic Blue */
  --color-primary:        #1b3a5c;
  --color-primary-hover:  #142d48;
  --color-primary-active: #0e2035;
  --color-primary-light:  #e8eef5;

  /* Accent: Earthquake Amber */
  --color-accent:         #c4841d;
  --color-accent-hover:   #a36d16;
  --color-accent-light:   #fef3e0;

  /* Seismic Red (alerts/danger) */
  --color-danger:         #b5342a;
  --color-danger-light:   #fde8e6;

  /* Success Green */
  --color-success:        #2d7a3a;
  --color-success-light:  #e6f4ea;

  --shadow-sm: 0 1px 3px rgba(27,58,92,0.06);
  --shadow-md: 0 4px 12px rgba(27,58,92,0.08);
  --shadow-lg: 0 12px 32px rgba(27,58,92,0.12);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --color-bg:             #0f1118;
  --color-surface:        #161822;
  --color-surface-2:      #1c1e2a;
  --color-surface-offset: #12141c;
  --color-divider:        #2a2d3a;
  --color-border:         #363848;

  --color-text:           #e0e0e8;
  --color-text-muted:     #8e8ea2;
  --color-text-faint:     #5e5e72;
  --color-text-inverse:   #0f1118;

  --color-primary:        #5b8fbf;
  --color-primary-hover:  #4a7da8;
  --color-primary-active: #3b6b92;
  --color-primary-light:  #1c2535;

  --color-accent:         #e8a93e;
  --color-accent-hover:   #d49530;
  --color-accent-light:   #2a2418;

  --color-danger:         #e06b63;
  --color-danger-light:   #2a1a18;

  --color-success:        #5aad65;
  --color-success-light:  #1a2a1c;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0f1118;
    --color-surface:        #161822;
    --color-surface-2:      #1c1e2a;
    --color-surface-offset: #12141c;
    --color-divider:        #2a2d3a;
    --color-border:         #363848;
    --color-text:           #e0e0e8;
    --color-text-muted:     #8e8ea2;
    --color-text-faint:     #5e5e72;
    --color-text-inverse:   #0f1118;
    --color-primary:        #5b8fbf;
    --color-primary-hover:  #4a7da8;
    --color-primary-active: #3b6b92;
    --color-primary-light:  #1c2535;
    --color-accent:         #e8a93e;
    --color-accent-hover:   #d49530;
    --color-accent-light:   #2a2418;
    --color-danger:         #e06b63;
    --color-danger-light:   #2a1a18;
    --color-success:        #5aad65;
    --color-success-light:  #1a2a1c;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
  }
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

/* ===== HEADER / NAV ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo svg {
  width: 44px;
  height: 44px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.1;
}

.logo-text small {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  font-family: var(--font-body);
}

.nav { display: flex; align-items: center; gap: var(--space-1); }

.nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover, .nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-toggle {
  display: none;
  padding: var(--space-2);
  color: var(--color-text);
}

.theme-toggle {
  padding: var(--space-2);
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
}

.theme-toggle:hover { color: var(--color-primary); background: var(--color-primary-light); }

/* Mobile Nav */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    flex-direction: column;
    padding: var(--space-4) var(--space-6);
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { padding: var(--space-3) var(--space-4); width: 100%; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0e2035 100%);
  color: var(--color-text-inverse);
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 L10 25 L20 35 L30 20 L40 32 L50 22 L60 30' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='2'/%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: var(--text-lg);
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: var(--space-8);
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  display: block;
  color: var(--color-accent);
}

.hero-stat .label {
  font-size: var(--text-xs);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

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

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover { background: var(--color-accent-hover); }

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

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ===== CARDS ===== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 600px;
}

/* ===== OBJECTIVES / FEATURES ===== */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.feature-icon svg { width: 24px; height: 24px; }

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-divider);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) + 6px);
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
}

.timeline-item.completed::before {
  background: var(--color-success);
}

.timeline-item.active::before {
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-light);
}

.timeline-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-weight: 600;
  margin-top: var(--space-1);
}

/* ===== VOTER TABLE ===== */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}

.data-table {
  font-size: var(--text-sm);
}

.data-table th {
  background: var(--color-surface-offset);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-divider);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  white-space: nowrap;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td {
  background: var(--color-primary-light);
}

/* ===== VOTING SYSTEM ===== */
.vote-section {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.vote-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.vote-limit {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.candidate-list {
  display: grid;
  gap: var(--space-3);
}

.candidate-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-divider);
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
}

.candidate-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.candidate-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.candidate-option .check {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
}

.candidate-option.selected .check {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.candidate-name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.candidate-slogan {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ===== LOGIN FORM ===== */
.login-card {
  max-width: 420px;
  margin: var(--space-12) auto;
  text-align: center;
}

.login-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-4);
  text-align: left;
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.form-group input, .form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-base);
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* ===== ALERT BANNERS ===== */
.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.alert-info {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.alert-success {
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.alert-danger {
  background: var(--color-danger-light);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

.alert-warning {
  background: var(--color-accent-light);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge-primary { background: var(--color-primary-light); color: var(--color-primary); }
.badge-accent { background: var(--color-accent-light); color: var(--color-accent); }
.badge-success { background: var(--color-success-light); color: var(--color-success); }
.badge-danger { background: var(--color-danger-light); color: var(--color-danger); }

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 2px solid var(--color-divider);
  margin-bottom: var(--space-6);
  overflow-x: auto;
}

.tab-btn {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--color-text); }
.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.9);
  padding-block: var(--space-12);
  margin-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
}

.footer h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  color: rgba(255,255,255,0.6);
}

.footer p, .footer a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
}

.footer a {
  text-decoration: none;
  display: block;
  padding: var(--space-1) 0;
}

.footer a:hover { color: white; }

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}

.footer-bottom a { display: inline; font-size: var(--text-xs); color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ===== SEARCH ===== */
.search-box {
  position: relative;
  max-width: 360px;
  margin-bottom: var(--space-4);
}

.search-box input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-left: var(--space-10);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.search-box svg {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-faint);
  width: 18px;
  height: 18px;
}

/* ===== RESULTS BAR CHART ===== */
.result-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.result-bar .name {
  min-width: 180px;
  font-size: var(--text-sm);
  font-weight: 500;
}

.result-bar .bar-track {
  flex: 1;
  height: 28px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.result-bar .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-sm);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-2);
  min-width: fit-content;
}

.result-bar .votes {
  font-size: var(--text-xs);
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ===== PAGES WRAPPER ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== SEISMIC WAVE DECORATION ===== */
.wave-divider {
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40'%3E%3Cpath d='M0 20 Q50 0 100 20 Q150 40 200 20 Q250 0 300 20 Q350 40 400 20 Q450 0 500 20 Q550 40 600 20 Q650 0 700 20 Q750 40 800 20 Q850 0 900 20 Q950 40 1000 20 Q1050 0 1100 20 Q1150 40 1200 20' fill='none' stroke='%231b3a5c' stroke-width='1.5' opacity='0.15'/%3E%3C/svg%3E") repeat-x center;
}

/* ===== CONSTITUTION STYLES ===== */
.constitution-content {
  max-width: var(--content-default);
}

.constitution-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.constitution-content p {
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.7;
}

.constitution-content ul {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.constitution-content li {
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* ===== EC TABLE ===== */
.ec-table th, .ec-table td {
  padding: var(--space-3) var(--space-6);
  text-align: left;
}

.ec-table th {
  background: var(--color-primary);
  color: white;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ec-table tr:nth-child(even) td {
  background: var(--color-surface-offset);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Election countdown */
.countdown {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  min-width: 80px;
}

.countdown-item .value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  display: block;
  color: var(--color-accent);
}

[data-theme="dark"] .countdown-item .value {
  color: var(--color-accent);
}

.countdown-item .unit {
  font-size: var(--text-xs);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Progress steps for voting */
.progress-steps {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.progress-step .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}

.progress-step.done .dot { background: var(--color-success); }
.progress-step.active .dot { background: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-light); }
.progress-step.done { color: var(--color-success); }
.progress-step.active { color: var(--color-accent); font-weight: 700; }

/* Confirmation modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.modal h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.modal-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-6);
}
