/* ==========================================================================
   GEAV Fitness Event — Apple-Inspired Minimalist Dark Design System
   Fonts: Self-hosted Vazirmatn (Persian) + Orbitron (GEAV Flag Display)
   Palette: Pure Obsidian (#000000), Frosted Titanium Glass, GEAV Neon Green (#76FF03)
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Orbitron';
  src: url('/fonts/Orbitron.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: rgba(20, 22, 26, 0.72);
  --surface-strong: rgba(26, 29, 35, 0.86);
  --surface-subtle: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.18);

  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;

  --accent: #76ff03;
  --accent-deep: #5ce100;
  --accent-soft: rgba(118, 255, 3, 0.12);
  --accent-border: rgba(118, 255, 3, 0.36);

  --amber: #ff9f0a;
  --amber-soft: rgba(255, 159, 10, 0.13);
  --amber-border: rgba(255, 159, 10, 0.38);

  --danger: #ff453a;
  --danger-soft: rgba(255, 69, 58, 0.12);
  --danger-border: rgba(255, 69, 58, 0.35);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 28px 80px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  min-height: 100svh;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Ambient Apple-Style Radial Lighting
   ========================================================================== */

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.42;
}

.ambient__orb--primary {
  width: min(620px, 90vw);
  height: min(620px, 90vw);
  top: -220px;
  right: -120px;
  background: radial-gradient(circle, rgba(118, 255, 3, 0.24) 0%, rgba(118, 255, 3, 0.04) 48%, transparent 72%);
}

.ambient__orb--secondary {
  width: min(520px, 85vw);
  height: min(520px, 85vw);
  bottom: -240px;
  left: -140px;
  background: radial-gradient(circle, rgba(118, 255, 3, 0.12) 0%, rgba(40, 60, 40, 0.05) 50%, transparent 72%);
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 10%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 10%, #000 10%, transparent 80%);
}

/* ==========================================================================
   Main Shell & Topbar
   ========================================================================== */

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) clamp(16px, 3.5vw, 32px) 40px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: clamp(20px, 3.5vw, 36px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: clamp(24px, 4vw, 44px);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.topbar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.topbar__wordmark {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffffff;
  font-size: 0.92rem;
}

.topbar__sep {
  color: rgba(255, 255, 255, 0.2);
}

.topbar__tag {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.82rem;
}

.topbar__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(118, 255, 3, 0.65);
  animation: pulse 2.2s infinite;
}

.pulse-dot--amber {
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 159, 10, 0.65);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(118, 255, 3, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(118, 255, 3, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(118, 255, 3, 0);
  }
}

/* ==========================================================================
   Two-Column Responsive Layout
   ========================================================================== */

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4.5vw, 52px);
  align-items: start;
  flex: 1;
}

@media (min-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 456px);
    gap: 56px;
    align-items: center;
  }
}

/* ==========================================================================
   Hero Column — Brand Lockup, Title, Pillars, Bento Info & Live Capacity
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-frame {
  position: relative;
  width: clamp(78px, 11vw, 96px);
  height: clamp(78px, 11vw, 96px);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 40%, rgba(118, 255, 3, 0.14), rgba(8, 9, 11, 0.96) 72%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 28px rgba(118, 255, 3, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.18);
  mix-blend-mode: lighten;
  filter: contrast(1.08) brightness(1.04);
  user-select: none;
  pointer-events: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.geav-wordmark {
  height: clamp(28px, 4vw, 36px);
  width: auto;
  display: block;
}

.slogan {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.68rem, 1.4vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.3;
}

.slogan__accent {
  color: var(--accent);
}

.slogan__white {
  color: rgba(255, 255, 255, 0.85);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__title {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 850;
  line-height: 1.24;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  color: var(--text-secondary);
  max-width: 52ch;
  font-weight: 400;
}

/* Pillars Strip (RUNNING / FITNESS / COMMUNITY) */
.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pillar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #e4e4e7;
}

.pillar__icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Event Info Bento Tiles */
.bento-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 520px) {
  .bento-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.info-tile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.25s var(--ease-apple), transform 0.25s var(--ease-apple);
}

.info-tile:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.info-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(118, 255, 3, 0.2);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-tile__icon svg {
  width: 20px;
  height: 20px;
}

.info-tile__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-tile__label {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.info-tile__value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.info-tile__meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Live Capacity Panel */
.capacity-panel {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.capacity-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.capacity-panel__title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.capacity-panel__desc {
  font-size: 0.77rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.capacity-total {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}

.capacity-total__num {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--accent);
}

.capacity-total--full .capacity-total__num {
  color: var(--amber);
}

.capacity-total__of {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.capacity-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .capacity-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cap-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s var(--ease-apple);
}

.cap-card--full {
  border-color: var(--amber-border);
  background: rgba(255, 159, 10, 0.045);
}

.cap-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cap-card__name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cap-card__status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.cap-card--full .cap-card__status {
  background: var(--amber-soft);
  color: var(--amber);
}

.cap-card__count {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cap-card--full .cap-card__count {
  color: #fcd38d;
}

.progress-track {
  width: 100%;
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  box-shadow: 0 0 12px rgba(118, 255, 3, 0.45);
  transition: width 0.6s var(--ease-apple), background 0.3s ease;
}

.cap-card--full .progress-fill {
  background: linear-gradient(90deg, #ff7a00, var(--amber));
  box-shadow: 0 0 12px rgba(255, 159, 10, 0.45);
}

/* ==========================================================================
   Form Column — Frosted Apple Glass Card
   ========================================================================== */

.form-column {
  width: 100%;
}

.glass-card {
  position: relative;
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(28, 31, 38, 0.84) 0%, rgba(14, 16, 20, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: -1px 24px auto 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(118, 255, 3, 0.55), transparent);
  pointer-events: none;
}

.demo-notice {
  margin-bottom: 16px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}

.card-header {
  margin-bottom: 24px;
}

.card-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.card-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Form Controls */
#registrationForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
}

.field__label {
  font-size: 0.84rem;
  font-weight: 650;
  color: #e4e4e7;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  right: 15px;
  width: 19px;
  height: 19px;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: color 0.2s ease;
}

.input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(0, 0, 0, 0.36);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s var(--ease-apple), box-shadow 0.2s var(--ease-apple), background-color 0.2s ease;
}

.input--ltr {
  text-align: left;
  padding: 0 46px 0 16px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.input::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
  letter-spacing: 0;
}

.input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.input:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.56);
  box-shadow: 0 0 0 4px rgba(118, 255, 3, 0.14);
}

.input-wrap:focus-within .input-icon {
  color: var(--accent);
}

.field--invalid .input {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.field__error {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--danger);
  min-height: 0;
  display: none;
}

.field__error.is-visible {
  display: block;
}

/* Tactile Apple-style Gender Selector */
.gender-fieldset {
  margin: 0;
}

.gender-fieldset .field__label {
  margin-bottom: 8px;
}

.gender-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gender-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 15px;
  min-height: 68px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.11);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.22s var(--ease-apple), background-color 0.22s var(--ease-apple), transform 0.18s var(--ease-apple), box-shadow 0.22s var(--ease-apple);
}

.gender-option:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.gender-option:active {
  transform: scale(0.985);
}

.gender-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-option__content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gender-option__title {
  font-size: 0.96rem;
  font-weight: 750;
  color: #ffffff;
}

.gender-option__badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.gender-option--waitlist .gender-option__badge {
  color: var(--amber);
}

.gender-option__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.8px solid rgba(255, 255, 255, 0.24);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-apple);
}

.gender-option__check::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000000;
  transform: scale(0);
  transition: transform 0.2s var(--ease-apple);
}

.gender-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(118, 255, 3, 0.09);
  box-shadow: 0 0 0 3px rgba(118, 255, 3, 0.12);
}

.gender-option:has(input:checked) .gender-option__check {
  border-color: var(--accent);
  background: var(--accent);
}

.gender-option:has(input:checked) .gender-option__check::after {
  transform: scale(1);
}

.gender-option--waitlist:has(input:checked) {
  border-color: var(--amber);
  background: rgba(255, 159, 10, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.13);
}

.gender-option--waitlist:has(input:checked) .gender-option__check {
  border-color: var(--amber);
  background: var(--amber);
}

/* Dynamic Waitlist Callout */
.waitlist-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: #fde6b8;
  animation: fadeSlideIn 0.28s var(--ease-apple);
}

.waitlist-banner[hidden] {
  display: none;
}

.waitlist-banner__icon {
  width: 20px;
  height: 20px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.waitlist-banner__text strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 750;
  color: #fff3d6;
  margin-bottom: 2px;
}

.waitlist-banner__text p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #f7d99c;
}

/* Error Alert */
.form-alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
  color: #ffb4af;
  font-size: 0.83rem;
  font-weight: 500;
  animation: fadeSlideIn 0.25s var(--ease-apple);
}

.form-alert[hidden] {
  display: none;
}

/* Primary CTA Button */
.submit-btn {
  position: relative;
  height: 54px;
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #86ff21 0%, var(--accent) 55%, var(--accent-deep) 100%);
  color: #050800;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(118, 255, 3, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s var(--ease-apple), box-shadow 0.25s var(--ease-apple), filter 0.2s ease, background 0.25s ease;
  margin-top: 4px;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(118, 255, 3, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  filter: brightness(1.03);
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.985);
}

.submit-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.submit-btn--waitlist {
  background: linear-gradient(180deg, #ffb340 0%, var(--amber) 60%, #e68900 100%);
  box-shadow: 0 10px 30px rgba(255, 159, 10, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.submit-btn--waitlist:hover:not(:disabled) {
  box-shadow: 0 14px 36px rgba(255, 159, 10, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.submit-btn__spinner {
  display: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2.4px solid rgba(0, 0, 0, 0.22);
  border-top-color: #000000;
  animation: spin 0.75s linear infinite;
}

.submit-btn.is-loading .submit-btn__spinner {
  display: inline-block;
}

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

.privacy-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Success Confirmation View
   ========================================================================== */

.success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  animation: fadeSlideIn 0.38s var(--ease-apple);
}

.success-view[hidden] {
  display: none;
}

.success-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 0 36px rgba(118, 255, 3, 0.22);
}

.success-badge--waitlist {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--amber);
  box-shadow: 0 0 36px rgba(255, 159, 10, 0.22);
}

.success-badge svg {
  width: 32px;
  height: 32px;
}

.success-pill {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
}

.success-pill--waitlist {
  background: var(--amber-soft);
  color: var(--amber);
}

.success-title {
  font-size: 1.35rem;
  font-weight: 850;
  color: #ffffff;
}

.success-message {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #d4d4d8;
  max-width: 38ch;
}

.receipt {
  width: 100%;
  margin-top: 6px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.receipt__row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.receipt__key {
  color: var(--text-tertiary);
}

.receipt__val {
  color: var(--text-primary);
  font-weight: 700;
}

.receipt__val--code {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.success-event-reminder {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 0.77rem;
  color: var(--text-secondary);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.secondary-btn {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

/* ==========================================================================
   Footer & Animations
   ========================================================================== */

.footer {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--text-tertiary);
}

.footer span:first-child {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}

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

/* Mobile Fine-Tuning */
@media (max-width: 480px) {
  .brand-lockup {
    gap: 14px;
  }

  .logo-frame {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .glass-card {
    padding: 20px 18px;
    border-radius: 24px;
  }

  .gender-grid {
    gap: 10px;
  }

  .gender-option {
    padding: 12px 12px;
  }
}

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