:root {
  --bg: #faf7f2;
  --bg-elevated: #ffffff;
  --ink: #0b1220;
  --ink-muted: #4a5568;
  --line: rgba(11, 18, 32, 0.08);
  --accent: #c9a227;
  --action: #2563eb;
  --accent-soft: rgba(201, 162, 39, 0.14);
  --action-soft: color-mix(in srgb, var(--action) 20%, transparent);
  --shadow: 0 24px 80px rgba(11, 18, 32, 0.08);
  --radius-lg: 20px;
  --radius-md: 12px;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, var(--accent-soft), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, var(--action-soft), transparent 42%), var(--bg);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 8px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b6914);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.hero {
  padding: 48px 0 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 18ch;
}

.hero p.lead {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-muted);
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.04);
}

.pill strong {
  color: var(--ink);
  font-weight: 600;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 36px);
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.card .sub {
  margin: 0 0 24px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.grid-2 {
  display: grid;
  gap: 22px;
}

@media (min-width: 880px) {
  .grid-2 {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.ar-hint {
  display: block;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  opacity: 0.85;
  margin-top: 2px;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.field {
  margin-bottom: 18px;
}

.row-2 {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .row-2 {
    grid-template-columns: 120px 1fr;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 14px 22px;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.btn:not(.btn-ghost):hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary,
.btn-action {
  background: linear-gradient(135deg, var(--action), color-mix(in srgb, var(--action) 72%, #0b1220));
  color: #f8fafc;
  box-shadow: 0 14px 36px color-mix(in srgb, var(--action) 35%, transparent);
}

.btn-primary:hover,
.btn-action:hover {
  box-shadow: 0 18px 44px color-mix(in srgb, var(--action) 45%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(201, 162, 39, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent), #a3841f);
  color: #0b1220;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.2);
  color: #7f1d1d;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.muted {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.footer {
  padding: 40px 0 60px;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.footer__row {
  margin-bottom: 14px;
}

.footer__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.footer__trust-label {
  width: 100%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
}

@media (min-width: 520px) {
  .footer__trust-label {
    width: auto;
    margin-inline-end: 8px;
  }
}

.footer__trust-badge {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  border-color: rgba(201, 162, 39, 0.35);
  color: var(--ink);
}

.theme-toggle__moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__moon {
  display: inline;
}

.topbar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 16px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}

.table-wrap {
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-elevated);
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--bg) 88%, var(--ink));
}

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

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-ok {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.badge-wait {
  background: rgba(234, 179, 8, 0.15);
  color: #854d0e;
}

.kiosk-actions form {
  display: inline;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 999px;
}

.search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.search-bar input {
  flex: 1;
  min-width: 200px;
}

.scan-hero {
  text-align: center;
  padding: 32px 0 8px;
}

.scan-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 12px 0 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.stat .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.stat .lbl {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.lang-switch__sep {
  opacity: 0.45;
  user-select: none;
}

.lang-switch__opt {
  text-decoration: none;
  font-weight: 500;
}

.lang-switch__opt:hover {
  color: var(--accent);
}

.lang-switch__opt.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[dir="rtl"] body {
  font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
}

/* Form controls do not always inherit body font in all browsers — Arabic typing must not show as □ */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select,
[dir="rtl"] button {
  font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
}

[dir="rtl"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
[dir="rtl"] textarea,
[dir="rtl"] select {
  direction: rtl;
  text-align: start;
  unicode-bidi: plaintext;
}

[dir="rtl"] .hero h1,
[dir="rtl"] .brand-name,
[dir="rtl"] .scan-name,
[dir="rtl"] .card h2,
[dir="rtl"] .stat .num {
  font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
}

[dir="rtl"] .topbar {
  flex-direction: row-reverse;
}

[dir="rtl"] .topbar-end {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .meta-row,
[dir="rtl"] .actions,
[dir="rtl"] .search-bar {
  flex-direction: row-reverse;
}

[dir="rtl"] table th,
[dir="rtl"] table td {
  text-align: right;
}

.path-section {
  padding-bottom: 48px;
}

.path-card {
  max-width: 820px;
  margin: 0 auto;
}

.path-picker {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

@media (min-width: 720px) {
  .path-picker {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.path-picker__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.path-picker__item:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 12px 40px rgba(11, 18, 32, 0.07);
}

.path-picker__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.path-picker__item--guest {
  border-inline-start: 3px solid var(--action);
}

.path-picker__item--desk {
  border-inline-start: 3px solid rgba(11, 18, 32, 0.2);
}

.path-picker__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.path-picker__label {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.path-picker__desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.path-picker__btn {
  align-self: flex-start;
  margin-top: 4px;
  pointer-events: none;
}

.persona-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px 18px;
  margin: 0;
}

.persona-fieldset legend {
  padding: 0 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.persona-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.persona-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.35;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.persona-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.persona-option:has(input:checked) {
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2);
}

.persona-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.persona-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--line);
}

.persona-label {
  color: var(--ink-muted);
}

.badge-preview-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.badge-preview-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.avatar-preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.badge-persona-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.check-in-avatar-cell {
  width: 48px;
  vertical-align: middle;
}

.check-in-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}

.check-in-avatar-persona {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  cursor: pointer;
}

.checkbox-inline input {
  width: auto;
  margin: 0;
}

.color-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

input[type="color"] {
  width: 52px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.color-field__hex {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* --- Modern landing (home) --- */
.home-hero {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  padding: clamp(36px, 8vw, 72px) clamp(20px, 5vw, 48px) clamp(40px, 7vw, 64px);
  margin-bottom: 48px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ink) 88%, transparent) 0%, color-mix(in srgb, var(--action) 35%, var(--ink)) 100%),
    radial-gradient(ellipse 120% 80% at 20% 0%, var(--accent-soft), transparent 55%), var(--ink);
  color: #f1f5f9;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.home-hero--image {
  background-image: linear-gradient(105deg, rgba(12, 16, 23, 0.92) 0%, rgba(12, 16, 23, 0.55) 45%, rgba(12, 16, 23, 0.75) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.home-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.72);
}

.home-hero__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
}

.home-hero__meta {
  margin: 0 0 16px;
  font-size: 1rem;
  color: rgba(241, 245, 249, 0.88);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.home-hero__meta-dot {
  opacity: 0.5;
}

.home-hero__lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.82);
  max-width: 46ch;
}

.home-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
}

.btn-action--hero {
  min-height: 48px;
  padding-inline: 28px;
  font-size: 1rem;
}

.btn-ghost--hero {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost--hero:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.home-countdown {
  margin-top: 32px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 420px;
}

.home-countdown__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.65);
  margin-bottom: 10px;
}

.home-countdown__digits {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 4px;
  font-variant-numeric: tabular-nums;
}

.home-countdown__unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.2rem;
}

.home-countdown__unit strong {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
}

.home-countdown__unit small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(241, 245, 249, 0.55);
}

.home-countdown__sep {
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  padding: 0 2px;
}

.home-section-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

.home-section-lead {
  margin: 0 0 22px;
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 56ch;
}

.home-bento {
  margin-bottom: 48px;
}

.home-bento__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .home-bento__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bento-card {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: 0 10px 40px rgba(11, 18, 32, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(11, 18, 32, 0.08);
}

.bento-card__icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--action-soft);
  color: var(--action);
  margin-bottom: 12px;
}

.bento-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
}

.bento-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.home-social {
  margin-bottom: 40px;
}

.home-social__ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-social__pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.path-section {
  margin-bottom: 100px;
}

@media (min-width: 900px) {
  .path-section {
    margin-bottom: 48px;
  }

  .sticky-cta {
    display: none;
  }
}

.sticky-cta {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px clamp(16px, 4vw, 28px) calc(12px + env(safe-area-inset-bottom, 0));
  display: flex;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 92%, transparent), transparent);
}

.sticky-cta__btn {
  pointer-events: auto;
  min-width: min(320px, 100%);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--action) 40%, transparent);
}

.register-progress {
  margin-bottom: 22px;
}

.register-progress__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.register-progress__track {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.register-progress__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--action), var(--accent));
}

html[data-theme="dark"] th {
  background: var(--bg-elevated);
}

html[data-theme="dark"] table {
  background: var(--bg-elevated);
}

html[data-theme="dark"] .stat,
html[data-theme="dark"] .path-picker__item,
html[data-theme="dark"] .bento-card {
  background: var(--bg-elevated);
}

/* Dark mode readability polish for the top hero box */
html[data-theme="dark"] .home-hero {
  background: linear-gradient(138deg, #dbe7ff 0%, #c9dbff 56%, #b9d0ff 100%);
  border: 1px solid rgba(13, 42, 87, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 46px rgba(2, 6, 23, 0.28);
}

html[data-theme="dark"] .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 220px at 12% 0%, rgba(255, 255, 255, 0.55), transparent 65%);
}

html[data-theme="dark"] .home-hero__eyebrow {
  color: #1b3f75;
  text-shadow: none;
}

html[data-theme="dark"] .home-hero__title {
  color: #0d2a57;
  text-shadow: none;
}

html[data-theme="dark"] .home-hero__meta {
  color: #173867;
}

html[data-theme="dark"] .home-hero__lead {
  color: #244a7a;
}

html[data-theme="dark"] .home-countdown {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(13, 42, 87, 0.24);
}

html[data-theme="dark"] .home-countdown__label {
  color: #1b3f75;
}

html[data-theme="dark"] .home-countdown__unit strong {
  color: #0d2a57;
}

html[data-theme="dark"] .home-countdown__unit small {
  color: #2b4f7e;
}

html[data-theme="dark"] .home-countdown__sep {
  color: #355d90;
}

html[data-theme="dark"] .btn-ghost--hero {
  border-color: rgba(13, 42, 87, 0.35);
  color: #0d2a57;
  background: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .btn-ghost--hero:hover {
  border-color: rgba(13, 42, 87, 0.55);
  background: rgba(255, 255, 255, 0.58);
  color: #0d2a57;
}
