/* ==========================================================================
   Dr. Jasdeep Kaur — Tarot & Spiritual Guidance
   Shared stylesheet
   --------------------------------------------------------------------------
   Contents
   01. Design tokens
   02. Reset & base
   03. Celestial background
   04. Layout utilities
   05. Buttons & pills
   06. Header & navigation
   07. Hero
   08. Section headings & generic cards
   09. Service cards
   10. Tarot card components (deck, flip, drawn cards)
   11. Reading experience (steps, spread, results)
   12. Daily tarot
   13. Forms
   14. Pricing, packages & wallet
   15. Testimonials, FAQ, timeline
   16. Footer
   17. Modal & toasts
   18. Helper utilities (placeholders, skip link, dividers)
   19. Responsive breakpoints
   20. Motion & print preferences
   ========================================================================== */

/* 01. Design tokens ------------------------------------------------------- */
:root {
  --ink: #04030a;
  --night: #0a0821;
  --midnight: #12103a;
  --violet-900: #1b1442;
  --violet-700: #2e2069;
  --violet-500: #523ba3;
  --violet-400: #7d60d4;

  --gold-100: #fdf4d8;
  --gold-300: #f1da97;
  --gold-500: #d4af37;
  --gold-700: #a3801f;

  --rose: #e6a6cd;
  --sky: #8fc4f0;

  --text: #ece9f8;
  --text-muted: #b5afd2;
  --text-dim: #8b85ab;

  --line: rgba(212, 175, 55, 0.24);
  --line-soft: rgba(255, 255, 255, 0.09);
  --glass: rgba(22, 17, 51, 0.66);
  --glass-strong: rgba(15, 11, 38, 0.9);

  --ok: #7fd6a8;
  --warn: #f0c26b;
  --danger: #f0919a;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 10px 24px -16px rgba(0, 0, 0, 0.9);
  --shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.95);
  --glow-gold: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 14px 40px -18px rgba(212, 175, 55, 0.55);
  --glow-violet: 0 18px 46px -22px rgba(125, 96, 212, 0.85);

  --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 1180px;
  --header-h: 78px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 02. Reset & base -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(82, 59, 163, 0.42), transparent 62%),
    radial-gradient(880px 520px at 8% 6%, rgba(46, 32, 105, 0.5), transparent 60%),
    radial-gradient(1000px 700px at 50% 108%, rgba(27, 20, 66, 0.72), transparent 65%),
    linear-gradient(180deg, #06050f 0%, #0a0821 45%, #06050f 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.68;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.005em;
  margin: 0 0 0.6em;
  color: #fff;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.05rem); font-weight: 500; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
h4 { font-size: 1.12rem; letter-spacing: 0.01em; }

p { margin: 0 0 1.05em; }

a { color: var(--gold-300); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-100); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1.05em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

strong { color: #fff; font-weight: 600; }

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 2.5rem 0;
}

::selection { background: rgba(212, 175, 55, 0.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -70px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--gold-500);
  color: #1a1405;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: #1a1405; }

/* 03. Celestial background ------------------------------------------------ */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.starfield::before,
.starfield::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-repeat: repeat;
}

/* Two star layers at different densities, drifting slowly */
.starfield::before {
  background-image:
    radial-gradient(1.7px 1.7px at 20px 30px, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1.3px 1.3px at 120px 90px, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.1px 1.1px at 220px 40px, rgba(241, 218, 151, 0.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 310px 170px, rgba(255, 255, 255, 0.65), transparent 60%),
    radial-gradient(1px 1px at 60px 200px, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 400px 250px, rgba(143, 196, 240, 0.7), transparent 60%);
  background-size: 460px 300px;
  animation: drift 140s linear infinite, twinkle 6s ease-in-out infinite alternate;
  opacity: 0.75;
}

.starfield::after {
  background-image:
    radial-gradient(2.4px 2.4px at 90px 130px, rgba(255, 255, 255, 0.85), transparent 62%),
    radial-gradient(1.9px 1.9px at 380px 60px, rgba(241, 218, 151, 0.75), transparent 62%),
    radial-gradient(2.1px 2.1px at 250px 300px, rgba(230, 166, 205, 0.6), transparent 62%);
  background-size: 620px 420px;
  animation: drift 220s linear infinite reverse, twinkle 9s ease-in-out infinite alternate;
  opacity: 0.55;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-460px, -300px, 0); }
}

@keyframes twinkle {
  from { opacity: 0.35; }
  to { opacity: 0.85; }
}

/* 04. Layout utilities ---------------------------------------------------- */
.page { position: relative; z-index: 1; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
/* The header may run slightly wider than the reading column so all nine
   navigation items and the call to action fit on one line. */
.container--wide { max-width: 1360px; }

.section { padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; }
.section--tight { padding-block: clamp(2.4rem, 4vw, 3.4rem); }
.section--alt {
  background: linear-gradient(180deg, rgba(18, 16, 58, 0.55), rgba(10, 8, 33, 0.25));
  border-block: 1px solid var(--line-soft);
}

/* Keep in-page anchor targets clear of the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 66ch; }
.measure-sm { max-width: 48ch; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.small { font-size: 0.9rem; }
.xsmall { font-size: 0.8rem; }
.gold { color: var(--gold-300); }
.nowrap { white-space: nowrap; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 0.6rem; }
.gap { gap: 1rem; }
.gap-lg { gap: 1.75rem; }

.section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.section-head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(270deg, transparent, var(--gold-500));
}

.lede { font-size: 1.08rem; color: var(--text-muted); }

/* 05. Buttons & pills ----------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-fg: #22190a;
  --btn-border: rgba(255, 236, 178, 0.6);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 58%, var(--gold-700));
  box-shadow: var(--glow-gold);
}
.btn--primary:hover {
  --btn-fg: #1c1406;
  box-shadow: 0 0 0 1px rgba(255, 236, 178, 0.7), 0 18px 46px -16px rgba(212, 175, 55, 0.8);
}

.btn--outline {
  --btn-fg: var(--gold-100);
  --btn-border: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.07);
}
.btn--outline:hover { background: rgba(212, 175, 55, 0.15); }

.btn--ghost {
  --btn-fg: var(--text);
  --btn-border: var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--line); }

.btn--violet {
  --btn-fg: #fff;
  --btn-border: rgba(160, 136, 232, 0.5);
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  box-shadow: var(--glow-violet);
}

.btn--sm { padding: 0.68rem 1.1rem; font-size: 0.85rem; }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.35);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-100);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill--violet {
  border-color: rgba(160, 136, 232, 0.42);
  background: rgba(125, 96, 212, 0.14);
  color: #ded4ff;
}
.pill--soft {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* 06. Header & navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(6, 5, 15, 0.92), rgba(6, 5, 15, 0.62));
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(6, 5, 15, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, 1);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; }
.brand:hover { color: #fff; }

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 25%, rgba(212, 175, 55, 0.35), rgba(27, 20, 66, 0.9));
  color: var(--gold-300);
  font-size: 1.05rem;
  box-shadow: inset 0 0 14px rgba(212, 175, 55, 0.28);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-family: var(--font-serif); font-size: 1.22rem; font-weight: 600; letter-spacing: 0.01em; }
.brand__tag {
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.primary-nav { display: flex; align-items: center; gap: 1.4rem; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.62rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-list a[aria-current="page"] {
  color: var(--gold-100);
  background: rgba(212, 175, 55, 0.12);
}

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-100);
  font-size: 0.8rem;
  font-weight: 600;
}
.credit-chip[hidden] { display: none; }
.credit-chip__dot { color: var(--gold-500); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-300);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 880;
  background: rgba(3, 2, 8, 0.66);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* 07. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 460px at 82% 18%, rgba(212, 175, 55, 0.13), transparent 65%),
    radial-gradient(560px 420px at 12% 78%, rgba(125, 96, 212, 0.2), transparent 68%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero__title { margin-bottom: 1rem; }
.hero__title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-100), var(--gold-500) 60%, var(--gold-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub { font-size: 1.06rem; color: var(--text-muted); max-width: 54ch; }
.hero__cta { margin: 1.7rem 0 1.9rem; }

.trust-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.trust-list li::before {
  content: "✦";
  color: var(--gold-500);
  font-size: 0.8rem;
  line-height: 1.7;
}

.hero__art { position: relative; }
.hero__art img {
  width: 100%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.65));
  animation: float 9s ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translateY(-8px); }
  to { transform: translateY(10px); }
}

.moon-phases {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  color: var(--gold-500);
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  opacity: 0.85;
  margin-top: 0.5rem;
}
.moon-phases span { opacity: 0.7; }

/* Page banner (inner pages) */
.page-hero {
  padding-block: clamp(2.6rem, 5vw, 4rem) clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 1.8rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.page-hero p { color: var(--text-muted); max-width: 68ch; margin-inline: auto; }

.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold-300); }

/* 08. Section headings & generic cards ------------------------------------ */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.card--hover:hover {
  transform: translateY(-5px);
  border-color: var(--line);
  box-shadow: var(--shadow), 0 0 0 1px rgba(212, 175, 55, 0.16);
}
.card--gold { border-color: var(--line); background: linear-gradient(165deg, rgba(212, 175, 55, 0.1), rgba(22, 17, 51, 0.72)); }
.card--flush { padding: 0; overflow: hidden; }
.card__title { margin-bottom: 0.5rem; }
.card__foot {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 25%, rgba(212, 175, 55, 0.28), rgba(27, 20, 66, 0.85));
  color: var(--gold-300);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.callout {
  border-left: 3px solid var(--gold-500);
  background: rgba(212, 175, 55, 0.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.callout--violet { border-left-color: var(--violet-400); background: rgba(125, 96, 212, 0.1); }
.callout--warn { border-left-color: var(--warn); background: rgba(240, 194, 107, 0.09); }
.callout strong { color: #fff; }
.callout p:last-child { margin-bottom: 0; }

.disclaimer-strip {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-dim);
  border: 1px dashed rgba(212, 175, 55, 0.32);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  background: rgba(10, 8, 33, 0.5);
}
.disclaimer-strip::before { content: "☾"; color: var(--gold-500); }

/* 09. Service cards ------------------------------------------------------- */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card__art {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(46, 32, 105, 0.85), rgba(10, 8, 33, 0.95));
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.service-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-card__art img { transform: scale(1.05); }
.service-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.2rem 0 1rem;
}
.service-card__body { flex: 1; }
.service-card__body p { color: var(--text-muted); font-size: 0.95rem; }
.service-card ul { color: var(--text-muted); font-size: 0.92rem; }
.service-card__foot {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.cost-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-100);
}
.cost-badge::before { content: "◈"; color: var(--gold-500); font-size: 0.75rem; }

/* 10. Tarot card components ---------------------------------------------- */
.tarot-card {
  --card-w: 190px;
  width: var(--card-w);
  aspect-ratio: 5 / 8.4;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: linear-gradient(170deg, #16113c, #0a0821);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.tarot-card img { width: 100%; height: 100%; object-fit: cover; }
.tarot-card--sm { --card-w: 140px; border-radius: 11px; }
.tarot-card--lg { --card-w: 230px; }

.deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: clamp(0.6rem, 1.6vw, 1.1rem);
  padding: 0;
  margin: 0;
  list-style: none;
  perspective: 1400px;
}
.deck li { margin: 0; }

.deck-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 8.4;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 13px;
  perspective: 900px;
}
.deck-card__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.75s var(--ease);
  border-radius: 13px;
}
.deck-card.is-flipped .deck-card__inner { transform: rotateY(180deg); }

.deck-card__face {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 16px 30px -22px rgba(0, 0, 0, 1);
  background: linear-gradient(170deg, #16113c, #0a0821);
}
.deck-card__face img { width: 100%; height: 100%; object-fit: cover; }
.deck-card__face--front { transform: rotateY(180deg); }

.deck-card:hover .deck-card__face--back,
.deck-card:focus-visible .deck-card__face--back {
  border-color: rgba(241, 218, 151, 0.85);
  box-shadow: 0 0 0 1px rgba(241, 218, 151, 0.5), 0 22px 40px -24px rgba(212, 175, 55, 0.75);
}

.deck-card.is-selected .deck-card__face--back {
  border-color: var(--gold-300);
  box-shadow: 0 0 0 2px var(--gold-500), 0 0 34px -6px rgba(212, 175, 55, 0.7);
}
.deck-card.is-selected { transform: translateY(-10px); transition: transform 0.25s var(--ease); }

.deck-card__check {
  position: absolute;
  top: -9px;
  right: -9px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #241a06;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
}
.deck-card.is-selected .deck-card__check { opacity: 1; transform: scale(1); }

.deck-card:disabled { cursor: not-allowed; }
.deck-card:disabled .deck-card__face { opacity: 0.35; filter: grayscale(0.6); }

/* Non-interactive card (daily tarot reveal) */
.deck-card--static { cursor: default; }
.deck-card--static:hover .deck-card__face--back {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 16px 30px -22px rgba(0, 0, 0, 1);
}
.daily-card-slot { width: min(250px, 74vw); margin-inline: auto; }
.daily-card-slot .deck-card { aspect-ratio: 5 / 8.4; }

/* 11. Reading experience -------------------------------------------------- */
.reader {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(175deg, rgba(27, 20, 66, 0.75), rgba(8, 6, 24, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.reader__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(212, 175, 55, 0.05);
}
.reader__body { padding: clamp(1.2rem, 2.8vw, 2.2rem); }

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.stepper li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.08);
}
.stepper li[aria-current="step"] { color: #fff; }
.stepper li[aria-current="step"]::before {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #241a06;
  border-color: transparent;
}

.reading-step[hidden] { display: none; }
.reading-step { animation: fade-up 0.45s var(--ease) both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
}
.choice {
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.035);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.choice:hover { border-color: var(--line); background: rgba(212, 175, 55, 0.09); transform: translateY(-2px); }
.choice.is-active {
  border-color: var(--gold-500);
  background: rgba(212, 175, 55, 0.14);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5);
}
.choice__title { display: block; font-weight: 600; color: #fff; margin-bottom: 0.2rem; }
.choice__meta { display: block; font-size: 0.8rem; color: var(--text-dim); }

.spread {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
  justify-content: center;
  margin-top: 1.8rem;
}
.spread__item { text-align: center; max-width: 250px; }
.spread__pos {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.7rem;
}
.spread__name { font-family: var(--font-serif); font-size: 1.3rem; color: #fff; margin: 0.9rem 0 0.25rem; }
.spread__keywords { font-size: 0.8rem; color: var(--text-dim); }
.spread__text { font-size: 0.92rem; color: var(--text-muted); text-align: left; margin-top: 0.5rem; }

.reader-summary {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.reader-summary h3 { margin-bottom: 0.6rem; }

.selection-counter {
  font-size: 0.86rem;
  color: var(--text-muted);
}
.selection-counter strong { color: var(--gold-100); }

/* 12. Daily tarot --------------------------------------------------------- */
.daily-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.6rem, 4vw, 2.8rem);
  align-items: center;
}
.daily-card-wrap { display: grid; place-items: center; gap: 1rem; }
.daily-details dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-top: 1.2rem;
}
.daily-details dd { margin: 0.3rem 0 0; color: var(--text-muted); }
.daily-details dt:first-child { margin-top: 0; }

.affirmation {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-style: italic;
  color: var(--gold-100);
  border-left: 2px solid var(--gold-500);
  padding-left: 1rem;
  margin: 0;
}

/* 13. Forms --------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }

.field label,
.fieldset__legend {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field .hint { font-size: 0.78rem; color: var(--text-dim); text-transform: none; letter-spacing: 0; font-weight: 400; }

.field input,
.field select,
.field textarea,
.input {
  width: 100%;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: rgba(6, 5, 16, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.82rem 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-300) 50%), linear-gradient(135deg, var(--gold-300) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.field select option { background: #12103a; color: var(--text); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(212, 175, 55, 0.35); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: rgba(6, 5, 16, 0.9);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(139, 133, 171, 0.85); }

.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(240, 145, 154, 0.14); }

.field-error {
  font-size: 0.8rem;
  color: var(--danger);
  min-height: 0;
}
.field-error:empty { display: none; }

.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.radio-row label,
.check label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  cursor: pointer;
}
.radio-row input,
.check input { accent-color: var(--gold-500); width: 18px; height: 18px; margin-top: 0.2rem; flex: none; }

.form-status {
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
}
.form-status[hidden] { display: none; }
.form-status--ok { border-color: rgba(127, 214, 168, 0.45); background: rgba(127, 214, 168, 0.1); color: #d5f5e4; }
.form-status--warn { border-color: rgba(240, 194, 107, 0.45); background: rgba(240, 194, 107, 0.1); color: #f8e6c4; }
.form-status--error { border-color: rgba(240, 145, 154, 0.5); background: rgba(240, 145, 154, 0.1); color: #fbd7da; }

.auth-shell { max-width: 560px; margin-inline: auto; }
.auth-alt { text-align: center; font-size: 0.92rem; color: var(--text-muted); }

/* 14. Pricing, packages & wallet ------------------------------------------ */
.package { display: flex; flex-direction: column; height: 100%; }
.package--featured { border-color: var(--gold-500); box-shadow: var(--glow-gold); }
.package__tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #241a06;
  font-weight: 700;
  white-space: nowrap;
}
.package__credits {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold-100);
  margin: 0.4rem 0 0.1rem;
}
.package__price {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 1rem;
}
.package ul { list-style: none; padding: 0; font-size: 0.9rem; color: var(--text-muted); }
.package ul li { display: flex; gap: 0.55rem; align-items: flex-start; }
.package ul li::before { content: "✦"; color: var(--gold-500); font-size: 0.72rem; line-height: 1.9; }
.package .btn { margin-top: auto; }

.wallet-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(46, 32, 105, 0.55), rgba(8, 6, 24, 0.92));
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.wallet-balance {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--gold-100);
}
.wallet-balance span { font-size: 0.9rem; font-family: var(--font-sans); color: var(--text-dim); letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-top: 0.5rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 480px; }
table.data th,
table.data td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line-soft); }
table.data th {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.06);
  font-weight: 600;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
.amount-plus { color: var(--ok); }
.amount-minus { color: var(--warn); }

.service-price-list { list-style: none; padding: 0; margin: 0; }
.service-price-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line-soft);
}
.service-price-list li:last-child { border-bottom: 0; }
.service-price-list .name { color: var(--text); font-weight: 500; }
.service-price-list .cost { color: var(--gold-100); font-weight: 600; white-space: nowrap; }

.saved-reading {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
}
.saved-reading__title { color: #fff; font-weight: 600; }
.saved-reading__meta { font-size: 0.8rem; color: var(--text-dim); }

/* 15. Testimonials, FAQ, timeline ----------------------------------------- */
.placeholder-card {
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  background: rgba(212, 175, 55, 0.045);
  color: var(--text-muted);
  position: relative;
}
.placeholder-card__label {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.7rem;
}
.placeholder-card__lines { display: grid; gap: 0.55rem; margin: 0.9rem 0 0; }
.placeholder-card__lines span {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.05));
}
.placeholder-card__lines span:nth-child(2) { width: 88%; }
.placeholder-card__lines span:nth-child(3) { width: 72%; }
.placeholder-card__lines span:nth-child(4) { width: 46%; }

.faq { display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.faq details[open] { border-color: var(--line); background: rgba(212, 175, 55, 0.055); }
.faq summary {
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  font-weight: 600;
  color: #fff;
  list-style: none;
  position: relative;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-300);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq__body { padding: 0 1.2rem 1.2rem; color: var(--text-muted); font-size: 0.95rem; }
.faq .faq__body p:last-child { margin-bottom: 0; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.timeline li { position: relative; padding-left: 2rem; margin: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.6rem;
  bottom: -1.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--line), transparent);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-300), var(--gold-700));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}
.timeline h4 { margin: 0 0 0.25rem; color: #fff; }
.timeline p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem; }
.stat { text-align: center; padding: 1.1rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); }
.stat__value { font-family: var(--font-serif); font-size: 1.9rem; color: var(--gold-100); line-height: 1.1; }
.stat__label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }

/* Contact list */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; margin: 0; }
.contact-list .icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.09);
  color: var(--gold-300);
}
.contact-list .label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); display: block; }
.contact-list .value { color: var(--text); }

/* Legal / prose pages */
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { color: var(--text-muted); }
.prose .updated { font-size: 0.85rem; color: var(--text-dim); }

/* 16. Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 8, 33, 0.7), rgba(4, 3, 10, 0.98));
  padding-top: clamp(2.6rem, 5vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3.5vw, 2.6rem);
  padding-bottom: 2.4rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 38ch; }
.footer-col h3,
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-col li { margin: 0; }
.footer-col a,
.footer-col address { color: var(--text-muted); font-size: 0.9rem; font-style: normal; }
.footer-col a:hover { color: var(--gold-100); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 1.4rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--text-dim);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.6rem 1.1rem; }
.footer-legal a { color: var(--text-dim); }
.footer-legal a:hover { color: var(--gold-300); }

.footer-disclaimer {
  font-size: 0.79rem;
  color: var(--text-dim);
  border-top: 1px solid var(--line-soft);
  padding-top: 1.2rem;
  margin-bottom: 0;
}

/* 17. Modal & toasts ------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(3, 2, 8, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(170deg, #1a1442, #0a0821);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__title { margin-bottom: 0.6rem; }
.modal__body { color: var(--text-muted); font-size: 0.95rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: flex-end; margin-top: 1.4rem; }

.toast-region {
  position: fixed;
  z-index: 1100;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  gap: 0.6rem;
  width: min(440px, calc(100vw - 32px));
}
.toast {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(12, 9, 32, 0.97);
  color: var(--text);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: toast-in 0.3s var(--ease) both;
}
.toast--ok { border-color: rgba(127, 214, 168, 0.5); }
.toast--warn { border-color: rgba(240, 194, 107, 0.5); }
.toast--error { border-color: rgba(240, 145, 154, 0.55); }
.toast.is-leaving { animation: toast-out 0.25s var(--ease) both; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(10px); }
}

/* 18. Helper utilities ---------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--gold-500);
  margin: 2.4rem 0;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: min(180px, 28vw);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.quote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-style: italic;
  color: var(--gold-100);
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
}

/* 19. Responsive breakpoints ---------------------------------------------- */
@media (max-width: 1280px) {
  .nav-list a { padding: 0.5rem 0.5rem; font-size: 0.82rem; }
  .primary-nav { gap: 0.8rem; }
  .header-credit { display: none; }
}

@media (max-width: 1099px) {
  :root { --header-h: 70px; }

  .nav-toggle { display: grid; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 890;
    height: 100dvh;
    width: min(360px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    padding: calc(var(--header-h) + 1.4rem) 1.5rem 2rem;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(12, 9, 34, 0.99), rgba(5, 4, 14, 0.99));
    border-left: 1px solid var(--line);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 1);
    transform: translateX(105%);
    transition: transform 0.36s var(--ease);
  }
  .primary-nav.is-open { transform: none; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav-list a { padding: 0.75rem 0.9rem; font-size: 0.98rem; border-radius: 12px; }

  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; }
  .credit-chip { justify-content: center; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__art { order: -1; max-width: 460px; margin-inline: auto; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
  .daily-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 0.97rem; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .deck { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .tarot-card { --card-w: 150px; }
  .tarot-card--lg { --card-w: 180px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .nav-actions .btn,
  .btn--inline { width: auto; }
  .stepper { gap: 0.4rem 0.8rem; }
  .stepper li { font-size: 0.76rem; }
  .modal__actions .btn { width: 100%; }
  .reader__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .deck { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .brand__tag { display: none; }
}

/* 20. Motion & print preferences ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .starfield::before,
  .starfield::after { animation: none; }
  .hero__art img { animation: none; }
}

@media print {
  .site-header, .site-footer, .starfield, .toast-region, .modal { display: none !important; }
  body { background: #fff; color: #111; }
  .card, .reader { border-color: #ccc; box-shadow: none; background: #fff; }
  h1, h2, h3 { color: #111; }
}
