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

:root {
  --accent:      #ff6565;
  --accent-soft: rgba(255, 101, 101, 0.10);
  --bg:          #f2f2f7;
  --bg2:         #ffffff;
  --label:       #1c1c1e;
  --label2:      #3a3a3c;
  --label3:      #636366;
  --label4:      #aeaeb2;
  --separator:   rgba(60, 60, 67, 0.18);
  --fill:        rgba(120, 120, 128, 0.12);
  --font:        -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

html[data-theme="dark"] {
  --bg:        #000000;
  --bg2:       #1c1c1e;
  --label:     #ffffff;
  --label2:    rgba(235,235,245,0.92);
  --label3:    rgba(235,235,245,0.60);
  --label4:    rgba(235,235,245,0.30);
  --separator: rgba(84,84,88,0.65);
  --fill:      rgba(118,118,128,0.24);
}

html, body { height: 100%; }

/* ── Material Symbols ───────────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--label);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation Bar ─────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
  padding-top: 10px;
  background: rgba(242,242,247,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--separator);
}

html[data-theme="dark"] .navbar { background: rgba(0,0,0,0.85); }

.navbar-inner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.navbar-back {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  min-width: 90px;
}
.navbar-back.visible { opacity: 1; pointer-events: auto; }
.navbar-back svg { width: 9px; height: 16px; margin-right: 2px; }

.navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.navbar-logo-wrap {
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 24px;
  width: auto;
  display: block;
}

/* Light theme → dark logo */
.navbar-logo-dark  { display: block; }
.navbar-logo-light { display: none; }

/* Dark theme → light logo */
html[data-theme="dark"] .navbar-logo-dark  { display: none; }
html[data-theme="dark"] .navbar-logo-light { display: block; }

.navbar-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--label);
  white-space: nowrap;
}

.navbar-right {
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.navbar-counter {
  font-size: 15px;
  font-weight: 500;
  color: var(--label3);
  font-variant-numeric: tabular-nums;
}

.theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--fill);
  color: var(--label2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.theme-btn:hover { background: var(--separator); }
.theme-btn svg { width: 16px; height: 16px; pointer-events: none; }
.theme-btn .icon-sun  { display: none; }
.theme-btn .icon-moon { display: block; }
html[data-theme="dark"] .theme-btn .icon-sun  { display: block; }
html[data-theme="dark"] .theme-btn .icon-moon { display: none; }

/* ── Page wrapper ───────────────────────────────────────── */
.page {
  width: 100%;
  max-width: 680px;
  padding: 0 22px 64px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Views ──────────────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; }
#view-question.active,
#view-purchase.active,
#view-paywall.active  { display: flex; flex-direction: column; flex: 1; }

/* ── Category view heading ──────────────────────────────── */
.large-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  padding: 48px 6px 6px;
  line-height: 1.15;
}

.subtitle {
  font-size: 15px;
  color: var(--label3);
  padding: 0 6px 24px;
  line-height: 1.5;
}

/* ── Home Banners ────────────────────────────────────────── */
.home-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: 8px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background:
    url('../assets/couple_background.png') center / cover no-repeat;
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 190px;
}

.home-banner:first-child { margin-top: 14px; }
.home-banner:active { opacity: 0.88; transform: scale(0.99); transition: transform 0.1s, opacity 0.1s; }

.home-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12,12,16,0.80) 0%, rgba(12,12,16,0.60) 100%);
}

.home-banner-overlay-dim {
  background: linear-gradient(160deg, rgba(12,12,16,0.88) 0%, rgba(12,12,16,0.75) 100%);
}

.home-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px;
  gap: 12px;
  color: #fff;
}

.home-banner-left { flex: 1; min-width: 0; }

.home-banner-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 5px;
}

.home-banner-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.home-banner-desc {
  font-size: 13px;
  opacity: 0.72;
  line-height: 1.45;
}

.home-banner-chevron {
  font-size: 28px;
  opacity: 0.55;
  flex-shrink: 0;
}

.home-banner-soon .home-banner-title,
.home-banner-soon .home-banner-desc { opacity: 0.55; }

.home-banner-soon-chip {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.80);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 99px;
  flex-shrink: 0;
}

/* ── Card Game View ──────────────────────────────────────── */
.cardgame-hero {
  display: flex;
  justify-content: center;
  padding: 20px 0 8px;
}

.cardgame-random-btn {
  background: var(--accent) !important;
  border-color: transparent !important;
  color: #fff;
  font-size: 16px;
  padding: 13px 28px;
}

.cardgame-random-btn:hover { background: #e0245e !important; }

/* ── Physical View ──────────────────────────────────────── */
.physical-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px 48px;
  gap: 16px;
}

.physical-icon {
  font-size: 52px;
  color: var(--label3);
  margin-bottom: 4px;
}

.physical-soon-chip {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
}

.physical-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--label);
  margin: 0;
}

.physical-desc {
  font-size: 15px;
  color: var(--label3);
  line-height: 1.55;
  max-width: 320px;
}

.physical-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
  max-width: 340px;
}

.physical-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--label2);
}

.physical-feature .material-symbols-outlined {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Hero Banner ─────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(160deg, rgba(15,15,18,0.82) 0%, rgba(15,15,18,0.65) 100%),
    url('../assets/couple_background.png') center / cover no-repeat;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 36px 28px 32px;
  margin: 18px 0 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,101,101,0.13) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Physical Card Game Banner ──────────────────────────── */
.physical-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: 8px 0 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background:
    linear-gradient(160deg, rgba(15,15,18,0.90) 0%, rgba(15,15,18,0.78) 100%),
    url('../assets/couple_background.png') center / cover no-repeat;
  border: 1px solid rgba(255,255,255,0.08);
}

.physical-banner:active { opacity: 0.88; transform: scale(0.99); transition: transform 0.1s, opacity 0.1s; }

.physical-banner-overlay {
  position: absolute;
  inset: 0;
}

.physical-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  gap: 12px;
  color: #fff;
}

.physical-banner-left { flex: 1; min-width: 0; }

.physical-banner-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 4px;
}

.physical-banner-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  opacity: 0.65;
  margin-bottom: 3px;
}

.physical-banner-desc {
  font-size: 13px;
  opacity: 0.42;
}

.physical-banner-soon-chip {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.60);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  flex-shrink: 0;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(30px, 7vw, 38px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 14px;
  opacity: 0.82;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.38);
  color: #fff;
  border-radius: 99px;
  padding: 11px 22px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.hero-btn:hover  { background: rgba(255,255,255,0.32); }
.hero-btn:active { transform: scale(0.97); }
.hero-btn .material-symbols-outlined { font-size: 18px; }

.hero-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.30);
  color: rgba(255,255,255,0.75);
  border-radius: 99px;
  padding: 11px 22px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.hero-btn-secondary:hover  { border-color: rgba(255,255,255,0.55); color: #fff; }
.hero-btn-secondary:active { transform: scale(0.97); }

/* ── Category list ──────────────────────────────────────── */
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.cat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 0.5px solid var(--separator);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.cat-row:last-child { border-bottom: none; }
.cat-row:active { background: var(--fill); }

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.cat-icon .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.cat-text { flex: 1; min-width: 0; }

.cat-name {
  font-size: 17px;
  font-weight: 500;
  color: var(--label);
  margin-bottom: 1px;
}

.cat-desc {
  font-size: 13px;
  color: var(--label3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.cat-count {
  font-size: 15px;
  color: var(--label4);
  font-variant-numeric: tabular-nums;
}

.cat-chevron { color: var(--label4); }
.cat-chevron svg { width: 7px; height: 12px; display: block; }

/* ── Question view ──────────────────────────────────────── */
.q-section {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Progress */
.progress-track {
  width: 100%;
  height: 3px;
  background: var(--separator);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 32px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card */
.q-card {
  background: var(--bg2);
  border-radius: 24px;
  padding: 44px 32px 40px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.09);
  min-height: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.q-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--accent-soft);
  pointer-events: none;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card-anim { animation: cardIn 0.28s cubic-bezier(0.34, 1.2, 0.64, 1) both; }

.q-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.q-pill-icon {
  font-size: 15px;
  color: var(--accent);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.qlist-title-icon {
  font-size: 30px;
  vertical-align: middle;
  color: var(--accent);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.q-text {
  font-size: clamp(18px, 3.5vw, 23px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.3px;
  color: var(--label);
  position: relative;
  z-index: 1;
}

/* Nav row */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 26px;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--bg2);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: background 0.15s, color 0.15s,
              transform 0.15s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.15s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn svg { width: 10px; height: 18px; pointer-events: none; }

.nav-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 18px rgba(255,101,101,0.28);
}

.nav-btn:active:not(:disabled) { transform: scale(0.93); }

.nav-btn:disabled {
  color: var(--label4);
  box-shadow: none;
  cursor: default;
}

.shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 99px;
  border: none;
  background: none;
  color: var(--label4);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.shuffle-btn:hover  { color: var(--label3); }
.shuffle-btn:active { transform: scale(0.97); }

.shuffle-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* Dots */
.dot-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 22px;
  padding: 0 4px;
}

/* Couple banner inside question view */
.q-couple-banner {
  background: linear-gradient(160deg, #212128 0%, #18181b 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px 18px;
  margin-top: 36px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.12s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.q-couple-banner:hover  { background: linear-gradient(160deg, #27272f 0%, #1e1e23 100%); }
.q-couple-banner:active { transform: scale(0.98); }

.q-couple-banner-icon {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.q-couple-banner-text { flex: 1; }

.q-couple-banner-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 1px;
}

.q-couple-banner-sub {
  font-size: 12px;
  opacity: 0.55;
}

.q-couple-banner-chevron {
  font-size: 20px;
  opacity: 0.4;
  flex-shrink: 0;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--separator);
  cursor: pointer;
  transition: background 0.2s, width 0.25s cubic-bezier(0.4,0,0.2,1);
  -webkit-tap-highlight-color: transparent;
}

.dot.active {
  background: var(--accent);
  width: 20px;
}

/* ── Category count done ─────────────────────────────────── */
.cat-count.all-done { color: #34c759; font-weight: 600; }

/* ── Question List View ──────────────────────────────────── */
.progress-summary {
  font-size: 14px;
  color: var(--label3);
  padding: 0 6px 16px;
}

.q-list {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.q-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  border-bottom: 0.5px solid var(--separator);
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.q-list-row:last-child { border-bottom: none; }
.q-list-row:active { background: var(--fill); }

.q-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.q-check.done {
  background: var(--accent);
  border-color: var(--accent);
}

.q-check svg { display: none; width: 10px; height: 8px; }
.q-check.done svg { display: block; }

.q-list-num {
  font-size: 13px;
  color: var(--label4);
  font-variant-numeric: tabular-nums;
  min-width: 18px;
  flex-shrink: 0;
}

.q-list-text {
  flex: 1;
  font-size: 15px;
  color: var(--label);
  line-height: 1.35;
}

.q-list-row.done .q-list-text { color: var(--label3); }

.q-list-chevron { color: var(--label4); flex-shrink: 0; }
.q-list-chevron svg { width: 7px; height: 12px; display: block; }

/* ── Complete button ─────────────────────────────────────── */
.complete-btn {
  flex: 1;
  height: 50px;
  border-radius: 99px;
  border: 1.5px solid var(--separator);
  background: transparent;
  color: var(--label3);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.complete-btn:hover { border-color: var(--accent); color: var(--accent); }

.complete-btn.done {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.complete-btn svg { width: 14px; height: 11px; pointer-events: none; flex-shrink: 0; }

/* ── Profile navbar button ───────────────────────────────── */
.profile-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--fill);
  color: var(--label2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.profile-btn:hover { background: var(--separator); }
.profile-btn svg { width: 16px; height: 16px; pointer-events: none; }

.profile-btn-initials {
  position: absolute; inset: 0;
  background: var(--accent);
  color: #fff;
  font-size: 13px; font-weight: 700;
  display: none;
  align-items: center; justify-content: center;
  border-radius: 50%;
  pointer-events: none;
}

.profile-btn.logged-in .profile-btn-initials { display: flex; }
.profile-btn.logged-in .profile-icon { display: none; }

.profile-btn-premium-dot {
  position: absolute; bottom: 0; right: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(135deg, #ff6565, #ff6565);
  border: 1.5px solid var(--bg);
  display: none;
}

.profile-btn.premium .profile-btn-premium-dot { display: block; }

/* ── Premium active badge (category view) ────────────────── */
.premium-active-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, rgba(255,101,101,0.10), rgba(255,101,101,0.10));
  color: var(--accent);
  border: 1px solid rgba(255,101,101,0.20);
  border-radius: 99px;
  padding: 6px 14px;
  margin: -8px 6px 18px;
  width: fit-content;
}

.premium-active-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── PRO category badge ──────────────────────────────────── */
.cat-pro-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ff6565, #ff6565);
  color: #fff; border-radius: 99px; padding: 4px 10px;
  flex-shrink: 0;
}

.cat-row-pro .cat-icon { filter: saturate(1.2); }

/* ── Lock icon in question list ──────────────────────────── */
.q-lock {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--fill);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.q-lock svg { width: 10px; height: 12px; color: var(--label4); }

.q-list-row.locked { opacity: 0.65; }
.q-list-row.locked .q-list-num { color: var(--label4); }

.q-blur-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
}

.q-blur-line {
  display: block;
  height: 11px;
  border-radius: 99px;
  background: var(--separator);
}

/* ── Auth screen ─────────────────────────────────────────── */
.auth-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 0 48px;
}

.auth-hero {
  width: 100%;
  background:
    linear-gradient(160deg, rgba(12,12,15,0.78) 0%, rgba(12,12,15,0.58) 100%),
    url('../assets/couple_background.png') center / cover no-repeat;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 36px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #fff;
}

.auth-hero-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.auth-hero-tagline {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.auth-subheading {
  font-size: 15px; color: var(--label3);
  text-align: center; line-height: 1.5;
  margin-bottom: 24px; max-width: 280px;
}

.auth-tabs {
  display: flex; background: var(--fill);
  border-radius: 10px; padding: 3px;
  margin-bottom: 24px; width: 100%;
}

.auth-tab {
  flex: 1; padding: 8px;
  border: none; border-radius: 8px;
  background: transparent; color: var(--label3);
  font-family: var(--font); font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background 0.18s, color 0.18s;
}

.auth-tab.active {
  background: var(--bg2); color: var(--label);
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.auth-form { width: 100%; display: flex; flex-direction: column; gap: 14px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }

.auth-label {
  font-size: 13px; font-weight: 500;
  color: var(--label2); padding-left: 2px;
}

.auth-input {
  width: 100%; padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--separator);
  background: var(--bg2); color: var(--label);
  font-family: var(--font); font-size: 16px;
  outline: none; box-sizing: border-box;
  transition: border-color 0.18s;
}

.auth-input:focus { border-color: var(--accent); }

/* ── Auth USPs ───────────────────────────────────────────── */
.auth-usps {
  list-style: none;
  width: 100%;
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.auth-usp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 0.5px solid var(--separator);
}

.auth-usp:last-child { border-bottom: none; }

.auth-usp-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-usp-check svg { width: 10px; height: 8px; }

.auth-usp-text {
  font-size: 15px;
  color: var(--label);
  text-align: left;
  line-height: 1.35;
}

.auth-marketing-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--fill);
  border-radius: 10px;
  cursor: pointer;
  margin-top: 2px;
}

.auth-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

.auth-marketing-text {
  font-size: 13px;
  color: var(--label3);
  line-height: 1.45;
}

.auth-submit-btn {
  width: 100%; padding: 14px;
  border-radius: 12px; border: none;
  background: var(--accent); color: #fff;
  font-family: var(--font); font-size: 16px; font-weight: 600;
  cursor: pointer; margin-top: 8px;
  transition: opacity 0.15s;
}

.auth-submit-btn:hover  { opacity: 0.88; }
.auth-submit-btn:active { opacity: 0.72; }

.auth-error {
  font-size: 14px;
  color: #ff3b30;
  background: rgba(255,59,48,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 12px 0 0;
  width: 100%;
  text-align: center;
  line-height: 1.4;
}

.auth-divider {
  font-size: 13px; color: var(--label4);
  margin: 18px 0 0; text-align: center;
}

.auth-skip-btn {
  background: none; border: none;
  color: var(--accent);
  font-family: var(--font); font-size: 15px;
  cursor: pointer; padding: 10px; margin-top: 2px;
}

/* ── Profile screen ──────────────────────────────────────── */
.profile-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 0 40px;
}

.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(255,101,101,0.25);
}

.profile-name  { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; color: var(--label); margin-bottom: 4px; }
.profile-email { font-size: 15px; color: var(--label3); margin-bottom: 14px; }

.profile-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 22px;
}

.profile-badge.free    { background: var(--fill); color: var(--label3); }
.profile-badge.premium { background: linear-gradient(135deg,#ff6565,#ff6565); color: #fff; }

.profile-upgrade-btn {
  width: 100%; padding: 14px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--accent), #ff6565);
  color: #fff; font-family: var(--font); font-size: 16px; font-weight: 600;
  cursor: pointer; margin-bottom: 24px;
  transition: opacity 0.15s;
}

.profile-upgrade-btn:hover { opacity: 0.88; }

.profile-section {
  width: 100%; background: var(--bg2);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.profile-section-title {
  font-size: 12px; font-weight: 600; color: var(--label3);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 12px 16px 6px;
}

.profile-stat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 0.5px solid var(--separator);
}

.profile-stat-row:last-child { border-bottom: none; }
.profile-stat-label { font-size: 15px; color: var(--label); }
.profile-stat-value { font-size: 15px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }

.profile-logout-btn {
  width: 100%; padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--separator);
  background: transparent; color: #ff3b30;
  font-family: var(--font); font-size: 16px; font-weight: 500;
  cursor: pointer; margin-top: 8px;
  transition: background 0.15s;
}

.profile-logout-btn:hover { background: rgba(255,59,48,0.07); }

.profile-quiz-test-btn {
  width: 100%; padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--separator);
  background: transparent; color: var(--accent);
  font-family: var(--font); font-size: 15px; font-weight: 500;
  cursor: pointer; margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s;
}

.profile-quiz-test-btn:hover { background: var(--fill); }
.profile-quiz-test-btn .material-symbols-outlined { font-size: 20px; }

/* ── Paywall screen ──────────────────────────────────────── */
.paywall-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  flex: 1;
  padding: 36px 0 48px; text-align: center;
}

.paywall-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.paywall-icon svg { width: 34px; height: 34px; color: var(--accent); }

.paywall-heading {
  font-size: 26px; font-weight: 700; letter-spacing: -0.4px;
  color: var(--label); margin-bottom: 10px;
}

.paywall-desc {
  font-size: 16px; color: var(--label3); line-height: 1.5;
  margin-bottom: 28px; max-width: 300px;
}

.paywall-features {
  list-style: none; width: 100%; padding: 0; margin: 0 0 28px;
  background: var(--bg2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.paywall-feature {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-bottom: 0.5px solid var(--separator);
}

.paywall-feature:last-child { border-bottom: none; }

.paywall-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.paywall-check svg { width: 10px; height: 8px; }

.paywall-feature-text { font-size: 15px; color: var(--label); text-align: left; }

.paywall-cta-btn {
  width: 100%; padding: 15px;
  border-radius: 14px; border: none;
  background: linear-gradient(135deg, var(--accent), #ff8585);
  color: #fff; font-family: var(--font); font-size: 17px; font-weight: 600;
  cursor: pointer; margin-bottom: 12px;
  box-shadow: 0 4px 18px rgba(255,101,101,0.28);
  transition: opacity 0.15s, transform 0.12s;
}

.paywall-cta-btn:hover  { opacity: 0.90; }
.paywall-cta-btn:active { transform: scale(0.98); }

.paywall-login-btn {
  background: none; border: none;
  color: var(--accent);
  font-family: var(--font); font-size: 15px;
  cursor: pointer; padding: 8px;
}

/* ── Purchase screen ─────────────────────────────────────── */
.purchase-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  flex: 1;
  padding: 32px 0 48px; text-align: center;
}

.purchase-icon {
  width: 80px; height: 80px; border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), #ff6565);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 6px 24px rgba(255,101,101,0.28);
}

.purchase-badge {
  font-size: 12px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}

.purchase-title {
  font-size: 34px; font-weight: 800; letter-spacing: -0.6px;
  color: var(--label); margin: 0 0 8px;
}

.purchase-price {
  font-size: 52px; font-weight: 800; letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--accent), #ff6565);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
  margin-bottom: 6px;
}

.purchase-period { font-size: 14px; color: var(--label3); margin-bottom: 28px; }

.purchase-btn {
  width: 100%; padding: 16px; border-radius: 14px; border: none;
  background: linear-gradient(135deg, var(--accent), #ff6565);
  color: #fff; font-family: var(--font); font-size: 17px; font-weight: 700;
  cursor: pointer; margin-bottom: 10px;
  box-shadow: 0 6px 24px rgba(255,101,101,0.28);
  transition: opacity 0.15s, transform 0.12s;
}

.purchase-btn:hover  { opacity: 0.90; }
.purchase-btn:active { transform: scale(0.98); }

.purchase-legal { font-size: 12px; color: var(--label4); margin: 0; }

.purchase-success-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: #34c759;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: #fff;
  margin-bottom: 18px;
  animation: successPop 0.45s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.purchase-success-title {
  font-size: 26px; font-weight: 700; letter-spacing: -0.4px;
  color: var(--label); margin-bottom: 8px;
}

.purchase-success-desc {
  font-size: 16px; color: var(--label3); line-height: 1.5; margin-bottom: 28px;
}

.purchase-success-btn {
  width: 100%; padding: 14px; border-radius: 12px; border: none;
  background: #34c759; color: #fff;
  font-family: var(--font); font-size: 16px; font-weight: 600;
  cursor: pointer; transition: opacity 0.15s;
}

.purchase-success-btn:hover { opacity: 0.88; }

/* ── Couple Page Banner (home screen) ───────────────────── */
.couple-banner {
  background: linear-gradient(160deg, #212128 0%, #18181b 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px 22px;
  margin: 24px 0 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.couple-banner:hover  { background: linear-gradient(160deg, #27272f 0%, #1e1e23 100%); }
.couple-banner:active { transform: scale(0.98); }

.couple-banner-icon {
  font-size: 24px;
  color: var(--accent);
}

.couple-banner-text { flex: 1; }

.couple-banner-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 3px;
}

.couple-banner-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.3;
}

.couple-banner-chevron {
  font-size: 20px;
  color: rgba(255,255,255,0.25);
}

/* ── Profile couple button ───────────────────────────────── */
.profile-couple-btn {
  width: 100%; padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--separator);
  background: var(--bg2); color: var(--label);
  font-family: var(--font); font-size: 16px; font-weight: 500;
  cursor: pointer; margin-bottom: 12px;
  transition: background 0.15s;
}
.profile-couple-btn:hover { background: var(--fill); }

.profile-analytics-btn {
  width: 100%; padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--separator);
  background: var(--bg2); color: var(--label);
  font-family: var(--font); font-size: 16px; font-weight: 500;
  cursor: pointer; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s;
}
.profile-analytics-btn .material-symbols-outlined { font-size: 20px; color: var(--accent); }
.profile-analytics-btn:hover { background: var(--fill); }

/* ── Couple edit mode ────────────────────────────────────── */

/* View mode (default): hide all edit controls */
#view-couple:not(.couple-editing) .couple-edit-zone { display: none !important; }

/* Edit mode: hide view-only content */
#view-couple.couple-editing .couple-view-zone { display: none !important; }

/* Edit button in navbar */
.couple-edit-btn {
  background: none;
  border: 1.5px solid var(--separator);
  border-radius: 20px;
  color: var(--accent);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 5px 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.couple-edit-btn:hover { background: var(--fill); }

.couple-edit-btn.couple-edit-btn-done {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Story read-only view (inside card) */
.couple-story-view {
  font-size: 15px;
  color: var(--label2);
  line-height: 1.6;
  white-space: pre-wrap;
  padding: 16px 16px 14px;
  margin: 0;
}

.couple-story-view.couple-story-empty {
  color: var(--label4);
  font-style: italic;
}

/* ── Couple Page ─────────────────────────────────────────── */
.couple-hero {
  background: linear-gradient(160deg, #212128 0%, #18181b 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 36px 24px 32px;
  margin: 20px 0 0;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.couple-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,101,101,0.14) 0%, transparent 65%);
  pointer-events: none;
}

.couple-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(120,58,237,0.10) 0%, transparent 65%);
  pointer-events: none;
}

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

.couple-hero-icon {
  font-size: 52px;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  animation: floatIcon 3.5s ease-in-out infinite;
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 48;
}

.couple-hero-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.couple-hero-sub {
  font-size: 14px;
  opacity: 0.82;
  position: relative;
  z-index: 1;
}

.couple-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 5px 13px;
  transition: color 0.15s, background 0.15s;
  position: relative;
  z-index: 1;
}
.couple-preview-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* ── Hero cover image ──────────────────────────────────────── */
.couple-cover-img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  border-radius: inherit;
}
.couple-cover-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.62) 100%);
  z-index: 1;
  border-radius: inherit;
}
.couple-hero.has-cover .couple-cover-img    { display: block; }
.couple-hero.has-cover .couple-cover-overlay { display: block; }

/* hide glow blobs when cover is shown */
.couple-hero.has-cover::before,
.couple-hero.has-cover::after { display: none; }

/* bump all hero content above the overlay */
.couple-hero-icon,
.couple-hero-title,
.couple-hero-sub,
.couple-preview-link,
.couple-names-edit,
.couple-cover-edit { position: relative; z-index: 2; }

/* ── Name inputs ───────────────────────────────────────────── */
.couple-names-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.couple-name-input {
  min-width: 0;
  width: 110px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 8px 10px;
  text-align: center;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.couple-name-input::placeholder { color: rgba(255,255,255,0.38); }
.couple-name-input:focus {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.18);
}
.couple-names-sep {
  font-size: 20px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
}

/* ── Cover photo edit controls ─────────────────────────────── */
.couple-cover-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.couple-cover-add-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.couple-cover-add-label:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.couple-cover-remove-btn {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,100,100,0.85);
  border: 1px solid rgba(255,100,100,0.28);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.couple-hero.has-cover .couple-cover-remove-btn { display: inline-flex; }
.couple-cover-remove-btn:hover {
  background: rgba(255,60,60,0.12);
  color: #ff4444;
}

.couple-section { margin-top: 40px; }

.couple-section-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--label);
  padding: 0 4px 12px;
}

/* Date card */
.couple-date-card {
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.couple-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--separator);
}

.couple-date-rowlabel {
  font-size: 15px;
  color: var(--label);
}

.couple-date-input {
  border: none;
  background: transparent;
  color: var(--accent);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  text-align: right;
}

.couple-counter {
  padding: 22px 16px 18px;
  text-align: center;
}

.couple-counter-main {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), #ff6565);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.couple-counter-sub {
  font-size: 14px;
  color: var(--label3);
}

/* Goals */
.couple-goals {
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 12px;
}

.couple-goals-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--label4);
  font-size: 14px;
  line-height: 1.6;
}

.couple-goal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--separator);
  -webkit-tap-highlight-color: transparent;
}

.couple-goal-row:last-child { border-bottom: none; }

.couple-goal-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--separator);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.couple-goal-check.done {
  background: var(--accent);
  border-color: var(--accent);
}

.couple-goal-check svg { display: none; width: 10px; height: 8px; }
.couple-goal-check.done svg { display: block; }

.couple-goal-text {
  flex: 1;
  font-size: 15px;
  color: var(--label);
  line-height: 1.4;
}

.couple-goal-row.done .couple-goal-text {
  color: var(--label3);
  text-decoration: line-through;
}

.couple-goal-delete {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--label4);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.couple-goal-delete:hover  { color: #ff3b30; background: rgba(255,59,48,0.08); }
.couple-goal-delete svg { width: 12px; height: 13px; pointer-events: none; }

.couple-add-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.couple-goal-input {
  flex: 1;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--separator);
  background: var(--bg2);
  color: var(--label);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s;
}

.couple-goal-input:focus { border-color: var(--accent); }

.couple-add-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.15s, transform 0.12s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.couple-add-btn:hover  { opacity: 0.88; }
.couple-add-btn:active { transform: scale(0.93); }
.couple-add-btn svg { width: 14px; height: 14px; pointer-events: none; }

/* ── Our Story ───────────────────────────────────────────── */
.couple-story-card {
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.couple-story-textarea {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--label);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  padding: 16px 16px 8px;
  outline: none;
  resize: none;
  overflow: hidden;
  display: block;
  min-height: 120px;
  box-sizing: border-box;
}

.couple-story-textarea::placeholder { color: var(--label4); }

.couple-story-counter {
  font-size: 12px;
  color: var(--label4);
  text-align: right;
  padding: 4px 14px 10px;
}

/* ── Timeline ────────────────────────────────────────────── */
.couple-timeline {
  position: relative;
  padding-left: 0;
  margin-bottom: 12px;
}

.couple-tl-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--label4);
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg2);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.couple-tl-list {
  position: relative;
}

.couple-tl-event {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 46px;
}

.couple-tl-event::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 30px;
  bottom: -10px;
  width: 2px;
  background: var(--separator);
}

.couple-tl-event:last-child::before { display: none; }

.couple-tl-dot {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(255,101,101,0.18);
  flex-shrink: 0;
}

.couple-tl-content {
  flex: 1;
  background: var(--bg2);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  min-width: 0;
}

.couple-tl-date {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2px;
}

.couple-tl-title {
  font-size: 15px;
  color: var(--label);
  font-weight: 500;
}

.couple-tl-desc {
  font-size: 13px;
  color: var(--label3);
  line-height: 1.5;
  margin-top: 4px;
}

.couple-tl-delete {
  background: none; border: none;
  color: var(--label4);
  cursor: pointer;
  padding: 6px; margin-top: 2px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.couple-tl-delete:hover { color: #ff3b30; background: rgba(255,59,48,0.08); }
.couple-tl-delete svg { width: 10px; height: 10px; pointer-events: none; }

.couple-tl-add-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: 12px;
  border: 1.5px dashed var(--separator);
  background: transparent;
  color: var(--label3);
  font-family: var(--font); font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.couple-tl-add-btn:hover { border-color: var(--accent); color: var(--accent); }
.couple-tl-add-btn svg { width: 14px; height: 14px; pointer-events: none; }

/* Add event form */
.couple-event-form {
  background: var(--bg2);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 12px;
}

.couple-event-form-row {
  display: flex; gap: 10px;
}

.couple-event-emoji-input {
  width: 54px; flex-shrink: 0;
  padding: 11px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--separator);
  background: var(--bg);
  color: var(--label);
  font-size: 20px; text-align: center;
  outline: none;
  transition: border-color 0.18s;
}

.couple-event-emoji-input:focus { border-color: var(--accent); }

.couple-event-title-input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--separator);
  background: var(--bg);
  color: var(--label);
  font-family: var(--font); font-size: 15px;
  outline: none;
  transition: border-color 0.18s;
}

.couple-event-title-input:focus { border-color: var(--accent); }

.couple-event-date-full {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--separator);
  background: var(--bg);
  color: var(--label);
  font-family: var(--font); font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s;
}

.couple-event-date-full:focus { border-color: var(--accent); }

.couple-event-form-actions {
  display: flex; gap: 10px;
}

.couple-event-cancel-btn {
  flex: 1; padding: 11px;
  border-radius: 10px;
  border: 1.5px solid var(--separator);
  background: transparent;
  color: var(--label3);
  font-family: var(--font); font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
}

.couple-event-cancel-btn:hover { background: var(--fill); }

.couple-event-save-btn {
  flex: 1; padding: 11px;
  border-radius: 10px; border: none;
  background: var(--accent); color: #fff;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: opacity 0.15s;
}

.couple-event-save-btn:hover { opacity: 0.88; }

/* ── Photo Gallery ───────────────────────────────────────── */
.couple-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}

.couple-photo-item {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: var(--fill);
}

.couple-photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.couple-photo-delete {
  position: absolute;
  top: 5px; right: 5px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: none; color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.couple-photo-item:hover .couple-photo-delete { opacity: 1; }
.couple-photo-delete svg { width: 9px; height: 9px; pointer-events: none; }

@media (hover: none) {
  .couple-photo-delete { opacity: 1; }
}

.couple-photo-add-label {
  display: flex;
  align-items: center; justify-content: center;
  gap: 8px;
  width: 100%; padding: 13px;
  border-radius: 12px;
  border: 1.5px dashed var(--separator);
  background: transparent;
  color: var(--label3);
  font-family: var(--font); font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  box-sizing: border-box;
}

.couple-photo-add-label:hover { border-color: var(--accent); color: var(--accent); }
.couple-photo-add-label svg { width: 18px; height: 18px; pointer-events: none; }

/* ── Spotify ─────────────────────────────────────────────── */
.couple-spotify-card {
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.couple-spotify-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--separator);
}

.couple-spotify-input-row:last-child { border-bottom: none; }

.couple-spotify-icon { width: 22px; height: 22px; color: #1DB954; flex-shrink: 0; }

.couple-spotify-url-input {
  flex: 1; border: none; background: transparent;
  color: var(--label);
  font-family: var(--font); font-size: 15px;
  outline: none; min-width: 0;
}

.couple-spotify-url-input::placeholder { color: var(--label4); }

#couple-spotify-embed iframe {
  width: 100%; height: 152px;
  border: none; display: block;
}

.couple-spotify-link-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  color: #1DB954; text-decoration: none;
  font-size: 15px; font-weight: 600;
  border-top: 0.5px solid var(--separator);
  transition: opacity 0.15s;
}

.couple-spotify-link-btn:hover { opacity: 0.80; }

/* ── Countdown Events ────────────────────────────────────── */
.couple-countdown-card {
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 10px;
}

.couple-countdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.couple-countdown-emoji {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.couple-countdown-info {
  flex: 1;
  min-width: 0;
}

.couple-countdown-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--label);
  line-height: 1.2;
}

.couple-countdown-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  margin-top: 5px;
}

.couple-countdown-badge.future {
  background: rgba(255,101,101,0.12);
  color: var(--accent);
}

.couple-countdown-badge.today {
  background: rgba(52,211,153,0.15);
  color: #10b981;
}

.couple-countdown-badge.past {
  background: var(--fill);
  color: var(--label3);
}

.couple-countdown-delete {
  width: 30px; height: 30px;
  border: none; background: none;
  color: var(--label4);
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.couple-countdown-delete:hover { color: #ff3b30; background: rgba(255,59,48,0.08); }
.couple-countdown-delete svg { width: 12px; height: 12px; pointer-events: none; }

.couple-countdown-desc {
  font-size: 14px;
  color: var(--label3);
  line-height: 1.5;
  padding: 10px 16px 14px;
  border-top: 0.5px solid var(--separator);
}

.couple-countdown-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--label4);
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg2);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 10px;
}

.couple-countdown-add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px dashed var(--separator);
  background: none;
  color: var(--label3);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  transition: border-color 0.15s, color 0.15s;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.couple-countdown-add-btn:hover { border-color: var(--accent); color: var(--accent); }
.couple-countdown-add-btn svg { width: 14px; height: 14px; pointer-events: none; }

.couple-countdown-form {
  background: var(--bg2);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.couple-countdown-desc-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--separator);
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  resize: none;
  box-sizing: border-box;
  min-height: 60px;
  transition: border-color 0.18s;
}

.couple-countdown-desc-input:focus { border-color: var(--accent); }
.couple-countdown-desc-input::placeholder { color: var(--label4); }

/* ── Auth Intro (full-screen onboarding) ────────────────── */
#view-auth-intro.active {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
}

.auth-intro-bg {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 56px 28px 40px;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.75) 60%, rgba(0,0,0,0.88) 100%),
    url('../assets/couple_background.png') center / cover no-repeat;
}

.auth-intro-logo {
  height: 26px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  align-self: flex-start;
  margin-bottom: auto;
}

.auth-intro-body {
  padding-top: 48px;
  margin-bottom: 36px;
}

.auth-intro-title {
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 14px;
}

.auth-intro-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  margin-bottom: 32px;
}

.auth-intro-usps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-intro-usp {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
}

.auth-intro-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.auth-intro-check svg { width: 10px; height: 8px; }

.auth-intro-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-intro-register-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: #fff;
  color: #1c1c1e;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
}

.auth-intro-register-btn:hover  { opacity: 0.9; }
.auth-intro-register-btn:active { transform: scale(0.98); }

.auth-intro-login-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: transparent;
  color: rgba(255,255,255,0.88);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.auth-intro-login-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* ── Startup Quiz ────────────────────────────────────────── */
#view-quiz.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.quiz-wrap {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#quiz-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0;
}

#quiz-question-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quiz-question-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 32px;
}

#quiz-result-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0;
}

/* Welcome */
.quiz-welcome-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,101,101,0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 8px auto 20px;
}

.quiz-welcome-icon .material-symbols-outlined {
  font-size: 36px;
  color: var(--accent);
}

.quiz-welcome-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--label);
  letter-spacing: -0.5px;
  text-align: center;
  margin: 0 0 12px;
}

.quiz-welcome-desc {
  font-size: 15px;
  color: var(--label3);
  line-height: 1.65;
  text-align: center;
  margin: 0 0 32px;
}

.quiz-start-btn {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
  margin-bottom: 12px;
}

.quiz-start-btn:hover  { opacity: 0.88; }
.quiz-start-btn:active { transform: scale(0.98); }

.quiz-skip-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: none;
  color: var(--label4);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s;
}

.quiz-skip-btn:hover { color: var(--label3); }

/* Question */
.quiz-progress-bar {
  height: 4px;
  background: var(--separator);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.quiz-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--label4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.quiz-question-text {
  font-size: 19px;
  font-weight: 700;
  color: var(--label);
  line-height: 1.45;
  letter-spacing: -0.2px;
  margin: 0 0 24px;
}

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

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--separator);
  background: var(--bg2);
  color: var(--label);
  font-family: var(--font);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.quiz-option-btn:hover { border-color: var(--accent); }
.quiz-option-btn:active { transform: scale(0.98); }

.quiz-option-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.quiz-option-icon {
  font-size: 26px;
  flex-shrink: 0;
  transition: color 0.15s;
}

.quiz-option-label {
  flex: 1;
  line-height: 1.35;
}

/* Result */
.quiz-result-icon {
  text-align: center;
  margin: 8px 0 16px;
}

.quiz-result-smiley {
  font-size: 80px;
}

.quiz-result-band {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 6px;
}

.quiz-result-score {
  font-size: 14px;
  color: var(--label4);
  text-align: center;
  margin-bottom: 20px;
}

.quiz-result-summary {
  font-size: 15px;
  color: var(--label3);
  line-height: 1.65;
  text-align: center;
  background: var(--bg2);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 28px;
}

.quiz-done-btn {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
}

.quiz-done-btn:hover  { opacity: 0.88; }
.quiz-done-btn:active { transform: scale(0.98); }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  font-size: 11px;
  color: var(--label4);
  text-align: center;
  padding: 6px 16px 28px;
  letter-spacing: 0.2px;
}

.footer-text { margin-bottom: 6px; }

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--label4);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

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

.footer-sep { color: var(--label4); opacity: 0.5; }

/* ── Legal Pages ─────────────────────────────────────────── */
.legal-wrap {
  max-width: 680px;
  padding-bottom: 48px;
}

.legal-h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--label);
  letter-spacing: -0.5px;
  margin: 0 0 24px;
}

.legal-h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--label);
  margin: 24px 0 6px;
}

.legal-p {
  font-size: 14px;
  color: var(--label3);
  line-height: 1.7;
  margin: 0 0 10px;
}

.legal-ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.legal-ul li {
  font-size: 14px;
  color: var(--label3);
  line-height: 1.7;
  margin-bottom: 4px;
}

.legal-link {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

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

.legal-meta {
  color: var(--label4);
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 20px;
}

.legal-contact {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 0.5px solid var(--separator);
}

/* ── Quick links row (home screen) ─────────────────────── */
.quick-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.quick-link {
  flex: 1;
  background: var(--bg2);
  border-radius: 16px;
  padding: 18px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, transform 0.12s;
}

.quick-link:hover  { background: var(--fill); }
.quick-link:active { transform: scale(0.95); }

.quick-link-icon {
  font-size: 26px;
  color: var(--accent);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.quick-link-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--label2);
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.1px;
}

/* ── Info teaser (home screen) ──────────────────────────── */
.info-teaser {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  background: var(--bg2);
  border-radius: 14px;
  margin: 26px 0 0;
  cursor: pointer;
  color: var(--label2);
  font-size: 14px;
  font-weight: 500;
  border: none;
  font-family: var(--font);
  width: 100%;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.info-teaser:hover { background: var(--fill); }
.info-teaser:active { background: var(--separator); }
.info-teaser-icon { font-size: 18px; color: var(--accent); flex-shrink: 0; }
.info-teaser-label { flex: 1; }
.info-teaser-chevron { font-size: 18px; color: var(--label4); flex-shrink: 0; }

/* ── Info page ──────────────────────────────────────────── */
.info-hero {
  background:
    linear-gradient(160deg, rgba(15,15,18,0.86) 0%, rgba(15,15,18,0.72) 100%),
    url('../assets/couple_background.png') center / cover no-repeat;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 32px 24px 28px;
  margin: 16px 0 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.info-hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,101,101,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.info-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
}
.info-title {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.18;
  margin-bottom: 14px;
}
.info-lead {
  font-size: 14px;
  opacity: 0.78;
  line-height: 1.6;
  margin-bottom: 22px;
}
.info-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 99px;
  padding: 12px 26px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.info-cta-btn:hover  { opacity: 0.88; }
.info-cta-btn:active { transform: scale(0.97); }
.info-trust {
  font-size: 12px;
  opacity: 0.48;
  line-height: 1.5;
  margin: 0;
}

/* Sections */
.info-block { margin-top: 56px; }

.info-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 11px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.info-block-title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: var(--label);
  margin-bottom: 16px;
}
.info-block-text {
  font-size: 15px;
  color: var(--label2);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* Bullet list */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.info-list-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  color: var(--label2);
  line-height: 1.6;
}
.info-list-item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

/* Callouts */
.info-callout {
  background: linear-gradient(160deg, #212128, #18181b);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 20px 22px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  line-height: 1.45;
}
.info-callout-strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* Benefits */
.info-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-benefit {
  background: var(--bg2);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.info-benefit-icon {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.info-benefit-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--label);
  margin-bottom: 3px;
}
.info-benefit-desc {
  font-size: 13px;
  color: var(--label3);
  line-height: 1.5;
}

/* Rules */
.info-rules {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.info-rule {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.info-rule-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-rule-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--label);
  margin-bottom: 2px;
}
.info-rule-desc {
  font-size: 13px;
  color: var(--label3);
  line-height: 1.5;
}

/* Mini ritual */
.info-ritual {
  background: linear-gradient(160deg, #212128, #18181b);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 22px 20px;
}
.info-ritual-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.info-ritual-steps {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.info-ritual-step {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
}
.info-ritual-step span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,101,101,0.18);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Audience */
.info-audience {
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
}
.info-audience-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border-bottom: 0.5px solid var(--separator);
}
.info-audience-item:last-child { border-bottom: none; }
.info-audience-item .material-symbols-outlined {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.info-audience-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--label);
  margin-bottom: 1px;
}
.info-audience-desc { font-size: 13px; color: var(--label3); }

/* Example questions */
.info-q-group { margin-bottom: 24px; }
.info-q-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--label4);
  margin-bottom: 8px;
  padding: 0 2px;
}
.info-q-card {
  background: var(--bg2);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--label);
  line-height: 1.5;
  margin-bottom: 8px;
  border-left: 3px solid var(--accent-soft);
}

/* Conflict questions */
.info-conflict-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-conflict-q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg2);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--label2);
  line-height: 1.5;
}
.info-conflict-q span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* FAQ */
.info-faq {
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
}
.info-faq-item { border-bottom: 0.5px solid var(--separator); }
.info-faq-item:last-child { border-bottom: none; }
.info-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--label);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  gap: 8px;
}
.info-faq-q::-webkit-details-marker { display: none; }
.info-faq-q::after {
  content: 'expand_more';
  font-family: 'Material Symbols Outlined';
  font-size: 20px;
  color: var(--label4);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  transition: transform 0.2s;
  flex-shrink: 0;
}
details[open] .info-faq-q::after { transform: rotate(180deg); }
.info-faq-a {
  padding: 2px 18px 20px;
  font-size: 14px;
  color: var(--label3);
  line-height: 1.65;
}

/* Final CTA */
.info-final-cta {
  background:
    linear-gradient(160deg, rgba(15,15,18,0.86) 0%, rgba(15,15,18,0.72) 100%),
    url('../assets/couple_background.png') center / cover no-repeat;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 44px 28px;
  margin-top: 56px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.info-final-cta::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,101,101,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.info-final-title {
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.22;
  margin-bottom: 10px;
}
.info-final-sub {
  font-size: 14px;
  opacity: 0.68;
  line-height: 1.5;
  margin-bottom: 24px;
}
.info-final-btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 99px;
  padding: 13px 30px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
}
.info-final-btn:hover  { opacity: 0.88; }
.info-final-btn:active { transform: scale(0.97); }


/* ── Analytics View ──────────────────────────────────────── */

.analytics-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.analytics-stat-card {
  background: var(--bg2);
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
}

.analytics-stat-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--label);
  line-height: 1.1;
}

.analytics-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--label3);
  margin-top: 5px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.analytics-section {
  margin-top: 40px;
}

.analytics-section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--label);
  margin-bottom: 16px;
}

/* Category progress rows */
.analytics-cat-row {
  background: var(--bg2);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.analytics-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.analytics-cat-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--label);
}

.analytics-cat-name .material-symbols-outlined {
  font-size: 18px;
  color: var(--accent);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
}

.analytics-cat-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--label3);
}

.analytics-bar-track {
  height: 5px;
  background: var(--fill);
  border-radius: 99px;
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}

/* Heatmap */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 12px;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heatmap-cell.level-0 { background: var(--fill); }
.heatmap-cell.level-1 { background: rgba(255, 101, 101, 0.22); }
.heatmap-cell.level-2 { background: rgba(255, 101, 101, 0.55); }
.heatmap-cell.level-3 { background: rgba(255, 101, 101, 0.88); }

.heatmap-cell.today {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.heatmap-num {
  font-size: 11px;
  font-weight: 500;
  color: var(--label3);
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.heatmap-cell.level-1 .heatmap-num,
.heatmap-cell.level-2 .heatmap-num,
.heatmap-cell.level-3 .heatmap-num { color: #fff; }

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: flex-end;
  margin-top: 6px;
}

.heatmap-legend-label {
  font-size: 11px;
  color: var(--label4);
}

.heatmap-legend-cells {
  display: flex;
  gap: 4px;
}

.heatmap-cell.small {
  width: 14px;
  height: 14px;
  aspect-ratio: auto;
  border-radius: 3px;
}

/* Bar chart */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 130px;
}

.chart-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.chart-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--label3);
  margin-bottom: 2px;
  line-height: 1;
}

.chart-bar {
  width: 100%;
  background: rgba(255, 101, 101, 0.30);
  border-radius: 4px 4px 2px 2px;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-bar.today { background: var(--accent); }

.chart-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--label4);
  margin-top: 6px;
  white-space: nowrap;
}

.chart-label.today {
  color: var(--accent);
  font-weight: 700;
}
