/* ==========================================================================
   TAROKORTOS.COM — Brand foundation
   Shared across all pages. Glass morphism + ambient glows + Cinzel/Manrope.
   ========================================================================== */

:root {
  /* Core palette */
  --bg: #15152a;
  --bg-raised: #1c1c34;
  --bg-deep: #0f0f1e;
  --surface: rgba(32, 32, 48, 0.7);
  --surface-solid: #20202e;
  --surface-hi: rgba(40, 40, 58, 0.8);
  --border: rgba(255, 255, 255, 0.12);
  --border-hi: rgba(255, 255, 255, 0.22);
  --border-gold: rgba(219, 185, 101, 0.4);

  /* Text — high contrast for older readers */
  --text: #f2f2f8;
  --text-dim: #d6d6e0;
  --text-muted: #b8b8cc;
  --text-faint: #8a8aa2;

  /* Gold (primary accent) */
  --gold-1: #dbb965;
  --gold-2: #b68d40;
  --gold-soft: #e8cf94;
  --gold-gradient: linear-gradient(135deg, #e8cf94 0%, #dbb965 40%, #b68d40 100%);
  --gold-gradient-flat: linear-gradient(90deg, #dbb965, #b68d40);

  /* Status colors */
  --green: #3fc98e;
  --green-dim: rgba(63, 201, 142, 0.15);
  --red: #e14949;
  --red-dim: rgba(225, 73, 73, 0.15);
  --amber: #e8a93a;
  --amber-dim: rgba(232, 169, 58, 0.15);
  --violet: #8a6ed8;
  --violet-dim: rgba(138, 110, 216, 0.18);
  --blue: #5da8e6;
  --blue-dim: rgba(93, 168, 230, 0.15);

  /* Ambient */
  --glow-violet: rgba(116, 76, 196, 0.22);
  --glow-gold: rgba(219, 185, 101, 0.14);

  /* Rhythm */
  --container: 1280px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-glass: 0 30px 80px -30px rgba(0, 0, 0, 0.7),
                  inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 14px 40px -14px rgba(219, 185, 101, 0.25);

  /* Fluid type — readable for 50+ audience */
  --fs-hero: clamp(2.1rem, 3.6vw, 3rem);
  --fs-h1: clamp(1.55rem, 2.6vw, 2.05rem);
  --fs-h2: clamp(1.25rem, 1.9vw, 1.55rem);
  --fs-h3: clamp(1.1rem, 1.4vw, 1.25rem);
  --fs-body: clamp(1rem, 1.05vw, 1.05rem);
  --fs-small: 0.88rem;
  --fs-tiny: 0.78rem;

  /* Legacy aliases — kept so inherited admin/legacy templates still render */
  --bg-deep: var(--bg);
  --bg-glass: var(--surface);
  --bg-glass-strong: var(--surface-hi);
  --border-glass: var(--border);
  --border-glass-hover: var(--border-hi);
  --text-main: var(--text);
  --text-dim: var(--text-muted);
  --gold-start: var(--gold-1);
  --gold-end: var(--gold-2);
  --gold-glow: rgba(219, 185, 101, 0.25);
  --accent-green: var(--green);
  --accent-red: var(--red);
  --glow-purple: var(--glow-violet);
  --font-heading: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --radius-md: 10px;
  --radius-sm: 6px;
  --nav-height: 52px;
  --container-width: var(--container);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 18px;
  --space-xl: 28px;
}

/* Legacy utility classes — used by admin/legacy templates */
.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
}
.btn-elite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-elite:hover { border-color: var(--gold-1); color: var(--gold-1); }
.btn-elite--filled {
  background: var(--gold-gradient);
  color: #1a140a;
  border-color: transparent;
}
.btn-elite--filled:hover { color: #1a140a; filter: brightness(1.05); }
.btn-elite[disabled], .btn-elite.is-disabled { opacity: 0.4; pointer-events: none; }

.text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  margin: 0 0 6px;
}
.text-gold { color: var(--gold-1); }
.text-muted { color: var(--text-muted); }

.form-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 8px 0 4px;
}
.form-input {
  width: 100%;
  background: rgba(7, 7, 13, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.form-input:focus { outline: none; border-color: var(--gold-1); }

.mb-4 { margin-bottom: 14px; }
.section-title { font-family: 'Cinzel', serif; font-size: 0.95rem; letter-spacing: 0.08em; color: var(--text); margin: 10px 0 8px; }
.section-heading { font-family: 'Cinzel', serif; font-size: 1rem; letter-spacing: 0.06em; color: var(--text); margin: 14px 0 8px; }
.page-section { margin-bottom: 14px; }
.page-section--narrow { max-width: 560px; margin: 0 auto 14px; }
.action-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Legacy data-table (many admin pages reference this) */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 12px; }
.stat-card { padding: 10px 12px; }
.stat-card .stat-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.stat-card .stat-value { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--text); }
.stat-card .stat-value--lg { font-size: 1.4rem; color: var(--gold-1); }

.empty-state { padding: 24px; text-align: center; color: var(--text-muted); }
.empty-state-icon { font-size: 2rem; color: var(--gold-1); margin-bottom: 8px; }

.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient radial glows in the background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient::before,
.ambient::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}
.ambient::before {
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, var(--glow-violet) 0%, transparent 60%);
  top: -200px;
  left: -200px;
  animation: drift1 28s ease-in-out infinite alternate;
}
.ambient::after {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, var(--glow-gold) 0%, transparent 60%);
  bottom: -220px;
  right: -180px;
  animation: drift2 34s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(120px, 80px); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-100px, -60px); }
}

/* Stars */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(1px 1px at 17% 23%, #fff, transparent),
    radial-gradient(1px 1px at 63% 71%, #fff, transparent),
    radial-gradient(1px 1px at 84% 18%, #dbb965, transparent),
    radial-gradient(1px 1px at 29% 86%, #fff, transparent),
    radial-gradient(1px 1px at 47% 44%, #fff, transparent),
    radial-gradient(1px 1px at 91% 62%, #fff, transparent),
    radial-gradient(1px 1px at 8% 60%, #dbb965, transparent),
    radial-gradient(1px 1px at 72% 38%, #fff, transparent),
    radial-gradient(1px 1px at 38% 12%, #fff, transparent),
    radial-gradient(1px 1px at 55% 95%, #fff, transparent);
  background-size: 100% 100%;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 0.4em;
  line-height: 1.2;
}
h1 { font-size: var(--fs-h1); letter-spacing: 0.04em; }
h2 { font-size: var(--fs-h2); letter-spacing: 0.05em; }
h3 { font-size: var(--fs-h3); letter-spacing: 0.06em; }

.display {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: var(--fs-hero);
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-wrap: balance;
}

.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-1);
  display: inline-block;
}

.kicker {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-1);
}

p { margin: 0 0 0.7em; color: var(--text-dim); text-wrap: pretty; line-height: 1.65; }
p.lead { font-size: 1.1rem; color: var(--text-dim); max-width: 58ch; }

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }

.mono {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 0.85em;
  letter-spacing: 0.01em;
}

.divider-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold-1);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.divider-rule::before,
.divider-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

main { position: relative; z-index: 1; }

/* Navigation (top) */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(12, 12, 20, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 185, 101, 0.15), transparent 70%);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.brand-name span { color: var(--gold-1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-1); }

.nav-credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--gold-1);
  background: rgba(219, 185, 101, 0.06);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-gradient);
  color: #1a140a;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px -14px rgba(219, 185, 101, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-gold);
  color: var(--gold-1);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold-1);
  border: 1px solid var(--border-gold);
}
.btn-outline-gold:hover {
  background: rgba(219, 185, 101, 0.08);
}
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-lg { padding: 11px 22px; font-size: 0.95rem; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Glass card */
.glass {
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.card-gold {
  position: relative;
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    var(--gold-gradient) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }

.badge-cart        { background: rgba(157, 157, 180, 0.1); color: var(--text-muted); border-color: rgba(157, 157, 180, 0.2); }
.badge-cart .badge-dot        { background: var(--text-muted); }
.badge-pending     { background: var(--amber-dim); color: var(--amber); border-color: rgba(232, 169, 58, 0.35); }
.badge-pending .badge-dot     { background: var(--amber); }
.badge-paid        { background: var(--blue-dim); color: var(--blue); border-color: rgba(93, 168, 230, 0.35); }
.badge-paid .badge-dot        { background: var(--blue); }
.badge-drawn       { background: var(--violet-dim); color: #b09cee; border-color: rgba(138, 110, 216, 0.4); }
.badge-drawn .badge-dot       { background: #b09cee; }
.badge-drafted     { background: rgba(232, 169, 58, 0.08); color: var(--gold-1); border-color: var(--border-gold); }
.badge-drafted .badge-dot     { background: var(--gold-1); }
.badge-approved    { background: rgba(63, 201, 142, 0.08); color: var(--green); border-color: rgba(63, 201, 142, 0.3); }
.badge-approved .badge-dot    { background: var(--green); }
.badge-delivered   { background: var(--green-dim); color: var(--green); border-color: rgba(63, 201, 142, 0.45); font-weight: 700; }
.badge-delivered .badge-dot   { background: var(--green); box-shadow: 0 0 8px var(--green); }
.badge-rejected    { background: var(--red-dim); color: var(--red); border-color: rgba(225, 73, 73, 0.35); }
.badge-rejected .badge-dot    { background: var(--red); }
.badge-failed      { background: rgba(225, 73, 73, 0.08); color: #ef7575; border-color: rgba(225, 73, 73, 0.25); }
.badge-failed .badge-dot      { background: #ef7575; }
.badge-category    { background: rgba(219, 185, 101, 0.08); color: var(--gold-1); border-color: var(--border-gold); }

/* Tarot card visual placeholder — used across the site
   A shared art system: deep gradient back with sacred-geometry seal. */
.tarot-card {
  position: relative;
  aspect-ratio: 2 / 3.4;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(155deg, #1a1a2b 0%, #0d0d18 100%);
  border: 1px solid var(--border-gold);
  box-shadow:
    0 14px 40px -18px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 3px rgba(219, 185, 101, 0.08);
}
.tarot-card.back::before {
  /* ornate border */
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(219, 185, 101, 0.35);
  border-radius: 6px;
  background:
    radial-gradient(ellipse at center, rgba(219, 185, 101, 0.08) 0%, transparent 65%),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(219, 185, 101, 0.04) 10px 11px);
}
.tarot-card.back::after {
  /* seal in the middle */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(219, 185, 101, 0.18) 0%, transparent 40%);
}
.tarot-card .seal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(219, 185, 101, 0.7);
}
.tarot-card .seal svg { width: 56%; height: 56%; }

/* Card front face (stylized) */
.tarot-card.front {
  background: linear-gradient(170deg, #1d1c29 0%, #0e0d17 100%);
}
.tarot-card.front .face {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(219, 185, 101, 0.28);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  text-align: center;
}
.tarot-card.front .pip {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--gold-1);
  letter-spacing: 0.2em;
}
.tarot-card.front .scene {
  flex: 1;
  display: grid;
  place-items: center;
  color: rgba(219, 185, 101, 0.7);
  margin: 6px 0;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(219, 185, 101, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}
.tarot-card.front .scene svg { width: 70%; height: 70%; opacity: 0.85; }
.tarot-card.front .title {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text);
  text-transform: uppercase;
}
.tarot-card.reversed .scene svg { transform: rotate(180deg); }
.tarot-card.reversed .title::after { content: ' ↓'; color: var(--red); }

/* Form primitives */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.input, .textarea, .select {
  width: 100%;
  background: rgba(40, 40, 55, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.input::placeholder, .textarea::placeholder { color: rgba(200, 200, 216, 0.4); }
.input:hover, .textarea:hover, .select:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(50, 50, 68, 0.6);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--gold-1);
  background: rgba(50, 50, 68, 0.7);
  box-shadow: 0 0 0 3px rgba(219, 185, 101, 0.12);
}
.textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-1) 50%),
                    linear-gradient(135deg, var(--gold-1) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(7, 7, 13, 0.5);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: all 0.2s;
  user-select: none;
}
.check-pill input { display: none; }
.check-pill__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  color: var(--gold-1);
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}
.check-pill__tick svg { width: 10px; height: 10px; }
.check-pill:hover { border-color: var(--border-hi); color: var(--text); }
.check-pill.on, .check-pill:has(input:checked) {
  border-color: var(--gold-1);
  background: rgba(219, 185, 101, 0.1);
  color: var(--gold-1);
}
.check-pill:has(input:checked) .check-pill__tick {
  opacity: 1;
  background: var(--gold-1);
  border-color: var(--gold-1);
  color: #1a140a;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}
.table th {
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 7, 13, 0.4);
}
.table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.table tr:hover td { background: rgba(255, 255, 255, 0.015); }
.table td.mono { font-family: 'JetBrains Mono', monospace; color: var(--text-muted); font-size: 0.82rem; }

/* Utility */
.stack-4  { display: flex; flex-direction: column; gap: 4px; }
.stack-8  { display: flex; flex-direction: column; gap: 8px; }
.stack-16 { display: flex; flex-direction: column; gap: 12px; }
.stack-24 { display: flex; flex-direction: column; gap: 16px; }
.stack-40 { display: flex; flex-direction: column; gap: 24px; }
.row      { display: flex; align-items: center; }
.row-8    { display: flex; align-items: center; gap: 8px; }
.row-12   { display: flex; align-items: center; gap: 12px; }
.row-16   { display: flex; align-items: center; gap: 16px; }
.row-24   { display: flex; align-items: center; gap: 24px; }
.wrap     { flex-wrap: wrap; }
.grow     { flex: 1; }
.between  { justify-content: space-between; }
.center   { justify-content: center; }
.center-y { align-items: center; }

.section { padding: 32px 0; position: relative; z-index: 1; }
.section-sm { padding: 18px 0; position: relative; z-index: 1; }

/* Compact overrides — page headers & common hero patterns */
.page-head, .detail-head, .dash-head, .result-head, .teaser-stage {
  padding-top: 18px !important;
  padding-bottom: 16px !important;
}
.hero {
  padding-top: 24px !important;
  padding-bottom: 18px !important;
}
main > .container > * + * { margin-top: 14px; }
main > .container .section,
main > .container .section-sm { margin-top: 20px; }
.divider-rule { margin: 8px auto !important; }
.glass { padding: 14px 18px; }
.interpretation { padding: 24px 0 16px !important; }
.two-col { padding-bottom: 20px !important; gap: 24px !important; }
.auth-wrap { padding: 16px 0 24px !important; min-height: auto !important; }
.ctx-form { padding: 20px !important; margin-bottom: 20px !important; }
.form-section { padding: 14px 0 !important; }
.form-actions { margin-top: 16px !important; padding-top: 14px !important; }
.result-actions { padding: 14px !important; margin-top: 16px !important; }
.spread-summary { padding: 12px 16px !important; margin-bottom: 14px !important; }
.progress-header { top: 50px !important; }
.progress-inner { padding: 10px 24px !important; }

/* Footer */
.footer {
  margin-top: 40px;
  padding: 22px 0 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  /* Strict 2 columns per row — brand sits in col 1 of row 1 */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { gap: 18px 14px; }
  .footer h4 { margin-bottom: 8px; font-size: 0.7rem; }
  .footer a { padding: 4px 0; font-size: 0.82rem; }
  /* Compact brand cell so it aligns with link columns (no awkward height gap) */
  .footer-brand .footer-tagline { display: none; }
  .footer-brand .footer-contact { font-size: 0.74rem; line-height: 1.5; }
  .footer-brand .footer-contact div { padding: 1px 0; }
}
.footer h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: 10px;
}
.footer a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  padding: 2px 0;
}
.footer a:hover { color: var(--gold-1); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 480px) {
  .footer-bottom { justify-content: center; text-align: center; font-size: 0.7rem; }
}

/* Promo pricing (used by `tarot_price` Twig filter) */
.tarot-price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tarot-price__original {
    text-decoration: line-through;
    color: var(--text-dim);
    font-size: 0.72em;
    font-weight: 400;
}
.tarot-price__current { color: var(--gold-1); font-weight: 700; }
.tarot-price__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e14949 0%, #b83333 100%);
    color: #fff;
    font-size: 0.6em;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
    line-height: 1.4;
}
.tarot-price--discounted { color: var(--gold-1); font-weight: 700; }
.tarot-price__badge-sm {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(225, 73, 73, 0.85);
    color: #fff;
    font-size: 0.58em;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 4px;
}

/* Hide scrollbars on card-draw grids */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Small utility shapes used for SVG placeholders */
.svg-moon { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E"); }
