:root {
  --brand: #6b5bfb;
  --brand-accent: #ff7a59;
  --success: #34d399;
  --bg: #0f1021;
  --fg: #f8fafc;
  --muted: #94a3b8;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 9999px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
}

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

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

.text-muted {
  color: var(--muted);
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #0f1021 0%, #1a0b2e 50%, #16213e 100%);
}

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

.bg-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(107, 91, 251, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 122, 89, 0.1) 0%,
      transparent 50%
    );
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.container,
.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.site-nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
  z-index: 50;
  background: rgba(15, 16, 33, 0.8);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 91, 251, 0.4);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle-line {
  width: 20px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.is-menu-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.is-menu-open .nav-toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.is-menu-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  padding: 5rem 0 2rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-content .kicker {
  display: inline-block;
  background: rgba(107, 91, 251, 0.1);
  color: var(--brand);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(107, 91, 251, 0.2);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--fg), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.countdown-widget {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
}

.countdown-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(60px, 1fr));
  gap: 1rem;
}

.countdown-item {
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.countdown-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.countdown-unit {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle, rgba(107, 91, 251, 0.2), transparent);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 3rem;
  text-align: center;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-accent));
  color: #fff;
  box-shadow: 0 15px 40px rgba(107, 91, 251, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-dynamic {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: var(--muted);
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s,
    transform 0.2s;
}

.btn-dynamic.btn-ready {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-accent));
  box-shadow: 0 12px 30px rgba(107, 91, 251, 0.3);
}

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

.btn-dynamic.btn-ready:hover {
  transform: translateY(-2px);
}

.btn-link {
  background: transparent;
  border: none;
  padding: 0;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--brand-accent);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.6;
}

.btn:focus-visible {
  outline: 2px solid rgba(107, 91, 251, 0.8);
  outline-offset: 2px;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}

.glass-card.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 25px rgba(107, 91, 251, 0.35);
}

main > section:not(:last-child) {
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group--wide {
  grid-column: 1 / -1;
}

.center-btn {
  text-align: center;
  margin-top: 2rem;
}

.progress-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  text-align: center;
}

.progress-pill {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-pill--active,
.progress-pill[data-complete="true"] {
  border-color: var(--brand);
  color: var(--fg);
  background: rgba(107, 91, 251, 0.18);
}

.progress-pill[data-complete="true"]::after {
  content: " ✓";
}

.locale-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--fg);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.step-card--active {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .step-card--active {
    grid-column: span 1;
  }
}

.step-card--compact {
  justify-content: space-between;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.step-copy {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.step-number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(107, 91, 251, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.form-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label--row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.required-indicator {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--brand-accent);
  text-transform: uppercase;
}

.form-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 2px rgba(107, 91, 251, 0.2);
}

.form-select-wrapper {
  position: relative;
}

.form-select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-select {
  appearance: none;
  padding-right: 3rem;
  cursor: pointer;
  color: var(--fg);
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02)
    ),
    rgba(15, 16, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-select:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.form-select option {
  background: #0f1021;
  color: var(--fg);
}

.seeking-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.seeking-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}

.letter-helper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-status {
  color: var(--brand);
  min-height: 1rem;
  margin-top: 0.25rem;
}

.form-status.is-error {
  color: var(--brand-accent);
}

.modal-error {
  color: var(--brand-accent);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.verify-flow-message {
  margin: 1rem 0 0.5rem;
}

.verify-card[data-verify-state="sent"] #verify-flow-message {
  color: var(--brand);
}

.verify-card[data-verify-state="verified"] #verify-flow-message {
  color: #34d399;
}

.verify-card[data-verify-state="verified"] {
  border-color: rgba(34, 197, 94, 0.4);
}

.seeking-option.is-active {
  border-color: rgba(107, 91, 251, 0.8);
  background: rgba(107, 91, 251, 0.12);
}

.seeking-option input {
  accent-color: var(--brand);
}

.seeking-option input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.seeking-option input:checked + span {
  color: #fff;
  font-weight: 600;
}

.stats-section,
.faq-section {
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-leaderboard {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stat-leaderboard li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.95rem;
}

.stat-leaderboard li:last-child {
  border-bottom: none;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.stat-card--wide {
  grid-column: span 3;
}

@media (max-width: 900px) {
  .stat-card--wide {
    grid-column: span 1;
  }
}

.stat-emoji {
  font-size: 2rem;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.stat-label {
  color: var(--muted);
  margin-top: 0.25rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: var(--brand);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  color: var(--muted);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
  margin-top: 0.75rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.privacy-card {
  margin-top: 2rem;
}

.concept-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem 0 4rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--card-shadow);
}

.metric-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
}

.metric-trend {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
}

.metric-trend-line {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.metric-trend--up {
  color: var(--success);
}

.metric-trend--down {
  color: var(--brand-accent);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.data-table--compact {
  table-layout: fixed;
}

.data-table--compact th,
.data-table--compact td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-checkbox {
  width: 32px;
  text-align: center;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.table-actions-left,
.table-actions-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.table-actions input[type="search"],
.table-actions select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  color: var(--fg);
  padding: 0.4rem 1rem;
}

.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.table-pagination .page-controls {
  display: flex;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.badge-warning {
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
}

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

.stat-leaderboard button.link {
  background: none;
  border: none;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.2s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.modal-panel {
  position: relative;
  background: rgba(15, 16, 33, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: min(420px, 92vw);
  box-shadow: var(--card-shadow);
  z-index: 1;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.modal-extra {
  margin-top: 1rem;
}

.modal-extra.hidden {
  display: none;
}

.modal-form .form-group {
  margin-bottom: 1rem;
}

.modal-status {
  margin-top: 0.5rem;
  min-height: 1.25rem;
}

.admin-session-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.session-status {
  font-weight: 600;
}

.session-hint {
  font-size: 0.9rem;
  color: var(--muted);
}

.token-saved-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  margin-bottom: 0.5rem;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.modal-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.location-picker {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 520px;
}

.location-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.location-input-row .form-input {
  flex: 1;
}

.location-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: rgba(15, 16, 33, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  max-height: 260px;
  overflow-y: auto;
  z-index: 10;
}

.location-results.hidden {
  display: none;
}

.location-option {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.65rem 0.9rem;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
}

.location-option:hover,
.location-option:focus {
  background: rgba(255, 255, 255, 0.05);
}

.location-option strong {
  font-size: 0.95rem;
}

.location-option span {
  font-size: 0.85rem;
  color: var(--muted);
}

.location-selection {
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.25rem;
}

.selector-summary {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.selector-summary--incomplete {
  border-color: var(--brand-accent);
  background: rgba(255, 122, 89, 0.1);
}

.selector-summary--complete {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}

.selector-line {
  margin: 0;
  font-size: 0.95rem;
}

.selector-line strong {
  font-weight: 600;
}

.selector-copy {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.selector-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.selector-status.is-error {
  color: var(--brand-accent);
}

.selector-summary--complete .selector-status {
  color: #34d399;
}

.status-icon {
  font-weight: 700;
}

.status-icon::before {
  content: "!";
}

.selector-summary--complete .status-icon::before {
  content: "✓";
}

.selector-summary--complete .status-icon {
  color: #34d399;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(80px, 1fr));
  }

  .form-grid-modern {
    grid-template-columns: 1fr;
  }
}

/* --- Carousel steps experience --- */
#how .section-header {
  margin-bottom: var(--space-xl);
}

#how .section-header h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--fg), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#how .section-header p {
  color: var(--muted);
  font-size: 1.1rem;
}

#how .progress-indicator {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-md) var(--space-sm);
  flex-wrap: wrap;
}

#how .progress-pill {
  position: relative;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  outline: none;
  font: inherit;
}

#how .progress-pill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

#how .progress-pill:last-child::after {
  display: none;
}

#how .progress-pill--active {
  background: rgba(107, 91, 251, 0.2);
  border-color: var(--brand);
  color: var(--fg);
  font-weight: 600;
  transform: scale(1.05);
}

#how .progress-pill--complete {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--success);
  color: var(--success);
}

#how .progress-pill:focus-visible {
  outline: 2px solid rgba(107, 91, 251, 0.8);
  outline-offset: 2px;
}

.pill-check {
  display: none;
  font-weight: 700;
}

.progress-pill--complete .pill-check {
  display: inline;
}

.carousel-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: var(--space-md) 3rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y;
}

.carousel-panel {
  flex: 0 0 100%;
  padding: 0 var(--space-md);
  opacity: 0.3;
  transform: scale(0.95);
  transition: all 0.5s ease;
}

.carousel-panel.active {
  opacity: 1;
  transform: scale(1);
}

#how .glass-card {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.carousel-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 40px rgba(107, 91, 251, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.carousel-card.complete {
  border-color: var(--success);
  background: rgba(52, 211, 153, 0.05);
}

.step-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.step-header h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.step-header .step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.carousel-card.complete .step-number {
  background: linear-gradient(135deg, var(--success), #10b981);
}

.form-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-description {
  color: var(--muted);
  margin-bottom: var(--space-xl);
}

.form-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.match-preferences-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
}

.seeking-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.seeking-option {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

.seeking-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.seeking-option.selected {
  border-color: var(--brand);
  background: rgba(107, 91, 251, 0.15);
  color: var(--fg);
}

.char-counter {
  text-align: right;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: var(--space-xs);
}

.carousel-indicator {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  backdrop-filter: blur(10px);
  color: var(--fg);
  transform-origin: center;
}

.carousel-indicator.prev {
  left: 10px;
}

.carousel-indicator.next {
  right: 10px;
}

.carousel-indicator:hover:not(.disabled) {
  background: rgba(107, 91, 251, 0.2);
  border-color: var(--brand);
  transform: scale(1.1);
}

.carousel-indicator.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.dot.active {
  background: var(--brand);
  transform: scale(1.3);
}

.dot.complete {
  background: var(--success);
}

.completion-card {
  text-align: center;
  padding: var(--space-2xl);
}

.celebration-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.completion-stats {
  margin: var(--space-xl) 0;
}

.completion-stats .stat-item {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-section {
  margin-top: var(--space-xl);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.share-buttons .btn {
  min-width: 180px;
}

.share-feedback {
  margin-top: var(--space-sm);
  text-align: center;
  min-height: 1.25rem;
}

@media (max-width: 768px) {
  .site-nav .nav-content {
    flex-wrap: wrap;
    padding: 1rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .carousel-wrapper {
    max-width: none;
    width: calc(100% + 2rem);
    margin-left: -1rem;
  }

  .carousel-container {
    padding: var(--space-md) 1rem var(--space-lg);
  }

  .carousel-panel {
    padding: 0;
  }

  .carousel-indicator {
    width: 48px;
    height: 48px;
  }

  .carousel-indicator.prev {
    left: 18px;
  }

  .carousel-indicator.next {
    right: 18px;
  }

  #how .progress-indicator {
    gap: var(--space-sm);
  }

  #how .progress-pill {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8rem;
  }

  #how .progress-pill::after {
    display: none;
  }

  .completion-card {
    padding: var(--space-xl);
  }

  .share-buttons .btn {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .carousel-indicator.prev {
    left: 10px;
  }

  .carousel-indicator.next {
    right: 10px;
  }
}

@media (min-width: 1025px) {
  .carousel-panel {
    flex: 0 0 70%;
  }

  .carousel-track {
    padding: 0 15%;
  }

  .carousel-panel:not(.active) {
    opacity: 0.5;
    transform: scale(0.85);
  }
}
