/* app.css — Voyageur PWA Global Styles */

/* ── Reset ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── Root variables ──────────────────────────────────────────────────────────── */
:root {
  --navy:        #042C53;
  --navy-mid:    #0C447C;
  --navy-light:  #185FA5;
  --navy-pale:   #E6F1FB;
  --red:         #CC2936;
  --cream:       #F9F7F4;
  --cream-dark:  #F0EDE8;
  --text:        #2C2C2A;
  --text-muted:  #888780;
  --border:      #D3D1C7;
  --white:       #FFFFFF;

  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans:  'Raleway', system-ui, sans-serif;

  --sat: env(safe-area-inset-top,    0px);
  --sar: env(safe-area-inset-right,  0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left,   0px);
}

html, body {
  height: 100%;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

/* ── App root ────────────────────────────────────────────────────────────────── */
#app {
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ── Screen base ─────────────────────────────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  animation: screenFadeIn 0.22s ease forwards;
}

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

.screen--navy  { background: var(--navy);  color: var(--cream); }
.screen--cream { background: var(--cream); color: var(--text);  }

/* ── Typography ──────────────────────────────────────────────────────────────── */
.t-display {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
}

.t-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Form elements ───────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

.form-input.is-error { border-color: var(--red); }

.form-input--password { padding-right: 48px; }

.password-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.form-error {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--red);
  margin-top: 6px;
  display: none;
}

.form-error.visible { display: block; }

.form-hint {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s, transform 0.1s, background 0.15s;
  -webkit-appearance: none;
  text-decoration: none;
}

.btn:active:not(:disabled) { transform: scale(0.98); }

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

.btn--primary {
  background: var(--navy);
  color: var(--cream);
}

.btn--primary:hover:not(:disabled) { background: var(--navy-mid); }

.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--outline:hover:not(:disabled) { background: var(--cream-dark); }

.btn--ghost {
  background: none;
  border: none;
  color: var(--navy-light);
  font-weight: 500;
  font-size: 14px;
  padding: 10px;
  width: auto;
}

.btn--sm {
  padding: 11px 20px;
  font-size: 14px;
  border-radius: 10px;
}

/* ── Spinner ─────────────────────────────────────────────────────────────────── */
.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

.spinner--dark {
  border-color: rgba(4,44,83,0.2);
  border-top-color: var(--navy);
}

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

/* ── Divider ─────────────────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-sans);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Alert ───────────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-sans);
  line-height: 1.5;
  margin-bottom: 20px;
  display: none;
}

.alert.visible { display: block; }

.alert--error {
  background: #FCEBEB;
  color: #A32D2D;
  border: 1px solid #F09595;
}

.alert--success {
  background: #EAF3DE;
  color: #3B6D11;
  border: 1px solid #97C459;
}

/* ── Checkbox ────────────────────────────────────────────────────────────────── */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

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

.checkbox-group label {
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group a {
  color: var(--navy-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Splash screen ───────────────────────────────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: calc(var(--sat) + 24px) 32px calc(var(--sab) + 24px);
  transition: opacity 0.4s ease;
}

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

.splash-wordmark {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  color: #85B7EB;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.splash-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
  text-align: center;
  margin-bottom: 48px;
}

.splash-title em {
  font-style: italic;
  color: #B5D4F4;
}

.splash-loader {
  display: flex;
  gap: 8px;
  align-items: center;
}

.splash-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #378ADD;
  animation: pulse 1.2s ease-in-out infinite;
}

.splash-dot:nth-child(2) { animation-delay: 0.2s; }
.splash-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40%            { opacity: 1;   transform: scale(1);   }
}

/* ── Update & offline banners ────────────────────────────────────────────────── */
#update-banner {
  display: none;
  position: fixed;
  bottom: calc(var(--sab) + 70px);
  left: 16px;
  right: 16px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  font-family: var(--font-sans);
  line-height: 1.4;
  z-index: 9998;
  align-items: center;
  gap: 12px;
}

#update-banner.visible { display: flex; }
#update-banner span    { flex: 1; }

#update-banner button {
  background: var(--cream);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
}

#offline-banner {
  display: none;
  position: fixed;
  top: calc(var(--sat) + 8px);
  left: 16px;
  right: 16px;
  background: #3B6D11;
  color: #EAF3DE;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-family: var(--font-sans);
  text-align: center;
  z-index: 9997;
}

#offline-banner.visible { display: block; }

/* ── Onboarding ──────────────────────────────────────────────────────────────── */
.onboarding {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--sat) + 16px);
  padding-bottom: calc(var(--sab) + 24px);
  min-height: 100%;
}

.onboarding__topbar {
  display: flex;
  justify-content: flex-end;
  padding: 0 24px 0;
  margin-bottom: 8px;
}

.onboarding__skip {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #85B7EB;
  cursor: pointer;
  padding: 8px;
}

.onboarding__slides {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.onboarding__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 36px;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  transform: translateX(100%);
  opacity: 0;
}

.onboarding__slide.is-active {
  transform: translateX(0);
  opacity: 1;
}

.onboarding__slide.is-prev {
  transform: translateX(-100%);
  opacity: 0;
}

.onboarding__icon-wrap {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  flex-shrink: 0;
}

.onboarding__heading {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 16px;
}

.onboarding__sub {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #85B7EB;
  line-height: 1.65;
  max-width: 300px;
}

.onboarding__footer {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.onboarding__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.onboarding__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.25s, width 0.25s;
}

.onboarding__dot.is-active {
  background: var(--cream);
  width: 20px;
  border-radius: 3px;
}

.onboarding__btn {
  width: 100%;
  padding: 15px;
  background: var(--cream);
  color: var(--navy);
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.onboarding__btn:active { transform: scale(0.98); }

/* ── Auth screens ────────────────────────────────────────────────────────────── */
.auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--sat) + 24px) 24px calc(var(--sab) + 32px);
  min-height: 100%;
}

.auth__back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0 24px;
  align-self: flex-start;
}

.auth__wordmark {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.auth__heading {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 8px;
}

.auth__sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.auth__form { flex: 1; }

.auth__footer {
  text-align: center;
  padding-top: 20px;
}

.auth__footer-text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
}

.auth__footer-link {
  color: var(--navy-light);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 14px;
  font-family: var(--font-sans);
  padding: 0;
}

.auth__footer-link:hover { text-decoration: underline; }

.auth__forgot {
  display: block;
  text-align: right;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--navy-light);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: -8px;
  margin-bottom: 20px;
}

/* Social login buttons */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text);
  cursor: not-allowed;
  opacity: 0.5;
  margin-bottom: 10px;
}

.social-btn__badge {
  font-size: 10px;
  background: var(--cream-dark);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Success state */
.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
  gap: 16px;
}

.success-state__icon {
  width: 64px;
  height: 64px;
  background: #EAF3DE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-state__heading {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--navy);
}

.success-state__text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

/* Home placeholder (Stage 6) */
.home-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  gap: 12px;
}

.home-placeholder__heading {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--cream);
}

.home-placeholder__sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #85B7EB;
  line-height: 1.6;
}

/* ── Bottom navigation ────────────────────────────────────────────────────── */
.has-nav { padding-bottom: calc(70px + var(--sab)); }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(60px + var(--sab));
  padding-bottom: var(--sab);
  background: var(--white);
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 100;
}

.bottom-nav__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  color: var(--text-muted);
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__tab.is-active { color: var(--navy); }

.bottom-nav__label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

/* ── Home screen ──────────────────────────────────────────────────────────── */
.home-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(var(--sat) + 20px);
}

.home-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 24px 16px;
}

.home-header__wordmark {
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.home-header__greeting {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
}

/* ── Plan badge ───────────────────────────────────────────────────────────── */
.plan-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.plan-badge--demo     { background: #F1EFE8; color: #5F5E5A; }
.plan-badge--voyageur { background: #E6F1FB; color: #0C447C; }
.plan-badge--premium  { background: #FAEEDA; color: #633806; }

/* ── Generation counter ───────────────────────────────────────────────────── */
.home-gens {
  padding: 0 24px 16px;
}

.gens-text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
}

.gens-text--empty {
  color: var(--red);
  font-weight: 500;
}

/* ── Primary CTA ──────────────────────────────────────────────────────────── */
.home-cta {
  padding: 0 24px 16px;
}

.home-cta__btn {
  border-radius: 16px;
  padding: 17px 20px;
  font-size: 16px;
}

/* ── Seasonal prompt ──────────────────────────────────────────────────────── */
.home-seasonal {
  margin: 0 24px 24px;
  padding: 12px 16px;
  background: var(--navy-pale);
  border-radius: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.home-seasonal__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.home-seasonal__text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--navy-mid);
  line-height: 1.5;
}

/* ── Section headings ─────────────────────────────────────────────────────── */
.home-section {
  margin-bottom: 28px;
}

.home-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 24px 14px;
}

.home-section__heading {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
}

.home-section__count {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
}

.home-section__link {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--navy-light);
  cursor: pointer;
  padding: 0;
}

/* ── Regions grid ─────────────────────────────────────────────────────────── */
.regions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 24px;
}

.region-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}

.region-card:active { background: var(--cream-dark); }

.region-card__name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
}

.region-card__sub {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.region-card__arrow {
  position: absolute;
  top: 14px;
  right: 12px;
  color: var(--border);
}

/* ── Walking tour cards ───────────────────────────────────────────────────── */
.tours-row {
  display: flex;
  gap: 12px;
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tours-row::-webkit-scrollbar { display: none; }

.tour-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--navy);
  border: none;
  border-radius: 16px;
  padding: 18px 16px;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tour-card--soon { opacity: 0.6; cursor: default; }

.tour-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B5D4F4;
}

.tour-card__name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
}

.tour-card__meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #85B7EB;
}

.tour-card__badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.tour-card__badge--available { background: rgba(234,243,222,0.15); color: #C0DD97; }
.tour-card__badge--soon      { background: rgba(255,255,255,0.08); color: #85B7EB; }

/* ── Profile screen ───────────────────────────────────────────────────────── */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--sat) + 32px) 24px 24px;
  gap: 10px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-email {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
}

.profile-plan-card {
  margin: 0 24px 20px;
  background: var(--navy);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-plan-card__label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #85B7EB;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.profile-plan-card__tier {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--cream);
}

.profile-plan-card__gens {
  text-align: center;
}

.profile-plan-card__gen-count {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--cream);
  line-height: 1;
}

.profile-plan-card__gen-label {
  font-family: var(--font-sans);
  font-size: 10px;
  color: #85B7EB;
  line-height: 1.4;
  margin-top: 2px;
}

.profile-section { margin-bottom: 20px; }

.profile-section__heading {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 24px 8px;
}

.profile-section__group {
  background: var(--white);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 24px;
  background: none;
  border: none;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  text-align: left;
  transition: background 0.1s;
}

.profile-row:last-child { border-bottom: none; }
.profile-row:active     { background: var(--cream-dark); }

.profile-row span { flex: 1; }

.profile-row__chevron { color: var(--border); flex-shrink: 0; }

/* ── Activate code modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,44,83,0.5);
  display: flex;
  align-items: flex-end;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 28px 24px calc(var(--sab) + 28px);
  width: 100%;
  animation: slideUp 0.25s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0);    }
}

.modal__heading {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
}

.modal__sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
