/* ── AOM PWA Stylesheet ─────────────────────────────────────────────── */

:root {
  --bg:         #F4EDE4;
  --surface:    #f7f7f9;
  --border:     #e8e8ed;
  --navy:       #1e2d5a;
  --navy-light: #2e4080;
  --gold:       #c9922a;
  --text:       #1e2d5a;
  --muted:      #8a90a2;
  --error:      #c0392b;
  --success:    #2e7d5e;
  --radius:     14px;
  --nav-band-bg: #F3ECDB;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

strong { font-weight: 600; }
em { font-style: italic; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
}

/* ── Logo ───────────────────────────────────────────────────────────── */

.logo-img {
  width: 180px;
  height: auto;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.logo-img-small {
  height: 60px;
  width: auto;
}

/* ── Install wall ───────────────────────────────────────────────────── */

#install-prompt {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 32px;
  text-align: center;
}

.install-logo {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.install-logo-a,
.install-logo-m {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.install-logo-gem { font-size: 34px; color: var(--gold); margin: 0 3px; line-height: 1; }

.install-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s ease forwards;
}

.install-card {
  width: 100%;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s ease forwards;
}

.install-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}

.install-card-sub {
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 24px;
}

#android-install-btn {
  display: none;
  width: 100%;
  padding: 15px;
  background: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

#android-install-btn:hover { background: var(--navy-light); }

#ios-install-steps { display: none; text-align: left; }

.install-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: steps;
}

.install-steps li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.5;
}

.install-steps li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
}

.install-steps strong { color: var(--navy); font-weight: 500; }

.install-share-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  vertical-align: middle;
  margin: 0 2px;
}

#desktop-install-msg { display: none; }

.install-url {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--navy);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.05em;
}

.install-arrow {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ── Auth ───────────────────────────────────────────────────────────── */

#auth-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 32px;
}

.auth-logo {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.auth-logo-a,
.auth-logo-m {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.auth-logo-mandala { font-size: 34px; color: var(--gold); margin: 0 3px; line-height: 1; }

.auth-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s ease forwards;
}

.auth-form {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s ease forwards;
}

.field input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.field input::placeholder { color: var(--text); }
.field input:focus { border-color: var(--navy); }

.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.btn-primary:hover { background: var(--navy-light); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.auth-note {
  font-size: 12px;
  color: var(--text);
  text-align: center;
  margin-top: 20px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s ease forwards;
}

#auth-error, #code-error {
  font-size: 12px;
  color: var(--error);
  text-align: center;
  min-height: 16px;
}

#code-verify {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#code-input {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-align: center;
  padding: 12px 16px;
  width: 200px;
}

#magic-sent {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

#magic-sent .sent-icon { font-size: 44px; margin-bottom: 4px; }

#magic-sent h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
}

#magic-sent p { font-size: 13px; color: var(--text); line-height: 1.65; max-width: 260px; }

/* ── Main app ───────────────────────────────────────────────────────── */

#main-app { display: none; flex-direction: column; flex: 1; overflow: hidden; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 11px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

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

.app-logo-letter {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

.app-logo-gem { color: var(--gold); font-size: 16px; margin: 0 2px; }

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

.header-icon-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s;
}

.header-icon-btn:hover { color: var(--navy); }

.logout-btn {
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.logout-btn:hover { color: var(--navy); }

/* ── Menu drawer ───────────────────────────────────────────────────── */

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 900;
}

.menu-overlay.open { display: block; }

.menu-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--bg);
  z-index: 901;
  transition: right 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: var(--safe-bottom) 0;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.menu-drawer.open { right: 0; }

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.menu-name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
}

.menu-email {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: var(--text);
  font-weight: 300;
  margin-top: 2px;
}

.menu-actions {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
}

.menu-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
}

.menu-action-btn:active { background: var(--border); }

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0 20px;
}

.menu-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  padding: 12px 20px;
  text-decoration: none;
}

.menu-link svg {
  flex-shrink: 0;
  color: var(--text);
}

.menu-link:active { background: var(--surface); }

/* ── Panels ─────────────────────────────────────────────────────────── */

.tab-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.tab-panel { display: none; padding: 24px 20px 36px; animation: fadeIn 0.2s ease; }
.tab-panel.active { display: block; }

.panel-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.card-white {
  background: var(--bg);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ── Reading Renderer ────────────────────────────────────────────────── */

.reading-section {
  margin-bottom: 1rem;
}

.reading-section:last-child {
  margin-bottom: 0;
}

.reading-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.reading-takeaway-list {
  margin: 6px 0 0;
  padding-left: 1.2em;
  list-style: disc;
}

.reading-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.75rem 0;
}

.reading-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
}

.reading-table th {
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 600;
}

.reading-table td {
  padding: 0.5rem 0.75rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.reading-table-alt td {
  background: var(--surface);
}

.reading-callout {
  border-left: 3px solid var(--gold);
  background: var(--surface);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

/* ── Video ──────────────────────────────────────────────────────────── */

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.video-meta { margin-top: 16px; }

.video-day {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.video-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
}

/* ── Horary ─────────────────────────────────────────────────────────── */

.horary-form { display: flex; flex-direction: column; gap: 16px; }

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

.form-group { display: flex; flex-direction: column; }

textarea {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  resize: none;
  outline: none;
  line-height: 1.6;
  transition: border-color 0.2s;
}

textarea::placeholder { color: var(--text); }
textarea:focus { border-color: var(--navy); }

.location-row { display: flex; gap: 10px; align-items: flex-end; }
.location-row .form-group { flex: 1; }

.location-row input {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.location-row input:focus { border-color: var(--navy); }

.btn-locate {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--navy);
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
  transition: border-color 0.2s;
}

.btn-locate:hover { border-color: var(--navy); }

.questions-remaining {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fdf8f0;
  border: 1px solid #eed9a0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--gold);
}

.questions-remaining span { font-weight: 600; color: var(--navy); }

#horary-result {
  margin-top: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.6;
  display: none;
}

#horary-result.visible { display: block; animation: fadeIn 0.3s ease; }
#horary-result.error { border-color: #f5c6c2; background: #fdf4f3; color: var(--error); }

.result-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ── Align ──────────────────────────────────────────────────────────── */

.align-today {
  background: #F4EDE4;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.align-expected-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.align-nostril {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 4px;
}

.align-nostril.left  { color: #3b7bbf; }
.align-nostril.right { color: #c9922a; }

.align-nostril-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.align-alignment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.align-alignment-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 5px;
}

.align-alignment-score {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
}

.align-alignment-score span { color: var(--gold); }
.align-alignment-pct { font-size: 12px; font-weight: 300; color: var(--text); margin-top: 2px; }
.align-ring { width: 54px; height: 54px; flex-shrink: 0; }

.align-record { margin-bottom: 18px; }

.align-record-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.align-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.align-btn {
  padding: 14px 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.align-btn .align-btn-icon { font-size: 20px; }
.align-btn:hover { border-color: var(--navy); color: var(--navy); }
.align-btn.selected-left  { border-color: #5aaacf; color: #3a8cb0; background: #f0f8fd; }
.align-btn.selected-right { border-color: #d4933a; color: #b07020; background: #fdf6ed; }
.align-btn.selected-both  { border-color: var(--navy); color: var(--navy); background: #f0f2f8; }

.align-recorded {
  text-align: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--success);
  display: none;
  letter-spacing: 0.04em;
}

.align-about {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  line-height: 1.85;
  border-left: 3px solid #e8d4a0;
  padding-left: 16px;
}

/* ── Pack ───────────────────────────────────────────────────────────── */

.pack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.pack-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}

.pack-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 20px;
}

.pack-price {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 20px;
}

.pack-price sup { font-size: 16px; vertical-align: super; }

.pack-includes { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }

.pack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
}

.pack-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.btn-buy {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-buy:hover { background: var(--navy-light); }

/* ── Bottom nav ─────────────────────────────────────────────────────── */

.bottom-nav {
  display: flex;
  border-top: 2px solid var(--border);
  background: var(--bg);
  padding-bottom: var(--safe-bottom);
  flex-shrink: 0;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  transition: color 0.2s;
}

.nav-btn.active { color: var(--navy); }

.nav-icon { font-size: 18px; line-height: 1; }

.nav-icon svg { display: block; margin: 0 auto; }

.nav-label {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 1px;
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-btn.active .nav-dot { opacity: 1; }

.nav-icon svg {
  display: block;
  margin: 0 auto;
  vertical-align: middle;
}

#nav-buy-birth-chart .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Animations ─────────────────────────────────────────────────────── */

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

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

/* ── Spinner ─────────────────────────────────────────────────────────── */

.spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

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

/* ── Install banner ─────────────────────────────────────────────────── */

#install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
}

.install-banner-inner {
  background: var(--navy);
  border-radius: 16px;
  padding: 20px 20px 16px;
  color: #fff;
}

.install-banner-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px;
}

.install-banner-text {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 16px;
}

.install-banner-text strong { color: #fff; font-weight: 500; }

.install-share-icon {
  display: inline-block;
  background: var(--gold);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  padding: 1px 5px;
  vertical-align: middle;
  margin: 0 2px;
}

.install-banner-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  padding: 8px 0 0;
  display: block;
}

.install-banner-dismiss:hover { color: rgba(255,255,255,0.7); }

/* ── Logged in screen ───────────────────────────────────────────────── */

#loggedin-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 32px;
}

/* ── Lens subnav ───────────────────────────────────────────────────── */
.lens-nav {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--nav-band-bg);
  border-bottom: 1px solid #f0e0c0;
  padding: 0 16px;
  gap: 0;
  flex-shrink: 0;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
  mask-image: linear-gradient(to right, black 70%, transparent 100%);
}

.lens-nav::-webkit-scrollbar { display: none; }

.lens-tab {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 14px;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, border-color 0.2s;
}

.lens-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.lens-tab:active { opacity: 0.7; }

/* ── Lenses dropdown (vertical list) ────────────────────────────── */
#lens-dropdown {
  position: absolute;
  top: 100%;
  width: 220px;
  background: #fdf8f0;
  border: 1px solid #eed9a0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  z-index: 100;
  overflow: hidden;
}

/* ── Recipes dropdown (proper vertical menu) ─────────────────────── */
#recipes-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 16px;
  width: 220px;
  background: #fdf8f0;
  border: 1px solid #eed9a0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  z-index: 100;
  overflow: hidden;
}

.recipes-dropdown-item {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #eed9a0;
  -webkit-tap-highlight-color: transparent;
}

.recipes-dropdown-item:last-child {
  border-bottom: none;
}

.recipes-dropdown-item.active {
  font-weight: 600;
  color: var(--navy);
}

.recipes-dropdown-item:active {
  background: #f5edd8;
}

.lens-dropdown-item {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #eed9a0;
  -webkit-tap-highlight-color: transparent;
}

.lens-dropdown-item:last-child { border-bottom: none; }

.lens-dropdown-item.active {
  font-weight: 600;
  color: var(--navy);
}

.lens-dropdown-item:active { background: #f5edd8; }

/* ── More list ──────────────────────────────────────────────────────── */
.more-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.more-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}

.more-item:hover { background: var(--border); }

.more-item-icon { font-size: 22px; flex-shrink: 0; }

.more-item-title {
  font-size: 15px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 2px;
}

.more-item-sub {
  font-size: 12px;
  font-weight: 300;
  color: var(--text);
}

.more-item-arrow {
  font-size: 20px;
  color: var(--text);
  margin-left: auto;
  flex-shrink: 0;
}
button.more-item {
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
/* ── Design System — Typography ──────────────────────────────────────── */

.text-display {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 22px;
}

.text-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.text-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  margin: 12px 0 6px;
}

.text-small {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

.text-body {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
}

.text-body p {
  margin-bottom: 1em;
}

.text-body p:last-child {
  margin-bottom: 0;
}

.text-body ul {
  padding-left: 24px;
  margin: 0 0 1em;
  list-style-position: inside;
}

.text-body li {
  margin: 0 0 6px;
}

.text-body strong {
  font-weight: 600;
}

.text-caption {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

/* ── Design System — Layout ──────────────────────────────────────────── */

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

/* ── Design System — Buttons ─────────────────────────────────────────── */

.btn-pill {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  padding: 7px 18px;
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--navy);
  -webkit-tap-highlight-color: transparent;
}
.btn-pill:active { background: var(--border); }

.btn-pill-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-pill-primary:active { opacity: 0.85; background: var(--navy); }

.btn-pill-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-pill-gold:active { opacity: 0.85; background: var(--gold); }

/* ── Design System — Reading Surface ────────────────────────────────── */

.reading-surface {
  padding: 8px 0 14px;
}

.reading-surface-empty,
.reading-surface-error {
  text-align: center;
  padding: 60px 0;
  color: var(--text);
}

.reading-surface-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--text);
}

/* ── Practice / Video ────────────────────────────────────────────────── */

.video-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.video-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}

.video-card:hover { background: var(--border); }

.video-card-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.video-card-info { flex: 1; }

.video-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}

.video-card-duration {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text);
  margin-top: 2px;
}

.video-card-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text);
  margin-top: 4px;
  line-height: 1.5;
}

.video-card-arrow {
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Fullscreen overlay */
.video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  z-index: 1001;
}

.video-wrapper {
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  position: relative;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* ── Ask tab — progress bar ────────────────────────────────────────── */

.ask-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.ask-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ── InteractiveBox — shared fixed slot above bottom nav ────────────── */

#interactive-box {
  display: none;
  padding: 8px 16px calc(2px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
}

#ask-content {
  padding-bottom: 80px; /* space for InteractiveBox */
}

.ask-input-wrap {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
  box-sizing: border-box;
  width: 100%;
}

.ask-input-wrap textarea {
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  resize: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  max-height: 100px;
  overflow-y: auto;
  outline: none;
  min-height: 21px;
  padding: 0;
  margin: 0;
}

.ask-input-wrap textarea::placeholder {
  color: var(--text);
}

/* ── Pills below input ── */

.ask-pills {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 2px 0;
  flex-wrap: nowrap;
}

.ask-pills-left,
.ask-pills-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ask-pill-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
}

.ask-pill-label strong {
  color: var(--navy);
  font-weight: 600;
}

.ask-pill {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
  cursor: pointer;
}

.ask-pill:active {
  background: var(--border);
}

.ask-pill-submit {
  background: var(--navy);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 11px;
  padding: 4px 12px;
}

.ask-pill-submit:active {
  opacity: 0.8;
}

/* AOM Badge Buttons — pastel pills for AskBox */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.badge:active { transform: scale(0.97); }

.badge-sage      { background: #9FE1CB; color: #04342C; }
.badge-gold      { background: #FAC775; color: #412402; }
.badge-lavender  { background: #CECBF6; color: #26215C; }
.badge-rose      { background: #F4C0D1; color: #4B1528; }
.badge-stone     { background: #D3D1C7; color: #2C2C2A; }
.badge-coral     { background: #F5C4B3; color: #4A1B0C; }
.badge-sand      { background: #FAEEDA; color: #633806; }

/* ── Reading footer (hint + download, inline after every reading) ────── */

.reading-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0 0;
}

.followup-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0 20px;
}

.reading-hint-text {
  font-style: italic;
  text-align: center;
  padding: 10px 0;
  margin: 0;
}

.reading-download-inline {
  display: block;
  margin: 4px auto 16px;
}

.reading-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  background: transparent;
  border: none;
  padding: 4px 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.reading-share-btn:active {
  color: var(--navy);
}

/* ── Chart card refinements ─────────────────────────────────────────── */

.chart-hint {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
}

#ask-chart-container {
  margin-left: -20px;
  margin-right: -20px;
  padding-bottom: 16px;
}

/* ── AskBox — unified mobile composer ───────────────────────────────── */

.askbox {
  background: #fff;
  border: 2px solid rgba(0,0,0,0.18);
  border-radius: 18px;
  padding: 12px 14px 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
}

.askbox textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #fff;
  resize: none;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  max-height: 100px;
  overflow-y: auto;
  outline: none;
  min-height: 22px;
  padding: 6px 10px;
  margin: 0 0 6px;
  display: block;
}

.askbox textarea:focus {
  border-color: rgba(0,0,0,0.28);
}

.askbox textarea::placeholder {
  color: rgba(0,0,0,0.4);
}

/* ── Horary meta row inside AskBox ──────────────────────────────── */
.askbox-horary-meta {
  display: none; /* revealed via JS */
  flex-direction: column;
  padding: 10px 0 4px;
}

.askbox-horary-hint {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: var(--text);
  margin: 0 0 8px;
}

.askbox-horary-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.askbox-num-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.askbox-chip-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: var(--text);
}

.askbox-num-input {
  width: 68px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.askbox-loc-chip {
  flex: 1;
  min-width: 0;
}

.askbox-loc-display {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--text);
}

.askbox-loc-pencil {
  color: var(--text);
  font-size: 11px;
}

.askbox-loc-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.askbox-geo-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.askbox-place-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.askbox-field-error {
  display: none;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  color: var(--gold);
  margin-top: 3px;
}

@keyframes ask-spin {
  100% { transform: rotate(360deg); }
}

@keyframes askboxHoraryFlash {
  0%   { background: rgba(184, 139, 45, 0.10); }
  100% { background: transparent; }
}

.askbox-horary-flash {
  animation: askboxHoraryFlash 1.5s ease forwards;
  border-radius: 6px;
}

.askbox-uses-label {
  display: block;
  color: var(--gold);
  margin-bottom: 6px;
}

.askbox-helpers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.askbox-sub-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 0;
}

.askbox-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.askbox-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.askbox-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.askbox-credit {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.askbox-buy {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: var(--navy);
  background: #fdf5e6;
  border: 1px solid #f0e0c0;
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#ask-new-question {
  background: #333333;
  color: #ffffff;
  border-color: #333333;
}

#ask-pill-uses {
  color: #888;
  text-align: left;
}

.askbox-buy:active {
  background: var(--border);
}


.askbox-rephrase {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 9px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.askbox-rephrase:active {
  background: var(--border);
}

.askbox-ask {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border: none;
  border-radius: 20px;
  padding: 7px 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.askbox-ask:active {
  opacity: 0.85;
}

/* Fix Google Places autocomplete dropdown */
.pac-container {
  z-index: 9999 !important;
  font-family: 'Poppins', sans-serif !important;
  border-radius: 10px !important;
  border: 1.5px solid #e8e8ed !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.pac-item {
  padding: 10px 16px !important;
  font-size: 14px !important;
  color: #1e2d5a !important;
  cursor: pointer !important;
}

.loc-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 9999;
  overflow: hidden;
  margin-top: 2px;
}

.loc-dropdown-item {
  padding: 10px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.loc-dropdown-item:active {
  background: var(--surface-alt, #f5f0ea);
}

.pac-item:hover {
  background: #f7f7f9 !important;
}

.pac-item-query {
  font-size: 14px !important;
  color: #1e2d5a !important;
}

.pac-icon {
  display: none !important;
}

/* ── Insight Panel (reusable slide-up) ───────────────────────────────── */

.insight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  pointer-events: none;
  transition: background 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.insight-overlay-visible {
  background: rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.insight-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #FAF6F0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12);
  padding: 12px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.insight-panel-visible {
  transform: translateY(0);
}

.insight-handle {
  display: none;
}

.insight-actions {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.insight-copy {
  height: 32px;
  padding: 0 12px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: #6B7280;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.insight-copy:active {
  background: rgba(0, 0, 0, 0.12);
}

.insight-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  color: #374151;
  cursor: pointer;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

.insight-close:active {
  background: rgba(0, 0, 0, 0.12);
}

.insight-body {
  padding-top: 4px;
}

/* ── Chart house detail (used inside Insight Panel) ──────────────────── */

.sheet-house-badge {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #6B7280;
  background: #EFE6D8;
  border-radius: 8px;
  padding: 4px 12px;
  margin-bottom: 8px;
}

.sheet-house-asc {
  color: #B88B2D;
  background: #E8DDC8;
}

.sheet-sign-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 600;
  color: #22315A;
  margin-bottom: 4px;
}

.sheet-sign-meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #8a90a2;
  margin-bottom: 16px;
}

.sheet-divider {
  height: 1px;
  background: #E8E0D4;
  margin: 16px 0;
}

.sheet-section-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #B88B2D;
  margin-bottom: 8px;
}

.sheet-planets {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #22315A;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.sheet-meaning {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #3B4257;
  line-height: 1.7;
}

/* ── AOM Guide ──────────────────────────────────────────────────────── */

/* TOC cards */
.guide-toc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin: 0 -20px 1px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.guide-toc-card:active { background: #f0ede8; }

.guide-toc-locked {
  opacity: 0.45;
  cursor: default;
}

.guide-toc-locked:active { background: var(--surface); }

.guide-toc-num {
  flex: 0 0 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.guide-toc-locked .guide-toc-num {
  background: var(--text);
}

.guide-toc-info { flex: 1; min-width: 0; }

.guide-toc-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.guide-toc-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--text);
  margin: 4px 0 0;
  line-height: 1.4;
}

.guide-toc-arrow {
  font-size: 20px;
  color: var(--text);
  flex-shrink: 0;
}

.guide-toc-lock {
  font-size: 14px;
  flex-shrink: 0;
}

/* Reader */

/* Practice pause blocks */
.guide-practice-pause {
  background: #F4EDE4;
  border-left: 3px solid var(--navy);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 24px 0;
}

.guide-practice-pause p {
  font-size: 14px !important;
  line-height: 1.7 !important;
  margin: 0 0 10px !important;
}

.guide-practice-pause p:last-child { margin-bottom: 0 !important; }

.guide-pause-title {
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy) !important;
}

.guide-pause-note {
  font-style: italic;
  color: var(--text) !important;
  font-size: 12px !important;
}

/* Prev/next nav */
.guide-nav-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: 1.5px solid var(--navy);
  border-radius: 20px;
  padding: 8px 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.guide-nav-btn:active { background: rgba(30,45,90,0.06); }

#panel-recipes {
  padding-bottom: 100px; /* space for InteractiveBox */
}

/* ── Recipe tab chips ───────────────────────────────────────────────── */

.recipes-chip {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.recipes-chip-active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.recipes-chip-shop {
  color: var(--gold);
  border-color: #eed9a0;
}

.recipes-chip-shop.recipes-chip-active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
/* ── Home Screen Grid ─────────────────────────────────────── */
#home-screen { flex-direction: column; }
.home-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.home-header img { width: 160px; height: auto; }
.home-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 32px 60px;
}
.home-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 18px; }
.home-tile {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.home-tile:active { background: var(--border); }
.home-tile img { width: 44px; height: auto; }
.home-tile .text-small { text-align: center; }
.header-home { display: flex; align-items: center; min-width: 40px; }

/* ── SectionHeader (Phase 2) ────────────────────────────────────────── */
.sh-col { display: flex; align-items: center; flex: 1; }
.sh-col-left  { justify-content: flex-start; }
.sh-col-center { justify-content: center; }
.sh-col-right { justify-content: flex-end; gap: 4px; position: relative; }
.sh-credits { color: var(--gold); white-space: nowrap; padding-right: 2px; }
.sh-chapters-btn .text-small { color: var(--text); white-space: nowrap; }
.sh-chapters-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  z-index: 200; min-width: 220px; max-height: 60vh; overflow-y: auto; padding: 8px 0;
}
.sh-chapter-item {
  display: block; padding: 10px 16px; cursor: pointer; color: var(--text);
  -webkit-tap-highlight-color: transparent; transition: background 0.12s;
}
.sh-chapter-item:active, .sh-chapter-item:hover { background: var(--border); }

/* ── Home screen gear menu ───────────────────────────────────────────── */
.home-gear-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  z-index: 300; min-width: 180px; padding: 8px 0;
}
.home-gear-email {
  padding: 10px 16px 8px; color: var(--text-muted, var(--text));
  opacity: 0.6; word-break: break-all;
}
.home-gear-divider { height: 1px; background: var(--border); margin: 4px 0; }
.home-gear-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 10px 16px; background: none; border: none;
  cursor: pointer; color: var(--text); text-align: left;
  -webkit-tap-highlight-color: transparent; transition: background 0.12s;
}
.home-gear-item:active, .home-gear-item:hover { background: var(--border); }

/* ── Sub-nav bar ─────────────────────────────────────────────────────── */
.subnav-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; width: 220px;
  background: #fdf8f0; border: 1px solid #eed9a0;
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  z-index: 600; overflow: hidden;
}
.subnav-dropdown-item {
  display: block; width: 100%; padding: 12px 16px;
  background: none; border: none; border-bottom: 1px solid #eed9a0;
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 400;
  color: var(--text); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.subnav-dropdown-item:last-child { border-bottom: none; }
.subnav-dropdown-item.active { font-weight: 600; color: var(--navy); }
.subnav-dropdown-item:active { background: #f5edd8; }

/* ── Sub-nav toast ───────────────────────────────────────────────────── */
.subnav-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: rgba(30,45,90,0.92); color: #fff;
  font-family: 'Poppins', sans-serif; font-size: 13px;
  padding: 10px 20px; border-radius: 20px;
  opacity: 0; transition: opacity 0.2s, transform 0.2s;
  pointer-events: none; white-space: nowrap; z-index: 9000;
}
.subnav-toast.subnav-toast-visible {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ── Retreats tab ────────────────────────────────────────────────────── */
.retreats-hero { margin-top: 8px; }
.retreats-details {
  margin-top: 20px; border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.retreats-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.retreats-detail-row:last-child { border-bottom: none; }
.retreats-detail-label { color: var(--text); opacity: 0.6; }
.retreats-detail-value { color: var(--text); font-weight: 500; text-align: right; }

#retreats-book-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--border);
  z-index: 100;
}
.retreats-book-btn {
  display: block; width: 100%; padding: 14px;
  background: var(--navy); color: #fff; text-align: center;
  font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 500;
  border-radius: var(--radius); text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: opacity 0.15s;
}
.retreats-book-btn:active { opacity: 0.85; }

/* Extra bottom padding for retreats tab to clear Book Now bar */
#tab-container:has(#retreats-book-bar) { padding-bottom: 80px; }

/* ── Dynamic menu items ──────────────────────────────────────────────── */
#menu-items { padding: 8px 0; }
.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 20px; background: none; border: none;
  border-bottom: 1px solid var(--border);
  font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 400;
  color: var(--text); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background 0.12s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active, .menu-item:hover { background: var(--border); }
.menu-chevron { font-size: 12px; opacity: 0.5; transition: transform 0.2s; }
.menu-chevron.open { transform: rotate(180deg); }
.menu-subitems { background: none; }
.menu-subitem {
  display: block; width: 100%; padding: 12px 20px 12px 36px;
  background: none; border: none; border-bottom: 1px solid var(--border);
  font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--text);
  text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background 0.12s;
}
.menu-subitem:last-child { border-bottom: none; }
.menu-subitem:active, .menu-subitem:hover { background: var(--border); }

/* ── Menu item icon layout + darker divider ──────────────────────────── */
.menu-item-inner { display: flex; align-items: center; gap: 12px; }
.menu-item-inner svg { flex-shrink: 0; opacity: 0.7; }
#menu-items .menu-item,
#menu-items .menu-subitem { border-bottom-color: rgba(0,0,0,0.12); }

/* ── Intent selector ────────────────────────────────────────────────── */
.intent-selector-stack { display:flex; flex-direction:column; gap:12px; width:100%; padding:4px 0; }
.intent-card {
  display:block; width:100%; padding:16px 20px;
  border:1.5px solid var(--border); border-radius:var(--radius);
  background:var(--surface); text-align:left;
  cursor:pointer; -webkit-tap-highlight-color:transparent;
  transition:background 0.12s;
}
.intent-card:active { background:var(--border); }

/* ── KP number prompt ───────────────────────────────────────────────── */
.kp-prompt-wrap { display:flex; flex-direction:column; gap:16px; padding:4px 0; }
.kp-number-input {
  display:block; width:100%; box-sizing:border-box; text-align:center;
  font-size:32px; font-family:'Poppins',sans-serif;
  border:1.5px solid var(--border); border-radius:var(--radius);
  padding:12px; background:var(--surface); color:var(--text); outline:none;
}

/* ── Ask box back arrow ─────────────────────────────────────────────── */
.ask-back-arrow {
  display:block; background:none; border:none; padding:0 0 10px;
  font-size:18px; color:var(--navy); cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

/* ── New Question bar ───────────────────────────────────────────────── */
#new-question-bar {
  position:fixed; left:0; right:0; z-index:50;
  background:var(--gold); border-bottom:1px solid #f0e0c0;
  padding:10px 16px; text-align:center; cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
#new-question-bar:active { background:var(--border); }


/* ── Intent selector radio options ──────────────────────────────────── */
.intent-radio-option {
  display:flex; align-items:center; gap:12px;
  padding:14px 16px; margin-bottom:10px;
  border:1.5px solid var(--border); border-radius:var(--radius);
  background:var(--surface); cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.intent-radio-option input[type="radio"] {
  width:18px; height:18px; flex-shrink:0;
  accent-color:var(--navy);
}

/* ── Question input (Card 3) ─────────────────────────────────────────── */
.question-input-wrap { display:flex; flex-direction:column; }
.qi-textarea {
  display:block; width:100%; box-sizing:border-box;
  font-size:16px; font-family:'Poppins',sans-serif;
  border:1.5px solid var(--border); border-radius:var(--radius);
  padding:12px; background:var(--surface); color:var(--text);
  outline:none; resize:none; min-height:80px;
}

/* ── Reading History overlay ─────────────────────────────────────────── */
.acct-hist-overlay    { position:fixed; inset:0; background:var(--bg); z-index:300; display:none; flex-direction:column; }
.acct-hist-overlay.visible { display:flex; }
.acct-hist-header     { display:flex; align-items:center; gap:12px; padding:16px 16px 8px; border-bottom:1px solid var(--border); flex-shrink:0; }
.acct-hist-body       { flex:1; overflow-y:auto; padding:12px 16px; -webkit-overflow-scrolling:touch; }
.acct-hist-list       { display:flex; flex-direction:column; gap:0; }
.acct-hist-card       { display:flex; align-items:flex-start; gap:12px; margin-bottom:10px; }
.acct-hist-pagination { display:flex; align-items:center; justify-content:center; gap:16px; padding:16px 0; flex-shrink:0; }
.acct-hist-confirm    { margin-top:10px; padding:12px; background:var(--surface); border-radius:var(--radius); border:1px solid var(--border); }

/* ── Follow-up thread (inside Ask canvas) ───────────────────────────── */
.followup-thread  { margin-top:24px; border-top:2px solid var(--border); padding-top:16px; }
.followup-item    { border-bottom:1px solid var(--border); padding:12px 0; }
.followup-header  { cursor:pointer; display:flex; align-items:center; gap:6px; font-weight:500; font-size:0.95em; -webkit-tap-highlight-color:transparent; }
.followup-header::before { content:'▶'; font-size:0.7em; color:var(--text-muted); transition:transform 0.15s; flex-shrink:0; }
.followup-item.expanded .followup-header::before { transform:rotate(90deg); }
.followup-body    { display:none; padding:12px 0 0 16px; }
.followup-item.expanded .followup-body { display:block; }
.followup-question { color:var(--text-muted); font-weight:400; }
.followup-date    { margin-left:auto; font-size:0.8em; color:var(--text-muted); flex-shrink:0; }
