/* ═══════════════════════════════════════════════════════════════
   Prevention Ed — Expense Report Generator
   Modern SaaS Dashboard Design System
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Primary */
  --primary:          #2F5BD3;
  --primary-hover:    #2850BF;
  --primary-light:    #3F6EE8;
  --primary-dark:     #1F3FAF;
  --primary-surface:  #EEF2FB;
  --primary-ghost:    rgba(47, 91, 211, 0.06);

  /* Neutrals */
  --bg:               #F7F8FA;
  --card:             #FFFFFF;
  --surface:          #F1F3F6;
  --border:           #E5E7EB;
  --border-light:     #F0F1F3;
  --text:             #111827;
  --text-secondary:   #6B7280;
  --text-tertiary:    #9CA3AF;

  /* Status */
  --success:          #22C55E;
  --success-bg:       #F0FDF4;
  --success-border:   #BBF7D0;
  --warning:          #F59E0B;
  --warning-bg:       #FFFBEB;
  --warning-border:   #FDE68A;
  --error:            #EF4444;
  --error-bg:         #FEF2F2;
  --error-border:     #FECACA;

  /* Sheets */
  --sheets-green:     #0F9D58;
  --sheets-green-hover:#0D8A4D;

  /* Radii */
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-full:      9999px;

  /* Shadows */
  --shadow-xs:        0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:        0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:        0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg:        0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -4px rgba(0,0,0,0.04);

  /* Transitions */
  --ease:             cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   TOP NAVIGATION BAR
   ═══════════════════════════════════════════════════════════════ */

.topbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.topbar-logo {
  height: 40px;
  width: auto;
  max-height: 40px;
  max-width: 160px;
  object-fit: contain;
}

.topbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.topbar-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sheets-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.dashboard {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  min-height: calc(100vh - 60px);
  align-items: start;
}

/* ── Left: Workspace ──────────────────────────────────────── */
.workspace {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-header {
  margin-bottom: 0.25rem;
}

.page-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.375rem;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.5;
}

/* ── Right: Output Panel ──────────────────────────────────── */
.output-aside {
  position: sticky;
  top: 76px;
}

.output-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.card-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.card-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-surface);
  color: var(--primary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  flex: 1;
}

.card-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  background: var(--primary-surface);
  color: var(--primary);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-body {
  padding: 1.25rem;
}

.card-divider {
  height: 1px;
  background: var(--border-light);
  margin: 1.25rem -1.25rem;
  margin-bottom: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   FORM FIELDS
   ═══════════════════════════════════════════════════════════════ */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.required {
  color: var(--error);
  font-weight: 500;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.field-input {
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  outline: none;
  width: 100%;
}

.field-input::placeholder {
  color: var(--text-tertiary);
}

.field-input:hover {
  border-color: #CBD5E1;
}

.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 91, 211, 0.1);
}

.field-input[readonly] {
  background: var(--surface);
  color: var(--text-secondary);
}

select.field-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.field-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ═══════════════════════════════════════════════════════════════
   FILE UPLOAD ZONES
   ═══════════════════════════════════════════════════════════════ */

.upload-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  overflow: hidden;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary-light);
  background: var(--primary-ghost);
}

.upload-zone.has-file {
  border-style: solid;
  border-color: var(--success-border);
  background: var(--success-bg);
}

.upload-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-content[hidden] {
  display: none !important;
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  gap: 0.5rem;
}

.upload-zone-compact .upload-content {
  padding: 1.25rem 1rem;
  flex-direction: row;
  gap: 0.75rem;
}

.upload-icon {
  color: var(--text-tertiary);
  transition: color 0.2s var(--ease);
}

.upload-zone:hover .upload-icon,
.upload-zone.drag-over .upload-icon {
  color: var(--primary);
}

.upload-icon-sm {
  color: var(--text-tertiary);
  transition: color 0.2s var(--ease);
  flex-shrink: 0;
}

.upload-zone:hover .upload-icon-sm {
  color: var(--primary);
}

.upload-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.upload-text strong {
  color: var(--primary);
}

.upload-text-sm {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.upload-text-sm strong {
  color: var(--primary);
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* File preview */
.upload-preview[hidden] {
  display: none !important;
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  position: relative;
  z-index: 3;
}

.upload-file-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-surface);
  color: var(--primary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.upload-file-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.upload-filename {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-filesize {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}

.upload-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

.upload-remove:hover {
  background: var(--error-bg);
  color: var(--error);
}

.upload-preview-multi {
  flex-direction: column;
  gap: 0.375rem;
}

.upload-preview-multi .upload-multi-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.8125rem;
}

.upload-preview-multi .upload-multi-item svg {
  color: var(--success);
  flex-shrink: 0;
}

.upload-preview-multi .upload-multi-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
}

/* ── Personal Upload Grid ─────────────────────────────────── */
.personal-uploads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   PER DIEM LOOKUP
   ═══════════════════════════════════════════════════════════════ */

.perdiem-lookup-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.btn-lookup {
  height: 40px;
  white-space: nowrap;
  flex-shrink: 0;
}

.perdiem-result {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.5;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.perdiem-result.success {
  border-color: var(--success-border);
  background: var(--success-bg);
}

.perdiem-result.error {
  border-color: var(--error-border);
  background: var(--error-bg);
  color: var(--error);
}

.perdiem-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.25rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.perdiem-breakdown strong {
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  outline: none;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: var(--shadow-sm);
}

/* Generate Button */
.btn-generate {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 12px rgba(47, 91, 211, 0.3), var(--shadow-sm);
  margin-top: 0.5rem;
  transition: all 0.2s var(--ease);
}

.btn-generate:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(47, 91, 211, 0.35), var(--shadow-md);
}

.btn-generate:active:not(:disabled) {
  transform: translateY(0);
}

.btn-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════════════════ */

.progress-container {
  margin-top: 1rem;
}

.progress-track {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.6s var(--ease);
}

.progress-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.375rem;
  text-align: center;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   STATUS BAR
   ═══════════════════════════════════════════════════════════════ */

.status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  flex-shrink: 0;
}

.status-bar.busy {
  background: var(--primary-surface);
  color: var(--primary);
  border-color: rgba(47, 91, 211, 0.15);
}

.status-bar.busy .status-dot {
  background: var(--primary);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-bar.done {
  background: var(--success-bg);
  color: #15803D;
  border-color: var(--success-border);
}

.status-bar.done .status-dot {
  background: var(--success);
}

.status-bar.error {
  background: var(--error-bg);
  color: var(--error);
  border-color: var(--error-border);
}

.status-bar.error .status-dot {
  background: var(--error);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ═══════════════════════════════════════════════════════════════
   OUTPUT PANEL
   ═══════════════════════════════════════════════════════════════ */

/* Empty state */
.output-empty {
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.empty-icon {
  color: var(--text-tertiary);
  opacity: 0.5;
  margin-bottom: 0.25rem;
}

.empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.empty-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.5;
}

.sheets-status-box {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sheets-status-box a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.sheets-status-box a:hover {
  text-decoration: underline;
}

/* Result */
.output-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 1.5rem;
  color: white;
}

.output-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.output-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.output-id {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.output-total {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.output-total-label {
  font-size: 0.75rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.output-total-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.output-total-secondary {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  letter-spacing: 0;
}

/* Sections */
.output-section {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
}

.output-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.output-hint {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Currency list */
.currency-list {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.6;
}

/* Output Actions */
.output-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-action-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-action-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-action-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-action-secondary:hover {
  background: var(--border-light);
  border-color: #CBD5E1;
}

.btn-action-sheets {
  background: var(--sheets-green);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-action-sheets:hover {
  background: var(--sheets-green-hover);
  transform: translateY(-1px);
}

.btn-action-connect {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-action-connect:hover {
  background: var(--border-light);
  color: var(--text);
}

/* Exceptions */
.exceptions-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exception-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.375rem;
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
}

.exceptions-log {
  margin-top: 0.5rem;
}

.exceptions-log pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  max-height: 300px;
  overflow: auto;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', monospace;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .dashboard {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .output-aside {
    position: static;
  }

  .topbar-inner {
    padding: 0 1rem;
  }

  .field-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .personal-uploads {
    grid-template-columns: 1fr;
  }

  .perdiem-lookup-row {
    flex-direction: column;
    align-items: stretch;
  }

  .perdiem-lookup-row .field {
    flex: 1 1 auto !important;
  }

  .btn-lookup {
    width: 100%;
    height: 44px;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .dashboard {
    grid-template-columns: 1fr 340px;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    height: 52px;
  }

  .topbar-title {
    font-size: 0.8125rem;
  }

  .topbar-logo {
    height: 26px;
  }

  .page-title {
    font-size: 1.375rem;
  }

  .card-body {
    padding: 1rem;
  }

  .btn-generate {
    height: 48px;
    font-size: 0.9375rem;
  }

  .output-header {
    padding: 1.25rem;
  }

  .output-total-value {
    font-size: 1.625rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.3s var(--ease) both;
}

.card:nth-child(1) { animation-delay: 0.02s; }
.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.06s; }
.card:nth-child(4) { animation-delay: 0.08s; }
.card:nth-child(5) { animation-delay: 0.10s; }
.card:nth-child(6) { animation-delay: 0.12s; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}


/* ── School Type Toggle ────────────────────────────────────── */

.school-type-toggle {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.school-type-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.school-type-toggle .toggle-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg, 0.75rem);
  background: var(--card);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.school-type-toggle .toggle-option:hover {
  border-color: var(--text-tertiary);
  background: var(--surface);
}

.school-type-toggle input[type="radio"]:checked + .toggle-option {
  border-color: var(--primary);
  background: var(--primary-surface);
  box-shadow: 0 0 0 1px var(--primary);
}

.school-type-toggle .toggle-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.school-type-toggle .toggle-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.school-type-toggle .toggle-currency {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  background: var(--surface);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full, 9999px);
}

.school-type-toggle input[type="radio"]:checked + .toggle-option .toggle-currency {
  color: var(--primary);
  background: rgba(47, 91, 211, 0.12);
}
