:root {
  --bg: #f7f2fb;
  --surface: #ffffff;
  --surface-soft: #f0e9f8;
  --ink: #2c2337;
  --muted: #756a85;
  --line: #e2d9ec;
  --purple: #7650b7;
  --purple-dark: #56358e;
  --gold: #bd8530;
  --gold-soft: #fbf2df;
  --danger: #aa454f;
  --success: #3e765e;
  --shadow: 0 16px 45px rgba(65, 42, 91, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(181, 146, 220, 0.2), transparent 35%),
    radial-gradient(circle at 100% 25%, rgba(224, 186, 108, 0.14), transparent 30%),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.login-original {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1000px 500px at 50% -10%, rgba(118, 80, 183, 0.18), transparent),
    var(--bg);
}

.login-original-card {
  width: 100%;
  max-width: 380px;
  padding: 32px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}
.login-original-card.auth-card-wide { max-width: 520px; text-align: left; }
.auth-card-wide .login-original-emoji,
.auth-card-wide .login-original-brand,
.auth-card-wide > h1 { text-align: center; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0 0 20px; padding: 5px; border-radius: 13px; background: var(--surface-soft); }
.auth-tab { min-height: 40px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 800; cursor: pointer; }
.auth-tab.active { color: var(--purple-dark); background: white; box-shadow: 0 4px 14px rgba(65, 42, 91, 0.08); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-success { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; color: var(--success); background: #edf8f2; font-size: 13px; text-align: center; }
.auth-text-button { display: block; margin: 14px auto 0; border: 0; color: var(--purple); background: transparent; text-decoration: underline; cursor: pointer; }

.login-original-emoji { font-size: 34px; }
.login-original-brand {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.login-original-card h1 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 600;
}
.login-original-card label {
  margin: 14px 0 6px;
  color: var(--muted);
  text-align: left;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.login-original-card input {
  padding: 12px 14px;
  border-radius: 10px;
  background: #faf8fd;
}
.login-original-hint {
  margin: 8px 0 0;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}
.login-original-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-title,
.panel h2,
.reading-letter h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

label {
  display: block;
  margin: 16px 0 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(118, 80, 183, 0.1);
}

textarea { min-height: 115px; resize: vertical; }

.button {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  padding: 12px 17px;
  color: white;
  background: var(--purple);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(118, 80, 183, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover { background: var(--purple-dark); transform: translateY(-1px); }
.button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.button.full { width: 100%; margin-top: 22px; }
.button.secondary { color: var(--purple); background: var(--surface-soft); box-shadow: none; }
.button.ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); box-shadow: none; }
.button.gold { background: var(--gold); }
.button.small { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.payment-access-link { display: block; text-align: center; text-decoration: none; }

.admin-viewbar { display: grid; grid-template-columns: minmax(0, 1fr) 215px minmax(250px, 320px); gap: 14px; align-items: center; margin: 0 0 22px; padding: 14px 16px; border: 1px solid #d6c4e8; border-radius: 17px; background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(65,42,91,.06); }
.admin-viewbar > div { min-width: 0; }
.admin-viewbar-badge { display: inline-flex; margin-right: 8px; padding: 4px 7px; border-radius: 999px; color: white; background: var(--purple); font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.admin-viewbar strong { font-size: 14px; }
.admin-viewbar small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.admin-viewbar label { margin: 0; color: var(--muted); text-align: right; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.admin-viewbar select { padding: 10px 12px; border-radius: 11px; font-size: 13px; font-weight: 700; }

.form-error {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 12px;
  color: var(--danger);
  background: #fff0f1;
  font-size: 13px;
}

.shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px 20px;
  border-right: 1px solid rgba(91, 65, 121, 0.12);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 22px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(145deg, #8c69c6, #5b398f); font-size: 20px; }
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; }

.nav-group { margin: 14px 0 7px; padding: 0 12px; color: #9a8fa7; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 11px; width: 100%; margin: 3px 0; padding: 10px 12px; border-radius: 12px; color: #5f546d; text-decoration: none; font-size: 14px; font-weight: 650; }
.nav-link:hover, .nav-link.active { color: var(--purple-dark); background: var(--surface-soft); }
.nav-icon { width: 25px; text-align: center; font-size: 16px; }

.sidebar-user { margin-top: 24px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.sidebar-user strong, .sidebar-user span { display: block; }
.sidebar-user span { color: var(--muted); font-size: 12px; }
.sidebar-user .button { width: 100%; margin-top: 11px; }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px clamp(20px, 4vw, 56px); border-bottom: 1px solid rgba(91, 65, 121, 0.1); background: rgba(247, 242, 251, 0.86); backdrop-filter: blur(18px); }
.hello strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.hello span { color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.top-actions { display: flex; gap: 9px; align-items: center; }
.menu-button { display: none; border: 0; color: var(--ink); background: transparent; font-size: 24px; cursor: pointer; }
.moon-status { min-height: 45px; display: flex; align-items: center; gap: 9px; padding: 4px 6px; }
.moon-orb { position: relative; width: 39px; height: 39px; flex: 0 0 auto; overflow: hidden; border: 1px solid #cfc0e4; border-radius: 50%; background: #ddd2f0; box-shadow: inset 0 0 12px rgba(255,255,255,.45); }
.moon-orb::after { content: ''; position: absolute; top: -1px; bottom: -1px; border-radius: 50%; background: #4e3478; }
.moon-orb.phase-new-moon::after { inset: -1px; }
.moon-orb.phase-full-moon::after { display: none; }
.moon-orb.phase-first-quarter::after { left: -1px; width: 50%; border-radius: 20px 0 0 20px; }
.moon-orb.phase-last-quarter::after { right: -1px; width: 50%; border-radius: 0 20px 20px 0; }
.moon-orb.phase-waxing-crescent::after { left: -5px; width: 34px; }
.moon-orb.phase-waning-crescent::after { left: -8px; width: 30px; }
.moon-orb.phase-waxing-gibbous::after { left: -8px; width: 18px; }
.moon-orb.phase-waning-gibbous::after { right: -8px; width: 18px; }
.moon-copy strong { display: block; white-space: nowrap; color: var(--purple); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.header-help { min-height: 45px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 7px; border: 1px solid var(--line); border-radius: 15px; background: white; text-decoration: none; font-size: 13px; font-weight: 800; }
.header-help:hover, .header-help.active { color: var(--purple-dark); border-color: #cdbce0; background: var(--surface-soft); }
.help-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--purple); font-family: Georgia, serif; font-size: 18px; }

.content { width: min(1120px, 100%); margin: 0 auto; padding: 40px clamp(20px, 4vw, 56px) 80px; }
.page-head { margin-bottom: 26px; }
.page-title { font-size: clamp(34px, 5vw, 53px); line-height: 1.08; }
.page-sub { max-width: 720px; margin: 10px 0 0; color: var(--muted); font-size: 16px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: clamp(28px, 5vw, 55px);
  border-radius: 30px;
  color: white;
  background: linear-gradient(135deg, #8060b7, #4c3475 63%, #342442);
  box-shadow: var(--shadow);
}

.hero::after { content: ''; position: absolute; width: 360px; height: 360px; right: -150px; top: -180px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,0.035), 0 0 0 120px rgba(255,255,255,0.025); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 660px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5.5vw, 67px); line-height: 1.02; font-weight: 500; }
.hero p { max-width: 630px; margin: 18px 0 0; color: rgba(255,255,255,0.78); font-size: 17px; }

.lucky-card { position: relative; z-index: 1; width: 240px; padding: 20px; border: 1px solid rgba(255,255,255,0.2); border-radius: 22px; background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); }
.lucky-card > span { font-size: 10px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: #f1d8a4; }
.lucky-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 15px 0; }
.lucky-number { text-align: center; }
.lucky-number strong { display: grid; place-items: center; width: 52px; height: 52px; margin: auto; border-radius: 50%; color: #4b3470; background: white; font-family: Georgia, serif; font-size: 22px; }
.lucky-number small { display: block; margin-top: 6px; color: rgba(255,255,255,0.72); font-size: 9px; text-transform: uppercase; }
.lucky-card p { margin: 0; color: rgba(255,255,255,0.8); font-size: 12px; }

.section-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 36px 0 15px; }
.section-title h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.section-title p { margin: 0; color: var(--muted); font-size: 13px; }

.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.module-card { position: relative; min-height: 185px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,0.88); text-decoration: none; box-shadow: 0 8px 24px rgba(54, 37, 77, 0.05); transition: transform 0.18s ease, border-color 0.18s ease; }
.module-card:hover { transform: translateY(-3px); border-color: #cdbce0; }
.module-card .module-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--purple); background: var(--surface-soft); font-size: 21px; }
.module-card h3 { margin: 25px 0 5px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.module-card p { margin: 0; color: var(--muted); font-size: 13px; }
.module-card .arrow { position: absolute; right: 20px; top: 20px; color: #b4a8c0; }

.install-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding: 16px 18px; border: 1px solid #d5c4e8; border-radius: 16px; background: #eee6f7; }
.install-strip strong { display: block; }
.install-strip p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.purchase-refresh { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 16px 18px; border: 1px dashed #ccbddd; border-radius: 16px; background: rgba(255,255,255,0.62); }
.purchase-refresh strong { display: block; }
.purchase-refresh p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.front-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.front-card { min-height: 220px; display: flex; flex-direction: column; justify-content: end; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: white; text-decoration: none; box-shadow: var(--shadow); }
.front-card.primary { color: white; background: linear-gradient(145deg, #8060b7, #4d3475); }
.front-card.primary .eyebrow { color: #f1d8a4; }
.front-card h2, .explore-panel h2, .preview-offer h2, .bonus-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 500; }
.front-card p { margin: 8px 0 18px; color: var(--muted); }
.front-card.primary p { color: rgba(255,255,255,0.78); }
.front-card span { color: var(--purple); font-weight: 800; }
.front-card.primary span { color: white; }
.explore-panel { margin-top: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,0.7); }
.explore-panel > p:not(.eyebrow) { color: var(--muted); }
.explore-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 18px 0 0; border-top: 1px solid var(--line); text-decoration: none; }
.explore-row strong, .explore-row span { display: block; }
.explore-row span { color: var(--muted); font-size: 13px; }
.explore-row b { color: var(--purple); font-size: 13px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.chat-panel { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.chat-guide-header { display: flex; align-items: center; gap: 12px; margin: -22px -22px 14px; padding: 16px 18px; border-radius: 22px 22px 0 0; color: white; background: linear-gradient(135deg, #66458d, #4b3568); }
.chat-guide-header > img { width: 54px; height: 54px; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgba(30,18,45,.24); }
.chat-guide-identity { min-width: 0; flex: 1; }
.chat-guide-identity strong, .chat-guide-identity span { display: block; }
.chat-guide-identity strong { font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; }
.chat-guide-presence { margin-top: 3px; color: rgba(255,255,255,.78); font-size: 11px; }
.chat-guide-presence i { display: none; }
.chat-guide-presence.online { color: #d8ffe7; font-weight: 700; }
.chat-guide-presence.online i { width: 7px; height: 7px; display: inline-block; margin-right: 6px; border-radius: 50%; background: #78d49e; box-shadow: 0 0 0 3px rgba(120,212,158,.14); animation: chat-online-pulse 1.8s ease-in-out infinite; }
.chat-guide-header > small { color: rgba(255,255,255,.68); font-size: 10px; }
.chat-preview-note { margin: 10px 0 2px; padding: 9px 11px; border-radius: 11px; color: #6d5627; background: #fff7df; font-size: 11px; }
.chat-messages { min-height: 330px; max-height: 56vh; display: flex; flex-direction: column; gap: 10px; padding: 10px 2px 20px; overflow-y: auto; overscroll-behavior: contain; }
.chat-guide-message { max-width: 78%; display: flex; align-self: flex-start; align-items: flex-end; gap: 8px; }
.chat-guide-message > img { width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid #ded4e8; border-radius: 50%; object-fit: cover; }
.chat-guide-bubbles { min-width: 0; flex: 1; display: grid; justify-items: start; gap: 6px; }
.chat-guide-message .chat-message { width: fit-content; max-width: 100%; }
.chat-guide-bubbles .chat-message:not(:last-child) { border-bottom-left-radius: 7px; }
.chat-guide-bubbles .chat-message + .chat-message { border-top-left-radius: 7px; }
.chat-bonus-link { margin-top: 2px; text-decoration: none; }
.chat-message { max-width: 75%; padding: 12px 15px 9px; border-radius: 16px; color: #544861; background: var(--surface-soft); }
.chat-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.chat-message small { display: block; margin-top: 6px; color: #887b92; font-size: 9px; }
.chat-message.member { align-self: flex-end; color: white; background: var(--purple); }
.chat-message.member small { color: rgba(255,255,255,.72); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.chat-form input { min-height: 48px; }
@keyframes chat-online-pulse { 50% { opacity: .58; transform: scale(.86); } }

.bonus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bonus-card { padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: 0 8px 22px rgba(54, 37, 77, 0.05); }
.bonus-card > span { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.bonus-card p { min-height: 44px; color: var(--muted); font-size: 13px; }
.bonus-card > div { display: flex; flex-wrap: wrap; gap: 8px; }
.reader-actions { margin-bottom: 18px; }
.bonus-reader { display: grid; gap: 18px; }
.bonus-reader figure { width: min(760px, 100%); margin: 0 auto; border-radius: 14px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.bonus-reader img { display: block; width: 100%; height: auto; }
.bonus-reader figcaption { padding: 8px 12px; color: var(--muted); font-size: 11px; text-align: center; }

.help-page-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 28px; }
.help-page-head h1 { margin: 0; font-size: clamp(38px, 6vw, 54px); line-height: 1; }
.help-page-head p { margin: 9px 0 0; color: var(--purple); font-size: 18px; }
.help-title-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: Georgia, serif; font-size: 25px; }
.help-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.help-guide { min-height: 132px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 21px; color: var(--ink); background: white; box-shadow: var(--shadow); text-decoration: none; }
.help-guide:hover { border-color: #c9b4e0; transform: translateY(-1px); }
.help-guide-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(145deg, #8c69c6, #5b398f); font-size: 22px; }
.help-guide h2 { margin: 0; font-size: 23px; }
.help-guide p { margin: 6px 0 0; color: var(--purple); }
.help-guide b { color: var(--purple); font-size: 25px; font-weight: 400; }
.help-section-label { margin: 31px 0 13px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.help-groups { display: grid; gap: 18px; }
.help-group { overflow: hidden; border: 1px solid #d8c08e; border-radius: 22px; background: #fff9eb; }
.help-group > h2 { margin: 0; padding: 20px 22px; border-bottom: 1px solid #e7d6af; font-size: 27px; }
.help-sheet { overflow: hidden; }
.help-item { overflow: hidden; border-bottom: 1px solid #eadbb8; background: transparent; }
.help-item:last-child { border-bottom: 0; }
.help-item[open] { background: #f8e8c4; box-shadow: inset 4px 0 0 var(--gold); }
.help-item summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; list-style: none; cursor: pointer; font-weight: 800; }
.help-item summary::-webkit-details-marker { display: none; }
.help-number { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #aa8c54; border-radius: 50%; color: #6e5425; font-family: Georgia, serif; font-size: 16px; }
.help-question { flex: 1; }
.help-item summary b { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; color: var(--gold); font-size: 20px; transition: transform .18s ease; }
.help-item[open] summary b { transform: rotate(45deg); }
.help-item p { margin: 0; padding: 0 62px 22px 66px; color: #65543f; line-height: 1.7; }
.help-footer { margin-top: 20px; padding: 28px; border: 1px solid #ead5aa; border-radius: 20px; background: var(--gold-soft); text-align: center; }
.help-footer h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.help-footer p:last-child { max-width: 640px; margin: 8px auto 0; color: #71592f; }
.help-footer .button { display: table; margin: 18px auto 8px; text-decoration: none; }
.help-footer small { display: block; margin-top: 12px; color: #71592f; }

.mobile-tabbar { display: none; }

.panel { margin-bottom: 18px; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.92); box-shadow: 0 10px 30px rgba(58, 39, 79, 0.05); }
.panel h2 { font-size: 28px; }
.panel > p:first-of-type { color: var(--muted); }
.panel.soft { background: var(--surface-soft); box-shadow: none; }
.panel.gold { border-color: #ead5aa; background: var(--gold-soft); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.check-row { display: flex; gap: 9px; align-items: center; margin-top: 17px; color: var(--muted); font-size: 13px; }
.check-row input { width: 18px; height: 18px; }
.help { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.quota { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 12px; border-radius: 999px; color: var(--purple-dark); background: var(--surface-soft); font-size: 12px; font-weight: 800; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

.oracle-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; }
.tarot-card { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: center; justify-content: center; border: 1px solid #d8cae7; border-radius: 24px; background: linear-gradient(160deg, #e8def5, #c5aedf); box-shadow: 0 18px 35px rgba(62, 40, 86, 0.13); }
.tarot-card img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; transform-origin: center; }
.tarot-card img.reversed { transform: rotate(180deg); }
.minor-art { position: absolute; inset: 12px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.55); border-radius: 17px; color: white; background: radial-gradient(circle at center, rgba(255,255,255,0.18), transparent 45%), linear-gradient(155deg, #8060b7, #3d294f); text-align: center; }
.minor-art.reversed { transform: rotate(180deg); }
.minor-art strong { display: block; max-width: 180px; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.minor-art span { display: block; margin-bottom: 16px; font-size: 62px; }
.orientation { position: absolute; left: 14px; bottom: 14px; padding: 6px 9px; border-radius: 999px; color: #fff; background: rgba(35,22,48,0.74); font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.reading-letter { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.reading-letter h2 { font-size: clamp(30px, 4vw, 42px); }
.reading-letter > p { color: #594f64; }
.reading-block { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.reading-block h3 { margin: 0 0 8px; color: var(--gold); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }
.reading-block p { margin: 0; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.note-card { padding: 17px; border-radius: 16px; background: var(--surface-soft); }
.note-card h3 { margin: 0 0 7px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--purple); }
.note-card p, .note-card ul { margin: 0; color: #5d5369; }
.note-card ul { padding-left: 18px; }

.spread { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.spread-card { padding: 15px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.spread-card .position { display: block; min-height: 28px; margin-bottom: 10px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.spread-visual { height: 205px; overflow: hidden; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(150deg, #e5d9f3, #b69ad6); }
.spread-visual img { width: 100%; height: 100%; object-fit: cover; }
.spread-visual img.reversed { transform: rotate(180deg); }
.spread-visual .minor-art { position: relative; inset: auto; width: 100%; height: 100%; border: 0; border-radius: 0; }
.spread-card strong { display: block; margin-top: 12px; font-family: Georgia, serif; font-size: 18px; }
.spread-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.monthly-stack { grid-template-columns: 1fr; }
.monthly-stack .spread-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 22px; align-items: start; }
.monthly-stack .spread-card .position { grid-column: 1 / -1; }
.monthly-stack .spread-visual { height: 310px; }
.monthly-stack .spread-card strong { margin-top: 4px; font-size: 24px; }
.monthly-stack .spread-card p { font-size: 15px; line-height: 1.65; }

.preview-example-notice { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 20px; padding: 16px 18px; border: 1px solid #e6d0a1; border-radius: 16px; color: #664d25; background: var(--gold-soft); }
.preview-example-notice > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--gold); font-size: 18px; }
.preview-example-notice strong { display: block; margin: 0 0 3px; font-size: 13px; }
.preview-example-notice p { margin: 0; color: #71592f; font-size: 13px; }
.preview-hero { margin-bottom: 20px; }
.preview-module-card { cursor: default; }
.preview-module-card:hover { transform: none; border-color: var(--line); }
.preview-lock { position: absolute; right: 18px; top: 18px; padding: 5px 8px; border-radius: 999px; color: #78551f; background: var(--gold-soft); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.preview-catalog { grid-template-columns: 1fr; }
.catalog-static-head { padding: 20px; }
.catalog-static-head span { display: block; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.catalog-static-head strong { display: block; margin-top: 5px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.catalog-static-head p { margin-bottom: 0; color: var(--muted); }
.locked-library { margin: 14px 0 22px; padding: 16px; border: 1px dashed #cdbfda; border-radius: 15px; color: var(--muted); text-align: center; }
.preview-offer { margin-top: 24px; padding: 34px; border: 1px solid #e6d0a1; border-radius: 24px; background: var(--gold-soft); text-align: center; box-shadow: var(--shadow); }
.preview-offer h2 { font-size: 34px; }
.preview-offer > p:not(.eyebrow) { max-width: 650px; margin: 10px auto 22px; color: #71592f; }
.preview-offer .button { display: inline-flex; align-items: center; text-decoration: none; }
.already-bought { display: block; margin: 14px auto 0; border: 0; color: #71592f; background: transparent; text-decoration: underline; cursor: pointer; }
.locked-preview { position: relative; overflow: hidden; }
.locked-preview::after { content: 'Preview'; position: absolute; right: 12px; top: 12px; padding: 5px 8px; border-radius: 999px; color: white; background: rgba(52, 36, 66, 0.82); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.locked-preview input:disabled { opacity: .7; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); background: white; cursor: pointer; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.filter.active { border-color: var(--purple); color: white; background: var(--purple); }

.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.catalog-item { border: 1px solid var(--line); border-radius: 19px; background: white; overflow: hidden; }
.catalog-item summary { list-style: none; cursor: pointer; padding: 20px; }
.catalog-item summary::-webkit-details-marker { display: none; }
.catalog-item summary span { display: block; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.catalog-item summary strong { display: block; margin-top: 5px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.catalog-body { padding: 0 20px 22px; border-top: 1px solid var(--line); }
.catalog-body h4 { margin: 18px 0 7px; color: var(--purple); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; }
.catalog-body p, .catalog-body li { color: #5d5369; font-size: 13px; }
.catalog-body ol, .catalog-body ul { margin: 0; padding-left: 20px; }
.safety { margin-top: 17px; padding: 13px; border-radius: 12px; color: #81454b; background: #fff0f1; }
.birth-chart-result { overflow: hidden; }
.chart-calculation-meta { margin: 8px 0 14px; color: var(--muted); font-size: 13px; }
.chart-method { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chart-method strong, .chart-method span { padding: 7px 10px; border: 1px solid #e3c889; border-radius: 999px; color: #74551c; background: #fff8e8; font-size: 11px; }
.birth-chart-overview { display: grid; grid-template-columns: minmax(280px, 390px) minmax(0, 1fr); align-items: center; gap: 22px; }
.birth-chart-wheel { margin: 0; padding: 14px; border: 1px solid #e4d4b4; border-radius: 24px; background: #fffdf8; }
.birth-chart-wheel svg { width: 100%; height: auto; display: block; overflow: visible; }
.birth-chart-wheel figcaption { margin-top: 6px; color: var(--muted); font-size: 11px; text-align: center; }
.chart-wheel-bg { fill: url(#chart-wheel-bg); }
.chart-wheel-ring, .chart-wheel-lines line { fill: none; stroke: #bfa9cc; stroke-width: 1; }
.chart-wheel-lines line { stroke: #d7c8df; }
.chart-wheel-sign, .chart-wheel-house, .chart-wheel-planet text, .chart-wheel-rising text { text-anchor: middle; dominant-baseline: central; }
.chart-wheel-sign { fill: #74519a; font-size: 18px; }
.chart-wheel-house { fill: #9c84ad; font-size: 10px; font-weight: 800; }
.chart-wheel-planet circle { fill: #fff8e8; stroke: #aa7a26; stroke-width: 1.2; }
.chart-wheel-planet text { fill: #4c3268; font-family: Georgia, serif; font-size: 14px; font-weight: 700; }
.chart-wheel-rising line { stroke: #b07c1e; stroke-width: 2.5; }
.chart-wheel-rising text { fill: #875f18; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.chart-wheel-center { fill: #56396f; }
.big-three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.big-three-grid article { display: grid; gap: 3px; padding: 18px; border: 1px solid #e5d6ad; border-radius: 18px; background: linear-gradient(145deg, #fffaf0, #f7effc); }
.big-three-grid small { color: var(--gold); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.big-three-grid strong { font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 500; }
.big-three-grid span { color: var(--muted); font-size: 12px; }
.chart-boundary-note { grid-column: 1 / -1; margin: 2px 0 0; padding: 12px 14px; border-radius: 12px; color: #78551f; background: #fff8e8; font-size: 12px; }
.chart-big-three-summary { margin: 15px 0 0; padding: 15px 17px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--gold-soft); }
.chart-section-title { margin: 26px 0 11px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.planet-table { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; }
.planet-table-row { display: grid; grid-template-columns: minmax(80px, .7fr) minmax(140px, 1.4fr) minmax(72px, .5fr); gap: 10px; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 13px; }
.planet-table-row:last-child { border-bottom: 0; }
.planet-table-row span { color: var(--muted); }
.chart-aspects { display: grid; gap: 9px; }
.chart-aspects article { padding: 14px 16px; border-radius: 14px; background: var(--surface-soft); }
.chart-aspects p { margin: 5px 0 0; color: var(--muted); }
.chart-disclosure { margin-top: 20px; padding: 15px; border-radius: 14px; color: #5f536d; background: #f1ebf7; }

.paywall { overflow: hidden; border: 1px solid #dcccea; border-radius: 26px; background: white; box-shadow: var(--shadow); }
.paywall-preview { min-height: 290px; padding: 38px; color: white; background: linear-gradient(145deg, #8664bd, #4e3478); }
.paywall-preview span { color: #f1d7a2; font-size: 10px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.paywall-preview h2 { margin: 12px 0; font-family: Georgia, serif; font-size: 38px; font-weight: 500; }
.paywall-preview p { max-width: 560px; color: rgba(255,255,255,0.78); }
.paywall-offer { padding: 30px 38px; text-align: center; }
.paywall-offer strong { display: block; font-family: Georgia, serif; font-size: 26px; }
.paywall-offer p { color: var(--muted); }

.archive-list { display: grid; gap: 10px; }
.archive-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.archive-item strong { display: block; font-family: Georgia, serif; font-size: 18px; text-transform: capitalize; }
.archive-item span { color: var(--muted); font-size: 12px; }
.archive-item time { color: var(--muted); font-size: 11px; }

.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-value { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.profile-value span, .profile-value strong { display: block; }
.profile-value span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.profile-value strong { margin-top: 4px; }

.suggestions-panel { max-width: 720px; margin-right: auto; margin-left: auto; }
.suggestion-fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.suggestion-fieldset legend, .suggestion-message-field > label { margin: 0 0 10px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.star-rating { display: flex; align-items: center; gap: 5px; }
.rating-star { width: 45px; height: 45px; padding: 0; border: 0; color: #b7a9c3; background: transparent; font-size: 35px; line-height: 1; transition: color .15s ease, transform .15s ease; }
.rating-star:hover, .rating-star:focus-visible, .rating-star.active { color: var(--gold); transform: translateY(-1px); }
.rating-hint { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.suggestion-topics { display: grid; gap: 8px; }
.suggestion-topic { min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; color: #5f536b; background: white; text-align: left; font-weight: 700; }
.suggestion-topic:hover, .suggestion-topic.active { border-color: #a98bc8; color: var(--purple-dark); background: var(--surface-soft); }
.suggestion-message-field { position: relative; }
.suggestion-message-field textarea { min-height: 170px; padding-bottom: 32px; }
.suggestion-counter { position: absolute; right: 12px; bottom: 9px; color: var(--muted); font-size: 11px; }
.suggestion-success { padding: 22px 5px; text-align: center; }
.suggestion-success > span { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: white; background: var(--success); font-size: 24px; }
.suggestion-success h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.suggestion-success p { max-width: 520px; margin: 9px auto 20px; color: var(--muted); }

.lineage-prototype-banner { display: flex; align-items: flex-start; gap: 14px; margin: -4px 0 20px; padding: 15px 17px; border: 1px solid #e4ca94; border-radius: 16px; color: #5d4825; background: #fff8e9; }
.lineage-prototype-banner > span { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: white; background: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.lineage-prototype-banner strong { display: block; }
.lineage-prototype-banner p { margin: 3px 0 0; font-size: 13px; }
.lineage-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.lineage-section-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 4vw, 42px); font-weight: 500; line-height: 1.08; }
.lineage-section-head p:not(.eyebrow) { max-width: 670px; margin: 10px 0 0; color: var(--muted); }
.lineage-step-number { flex: 0 0 auto; color: #dfd4e9; font-family: Georgia, serif; font-size: 54px; line-height: 1; }
.lineage-assessment { padding: clamp(22px, 4vw, 38px); }
.lineage-question-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 27px 0 22px; }
.lineage-question { min-width: 0; margin: 0; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: #fcfafe; }
.lineage-question legend { width: 100%; min-height: 74px; display: flex; gap: 10px; padding: 0; color: #50445d; font-size: 13px; font-weight: 700; line-height: 1.45; }
.lineage-question legend > span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--purple); background: var(--surface-soft); font-size: 10px; }
.lineage-question > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lineage-question label { margin: 0; cursor: pointer; }
.lineage-question input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.lineage-question label > span { min-height: 39px; display: grid; place-items: center; padding: 7px 5px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: white; font-size: 11px; }
.lineage-question input:checked + span { border-color: var(--purple); color: var(--purple-dark); background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--purple); }
.lineage-question input:focus-visible + span { outline: 3px solid rgba(118,80,183,.18); outline-offset: 2px; }
.lineage-reveal { display: block; margin-left: auto; }
.lineage-prototype-result { display: none; margin-top: 38px; }
.lineage-prototype-result.visible { display: block; }
.lineage-map-shell { margin-top: 20px; overflow: hidden; border: 1px solid #4b3867; border-radius: 28px; color: white; background: #180f29; box-shadow: 0 24px 60px rgba(35,20,55,.22); }
.lineage-map-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 25px 27px 0; }
.lineage-map-heading h2 { margin: 0; color: white; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.lineage-map-heading > span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #dcc8ef; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lineage-map { display: block; width: min(690px, 100%); height: auto; margin: -4px auto 0; overflow: visible; }
.lineage-stars circle { fill: #f4dc9c; filter: url(#lineage-glow); opacity: .8; }
.lineage-link { fill: none; stroke-width: 2; stroke-linecap: round; opacity: .62; }
.lineage-link.paternal { stroke: #c5a0e3; }
.lineage-link.maternal { stroke: #e5a7c2; }
.lineage-link.inherited { stroke: #b990d6; stroke-dasharray: 5 8; }
.lineage-link.present { stroke: #e5bd68; stroke-width: 2.5; }
.lineage-link.echo { stroke: #775a9b; stroke-dasharray: 2 11; }
.lineage-map-node { cursor: pointer; outline: none; }
.lineage-node-halo { fill: rgba(204,172,231,.08); stroke: rgba(231,204,251,.18); stroke-width: 1; transition: fill .18s ease, stroke .18s ease, transform .18s ease; }
.lineage-node-orb { fill: #2d1c49; stroke: #c6a0df; stroke-width: 2; filter: url(#lineage-glow); transition: fill .18s ease, stroke .18s ease; }
.lineage-node-symbol { fill: #f3d483; font-family: Georgia, serif; font-size: 22px; pointer-events: none; }
.lineage-node-label { fill: #e7dbf1; font-size: 13px; font-weight: 750; pointer-events: none; }
.lineage-map-node:hover .lineage-node-halo, .lineage-map-node:focus-visible .lineage-node-halo, .lineage-map-node.selected .lineage-node-halo { fill: rgba(226,190,105,.17); stroke: rgba(244,213,143,.55); }
.lineage-map-node:hover .lineage-node-orb, .lineage-map-node:focus-visible .lineage-node-orb, .lineage-map-node.selected .lineage-node-orb { fill: #51356f; stroke: #f0ce7f; }
.lineage-node-detail { margin: 0 25px 25px; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.lineage-node-detail h3 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.lineage-node-detail > p:not(.eyebrow) { max-width: 720px; margin: 8px 0 18px; color: #cbbcd8; }
.lineage-node-detail > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.1); }
.lineage-node-detail strong { color: #f0d28a; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.lineage-node-detail span { color: #eee7f4; }
.lineage-pattern-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.lineage-pattern-grid article { min-height: 230px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 10px 27px rgba(54,37,77,.06); }
.lineage-pattern-grid span { color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.lineage-pattern-grid h3 { margin: 22px 0 8px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.lineage-pattern-grid p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.lineage-pattern-grid b { margin-top: auto; color: var(--purple); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.lineage-letter { margin-top: 16px; padding: clamp(28px, 5vw, 52px); border-radius: 26px; color: white; background: linear-gradient(135deg, #7d5bad, #4a326a 65%, #34223f); text-align: center; box-shadow: var(--shadow); }
.lineage-letter h2 { max-width: 780px; margin: 0 auto; font-family: Georgia, serif; font-size: clamp(30px, 4.5vw, 48px); font-weight: 500; line-height: 1.08; }
.lineage-letter > p:last-child { max-width: 690px; margin: 17px auto 0; color: rgba(255,255,255,.75); }
.lineage-journey-heading { margin-top: 40px; }
.lineage-weeks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.lineage-weeks article { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.72); }
.lineage-weeks span, .lineage-weeks strong { display: block; }
.lineage-weeks span { color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.lineage-weeks strong { margin-top: 5px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.lineage-weeks p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.lineage-day-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin: 16px 0; }
.lineage-day-picker button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: white; font-size: 12px; font-weight: 800; cursor: pointer; }
.lineage-day-picker button:hover, .lineage-day-picker button.active { border-color: var(--purple); color: white; background: var(--purple); }
.lineage-day-detail { padding: 23px; border: 1px solid #d8c7e8; border-radius: 20px; background: #f2ebf8; }
.lineage-day-detail > span { color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.lineage-day-detail h3 { margin: 7px 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.lineage-day-detail p { margin: 0 0 17px; color: var(--muted); }
.lineage-future-deliverables { margin-top: 18px; padding: 22px; border: 1px dashed #c7b5d8; border-radius: 18px; background: rgba(255,255,255,.58); }
.lineage-future-deliverables > div { display: flex; flex-wrap: wrap; gap: 8px; }
.lineage-future-deliverables span { padding: 7px 10px; border-radius: 999px; color: var(--purple-dark); background: var(--surface-soft); font-size: 11px; font-weight: 750; }

.badge { display: inline-flex; padding: 6px 9px; border-radius: 999px; color: var(--success); background: #e9f5ef; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.badge.preview { color: #78551f; background: var(--gold-soft); }
.privacy-note { display: flex; gap: 10px; margin-top: 14px; padding: 13px; border-radius: 13px; color: #496659; background: #edf7f1; font-size: 12px; }

.loading { min-height: 360px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.spinner { width: 38px; height: 38px; margin: 0 auto 13px; border: 3px solid #ded2e9; border-top-color: var(--purple); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 34px; border: 1px dashed #cdbfda; border-radius: 18px; color: var(--muted); text-align: center; }
.error-panel { padding: 18px; border: 1px solid #efc7cb; border-radius: 15px; color: var(--danger); background: #fff4f5; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: 360px; padding: 13px 16px; border-radius: 13px; color: white; background: #30263b; box-shadow: var(--shadow); }
.mobile-backdrop { display: none; }

@media (max-width: 980px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oracle-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .tarot-card, .tarot-card img { min-height: 355px; }
}

@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: 285px; transform: translateX(-105%); transition: transform 0.2s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .mobile-backdrop { position: fixed; inset: 0; z-index: 19; display: block; visibility: hidden; opacity: 0; background: rgba(34,24,44,0.4); transition: opacity 0.2s ease, visibility 0.2s ease; }
  .mobile-backdrop.open { visibility: visible; opacity: 1; }
  .menu-button { display: block; }
  .topbar { min-height: 86px; gap: 8px; padding: 10px 14px; }
  .top-actions .button { display: none; }
  .header-main { min-width: 0; gap: 6px; }
  .hello { min-width: 0; }
  .hello strong { max-width: 112px; overflow: visible; font-size: 16px; line-height: 1.12; white-space: normal; }
  .hello span { display: block; overflow: hidden; max-width: 150px; margin-top: 3px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .header-tools { margin-left: auto; gap: 6px; }
  .moon-status { min-height: 40px; gap: 6px; padding: 2px; }
  .moon-orb { width: 32px; height: 32px; }
  .moon-copy strong { max-width: 106px; overflow: hidden; font-size: 8px; letter-spacing: .055em; text-overflow: ellipsis; }
  .header-help { min-height: 40px; padding: 5px; border-radius: 13px; }
  .help-icon { width: 28px; height: 28px; }
  .help-label { display: none; }
  .content { padding: 27px 15px 104px; }
  .admin-viewbar { grid-template-columns: 1fr; gap: 8px; padding: 13px 14px; }
  .admin-viewbar label { text-align: left; }
  .hero { grid-template-columns: 1fr; padding: 30px 23px; }
  .lucky-card { width: 100%; }
  .module-grid, .catalog-grid, .form-grid, .profile-grid, .two-columns, .front-cards, .bonus-grid, .big-three-grid, .birth-chart-overview { grid-template-columns: 1fr; }
  .birth-chart-wheel { width: min(100%, 390px); margin: 0 auto; padding: 8px; border-radius: 18px; }
  .planet-table-row { grid-template-columns: minmax(72px, .7fr) minmax(0, 1.3fr); }
  .planet-table-row span:last-child { grid-column: 2; }
  .install-strip, .purchase-refresh, .explore-row { align-items: flex-start; flex-direction: column; }
  .auth-grid { grid-template-columns: 1fr; gap: 0; }
  .chat-message { max-width: 90%; }
  .chat-guide-header { margin: -15px -15px 12px; padding: 13px 14px; border-radius: 18px 18px 0 0; }
  .chat-guide-header > img { width: 48px; height: 48px; }
  .chat-guide-header > small { display: none; }
  .chat-guide-message { max-width: 94%; }
  .chat-form { grid-template-columns: 1fr; }
  .chat-panel { padding: 15px; border-radius: 18px; }
  .chat-messages { min-height: 48vh; max-height: 58vh; padding-top: 8px; }
  .chat-form .button { min-height: 48px; }
  .form-grid .wide { grid-column: auto; }
  .oracle-layout { grid-template-columns: 1fr; gap: 16px; }
  .tarot-card {
    width: min(48vw, 190px);
    min-height: 0;
    aspect-ratio: 5 / 8;
    margin: auto;
    border-radius: 17px;
  }
  .tarot-card img { height: 100%; min-height: 0; }
  .orientation { left: 8px; bottom: 8px; padding: 4px 6px; font-size: 7px; }
  .spread { grid-template-columns: 1fr; }
  .spread-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; }
  .spread-card .position { grid-column: 1 / -1; }
  .spread-visual { width: 96px; height: 154px; }
  .spread-card strong { margin-top: 2px; }
  .spread-card p { grid-column: 2; }
  .monthly-stack .spread-card { grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; }
  .monthly-stack .spread-visual { width: 96px; height: 154px; }
  .monthly-stack .spread-card strong { margin-top: 2px; font-size: 20px; }
  .monthly-stack .spread-card p { font-size: 13px; line-height: 1.5; }
  .archive-item { grid-template-columns: 1fr; }
  .help-page-head { gap: 11px; margin-bottom: 24px; }
  .help-page-head h1 { font-size: 41px; }
  .help-page-head p { font-size: 16px; }
  .help-title-icon { width: 37px; height: 37px; font-size: 21px; }
  .help-guide-grid { grid-template-columns: 1fr; }
  .help-guide { min-height: 112px; padding: 17px; }
  .help-guide h2 { font-size: 21px; }
  .help-guide p { font-size: 14px; }
  .help-group > h2 { padding: 18px; font-size: 24px; }
  .help-item summary { min-height: 70px; padding: 13px 14px; }
  .help-number { width: 32px; height: 32px; }
  .help-item p { padding: 0 48px 20px 59px; font-size: 14px; }
  .suggestions-panel { padding: 20px 17px; }
  .rating-star { width: 42px; height: 42px; font-size: 32px; }
  .lineage-prototype-banner { align-items: flex-start; }
  .lineage-section-head { gap: 10px; }
  .lineage-step-number { font-size: 38px; }
  .lineage-question-list, .lineage-pattern-grid, .lineage-weeks { grid-template-columns: 1fr; }
  .lineage-question legend { min-height: 0; margin-bottom: 14px; }
  .lineage-reveal { width: 100%; }
  .lineage-map-shell { border-radius: 22px; }
  .lineage-map-heading { padding: 20px 18px 0; }
  .lineage-map-heading h2 { font-size: 28px; }
  .lineage-map-heading > span { display: none; }
  .lineage-node-label { font-size: 16px; }
  .lineage-node-detail { margin: 0 14px 14px; padding: 18px; }
  .lineage-node-detail > div { grid-template-columns: 1fr; gap: 5px; }
  .lineage-pattern-grid article { min-height: 0; }
  .lineage-day-picker { gap: 5px; }
  .lineage-day-picker button { border-radius: 9px; }
  .mobile-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); box-shadow: 0 -8px 24px rgba(53,35,74,.08); }
  .mobile-tab { min-width: 0; display: grid; justify-items: center; gap: 2px; padding: 3px 1px; color: #62566e; text-decoration: none; }
  .mobile-tab > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; font-family: Georgia, serif; font-size: 20px; }
  .mobile-tab small { font-size: 10px; }
  .mobile-tab.active { color: var(--purple); }
  .mobile-tab.active > span { color: white; background: var(--purple); }
}

@media (max-width: 420px) {
  .login-original { padding: 16px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 155px; }
  .page-title { font-size: 36px; }
  .lineage-prototype-banner { flex-direction: column; }
  .lineage-assessment { padding: 19px 15px; }
  .lineage-question { padding: 14px; }
  .lineage-question > div { gap: 4px; }
  .lineage-question label > span { padding: 6px 2px; font-size: 10px; }
  .lineage-map-heading { padding: 18px 15px 0; }
  .lineage-node-detail h3 { font-size: 24px; }
  .lineage-letter { padding: 30px 20px; }
  .lineage-day-picker { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .lineage-day-detail { padding: 19px 16px; }
}

@media (max-width: 340px) {
  .content { padding-right: 12px; padding-left: 12px; }
  .tarot-card { width: 160px; }
  .spread-card,
  .monthly-stack .spread-card { grid-template-columns: 84px minmax(0, 1fr); column-gap: 11px; padding: 12px; }
  .spread-visual,
  .monthly-stack .spread-visual { width: 84px; height: 134px; }
  .topbar { padding-right: 9px; padding-left: 9px; }
  .hello strong { max-width: 105px; font-size: 14px; }
  .hello span { max-width: 105px; }
  .moon-copy strong { max-width: 68px; font-size: 8px; }
}
