@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: rgba(13, 23, 41, 0.72);
  --panel: rgba(10, 18, 32, 0.88);
  --panel-strong: rgba(6, 11, 22, 0.96);
  --line: rgba(255, 232, 179, 0.18);
  --text: #f4efe3;
  --muted: #b6b0a5;
  --gold: #f1c46b;
  --gold-strong: #f7da8a;
  --teal: #8ac9c9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(150, 100, 220, 0.22), transparent 30%),
    radial-gradient(circle at 85% 8%, rgba(241, 196, 107, 0.18), transparent 24%),
    linear-gradient(180deg, #070c16 0%, #0b1221 38%, #05070d 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 90%);
  opacity: 0.3;
}

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

button,
input,
textarea {
  font: inherit;
}

canvas#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.topbar,
.hero,
.promise-strip,
.reading-room,
.info-grid,
.faq-grid,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 2px 20px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.lang-switch select {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 19, 33, 0.82);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  min-height: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand strong,
.section-heading h2,
.interpretation h3,
.hero h1,
.info-grid h3,
.pricing-card strong,
.hero-stat strong {
  font-family: "Cormorant Garamond", serif;
}

.brand strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(241, 196, 107, 0.28), rgba(90, 63, 11, 0.24));
  border: 1px solid rgba(241, 196, 107, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-strong);
}

.panel {
  background: linear-gradient(180deg, rgba(15, 25, 43, 0.9), rgba(7, 14, 26, 0.84));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  border-radius: 34px;
  padding: 34px;
}

.hero-copy {
  padding-right: 18px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  max-width: 9.5ch;
}

.lede,
.section-heading p,
.reading-body p,
.info-grid p,
.faq-grid p,
.footer p,
.hint,
.pricing-card p,
.brand small {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  margin: 22px 0 0;
  max-width: 62ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  color: #1a1204;
  box-shadow: 0 14px 36px rgba(241, 196, 107, 0.26);
}

.button-secondary {
  background: rgba(241, 196, 107, 0.1);
  border-color: rgba(241, 196, 107, 0.24);
  color: var(--text);
}

.button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.trust-list li,
.pricing-card,
.hero-stat,
.spread-slot,
.field,
.info-grid article,
.faq-grid details,
.status-line {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-list li,
.hero-stat {
  padding: 12px 14px;
  border-radius: 18px;
}

.hero-card {
  position: relative;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 420px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 30%, rgba(241, 196, 107, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(7, 12, 22, 0.78), rgba(12, 18, 32, 0.94));
  border: 1px solid rgba(241, 196, 107, 0.16);
  overflow: hidden;
}

.orbital {
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  border: 1px solid rgba(241, 196, 107, 0.12);
}

.orbital span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(241, 196, 107, 0.26);
}

.orbital span:nth-child(1) {
  inset: 18% 18%;
  animation: spin 26s linear infinite;
}

.orbital span:nth-child(2) {
  inset: 26% 26%;
  animation: spin 18s linear infinite reverse;
}

.orbital span:nth-child(3) {
  inset: 34% 34%;
  animation: spin 12s linear infinite;
}

.hero-stat {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  width: fit-content;
  min-width: 180px;
}

.hero-stat strong {
  font-size: 2.3rem;
  line-height: 1;
}

.hero-stat span {
  color: var(--muted);
}

.hero-stat.muted {
  margin-left: auto;
}

.section-heading {
  max-width: 72ch;
}

.section-heading h2,
.interpretation h3,
.info-grid h3 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.section-heading p {
  margin: 14px 0 0;
}

.reading-room {
  margin-top: 24px;
  border-radius: 34px;
  padding: 28px;
}

.reader-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
  margin-top: 26px;
}

.reading-interface {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 26px;
}

.profile-card {
  border: 1px solid rgba(241, 196, 107, 0.2);
  background: linear-gradient(180deg, rgba(241, 196, 107, 0.08), rgba(9, 16, 29, 0.75));
  border-radius: 18px;
  padding: 16px;
}

.profile-title {
  margin: 0;
  font-weight: 700;
  color: var(--gold-strong);
}

.coupon-applied {
  color: #9ed8d8;
}

.tester-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(138, 201, 201, 0.42);
  background: rgba(138, 201, 201, 0.12);
  color: #a8e1e1;
  font-size: 0.82rem;
}

.tester-badge::before {
  content: "✦";
  color: #d9f0f0;
}

.reading-footer.is-comped {
  border-color: rgba(138, 201, 201, 0.32);
  background: linear-gradient(135deg, rgba(138, 201, 201, 0.14), rgba(241, 196, 107, 0.08));
}

.reading-footer.is-comped .price-tag {
  color: #9ed8d8;
}

.profile-copy {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.reading-mode {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(241, 196, 107, 0.22);
  border-radius: 14px;
  background: rgba(7, 14, 26, 0.36);
  display: grid;
  gap: 8px;
}

.reading-mode legend {
  padding: 0 6px;
  color: rgba(240, 236, 228, 0.9);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.mode-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  background: rgba(8, 16, 30, 0.5);
}

.mode-option strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.mode-option small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.mode-option input[type="radio"] {
  margin-top: 2px;
}

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

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

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

.profile-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-field span {
  color: rgba(240, 236, 228, 0.9);
  font-size: 0.8rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 18px;
}

.profile-field input,
.profile-field select {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 14, 26, 0.86);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 42px;
  outline: none;
}

.profile-field input:focus,
.profile-field select:focus {
  border-color: rgba(241, 196, 107, 0.45);
  box-shadow: 0 0 0 3px rgba(241, 196, 107, 0.11);
}

.profile-status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 0.84rem;
  color: rgba(241, 196, 107, 0.94);
}

.cards-container {
  text-align: center;
}

.deck-stage {
  min-height: 250px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  perspective: 900px;
}

.deck-stack {
  position: relative;
  width: 154px;
  height: 240px;
  transform-style: preserve-3d;
}

.deck-layer,
.deck-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
}

.deck-layer {
  border: 1px solid rgba(241, 196, 107, 0.2);
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.95), rgba(3, 7, 14, 0.98));
}

.deck-layer:nth-child(1) { transform: translate3d(-14px, 12px, -15px) rotate(-6deg); }
.deck-layer:nth-child(2) { transform: translate3d(-10px, 8px, -12px) rotate(-4deg); }
.deck-layer:nth-child(3) { transform: translate3d(-6px, 5px, -9px) rotate(-3deg); }
.deck-layer:nth-child(4) { transform: translate3d(-3px, 3px, -5px) rotate(-1.5deg); }
.deck-layer:nth-child(5) { transform: translate3d(-1px, 1px, -2px) rotate(-0.5deg); }

.deck-face {
  display: grid;
  place-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 28%, rgba(241, 196, 107, 0.22), transparent 44%),
    linear-gradient(180deg, rgba(17, 28, 49, 0.94), rgba(4, 10, 21, 0.98));
  border: 1px solid rgba(241, 196, 107, 0.52);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 236, 189, 0.24);
}

.deck-face::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(241, 196, 107, 0.25);
}

.deck-moon {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  color: rgba(247, 218, 138, 0.9);
  line-height: 1;
}

.deck-title {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}

.deck-count {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cards-container[data-state="idle"] .cards-display {
  display: none;
}

.cards-container[data-state="dealt"] .deck-stage {
  display: none;
}

.cards-container[data-state="shuffling"] .deck-stack {
  animation: deck-shuffle 850ms ease-in-out infinite;
}

.cards-container[data-state="shuffling"] .deck-layer:nth-child(1),
.cards-container[data-state="shuffling"] .deck-layer:nth-child(3),
.cards-container[data-state="shuffling"] .deck-layer:nth-child(5) {
  animation: deck-fan-left 700ms ease-in-out infinite alternate;
}

.cards-container[data-state="shuffling"] .deck-layer:nth-child(2),
.cards-container[data-state="shuffling"] .deck-layer:nth-child(4) {
  animation: deck-fan-right 700ms ease-in-out infinite alternate;
}

@keyframes deck-shuffle {
  0% { transform: rotate(-3deg) translateY(0); }
  25% { transform: rotate(4deg) translateY(-6px); }
  50% { transform: rotate(-2deg) translateY(-2px); }
  75% { transform: rotate(3deg) translateY(-7px); }
  100% { transform: rotate(-3deg) translateY(0); }
}

@keyframes deck-fan-left {
  from { transform: translate3d(-10px, 6px, -8px) rotate(-6deg); }
  to { transform: translate3d(-22px, 10px, -12px) rotate(-13deg); }
}

@keyframes deck-fan-right {
  from { transform: translate3d(-4px, 4px, -6px) rotate(2deg); }
  to { transform: translate3d(10px, 7px, -8px) rotate(9deg); }
}

.cards-display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  min-height: 240px;
  align-items: center;
  justify-items: center;
}

.tarot-card-display {
  position: relative;
  width: 140px;
  height: 228px;
  border-radius: 16px;
  text-align: center;
  perspective: 700px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  animation: card-appear 600ms ease-out both;
}

.tarot-card-display.is-reversed {
  transform: rotate(180deg);
}

.tarot-card-inner {
  width: 100%;
  height: 100%;
}

.card-frame {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  border-radius: 14px;
  padding: 8px;
  background:
    linear-gradient(160deg, rgba(247, 218, 138, 0.42), rgba(123, 85, 22, 0.34)),
    linear-gradient(180deg, rgba(13, 20, 34, 0.94), rgba(5, 9, 18, 0.98));
  border: 1px solid rgba(241, 196, 107, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 235, 184, 0.18);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 227, 0.86);
}

.card-position,
.card-orientation {
  padding: 2px 5px;
  border-radius: 999px;
  border: 1px solid rgba(241, 196, 107, 0.35);
  background: rgba(7, 12, 24, 0.64);
}

.card-illustration {
  border-radius: 10px;
  border: 1px solid rgba(241, 196, 107, 0.3);
  background:
    radial-gradient(circle at 50% 25%, rgba(241, 196, 107, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(18, 30, 52, 0.95), rgba(8, 13, 24, 0.98));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.card-illustration::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.05) 75%, transparent 75%, transparent);
  background-size: 14px 14px;
  opacity: 0.08;
  pointer-events: none;
}

.card-illustration.has-image {
  background: #05080f;
}

.card-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-sigil {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  color: rgba(247, 218, 138, 0.92);
  text-shadow: 0 0 20px rgba(241, 196, 107, 0.35);
  z-index: 1;
}

.card-meta {
  display: grid;
  gap: 3px;
}

@keyframes card-appear {
  from {
    opacity: 0;
    transform: scale(0.8) rotateY(-20deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotateY(0);
  }
}

.tarot-card-display:nth-child(1) {
  animation-delay: 0ms;
}
.tarot-card-display:nth-child(2) {
  animation-delay: 120ms;
}
.tarot-card-display:nth-child(3) {
  animation-delay: 240ms;
}
.tarot-card-display:nth-child(4) {
  animation-delay: 360ms;
}
.tarot-card-display:nth-child(5) {
  animation-delay: 480ms;
}

.card-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-strong);
  font-family: "Cormorant Garamond", serif;
  line-height: 1.15;
}

.card-arcana {
  font-size: 0.62rem;
  color: rgba(210, 207, 198, 0.9);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.waiting-message {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.start-btn {
  margin: 0 auto;
  display: inline-flex;
}

.conversation-wrapper {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 16px;
  min-height: 500px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.conversation-history {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 8px;
  max-height: 400px;
}

.conversation-history::-webkit-scrollbar {
  width: 6px;
}

.conversation-history::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.conversation-history::-webkit-scrollbar-thumb {
  background: rgba(241, 196, 107, 0.3);
  border-radius: 3px;
}

.conversation-history::-webkit-scrollbar-thumb:hover {
  background: rgba(241, 196, 107, 0.5);
}

.intro-message {
  background: rgba(241, 196, 107, 0.08);
  border-left: 3px solid rgba(241, 196, 107, 0.4);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.intro-message p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.intro-message p:last-child {
  margin-bottom: 0;
}

.intro-message strong {
  color: var(--gold-strong);
}

.message {
  display: flex;
  gap: 10px;
  animation: message-slide-in 300ms ease-out;
  margin-bottom: 8px;
}

@keyframes message-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  justify-content: flex-end;
}

.message-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.message.ai .message-bubble {
  max-width: 100%;
  background: rgba(241, 196, 107, 0.12);
  border: 1px solid rgba(241, 196, 107, 0.2);
  color: var(--text);
}

.message.ai .message-bubble p {
  margin: 0 0 0.75em;
}

.message.ai .message-bubble p:last-child {
  margin-bottom: 0;
}

.message.ai .message-bubble strong {
  color: var(--gold, #f1c46b);
  display: block;
  margin-top: 1.1em;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.message.user .message-bubble {
  max-width: 75%;
  background: linear-gradient(135deg, rgba(241, 196, 107, 0.24), rgba(138, 201, 201, 0.12));
  border: 1px solid rgba(241, 196, 107, 0.3);
  color: var(--text);
}

.typing-indicator {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 14px;
}

.thinking-text {
  flex: 1 1 100%;
  font-size: 0.85rem;
  color: rgba(240, 236, 228, 0.86);
  margin-bottom: 2px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(241, 196, 107, 0.6);
  animation: typing-bounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-8px);
  }
}

.question-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.input-group {
  display: flex;
  gap: 10px;
}

.question-input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 9, 18, 0.74);
  color: var(--text);
  border-radius: 18px;
  padding: 12px 16px;
  outline: none;
  font-size: 0.95rem;
  transition: border-color 160ms ease;
}

.question-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.question-input:focus {
  border-color: rgba(241, 196, 107, 0.42);
  box-shadow: 0 0 0 4px rgba(241, 196, 107, 0.09);
}

.ask-btn {
  min-height: 44px;
  padding: 0 24px;
  align-self: flex-start;
}

#inputStatus {
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 20px;
}


.info-grid,
.faq-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  border-radius: 34px;
  padding: 28px;
}

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

.info-grid .section-heading,
.faq-grid .section-heading {
  grid-column: 1 / -1;
}

.info-grid article,
.faq-grid details {
  padding: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.info-grid h3 {
  font-size: 1.8rem;
}

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

.faq-grid details {
  border-radius: 22px;
  transition: background 200ms ease;
}

.faq-grid details[open] {
  background: rgba(241, 196, 107, 0.07);
  border-color: rgba(241, 196, 107, 0.22);
}

.faq-grid summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-grid summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq-grid details[open] summary::after {
  transform: rotate(45deg);
}

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

.faq-grid p {
  margin-bottom: 0;
  margin-top: 12px;
  font-size: 0.95rem;
}

.community-grid {
  margin-top: 24px;
  border-radius: 34px;
  padding: 28px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.3fr 0.9fr;
}

.community-column {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 20px;
}

.review-stats {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 12px;
}

.review-stats strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  color: var(--gold-strong);
  line-height: 1;
}

.review-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.reviews-list {
  display: grid;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.review-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.review-author {
  font-weight: 700;
}

.review-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.review-rating {
  letter-spacing: 0.1em;
  color: #f4c66d;
  font-size: 0.8rem;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(138, 201, 201, 0.45);
  color: #9ed8d8;
  padding: 2px 8px;
  font-size: 0.68rem;
  margin-left: 8px;
}

.review-body {
  color: rgba(244, 239, 227, 0.95);
  line-height: 1.6;
  font-size: 0.9rem;
  margin: 0;
}

.reviews-empty {
  color: var(--muted);
  margin: 0;
}

.share-box {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(241, 196, 107, 0.22);
  background: linear-gradient(180deg, rgba(241, 196, 107, 0.1), rgba(9, 16, 29, 0.68));
  padding: 16px;
}

.share-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.review-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

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

.review-form input,
.review-form select,
.review-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 14, 26, 0.86);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 42px;
  outline: none;
}

.review-form textarea {
  min-height: 92px;
  resize: vertical;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  border-color: rgba(241, 196, 107, 0.45);
  box-shadow: 0 0 0 3px rgba(241, 196, 107, 0.11);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px 0;
  color: var(--muted);
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

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

@keyframes land {
  0% {
    opacity: 0;
    transform: translate3d(var(--fly-x, 0), var(--fly-y, 0), 0) scale(0.72) rotate(var(--fly-r, -8deg)) rotateY(180deg);
  }
  55% {
    opacity: 1;
    transform: translate3d(calc(var(--fly-x, 0) * 0.28), calc(var(--fly-y, 0) * 0.18), 0) scale(1.04) rotate(0deg) rotateY(180deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg) rotateY(180deg);
  }
}

@media (max-width: 1080px) {
  .hero,
  .reader-grid,
  .info-grid,
  .faq-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .hero-card {
    min-height: 320px;
  }

  .cards-display {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .conversation-wrapper {
    min-height: 400px;
  }

  .footer,
  .topbar,
  .interpretation-header,
  .status-line {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 10px;
  }

  .hero,
  .reading-room,
  .info-grid,
  .faq-grid,
  .community-grid,
  .interpretation {
    padding: 18px;
    border-radius: 24px;
  }

  .review-form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
  }

  .cards-display {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
  }

  .deck-stack {
    transform: scale(0.92);
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid--5 {
    grid-template-columns: 1fr;
  }

  .profile-card {
    min-width: 0;
    overflow: hidden;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid--4 {
    grid-template-columns: 1fr;
  }

  .tarot-card-display {
    width: 110px;
    height: 186px;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .card-name {
    font-size: 0.75rem;
  }

  .card-arcana {
    font-size: 0.65rem;
  }

  .conversation-wrapper {
    min-height: 350px;
    padding: 14px;
  }

  .conversation-history {
    max-height: 250px;
  }

  .message-bubble {
    max-width: 90%;
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .input-group {
    flex-direction: column;
  }

  .ask-btn {
    width: 100%;
    align-self: stretch;
  }

  .question-input {
    font-size: 1rem;
  }
}

/* ── Question counter ──────────────────────────── */
.question-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  padding-bottom: 8px;
}

.counter-dots {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.qdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(241, 196, 107, 0.4);
  background: transparent;
  transition: background 300ms ease, border-color 300ms ease;
}

.qdot.used {
  background: var(--gold);
  border-color: var(--gold);
}

.qdot.last {
  border-color: #e88080;
}

.qdot.last.used {
  background: #e88080;
  border-color: #e88080;
}

/* ── Session complete panel ────────────────────── */
.session-complete {
  text-align: center;
  padding: 24px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(241, 196, 107, 0.1), rgba(138, 201, 201, 0.06));
  border: 1px solid rgba(241, 196, 107, 0.25);
}

.session-complete h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: var(--gold-strong);
  margin: 0 0 10px;
}

.session-complete p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.session-complete .button {
  margin: 0 auto;
}

/* ── Promise strip ─────────────────────────────── */
.promise-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}

.promise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 14px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.promise-glyph {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(241, 196, 107, 0.3));
}

.promise-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

.promise-item em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

/* ── Hero moon atmosphere ──────────────────────── */
.hero-card::after {
  content: "☽";
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 3.4rem;
  color: rgba(241, 196, 107, 0.18);
  font-family: "Cormorant Garamond", serif;
  pointer-events: none;
  z-index: 0;
}

/* ── Improved reading footer ───────────────────── */
.reading-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(241, 196, 107, 0.1), rgba(138, 201, 201, 0.06));
  border: 1px solid rgba(241, 196, 107, 0.2);
}

.reading-footer .price-tag {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-strong);
  margin: 0;
  line-height: 1;
}

.reading-footer p:last-child {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .promise-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .promise-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .profile-grid,
  .profile-grid--5,
  .profile-grid--4 {
    grid-template-columns: 1fr;
  }

  .profile-field input,
  .profile-field select {
    width: 100%;
    box-sizing: border-box;
  }
}
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* -- Admin login overlay -------------------------- */
.login-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 6, 24, 0.92);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.login-box {
  background: var(--surface, #1a1535);
  border: 1px solid rgba(180, 140, 255, 0.2);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  font-size: 1.1rem;
  color: var(--text-primary, #e8dff5);
}

.login-brand .brand-mark {
  color: var(--accent, #b48cff);
  font-size: 1.3rem;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.login-field label {
  font-size: 0.82rem;
  color: var(--text-secondary, #a89fc0);
  letter-spacing: 0.04em;
}

.login-field input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(180, 140, 255, 0.25);
  background: rgba(255,255,255,0.05);
  color: var(--text-primary, #e8dff5);
  font-size: 1rem;
  box-sizing: border-box;
}

.login-field input:focus {
  outline: none;
  border-color: var(--accent, #b48cff);
  box-shadow: 0 0 0 3px rgba(180, 140, 255, 0.15);
}

.login-error {
  min-height: 1.2em;
  font-size: 0.83rem;
  color: #f87171;
  margin: 0.25rem 0 0.75rem;
}

.login-submit {
  width: 100%;
  margin-top: 0.25rem;
}
