/* Tarot-style site — bright purple background, earthy-gold (faux gold) accents,
   Times New Roman serif typography. First design draft. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple-deep: #3d2266;
  --purple: #5b3a96;
  --purple-mid: #6e4aad;
  --purple-light: #8461c4;
  --purple-card: #6a45a8;
  --gold: #c9a227;
  --gold-bright: #e6c96a;
  --gold-soft: #d9b64a;
  --cream: #f8f1e0;
  --cream-dim: #e9dcf5;
  --ink: #f4ecff;
  --ink-dim: #d9c9f0;
}

body {
  font-family: "Times New Roman", Times, "Songti SC", serif;
  background: var(--purple);
  background-image:
    radial-gradient(ellipse 70% 45% at 20% 0%, #8461c4 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 15%, #7550b8 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 100%, #4a2c7d 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Faux-gold picture frame: double border like a tarot card */
.gold-frame, .hero-media img, .screenshot-row img {
  border: 3px solid var(--gold);
  outline: 1px solid var(--gold-bright);
  outline-offset: 4px;
  box-shadow: 0 14px 44px rgba(30, 10, 60, .55), inset 0 0 0 1px rgba(230, 201, 106, .35);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(61, 34, 102, .94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding: 14px 20px; }
.logo {
  font-size: 24px; font-weight: 700; color: var(--gold-bright);
  letter-spacing: 2px; font-variant: small-caps;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; }
.main-nav a { color: var(--ink-dim); font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.main-nav a:hover { color: var(--gold-bright); text-decoration: none; }
.header-right { display: flex; align-items: center; gap: 16px; }

/* Mobile hamburger nav (hidden on desktop) */
.nav-toggle { display: none; position: relative; }
.nav-toggle summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px; color: var(--gold-bright);
  border: 1px solid rgba(230, 201, 106, .5); background: rgba(0,0,0,.2);
}
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; z-index: 60;
  background: var(--purple-card); border: 1px solid var(--gold); border-radius: 10px;
  padding: 6px; display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.nav-toggle-menu a {
  color: var(--cream); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 10px 12px; border-radius: 6px; white-space: nowrap;
}
.nav-toggle-menu a:hover { background: var(--purple-mid); color: var(--gold-bright); text-decoration: none; }
.lang-switcher { display: flex; gap: 10px; font-size: 13px; }
.lang-switcher .current { color: var(--gold-bright); font-weight: 700; }

/* Language dropdown (flag + name, details-based, no JS) */
.lang-dropdown { position: relative; }
.lang-dropdown summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  color: var(--ink-dim); font-size: 13px; font-weight: 500;
  padding: 7px 12px; border: 1px solid var(--gold); border-radius: 8px;
  background: var(--purple-deep); white-space: nowrap;
}
.lang-dropdown summary::-webkit-details-marker { display: none; }
.lang-dropdown summary::after { content: "▾"; margin-left: 2px; color: var(--gold-soft); font-size: 10px; }
.lang-dropdown[open] summary { border-color: var(--gold-bright); color: var(--cream); }
.lang-dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 30;
  background: var(--purple-deep); border: 1px solid var(--gold); border-radius: 10px;
  padding: 6px; min-width: 168px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 2px;
}
.lang-dropdown-menu a {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-dim); font-size: 13px; padding: 8px 10px; border-radius: 6px;
}
.lang-dropdown-menu a:hover { background: var(--purple-mid); color: var(--cream); text-decoration: none; }
.lang-dropdown .flag { font-size: 16px; line-height: 1; }
.lang-dropdown .flag img { width: 1.2em; height: 1.2em; vertical-align: -0.2em; }

/* Footer language switcher: mobile only (header switcher hides on mobile);
   the menu opens upward since it sits near the page bottom. */
.footer-lang { display: none; }
.footer-lang .lang-dropdown-menu { top: auto; bottom: calc(100% + 6px); }
/* Mobile: show only the flag icon in the app header language switcher */
@media (max-width: 640px) {
  .app-header .lang-dropdown .lang-name { display: none; }
  .app-header .lang-dropdown summary { gap: 0; padding: 7px 9px; }
}
.btn-login {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--purple-deep); font-weight: 700; padding: 9px 22px; border-radius: 8px;
  box-shadow: 0 4px 14px rgba(201, 162, 39, .4);
}
.btn-login:hover { filter: brightness(1.1); text-decoration: none; }
.btn-account {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--purple-deep); box-shadow: 0 4px 14px rgba(201, 162, 39, .4);
}
.btn-account:hover { filter: brightness(1.1); }
.account-dropdown { position: relative; }
.account-dropdown summary { list-style: none; cursor: pointer; }
.account-dropdown summary::-webkit-details-marker { display: none; }
.account-dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; z-index: 60;
  background: var(--purple-card); border: 1px solid var(--gold); border-radius: 10px;
  padding: 6px; display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.account-dropdown-menu a {
  color: var(--cream); text-decoration: none; font-size: 14px;
  padding: 9px 12px; border-radius: 6px; white-space: nowrap;
}
.account-dropdown-menu a:hover { background: var(--purple-mid); text-decoration: none; }

/* My Orders page */
.orders-list { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto; }
.order-card {
  background: var(--purple-card); border: 1px solid rgba(201,162,39,.4); border-radius: 12px; padding: 18px 22px;
}
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-number { color: var(--gold-bright); font-weight: 700; }
.order-status { font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: var(--ink-dim); }
.order-status-paid { color: #7be0a4; border-color: #7be0a4; }
.order-status-shipped { color: #7ec3ff; border-color: #7ec3ff; }
.order-status-pending { color: var(--gold-bright); border-color: var(--gold-bright); }
.order-status-failed, .order-status-cancelled { color: #ff8a8a; border-color: #ff8a8a; }
.order-items { color: var(--ink-dim); font-size: 14px; margin: 8px 0; }
.order-foot { display: flex; align-items: center; gap: 16px; }
.order-date { color: var(--ink-dim); font-size: 13px; }
.order-total { color: var(--cream); font-weight: 700; margin-left: auto; }
.order-pay-btn { padding: 6px 16px; font-size: 13px; }

/* Settings language bottom sheet */
.lang-current {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--purple-deep); font-weight: 700; padding: 9px 22px; border-radius: 8px;
  border: none; cursor: pointer; font-family: inherit; font-size: 15px;
  box-shadow: 0 4px 14px rgba(201, 162, 39, .4);
}
.lang-sheet-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90;
}
.lang-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--purple-card); border-top: 1px solid var(--gold);
  border-radius: 16px 16px 0 0; padding: 18px 18px 26px;
  max-height: 60vh; overflow-y: auto;
}
.lang-sheet-title { color: var(--gold-bright); font-weight: 700; margin-bottom: 10px; text-align: center; }
.lang-sheet-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--cream); text-decoration: none; font-size: 15px;
  padding: 12px 10px; border-radius: 8px;
}
.lang-sheet-item:hover { background: var(--purple-mid); text-decoration: none; }
.lang-sheet-item.current { color: var(--gold-bright); font-weight: 700; }
.lang-sheet-item .flag img { width: 1.2em; height: 1.2em; vertical-align: -0.2em; }
.btn-big { font-size: 17px; padding: 13px 32px; display: inline-block; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-text h1 {
  font-size: 48px; line-height: 1.15; color: var(--cream);
  white-space: pre-line;
  font-variant: small-caps; letter-spacing: 1.5px;
  margin-bottom: 18px;
  text-shadow: 0 3px 12px rgba(30, 10, 60, .5);
}
.hero-sub { color: var(--ink-dim); font-size: 18px; font-style: italic; margin-bottom: 28px; max-width: 520px; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-rating { color: var(--gold-bright); font-size: 14px; }
.hero-media img { width: 100%; border-radius: 6px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-title {
  text-align: center; font-size: 32px; color: var(--gold-bright);
  font-variant: small-caps; letter-spacing: 2px; margin-bottom: 6px;
}
.section-title::before, .section-title::after {
  content: "✦"; color: var(--gold); font-size: 18px; padding: 0 14px; vertical-align: 4px;
}
.section-sub { text-align: center; color: var(--ink-dim); font-style: italic; margin-bottom: 44px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--purple-card);
  border: 1px solid var(--gold); border-radius: 12px;
  box-shadow: inset 0 0 0 4px var(--purple-card), inset 0 0 0 5px rgba(230, 201, 106, .45);
  padding: 28px 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 4px var(--purple-card), inset 0 0 0 5px var(--gold-bright), 0 10px 28px rgba(30,10,60,.45); }
.feature-icon { width: 44px; height: 44px; object-fit: contain; margin-bottom: 14px; border-radius: 6px; }
.feature-card h3 { color: var(--gold-bright); font-size: 18px; letter-spacing: .5px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-dim); font-size: 14px; }

/* Screenshots */
.screenshot-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.screenshot-row img { width: 100%; border-radius: 6px; }

/* Steps */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card {
  position: relative;
  background: var(--purple-card);
  border: 1px solid var(--gold); border-radius: 12px;
  padding: 26px 24px;
}
.step-num {
  position: absolute; top: 10px; right: 16px;
  font-size: 36px; font-weight: 700; color: rgba(230, 201, 106, .35);
  font-family: "Times New Roman", Times, serif;
}
.step-card h3 { color: var(--gold-bright); font-size: 17px; margin-bottom: 8px; }
.step-card p { color: var(--ink-dim); font-size: 14px; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  background: var(--purple-card);
  border: 1px solid var(--gold); border-radius: 12px; padding: 24px;
}
.testimonial-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--purple-deep); font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase;
}
.testimonial-head small { display: block; color: var(--ink-dim); }
.stars { color: var(--gold-bright); margin-bottom: 10px; }
.testimonial-card p { color: var(--cream-dim); font-size: 14px; font-style: italic; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--purple-card);
  border: 1px solid var(--gold); border-radius: 10px;
  padding: 16px 22px;
}
.faq-item summary {
  cursor: pointer; color: var(--cream); font-weight: 700; font-size: 15px;
  list-style: none; position: relative; padding-right: 28px;
}
.faq-item summary::after {
  content: "▾"; position: absolute; right: 0; top: 0; color: var(--gold-bright);
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { color: var(--ink-dim); font-size: 14px; padding-top: 12px; white-space: pre-line; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple-deep);
  border-top: 2px solid var(--gold);
  padding: 48px 0 28px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.footer-brand strong { color: var(--gold-bright); font-size: 18px; font-variant: small-caps; letter-spacing: 1.5px; }
.footer-brand p { color: var(--ink-dim); font-size: 14px; margin-top: 10px; font-style: italic; }
.footer-col h4 { color: var(--cream); font-size: 14px; margin-bottom: 12px; letter-spacing: 1px; }
.footer-col a { display: block; color: var(--ink-dim); font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--gold-bright); text-decoration: none; }
.privacy-text { color: var(--ink-dim); font-size: 13px; margin-bottom: 18px; }
.disclaimer { color: #b39ddb; font-size: 12px; text-align: center; max-width: 780px; margin: 0 auto 8px; }
.copyright { color: #8f76b8; font-size: 12px; text-align: center; }

/* ---------- Number balls (shared: results, app) ---------- */
.balls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ball {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: #2a1848;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #e8e8e8 45%, #b9b9b9 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .5), inset 0 -4px 8px rgba(0, 0, 0, .15);
}
.ball.gold {
  background: radial-gradient(circle at 32% 28%, #f2dd96 0%, #d9b64a 50%, #a8821e 100%);
}
.ball.red {
  background: radial-gradient(circle at 32% 28%, #ff8a8a 0%, #e63946 50%, #a31621 100%);
  color: #fff;
}
.ball.pool2 {
  background: radial-gradient(circle at 32% 28%, #c9b3f0 0%, #8461c4 50%, #4a2c7d 100%);
  color: #fff;
}
.ball.empty { background: radial-gradient(circle at 32% 28%, #5b3a96 0%, #3d2266 60%, #2a1848 100%); box-shadow: inset 0 2px 6px rgba(0,0,0,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid, .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .step-grid, .screenshot-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-inner { flex-wrap: nowrap; gap: 12px; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-right .cart-icon-link { display: none; } /* the floating cart button covers this entry */
  .header-right .lang-dropdown { display: none; } /* language switcher moves to the footer */
  .footer-lang { display: block; margin-top: 16px; }
  .header-right { margin-left: auto; gap: 10px; }
  .hero { padding: 48px 0 40px; }
  .hero-text h1 { font-size: 26px; letter-spacing: 1px; }
  .hero-sub { font-size: 15px; margin-bottom: 20px; }
  .section { padding: 44px 0; }
  .section-title { font-size: 22px; letter-spacing: 1px; }
  .section-title::before, .section-title::after { font-size: 13px; padding: 0 8px; vertical-align: 3px; }
  .section-sub { font-size: 14px; margin-bottom: 28px; }
  .feature-grid, .testimonial-grid, .screenshot-row, .footer-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .step-card { padding: 18px 14px; }
  .step-num { font-size: 26px; }
  .step-card h3 { font-size: 15px; }
  .step-card p { font-size: 13px; }
}

/* Mobile screenshots: horizontal snap carousel instead of a tall stack */
@media (max-width: 600px) {
  .screenshot-row {
    display: flex; overflow-x: auto; gap: 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .screenshot-row::-webkit-scrollbar { display: none; }
  .screenshot-row img { flex: 0 0 78%; scroll-snap-align: center; }
  /* Marquee mode (JS): continuous scroll, no snap points */
  .screenshot-row.marquee { scroll-snap-type: none; }
  .screenshot-row.marquee img { scroll-snap-align: none; }
}

/* ---------- App (logged-in) ---------- */
body.app { padding-bottom: 84px; }
.app-header {
  background: rgba(61, 34, 102, .95);
  border-bottom: 2px solid var(--gold);
  position: sticky; top: 0; z-index: 20;
}
.app-user { color: var(--ink-dim); font-size: 14px; }
.app-main { padding: 28px 20px 40px; }
.app-page-title {
  text-align: center; color: var(--gold-bright); font-size: 26px;
  font-variant: small-caps; letter-spacing: 3px;
  text-shadow: 0 3px 10px rgba(0,0,0,.5);
  margin-bottom: 24px;
}

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-around; align-items: flex-end;
  background: var(--purple-deep); border-top: 1px solid var(--gold);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.bottom-nav a {
  color: var(--ink-dim); display: flex; flex-direction: column; align-items: center;
  gap: 2px; font-size: 11px; padding: 4px 18px;
  /* Equal-width slots keep the center home button centered regardless of
     label length (e.g. "Hasil" vs "Pengaturan") */
  flex: 1;
}
.bottom-nav .nav-home { flex: 0 0 58px; }
.bottom-nav a:hover { text-decoration: none; color: var(--cream); }
.bottom-nav a.active { color: var(--gold-bright); }
.bottom-nav .nav-home {
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-deep));
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 58px; height: 58px;
  margin-top: -28px;
  justify-content: center;
  color: var(--gold-bright);
  box-shadow: 0 6px 18px rgba(0,0,0,.6);
}

/* Generator */
.generator { text-align: center; max-width: 640px; }
.game-select { position: relative; max-width: 420px; margin: 0 auto 34px; text-align: left; }
.game-current {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: var(--purple-card); border: 2px solid var(--gold); border-radius: 12px;
  color: var(--cream); padding: 12px 18px; cursor: pointer; font-size: 16px; font-family: inherit;
}
.game-label { color: var(--gold-bright); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.game-name { flex: 1; font-weight: 700; }
.chev { color: var(--gold-bright); }
.game-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 15;
  background: #f4f0fa; border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.game-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; border-bottom: 1px solid #d9cfe8;
  padding: 14px 18px; font-size: 16px; color: #2a1848; cursor: pointer; text-align: left; font-family: inherit;
}
.game-option:hover { background: #e9e2f5; }
.game-option img { width: 26px; height: 26px; object-fit: contain; }
.game-option .check { margin-left: auto; font-weight: 700; }

.balls-big { justify-content: center; margin-bottom: 18px; }
.balls-big .ball { width: 62px; height: 62px; font-size: 26px; }
.extra-picks { display: flex; justify-content: center; gap: 22px; color: var(--ink-dim); margin-bottom: 16px; }
.extra-picks b { color: var(--gold-bright); }

.mode-toggle {
  display: inline-flex; background: var(--purple-deep); border: 1px solid var(--gold);
  border-radius: 999px; padding: 4px; margin-bottom: 10px;
}
.mode-btn {
  border: none; background: none; color: var(--ink-dim);
  padding: 9px 22px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 600; font-family: inherit;
}
.mode-btn.active {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--purple-deep);
  box-shadow: 0 0 14px rgba(201, 162, 39, .5);
}
.mode-hint { color: var(--gold-bright); font-size: 13px; margin-bottom: 30px; }

.gen-row { display: flex; justify-content: center; align-items: center; gap: 34px; }
/* Keep the generate circle centered: side buttons must have equal width
   (labels like "Favorit" vs "Pilihan Saya" differ per language) */
.gen-row .side-btn { width: 96px; flex-shrink: 0; }
@media (max-width: 420px) {
  .gen-row { gap: 12px; }
  .gen-row .side-btn { width: 80px; }
}
.generate-btn {
  width: 132px; height: 132px; border-radius: 50%;
  border: 4px solid var(--gold);
  background: radial-gradient(circle at 35% 30%, var(--purple-light), var(--purple-deep) 70%);
  color: var(--cream); cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 0 26px rgba(201, 162, 39, .4), 0 10px 24px rgba(0,0,0,.5);
  transition: transform .12s ease;
}
.generate-btn:hover { transform: scale(1.04); }
.generate-btn:disabled { opacity: .6; cursor: wait; }
.gen-title { font-weight: 700; font-size: 16px; letter-spacing: 1px; }
.gen-sub { color: var(--gold-bright); font-size: 11px; letter-spacing: 1px; }
.side-btn {
  background: none; border: none; color: var(--ink-dim); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px;
  text-decoration: none; font-family: inherit;
}
.side-btn:hover { color: var(--gold-bright); }
.gen-links { margin-top: 18px; color: var(--ink-dim); font-size: 14px; }
.save-msg { margin-top: 10px; color: var(--gold-bright); min-height: 20px; }

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(30, 15, 55, .8);
  display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px;
}
.modal-box {
  position: relative; max-width: 560px; width: 100%;
  background: var(--purple-deep); border: 2px solid var(--gold); border-radius: 12px;
  padding: 26px 24px;
}
.modal-box h3 { color: var(--cream); font-size: 22px; margin-bottom: 12px; }
.modal-box p { color: var(--ink); font-size: 15px; white-space: pre-line; }
.modal-close {
  position: absolute; top: 10px; right: 12px;
  background: var(--gold); color: var(--purple-deep); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 15px; cursor: pointer;
}

/* Result cards */
.result-cards { display: flex; flex-direction: column; gap: 18px; max-width: 640px; margin: 0 auto; }
.result-card {
  display: block; background: var(--purple-card); border: 1px solid var(--gold);
  border-radius: 12px; padding: 18px 20px; color: inherit;
}
a.result-card:hover { text-decoration: none; border-color: var(--gold-bright); }
.result-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--cream); }
.result-head .chev { margin-left: auto; font-size: 22px; }
.result-logo { height: 26px; object-fit: contain; }
.result-label { color: var(--ink-dim); font-size: 14px; margin-bottom: 10px; }
.result-date { color: #b39ddb; font-size: 13px; margin-top: 10px; }
.result-card .balls { margin: 4px 0; }
.result-card .ball { width: 40px; height: 40px; font-size: 16px; }
.pick-mode { color: var(--gold-bright); font-size: 12px; }
.pick-insight { color: var(--ink-dim); font-size: 13px; margin-top: 10px; }
.pick-del {
  margin-left: auto; background: none; border: 1px solid var(--gold); color: var(--ink-dim);
  border-radius: 6px; width: 28px; height: 28px; cursor: pointer;
}
.pick-del:hover { color: #ff8a8a; border-color: #e63946; }
.empty { color: var(--ink-dim); text-align: center; padding: 30px 0; }
.settings-langs { display: flex; gap: 10px; }
.current-lang { opacity: .55; }
.back-link { color: var(--gold-bright); display: inline-block; margin: 28px 0 16px; }
@media (max-width: 600px) { .back-link { display: block; text-align: center; } }

/* Pricing page */
.pricing-page { max-width: 1000px; }
.pricing-subtitle { color: var(--ink-dim); text-align: center; margin: -24px 0 40px; font-size: 15px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan-card {
  background: var(--purple-card); border: 1px solid var(--gold); border-radius: 14px;
  padding: 26px 24px; display: flex; flex-direction: column;
}
.plan-card:hover { border-color: var(--gold-bright); }
.plan-name { color: var(--gold-bright); font-size: 20px; margin-bottom: 12px; text-align: center; font-variant: small-caps; letter-spacing: 1px; }
.plan-desc { color: var(--cream-dim); font-size: 14px; margin-bottom: 18px; flex: 1; }
.plan-desc h1, .plan-desc h2, .plan-desc h3, .plan-desc h4 { color: var(--cream-dim); font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.plan-desc p { margin: 0 0 6px; }
.plan-desc ul { padding-left: 18px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* Buy buttons + billing toggle + top-up section */
.billing-toggle {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
  background: var(--purple-deep); border: 1px solid var(--gold); border-radius: 999px;
  padding: 4px; margin: 0 auto 30px; width: fit-content;
}
.billing-pill {
  border: none; background: none; color: var(--ink-dim); cursor: pointer;
  padding: 9px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; font-family: inherit;
}
.billing-pill.active {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--purple-deep);
  box-shadow: 0 0 14px rgba(201, 162, 39, .5);
}
.plan-price { color: var(--cream); font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.btn-buy.disabled { background: var(--purple-mid); color: var(--ink-dim); cursor: not-allowed; }
.btn-buy.disabled:hover { filter: none; }
.btn-buy {
  display: inline-block; text-align: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--purple-deep);
  font-weight: 700; font-size: 14px; padding: 10px 26px; border-radius: 8px;
  margin-top: 16px;
}
.btn-buy:hover { filter: brightness(1.1); text-decoration: none; }
.plan-card .btn-buy { align-self: center; }
.topup-section { margin-top: 56px; }
.topup-title { color: var(--cream); font-size: 22px; text-align: center; margin-bottom: 22px; }
.topup-box {
  background: var(--purple-deep); border: 1px solid var(--gold); border-radius: 14px;
  padding: 22px 24px;
}
.topup-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.topup-option {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1px solid var(--purple-light); border-radius: 12px; padding: 16px 18px;
}
.topup-option input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.topup-option .topup-radio {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--purple-light);
}
.topup-option.selected { border-color: var(--gold); }
.topup-option.selected .topup-radio { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 40%, transparent 45%); }
.topup-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.topup-price { color: var(--cream); font-size: 20px; font-weight: 700; }
.topup-original { color: var(--ink-dim); font-size: 13px; }
.topup-discount { color: var(--gold-bright); font-size: 12px; font-weight: 700; }
.topup-points { display: block; color: var(--ink-dim); font-size: 13px; margin-top: 4px; }
.topup-per100 { color: #b39ddb; }
.topup-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--purple-light);
}
.topup-note { color: var(--ink-dim); font-size: 13px; }
.topup-foot .btn-buy { margin-top: 0; }
@media (max-width: 900px) { .topup-options { grid-template-columns: 1fr; } }

/* Payment checkout page */
.pay-page { max-width: 520px; position: relative; }
.pay-mystic-bg {
  position: absolute; top: 90px; right: -130px; z-index: 0;
  opacity: .9; pointer-events: none;
}
@media (max-width: 900px) { .pay-mystic-bg { right: -30px; opacity: .5; } }
@media (max-width: 640px) { .pay-mystic-bg { display: none; } }
.mystic-aura { animation: mystic-pulse 4s ease-in-out infinite; transform-origin: center; }
.mystic-flame { animation: mystic-flicker 1.6s ease-in-out infinite; transform-origin: 187px 145px; }
.mystic-star { animation: mystic-drift 5s ease-in-out infinite; }
.mystic-star.s2 { animation-delay: -1.2s; animation-duration: 6s; }
.mystic-star.s3 { animation-delay: -2.4s; animation-duration: 4.4s; }
.mystic-star.s4 { animation-delay: -3.1s; animation-duration: 5.6s; }
@keyframes mystic-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}
@keyframes mystic-flicker {
  0%, 100% { transform: scale(1) skewX(0deg); }
  25% { transform: scale(1.06, .94) skewX(2.5deg); }
  50% { transform: scale(.94, 1.08) skewX(-2deg); }
  75% { transform: scale(1.04, .96) skewX(1.5deg); }
}
@keyframes mystic-drift {
  0%, 100% { transform: translate(0, 0); opacity: .35; }
  30% { opacity: 1; }
  50% { transform: translate(6px, -8px); opacity: .7; }
  80% { transform: translate(-5px, 5px); opacity: 1; }
}
.pay-card { position: relative; z-index: 1; }
.pay-card {
  background: var(--purple-card); border: 1px solid var(--gold); border-radius: 14px;
  padding: 34px 30px; text-align: center;
}
.pay-item-name { color: var(--gold-bright); font-size: 22px; font-weight: 700; }
.pay-item-sub { color: var(--ink-dim); font-size: 14px; margin-top: 4px; }
.pay-tarot-hook { color: var(--ink-dim); font-size: 14px; font-style: italic; line-height: 1.7; margin: 12px 0 0; }
.pay-price { color: var(--cream); font-size: 34px; font-weight: 700; margin: 18px 0 24px; }
.pay-lines { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.pay-lines td { padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
.pay-line-name { color: var(--cream); }
.pay-line-qty { color: var(--ink-dim); white-space: nowrap; }
.pay-line-total { color: var(--cream); text-align: right !important; white-space: nowrap; }
.pay-address { margin: 0 0 24px; text-align: left; }
.pay-address-title { color: var(--gold-bright); font-size: 16px; margin: 0 0 12px; }
.pay-field { margin-bottom: 10px; }
.pay-field input, .pay-field select {
  width: 100%; padding: 10px 12px; border-radius: 8px; font-size: 14px;
  border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.25); color: var(--cream);
}
.pay-field input::placeholder { color: var(--ink-dim); }
.pay-code-row { display: flex; gap: 8px; }
.pay-code-row input { flex: 3; min-width: 0; }
.pay-field input, .pay-field select { height: 44px; box-sizing: border-box; }
.pay-code-row .btn {
  flex: 2;
  height: 44px; padding: 0 12px; font-size: 14px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
.pay-code-row .btn.verified { border-color: #7be0a4; color: #7be0a4; }
#gpay-button { display: flex; justify-content: center; }
.pay-error { color: #ff8a8a; font-size: 14px; margin-top: 14px; }

/* App settings page */
.settings-plan-name { color: var(--gold-bright); font-size: 20px; font-weight: 700; }
.settings-plan-dates { color: #b39ddb; font-size: 13px; }
.settings-points { color: var(--cream); font-size: 26px; font-weight: 700; }
.points-cap { color: var(--ink-dim); font-size: 13px; }
.record-row {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  padding: 8px 0; border-bottom: 1px solid var(--purple-light); color: var(--ink-dim);
}
.record-row:last-child { border-bottom: none; }
.record-kind { color: var(--cream); font-weight: 600; min-width: 70px; }
.record-amount { color: var(--gold-bright); }
.record-points { color: #7fd6b5; }
.record-date { margin-left: auto; color: #b39ddb; font-size: 12px; }
.pw-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.pw-form input {
  background: var(--purple-deep); border: 1px solid var(--purple-light); border-radius: 8px;
  color: var(--cream); padding: 10px 14px; font-size: 14px; font-family: inherit;
}
.pw-form .btn-login { border: none; cursor: pointer; font-family: inherit; }
.pw-msg { font-size: 13px; margin-bottom: 8px; }
.pw-ok { color: #7fd6b5; }
.pw-err { color: #ff8a8a; }
.upgrade-tier {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--purple-light); font-size: 14px;
}
.upgrade-tier:last-child { border-bottom: none; }
.upgrade-tier .tier-label { color: var(--ink-dim); flex: 1; }
.upgrade-tier .tier-price { color: var(--gold-bright); font-weight: 700; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* Standalone content pages (privacy, etc.) */
.page-content { padding: 64px 20px 72px; }
.page-title { color: var(--cream); font-size: 32px; margin-bottom: 40px; padding-bottom: 18px; border-bottom: 1px solid var(--gold); font-variant: small-caps; letter-spacing: 2px; }
.page-body { color: var(--cream-dim); font-size: 15px; }
.page-body h2, .page-body h3 { color: var(--gold-bright); margin: 28px 0 12px; }
.page-body p { margin-bottom: 16px; }

/* Emoji icons (landing feature/step cards) */
.emoji-icon { display: block; font-size: 40px; line-height: 1; margin-bottom: 14px; }

/* Emoji palette in admin forms */
.emoji-palette { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-width: 420px; }
.emoji-palette span { font-size: 22px; cursor: pointer; padding: 4px 6px; border: 1px solid #ddd; border-radius: 6px; }
.emoji-palette span:hover { background: #f0f0f8; border-color: var(--purple); }

/* ---------- Auth pages (login / signup) ---------- */
.auth-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(61, 34, 102, .94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
}
.auth-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; max-width: 1140px; margin: 0 auto; }
.auth-header-right { display: flex; align-items: center; gap: 16px; }
.auth-back { color: var(--ink-dim); font-size: 14px; font-weight: 500; }
.auth-back:hover { color: var(--gold-bright); text-decoration: none; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 20px 64px; }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--purple-card); border: 1px solid var(--gold); border-radius: 14px;
  padding: 36px 34px;
  box-shadow: 0 20px 60px rgba(30, 10, 60, .55);
}
.auth-title { text-align: center; color: var(--cream); font-size: 26px; font-weight: 700; margin-bottom: 24px; font-variant: small-caps; letter-spacing: 1.5px; }

.auth-tabs {
  display: flex; background: var(--purple-deep); border: 1px solid var(--gold);
  border-radius: 999px; padding: 4px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; border: none; background: none; color: var(--ink-dim);
  padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--purple-deep);
  box-shadow: 0 4px 14px rgba(201, 162, 39, .4);
}
.auth-pane { display: none; }
.auth-pane.active { display: block; }

.auth-field { margin-bottom: 16px; }
.auth-label { display: block; color: var(--ink-dim); font-size: 13px; margin-bottom: 6px; }
.auth-hint { display: block; color: #b39ddb; font-size: 12px; margin-top: 6px; }
.auth-desc { color: var(--ink-dim); font-size: 14px; text-align: center; margin-bottom: 24px; }
.auth-input {
  width: 100%; background: var(--purple-deep); border: 1px solid var(--purple-light); border-radius: 8px;
  color: var(--cream); padding: 11px 14px; font-size: 15px; font-family: inherit;
}
.auth-input::placeholder { color: #9a82c4; }
.auth-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .2); }
.auth-row { display: flex; gap: 8px; }
.auth-row .auth-input { flex: 1; min-width: 0; }
.auth-btn-outline {
  flex-shrink: 0; white-space: nowrap;
  background: transparent; border: 1px solid var(--gold); color: var(--gold-bright);
  border-radius: 8px; padding: 11px 16px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.auth-btn-outline:hover { background: rgba(201, 162, 39, .15); }
.auth-btn-outline:disabled { opacity: .6; cursor: wait; }
.auth-btn {
  width: 100%; border: none;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--purple-deep);
  font-weight: 700; padding: 12px 22px; border-radius: 8px; cursor: pointer;
  font-size: 15px; font-family: inherit;
  box-shadow: 0 4px 14px rgba(201, 162, 39, .4);
}
.auth-btn:hover { filter: brightness(1.1); }
.auth-btn:disabled { opacity: .6; cursor: wait; }

.auth-error { background: rgba(230, 57, 70, .15); border: 1px solid #e63946; color: #ff8a8a; border-radius: 8px; padding: 11px 14px; font-size: 14px; margin-bottom: 16px; }
.auth-success { background: rgba(29, 158, 117, .15); border: 1px solid #1d9e75; color: #7fd6b5; border-radius: 8px; padding: 11px 14px; font-size: 14px; }
.auth-msg { margin-bottom: 12px; }
.auth-foot { text-align: center; color: var(--ink-dim); font-size: 14px; margin-top: 22px; }
.auth-foot a { color: var(--gold-bright); }

.auth-footer { background: var(--purple-deep); border-top: 2px solid var(--gold); padding: 28px 20px; text-align: center; margin-top: 40px; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .auth-header-inner { flex-wrap: wrap; }
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--purple-card); border: 1px solid var(--gold); border-radius: 10px;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--gold-bright); text-decoration: none; }
.blog-card-img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; }
.blog-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-title {
  color: var(--cream); font-size: 17px; line-height: 1.4; margin: 0 0 8px;
  /* Fixed height: title is clamped to 4 lines so every card stays the same height */
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; height: calc(1.4em * 4);
}
.blog-card-date { color: #b39ddb; font-size: 13px; margin-top: auto; }
.blog-empty { text-align: center; color: var(--ink-dim); }

.blog-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; }
.blog-page-link { color: var(--gold-bright); font-size: 15px; }
.blog-page-link:hover { color: var(--cream); text-decoration: none; }
.blog-page-info { color: var(--ink-dim); font-size: 14px; }

/* Article body: keep text and images inside the viewport on all screens */
.article {
  padding: 32px 28px;
  border: 1px solid var(--gold); border-radius: 12px;
  background: var(--purple-card);
}
/* Gap between the fixed header and the article card */
.article-page { padding-top: 36px; }
.article h1 { font-size: 34px; line-height: 1.4; margin: 0 0 16px; color: var(--cream); }
/* Mobile: keep the H1 but shrink it to 60% with tighter spacing */
@media (max-width: 600px) {
  .article h1 { font-size: 20px; line-height: 1.2; margin-bottom: 8px; }
}
.article-body { overflow-wrap: break-word; }
.article-body img { max-width: 100%; height: auto; }
.article-body pre, .article-body table { max-width: 100%; overflow-x: auto; }

/* Article main image: centered on a gold-bordered plate */
.article-img {
  display: block; margin: 0 auto; max-width: 100%;
  padding: 14px; box-sizing: border-box;
  background: var(--purple-card);
  border: 1px solid var(--gold); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(30, 10, 60, .45);
  position: relative; z-index: 1;
}

/* Hero frame around the article image: gold border, animated candle +
   crystal ball backdrop with a breathing glow. */
.article-hero {
  position: relative; overflow: hidden;
  margin: 24px 0; padding: 56px 20px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 15% 100%, rgba(230, 150, 60, .12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 100%, rgba(150, 100, 220, .14) 0%, transparent 60%),
    var(--purple-deep);
  border: 1px solid var(--gold); border-radius: 14px;
  outline: 1px solid var(--gold-bright); outline-offset: 4px;
}
.hero-candle {
  position: absolute; left: 7%; bottom: 0; z-index: 0;
  width: 26px; height: 84px; border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, #d8c49a, #f4ead0 45%, #b39a6d);
  box-shadow: 0 0 24px rgba(230, 160, 70, .25);
}
.hero-candle::before { /* melted wax top */
  content: ""; position: absolute; top: -6px; left: 0; right: 0; height: 10px;
  border-radius: 50%; background: #f4ead0;
}
.hero-candle::after { /* wick */
  content: ""; position: absolute; top: -14px; left: 50%; width: 2px; height: 9px;
  margin-left: -1px; background: #2a1848;
}
.hero-flame {
  position: absolute; top: -34px; left: 50%;
  width: 16px; height: 24px; margin-left: -8px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 75%, #fff3c4 0%, #ffc53d 40%, #ff8a2a 75%, rgba(255, 90, 20, 0) 100%);
  filter: blur(.4px);
  transform-origin: 50% 100%;
  animation: hero-flicker 1.6s ease-in-out infinite;
}
.hero-flame::after { /* halo */
  content: ""; position: absolute; inset: -18px -22px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 90, .35) 0%, transparent 70%);
  animation: hero-breathe 3.2s ease-in-out infinite;
}
@keyframes hero-flicker {
  0%, 100% { transform: scale(1) skewX(0deg); }
  25% { transform: scale(1.08, .94) skewX(-3deg); }
  50% { transform: scale(.94, 1.06) skewX(2.5deg); }
  75% { transform: scale(1.04, .98) skewX(-1.5deg); }
}
.hero-orb {
  position: absolute; right: 6%; bottom: 26px; z-index: 0;
  width: 108px; height: 108px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .5) 0%, transparent 28%),
    radial-gradient(circle at 50% 55%, rgba(190, 150, 255, .55) 0%, rgba(110, 70, 190, .75) 55%, rgba(50, 25, 100, .95) 100%);
  border: 1px solid rgba(230, 201, 106, .5);
  animation: hero-orb-glow 3.2s ease-in-out infinite;
}
.hero-orb::after { /* base stand */
  content: ""; position: absolute; left: 50%; bottom: -12px;
  width: 70px; height: 12px; margin-left: -35px;
  border-radius: 50%; background: rgba(20, 8, 45, .8);
  border: 1px solid rgba(230, 201, 106, .35);
}
@keyframes hero-orb-glow {
  0%, 100% { box-shadow: 0 0 26px rgba(170, 120, 255, .35), inset 0 0 30px rgba(220, 190, 255, .18); }
  50% { box-shadow: 0 0 52px rgba(190, 140, 255, .6), inset 0 0 44px rgba(230, 205, 255, .3); }
}
@keyframes hero-breathe {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .95; transform: scale(1.18); }
}
@media (max-width: 600px) {
  /* Decorations float fully above the frame, clear of the date text. */
  .article-hero { padding: 40px 12px; overflow: visible; margin-top: 110px; }
  .hero-candle { left: auto; right: 30%; bottom: auto; top: -88px; transform: scale(.8); transform-origin: bottom left; }
  .hero-orb { right: 4%; bottom: auto; top: -98px; width: 76px; height: 76px; }
}

/* Related articles on the post page */
.related-section { margin-top: 44px; }
.related-title { color: var(--cream); font-size: 22px; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

@media (max-width: 900px) {
  .blog-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid, .related-grid { grid-template-columns: 1fr; }
}

/* ---------- Tarot card draw (homepage) ---------- */
.tarot-draw {
  display: flex; justify-content: center; gap: 42px; flex-wrap: wrap;
  perspective: 1200px; padding: 10px 0 6px;
}
.tarot-card {
  position: relative; width: 200px; height: 340px;
}
.tarot-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.35, .15, .25, 1);
  animation: tarot-float 3.2s ease-in-out infinite;
}
.tarot-card:nth-child(2) .tarot-inner { animation-delay: .5s; }
.tarot-card:nth-child(3) .tarot-inner { animation-delay: 1s; }
.tarot-card.revealed .tarot-inner { transform: rotateY(180deg); animation: none; }
@keyframes tarot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.tarot-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 12px;
  border: 3px solid var(--gold);
  outline: 1px solid var(--gold-bright); outline-offset: 3px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(30, 10, 60, .55);
}
.tarot-back {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(230, 201, 106, .28) 0%, transparent 55%),
    repeating-linear-gradient(45deg, #4a2c7d 0 10px, #3d2266 10px 20px);
}
.tarot-back span {
  font-size: 72px; font-weight: 700; color: var(--gold-bright);
  font-variant: small-caps;
  text-shadow: 0 0 18px rgba(230, 201, 106, .6), 0 3px 8px rgba(0,0,0,.5);
}
.tarot-front { transform: rotateY(180deg); background: var(--purple-deep); }
.tarot-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tarot-flash {
  position: absolute; inset: -14px; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255, 244, 200, .95) 0%, rgba(230, 201, 106, .55) 35%, transparent 70%);
  opacity: 0; z-index: 2;
}
.tarot-card.flash .tarot-flash { animation: tarot-flash .55s ease-out; }
@keyframes tarot-flash {
  0% { opacity: 0; transform: scale(.6); }
  35% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.25); }
}
@media (max-width: 700px) {
  /* 3 cards must fit in one row on narrow screens (app + article pages). */
  .tarot-draw { gap: 12px; flex-wrap: nowrap; }
  .tarot-card { width: 96px; height: 164px; }
  .tarot-back span { font-size: 36px; }
  .tarot-face { border-width: 2px; border-radius: 9px; outline-offset: 2px; }
}

/* Tarot pool marquee below the draw (2/3 card size, edge fade, infinite loop) */
.tarot-marquee {
  margin-top: 52px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tarot-marquee-track {
  display: flex; gap: 18px; width: max-content;
  animation: tarot-scroll 32s linear infinite;
}
.tarot-marquee-track img {
  width: 133px; height: 227px; object-fit: cover;
  border: 2px solid var(--gold); border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30, 10, 60, .5);
}
@keyframes tarot-scroll {
  to { transform: translateX(calc(-50% - 9px)); }
}
@media (max-width: 700px) {
  .tarot-marquee { margin-top: 36px; }
  .tarot-marquee-track img { width: 85px; height: 145px; }
}

/* ---------- Hero crystal wireframe + energy waves ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-crystal {
  position: absolute; top: 50%; left: 50%; z-index: 0;
  width: 560px; max-width: 80vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-crystal::before {
  content: ""; position: absolute; inset: -25%;
  background: radial-gradient(circle, rgba(230, 201, 106, .16) 0%, transparent 60%);
}
.hero-crystal svg { width: 100%; height: auto; display: block; animation: crystal-breathe 6s ease-in-out infinite; }
.crystal-lines path {
  stroke: rgba(230, 201, 106, .55); stroke-width: 1.2;
  filter: drop-shadow(0 0 6px rgba(230, 201, 106, .35));
  animation: crystal-shimmer 4s ease-in-out infinite;
}
.energy {
  stroke: rgba(240, 217, 140, .8); stroke-width: 1;
  transform-box: fill-box; transform-origin: center;
  animation: energy-wave 3.9s ease-out infinite;
}
.energy.e2 { animation-delay: 1.3s; }
.energy.e3 { animation-delay: 2.6s; }
@keyframes energy-wave {
  0% { transform: scale(.35); opacity: .9; }
  80% { opacity: .25; }
  100% { transform: scale(2.1); opacity: 0; }
}
@keyframes crystal-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@keyframes crystal-shimmer {
  0%, 100% { stroke-opacity: .45; }
  50% { stroke-opacity: .85; }
}
@media (max-width: 900px) {
  .hero-crystal { width: 340px; opacity: .7; }
}

/* ---------- Shop showcase (featured products) ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.shop-card {
  background: var(--purple-card);
  border: 1px solid var(--gold); border-radius: 12px;
  padding: 18px; text-align: center;
  transition: transform .15s ease, border-color .15s ease;
}
.shop-card:hover { transform: translateY(-3px); border-color: var(--gold-bright); }
.shop-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: 2px solid var(--gold); border-radius: 8px;
  margin-bottom: 14px;
}
.shop-card h3 {
  color: var(--gold-bright);
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.shop-price { color: var(--cream); font-size: 15px; font-weight: 700; }
.shop-price s { color: var(--ink-dim); font-weight: 400; margin-right: 8px; }
@media (max-width: 900px) { .shop-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  /* Two image-dominant cards per row; title/price overlay the image. */
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shop-card { position: relative; padding: 0; overflow: hidden; text-align: left; }
  .shop-card img { aspect-ratio: 1; border: 0; border-radius: 0; margin-bottom: 0; display: block; }
  .shop-card h3 {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
    padding: 22px 10px 8px; font-size: 13px; line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: linear-gradient(transparent, rgba(30, 10, 60, .92) 55%);
  }
  .shop-price {
    position: absolute; top: 6px; left: 6px; margin: 0;
    font-size: 12px; padding: 3px 8px; border-radius: 999px;
    background: rgba(30, 10, 60, .85);
  }
  .shop-price s { margin-right: 5px; }
}

/* ---------- Gold CTA button + shop pages ---------- */
.btn-gold {
  display: inline-block;
  background: linear-gradient(180deg, #f0d98c 0%, #d9b64a 45%, #a8821e 100%);
  color: #3d2266; font-weight: 700; font-size: 18px;
  font-variant: small-caps; letter-spacing: 2px;
  padding: 13px 46px; border-radius: 10px;
  border: 1px solid #f0d98c;
  box-shadow: 0 0 20px rgba(230, 201, 106, .55), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: filter .15s ease, transform .15s ease;
}
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }
/* The hidden attribute must win over element display rules (.btn-gold etc.). */
[hidden] { display: none !important; }
.shop-more { text-align: center; margin-top: 36px; }

a.shop-card { color: inherit; display: block; }
a.shop-card:hover { text-decoration: none; }

.shop-cats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.shop-cat {
  border: 1px solid var(--gold); border-radius: 999px;
  color: var(--ink-dim); font-size: 14px; padding: 7px 20px;
}
.shop-cat:hover { color: var(--gold-bright); text-decoration: none; }
.shop-cat.active {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--purple-deep); font-weight: 700;
}

.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
  margin-top: 26px; align-items: start;
}
/* Main product image: FIXED square window.
   Small images scale up to fill it; oversized images are cropped to fit.
   The frame size never changes with the source image's aspect ratio. */
.product-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 3px solid var(--gold);
  outline: 1px solid var(--gold-bright); outline-offset: 4px;
  box-shadow: 0 16px 44px rgba(30, 10, 60, .55);
  overflow: hidden;
  background: rgba(20, 8, 40, .45);
}
.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the window: upscale small images, crop oversized ones */
}
.product-name-wrap { position: relative; }
.product-name { color: var(--cream); font-size: 24px; font-variant: small-caps; letter-spacing: .5px; margin-bottom: 12px; }
.title-toggle {
  display: none;
  position: absolute;
  top: 2px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--gold-bright);
  font-size: 22px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.product-price { font-size: 22px; margin-bottom: 20px; }
.product-desc { color: var(--cream-dim); font-size: 15px; white-space: pre-line; }
@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-name-wrap { padding-right: 26px; }
  .product-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 8px;
  }
  .product-name.expanded {
    -webkit-line-clamp: unset;
    display: block;
  }
  .title-toggle { display: inline-block; }
}

/* ---------- Product detail page ---------- */
/* Thumbnails use a grid so any count lays out in tidy rows
   instead of leaving a lone thumb dangling on the next line. */
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, 72px);
  gap: 10px;
  margin-top: 12px;
  justify-content: start;
}
.product-thumbs img {
  width: 72px; height: 72px; object-fit: cover; cursor: pointer;
  border: 2px solid transparent; border-radius: 8px; opacity: .7;
}
.product-thumbs img:hover { opacity: 1; }
.product-thumbs img.active { border-color: var(--gold); opacity: 1; }
@media (max-width: 600px) {
  .product-thumbs { grid-template-columns: repeat(auto-fill, 64px); gap: 8px; }
  .product-thumbs img { width: 64px; height: 64px; }
}
.product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.product-rating .stars { color: var(--gold-bright); font-size: 17px; letter-spacing: 2px; }
.review-count { color: var(--ink-dim); font-size: 13px; }
.product-options h4 { color: var(--cream); font-size: 15px; margin-bottom: 10px; letter-spacing: 1px; }
.spec-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.spec-pill {
  background: var(--purple-deep); border: 1px solid var(--gold); border-radius: 8px;
  color: var(--ink); font-family: inherit; font-size: 13px;
  padding: 9px 16px; cursor: pointer;
}
.spec-pill:hover { border-color: var(--gold-bright); }
.spec-pill.active { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--purple-deep); font-weight: 700; }
.btn-buy-now { display: block; text-align: center; font-size: 20px; padding: 15px 30px; }
.product-section { margin-top: 48px; }
.product-section-title {
  color: var(--gold-bright); font-size: 22px; font-variant: small-caps; letter-spacing: 2px;
  padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--gold);
}
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-card {
  background: var(--purple-card); border: 1px solid var(--gold); border-radius: 12px;
  padding: 18px 22px;
}
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.review-head strong { color: var(--cream); }
.review-head .stars { color: var(--gold-bright); letter-spacing: 2px; }
.review-date { margin-left: auto; color: var(--ink-dim); font-size: 12px; }
.review-card p { color: var(--cream-dim); font-size: 14px; }
.review-imgs { display: flex; gap: 10px; margin-top: 10px; }
.review-imgs img { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--gold); border-radius: 8px; }
.product-qty { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.qty-label { color: var(--cream); font-size: 14px; letter-spacing: 1px; }
.qty-stepper { display: flex; align-items: stretch; border: 1px solid var(--gold); border-radius: 8px; overflow: hidden; }
.qty-stepper button {
  background: var(--purple-deep); color: var(--gold-bright); border: none;
  width: 36px; font-size: 18px; cursor: pointer;
}
.qty-stepper button:hover { background: var(--purple-card); }
.qty-stepper input {
  width: 48px; text-align: center; background: var(--purple-card); color: var(--cream);
  border: none; border-left: 1px solid var(--gold); border-right: 1px solid var(--gold);
  font-family: inherit; font-size: 15px; padding: 8px 0;
}
.product-actions { display: flex; gap: 12px; margin-bottom: 22px; }
.product-actions a, .product-actions button { text-decoration: none; }
.product-actions button { cursor: pointer; font-family: inherit; }
.product-actions .btn-buy-now { flex: 1; }
/* Mobile: float the action buttons at the bottom like an app checkout bar. */
@media (max-width: 800px) {
  .product-page { padding-bottom: 90px; }
  .product-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 12px 16px;
    background: rgba(61, 34, 102, .96);
    border-top: 1px solid var(--gold);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .35);
    z-index: 100;
    justify-content: center;
  }
  .product-actions .btn-add-cart,
  .product-actions .btn-buy-now {
    flex: 1;
    font-size: 16px;
    padding: 13px 10px;
  }
}
.btn-outline {
  display: block; text-align: center; font-size: 20px; padding: 15px 22px; flex: 1;
  border: 1px solid var(--gold); border-radius: 10px; color: var(--gold-bright);
  text-decoration: none; letter-spacing: 1px;
}
.btn-outline:hover { border-color: var(--gold-bright); background: var(--purple-card); }
.product-policy { border: 1px solid var(--gold); border-radius: 12px; padding: 16px 20px; margin-bottom: 22px; background: var(--purple-card); }
.product-policy h4, .product-side-reviews h4 {
  color: var(--gold-bright); font-size: 15px; letter-spacing: 1px; margin-bottom: 10px;
  font-variant: small-caps;
}
.product-policy ul { margin: 0; padding-left: 18px; }
.product-policy li { color: var(--cream-dim); font-size: 13px; margin-bottom: 6px; }
.product-policy li:last-child { margin-bottom: 0; }
.product-side-reviews h4 { margin-bottom: 12px; }
.side-review { border-left: 2px solid var(--gold); padding: 4px 0 4px 14px; margin-bottom: 14px; }
.side-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.side-review-head strong { color: var(--cream); font-size: 14px; }
.side-review-head .stars { color: var(--gold-bright); font-size: 13px; letter-spacing: 2px; }
.side-review p { color: var(--cream-dim); font-size: 13px; margin: 0; }
.side-reviews-more { color: var(--gold-bright); font-size: 13px; text-decoration: none; }
.side-reviews-more:hover { text-decoration: underline; }
.review-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; }
.review-pager a { color: var(--gold-bright); text-decoration: none; font-size: 14px; }
.review-pager a:hover { text-decoration: underline; }
.review-pager span { color: var(--ink-dim); font-size: 13px; }

/* ---------- Cart page ---------- */
.cart-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center;
  background: var(--purple-card); border: 1px solid var(--gold); border-radius: 12px;
  padding: 16px 20px;
}
.cart-item-img { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--gold); border-radius: 8px; }
.cart-item-name { color: var(--cream); font-size: 16px; }
.cart-item-spec { color: var(--ink-dim); font-size: 13px; margin-top: 4px; }
.cart-item-price { color: var(--gold-bright); font-size: 15px; margin-top: 6px; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-remove {
  background: none; border: none; color: var(--ink-dim); cursor: pointer;
  font-family: inherit; font-size: 13px; text-decoration: underline;
}
.cart-remove:hover { color: var(--gold-bright); }
.cart-summary {
  background: var(--purple-card); border: 1px solid var(--gold); border-radius: 12px;
  padding: 20px 24px; margin-bottom: 24px;
}
.cart-summary-row { display: flex; justify-content: space-between; color: var(--cream-dim); font-size: 15px; margin-bottom: 8px; }
.cart-summary-row.cart-total { color: var(--cream); font-size: 19px; font-weight: 700; border-top: 1px solid var(--gold); padding-top: 12px; margin-top: 12px; margin-bottom: 0; }
.cart-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.cart-empty { text-align: center; color: var(--cream-dim); padding: 60px 0; }
.cart-banner {
  background: var(--purple-card); border: 1px solid var(--gold); border-radius: 12px;
  color: var(--gold-bright); padding: 16px 22px; margin-bottom: 24px; font-size: 15px;
}
.cart-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--purple-card); border: 1px solid var(--gold); border-radius: 10px;
  color: var(--gold-bright); padding: 12px 26px; font-size: 14px; z-index: 999;
  box-shadow: 0 10px 30px rgba(30, 10, 60, .55);
}
@media (max-width: 640px) { .cart-item { grid-template-columns: 64px 1fr; } .cart-item-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }
.cart-link { color: var(--gold-bright); text-decoration: none; font-size: 14px; }
.cart-link:hover { text-decoration: underline; }
.cart-icon-link { position: relative; display: inline-flex; align-items: center; }
.cart-icon-link:hover { text-decoration: none; filter: brightness(1.15); }
.cart-icon-link .cart-count, .cart-fab-count {
  position: absolute; top: -7px; right: -9px;
  background: #e05252; color: #fff; font-size: 11px; font-weight: 700;
  min-width: 16px; height: 16px; line-height: 16px; text-align: center;
  border-radius: 999px; padding: 0 4px;
}
.cart-icon-link .cart-count:empty, .cart-fab-count:empty { display: none; }

/* Floating cart button (mobile only), dockable to the right edge; only
   visible when the cart has items (.has-items). */
.cart-fab { display: none; }
@media (max-width: 600px) {
  .cart-fab.has-items {
    display: flex; align-items: center;
    position: fixed; right: 12px; bottom: 30%; z-index: 70;
    transition: transform .25s ease;
  }
  .cart-fab-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: var(--purple-deep); box-shadow: 0 6px 18px rgba(201, 162, 39, .45);
  }
  .cart-fab-dock {
    border: none; cursor: pointer; margin-left: 4px;
    width: 20px; height: 34px; border-radius: 0 8px 8px 0;
    background: rgba(0,0,0,.35); color: var(--gold-bright); font-size: 13px; line-height: 1;
  }
  .cart-fab.docked { transform: translateX(52px); }
  .cart-fab.docked .cart-fab-dock { transform: rotate(180deg); }
}
.cart-count { display: inline-block; min-width: 16px; margin-left: 4px; color: var(--cream); font-size: 12px; }

/* ---------- Tarot fortune game (article page) ---------- */
.tarot-game {
  margin-top: 44px; padding: 32px 24px; text-align: center;
  border: 1px solid var(--gold); border-radius: 12px;
  background: var(--purple-card);
}
.tarot-game-title { color: var(--gold-bright); font-size: 24px; margin: 0 0 20px; }
.tarot-game-names { display: flex; justify-content: center; gap: 42px; flex-wrap: wrap; margin-top: 16px; }
.tarot-game-card-name { color: var(--cream); font-size: 14px; width: 200px; }
.tarot-game-actions { margin-top: 24px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.tarot-game-actions .btn-gold { width: 240px; }
.tarot-front img.reversed { transform: rotate(180deg); }
.tarot-game-question { margin-top: 24px; max-width: 520px; margin-left: auto; margin-right: auto; text-align: left; }
.tarot-game-question label { display: block; color: var(--cream); margin-bottom: 8px; }
.tarot-game-question textarea {
  width: 100%; border-radius: 8px; border: 1px solid var(--gold);
  background: var(--purple-deep); color: var(--cream); padding: 10px 12px;
  font: inherit; resize: vertical;
}
.tarot-game-question .btn-gold { display: block; margin: 12px auto 0; }
.tarot-free-hint { color: var(--gold-bright); font-size: 13px; text-align: center; margin: 8px 0 0; }
.tarot-game-reading { margin-top: 28px; text-align: left; max-width: 640px; margin-left: auto; margin-right: auto; }
.tarot-game-reading h3 { color: var(--gold-bright); margin: 0 0 12px; }
.tarot-game-reading-text { color: var(--cream); white-space: pre-wrap; line-height: 1.7; }
.tarot-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--purple-card); border: 1px solid var(--gold); border-radius: 10px;
  color: var(--gold-bright); padding: 12px 26px; font-size: 14px; z-index: 999;
  box-shadow: 0 10px 30px rgba(30, 10, 60, .55);
  opacity: 0; transition: opacity .35s ease;
}
.tarot-toast.show { opacity: 1; }
.tarot-topup-link { display: inline-block; margin-top: 14px; text-decoration: none; }
.tarot-disclaimer { color: var(--cream-dim); font-size: 12px; opacity: .75; margin: 18px 0 0; }
.article-disclaimer { border-top: 1px solid rgba(201, 162, 39, .35); padding-top: 14px; margin-top: 28px; }

/* Post type badge (tarot analysis articles) */
.post-type-badge {
  display: inline-block; vertical-align: middle;
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
  color: var(--purple-deep); background: var(--gold-bright);
  border-radius: 999px; padding: 3px 12px; margin-left: 8px;
}
.blog-card .post-type-badge { font-size: 11px; padding: 2px 9px; margin: 0 0 6px; }
@media (max-width: 700px) {
  .tarot-game-names { gap: 12px; flex-wrap: nowrap; }
  .tarot-game-card-name { width: 96px; font-size: 12px; }
  .tarot-game { padding: 24px 8px; }
  .tarot-game-actions { gap: 10px; flex-wrap: nowrap; }
  .tarot-game-actions .btn-gold { width: auto; flex: 1; padding: 10px 6px; font-size: 13px; }
}

/* ---------- App tarot history ---------- */
.app-empty { color: var(--cream); text-align: center; padding: 40px 0; opacity: .8; }
.history-list { display: grid; gap: 16px; }
.history-card {
  padding: 18px 16px; border: 1px solid var(--gold); border-radius: 12px;
  background: var(--purple-card);
}
.history-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.history-card-item { width: 84px; text-align: center; color: var(--cream); font-size: 11px; }
.history-card-item img { width: 84px; border-radius: 6px; display: block; }
.history-card-item img.reversed { transform: rotate(180deg); }
.history-question { color: var(--cream); margin: 12px 0 4px; }
.history-meta { color: var(--cream); opacity: .7; font-size: 12px; margin: 0 0 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.history-status.pending { color: var(--gold-bright); font-size: 13px; }
.history-view, .history-pay { display: inline-block; margin-top: 6px; padding: 8px 18px; font-size: 14px; text-decoration: none; }
.history-reading { margin-top: 12px; }
