/* ============================================================
   Design tokens — Calm Clinical
   Primary: deep pine ink + a single deep-teal accent
   (a deliberate move away from generic SaaS indigo — teal reads
   as calm/trustworthy, which fits a clinic-style registration flow)
   ============================================================ */
:root {
  /* Core palette */
  --ink:          #15231E;   /* deep pine-black, warm-dark not slate */
  --ink-soft:     #2E423C;   /* secondary text */
  --ink-muted:    #66807A;   /* placeholders, meta */
  --ink-faint:    #A2B5AD;   /* disabled, subtle */

  /* Surfaces */
  --surface-0:    #FFFFFF;   /* cards */
  --surface-1:    #F5F7F2;   /* page bg — soft paper, not cold slate */
  --surface-2:    #EAEEE4;   /* inputs, subtle panels */
  --surface-3:    #D9DFD1;   /* borders */

  /* Single brand accent — deep teal */
  --accent:       #1F6F5C;
  --accent-hover: #175A4A;
  --accent-pale:  #E7F4EF;
  --accent-soft:  #BFE0D3;

  /* A surface that always stays dark, regardless of theme —
     used for the ticket stub so it reads correctly in both modes */
  --stub-surface: #122019;
  --stub-glow:    rgba(31,111,92,0.35);

  /* Semantic */
  --success:      #1E8A55;
  --success-pale: #EAF7EE;
  --success-soft: #A8E0BE;
  --warn:         #B6650A;
  --warn-pale:    #FFF4E6;
  --warn-soft:    #F2C385;
  --error:        #C23B3B;
  --error-pale:   #FCEDED;
  --error-soft:   #EFB3B3;

  /* Type */
  --font-display: "DM Serif Display", "Georgia", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "IBM Plex Mono", "Courier New", monospace;

  /* Radii */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Shadows — very subtle */
  --shadow-xs:    0 1px 2px rgba(21,35,30,0.05);
  --shadow-sm:    0 1px 3px rgba(21,35,30,0.08), 0 1px 2px rgba(21,35,30,0.04);
  --shadow-md:    0 4px 6px rgba(21,35,30,0.06), 0 2px 4px rgba(21,35,30,0.04);
  --shadow-lg:    0 10px 24px rgba(21,35,30,0.10), 0 4px 8px rgba(21,35,30,0.06);
  --shadow-modal: 0 24px 60px rgba(21,35,30,0.18), 0 8px 24px rgba(21,35,30,0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --transition: 150ms var(--ease);
}

/* Dark mode */
[data-theme="dark"] {
  --ink:          #E9F0EC;
  --ink-soft:     #C2D0C8;
  --ink-muted:    #86998F;
  --ink-faint:    #54655C;

  --surface-0:    #1B2722;
  --surface-1:    #111A16;
  --surface-2:    #1B2722;
  --surface-3:    #324239;

  --accent:       #4FBF9F;
  --accent-hover: #3DAB8C;
  --accent-pale:  rgba(79,191,159,0.16);
  --accent-soft:  rgba(79,191,159,0.32);

  --stub-surface: #0B1411;
  --stub-glow:    rgba(79,191,159,0.30);

  --success:      #4ADE94;
  --success-pale: rgba(30,138,85,0.16);
  --success-soft: rgba(30,138,85,0.34);
  --warn:         #F0A93D;
  --warn-pale:    rgba(182,101,10,0.16);
  --warn-soft:    rgba(182,101,10,0.34);
  --error:        #F08080;
  --error-pale:   rgba(194,59,59,0.16);
  --error-soft:   rgba(194,59,59,0.3);

  --shadow-xs:    0 1px 2px rgba(0,0,0,0.25);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.22);
  --shadow-md:    0 4px 8px rgba(0,0,0,0.35);
  --shadow-lg:    0 10px 30px rgba(0,0,0,0.45);
  --shadow-modal: 0 24px 60px rgba(0,0,0,0.55);
}

/* Smooth theme transitions on key elements */
body, .btn, input, select, textarea, .stat-card, .queue-row,
.modal-card, .page-link, .copy-btn, .upload-drop, .pay-card, .review-card,
.ticket-body, .ticket-stub, .login-card, .site-nav {
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--surface-1);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
dl, dd { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hidden { display: none !important; }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 242, 0.96);
  border-bottom: 1px solid var(--surface-3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
[data-theme="dark"] .site-nav {
  background: rgba(18, 32, 25, 0.95);
  border-bottom: 1px solid rgba(79,191,159,0.12);
}
.nav-brand {
  justify-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.01em;
  color: var(--accent) !important;
  white-space: nowrap;
}
.site-nav .nav-logo { color: var(--ink); }

.site-nav .theme-toggle {
  background: var(--surface-0);
  border-color: var(--surface-3);
  color: var(--ink-muted);
}
.site-nav .theme-toggle:hover {
  background: var(--surface-2);
  border-color: var(--ink-faint);
  color: var(--ink);
}

/* Existing dark mode background */
[data-theme="dark"] .site-nav {
  background: rgba(18, 32, 25, 0.95);
  border-bottom: 1px solid rgba(79,191,159,0.12);
}

/* If you have this line in your dark mode section, delete it or set it to none */
[data-theme="dark"] .nav-logo-img {
  filter: none; 
}

[data-theme="dark"] .site-nav .theme-toggle {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
}
[data-theme="dark"] .site-nav .theme-toggle:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.32);
  color: #fff;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: start;
}
.nav-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--surface-3);
  background: var(--surface-2);
  color: var(--ink-muted);
  transition: var(--transition);
}
.theme-toggle:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
  background: var(--accent-pale);
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Eyebrow pill */
.eyebrow-pill {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--accent-soft);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--r-sm);
  padding: 11px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform var(--transition), box-shadow var(--transition),
              background-color var(--transition), color var(--transition),
              border-color var(--transition);
  line-height: 1;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(31,111,92,0.25), 0 4px 8px rgba(31,111,92,0.12);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 4px rgba(31,111,92,0.3), 0 6px 14px rgba(31,111,92,0.18);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 0.95rem;
  border-radius: var(--r-md);
  gap: 10px;
}
.btn-lg svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}
.btn-lg:hover svg { transform: translateX(3px); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--ink-soft);
  border-color: var(--surface-3);
}
.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--ink-faint);
}

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

.btn-reject {
  background: var(--error-pale);
  color: var(--error);
  border-color: var(--error-soft);
}
.btn-reject:hover { background: var(--error-soft); }

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border-color: var(--surface-3);
}
.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
  background: var(--accent-pale);
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
}
.link-btn:hover { color: var(--accent-hover); text-decoration: underline; }

/* ============================================================
   Utility
   ============================================================ */
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.alert {
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-error {
  background: var(--error-pale);
  color: var(--error);
  border: 1px solid var(--error-soft);
}

/* ============================================================
   Form fields
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.field input, .field select, .field textarea {
  border: 1.5px solid var(--surface-3);
  border-radius: var(--r-sm);
  padding: 10px 13px;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface-0);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.field input:hover, .field select:hover { border-color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-pale);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 0.76rem; color: var(--ink-muted); margin-top: 3px; }

/* Review grid (key-value pairs) */
.review-grid { display: grid; gap: 8px; }
.review-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.86rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--surface-3);
}
.review-grid > div:last-child { border-bottom: none; }
.review-grid dt { color: var(--ink-muted); font-weight: 500; }
.review-grid dd { font-weight: 600; color: var(--ink); text-align: right; }

/* ============================================================
   PUBLIC — registration page
   ============================================================ */
.page-public { background: var(--surface-1); }
.page-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}

.hero { padding: 0 0 52px; max-width: 640px; }
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;   /* DM Serif Display looks best at regular weight */
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-title strong { font-weight: 400; }
.hero-sub {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 520px;
}
.hero-sub strong { color: var(--ink-soft); font-weight: 600; }

/* ============================================================
   Welcome screen — the single full-attention moment before
   the form. Signature: slow "breathing" rings behind the
   headline, a quiet nod to the calm/focus the brand is about.
   ============================================================ */
.welcome-screen {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 26px;
  padding: 40px 24px 90px;
  position: relative;
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}
.welcome-screen.is-collapsed {
  opacity: 0;
  transform: translateY(-18px) scale(0.98);
  pointer-events: none;
}
.welcome-screen.is-hidden-instant { display: none; }

.welcome-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, 90vw);
  height: min(560px, 90vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.welcome-rings svg { width: 100%; height: 100%; }
.welcome-rings .ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  transform-origin: 280px 280px;
  animation: breathe 7s var(--ease) infinite;
}
.welcome-rings .ring-1 { opacity: 0.22; animation-delay: 0s; }
.welcome-rings .ring-2 { opacity: 0.14; animation-delay: 0.7s; }
.welcome-rings .ring-3 { opacity: 0.08; animation-delay: 1.4s; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.welcome-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.6vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 720px;
}
.welcome-title-accent { color: var(--accent); }

.welcome-sub {
  position: relative;
  z-index: 1;
  max-width: 460px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-muted);
}
.welcome-sub strong { color: var(--ink-soft); font-weight: 600; }

/* ============================================================
   Registration view — the form, revealed after "Register now"
   ============================================================ */
.registration-view {
  position: relative;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.registration-view.is-collapsed {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.registration-view.is-hidden-instant { display: none; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 24px;
  transition: color var(--transition), gap var(--transition);
}
.back-link svg { width: 15px; height: 15px; }
.back-link:hover { color: var(--accent); gap: 9px; }

.reg-header { margin-bottom: 32px; max-width: 560px; }
.reg-header-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--ink);
  margin-bottom: 8px;
}
.reg-header-sub {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.reg-header-sub strong { color: var(--ink-soft); font-weight: 600; }

/* ============================================================
   Ticket — signature element (refined)
   ============================================================ */
.ticket {
  max-width: 540px;
  position: relative;
  filter: drop-shadow(var(--shadow-lg));
  transition: max-width 480ms var(--ease);
}

.ticket-stub {
  background: var(--stub-surface);
  color: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 24px 28px 32px;
  position: relative;
  overflow: hidden;
}

/* Subtle texture on stub */
.ticket-stub::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 110% 50%, var(--stub-glow) 0%, transparent 60%);
  pointer-events: none;
}

.stub-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}
.stub-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 5px;
}
.stub-value {
  display: block;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.stub-amount { text-align: right; }
.stub-amount .stub-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Clean tear line */
.perforation {
  position: relative;
  height: 1px;
  margin-top: 24px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.2) 0,
    rgba(255,255,255,0.2) 6px,
    transparent 6px,
    transparent 14px
  );
}
.notch {
  position: absolute;
  top: -10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface-1);
}
.notch-left { left: -14px; }
.notch-right { right: -14px; }

.ticket-body {
  background: var(--surface-0);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding: 32px 28px 34px;
  border: 1px solid var(--surface-3);
  border-top: none;
}

/* Step tabs */
.step-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 26px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 3px;
  width: fit-content;
  border: 1px solid var(--surface-3);
}
.step-tab {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 16px;
  border-radius: calc(var(--r-sm) - 3px);
  letter-spacing: 0.01em;
  user-select: none;
}
.step-tab.is-active {
  background: var(--surface-0);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.step { animation: stepIn 0.28s var(--ease); }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.field-other { margin-top: 8px; }

/* Review detail card */
.review-card {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--surface-3);
}
.review-card h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

/* OTP verification card */
.otp-card {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--surface-3);
}
.otp-card h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.otp-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.45;
}
.otp-input {
  letter-spacing: 0.3em;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  text-align: center;
}
.otp-card .link-btn {
  display: block;
  margin: 10px auto 0;
  text-align: center;
}
.alert-success {
  background: var(--success-pale);
  color: var(--success);
  border: 1px solid var(--success-soft);
}

/* Pay card */
.pay-card {
  border: 1.5px solid var(--surface-3);
  border-radius: var(--r-md);
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
  background: var(--surface-0);
}
.pay-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.qr-wrap {
  width: 188px;
  margin: 0 auto 16px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1.5px solid var(--surface-3);
  padding: 10px;
  background: #fff;
  cursor: zoom-in;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.qr-wrap:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-pale);
}
.qr-image { width: 100%; height: auto; display: block; cursor: zoom-in; }
.upi-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  border: 1px solid var(--surface-3);
}
.upi-label {
  display: block;
  font-size: 0.65rem;
  color: var(--ink-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.upi-id {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.copy-btn {
  background: var(--surface-0);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-xs);
  padding: 5px 11px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  transition: var(--transition);
}
.copy-btn:hover { background: var(--accent-pale); border-color: var(--accent-soft); }
.copy-btn.is-copied { background: var(--success); color: #fff; border-color: var(--success); }

.pay-warning {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--warn);
  background: var(--warn-pale);
  border: 1px solid var(--warn-soft);
  border-radius: var(--r-sm);
  padding: 10px 13px;
  line-height: 1.55;
  text-align: left;
}

/* File upload */
.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  border: 1.5px dashed var(--surface-3);
  border-radius: var(--r-md);
  padding: 28px 16px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--surface-2);
}
.upload-drop:hover {
  border-color: var(--accent);
  background: var(--accent-pale);
}
.upload-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-0);
  border: 1px solid var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}
.upload-text { font-size: 0.83rem; color: var(--ink-muted); font-weight: 500; }
.screenshot-preview {
  margin-top: 14px;
  border-radius: var(--r-sm);
  max-height: 220px;
  width: auto;
  margin-left: auto; margin-right: auto;
  border: 1.5px solid var(--surface-3);
}

/* Success state */
.success-body { text-align: center; padding: 44px 28px 40px; }
.success-check {
  width: 60px; height: 60px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--success-pale);
  border: 1.5px solid var(--success-soft);
  display: flex; align-items: center; justify-content: center;
}
.success-check svg { width: 28px; height: 28px; }
.success-check path {
  fill: none;
  stroke: var(--success);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkDraw 0.45s var(--ease) 0.1s forwards;
}
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
.success-body h2 {
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.success-text {
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto;
  font-size: 0.925rem;
}
.success-meta {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.success-body .btn-ghost { margin-top: 28px; }

.site-footer {
  margin-top: 60px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ============================================================
   ADMIN — login
   ============================================================ */
.page-admin-login {
  background: var(--surface-1);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-shell { width: 100%; max-width: 380px; }
.login-card {
  background: var(--surface-0);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--surface-3);
}
.login-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 4px 10px;
  border-radius: 100px;
}
.login-title {
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 28px;
}
.login-form { text-align: left; }
.login-note {
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   ADMIN — dashboard
   ============================================================ */
.page-admin { background: var(--surface-1); min-height: 100vh; }
.admin-shell { max-width: 1080px; margin: 0 auto; padding: 32px 24px 72px; }

/* Stats strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--surface-0);
  border-radius: var(--r-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--surface-3);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}
.stat-pending .stat-number { color: var(--warn); }

.admin-title {
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
}
.admin-sub {
  color: var(--ink-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 3px;
  width: fit-content;
  margin-bottom: 22px;
  border: 1px solid var(--surface-3);
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 8px 18px;
  border-radius: calc(var(--r-sm) - 3px);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  letter-spacing: -0.005em;
}
.admin-tab:hover { color: var(--ink); background: var(--surface-0); }
.admin-tab.is-active {
  background: var(--surface-0);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.admin-tab-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--surface-3);
  color: var(--ink-muted);
  padding: 1px 6px;
  border-radius: 100px;
  font-weight: 700;
}
.admin-tab.is-active .admin-tab-count {
  background: var(--accent-pale);
  color: var(--accent);
}

/* Queue list */
.queue-list { display: flex; flex-direction: column; gap: 8px; }
.queue-row {
  background: var(--surface-0);
  border-radius: var(--r-md);
  padding: 16px 20px 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--surface-3);
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.queue-row:hover {
  border-color: var(--ink-faint);
  box-shadow: var(--shadow-sm);
}

/* Left accent bar */
.queue-notch {
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--warn);
}
.queue-row.is-approved .queue-notch { background: var(--success); }
.queue-row.is-rejected .queue-notch { background: var(--error); }

.queue-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 0.9fr;
  gap: 16px;
  align-items: center;
  min-width: 0;
}
.queue-identity { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.queue-name { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.queue-meta {
  font-size: 0.77rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  min-width: 0;
}
.queue-contact span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-utr, .queue-time { display: flex; flex-direction: column; gap: 2px; }
.queue-utr .stub-label, .queue-time .stub-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 2px;
}
.queue-utr span.mono { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.queue-time span:last-child { font-size: 0.8rem; color: var(--ink-muted); }

.queue-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.queue-status-pill.approved {
  background: var(--success-pale);
  color: var(--success);
  border: 1px solid var(--success-soft);
}
.queue-status-pill.rejected {
  background: var(--error-pale);
  color: var(--error);
  border: 1px solid var(--error-soft);
}

.queue-actions { flex-shrink: 0; }

.empty-state {
  background: var(--surface-0);
  border-radius: var(--r-md);
  padding: 56px 24px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
  border: 1px dashed var(--surface-3);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-0);
  text-decoration: none;
  border: 1px solid var(--surface-3);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.page-link:hover {
  background: var(--accent-pale);
  border-color: var(--accent-soft);
  color: var(--accent);
}
.page-link.is-current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.page-link.is-disabled { opacity: 0.35; pointer-events: none; }
.page-ellipsis { color: var(--ink-faint); font-size: 0.82rem; padding: 0 4px; }

/* ============================================================
   Review modal
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  animation: fadeIn 0.15s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  background: var(--surface-0);
  border-radius: var(--r-xl);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--surface-3);
  animation: modalIn 0.2s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: var(--r-xs);
  border: 1px solid var(--surface-3);
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: 1.1rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: var(--surface-3); color: var(--ink); }

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-screenshot {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  min-height: 320px;
  overflow: hidden;
}
.modal-screenshot img { max-height: 88vh; width: 100%; object-fit: contain; }
.modal-details { padding: 32px 28px; }
.modal-details h2 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 18px;
  padding-right: 24px;
}

.modal-hint {
  font-size: 0.82rem;
  color: var(--warn);
  background: var(--warn-pale);
  border: 1px solid var(--warn-soft);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  line-height: 1.55;
  margin: 18px 0 22px;
}
.modal-actions { display: flex; gap: 8px; }
.modal-actions .btn { flex: 1; }
.reject-form { margin-top: 20px; }

/* ============================================================
   QR lightbox — click the QR code to zoom it full-size
   ============================================================ */
.qr-lightbox-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  cursor: zoom-out;
  animation: fadeIn 0.18s var(--ease);
}
.qr-lightbox-backdrop.hidden { display: none !important; }

.qr-lightbox-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  max-width: min(420px, 86vw);
  width: 100%;
  box-shadow: var(--shadow-modal);
  cursor: default;
  animation: modalIn 0.22s var(--ease);
  text-align: center;
}

.qr-lightbox-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-sm);
}

.qr-lightbox-hint {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.qr-lightbox-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--surface-3);
  background: var(--surface-0);
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.qr-lightbox-close:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.reject-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.reject-form textarea {
  width: 100%;
  border: 1.5px solid var(--surface-3);
  border-radius: var(--r-sm);
  padding: 10px 13px;
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--surface-0);
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.reject-form textarea:focus {
  outline: none;
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-pale);
}

/* ============================================================
   View button (used in admin queue)
   ============================================================ */
.view-btn {
  font-size: 0.8rem;
  padding: 8px 14px;
  white-space: nowrap;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .queue-main { grid-template-columns: 1fr; gap: 6px; }
  .queue-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .queue-actions { display: flex; }
  .queue-actions .btn { flex: 1; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-screenshot { border-radius: var(--r-xl) var(--r-xl) 0 0; min-height: 200px; }
}

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.9rem; }
  .welcome-screen { min-height: calc(100vh - 60px); padding: 28px 18px 70px; gap: 20px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip .stat-card:last-child { grid-column: span 2; }
  .ticket-body, .ticket-stub { padding-left: 20px; padding-right: 20px; }
  .modal-details { padding: 24px 20px; }
  .pagination { flex-wrap: wrap; }
  .admin-shell { padding: 20px 16px 60px; }
  .page-shell { padding: 0; }
}

@media (max-width: 420px) {
  .stub-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stub-amount { text-align: left; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip .stat-card:last-child { grid-column: span 1; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 0 16px; }
  .nav-brand { font-size: 1.50rem; }
}

/* ============================================================
   HERO SECTION — two-column split above the form
   ============================================================ */
.hero-section {
  background: var(--surface-0);
  border-bottom: 1px solid var(--surface-3);
  padding: 72px 40px 64px;
  box-sizing: border-box;
}

/* Full-width centered layout — no right column */
.hero-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Hide the right column (stats + quote) entirely */
.hero-right { display: none; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid var(--accent-soft);
  margin-bottom: 22px;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1vw, 1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 620px;
}

.hero-title-main em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 28px;
  max-width: 520px;
}

/* Trust checklist — horizontal row on hero */
.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: 32px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-trust-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-pale);
  border: 1px solid var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
}

/* Responsive hero */
@media (max-width: 860px) {
  .hero-section { padding: 52px 24px 44px; }
}

@media (max-width: 560px) {
  .hero-section { padding: 36px 16px 32px; }
  .hero-title-main { font-size: 1.75rem; }
  .hero-trust-list { flex-direction: column; align-items: flex-start; text-align: left; }
  .hero-split { text-align: left; align-items: flex-start; }
  .hero-left { align-items: flex-start; }
  .hero-eyebrow { margin-bottom: 16px; }
}

/* ============================================================
   REG SPLIT — info panel left, form right
   ============================================================ */
.reg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
  transition: grid-template-columns 520ms var(--ease), max-width 520ms var(--ease);
}

/* STEP 2 layout: left info panel collapses away, form panel takes over
   full width and the card itself widens + stays centered. */
.reg-split.is-step2 {
  grid-template-columns: 0fr 1fr;
  max-width: 760px;
}

/* Info panel (left) */
.reg-info-panel {
  padding: 48px 40px 56px;
  position: sticky;
  top: 60px;
  min-height: calc(100dvh - 60px);
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--surface-3);
  overflow: hidden;
  transition: opacity 320ms var(--ease), padding 460ms var(--ease),
              border-color 460ms var(--ease);
}

.reg-split.is-step2 .reg-info-panel {
  opacity: 0;
  padding: 48px 0 56px;
  pointer-events: none;
  border-right-color: transparent;
}

.reg-info-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--accent-soft);
  margin-bottom: 16px;
}

.reg-info-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 12px;
}

.reg-info-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 32px;
  max-width: 360px;
}

/* Steps list */
.reg-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
}

.reg-step-item {
  display: flex;
  gap: 16px;
  padding-bottom: 28px;
  position: relative;
}

/* Vertical connector line */
.reg-step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--surface-3);
}

.reg-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--accent-pale);
}

.reg-step-body { padding-top: 4px; }

.reg-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.reg-step-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Security badge */
.reg-info-badge {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface-0);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-top: auto;
}

.reg-info-badge-icon { font-size: 1.1rem; flex-shrink: 0; line-height: 1; }

.reg-info-badge-text {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.reg-info-badge-text strong { color: var(--ink-soft); }

/* Form panel (right) */
.reg-form-panel {
  padding: 90px 40px 60px;
  display: flex;
  flex-direction: column;
  transition: padding 460ms var(--ease), align-items 460ms var(--ease);
}

.reg-split.is-step2 .reg-form-panel {
  align-items: center;
  padding: 64px 40px 60px;
}

.reg-split.is-step2 .reg-form-panel .ticket {
  max-width: 640px;
  width: 100%;
}

/* Responsive reg split */
@media (max-width: 860px) {
  .reg-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    transition: grid-template-rows 480ms var(--ease);
  }

  .reg-split.is-step2 {
    grid-template-rows: 0fr auto;
    max-width: 100%;
  }

  .reg-info-panel {
    position: static;
    min-height: unset;
    padding: 32px 24px 28px;
    border-right: none;
    border-bottom: 1px solid var(--surface-3);
  }

  .reg-split.is-step2 .reg-info-panel {
    padding: 0;
    border-bottom-color: transparent;
  }

  .reg-info-desc { max-width: 100%; }
  .reg-info-badge { margin-top: 28px; }

  .reg-form-panel {
    padding: 28px 24px 48px;
  }

  .reg-split.is-step2 .reg-form-panel {
    padding: 20px 24px 48px;
    align-items: stretch;
  }

  .reg-split.is-step2 .reg-form-panel .ticket {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .reg-info-panel { padding: 24px 16px 20px; }
  .reg-form-panel { padding: 20px 16px 40px; }
}

/* ============================================================
   GLOBAL — no overflow-x
   ============================================================ */
html, body { overflow-x: hidden; }

/* ============================================================
   PAGE SHELL — zero top padding
   ============================================================ */
.page-public { background: var(--surface-1); }
.page-shell { padding-top: 0 !important; }

/* ============================================================
   WELCOME SCREEN — exact viewport fill, no page scroll
   ============================================================ */
.welcome-screen {
  height: calc(100dvh - 60px) !important;
  min-height: unset !important;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 24px !important;
  gap: 20px !important;
}

/* ============================================================
   REGISTRATION VIEW — natural height, page scrolls normally
   No height cap, no overflow:hidden — content determines height
   ============================================================ */
.registration-view {
  /* intentionally no height/overflow — let the page scroll */
}
.registration-view.is-hidden-instant { display: none !important; }
.registration-view.is-collapsed {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* ============================================================
   REGPAGE SPLIT — two columns, side by side, align to top
   Left panel: sticky so it stays in view as form scrolls
   Right panel: natural height, no internal scroll
   ============================================================ */
.regpage-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100dvh - 60px);
  align-items: start;
}

/* ---- LEFT PANEL ---- */
.regpage-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px 48px 40px;
  background: var(--surface-1);
  position: sticky;
  top: 60px;                       /* stick just below the nav */
  height: calc(100dvh - 60px);    /* fill exactly the visible window */
  box-sizing: border-box;
  overflow: hidden;
  position: sticky;
}
/* subtle decorative ring */
.regpage-left::before {
  content: "";
  position: absolute;
  top: 50%; left: -120px;
  transform: translateY(-50%);
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  opacity: 0.25;
  pointer-events: none;
}
.back-link { margin-bottom: 24px; }
.regpage-hero { position: relative; z-index: 1; }

/* Eyebrow badge */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid var(--accent-soft);
  margin-bottom: 18px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* Title — clamped so it always fits without overflow */
.regpage-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
  max-width: 420px;
}
.regpage-title em {
  font-style: normal;
  color: var(--accent);
}
.regpage-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 22px;
  max-width: 380px;
}

/* Trust checklist */
.hero-trust-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 26px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-trust-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-pale);
  border: 1px solid var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
}

/* Inline stats row */
.regpage-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}
.regpage-stat { display: flex; flex-direction: column; gap: 2px; }
.regpage-stat-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1;
}
.regpage-stat-lbl {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.regpage-stat-divider {
  width: 1px; height: 30px;
  background: var(--surface-3);
  flex-shrink: 0;
}

/* ---- RIGHT PANEL ---- */
.regpage-right {
  background: var(--surface-0);
  border-left: 1px solid var(--surface-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  /* natural height — no scroll cap, no overflow */
}

/* ticket fills the right panel width */
.regpage-right .ticket {
  max-width: 100%;
  width: 100%;
}

/* ============================================================
   RESPONSIVE — stack on narrow screens, natural scroll
   ============================================================ */
@media (max-width: 860px) {
  .regpage-split {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .regpage-left {
    position: static;
    height: auto;
    padding: 32px 24px 28px;
    border-bottom: 1px solid var(--surface-3);
    overflow: visible;
  }
  .regpage-left::before { display: none; }
  .regpage-right {
    border-left: none;
    padding: 28px 24px 48px;
    justify-content: flex-start;
  }
  .regpage-title { font-size: 1.5rem; }
  .regpage-stats { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 560px) {
  .welcome-screen { padding: 0 16px !important; gap: 18px !important; }
  .regpage-left { padding: 24px 16px 20px; }
  .regpage-right { padding: 20px 16px 40px; }
  .back-link { margin-bottom: 16px; }
}