:root {
  --bg: #0e1119;
  --bg-soft: #141827;
  --surface: rgba(236, 240, 255, 0.07);
  --surface-strong: rgba(236, 240, 255, 0.11);
  --line: rgba(207, 215, 255, 0.16);
  --line-strong: rgba(132, 154, 255, 0.5);
  --text: #f3f6ff;
  --muted: #aeb8d8;
  --gold: #9aaeff;
  --sage: #78d8c7;
  --clay: #ef7f8b;
  --teal: #62d1e8;
  --ink: #0a0d14;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --font-display: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    linear-gradient(120deg, rgba(132, 154, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #0e1119 0%, #151b2d 52%, #0e1119 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(243, 246, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 246, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 17, 25, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(132, 154, 255, 0.34), rgba(98, 209, 232, 0.16));
}

.brand-mark::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.nav-links {
  gap: 6px;
}

.nav-menu {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 160ms ease, background 160ms ease;
}

.nav-cta {
  border: 1px solid var(--line-strong);
  color: var(--text) !important;
  background: rgba(132, 154, 255, 0.13);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(236, 240, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.page {
  min-height: calc(100vh - 160px);
}

.container,
main,
section,
.hero-copy {
  min-width: 0;
}

.flash-stack {
  padding-top: 18px;
}

.app-alert {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow);
}

.app-alert-success {
  border-color: rgba(120, 216, 199, 0.5);
}

.app-alert-warning {
  border-color: rgba(132, 154, 255, 0.58);
}

.app-alert-danger {
  border-color: rgba(181, 101, 91, 0.58);
}

.hero-section {
  padding: 54px 0 26px;
}

.hero-grid,
.workspace-grid,
.reading-layout,
.status-layout,
.daily-layout,
.admin-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  align-items: stretch;
}

.hero-copy {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.03;
  max-width: 100%;
  hyphens: none;
  overflow-wrap: break-word;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.55rem, 4.6vw, 4.35rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.hero-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 1.13rem;
}

.hero-actions,
.reading-actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.btn-app {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 16px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn-app:hover,
.btn-app:focus-visible {
  transform: translateY(-1px);
  color: var(--text);
}

.btn-app-primary {
  border-color: var(--gold);
  background: linear-gradient(135deg, #9aaeff, #62d1e8);
  color: #07101a;
}

.btn-app-primary:hover,
.btn-app-primary:focus-visible {
  color: #07101a;
}

.btn-app-ghost {
  background: rgba(236, 240, 255, 0.06);
}

.btn-wide {
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: rgba(236, 240, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 700;
}

.surface,
.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(132, 154, 255, 0.15), rgba(98, 209, 232, 0.08)),
    var(--surface);
}

.panel-kicker {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel h2 {
  margin-top: 20px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.mini-card {
  width: min(100%, 260px);
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(132, 154, 255, 0.24), rgba(98, 209, 232, 0.12)),
    repeating-linear-gradient(45deg, rgba(243, 246, 255, 0.04) 0 1px, transparent 1px 12px);
}

.mini-card.large {
  width: min(100%, 340px);
}

.mini-card span {
  color: var(--text);
  font-size: clamp(5rem, 12vw, 9rem);
}

.is-reversed .mini-card,
.mini-card.is-reversed {
  border-color: rgba(181, 101, 91, 0.7);
}

.text-link,
.table-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 800;
}

.card-art {
  display: block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  object-fit: cover;
  background: rgba(236, 240, 255, 0.04);
}

.hero-card-art {
  align-self: center;
}

.card-art.large {
  max-width: 340px;
}

.seo-section {
  margin-bottom: 72px;
  padding: 28px;
}

.seo-section p {
  max-width: 920px;
  margin: 16px 0 0;
}

.auth-teaser {
  display: grid;
  gap: 14px;
}

.surface-soft {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(236, 240, 255, 0.035);
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding-bottom: 72px;
}

.reading-list.compact {
  padding-bottom: 0;
}

.stat-email {
  font-size: 1rem !important;
  overflow-wrap: anywhere;
}

.text-link:hover,
.table-link:hover {
  color: var(--text);
}

.workspace-section {
  padding: 36px 0 72px;
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
}

.reading-form,
.compact-panel,
.prose-block,
.question-panel,
.auth-card,
.admin-panel,
.status-card {
  padding: 24px;
}

.section-heading,
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-heading {
  margin-bottom: 22px;
}

.page-head {
  padding: 58px 12px 24px;
}

.page-head p {
  max-width: 740px;
  margin: 14px 0 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

label > span,
.search-field span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.span-2 {
  grid-column: span 2;
}

.form-control {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 13, 14, 0.72);
  color: var(--text);
}

.form-control:focus {
  border-color: var(--gold);
  background: rgba(12, 13, 14, 0.86);
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(132, 154, 255, 0.16);
}

.form-control::placeholder {
  color: rgba(174, 184, 216, 0.72);
}

.plan-selector,
.pricing-grid,
.stats-grid {
  display: grid;
  gap: 14px;
}

.plan-selector {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0;
}

.plan-option {
  position: relative;
  min-height: 150px;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(236, 240, 255, 0.045);
  cursor: pointer;
}

.plan-option input {
  position: absolute;
  opacity: 0;
}

.plan-option:has(input:checked),
.plan-option.is-featured {
  border-color: var(--line-strong);
  background: rgba(132, 154, 255, 0.12);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 900;
}

.plan-top > span {
  min-width: 0;
}

.plan-top b {
  flex: 0 0 auto;
  white-space: nowrap;
}

.plan-top b,
.price {
  color: var(--gold);
}

.plan-option small {
  color: var(--muted);
}

.plan-meta {
  align-self: end;
  color: rgba(174, 184, 216, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

.form-note,
.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.insight-column {
  display: grid;
  gap: 24px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  color: var(--muted);
}

.feature-list b {
  color: var(--text);
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list a,
.mini-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.mini-list a:last-child,
.mini-list div:last-child {
  border-bottom: 0;
}

.mini-list small {
  color: var(--muted);
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 72px;
}

.pricing-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.price-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  min-width: 0;
  overflow: hidden;
}

.price-card.is-featured {
  border-color: var(--line-strong);
  background: rgba(132, 154, 255, 0.12);
}

.price-card h2 {
  font-size: clamp(1.45rem, 1.65vw, 2rem);
  line-height: 1.08;
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: clamp(1.95rem, 2.2vw, 2.4rem);
  font-weight: 900;
}

.price-description {
  min-height: 3.2em;
}

.plan-detail-list {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(207, 215, 255, 0.12);
  padding-top: 12px;
}

.plan-detail-list b {
  color: var(--text);
  font-size: 0.88rem;
}

.plan-detail-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.service-strip {
  padding: 22px 12px 12px;
}

.service-grid,
.faq-list,
.legal-layout {
  display: grid;
  gap: 14px;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.service-grid-large {
  padding-bottom: 36px;
}

.service-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
}

.service-card b {
  color: var(--text);
  font-size: 1.05rem;
}

.service-card span {
  color: var(--muted);
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: center;
  padding: 58px 12px 36px;
}

.service-hero p {
  max-width: 760px;
  margin-top: 18px;
  font-size: 1.1rem;
}

.steps-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps-list li {
  display: grid;
  gap: 4px;
}

.steps-list b {
  color: var(--text);
}

.steps-list span {
  color: var(--muted);
}

.check-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 14px 0;
  color: var(--muted);
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
}

.social-auth {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.topup-layout,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 72px;
}

.topup-card,
.profile-card {
  width: 100%;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  width: 100%;
}

.amount-option {
  position: relative;
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(236, 240, 255, 0.045);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.amount-option input {
  position: absolute;
  opacity: 0;
}

.amount-option:has(input:checked) {
  border-color: var(--line-strong);
  background: rgba(132, 154, 255, 0.14);
}

.settings-nav {
  display: grid;
  gap: 8px;
}

.settings-nav a {
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--muted);
}

.settings-nav a:hover {
  background: rgba(236, 240, 255, 0.08);
  color: var(--text);
}

.settings-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
}

.faq-list,
.legal-layout {
  padding-bottom: 72px;
}

.inline-admin-form {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mini-input {
  width: 112px;
  min-height: 34px;
  padding: 6px 8px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 18px;
}

.reading-list {
  display: grid;
  gap: 14px;
  padding-bottom: 72px;
}

.reading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.row-title {
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 900;
}

.reading-row p {
  margin: 4px 0 8px;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-meta span {
  color: var(--muted);
  font-size: 0.86rem;
}

.empty-state {
  padding: 40px;
  text-align: center;
}

.empty-state p {
  max-width: 540px;
  margin: 12px auto 22px;
}

.reading-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding: 28px;
}

.reading-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.reading-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  margin-top: 24px;
  padding-bottom: 72px;
}

.toc-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.toc-panel a {
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--muted);
}

.toc-panel a:hover {
  background: rgba(236, 240, 255, 0.07);
  color: var(--text);
}

.reading-content,
.spread-section {
  display: grid;
  gap: 22px;
}

.astro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.astro-grid div {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: rgba(236, 240, 255, 0.035);
}

.astro-grid span,
.detail-list dt,
.stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.astro-grid b,
.stat-card b {
  color: var(--text);
  font-size: 1.24rem;
}

.question-panel p {
  margin: 0;
  color: var(--text);
  font-size: 1.16rem;
}

.prose-block h2 {
  margin-bottom: 18px;
}

.prose {
  color: var(--text);
}

.prose p,
.prose li,
.prose blockquote {
  color: var(--text);
}

.prose p:last-child,
.prose ul:last-child,
.prose ol:last-child {
  margin-bottom: 0;
}

.card-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.tarot-card {
  min-height: 320px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(160deg, rgba(132, 154, 255, 0.14), rgba(98, 209, 232, 0.08)),
    rgba(236, 240, 255, 0.04);
}

.tarot-card.is-reversed {
  border-color: rgba(181, 101, 91, 0.6);
}

.tarot-card-art {
  max-width: 100%;
  margin-bottom: 4px;
}

.tarot-card b {
  color: var(--text);
}

.tarot-card small,
.tarot-card em {
  color: var(--muted);
  font-style: normal;
}

.interpretation-accordion {
  display: grid;
  gap: 10px;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(236, 240, 255, 0.04);
}

.accordion-button {
  background: rgba(236, 240, 255, 0.035);
  color: var(--text);
  font-weight: 800;
}

.accordion-button:not(.collapsed),
.accordion-button:focus {
  background: rgba(132, 154, 255, 0.12);
  color: var(--text);
  box-shadow: none;
}

.accordion-body {
  background: rgba(12, 13, 14, 0.34);
}

.daily-layout,
.status-layout,
.auth-layout {
  padding: 58px 12px 72px;
}

.daily-layout,
.status-layout {
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
}

.daily-card,
.auth-card {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: 28px;
}

.auth-layout {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 460px);
}

.auth-card label,
.auth-card .form-control {
  width: 100%;
}

.detail-list {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.detail-list dd {
  margin: 0;
  color: var(--text);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.stat-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.stat-card b {
  font-size: 2rem;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  margin-bottom: 24px;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
}

.app-table th,
.app-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  color: var(--text);
  vertical-align: middle;
}

.app-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.app-table small {
  display: block;
  color: var(--muted);
}

.app-table form {
  display: inline;
}

.danger {
  color: var(--clay);
}

.status-paid,
.status-fulfilled,
.status-succeeded {
  border-color: rgba(120, 216, 199, 0.58);
  color: #d8ead1;
}

.status-pending {
  border-color: rgba(132, 154, 255, 0.58);
}

.status-cancelled,
.status-failed,
.status-refunded {
  border-color: rgba(181, 101, 91, 0.58);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
}

.footer-grid > div,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.footer-grid b {
  color: var(--text);
}

.footer-links a {
  color: var(--muted);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.site-header {
  background: rgba(4, 9, 22, 0.82);
  box-shadow: 0 1px 0 rgba(166, 142, 255, 0.08);
}

.nav-shell {
  min-height: 86px;
}

.brand {
  color: #fff;
  font-size: 1.62rem;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  color: #a98cff;
  background: transparent;
  filter: drop-shadow(0 0 18px rgba(169, 140, 255, 0.36));
}

.brand-mark::after {
  display: none;
}

.nav-links {
  margin-left: auto;
  margin-right: auto;
  gap: 22px;
}

.nav-links a {
  color: rgba(235, 238, 255, 0.74);
  font-size: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-actions a,
.balance-pill,
.login-pill {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(187, 198, 255, 0.22);
  border-radius: var(--radius);
  padding: 11px 18px;
  color: #fff;
  background: rgba(18, 25, 46, 0.58);
}

.balance-pill {
  color: rgba(238, 241, 255, 0.78);
}

.balance-pill .ui-icon {
  color: #9d8cff;
}

.balance-pill span {
  white-space: nowrap;
}

.balance-pill span::first-letter {
  color: inherit;
}

.login-pill {
  font-weight: 900;
}

.hero-section {
  position: relative;
  padding: 38px 0 30px;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 48% 44%, rgba(134, 113, 255, 0.38) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 18%, rgba(119, 199, 255, 0.32) 0 1px, transparent 2px),
    radial-gradient(circle at 67% 74%, rgba(230, 220, 255, 0.26) 0 1px, transparent 2px);
}

.hero-grid-premium {
  grid-template-columns: minmax(0, 1.25fr) minmax(500px, 0.75fr);
  gap: 38px;
  align-items: center;
}

.hero-copy {
  min-height: 560px;
}

.hero-copy h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2.7rem, 3.22vw, 3.55rem);
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 .hero-line {
  color: #fff;
  white-space: nowrap;
}

.hero-copy h1 .hero-accent {
  color: #a78bff;
  white-space: nowrap;
  text-shadow: 0 0 32px rgba(129, 105, 255, 0.32);
}

.hero-copy p {
  max-width: 670px;
  color: rgba(234, 237, 255, 0.72);
  font-size: clamp(1.1rem, 1.4vw, 1.32rem);
  line-height: 1.65;
}

.btn-app {
  min-height: 58px;
  border-color: rgba(214, 221, 255, 0.34);
  padding: 15px 24px;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-app-primary {
  border-color: rgba(166, 142, 255, 0.72);
  background: linear-gradient(135deg, #744cff 0%, #62b9ff 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(98, 105, 255, 0.28);
}

.btn-app-primary:hover,
.btn-app-primary:focus-visible {
  color: #fff;
}

.btn-app-ghost {
  background: rgba(10, 16, 31, 0.55);
}

.trust-row-premium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 760px);
  margin-top: 48px;
}

.trust-row-premium div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 6px 14px;
  padding-right: 24px;
}

.trust-row-premium div + div {
  border-left: 1px solid rgba(214, 221, 255, 0.14);
  padding-left: 24px;
}

.trust-icon {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  color: #a98cff;
}

.trust-row-premium b {
  color: #fff;
  font-weight: 800;
}

.trust-row-premium span {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: rgba(234, 237, 255, 0.62);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 500;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-panel {
  border-color: rgba(205, 214, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(39, 51, 92, 0.56), rgba(8, 13, 28, 0.76)),
    rgba(10, 16, 31, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.33);
}

.hero-card-panel {
  min-height: 352px;
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding: 22px 28px;
}

.hero-card-art {
  max-width: 196px;
  border-color: rgba(220, 226, 255, 0.38);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(8, 10, 26, 0.7), 0 0 42px rgba(139, 126, 255, 0.26);
}

.daily-copy {
  display: grid;
  gap: 14px;
}

.daily-copy > span {
  color: rgba(236, 239, 255, 0.72);
  font-size: 1.08rem;
}

.daily-copy h2 {
  color: #a78bff;
  font-size: clamp(1.9rem, 2.6vw, 2.45rem);
  text-shadow: 0 0 24px rgba(167, 139, 255, 0.28);
}

.daily-copy p {
  max-width: 360px;
  margin: 0;
  color: rgba(242, 244, 255, 0.82);
  font-size: 1.04rem;
}

.daily-copy .btn-app {
  width: min(100%, 330px);
  justify-content: space-between;
  margin-top: 8px;
}

.hero-dots {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.hero-dots i {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: rgba(229, 234, 255, 0.13);
}

.hero-dots i:first-child {
  background: #a78bff;
  box-shadow: 0 0 18px rgba(167, 139, 255, 0.56);
}

.topic-panel {
  min-height: 184px;
  padding: 22px;
}

.topic-panel h2 {
  margin-bottom: 16px;
  font-size: 1.16rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.topic-card {
  min-height: 108px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px solid rgba(205, 214, 255, 0.2);
  border-radius: var(--radius);
  padding: 13px 8px;
  color: rgba(242, 244, 255, 0.86);
  background: rgba(16, 24, 45, 0.66);
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.topic-card:hover,
.topic-card:focus-visible,
.topic-card.is-active {
  border-color: rgba(167, 139, 255, 0.78);
  background: rgba(91, 65, 168, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.topic-icon {
  width: 32px;
  height: 32px;
  color: #b9a7ff;
}

.topic-card span {
  font-size: 0.88rem;
  line-height: 1.2;
}

.popular-strip {
  padding-top: 30px;
  padding-bottom: 12px;
}

.section-heading-inline {
  align-items: center;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.popular-card {
  position: relative;
  min-height: 182px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-content: start;
  gap: 8px 16px;
  padding: 20px 54px 20px 18px;
  background:
    linear-gradient(145deg, rgba(39, 51, 92, 0.5), rgba(10, 16, 31, 0.8)),
    rgba(13, 21, 40, 0.84);
  transition: transform 160ms ease, border-color 160ms ease;
}

.popular-card:hover,
.popular-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 255, 0.55);
}

.popular-icon {
  grid-row: span 3;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #c5a8ff;
  background: linear-gradient(135deg, rgba(117, 79, 255, 0.44), rgba(40, 33, 84, 0.58));
}

.popular-icon svg,
.arrow-box svg,
.service-card-icon {
  width: 34px;
  height: 34px;
}

.popular-icon-blue {
  color: #a9c8ff;
  background: linear-gradient(135deg, rgba(89, 128, 255, 0.42), rgba(28, 44, 90, 0.58));
}

.popular-icon-teal {
  color: #81eff8;
  background: linear-gradient(135deg, rgba(50, 205, 214, 0.42), rgba(25, 75, 86, 0.62));
}

.popular-card b {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.3;
}

.popular-card p {
  margin: 0;
  color: rgba(234, 237, 255, 0.72);
  font-size: 0.94rem;
}

.popular-card strong {
  align-self: end;
  margin-top: 12px;
  color: #fff;
  font-size: 1.35rem;
}

.arrow-box {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 221, 255, 0.24);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(236, 240, 255, 0.07);
}

.service-strip-secondary {
  padding-top: 18px;
}

.service-card {
  min-height: 148px;
  border-color: rgba(205, 214, 255, 0.16);
  background: linear-gradient(145deg, rgba(39, 51, 92, 0.4), rgba(10, 16, 31, 0.72));
}

.service-card-icon {
  color: #a98cff;
}

.pricing-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  padding: 8px 12px 24px;
}

.pricing-guide-card {
  padding: 24px;
}

.pricing-guide-card h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
}

.pricing-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pricing-guide-list span {
  min-height: 78px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(205, 214, 255, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  color: rgba(242, 244, 255, 0.88);
  background: rgba(236, 240, 255, 0.055);
  font-weight: 800;
}

.narrative-section,
.testimonial-section {
  padding-top: 42px;
  padding-bottom: 14px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.story-card {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.story-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 255, 0.44);
  border-radius: 50%;
  color: #b9a7ff;
  font-weight: 900;
}

.story-card h3 {
  font-size: 1.34rem;
  line-height: 1.18;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.testimonial-card {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(39, 51, 92, 0.34), rgba(10, 16, 31, 0.68)),
    rgba(13, 21, 40, 0.76);
}

.testimonial-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.testimonial-head span {
  color: #fff;
  font-weight: 900;
}

.testimonial-head b {
  flex: 0 0 auto;
  border: 1px solid rgba(167, 139, 255, 0.36);
  border-radius: var(--radius);
  padding: 4px 8px;
  color: #b9a7ff;
  font-size: 0.76rem;
}

.testimonial-card p {
  margin: 0;
  font-size: 0.95rem;
}

.faq-toolbar {
  padding: 0 12px 18px;
}

.faq-search {
  max-width: 720px;
}

.faq-accordion {
  padding-bottom: 72px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  font-weight: 900;
  line-height: 1.18;
}

.faq-item summary .ui-icon {
  flex: 0 0 auto;
  transform: rotate(90deg);
  color: #a98cff;
  transition: transform 180ms ease;
}

.faq-item[open] summary .ui-icon {
  transform: rotate(-90deg);
}

.faq-item p {
  margin: 0;
  border-top: 1px solid rgba(207, 215, 255, 0.12);
  padding: 0 24px 24px;
  color: rgba(234, 237, 255, 0.78);
  font-size: 1.02rem;
}

.surface {
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.reveal-on-scroll {
  transition: opacity 420ms ease, transform 420ms ease, border-color 180ms ease, background 180ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-card-art {
    animation: cardFloat 5.5s ease-in-out infinite;
  }

  .hero-dots i:first-child,
  .brand-mark {
    animation: softPulse 3.4s ease-in-out infinite;
  }
}

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

@keyframes softPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(169, 140, 255, 0.28));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(169, 140, 255, 0.56));
  }
}

@media (max-width: 1180px) {
  .nav-shell {
    position: relative;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 12px;
    z-index: 20;
    width: min(440px, calc(100vw - 24px));
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(205, 214, 255, 0.22);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(11, 15, 28, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    gap: 4px;
  }

  .nav-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .nav-actions a,
  .balance-pill,
  .login-pill {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 1200px) {
  .hero-grid-premium {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
    padding-top: 40px;
  }

  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-guide,
  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    min-height: 76px;
    gap: 9px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand {
    gap: 8px;
    font-size: 1.36rem;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .nav-actions {
    gap: 6px;
  }

  .login-pill {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.92rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.18rem, 10vw, 2.95rem);
  }

  .hero-copy h1 .hero-line,
  .hero-copy h1 .hero-accent {
    white-space: normal;
  }

  .hero-copy h1 span {
    display: inline;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .trust-row-premium,
  .popular-grid {
    grid-template-columns: 1fr;
  }

  .trust-row-premium div,
  .trust-row-premium div + div {
    border-left: 0;
    border-top: 1px solid rgba(214, 221, 255, 0.14);
    padding: 16px 0 0;
  }

  .trust-row-premium div:first-child {
    border-top: 0;
  }

  .hero-card-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 22px;
  }

  .daily-copy {
    justify-items: stretch;
    width: 100%;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popular-card {
    min-height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 992px) {
  .hero-grid,
  .workspace-grid,
  .reading-layout,
  .daily-layout,
  .status-layout,
  .admin-grid,
  .account-grid,
  .service-hero,
  .topup-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel {
    min-height: auto;
  }

  .plan-selector,
  .pricing-grid,
  .stats-grid,
  .astro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .hero-section {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(1.95rem, 9.2vw, 3rem);
    line-height: 1.08;
  }

  .form-grid,
  .plan-selector,
  .pricing-grid,
  .stats-grid,
  .astro-grid,
  .search-panel,
  .reading-row {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .reading-hero,
  .page-head,
  .section-heading,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .reading-actions,
  .reading-actions .btn-app,
  .hero-actions .btn-app,
  .reading-row .btn-app {
    width: 100%;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc-panel,
  .reading-actions,
  .flash-stack {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .surface,
  .hero-panel {
    border: 1px solid #ddd;
    box-shadow: none;
    background: #fff;
  }

  p,
  .prose p,
  .prose li {
    color: #111;
  }
}
