/* ============================================
   INTROWIZE — Shared Stylesheet
   Mobile-first matrimonial matching prototype
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

:root {
  /* Brand palette (Introwize) */
  --gold-light: #EECF6D;
  --gold-deep: #D5AC4E;
  --magenta: #BA0A90;
  --purple: #903EBD;

  /* Derived surfaces */
  --ink: #1A0E18;            /* near-black plum, primary text on light */
  --ink-soft: #5C4A57;       /* secondary text on light */
  --surface: #FFFBF4;        /* warm paper background */
  --surface-card: #FFFFFF;
  --surface-deep: #1A0E18;   /* dark surface for hero / nav */
  --line: #ECE1DD;
  --line-soft: rgba(26, 14, 24, 0.08);

  --gradient-brand: linear-gradient(135deg, var(--magenta) 0%, var(--purple) 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-deep) 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 2px 8px rgba(26, 14, 24, 0.05), 0 12px 28px -12px rgba(186, 10, 144, 0.18);
  --shadow-float: 0 18px 40px -16px rgba(144, 62, 189, 0.35);

  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
}

/* Mobile-first app frame. On wider viewports it sits centered like a phone. */
.app-frame {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  background: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 540px) and (max-width: 899px) {
  body { background: #F2ECE6; padding: 32px 0; }
  .app-frame {
    min-height: calc(100vh - 64px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 70px -20px rgba(26,14,24,0.35);
    border: 1px solid var(--line);
  }
}

/* ============================================
   DESKTOP / WIDE VIEWPORT LAYOUT (>= 900px)
   Auth & form screens: split layout with a
   brand panel on the left, content on the right.
   ============================================ */

.app-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.brand-aside { display: none; }

@media (min-width: 900px) {
  body { background: var(--surface); padding: 0; }

  .app-shell {
    max-width: 1180px;
    min-height: 100vh;
    align-items: stretch;
  }

  .app-shell.split {
    box-shadow: none;
  }

  .brand-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 42%;
    flex-shrink: 0;
    padding: 56px 48px;
    background: var(--surface-deep);
    background-image:
      radial-gradient(circle at 18% 14%, rgba(186,10,144,0.35), transparent 45%),
      radial-gradient(circle at 85% 80%, rgba(144,62,189,0.35), transparent 50%);
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  .brand-aside .logo { height: auto; }
  .brand-aside .aside-mid {
    margin-top: auto;
    margin-bottom: auto;
  }
  .brand-aside .aside-quote {
    font-size: 28px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
    max-width: 360px;
  }
  .brand-aside .aside-quote .accent { color: var(--gold-light); }
  .brand-aside .aside-foot {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .brand-aside .sparkle-deco {
    position: absolute;
    opacity: 0.5;
  }

  .app-frame {
    width: 58%;
    max-width: 560px;
    min-height: 100vh;
    margin: 0 auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }

  .screen-body { padding: 36px 56px 48px; justify-content: center; }
  .topbar { padding: 36px 56px 0; }
  .progress-track { padding: 0 56px; margin: 18px 0 0; max-width: 320px; }

  h1.headline { font-size: 32px; }
  p.subhead { font-size: 15.5px; max-width: 420px; }

  /* .cta-stack { max-width: 320px; } */
  .segmented, .stat-grid { max-width: 460px; }
}

/* ============================================
   DESKTOP DASHBOARD LAYOUT
   Persistent left sidebar + wide content grid
   ============================================ */

@media (min-width: 900px) {
  .app-shell.dashboard-shell {
    max-width: 1180px;
  }
  .app-shell.dashboard-shell .app-frame {
    width: 100%;
    max-width: none;
    flex-direction: row;
    min-height: 100vh;
  }

  .side-nav {
    display: flex;
    flex-direction: column;
    width: 220px;
    flex-shrink: 0;
    padding: 32px 20px;
    border-right: 1px solid var(--line);
    gap: 4px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
  }
  .side-nav .logo { height: auto; width: auto; margin: 4px 8px 15px; }
  .side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
  }
  .side-nav a svg { width: 19px; height: 19px; flex-shrink: 0; }
  .side-nav a.active { background: rgba(186,10,144,0.07); color: var(--magenta); }
  .side-nav .nav-spacer { flex: 1; }

  .dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .dash-header { padding: 32px 40px 0; }
  .greeting-block { padding: 18px 40px 4px; }
  .status-card { margin: 16px 40px 4px; max-width: 640px; }
  .section-row { padding: 26px 40px 12px; }
  .dash-scroll { padding-bottom: 40px; }

  .match-list {
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .bottom-nav { display: none; }
}

@media (min-width: 1180px) {
  .match-list { grid-template-columns: repeat(3, 1fr); }
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 8px;
}
.topbar .logo {
  height: 22px;
  display: none;
  width: auto;
}
.topbar .step-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--purple);
  background: rgba(144, 62, 189, 0.08);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.back-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  border: 1px solid var(--line);
  color: var(--ink);
  flex-shrink: 0;
}

/* ---------- Progress ---------- */
.progress-track {
  display: flex;
  gap: 6px;
  padding: 0 24px;
  margin: 14px 0 4px;
}
.progress-track span {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}
.progress-track span.done,
.progress-track span.active {
  background: var(--gradient-brand);
}

/* ---------- Content wrapper ---------- */
.screen-body {
  flex: 1;
  padding: 18px 24px 32px;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 8px;
}

h1.headline {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p.subhead {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
  font-weight: 400;
}

/* ---------- Form elements ---------- */
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.field .hint {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 6px;
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
  font-size: 14.5px;
}

input::placeholder, textarea::placeholder { color: #B7A6B0; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(144, 62, 189, 0.12);
}

.phone-row {
  display: flex;
  gap: 8px;
}
.phone-row .code {
  width: 84px;
  flex-shrink: 0;
  text-align: center;
  font-weight: 600;
}
.phone-row .number { flex: 1; }

/* Segmented control (groom / bride) */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.segmented label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  background: var(--surface-card);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented .opt-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.segmented .opt-sub {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 400;
}
.segmented input:checked + .opt-title,
.segmented label:has(input:checked) {
  border-color: var(--magenta);
  background: linear-gradient(180deg, rgba(186,10,144,0.06), rgba(144,62,189,0.06));
}
.segmented label:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-brand);
}
.segmented label:has(input:checked)::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 17px;
  width: 8px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
  z-index: 2;
}

/* ---------- Buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-float);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled {
  opacity: 0.45;
  box-shadow: none;
}
.btn-secondary {
  background: var(--surface-card);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost {
  background: transparent;
  color: var(--purple);
  font-weight: 700;
  padding: 12px;
}
.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
  width: auto;
}

.btn-row {
  display: flex;
  gap: 10px;
}
.btn-row .btn { flex: 1; }

.cta-stack {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  background: white;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Source tabs (profile creation) ---------- */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  background: rgba(26,14,24,0.04);
  padding: 4px;
  border-radius: var(--radius-pill);
}
.tabs button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 8px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.tabs button.active {
  background: var(--surface-card);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(26,14,24,0.08);
}

.source-panel { display: none; }
.source-panel.active { display: block; }

.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  padding: 22px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dropzone .icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.dropzone .dz-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.dropzone .dz-sub { font-size: 12px; color: var(--ink-soft); }

/* Chip list for links / uploaded files */
.chip-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.chip .chip-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(144,62,189,0.1);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chip .chip-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip .chip-remove {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1;
  padding: 4px;
}

/* Photo upload grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.photo-slot {
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line);
  background: var(--surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}
.photo-slot.filled {
  border-style: solid;
  border-color: transparent;
}
.photo-slot.filled img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .tag {
  position: absolute;
  bottom: 5px;
  left: 5px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(26,14,24,0.65);
  color: #fff;
  padding: 2px 6px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Card ---------- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

/* ---------- AI status / analysing ---------- */
.ai-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(186,10,144,0.07), rgba(144,62,189,0.07));
  border: 1px solid rgba(144,62,189,0.18);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.ai-banner .spark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-brand);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-banner .ai-text { font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.ai-banner .ai-text strong { font-weight: 700; }

/* ---------- Bottom nav (dashboard) ---------- */
.bottom-nav {
  display: flex;
  border-top: 1px solid var(--line);
  background: var(--surface-card);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 4px 0;
}
.bottom-nav a.active { color: var(--magenta); }
.bottom-nav a svg { width: 21px; height: 21px; }

/* ---------- Utility ---------- */
.center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.spacer { flex: 1; }
.mt-auto { margin-top: auto; }

.sparkle-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  margin-bottom: 18px;
}

::-webkit-scrollbar { width: 0; height: 0; }

.hidden { display: none !important; }

/* ---------- Follow-up question cards ---------- */
.question-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  margin-bottom: 14px;
}
.question-card .q-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(213,172,78,0.14);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.question-card .q-text {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 0 0 12px;
}
.question-card textarea {
  min-height: 80px;
  font-size: 13.5px;
}
.question-card .q-skip {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

.generate-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 18px;
}

.answer-block {
  margin-bottom: 16px;
}
.answer-block .a-q {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 4px;
}
.answer-block .a-text {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
}

/* ---------- Chat-style conversation (questions + review) ---------- */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.chat-turn {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 92%;
}
.chat-row.from-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-avatar.ai {
  background: var(--gradient-gold);
}
.chat-avatar.user {
  background: var(--gradient-brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}

.bubble {
  border-radius: 16px;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.bubble-ai {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}
.bubble-ai .b-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.bubble-ai .b-question {
  font-weight: 700;
  color: var(--ink);
}

.bubble-user-input {
  flex: 1;
  background: var(--surface-card);
  border: 1.5px solid var(--line);
  border-bottom-right-radius: 4px;
}
.bubble-user-input:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(144, 62, 189, 0.12);
}
.bubble-user-input textarea {
  border: none;
  padding: 0;
  min-height: 22px;
  font-size: 13.5px;
  line-height: 1.5;
  background: transparent;
}
.bubble-user-input textarea:focus { box-shadow: none; }

.bubble-user-answer {
  background: var(--gradient-brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.skip-note {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  padding-left: 38px;
}

.chat-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  padding-left: 38px;
}
.chat-divider span {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Help-note (LinkedIn / info accordion) ───────────────────────────────── */
.help-note {
  background: rgba(238, 207, 109, 0.15);
  border: 1px solid rgba(213, 172, 78, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 12.5px;
}
.help-note summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.help-note summary::-webkit-details-marker { display: none; }
.help-note summary::marker { display: none; }
.help-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gradient-gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
  line-height: 1; color: var(--ink);
}
.chevron { margin-left: auto; transition: transform 0.2s; flex-shrink: 0; color: var(--ink-soft); }
details[open] .chevron { transform: rotate(180deg); }
.help-body { margin-top: 10px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.6; }
.help-body ol { padding-left: 18px; margin: 8px 0 0; }
.help-body li { margin-bottom: 4px; }

/* Override: base .bottom-nav { display: flex } appears at line ~659 which is after
   the @media (min-width:900px) rule at line ~216, so the media query loses the cascade.
   Repeating it here ensures desktop always hides the bottom nav. */
@media (min-width: 900px) {
  .bottom-nav { display: none !important; }
}

/* ---------- Inline help / disclosure note ---------- */
.help-note {
  border: 1px solid rgba(213,172,78,0.4);
  background: rgba(238,207,109,0.14);
  border-radius: var(--radius-sm);
  margin-top: 10px;
  overflow: hidden;
}
.help-note summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.help-note summary::-webkit-details-marker { display: none; }
.help-note summary .help-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
}
.help-note summary .chevron {
  margin-left: auto;
  transition: transform 0.15s ease;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.help-note[open] summary .chevron { transform: rotate(180deg); }
.help-note .help-body {
  padding: 0 13px 13px 42px;
}
.help-note .help-body p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 8px;
}
.help-note .help-steps {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.help-note .help-steps li {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.45;
}
.help-note .help-steps li strong { font-weight: 700; }

/* ---------- Form sections (profile creation) ---------- */
.form-section {
  padding: 28px 0 8px;
}
.form-section + .form-section {
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.section-header .section-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-header h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.section-header-sub {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 22px 34px;
  line-height: 1.5;
}

/* ---------- Payment-pending banner (shown app-wide until membership is paid) ----------
   position:fixed takes it out of the document flow entirely, so it doesn't become an
   extra flex item inside body/.app-shell's centering layout (both are display:flex
   expecting a single child). html.has-payment-banner pushes .app-frame down by the
   banner's real rendered height (set as a CSS var by payment-banner.js) so it doesn't
   sit underneath the fixed bar. */
.payment-pending-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(213, 172, 78, 1.14);
  border-bottom: 1px solid rgba(213, 172, 78, 0.35);
  padding: 11px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.payment-pending-banner.visible { display: flex; }
html.has-payment-banner .app-frame { margin-top: var(--payment-banner-height, 44px); }
.payment-pending-banner .ppb-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
}
.payment-pending-banner .ppb-text { line-height: 1.4; }
