/* ==========================================================================
   Mystic Veil — AI Tarot & Horoscope design system
   Night-sky palette · gold accents · glass cards · mobile first
   ========================================================================== */

:root {
  --bg-0: #0b0a1f;
  --bg-1: #121033;
  --bg-2: #1a1746;
  --bg-glass: rgba(28, 24, 66, 0.55);
  --bg-glass-strong: rgba(22, 19, 54, 0.82);
  --line: rgba(212, 197, 255, 0.16);
  --line-gold: rgba(233, 196, 129, 0.35);
  --gold: #e5c07b;
  --gold-2: #f2d9a6;
  --gold-deep: #b8863f;
  --moon: #f4f1ff;
  --muted: #b6afd9;
  --muted-2: #8e87b4;
  --purple: #8b7cf6;
  --purple-2: #6d5bd0;
  --pink: #d98cc0;
  --teal: #7fd1c7;
  --danger: #e08a8a;
  --success: #8fd6a0;
  --text: #ece9fb;
  --serif: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
  --sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 14px 40px rgba(4, 3, 20, 0.45);
  --shadow-gold: 0 10px 34px rgba(184, 134, 63, 0.25);
  --maxw: 1180px;
  --header-h: 66px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(1200px 700px at 78% -12%, rgba(109, 91, 208, 0.28), transparent 60%),
    radial-gradient(900px 620px at -10% 8%, rgba(217, 140, 192, 0.16), transparent 55%),
    radial-gradient(760px 520px at 50% 118%, rgba(127, 209, 199, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 42%, var(--bg-0) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
/* faint starfield */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1.2px 1.2px at 78% 12%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.6px 1.6px at 64% 68%, rgba(245,230,190,.55), transparent 60%),
    radial-gradient(1.1px 1.1px at 30% 80%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.3px 1.3px at 88% 54%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 45% 38%, rgba(255,255,255,.35), transparent 60%);
  pointer-events: none; z-index: 0;
}
main, .site-header, .site-footer, .cookie-banner, .page-shell { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; transition: color .18s ease; }
a:hover { color: #fff; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--moon); margin: 0 0 .5em; }
h1 { font-size: clamp(2.05rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.22rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1em; }
::selection { background: rgba(229, 192, 123, .35); }

.container { width: min(var(--maxw), calc(100% - 32px)); margin-inline: auto; }
.section { padding: 52px 0; }
.section-tight { padding: 34px 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.lead { color: var(--muted); font-size: 1.07rem; max-width: 62ch; }
.text-center .lead { margin-inline: auto; }
.gradient-text {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 40%, #d9a86c 70%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: .96rem; font-weight: 600; letter-spacing: .02em; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(120deg, var(--gold), #d9a86c);
  color: #241a08; box-shadow: var(--shadow-gold);
}
.btn-primary:hover { color: #1c1405; box-shadow: 0 14px 40px rgba(217, 168, 108, .4); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--moon);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--line-gold); background: rgba(229,192,123,.1); color: #fff; }
.btn-lg { min-height: 54px; padding-inline: 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------- Header / nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 10, 31, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: 8px; min-width: max-content; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 34% 30%, #fff8e3 0 12%, transparent 13%),
    radial-gradient(circle at 68% 66%, rgba(255,248,227,.0) 0 30%, rgba(255,248,227,.18) 31% 34%, transparent 35%),
    radial-gradient(circle at 50% 50%, #e8d5b2 0%, #b8863f 70%, #6e4c1d 100%);
  box-shadow: 0 0 18px rgba(229,192,123,.55);
}
.brand-name { font-family: var(--serif); font-size: 1.34rem; font-weight: 700; color: var(--moon); line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .26em; color: var(--gold); margin-top: 4px; }
.nav-links { display: none; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 13px; border-radius: 999px; color: var(--muted); font-size: .94rem; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--moon); background: rgba(255,255,255,.06); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links ~ .nav-actions, .nav-bar > .nav-actions { margin-left: 0; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-actions { margin-left: 0; }
}

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--moon); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s, transform .15s;
}
.icon-btn:hover { border-color: var(--line-gold); background: rgba(229,192,123,.12); }
.icon-btn.active { color: var(--gold); border-color: var(--line-gold); }
.icon-btn svg { width: 20px; height: 20px; }
.lang-toggle { font-size: .82rem; font-weight: 700; letter-spacing: .04em; padding-inline: 6px; }
.menu-toggle { margin-left: auto; }
@media (min-width: 1024px) { .menu-toggle { display: none; } .nav-actions { margin-left: 0; } }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: var(--bg-glass-strong); backdrop-filter: blur(18px);
  padding: 22px 20px 30px; transform: translateX(105%); transition: transform .28s ease;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 6px; font-size: 1.12rem; color: var(--moon);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a span.sub { font-size: .78rem; color: var(--muted-2); }
.mobile-foot { margin-top: 26px; font-size: .82rem; color: var(--muted-2); }

/* ---------------- Footer ---------------- */
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: rgba(8, 7, 24, .6); }
.footer-grid {
  display: grid; gap: 30px; padding: 50px 0 30px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: .93rem; padding: 5px 0; }
.footer-col a:hover { color: var(--moon); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 0 26px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  font-size: .82rem; color: var(--muted-2);
}
.disclaimer-line { font-size: .8rem; color: var(--muted-2); max-width: 70ch; }

/* ---------------- Cookie banner ---------------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80;
  max-width: 760px; margin: 0 auto;
  background: var(--bg-glass-strong); border: 1px solid var(--line-gold);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 18px 20px; display: none; gap: 14px; align-items: center;
  flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1 1 280px; }
.cookie-banner .btn { min-height: 42px; padding-inline: 20px; }

/* ---------------- Generic glass card ---------------- */
.card {
  background: var(--bg-glass); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft);
}
.card + .card { margin-top: 18px; }

/* Photo cards (tool / guide / feature): real photographic background */
.photo-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  min-height: 210px; border: 1px solid var(--line); isolation: isolate;
  box-shadow: var(--shadow-soft); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  background: linear-gradient(135deg, #1a1746 0%, #0f0d2e 50%, #121033 100%);
}
.photo-card:hover { transform: translateY(-4px); border-color: var(--line-gold); box-shadow: 0 20px 48px rgba(4,3,20,.6), 0 0 0 1px rgba(229,192,123,.18); }
.photo-card img.card-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .5s ease;
}
.photo-card:hover img.card-photo { transform: scale(1.05); }
.photo-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,10,31,.08) 0%, rgba(11,10,31,.55) 52%, rgba(8,7,24,.92) 100%);
}
.photo-card .card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; }
.photo-card .card-kicker { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 6px; }
.photo-card h3 { margin: 0 0 6px; font-size: 1.32rem; color: #fff; }
.photo-card p { margin: 0; font-size: .86rem; color: rgba(236,233,251,.85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.photo-card .fav-star { position: absolute; top: 12px; right: 12px; z-index: 2; }
.photo-card .pro-badge,
.pro-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(120deg, #d9a86c, #f2d9a6); color: #2a1f08;
  font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.photo-card .pro-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.photo-card .free-note { font-size: .66rem; color: rgba(255,255,255,.75); margin-left: 6px; font-weight: 600; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Favorite star */
.fav-star {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(11,10,31,.55); color: rgba(255,255,255,.75); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: all .2s ease;
}
.fav-star:hover { border-color: var(--line-gold); color: var(--gold-2); }
.fav-star.is-fav { color: var(--gold); border-color: var(--line-gold); background: rgba(229,192,123,.16); }
.fav-star svg { width: 19px; height: 19px; }
.fav-star.is-fav svg { animation: pop .34s ease; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------------- Breadcrumb ---------------- */
.breadcrumb { font-size: .82rem; color: var(--muted-2); padding: 16px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li::after { content: '›'; margin-left: 6px; color: var(--muted-2); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--gold-2); }

/* ---------------- Page hero (sub pages) ---------------- */
.page-hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero .hero-photo { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,10,31,.82) 0%, rgba(13,11,38,.86) 65%, rgba(11,10,31,.97) 100%);
}
.page-hero .container { padding: 58px 0 50px; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-tool-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Home hero */
.home-hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; }
.home-hero .hero-photo { position: absolute; inset: 0; z-index: -2; }
.home-hero .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 30% 40%, rgba(11,10,31,.25), transparent 60%),
    linear-gradient(100deg, rgba(11,10,31,.95) 0%, rgba(11,10,31,.72) 45%, rgba(26,23,70,.55) 100%),
    linear-gradient(0deg, var(--bg-0), rgba(11,10,31,.25) 30%);
}
.home-hero .container { padding: 110px 0 90px; }
.home-hero h1 { max-width: 14ch; }
.home-hero .lead { font-size: 1.12rem; max-width: 52ch; }
.hero-quick {
  display: grid; gap: 14px; margin-top: 30px; grid-template-columns: 1fr; max-width: 560px;
}
@media (min-width: 680px) { .hero-quick { grid-template-columns: 1fr 1fr; } }
.hero-mini {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px;
  background: var(--bg-glass); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.hero-mini:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.hero-mini .mini-ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, rgba(229,192,123,.25), rgba(139,124,246,.25));
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.hero-mini b { font-family: var(--serif); font-size: 1.14rem; color: var(--moon); display: block; }
.hero-mini span { font-size: .8rem; color: var(--muted); }

/* ---------------- Zodiac strip ---------------- */
.zodiac-strip { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.zodiac-strip::-webkit-scrollbar { height: 6px; }
.zodiac-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.zodiac-chip {
  flex: 0 0 auto; width: 86px; scroll-snap-align: start; text-align: center;
  padding: 14px 8px 12px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--bg-glass); cursor: pointer; transition: all .18s; color: var(--text);
}
.zodiac-chip:hover, .zodiac-chip.active { border-color: var(--line-gold); background: rgba(229,192,123,.12); transform: translateY(-2px); }
.zodiac-chip .z-symbol { font-size: 1.7rem; line-height: 1.2; }
.zodiac-chip .z-name { font-size: .76rem; color: var(--muted); display: block; margin-top: 3px; white-space: nowrap; }

/* ---------------- Forms / inputs ---------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--gold-2); margin-bottom: 7px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 15px;
  background: rgba(11,10,31,.55); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font-size: 1rem; font-family: inherit;
}
.input:focus { outline: none; border-color: var(--line-gold); box-shadow: 0 0 0 3px rgba(229,192,123,.16); }
.input::placeholder { color: var(--muted-2); }
select.input option { background: var(--bg-1); color: var(--text); }
.input-row { display: flex; gap: 12px; flex-wrap: wrap; }
.input-row .field { flex: 1 1 200px; }
.field .hint { font-size: .78rem; color: var(--muted-2); margin-top: 5px; }
.field .error-text { font-size: .78rem; color: var(--danger); margin-top: 5px; display: none; }
.field.invalid .input { border-color: var(--danger); }
.field.invalid .error-text { display: block; }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tab-btn {
  padding: 11px 18px; background: transparent; border: 0; color: var(--muted);
  font-weight: 600; font-size: .92rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  border-radius: 10px 10px 0 0;
}
.tab-btn:hover { color: var(--moon); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .3s ease; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--muted); font-size: .85rem; cursor: pointer;
  transition: all .15s;
}
.chip:hover { color: var(--moon); border-color: var(--line-gold); }
.chip.active { background: rgba(229,192,123,.16); color: var(--gold-2); border-color: var(--line-gold); }

/* ---------------- Tarot table & cards ---------------- */
.reading-stage { text-align: center; padding: 28px 0 8px; }
.shuffle-zone { position: relative; height: 210px; max-width: 440px; margin: 0 auto 26px; }
.shuffle-deck {
  position: absolute; left: 50%; top: 50%; width: 118px; height: 188px;
  transform: translate(-50%, -50%);
}
.shuffle-deck .mini-card {
  position: absolute; inset: 0; border-radius: 12px;
  background:
    repeating-linear-gradient(45deg, rgba(229,192,123,.12) 0 8px, transparent 8px 16px),
    linear-gradient(160deg, #241e58, #14113a);
  border: 1px solid var(--line-gold);
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.shuffle-deck.shuffling .mini-card:nth-child(1) { animation: shuffleA 1.1s ease-in-out infinite; }
.shuffle-deck.shuffling .mini-card:nth-child(2) { animation: shuffleB 1.1s ease-in-out infinite; }
.shuffle-deck.shuffling .mini-card:nth-child(3) { animation: shuffleC 1.1s ease-in-out infinite; }
@keyframes shuffleA { 0%,100% { transform: translate(0,0) rotate(-4deg); } 30% { transform: translate(-46px,-12px) rotate(-12deg); } 60% { transform: translate(30px,8px) rotate(7deg); } }
@keyframes shuffleB { 0%,100% { transform: translate(0,0) rotate(2deg); } 35% { transform: translate(44px,-10px) rotate(11deg); } 65% { transform: translate(-26px,10px) rotate(-8deg); } }
@keyframes shuffleC { 0%,100% { transform: translate(0,0); } 40% { transform: translate(-20px,-22px) rotate(-6deg); } 70% { transform: translate(22px,14px) rotate(8deg); } }

.spread-board {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
  padding: 10px 0 26px;
}
.spread-slot { flex: 0 1 170px; max-width: 170px; text-align: center; }
.tarot-card {
  position: relative; width: 100%; aspect-ratio: 5/8; border-radius: 12px;
  perspective: 1200px; cursor: pointer;
}
.tarot-card .tc-inner {
  position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
}
.tarot-card.flipped .tc-inner { transform: rotateY(180deg); }
.tc-face {
  position: absolute; inset: 0; border-radius: 12px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid var(--line-gold); box-shadow: 0 10px 26px rgba(0,0,0,.5);
}
.tc-back {
  background:
    radial-gradient(circle at 50% 50%, rgba(229,192,123,.28), transparent 52%),
    repeating-linear-gradient(45deg, rgba(229,192,123,.10) 0 9px, transparent 9px 18px),
    linear-gradient(160deg, #2a2364, #12102f);
  display: flex; align-items: center; justify-content: center;
}
.tc-back::after {
  content: '✦'; font-size: 2.1rem; color: rgba(229,192,123,.85);
  text-shadow: 0 0 16px rgba(229,192,123,.7);
}
.tc-front { transform: rotateY(180deg); background: #171337; }
.tc-front img { width: 100%; height: 100%; object-fit: cover; }
.tc-front.reversed .tc-card-img { transform: rotate(180deg); }
.tarot-card.revealed { cursor: default; }
.slot-label { margin-top: 10px; }
.slot-label b { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--gold-2); }
.slot-label span { font-size: .74rem; color: var(--muted-2); display: block; min-height: 2.2em; }
@media (max-width: 430px) {
  .spread-slot { flex: 0 1 calc(50% - 12px); max-width: none; }
  .spread-board { gap: 14px; }
}

/* Celtic cross layout keeps positions meaningful on wide screens */
.celtic-board { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); max-width: 440px; margin: 0 auto; }
@media (min-width: 760px) {
  .celtic-board {
    grid-template-columns: repeat(6, minmax(96px, 1fr));
    grid-template-rows: repeat(4, auto);
    max-width: 780px; align-items: start;
  }
  .celtic-board .spread-slot { max-width: none; }
  .celtic-board .slot-1 { grid-column: 2; grid-row: 2; }
  .celtic-board .slot-2 { grid-column: 2; grid-row: 2; transform: rotate(90deg); }
  .celtic-board .slot-3 { grid-column: 2; grid-row: 1; }
  .celtic-board .slot-4 { grid-column: 2; grid-row: 3; }
  .celtic-board .slot-5 { grid-column: 1; grid-row: 2; }
  .celtic-board .slot-6 { grid-column: 3; grid-row: 2; }
  .celtic-board .slot-7 { grid-column: 4; grid-row: 1; }
  .celtic-board .slot-8 { grid-column: 4; grid-row: 2; }
  .celtic-board .slot-9 { grid-column: 4; grid-row: 3; }
  .celtic-board .slot-10 { grid-column: 4; grid-row: 4; }
}

/* Reading result blocks */
.reading-results { max-width: 860px; margin: 0 auto; }
.result-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; text-align: left;
}
.result-card .rc-thumb { flex: none; width: 84px; }
.result-card .tc-card-img { width: 100%; aspect-ratio: 5/8; object-fit: cover; border-radius: 9px; border: 1px solid var(--line-gold); display: block; }
.result-card.reversed .tc-card-img { transform: rotate(180deg); }
.rc-pos { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.rc-title { font-family: var(--serif); font-size: 1.34rem; color: var(--moon); line-height: 1.2; }
.rc-orient { font-size: .82rem; font-weight: 600; color: var(--purple); margin-left: 8px; }
.rc-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
.kw { font-size: .74rem; padding: 3px 10px; border-radius: 999px; background: rgba(139,124,246,.14); color: #cfc7ff; border: 1px solid rgba(139,124,246,.3); }
.rc-text { color: var(--muted); font-size: .94rem; margin: 0; }
.summary-box {
  margin-top: 22px; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(229,192,123,.12), rgba(139,124,246,.10));
  border: 1px solid var(--line-gold);
}
.summary-box h2 { font-size: 1.5rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; justify-content: center; }

.verdict {
  font-family: var(--serif); font-size: 2rem; text-align: center;
  background: linear-gradient(120deg, var(--gold-2), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 4px 0 10px;
}

/* Library grid */
.deck-toolbar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(11,10,31,.9); backdrop-filter: blur(10px); padding: 14px 0; border-bottom: 1px solid var(--line); }
.deck-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); padding: 22px 0 40px; }
@media (min-width: 600px) { .deck-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .deck-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .deck-grid { grid-template-columns: repeat(6, 1fr); } }
.deck-item { text-align: center; cursor: pointer; }
.deck-item .di-img { aspect-ratio: 5/8; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #171337; }
.deck-item .di-img img { width: 100%; height: 100%; object-fit: cover; }
.deck-item:hover .di-img { border-color: var(--line-gold); transform: translateY(-3px); transition: all .2s; }
.deck-item b { display: block; font-family: var(--serif); font-size: 1.02rem; margin-top: 8px; color: var(--moon); }
.deck-item span { font-size: .72rem; color: var(--muted-2); }

/* Modal (card detail) */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(6,5,18,.8); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open, .modal-backdrop.show { display: flex; }
.modal, .modal-card {
  width: min(720px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--bg-1); border: 1px solid var(--line-gold); border-radius: var(--radius-lg);
  padding: 28px; position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--moon);
  font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { border-color: var(--line-gold); color: var(--gold-2); }
.modal-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .modal-grid { grid-template-columns: 190px 1fr; } }

/* tool-apps extras */
.fine-print { font-size: .8rem; color: var(--muted-2); }
.horo-slot { background: var(--bg-glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
.horo-slot h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--gold-2); }
.horo-slot p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.8; }
.lucky-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.lucky-cell { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.lucky-cell span { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.lucky-cell b { font-size: 1.12rem; color: var(--gold-2); font-family: var(--serif); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 7px; vertical-align: -2px; border: 1px solid rgba(255,255,255,.35); }
.score-label { flex: 0 0 108px; font-size: .86rem; color: var(--muted); }
.num-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.num-big {
  font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: var(--gold-2);
  text-shadow: 0 0 34px rgba(229,192,123,.5); flex: none; min-width: 96px; text-align: center;
}
.angel-card, .affirm-card {
  background: linear-gradient(150deg, rgba(229,192,123,.1), rgba(139,124,246,.09));
  border: 1px solid var(--line-gold); border-radius: var(--radius-lg); padding: 30px 26px; text-align: center;
}
.affirm-text { font-family: var(--serif); font-size: clamp(1.35rem, 3.4vw, 1.9rem); color: var(--moon); line-height: 1.5; margin: 0 0 10px; }
.affirm-sub { color: var(--muted-2); font-size: .95rem; margin: 0; }
.sign-sym { font-size: 1.05em; }
.modal-card-flex { display: flex; gap: 22px; flex-wrap: wrap; }
.modal-card-flex .modal-img { width: 170px; flex: none; }
.modal-card-flex .modal-img img { aspect-ratio: 5/8; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-gold); }
.modal-card-flex .modal-txt { flex: 1 1 320px; }

/* ---------------- Horoscope ---------------- */
.horo-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.horo-symbol {
  width: 64px; height: 64px; border-radius: 50%; flex: none; font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 35%, rgba(229,192,123,.3), rgba(139,124,246,.18));
  border: 1px solid var(--line-gold);
}
.horo-meta { color: var(--muted); font-size: .9rem; }
.score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.score-row label { flex: 0 0 92px; font-size: .86rem; color: var(--muted); }
.score-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--purple), var(--gold)); }
.score-row b { flex: 0 0 34px; text-align: right; font-size: .86rem; color: var(--gold-2); }
.lucky-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.lucky-pill { padding: 8px 15px; border-radius: 999px; background: rgba(229,192,123,.1); border: 1px solid var(--line-gold); font-size: .85rem; color: var(--gold-2); }

.week-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .week-grid { grid-template-columns: repeat(7, 1fr); gap: 8px; } }
.week-day { padding: 14px 12px; border-radius: 14px; background: var(--bg-glass); border: 1px solid var(--line); }
.week-day b { display: block; color: var(--gold-2); font-family: var(--serif); font-size: 1.06rem; }
.week-day span { font-size: .8rem; color: var(--muted); }

/* SVG chart */
.chart-wrap { width: 100%; overflow-x: auto; }
svg.bio { width: 100%; min-width: 560px; height: 260px; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: rgba(255,255,255,.025); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; color: var(--moon);
  font-size: 1rem; font-weight: 600; padding: 17px 46px 17px 18px; cursor: pointer; position: relative;
  font-family: var(--sans);
}
.faq-q::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.3rem; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; color: var(--muted); font-size: .93rem; }
.faq-a > div { padding: 0 18px 16px; }
.faq-item.open .faq-a { max-height: 600px; }

/* ---------------- Articles / prose ---------------- */
.article-layout { display: grid; gap: 34px; grid-template-columns: 1fr; padding: 34px 0 60px; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0,1fr) 270px; } }
.prose { font-size: 1.04rem; color: #d8d4f2; max-width: 72ch; }
.prose h2 { margin-top: 1.6em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.4em; color: var(--gold-2); }
.prose p, .prose li { color: #cfc9ec; }
.prose ul, .prose ol { padding-left: 1.35em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.4em 0; padding: 14px 20px; border-left: 3px solid var(--gold);
  background: rgba(229,192,123,.07); border-radius: 0 12px 12px 0; color: var(--moon); font-style: italic;
}
.prose .toc {
  background: var(--bg-glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 22px 0 28px; font-size: .92rem;
}
.prose .toc h2 { margin: 0 0 10px; font-size: 1.15rem; }
.prose .toc ol { margin: 0; padding-left: 1.3em; }
.prose .toc a { color: var(--muted); }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 20px 0 26px; border: 1px solid var(--line); }
.article-cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.article-meta { color: var(--muted-2); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 6px; }
.article-sidebar .card { padding: 20px; }
.article-sidebar h4 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); }
.related-mini { display: block; margin-bottom: 14px; border-radius: 12px; overflow: hidden; position: relative; min-height: 88px; border: 1px solid var(--line); }
.related-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.related-mini::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,7,24,.92), rgba(8,7,24,.45)); }
.related-mini span { position: relative; display: block; padding: 14px; font-family: var(--serif); font-size: 1.05rem; color: #fff; }

[lang="zh"] { display: none; }
html[lang="zh"] [lang="en"] { display: none !important; }
html[lang="zh"] [lang="zh"] { display: revert; }
/* keep block-level zh content behaving normally */
html[lang="zh"] body [lang="zh"] { display: block; }
html[lang="zh"] body span[lang="zh"],
html[lang="zh"] body a[lang="zh"],
html[lang="zh"] body small[lang="zh"],
html[lang="zh"] body b[lang="zh"],
html[lang="zh"] body strong[lang="zh"],
html[lang="zh"] body label[lang="zh"],
html[lang="zh"] body option[lang="zh"],
html[lang="zh"] body button[lang="zh"] { display: inline; }
html[lang="zh"] .prose [lang="zh"],
html[lang="zh"] .faq-a [lang="zh"],
html[lang="zh"] li[lang="zh"] { display: list-item; }
html[lang="zh"] .brand-name [lang="zh"] { display: inline; }

/* ---------------- Ad slot ---------------- */
.ad-slot { display: none; margin: 28px auto; max-width: 760px; min-height: 0; text-align: center; }
body.ads-enabled .ad-slot { display: block; min-height: 110px; background: rgba(255,255,255,.02); border: 1px dashed var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.ad-slot .ad-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }

/* ---------------- Misc ---------------- */
.notice {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px;
  background: rgba(127,209,199,.08); border: 1px solid rgba(127,209,199,.3); color: #bfe6e1; font-size: .9rem;
}
.notice.gold { background: rgba(229,192,123,.08); border-color: var(--line-gold); color: #e9d9b4; }
.notice.warn { background: rgba(224,138,138,.07); border-color: rgba(224,138,138,.3); color: #efc3c3; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .es-ico { font-size: 3rem; margin-bottom: 12px; opacity: .8; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .9rem; white-space: nowrap; }
.ornament { text-align: center; color: var(--gold); letter-spacing: .6em; font-size: .9rem; margin: 18px 0; opacity: .75; }
.pill-lang { font-size: .7rem; color: var(--muted-2); }
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.search-box { position: relative; flex: 1 1 220px; }
.search-box input { padding-left: 42px; }
.search-box::before { content: '🔍'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: .95rem; opacity: .7; }

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }

.fav-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.history-item { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); margin-bottom: 10px; }
.history-item .hi-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(139,124,246,.15); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex: none; }
.history-item .hi-txt { flex: 1; min-width: 0; }
.history-item b { color: var(--moon); font-family: var(--serif); font-size: 1.08rem; display: block; }
.history-item span { font-size: .78rem; color: var(--muted-2); }
.icon-btn.small { width: 36px; height: 36px; }

.legal-prose { max-width: 800px; }
.legal-prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.legal-prose h3 { color: var(--gold-2); }
.legal-prose p, .legal-prose li { color: var(--muted); font-size: .95rem; }
.legal-prose a { text-decoration: underline; }

.members-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .members-grid { grid-template-columns: repeat(2, 1fr); } }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk .perk-ic { font-size: 1.5rem; flex: none; }

/* 404 */
.lost-wrap { text-align: center; padding: 110px 20px; }
.lost-wrap .moon-big { font-size: 4.4rem; margin-bottom: 10px; }

/* Utilities */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 18px; } .mt-3 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; } .hidden { display: none !important; }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
