/* =========================================================
   MARATHON 2026 – Stylesheet
   Palette: Indigo + Gold
   Fonts: DM Sans (body) · Bebas Neue (display) · JetBrains Mono
   Icons: Lucide
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Indigo + Gold palette */
  --navy:        #141B4D;   /* deepest — sidebar, hero panels */
  --indigo:      #2535A8;   /* page body ground */
  --indigo-md:   #2F40BC;   /* card/section background */
  --indigo-lt:   #3A50CC;   /* hover / lighter panels */
  --gold:        #F5C21A;   /* primary accent */
  --gold-dk:     #C79E0E;   /* gold hover */
  --gold-lt:     rgba(245,194,26,0.16);

  /* Mapped aliases (keep existing names working) */
  --bg:          var(--indigo);
  --surface:     var(--indigo-md);
  --border:      rgba(255,255,255,0.14);
  --border-dark: rgba(255,255,255,0.25);
  --text:        #FFFFFF;
  --text-2:      rgba(255,255,255,0.85);
  --muted:       rgba(255,255,255,0.72);
  --muted-2:     rgba(255,255,255,0.45);

  /* Brand */
  --primary:      var(--gold);
  --primary-hov:  var(--gold-dk);
  --accent:       var(--gold);
  --accent-hov:   var(--gold-dk);
  --accent-soft:  var(--gold-lt);

  /* Semantic */
  --success:      #4ADE80;
  --success-soft: rgba(74,222,128,0.12);
  --warning:      #FBBF24;
  --warning-soft: rgba(251,191,36,0.12);
  --danger:       #F87171;
  --danger-soft:  rgba(248,113,113,0.12);
  --info:         #60A5FA;
  --info-soft:    rgba(96,165,250,0.12);

  /* Glass helpers */
  --glass-bg:  rgba(255,255,255,0.07);
  --glass-bdr: rgba(255,255,255,0.14);
  --inp-bg:    rgba(255,255,255,0.09);
  --inp-bdr:   rgba(255,255,255,0.25);

  /* UI */
  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow:    0 4px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);
  --ring:      0 0 0 3px rgba(245,194,26,0.35);
  --ring-accent: 0 0 0 3px rgba(248,113,113,0.3);

  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* ---------- Icons ---------- */
.icon { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }
.icon-2xl { width: 40px; height: 40px; stroke-width: 1.5; }
.icon-3xl { width: 56px; height: 56px; stroke-width: 1.5; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-logo .icon { width: 22px; height: 22px; }

.header-title h1 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
}

.header-title p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

.header-meta {
  margin-left: auto;
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-meta strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-top: 1px;
}

/* =========================================================
   CONTAINER + CARDS
   ========================================================= */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

.card {
  background: var(--indigo-md);
  border: 1px solid var(--glass-bdr);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   STEP HEADER
   ========================================================= */
.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.step-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.step-badge.success { background: var(--success); }

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.step-subtitle {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 4px;
  margin-bottom: 24px;
}

/* =========================================================
   GENDER CARDS
   ========================================================= */
.gender-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.gender-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--surface);
  position: relative;
  user-select: none;
}

.gender-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gender-card .gender-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.gender-card .gender-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.gender-card .gender-sub {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
  font-weight: 500;
}

.gender-card:hover { border-color: var(--border-dark); background: var(--bg); }
.gender-card.selected {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--ring);
}
.gender-card.selected .gender-icon-wrap {
  background: var(--primary);
  color: #fff;
}

/* =========================================================
   FORM ELEMENTS
   ========================================================= */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-label .required { color: var(--accent); margin-left: 2px; }
.form-label .optional { color: var(--muted-2); font-weight: 500; margin-left: 6px; font-size: 0.75rem; }

.form-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  font-weight: 500;
  border: 1.5px solid var(--inp-bdr);
  border-radius: var(--radius);
  background: var(--inp-bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}

.form-control::placeholder { color: var(--muted-2); font-weight: 400; }
.form-control option { background: var(--navy); color: var(--text); }

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--ring);
}

.form-control.error { border-color: var(--danger); background: var(--danger-soft); }
.form-control.error:focus { box-shadow: var(--ring-accent); }

.form-control.status-ok    { border-color: var(--success); }
.form-control.status-info  { border-color: var(--info); }
.form-control.status-error { border-color: var(--danger); }

.form-control[readonly],
.form-static {
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: default;
  border-color: var(--glass-bdr);
}

.form-static {
  padding: 11px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-static .icon { color: var(--muted); }

.field-error {
  font-size: 0.8125rem;
  color: var(--danger);
  margin-top: 6px;
  font-weight: 500;
  display: none;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}
.field-error.show { display: flex; }

.field-error .icon { flex-shrink: 0; margin-top: 2px; width: 14px; height: 14px; }

/* Status variants — override default error colour */
.field-error.status-ok    { color: var(--success); }
.field-error.status-info  { color: var(--info); }
.field-error.status-error { color: var(--danger); }

/* Loading spinner inline */
.field-error.status-loading {
  color: var(--muted);
  display: flex;
}
.field-error.status-loading .icon {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* =========================================================
   GROUP CONFIRMATION BOX
   ========================================================= */
.group-confirm {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--info-soft);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius);
  animation: slideDown 0.2s ease-out;
}

.group-confirm label {
  display: flex;
  gap: 10px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #1E3A8A;
  line-height: 1.5;
  align-items: flex-start;
}

.group-confirm input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--info);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.group-confirm strong { color: #1E3A8A; font-weight: 600; }

.group-confirm.unchecked-warning {
  background: var(--danger-soft);
  border-color: #FECACA;
}

.group-confirm.unchecked-warning label,
.group-confirm.unchecked-warning strong { color: #991B1B; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   INFO BOX (step desc / rules)
   ========================================================= */
.info-box {
  background: var(--info-soft);
  border: 1px solid #DBEAFE;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.875rem;
  color: #1E3A8A;
  line-height: 1.55;
  margin: 0 0 24px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.info-box .icon { color: var(--info); margin-top: 2px; }
.info-box strong { font-weight: 600; }
.info-box ul { margin: 6px 0 0 2px; padding-left: 16px; }
.info-box li { margin-bottom: 2px; }

/* =========================================================
   CHOICE BUTTONS (Race / Blood / T-Shirt)
   ========================================================= */
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-btn {
  position: relative;
  cursor: pointer;
}

.choice-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice-btn-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.15s ease;
  min-width: 60px;
  text-align: center;
  user-select: none;
}

.choice-btn-inner .choice-main {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

.choice-btn-inner .choice-sub {
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.choice-btn:hover .choice-btn-inner {
  border-color: var(--border-dark);
  background: var(--bg);
}

.choice-btn input:checked + .choice-btn-inner {
  border-color: var(--primary);
  background: var(--primary);
}

.choice-btn input:checked + .choice-btn-inner .choice-main,
.choice-btn input:checked + .choice-btn-inner .choice-sub {
  color: #fff;
}

/* Race options (bigger cards) */
.race-choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.race-choice .choice-btn { width: 100%; }

.race-btn-inner {
  flex-direction: row !important;
  justify-content: flex-start !important;
  padding: 16px 18px !important;
  gap: 14px;
  width: 100%;
}

.race-btn-inner .race-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.race-btn-inner .race-info { text-align: left; flex: 1; }

.race-btn-inner .race-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.race-btn-inner .race-detail {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
}

.choice-btn input:checked + .race-btn-inner {
  border-color: var(--primary);
  background: var(--primary) !important;
}
.choice-btn input:checked + .race-btn-inner .race-name,
.choice-btn input:checked + .race-btn-inner .race-detail { color: #fff; }
.choice-btn input:checked + .race-btn-inner .race-icon-wrap {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* =========================================================
   FORM SECTIONS
   ========================================================= */
.form-section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}
.form-section:first-of-type {
  padding-top: 0;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}

.form-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title .icon { width: 16px; height: 16px; color: var(--muted); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  min-height: 44px;
  letter-spacing: -0.005em;
}

.btn-primary { background: var(--gold); color: var(--navy); font-weight: 700; }
.btn-primary:hover { background: var(--gold-dk); box-shadow: var(--shadow-md); }
.btn-primary:focus { outline: none; box-shadow: var(--ring); }

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

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; box-shadow: var(--shadow-md); }

.btn-ghost {
  background: var(--surface);
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg); border-color: var(--border-dark); }

.btn-large {
  width: 100%;
  font-size: 0.9375rem;
  padding: 14px 24px;
  margin-top: 8px;
}

.btn-submit {
  background: var(--primary);
  color: #fff;
  width: 100%;
  font-size: 1rem;
  padding: 16px 24px;
  margin-top: 28px;
}
.btn-submit:hover { background: var(--primary-hov); box-shadow: var(--shadow-lg); }

/* =========================================================
   ALERTS
   ========================================================= */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.alert .icon { flex-shrink: 0; }

.alert-error {
  background: var(--danger-soft);
  color: #991B1B;
  border: 1px solid #FECACA;
}
.alert-error .icon { color: var(--danger); }

.alert-success {
  background: var(--success-soft);
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.alert-success .icon { color: var(--success); }

/* =========================================================
   ELIGIBILITY RESULT
   ========================================================= */
.eligibility-result {
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: none;
  text-align: center;
}

.result-eligible {
  border-left: 4px solid var(--success);
}

.result-not-eligible {
  border-left: 4px solid var(--danger);
}

.result-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-eligible .result-icon-wrap { background: var(--success-soft); color: var(--success); }
.result-not-eligible .result-icon-wrap { background: var(--danger-soft); color: var(--danger); }

.result-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.result-msg {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.55;
}

.result-msg strong { color: var(--text); font-weight: 600; }

.eligible-races {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 24px;
}

.race-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.race-pill .icon { color: var(--success); }

/* =========================================================
   SUCCESS PAGE
   ========================================================= */
.success-page {
  text-align: center;
  padding: 48px 32px;
}

/* =========================================================
   VIRTUAL RECEIPT PAGE  (virtual_receipt.php)
   ========================================================= */
.receipt-page {
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.receipt-page .alert {
  margin: 16px 16px 0;
  text-align: left;
}

.receipt-hero {
  padding: 28px 24px 22px;
  text-align: center;
  border-radius: 0;
}

.receipt-hero-inner {
  margin-bottom: 14px;
}

.receipt-event-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.receipt-reg-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  margin-bottom: 10px;
  line-height: 1.1;
}

.receipt-event-date {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.receipt-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.receipt-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  white-space: nowrap;
}

.receipt-body {
  padding: 24px 24px 8px;
  text-align: left;
}

.receipt-section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
}

.receipt-table {
  margin-bottom: 4px;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border);
}

@media (max-width: 520px) {
  .receipt-hero { padding: 22px 18px 18px; }
  .receipt-reg-number { font-size: 1.4rem; letter-spacing: 0.03em; }
  .receipt-body { padding: 18px 16px 4px; }
  .receipt-actions { padding: 16px 16px 22px; }
  .receipt-actions .btn { flex: 1 1 140px; justify-content: center; }
  .receipt-table td:first-child { width: 36%; }
  .receipt-page .alert { margin: 12px 12px 0; }
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.success-sub {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.55;
}

.reg-number-box {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin: 0 auto 32px;
  max-width: 380px;
}

.reg-number-box p {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.reg-number {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.summary-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.summary-table tr:last-child td { border-bottom: none; }
.summary-table td:first-child { color: var(--muted); font-weight: 500; width: 42%; }
.summary-table td:last-child { color: var(--text); font-weight: 600; }

.print-note {
  background: var(--warning-soft);
  border: 1px solid #FDE68A;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: #78350F;
  margin: 24px 0;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.print-note .icon { color: var(--warning); margin-top: 2px; flex-shrink: 0; }
.print-note strong { color: #78350F; font-weight: 600; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
  padding: 24px 0 8px;
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
}
.site-footer a:hover { color: var(--primary); text-decoration: underline; }

/* =========================================================
   ADMIN – Login
   ========================================================= */
.admin-login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--bg);
}

.admin-login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
}

.admin-login-card .login-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.admin-login-card h1 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  text-align: center;
}

.admin-login-card .subtitle {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 28px;
  text-align: center;
}

/* =========================================================
   ADMIN – Header
   ========================================================= */
.admin-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-inner .header-logo { width: 36px; height: 36px; }
.admin-header-inner .header-logo .icon { width: 18px; height: 18px; }

.admin-header-inner h1 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.admin-header-inner .admin-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.admin-logout {
  margin-left: auto;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-logout:hover { border-color: var(--border-dark); background: var(--bg); }

/* =========================================================
   ADMIN – Main
   ========================================================= */
.admin-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.page-subtitle {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 28px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.15s;
}

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

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.slate { background: rgba(255,255,255,0.08);  color: var(--muted); }
.stat-icon.red   { background: rgba(248,113,113,0.12); color: #FCA5A5; }
.stat-icon.green { background: rgba(74,222,128,0.12);  color: var(--success); }
.stat-icon.blue  { background: rgba(96,165,250,0.12);  color: var(--info); }
.stat-icon.amber { background: rgba(245,194,26,0.12);  color: var(--gold); }
.stat-icon.purple{ background: rgba(167,139,250,0.12); color: #C4B5FD; }
.stat-icon.pink  { background: rgba(244,114,182,0.12); color: #F9A8D4; }

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Tshirt summary bar */
.summary-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.8125rem;
}

.summary-bar .summary-label {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.summary-bar .summary-item {
  color: var(--text-2);
}

.summary-bar .summary-item strong {
  color: var(--text);
  font-weight: 700;
  margin-left: 2px;
}

/* Filter Bar */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-bar label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}

.filter-select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-family: inherit;
  font-weight: 500;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  min-width: 120px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  padding-right: 28px;
}

.filter-select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-wrap .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 16px;
  height: 16px;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-family: inherit;
}

.search-input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }

.btn-small {
  padding: 8px 14px;
  font-size: 0.8125rem;
  min-height: 36px;
  gap: 6px;
}

.btn-small .icon { width: 14px; height: 14px; }

/* =========================================================
   ADMIN – Table
   ========================================================= */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-info {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

.table-info strong { color: var(--text); font-weight: 600; }

.table-scroll { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.admin-table thead th {
  background: var(--surface);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table thead th a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.admin-table thead th a:hover { color: var(--text); }

.sort-arrow { opacity: 0.4; }
.sort-arrow.active { opacity: 1; color: var(--primary); }

.admin-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; }
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg); }

.admin-table td { padding: 12px 14px; color: var(--text); vertical-align: middle; }

.td-strong { font-weight: 600; }
.td-mono { font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace; font-size: 0.8125rem; }
.td-sub { font-size: 0.75rem; color: var(--muted); margin-top: 2px; font-weight: 400; }

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.badge-3km   { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.badge-5km   { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.badge-10km  { background: #FAF5FF; color: #6B21A8; border-color: #E9D5FF; }
.badge-half  { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.badge-male  { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.badge-female{ background: #FDF2F8; color: #9D174D; border-color: #FBCFE8; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.page-btn {
  padding: 6px 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.1s;
  background: var(--surface);
  min-width: 34px;
  text-align: center;
}

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

/* =========================================================
   FLATPICKR DATE PICKER — Custom theme
   ========================================================= */
.flatpickr-calendar {
  font-family: 'Inter', -apple-system, sans-serif !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 8px !important;
  width: 320px !important;
  margin-top: 6px;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after { border-bottom-color: var(--border) !important; }
.flatpickr-calendar.arrowTop:after { border-bottom-color: var(--surface) !important; }

/* Header (month/year) */
.flatpickr-months {
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.flatpickr-month {
  color: var(--text) !important;
  fill: var(--text) !important;
  height: 36px !important;
}

.flatpickr-current-month {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  padding: 4px 0 !important;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Month dropdown */
.flatpickr-monthDropdown-months {
  font-family: inherit !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  background: transparent !important;
  border-radius: var(--radius-sm) !important;
  padding: 4px 6px !important;
  cursor: pointer;
  transition: background 0.12s;
  -webkit-appearance: none;
  appearance: none;
}
.flatpickr-monthDropdown-months:hover { background: var(--bg) !important; }
.flatpickr-monthDropdown-months:focus { outline: none; box-shadow: var(--ring); }

.flatpickr-monthDropdown-month {
  background: var(--surface) !important;
  color: var(--text) !important;
}

/* Year input */
.numInputWrapper {
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}
.numInputWrapper:hover { background: var(--bg) !important; }

.numInputWrapper input.cur-year {
  font-family: inherit !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  color: var(--text) !important;
  padding: 4px 4px !important;
}

.numInputWrapper span {
  border: none !important;
  opacity: 0.5;
  transition: opacity 0.12s, background 0.12s;
}
.numInputWrapper span:hover { opacity: 1; background: var(--bg) !important; }
.numInputWrapper span.arrowUp:after   { border-bottom-color: var(--text-2) !important; }
.numInputWrapper span.arrowDown:after { border-top-color:    var(--text-2) !important; }

/* Prev/next month arrows */
.flatpickr-prev-month,
.flatpickr-next-month {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  margin: 2px !important;
  border-radius: var(--radius-sm) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--muted) !important;
  fill: var(--muted) !important;
  transition: background 0.12s, color 0.12s;
}
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: var(--bg) !important;
  color: var(--text) !important;
  fill: var(--text) !important;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg { width: 12px !important; height: 12px !important; }

/* Weekdays row */
.flatpickr-weekdays { padding: 2px 0 6px; }
.flatpickr-weekday {
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Days grid */
.dayContainer { padding: 2px 0; width: 100% !important; min-width: 0 !important; }

.flatpickr-day {
  font-family: inherit !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  height: 36px !important;
  line-height: 36px !important;
  max-width: 40px !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid transparent !important;
  margin: 1px 0;
  transition: background 0.12s, color 0.12s;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: var(--bg) !important;
  border-color: var(--border) !important;
}

.flatpickr-day.today {
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
}
.flatpickr-day.today:hover { background: var(--bg) !important; color: var(--primary) !important; }

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--muted-2) !important;
  opacity: 0.6;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: var(--muted-2) !important;
  background: transparent !important;
  border-color: transparent !important;
  text-decoration: line-through;
  opacity: 0.4;
}

/* Input shows picker affordance */
#elig_dob,
input.flatpickr-alt-input {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .header-meta { display: none; }
  .container { padding: 24px 16px 60px; }
  .card { padding: 24px 20px; }
  .name-row { grid-template-columns: 1fr; gap: 10px; }
  .info-row { grid-template-columns: 1fr; gap: 10px; }
  .step-title { font-size: 1.25rem; }
  .admin-main { padding: 20px 16px 40px; }
  .filter-bar { flex-wrap: wrap; }
  .filter-bar label { width: 100%; margin-top: 6px; }
  .search-wrap { min-width: 100%; }
  .admin-table { font-size: 0.75rem; }
  .admin-table td, .admin-table th { padding: 9px 10px; }
  .success-page { padding: 36px 20px; }
}

@media print {
  .site-header, .admin-header, .btn, .step-header, #step1-card,
  .eligibility-result, .print-note, .site-footer,
  .no-print, .alert { display: none !important; }
  .card { border: none; box-shadow: none; padding: 0; }
  body { background: #fff; }
}

/* ============ Yes/No choice group (eligibility) ============ */
.yesno-group .choice-btn { flex: 1 1 160px; min-width: 140px; }
.yesno-group .choice-main { display: inline-flex; align-items: center; gap: 6px; }

/* ============ Fee badge on eligibility result ============ */
.fee-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 16px auto 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  text-align: left;
  border: 1px solid transparent;
}
.fee-badge .icon { flex-shrink: 0; width: 28px; height: 28px; }
.fee-badge strong { display: block; font-size: 1rem; }
.fee-badge .fee-sub { font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }
.fee-free {
  background: var(--success-soft);
  border-color: #A7F3D0;
  color: #065F46;
}
.fee-free .icon { color: var(--success); }
.fee-paid {
  background: var(--info-soft);
  border-color: #BFDBFE;
  color: #1E3A8A;
}
.fee-paid .icon { color: var(--info); }

/* ============ BillDesk simulated gateway ============ */
.billdesk-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 100%);
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.billdesk-logo {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.billdesk-brand { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.billdesk-brand-sub { font-size: 0.75rem; opacity: 0.85; }
.billdesk-lock {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.18);
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.billdesk-amount {
  text-align: center;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.billdesk-amount-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.billdesk-amount-value {
  font-size: 2.25rem; font-weight: 700; color: var(--text);
  font-family: var(--font-mono); margin: 4px 0 2px;
}
.billdesk-amount-sub { font-size: 0.8125rem; color: var(--muted); }
.billdesk-summary td { padding: 8px 12px; font-size: 0.8125rem; }
.billdesk-methods { margin-top: 16px; }
.billdesk-methods-label {
  font-size: 0.75rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.billdesk-method-list { display: flex; flex-wrap: wrap; gap: 8px; }
.billdesk-method {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.8125rem; color: var(--muted);
}
.billdesk-method.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

/* ============ Receipt fee box ============ */
.receipt-fee-box {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.receipt-fee-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-size: 0.9375rem;
}
.receipt-fee-row + .receipt-fee-row { border-top: 1px dashed var(--border); }
.status-paid { color: var(--success); }
.status-pending { color: var(--accent); }

/* ============ Locked (read-only) form field ============ */
.form-control-locked {
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
  font-weight: 500;
}
.form-control-locked:focus { outline: none; box-shadow: none; }

/* ============ Header brand (logo + title) ============ */
.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.header-logo-img {
  width: 52px; height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
  flex-shrink: 0;
}

/* ============ Auto-save (resume banner + indicator) ============ */
.alert.alert-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.alert.alert-info .icon { color: #2563EB; flex-shrink: 0; margin-top: 2px; }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  color: #2563EB;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}
.link-btn:hover { color: #1D4ED8; }

.autosave-indicator {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #0F172A;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.autosave-indicator.visible { opacity: 1; transform: translateY(0); }
.autosave-indicator.saving  { background: #475569; }
.autosave-indicator.saved   { background: #059669; }
.autosave-indicator.error   { background: #DC2626; }

/* ============ Header user-chip v2 (with dropdown) ============ */
.user-menu {
  margin-left: auto;
  position: relative;
}
.user-chip-v2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: #fff;
  max-width: 320px;
  backdrop-filter: blur(8px);
  cursor: pointer;
  font: inherit;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.user-chip-v2:hover,
.user-chip-v2[aria-expanded="true"] {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
}
.uc-caret {
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.user-chip-v2[aria-expanded="true"] .uc-caret { transform: rotate(180deg); }
.user-chip-v2 .uc-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #1D4ED8);
  color: #fff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.uc-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  padding-right: 2px;
}
.uc-name  { font-size: 0.8125rem; font-weight: 600; color: #fff; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-email { font-size: 0.6875rem; color: rgba(255,255,255,0.72); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Dropdown panel */
.uc-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #fff;
  color: #111827;
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.35), 0 4px 12px -4px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 6px;
  z-index: 1000;
  animation: ucFadeIn 0.14s ease-out;
}
.uc-dropdown[hidden] { display: none; }
@keyframes ucFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.uc-dd-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.uc-dd-name  { font-size: 0.875rem; font-weight: 600; color: #0F172A; word-break: break-word; }
.uc-dd-email { font-size: 0.75rem; color: #64748B; word-break: break-all; }
.uc-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.uc-dd-item:hover { background: #F8FAFC; color: #0F172A; }
.uc-dd-signout { color: #DC2626; }
.uc-dd-signout:hover { background: #FEF2F2; color: #B91C1C; }
.uc-dd-signout svg { color: currentColor; }

.uc-fallback-signout {
  display: inline-block;
  margin-left: 8px;
  padding: 6px 12px;
  background: #DC2626;
  color: #fff !important;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 700px) {
  .uc-info { display: none; }
  .user-chip-v2 { padding: 3px 8px 3px 3px; }
  .uc-name, .uc-email { max-width: 120px; }
}

/* ============ Login page v2 — Indigo + Gold ============ */
.login-body {
  background: var(--navy);
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.login-shell {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 460px;
  min-height: 100vh;
}
/* Left dark panel */
.login-card-v2 {
  background: var(--navy);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-card-v2::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.login-card-v2::after {
  content: '';
  position: absolute;
  bottom: 60px; left: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.025);
  pointer-events: none;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  position: relative; z-index: 1;
}
.login-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--gold);
  padding: 4px;
  flex-shrink: 0;
}
.login-brand-text h1 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 1px;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.login-brand-text p {
  font-size: 0.75rem;
  color: var(--muted-2);
  margin: 0;
}
/* Main headline block */
.login-hero-block {
  margin-top: auto;
  padding-bottom: 8px;
  position: relative; z-index: 1;
}
.login-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.login-headline {
  font-family: 'Bebas Neue', 'DM Sans', sans-serif;
  font-size: clamp(64px, 9vw, 108px);
  line-height: 0.92;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.login-headline .yr { color: var(--gold); }
.login-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  margin: 18px 0 0;
  letter-spacing: 0;
  line-height: 1.65;
  max-width: 360px;
}
.login-tagline {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.gsi-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 13px 20px;
  background: #fff;
  color: #1F1F1F !important;
  border: 1px solid #DADCE0;
  border-radius: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
  transition: box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.05s ease;
  box-shadow: 0 1px 2px rgba(60,64,67,0.08);
}
/* Google button */
.gsi-button {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 13px 20px;
  background: #ffffff; border: none; border-radius: var(--radius);
  cursor: pointer; font-family: inherit; font-size: 0.9375rem; font-weight: 700;
  color: #1A1A1A; text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  position: relative; z-index: 1;
}
.gsi-button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.gsi-button:active { transform: translateY(0); }
.gsi-button-icon { display: inline-flex; align-items: center; }
.gsi-button-text { color: #1A1A1A; letter-spacing: 0.005em; font-weight: 700; }

/* Trust points */
.login-points-v2 {
  list-style: none !important;
  padding: 0 !important;
  margin: 20px 0 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative; z-index: 1;
}
.login-points-v2 li {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
}
.login-points-v2 .lp-icon {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(74,222,128,0.15);
  color: var(--success);
  flex-shrink: 0; margin-top: 2px;
}
.login-points-v2 strong { color: #ffffff; font-weight: 600; }

.login-fineprint {
  font-size: 0.6875rem;
  color: var(--muted-2);
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--glass-bdr);
  position: relative; z-index: 1;
}

/* Right indigo sign-in panel */
.login-aside {
  background: var(--indigo-md);
  border-left: 1px solid var(--glass-bdr);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 48px;
  position: relative; overflow: hidden;
}
.login-aside::before {
  content: '';
  position: absolute; bottom: -80px; right: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.aside-logo-badge {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(245,194,26,0.15); border: 1.5px solid rgba(245,194,26,0.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; position: relative; z-index: 1;
}
.aside-logo-badge .icon { width: 26px; height: 26px; color: var(--gold); }
.aside-quote { text-align: left; max-width: 340px; position: relative; z-index: 1; }
.aside-quote h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; letter-spacing: 0.04em; line-height: 1;
  color: #ffffff; margin: 0 0 8px;
}
.aside-quote > p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; margin: 0 0 24px; max-width: 300px; }

/* Login divider */
.login-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0 16px;
  position: relative; z-index: 1;
}
.login-divider-line { flex: 1; height: 1px; background: var(--glass-bdr); }
.login-divider span { font-size: 0.6875rem; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }

@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-card-v2 { min-height: 100vh; padding: 36px 28px; justify-content: flex-start; gap: 0; }
  .login-aside { display: none; }
  .login-hero-block { margin-top: 36px; }
  .login-headline { font-size: 72px; }
}

/* ============ Step 2 head with Back button ============ */
.step2-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-back:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}
.step2-head .step-title { margin: 0; }

/* ============ Address row ============ */
.address-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.address-row .form-group { margin-bottom: 0; }
@media (max-width: 700px) {
  .address-row { grid-template-columns: 1fr; }
}
#address_line { resize: vertical; min-height: 64px; font-family: inherit; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-container { padding-top: 28px; padding-bottom: 60px; }

/* Hero (welcome + reference number + bib card) */
.dash-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.dash-hero-left {
  background: linear-gradient(135deg, var(--navy) 0%, #1E2B6E 60%, #111A44 100%);
  color: #fff;
  border-radius: 18px;
  padding: 28px 30px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 36px -16px rgba(0,0,0,0.5);
  position: relative; overflow: hidden;
}
.dash-hero-left::after {
  content: 'PUNE RUN';
  position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif; font-size: 80px;
  color: rgba(255,255,255,0.03); letter-spacing: 0.06em;
  pointer-events: none; white-space: nowrap;
}
.dash-hello {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.dash-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 18px;
  line-height: 1.5;
}
.dash-sub strong { color: #fff; }
.dash-refbox {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 16px;
}
.dash-reflabel {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin-bottom: 6px;
}
.dash-refrow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dash-refnum {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); }
.dash-refnote {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
}

/* Bib card */
.bib-card {
  background: var(--indigo-md);
  border-radius: 18px;
  padding: 24px 22px;
  text-align: center;
  border: 2px dashed var(--glass-bdr);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bib-card-active {
  border-style: solid;
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245,194,26,0.06) 0%, var(--indigo-md) 100%);
}
.bib-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}
.bib-number {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin: 8px 0;
  letter-spacing: 0.04em;
}
.bib-number.bib-pending { color: var(--muted-2); font-size: 1.6rem; font-weight: 600; }
.bib-sub { font-size: 0.78rem; color: var(--muted); }

/* Action banners */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-banner-danger {
  background: rgba(248,113,113,0.10);
  border-color: rgba(248,113,113,0.28);
  color: #FCA5A5;
}
.alert-banner-warn {
  background: rgba(245,194,26,0.08);
  border-color: rgba(245,194,26,0.28);
  color: #FCD34D;
}
.ab-icon { flex-shrink: 0; }
.ab-text { flex: 1; font-size: 0.92rem; line-height: 1.45; }
.ab-text strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.alert-banner .btn { flex-shrink: 0; }

/* Section card */
.dash-section { padding: 24px 26px; margin-bottom: 18px; }
.dash-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.dash-section-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 18px;
}

/* Status timeline */
.status-steps { list-style: none; padding: 0; margin: 0; position: relative; }
.status-steps::before {
  content: "";
  position: absolute;
  top: 16px; bottom: 16px;
  left: 17px;
  width: 2px;
  background: rgba(255,255,255,0.12);
}
.status-steps li {
  position: relative;
  padding: 10px 0 10px 50px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.step-dot {
  position: absolute;
  left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  color: var(--muted);
  border: 3px solid var(--indigo-md);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}
.step-done .step-dot   { background: var(--success); color: var(--navy); border-color: var(--indigo-md); box-shadow: 0 0 0 2px var(--success); }
.step-error .step-dot  { background: var(--danger);  color: #fff; border-color: var(--indigo-md); box-shadow: 0 0 0 2px var(--danger); }
.step-pending .step-dot{ background: rgba(255,255,255,0.06); color: var(--muted-2); box-shadow: 0 0 0 2px rgba(255,255,255,0.10); }
.step-body { flex: 1; padding-top: 2px; }
.step-title {
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.step-meta { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.step-meta code {
  background: rgba(255,255,255,0.08);
  color: var(--text-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

/* Pills */
.pill {
  display: inline-flex; align-items: center;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.pill-info     { background: rgba(96,165,250,0.15);  color: #93C5FD; }
.pill-success  { background: rgba(74,222,128,0.15);  color: #86EFAC; }
.pill-warn     { background: rgba(251,191,36,0.15);  color: #FCD34D; }
.pill-danger   { background: rgba(248,113,113,0.15); color: #FCA5A5; }
.pill-muted    { background: rgba(255,255,255,0.1);  color: var(--muted); }

/* Announcements */
.ann-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ann-item {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-bdr);
  background: var(--glass-bg);
}
.ann-icon { flex-shrink: 0; padding-top: 2px; }
.ann-info    .ann-icon { color: #60A5FA; }
.ann-success .ann-icon { color: var(--success); }
.ann-warning .ann-icon { color: var(--warning); }
.ann-alert   .ann-icon { color: var(--danger); }
.ann-info    { background: rgba(96,165,250,0.08);  border-color: rgba(96,165,250,0.2); }
.ann-success { background: rgba(74,222,128,0.08);  border-color: rgba(74,222,128,0.2); }
.ann-warning { background: rgba(245,194,26,0.08);  border-color: rgba(245,194,26,0.25); }
.ann-alert   { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.2); }
.ann-body { flex: 1; min-width: 0; }
.ann-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.ann-head strong { font-size: 0.95rem; color: #ffffff; }
.ann-tag {
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--glass-bg);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ann-tag-you { background: rgba(96,165,250,0.15); color: #93C5FD; }
.ann-text { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.ann-date { font-size: 0.72rem; color: var(--muted-2); margin-top: 6px; }

.empty-state {
  text-align: center;
  padding: 32px 18px;
  color: var(--muted-2);
}
.empty-state .icon { color: var(--muted-2); margin-bottom: 8px; }
.empty-state p { margin: 0; font-size: 0.9rem; }

/* Quick links grid */
.dash-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}
.quick-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.quick-card:hover:not(.quick-disabled) {
  transform: translateY(-1px);
  border-color: #2563EB;
  box-shadow: 0 8px 24px -10px rgba(37,99,235,0.25);
}
.quick-disabled { opacity: 0.7; cursor: default; }
.quick-icon {
  width: 44px; height: 44px;
  background: #EFF6FF;
  color: #2563EB;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.quick-disabled .quick-icon { background: #F0FDF4; color: #059669; }
.quick-title { font-weight: 600; color: #0F172A; font-size: 0.95rem; }
.quick-sub   { font-size: 0.78rem; color: #64748B; }
.quick-arrow { margin-left: auto; color: #94A3B8; flex-shrink: 0; }

@media (max-width: 820px) {
  .dash-hero { grid-template-columns: 1fr; }
  .alert-banner { flex-direction: column; align-items: flex-start; }
  .alert-banner .btn { width: 100%; justify-content: center; }
  .dash-refnum { font-size: 1.3rem; }
}

/* ============================================================
   DASHBOARD — header actions, drawer, registration details,
   tighter mobile responsiveness.
   ============================================================ */

/* Header right-side cluster */
.header-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.header-signout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.header-signout:hover {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #DC2626;
}

/* Hamburger button (always visible, doubles as profile avatar) */
.nav-burger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-2);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-burger:hover { background: var(--surface); border-color: var(--border-dark); }
.burger-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.85);
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.85rem;
}
.burger-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 0;
}
.burger-lines span {
  width: 18px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
}

/* Off-canvas overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(2px);
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nav-overlay.visible { opacity: 1; }

/* Drawer */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: 320px;
  max-width: 88vw;
  background: #fff;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 32px -12px rgba(15,23,42,0.4);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid #E2E8F0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #fff;
}
.nd-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.85);
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.nd-who {
  flex: 1;
  display: flex; flex-direction: column;
  min-width: 0;
}
.nd-who strong { font-size: 0.95rem; line-height: 1.2; color: #fff; word-break: break-word; }
.nd-who span   { font-size: 0.75rem; color: rgba(255,255,255,0.72); word-break: break-all; }
.nd-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s ease;
}
.nd-close:hover { background: rgba(255,255,255,0.22); }

.nav-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex; flex-direction: column;
  gap: 2px;
}
.nd-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}
.nd-link:hover { background: #F1F5F9; color: #0F172A; }
.nd-link svg   { color: #64748B; flex-shrink: 0; }
.nd-link:hover svg { color: #2563EB; }
.nd-link-active {
  background: #EFF6FF;
  color: #1E40AF;
  font-weight: 600;
}
.nd-link-active svg { color: #2563EB; }
.nd-link-cta {
  background: #2563EB;
  color: #fff;
  font-weight: 600;
  margin: 6px 0;
}
.nd-link-cta:hover { background: #1D4ED8; color: #fff; }
.nd-link-cta svg   { color: #fff; }
.nd-link-cta:hover svg { color: #fff; }

.nav-drawer-foot {
  border-top: 1px solid #E2E8F0;
  padding: 12px 14px 18px;
  background: #FAFAFA;
}
.nd-signout {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.nd-signout:hover { background: #DC2626; color: #fff; }
.nd-signout:active { transform: scale(0.98); }

/* ============ Dashboard: wider container + sidebar layout ============ */
.dash-container { max-width: 1100px !important; }

.dash-body {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 18px;
  align-items: start;
}
.dash-main { display: flex; flex-direction: column; gap: 16px; }
.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  scrollbar-width: none;
}
.dash-sidebar::-webkit-scrollbar { display: none; }

/* ============ Registration details — compact flat table ============ */
.dash-section-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 14px; flex-wrap: wrap;
}
.dash-section-head .dash-section-title { margin-bottom: 4px; }
.dash-section-head .dash-section-sub   { margin: 0; }
.dash-section-head .dash-section-sub a { color: #2563EB; text-decoration: underline; }

.reg-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.rc-col { display: flex; flex-direction: column; gap: 0; }
.rc-group { margin-bottom: 14px; }

.rc-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0 0 6px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rc-group-label .icon { color: var(--info); width: 13px; height: 13px; }

.rc-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(108px, 42%) 1fr;
  gap: 0;
}
.rc-dl dt {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid var(--border);
  align-self: start;
}
.rc-dl dd {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  word-break: break-word;
}
.rc-dl dt:nth-last-child(2),
.rc-dl dd:last-child { border-bottom: none; }

/* Keep old reg-grid/reg-block/reg-dl for backwards compat if needed */
.reg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.reg-block { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 14px 16px; }
.reg-block-title { display: inline-flex; align-items: center; gap: 7px; font-size: 0.75rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.reg-block-title .icon { color: #2563EB; }
.reg-dl { margin: 0; display: grid; grid-template-columns: minmax(100px, 38%) 1fr; gap: 6px 12px; }
.reg-dl dt { font-size: 0.74rem; color: #64748B; font-weight: 500; align-self: start; padding-top: 1px; }
.reg-dl dd { margin: 0; font-size: 0.85rem; color: #0F172A; font-weight: 500; word-break: break-word; }
.reg-dl dd.dd-break { word-break: break-all; }

/* ============ Sidebar section — smaller card padding ============ */
.dash-sidebar .card.dash-section { padding: 16px 18px; }
.dash-sidebar .dash-section-title { font-size: 0.95rem; margin-bottom: 6px; }
.dash-sidebar .dash-section-sub { font-size: 0.8rem; margin-bottom: 12px; }
.dash-sidebar .ann-list { gap: 8px; }
.dash-sidebar .ann-item { padding: 10px 12px; }
.dash-sidebar .ann-head strong { font-size: 0.875rem; }
.dash-sidebar .ann-text { font-size: 0.82rem; }
.dash-sidebar .ann-date { font-size: 0.68rem; }
.dash-sidebar .empty-state { padding: 20px 12px; font-size: 0.82rem; }

/* Sidebar quick-links: vertical list */
.dash-quick-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quick-card-sm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s ease, background 0.12s ease;
  font-size: 0.875rem;
  font-weight: 600;
}
.quick-card-sm:hover { background: var(--bg); box-shadow: var(--shadow); }
.quick-card-sm.qcs-cta { background: var(--primary); color: #fff; border-color: var(--primary); }
.quick-card-sm.qcs-cta:hover { background: var(--primary-hov); }
.quick-card-sm.qcs-disabled { opacity: 0.55; pointer-events: none; }
.qcs-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-card-sm.qcs-cta .qcs-icon { background: rgba(255,255,255,0.15); }
.qcs-text { flex: 1; }
.qcs-title { font-size: 0.8125rem; font-weight: 600; line-height: 1.2; }
.qcs-sub   { font-size: 0.72rem; color: var(--muted); font-weight: 400; margin-top: 1px; }
.quick-card-sm.qcs-cta .qcs-sub { color: rgba(255,255,255,0.7); }

/* ============ Mobile responsiveness ============ */
@media (max-width: 760px) {
  /* Two-column body collapses to single column */
  .dash-body { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; max-height: none; }
  .reg-compact   { grid-template-columns: 1fr; }

  /* Header: hide explicit "Sign out" pill (drawer carries it instead),
     keep brand+hamburger */
  .header-signout { display: none; }
  .header-meta    { display: none; }
  .site-header .header-title h1 { font-size: 1rem; }
  .site-header .header-title p  { font-size: 0.7rem; }
  .header-logo-img { width: 40px; height: 40px; }

  /* Hero stacks */
  .dash-hero { gap: 14px; }
  .dash-hero-left { padding: 22px 20px; }
  .dash-hello { font-size: 1.2rem; }
  .dash-refnum { font-size: 1.2rem; word-break: break-all; }
  .dash-refrow { gap: 8px; }
  .copy-btn { padding: 6px 10px; font-size: 0.72rem; }

  .bib-card { padding: 18px 16px; }
  .bib-number { font-size: 2rem; }

  /* Action banners stack their CTA */
  .alert-banner { padding: 14px 16px; gap: 12px; }
  .alert-banner .btn { width: 100%; }

  /* Section padding tighter */
  .dash-section { padding: 18px 16px; }
  .dash-section-title { font-size: 1rem; }

  /* Status timeline tighter */
  .status-steps li { padding-left: 42px; }
  .status-steps::before { left: 14px; }
  .step-dot { width: 30px; height: 30px; }
  .step-title { font-size: 0.92rem; }
  .step-meta  { font-size: 0.76rem; }

  /* Registration grid → single column */
  .reg-grid    { grid-template-columns: 1fr; }
  .reg-block   { padding: 14px 14px; }
  .reg-dl      { grid-template-columns: 1fr; gap: 2px 0; }
  .reg-dl dt   { padding-top: 8px; }
  .reg-dl dt:first-of-type { padding-top: 0; }

  /* Quick links full-width */
  .dash-quick { grid-template-columns: 1fr; gap: 10px; }
  .quick-card { padding: 14px; }
  .quick-arrow { display: none; }

  /* Announcements compact */
  .ann-item { padding: 12px 14px; }
  .ann-head strong { font-size: 0.88rem; }

  /* Container padding */
  .dash-container { padding-top: 18px; padding-bottom: 30px; }
}

@media (max-width: 420px) {
  .nav-burger .burger-avatar { width: 28px; height: 28px; }
  .nav-burger .burger-lines span { width: 16px; }
  .dash-hello { font-size: 1.05rem; }
  .dash-hero-left { padding: 18px 16px; }
  .bib-number { font-size: 1.6rem; }
}

/* On big screens, hide the hamburger lines visual but keep button as a proper menu */
@media (min-width: 761px) {
  .nav-burger { padding: 4px 4px 4px 4px; }
  .burger-lines { display: none; }
  .nav-burger::after {
    content: "Menu";
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0 8px 0 2px;
    color: var(--text-2);
  }
}

/* ============================================================
   Site footer — copyright + "Powered by TheOFCO".
   Logo always sits in its native colors inside a small white pill,
   so it's readable on any background (light or dark).
   ============================================================ */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 22px 16px 14px;
  color: #64748B;
  font-size: 0.78rem;
}
.footer-copy {
  font-weight: 500;
  color: inherit;
  opacity: 0.85;
}
.site-footer-light            { color: #fff; }
.site-footer-light .footer-copy { color: #fff; opacity: 0.92; }

/* Powered-by pill */
.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.powered-by:hover {
  color: #0F172A;
  background: #F1F5F9;
  border-color: #E2E8F0;
}
.powered-by .pb-text { color: inherit; opacity: 0.85; }
.powered-by .pb-name {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: inherit;
}
/* Logo always sits inside a tiny white card so it's readable on any bg */
.powered-by .pb-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: #fff;
  padding: 3px 5px;
  border-radius: 5px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 1px 2px rgba(15,23,42,0.06);
}

/* Light variant — for dark backgrounds */
.powered-by-light          { color: #fff; }
.powered-by-light .pb-text { color: #fff; opacity: 1; }
.powered-by-light .pb-name { color: #fff; }
.powered-by-light:hover {
  color: #fff;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
}
.powered-by-light .pb-logo { border-color: rgba(255,255,255,0.4); }

/* Login: aside laid out as column with footer-style block at bottom */
.login-aside {
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 36px 32px 22px !important;
}
.login-aside .aside-quote { margin: auto 0; }
.login-aside .site-footer { padding: 12px 0 0; gap: 6px; width: 100%; }

/* Login card: footer block visible only on mobile (aside is hidden then) */
.login-card-footer { display: none; }
@media (max-width: 760px) {
  .login-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
    text-align: center;
    color: #64748B;
    font-size: 0.74rem;
  }
}

/* Mobile tightening */
@media (max-width: 700px) {
  .powered-by         { font-size: 0.7rem; padding: 4px 10px 4px 12px; gap: 6px; }
  .powered-by .pb-logo{ height: 18px; padding: 2px 4px; }
  .site-footer        { padding: 18px 12px 10px; font-size: 0.72rem; }
  .footer-copy        { font-size: 0.72rem; }
}

/* Print-friendly — keep marketing chrome off paper receipts */
@media print {
  .powered-by, .site-footer, .no-print { display: none !important; }
}

/* =========================================================
   WHATSAPP OTP VERIFICATION PAGE (verify_mobile.php)
   ========================================================= */

/* Full-page shell — centres the card */
.otp-shell {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
}

/* Card */
.otp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 36px 28px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Brand block */
.otp-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.otp-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}
.otp-brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.otp-brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 2px 0 0;
}

.otp-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Step container */
.otp-step { display: flex; flex-direction: column; gap: 14px; }

/* Step icon */
.otp-step-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}

/* Step text */
.otp-step-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.otp-step-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.otp-step-desc strong { color: var(--text); }

/* Inline alerts */
.otp-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 11px 13px;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.otp-alert-error   { background: var(--danger-soft);  border-color: #FECACA; color: #991B1B; }
.otp-alert-success { background: var(--success-soft); border-color: #6EE7B7; color: #065F46; }

/* Mobile number row (+91 prefix) */
.otp-mobile-row {
  display: flex;
  align-items: stretch;
}
.otp-country-code {
  background: var(--bg);
  border: 1px solid var(--border-dark);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
}
.otp-mobile-input {
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  flex: 1;
}

/* 6-digit OTP input — larger, monospaced */
.otp-code-input {
  font-family: 'JetBrains Mono', 'Courier New', monospace !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.3em !important;
  text-align: center !important;
}

/* Resend row */
.otp-resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* Loading spinner */
.otp-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: otp-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes otp-spin { to { transform: rotate(360deg); } }

/* Footer note */
.otp-footer-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  justify-content: center;
}

/* Mobile verified badge — shown over the mobile input in forms */
.mobile-verified-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--success);
  pointer-events: none;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 999px;
}

/* Small button variant */
.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

@media (max-width: 500px) {
  .otp-card { padding: 24px 18px 20px; }
  .otp-code-input { font-size: 1.2rem !important; letter-spacing: 0.2em !important; }
}

/* =========================================================
   CHOOSE REGISTRATION TYPE (choose.php)
   ========================================================= */
/* Eligibility Checker Widget */
.elig-checker-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ecb-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ecb-icon { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.ecb-head strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text); }
.ecb-head span { font-size: 0.875rem; color: var(--muted); }
.ecb-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.ecb-age-line {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 8px;
}
.ecb-age-line strong { color: var(--text); }
.ecb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ecb-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.choose-grid-3 { grid-template-columns: repeat(3, 1fr); }
.choose-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }

.choose-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  box-shadow: var(--shadow);
}
.choose-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.choose-card-school:hover   { border-color: #2563EB; }
.choose-card-defence:hover  { border-color: #16A34A; }
.choose-card-virtual:hover  { border-color: #7C3AED; }

.choose-card-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
}
.choose-card-body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.choose-card-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.choose-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.8125rem;
  color: var(--text-2);
}
.choose-detail-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.choose-card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 960px) {
  .choose-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .choose-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .choose-grid   { grid-template-columns: 1fr; }
  .choose-grid-4 { grid-template-columns: 1fr; }
  .ecb-form      { flex-direction: column; align-items: stretch; }
}


/* =========================================================
   SCHOOL REGISTRATION FORM (school_register.php)
   ========================================================= */

/* Back link */
.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.btn-back-link:hover { color: var(--text); }

/* Student summary bar */
.student-summary-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 0.8125rem;
  color: var(--text-2);
}
.student-count-chip {
  display: flex;
  align-items: center;
  gap: 5px;
}
.student-count-chip strong { color: var(--text); font-weight: 700; }
.gender-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.race-chip {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--success-soft);
  color: var(--success);
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Individual student row */
.student-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color 0.15s ease;
}
.student-row:focus-within { border-color: var(--primary); }

.student-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.student-row-num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.btn-remove-student {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-remove-student:hover { background: var(--danger-soft); border-color: var(--danger); }

/* Grid inside each student row */
.student-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 18px;
}

/* Race badge (fixed, non-editable) */
.race-badge-fixed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid #6EE7B7;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Inline hint (shown in label) */
.form-hint-inline {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}
.age-hint {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
}

/* Add student button */
.btn-add-student {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  width: 100%;
  justify-content: center;
  padding: 13px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  margin-top: 4px;
}
.btn-add-student:hover {
  border-color: #2563EB;
  color: #2563EB;
  background: #EFF6FF;
}

/* Submit row */
.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}
.form-submit-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (max-width: 680px) {
  .student-fields-grid { grid-template-columns: 1fr 1fr; }
  .form-submit-row { flex-direction: column; align-items: stretch; }
  .form-submit-row .btn { width: 100%; justify-content: center; }
}
@media (max-width: 440px) {
  .student-fields-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   SCHOOL RECEIPT (school_receipt.php)
   ========================================================= */

/* Hero strip */
.school-receipt-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 60%, #0B1F6B 100%);
  color: #fff;
  border-radius: 18px;
  padding: 26px 30px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 14px 30px -10px rgba(15,23,42,0.4);
}
.school-hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.school-hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.school-hero-stat {
  text-align: center;
}
.school-hero-stat span {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.school-hero-stat label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin-top: 4px;
}
.race-stat span { color: #86EFAC; }

/* Receipt detail grid */
.receipt-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.receipt-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rf-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.rf-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

/* Candidates table */
.school-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.school-candidates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 640px;
}
.school-candidates-table thead th {
  background: var(--bg);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.school-candidates-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s ease;
}
.school-candidates-table tbody tr:last-child { border-bottom: none; }
.school-candidates-table tbody tr:hover { background: var(--bg); }
.school-candidates-table td {
  padding: 10px 12px;
  vertical-align: middle;
  color: var(--text-2);
}
.td-num { color: var(--muted); font-size: 0.78rem; font-weight: 700; text-align:center; width:36px; }
.td-name { font-weight: 600; color: var(--text); white-space: nowrap; }
.td-reg  { white-space: nowrap; }

.reg-code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 8px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
}

/* Gender badges */
.gender-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.gender-badge-male   { background: #DBEAFE; color: #1D4ED8; }
.gender-badge-female { background: #FCE7F3; color: #BE185D; }

/* Race badge (small, in table) */
.race-badge-small {
  display: inline-block;
  background: var(--success-soft);
  color: var(--success);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 680px) {
  .school-receipt-hero   { flex-direction: column; align-items: flex-start; }
  .receipt-detail-grid   { grid-template-columns: 1fr; }
  .school-hero-meta      { gap: 16px; }
}

/* =========================================================
   REGISTRATION PROGRESS STEPPER
   ========================================================= */
.reg-stepper-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.reg-stepper {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
}

.rs-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  cursor: default;
}

.rs-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  line-height: 1;
}

.rs-dot svg { width: 13px; height: 13px; stroke-width: 3; display: none; }

.rs-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-2);
  white-space: nowrap;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.rs-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 6px;
  margin-bottom: 18px;
  transition: background 0.35s ease;
  min-width: 16px;
}

/* Done state */
.rs-step.s-done .rs-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.rs-step.s-done .rs-dot .step-num { display: none; }
.rs-step.s-done .rs-dot svg { display: block; }
.rs-step.s-done .rs-label { color: var(--success); }
.rs-connector.s-done { background: var(--success); }

/* Active state */
.rs-step.s-active .rs-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.09);
}
.rs-step.s-active .rs-label { color: var(--text); font-weight: 700; }

/* Mobile */
@media (max-width: 480px) {
  .rs-label { font-size: 0.5625rem; }
  .reg-stepper { padding: 10px 14px; }
  .rs-dot { width: 24px; height: 24px; font-size: 0.625rem; }
  .rs-connector { margin-bottom: 14px; min-width: 10px; }
}
@media (max-width: 340px) {
  .rs-label { display: none; }
}

/* =========================================================
   PAGE ENTRY ANIMATION
   ========================================================= */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-in {
  animation: fadeSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* =========================================================
   HEADER SCROLL SHADOW
   ========================================================= */
.site-header {
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.09), 0 1px 4px rgba(15, 23, 42, 0.06);
}

/* =========================================================
   BUTTON LOADING STATE
   ========================================================= */
.btn-loading {
  pointer-events: none;
  opacity: 0.78;
}
.btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}
.btn-spinner-dark {
  border-color: rgba(15, 23, 42, 0.2);
  border-top-color: var(--primary);
}

/* =========================================================
   RACE COUNTDOWN WIDGET
   ========================================================= */
.countdown-widget {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}

.cd-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.65;
  margin-right: 6px;
  flex-shrink: 0;
  color: #fff;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 34px;
  color: #fff;
}

.cd-unit span {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  letter-spacing: -0.02em;
  line-height: 1;
}

.cd-unit small {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-top: 3px;
}

.cd-sep {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.countdown-expired {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 0;
  margin-top: 14px;
}

@media (max-width: 460px) {
  .countdown-widget { padding: 7px 10px; gap: 2px; }
  .cd-unit span { font-size: 1rem; }
  .cd-unit { min-width: 28px; }
  .cd-label { display: none; }
}

/* Standalone (light bg) countdown variant — used on login page */
.countdown-widget-light {
  background: var(--bg);
  border-color: var(--border);
}
.countdown-widget-light .cd-unit,
.countdown-widget-light .cd-unit span { color: var(--text); }
.countdown-widget-light .cd-label { color: var(--muted); }
.countdown-widget-light .cd-sep { color: var(--muted-2); }

/* =========================================================
   IMPROVED CARD & INTERACTIVE HOVER
   ========================================================= */
.quick-card {
  transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.15s ease;
}
.quick-card:hover:not(.quick-disabled) {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.choose-card {
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.15s ease;
}
.choose-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* =========================================================
   NAV DRAWER — SMOOTHER TRANSITIONS
   ========================================================= */
.nav-drawer {
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.nav-overlay {
  transition: opacity 0.26s ease !important;
}

/* =========================================================
   HEADER BACK-LINK (breadcrumb feel on sub-pages)
   ========================================================= */
.header-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-right: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.header-back:hover { background: var(--bg); color: var(--text); }
.header-back svg { flex-shrink: 0; }
