/* ============================================================
   SAGES & STONES — Enhanced Stylesheet v3.0
   Mobile-first • Cross-browser • Safari/Firefox/Chrome/Edge
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  --bg: #fbfaf8;
  --ink: #1f2328;
  --muted: rgba(31,35,40,.70);
  --border: rgba(31,35,40,.10);
  --sage: #8b5a2f;
  --sage-light: #b98a52;
  --lav: #6b6459;
  --lav-light: #948c7c;
  --gold: #c08a3e;
  --gold-light: #dcae6b;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(17,24,39,.10);
  --shadow2: 0 4px 18px rgba(17,24,39,.07);
  --shadow3: 0 2px 8px rgba(17,24,39,.06);
  --r-xl: 22px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --max: 1120px;
  --topbar-h: 66px;
  --transition: 0.18s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 20% 0%, rgba(86,91,96,.09), transparent 55%),
    radial-gradient(ellipse 900px 500px at 85% 5%, rgba(139,90,47,.09), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #f5f3ee 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── Layout ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 24px 20px; }

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: linear-gradient(180deg, #17140f 0%, #100e0a 100%);
  border-bottom: 1px solid rgba(214,185,122,.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .topbar { background: #100e0a; }
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 14px;
}

/* ── Brand ── */
.brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 11px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.mark {
  width: 40px; height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--sage), var(--lav));
  box-shadow: var(--shadow3);
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
.mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text .brand-name { font-size: 14px; font-weight: 800; letter-spacing: .2px; line-height: 1.2; margin: 0; color: #ecdfc7; }
.brand-text p { font-size: 11px; color: rgba(236,223,199,.62); margin-top: 1px; line-height: 1; }

/* ── Desktop Nav ── */
.nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 4px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.nav a {
  font-size: 13px;
  font-weight: 700;
  color: rgba(236,223,199,.72);
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  -webkit-transition: background var(--transition), border-color var(--transition), color var(--transition);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.nav a:hover { background: rgba(214,185,122,.12); border-color: rgba(214,185,122,.25); color: #ecdfc7; text-decoration: none; }
.nav a.active { background: -webkit-linear-gradient(left, var(--sage-light), var(--gold)); background: linear-gradient(90deg, var(--sage-light), var(--gold)); color: #fff; border-color: transparent; }
.nav a.karma-link { background: linear-gradient(135deg, #1a1a1a, #2a1f0e); color: #d6b97a; border-color: rgba(214,185,122,.25); }
.nav a.karma-link:hover { background: linear-gradient(135deg, #222, #3a2a12); border-color: rgba(214,185,122,.40); }

/* ── Hamburger ── */
.hamburger {
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  border: 1px solid rgba(214,185,122,.25);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-transition: background var(--transition);
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(214,185,122,.14); }
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: #ecdfc7;
  border-radius: 2px;
  -webkit-transition: -webkit-transform 0.22s ease, opacity 0.22s ease;
  transition: transform 0.22s ease, opacity 0.22s ease;
  -webkit-transform-origin: center;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { -webkit-transform: translateY(7px) rotate(45deg); transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; -webkit-transform: scaleX(0); transform: scaleX(0); }
.hamburger.open span:nth-child(3) { -webkit-transform: translateY(-7px) rotate(-45deg); transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav Drawer ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  z-index: 99;
  background: #100e0a;
  border-bottom: 1px solid rgba(214,185,122,.22);
  padding: 12px 16px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  max-height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: rgba(236,223,199,.80);
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  margin-bottom: 4px;
  -webkit-transition: background var(--transition), border-color var(--transition);
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.mobile-nav a:hover { background: rgba(214,185,122,.12); border-color: rgba(214,185,122,.25); }
.mobile-nav a.active { background: linear-gradient(90deg, var(--sage-light), var(--gold)); color: #fff; }
.mobile-nav a.karma-link { background: linear-gradient(135deg, #1a1a1a, #2a1f0e); color: #d6b97a; border-color: rgba(214,185,122,.25); }

/* ── Hero ── */
.hero {
  margin: 22px 0 18px;
  border: 1px solid rgba(214,185,122,.20);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 82% 20%, rgba(214,185,122,.10), transparent 55%),
    radial-gradient(circle at 12% 85%, rgba(148,140,124,.10), transparent 55%),
    linear-gradient(165deg, #18140d 0%, #0f0d09 100%);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -70px auto auto -70px;
  width: 220px; height: 220px;
  border-radius: 999px;
  border: 1.5px solid rgba(148,140,124,.20);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -90px auto;
  width: 280px; height: 280px;
  border-radius: 999px;
  border: 1.5px solid rgba(214,185,122,.18);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 32px 30px; }
.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.kicker {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(214,185,122,.85);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--gold);
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-animation: pulse-dot 2.5s ease-in-out infinite;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@-webkit-keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(165,103,46,.5); }
  50% { box-shadow: 0 0 0 5px rgba(165,103,46,0); }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(165,103,46,.5); }
  50% { box-shadow: 0 0 0 5px rgba(165,103,46,0); }
}
.h-title {
  margin: 12px 0 10px;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #f1e6cf;
}
.h-sub { color: rgba(241,230,207,.68); max-width: 720px; font-size: 16px; line-height: 1.6; }

/* ── Buttons ── */
.cta-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 18px;
}
.btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  -webkit-transition: -webkit-transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), opacity var(--transition);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), opacity var(--transition);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:active { -webkit-transform: translateY(1px); transform: translateY(1px); opacity: .9; }
.btn:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }
.btn-primary { background: var(--sage); color: #fff; box-shadow: 0 2px 8px rgba(139,90,47,.25); }
.btn-primary:hover { background: var(--sage-light); box-shadow: 0 4px 14px rgba(139,90,47,.30); }
.btn-secondary { background: rgba(255,255,255,.80); border-color: var(--border); color: rgba(31,35,40,.85); box-shadow: var(--shadow3); }
.btn-secondary:hover { background: rgba(86,91,96,.07); border-color: rgba(86,91,96,.18); }
.btn-soft { background: rgba(139,90,47,.10); border-color: rgba(139,90,47,.16); color: rgba(31,35,40,.88); }
.btn-soft:hover { background: rgba(139,90,47,.15); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #a07a10); color: #fff; box-shadow: 0 3px 12px rgba(165,103,46,.30); }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), #c09010); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; -webkit-transform: none; transform: none; box-shadow: none; }

/* ── Badges ── */
.badge-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 7px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 12px;
}
.badge { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.72); color: rgba(31,35,40,.72); }
.badge.sage { background: rgba(139,90,47,.11); border-color: rgba(139,90,47,.20); color: var(--sage); }
.badge.lav { background: rgba(86,91,96,.11); border-color: rgba(86,91,96,.22); color: var(--lav); }
.badge.gold { background: rgba(165,103,46,.11); border-color: rgba(165,103,46,.25); color: #7a5f10; }

/* ── Section title ── */
.section-title { margin: 26px 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }

/* ── Grid ── */
.grid { display: -ms-grid; display: grid; gap: 16px; }
.grid-3 { -ms-grid-columns: 1fr 16px 1fr 16px 1fr; grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { -ms-grid-columns: 1fr 16px 1fr; grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-4 { -ms-grid-columns: 1fr 16px 1fr 16px 1fr 16px 1fr; grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ── Cards ── */
.card {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow2);
  padding: 22px;
  -webkit-transition: box-shadow var(--transition), -webkit-transform var(--transition);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.card h2 { margin: 0 0 10px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.card ul { margin: 8px 0 0 0; color: var(--muted); font-size: 14px; }
.card ul li { padding: 4px 0 4px 18px; position: relative; line-height: 1.5; }
.card ul li::before { content: "•"; position: absolute; left: 4px; color: var(--gold); }

/* feature cards */
.feature-card {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow2);
  padding: 22px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 10px;
  -webkit-transition: box-shadow var(--transition), -webkit-transform var(--transition);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.feature-icon { font-size: 32px; line-height: 1; width: 52px; height: 52px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; border-radius: 14px; background: rgba(139,90,47,.08); -ms-flex-negative: 0; flex-shrink: 0; }
.feature-card h3 { font-size: 16px; font-weight: 800; margin: 0; }
.feature-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }

/* ── Accordion articles (Library, Naked Truths) ── */
details.article {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow2);
  margin-bottom: 12px;
  overflow: hidden;
  -webkit-transition: box-shadow var(--transition), border-color var(--transition);
  transition: box-shadow var(--transition), border-color var(--transition);
}
details.article:hover { box-shadow: var(--shadow); border-color: rgba(139,90,47,.22); }
details.article[open] { border-color: rgba(139,90,47,.28); box-shadow: var(--shadow); }
details.article summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 14px;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
details.article summary::-webkit-details-marker { display: none; }
details.article summary::marker { content: ""; }
details.article summary > div:first-of-type:not(.feature-icon) { flex: 1; min-width: 0; }
details.article .tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(139,90,47,.10);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 6px;
}
details.article summary h3, details.article summary h2 { font-size: 16px; font-weight: 800; margin: 0 0 2px; color: var(--ink); }
details.article .excerpt { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; margin-top: 4px; line-height: 1.5; }
details.article .chev {
  font-size: 20px;
  color: var(--sage);
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-transition: -webkit-transform .22s ease;
  transition: transform .22s ease;
}
details.article[open] .chev { -webkit-transform: rotate(90deg); transform: rotate(90deg); }
details.article .body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
details.article .body p { font-size: 14.5px; line-height: 1.7; color: var(--ink); margin: 0 0 14px; }
details.article .body p:last-child { margin-bottom: 0; }
details.article .body a { color: var(--sage); text-decoration: underline; }

/* ── Article icon (Library) ── */
.article-icon { display: block; margin: 4px auto 16px; width: 64px; height: 64px; }

/* ── Guided reflection box (Library, Naked Truths) ── */
.reflect-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(139,90,47,.06);
  border: 1px dashed rgba(139,90,47,.30);
}
.reflect-box .reflect-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}
.reflect-box .reflect-prompt { font-size: 14.5px; color: var(--ink); margin: 0 0 12px; line-height: 1.6; font-style: italic; }
.reflect-box textarea {
  width: 100%;
  min-height: 90px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  padding: 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  background: var(--white);
  color: var(--ink);
}
.reflect-box .reflect-actions { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reflect-box .reflect-saved-note { font-size: 12.5px; color: var(--muted); }
.reflect-box .reflect-btn {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--sage), var(--gold));
  border-radius: 999px;
  padding: 9px 18px;
  border: none;
  cursor: pointer;
}
.reflect-box .reflect-btn:hover { opacity: .92; }

/* ── Generator fields (Library personalized reflections) ── */
.gen-box .gen-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.gen-box input.gen-input,
.gen-box select.gen-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
}
.gen-box select.gen-input { cursor: pointer; }
.gen-output {
  display: none;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(139,90,47,.20);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
  transition: opacity .3s ease;
}

/* Naked Truths grid variant: icon + title inline, no excerpt */
details.nt-shape summary { padding: 18px; gap: 12px; }
details.nt-shape summary h3 { font-size: 15px; flex: 1; min-width: 0; }
details.nt-shape .body { padding: 0 18px 18px; padding-top: 14px; }

/* ── Forms ── */
.form { display: -ms-grid; display: grid; gap: 14px; }
label { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: rgba(31,35,40,.68); display: block; margin-bottom: 4px; }
input, textarea, select {
  width: 100%;
  border: 1.5px solid rgba(31,35,40,.14);
  border-radius: 13px;
  padding: 12px 14px;
  background: rgba(255,255,255,.92);
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  -webkit-transition: border-color var(--transition), box-shadow var(--transition);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(86,91,96,.40); box-shadow: 0 0 0 4px rgba(86,91,96,.12); }
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: rgba(31,35,40,.38); }
input::-moz-placeholder, textarea::-moz-placeholder { color: rgba(31,35,40,.38); }
input:-ms-input-placeholder, textarea:-ms-input-placeholder { color: rgba(31,35,40,.38); }

/* ── Output ── */
.output { display: none; margin-top: 14px; }
.output.active { display: block; }

.callout { border-left: 3px solid var(--gold); background: rgba(255,255,255,.65); border-radius: 0 13px 13px 0; padding: 14px 16px; color: rgba(31,35,40,.80); font-size: 14px; line-height: 1.6; }
.kv { display: -ms-grid; display: grid; gap: 10px; margin-top: 4px; }
.kv .row { padding: 14px 16px; border-radius: 13px; border: 1px solid var(--border); background: rgba(255,255,255,.75); }
.kv .row b { color: var(--ink); font-size: 14px; }
.kv .row p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.output-card { background: rgba(255,255,255,.80); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; margin-top: 10px; }
.output-card h4 { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--sage); margin: 0 0 8px; }
.output-card p { font-size: 14px; color: var(--muted); margin: 0 0 6px; line-height: 1.6; }
.output-card ul { margin: 4px 0 0 0; padding: 0; list-style: none; }
.output-card ul li { font-size: 14px; color: var(--muted); padding: 3px 0 3px 16px; position: relative; }
.output-card ul li::before { content: "✦"; position: absolute; left: 0; font-size: 9px; color: var(--gold); top: 5px; }

hr.sep { border: none; height: 1px; background: var(--border); margin: 18px 0; }

.disclaimer { border: 1px solid var(--border); border-radius: var(--r-lg); background: rgba(255,255,255,.55); padding: 13px 15px; color: rgba(31,35,40,.65); font-size: 12px; line-height: 1.55; }

/* ── Stats ── */
.stats-row { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 20px; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.stat { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 100px; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--sage); letter-spacing: -.02em; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Spinner ── */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; -webkit-animation: spin .6s linear infinite; animation: spin .6s linear infinite; vertical-align: middle; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
@keyframes spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }

/* ── Toast ── */
.toast { position: fixed; bottom: 20px; left: 50%; -webkit-transform: translateX(-50%) translateY(20px); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 10px 20px; border-radius: 999px; z-index: 9999; opacity: 0; pointer-events: none; -webkit-transition: opacity .25s ease, -webkit-transform .25s ease; transition: opacity .25s ease, transform .25s ease; white-space: nowrap; }
.toast.show { opacity: 1; -webkit-transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0); }

/* ── Footer ── */
footer { margin: 32px 0 14px; color: rgba(31,35,40,.55); font-size: 13px; text-align: center; padding-top: 20px; border-top: 1px solid var(--border); }
footer a { text-decoration: underline; color: var(--sage); }

/* ── Fade-in ── */
.fade-in { opacity: 0; -webkit-transform: translateY(18px); transform: translateY(18px); -webkit-transition: opacity .5s ease, -webkit-transform .5s ease; transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .hamburger { display: -webkit-box; display: -ms-flexbox; display: flex; }
  .topbar-inner { padding: 0 16px; }
  .wrap { padding: 18px 16px; }
  .hero-inner { padding: 22px 18px; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-row { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; }
  .cta-row .btn { width: 100%; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
}
@media (max-width: 480px) {
  :root { --topbar-h: 60px; }
  .brand-text p { display: none; }
  .mark { width: 36px; height: 36px; border-radius: 11px; }
  .h-title { font-size: clamp(22px, 7vw, 30px); }
  .h-sub { font-size: 15px; }
  .card { padding: 16px; }
  .section-title { font-size: 17px; }
  .btn { font-size: 13px; padding: 10px 14px; }
}
@media (max-width: 360px) {
  .wrap { padding: 14px 12px; }
  .card { padding: 14px; }
}

/* ============================================================
   KARMA CASINO — Dark Luxe Theme
   ============================================================ */
.kc-body {
  background-color: #0f0d09;
  background-image:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(214,185,122,.07), transparent 60%),
    radial-gradient(ellipse 80% 80% at 80% 80%, rgba(86,91,96,.08), transparent 60%),
    linear-gradient(180deg, #0f0d09 0%, #1a1510 60%, #0f0d09 100%);
  color: #e8e2d6;
  min-height: 100vh;
}
.kc-body .topbar { background: rgba(15,13,9,.88); border-bottom-color: rgba(214,185,122,.12); }
.kc-body .brand-text h1 { color: #e8e2d6; }
.kc-body .brand-text p { color: rgba(232,226,214,.55); }
.kc-body .hamburger { background: rgba(255,255,255,.07); border-color: rgba(214,185,122,.20); }
.kc-body .hamburger span { background: #d6b97a; }
.kc-body .mobile-nav { background: rgba(15,13,9,.97); border-bottom-color: rgba(214,185,122,.12); }
.kc-body .mobile-nav a { color: rgba(232,226,214,.80); }
.kc-body .mobile-nav a:hover { background: rgba(214,185,122,.08); border-color: rgba(214,185,122,.15); }
.kc-body .mobile-nav a.active { background: linear-gradient(135deg, #c08a3e, #6b6459); color: #fff; }
.kc-body footer { border-top-color: rgba(214,185,122,.12); color: rgba(232,226,214,.45); }
.kc-body footer a { color: #d6b97a; }

#kc-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.kc-wrap { max-width: 680px; margin: 0 auto; padding: 24px 20px 48px; position: relative; z-index: 1; }

.kc-header { text-align: center; padding: 20px 0 10px; }
.kc-title { font-size: clamp(28px, 6vw, 42px); font-weight: 800; letter-spacing: -.02em; color: #d6b97a; text-shadow: 0 0 40px rgba(214,185,122,.25); margin-bottom: 6px; }
.kc-subtitle { font-size: 14px; color: rgba(232,226,214,.60); }

/* Marquee ticker */
.kc-ticker { background: rgba(214,185,122,.07); border: 1px solid rgba(214,185,122,.14); border-radius: 999px; overflow: hidden; padding: 8px 0; margin: 14px 0; }
.kc-ticker-inner { display: -webkit-box; display: -ms-flexbox; display: flex; white-space: nowrap; -webkit-animation: ticker 20s linear infinite; animation: ticker 20s linear infinite; }
.kc-ticker-inner span { display: inline-block; padding: 0 32px; font-size: 13px; font-weight: 700; color: #d6b97a; letter-spacing: .05em; }
@-webkit-keyframes ticker { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); } }
@keyframes ticker { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); } }

/* Machine */
.kc-machine {
  background: linear-gradient(160deg, rgba(42,36,28,.95) 0%, rgba(22,18,14,.98) 100%);
  border: 1px solid rgba(214,185,122,.20);
  border-radius: 24px;
  padding: 28px 24px 24px;
  box-shadow: 0 0 60px rgba(0,0,0,.5), 0 0 120px rgba(214,185,122,.04), inset 0 1px 0 rgba(214,185,122,.10);
  position: relative;
  overflow: hidden;
}
.kc-machine::before { content: ""; position: absolute; inset: 0; border-radius: 24px; background: linear-gradient(180deg, rgba(214,185,122,.04) 0%, transparent 40%); pointer-events: none; }

/* Stats bar */
.kc-stats-bar { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; margin-bottom: 20px; padding: 12px 16px; background: rgba(0,0,0,.35); border: 1px solid rgba(214,185,122,.12); border-radius: 14px; gap: 12px; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.kc-stat { text-align: center; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 60px; }
.kc-stat-num { font-size: 22px; font-weight: 800; color: #d6b97a; line-height: 1; }
.kc-stat-lbl { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(232,226,214,.45); margin-top: 3px; }

/* Reels */
.kc-slot { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.kc-reel { width: 72px; height: 96px; overflow: hidden; border-radius: 12px; border: 2px solid rgba(214,185,122,.25); background: rgba(0,0,0,.55); position: relative; -ms-flex-negative: 0; flex-shrink: 0; }
.kc-reel.lit { border-color: #d6b97a; box-shadow: 0 0 14px rgba(214,185,122,.45), inset 0 0 10px rgba(214,185,122,.07); }
.kc-reel-strip { position: absolute; top: 0; left: 0; right: 0; will-change: top; }
.kc-symbol { height: 96px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; font-size: 38px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.kc-symbol.letter { font-size: 28px; font-weight: 900; color: #d6b97a; text-shadow: 0 0 12px rgba(214,185,122,.6); font-family: Georgia, 'Times New Roman', serif; }
.kc-reel::before, .kc-reel::after { content: ""; position: absolute; left: 0; right: 0; height: 28px; z-index: 2; pointer-events: none; }
.kc-reel::before { top: 0; background: -webkit-linear-gradient(top, rgba(0,0,0,.7), transparent); background: linear-gradient(to bottom, rgba(0,0,0,.7), transparent); }
.kc-reel::after { bottom: 0; background: -webkit-linear-gradient(bottom, rgba(0,0,0,.7), transparent); background: linear-gradient(to top, rgba(0,0,0,.7), transparent); }
.kc-win-line { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: rgba(214,185,122,.15); -webkit-transform: translateY(-50%); transform: translateY(-50%); pointer-events: none; z-index: 3; -webkit-transition: background .3s ease, box-shadow .3s ease; transition: background .3s ease, box-shadow .3s ease; }
.kc-win-line.active { background: rgba(214,185,122,.70); box-shadow: 0 0 10px rgba(214,185,122,.50); }

/* Spin button */
.kc-spin-btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #c08a3e 0%, #8f6f2a 50%, #c08a3e 100%);
  background-size: 200% auto;
  color: #1a1207;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .08em;
  border: none;
  cursor: pointer;
  -webkit-transition: background-position .4s ease, box-shadow .2s ease, -webkit-transform .12s ease, opacity .2s ease;
  transition: background-position .4s ease, box-shadow .2s ease, transform .12s ease, opacity .2s ease;
  box-shadow: 0 4px 20px rgba(165,103,46,.30);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.kc-spin-btn:hover:not(:disabled) { background-position: right center; box-shadow: 0 6px 28px rgba(165,103,46,.40); }
.kc-spin-btn:active:not(:disabled) { -webkit-transform: translateY(1px); transform: translateY(1px); }
.kc-spin-btn:disabled { opacity: .5; cursor: not-allowed; -webkit-transform: none; transform: none; }

/* Result */
.kc-result { min-height: 56px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 4px; margin: 14px 0 0; text-align: center; }
.kc-result-title { font-size: 18px; font-weight: 800; color: #d6b97a; opacity: 0; -webkit-transform: translateY(8px); transform: translateY(8px); -webkit-transition: opacity .4s ease, -webkit-transform .4s ease; transition: opacity .4s ease, transform .4s ease; }
.kc-result-title.show { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
.kc-result-msg { font-size: 14px; color: rgba(232,226,214,.75); opacity: 0; -webkit-transform: translateY(6px); transform: translateY(6px); -webkit-transition: opacity .4s ease .1s, -webkit-transform .4s ease .1s; transition: opacity .4s ease .1s, transform .4s ease .1s; }
.kc-result-msg.show { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }

/* Reading box */
.kc-reading-box { display: none; margin-top: 16px; background: rgba(165,103,46,.07); border: 1px solid rgba(214,185,122,.22); border-radius: 16px; padding: 18px; text-align: left; -webkit-animation: fadeSlideUp .4s ease; animation: fadeSlideUp .4s ease; }
.kc-reading-box.show { display: block; }
.kc-reading-box h4 { font-size: 12px; font-weight: 900; letter-spacing: .10em; text-transform: uppercase; color: #d6b97a; margin: 0 0 10px; }
.kc-reading-box p { font-size: 14px; color: rgba(232,226,214,.80); line-height: 1.65; margin: 0 0 8px; }
.kc-reading-box p:last-child { margin: 0; }
@-webkit-keyframes fadeSlideUp { from { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); } to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } }
@keyframes fadeSlideUp { from { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); } to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } }

/* Machine glow */
.kc-machine.win-glow { -webkit-animation: machineGlow 1.6s ease-in-out 3; animation: machineGlow 1.6s ease-in-out 3; }
@-webkit-keyframes machineGlow { 0%,100% { box-shadow: 0 0 60px rgba(0,0,0,.5), 0 0 120px rgba(214,185,122,.04); } 50% { box-shadow: 0 0 60px rgba(0,0,0,.3), 0 0 80px rgba(214,185,122,.25), 0 0 120px rgba(214,185,122,.10); } }
@keyframes machineGlow { 0%,100% { box-shadow: 0 0 60px rgba(0,0,0,.5), 0 0 120px rgba(214,185,122,.04); } 50% { box-shadow: 0 0 60px rgba(0,0,0,.3), 0 0 80px rgba(214,185,122,.25), 0 0 120px rgba(214,185,122,.10); } }

/* Paytable */
.kc-paytable { background: rgba(0,0,0,.3); border: 1px solid rgba(214,185,122,.12); border-radius: 18px; padding: 20px; margin-top: 20px; }
.kc-paytable h3 { font-size: 12px; font-weight: 900; letter-spacing: .10em; text-transform: uppercase; color: #d6b97a; margin: 0 0 14px; text-align: center; }
.kc-pay-row { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; margin-bottom: 6px; -webkit-transition: background .2s ease; transition: background .2s ease; gap: 8px; }
.kc-pay-row:hover { background: rgba(214,185,122,.05); border-color: rgba(214,185,122,.10); }
.kc-pay-row:last-child { margin-bottom: 0; }
.kc-pay-symbols { font-size: 16px; letter-spacing: 3px; -ms-flex-negative: 0; flex-shrink: 0; }
.kc-pay-desc { font-size: 12px; color: rgba(232,226,214,.65); -webkit-box-flex: 1; -ms-flex: 1; flex: 1; padding: 0 8px; }
.kc-pay-pts { font-size: 13px; font-weight: 800; color: #d6b97a; white-space: nowrap; -ms-flex-negative: 0; flex-shrink: 0; }

/* History */
.kc-history { background: rgba(0,0,0,.3); border: 1px solid rgba(214,185,122,.12); border-radius: 18px; padding: 20px; margin-top: 16px; }
.kc-history h3 { font-size: 12px; font-weight: 900; letter-spacing: .10em; text-transform: uppercase; color: #d6b97a; margin: 0 0 12px; }
.kc-history-list { display: -ms-grid; display: grid; gap: 5px; }
.kc-history-item { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; padding: 7px 10px; border-radius: 9px; background: rgba(255,255,255,.03); font-size: 12px; gap: 8px; }
.kc-history-symbols { letter-spacing: 2px; font-size: 14px; }
.kc-history-pts { color: #d6b97a; font-weight: 700; white-space: nowrap; }
.kc-history-empty { font-size: 13px; color: rgba(232,226,214,.35); text-align: center; padding: 10px; }

/* Sound toggle */
.kc-sound-btn { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 6px; background: rgba(255,255,255,.05); border: 1px solid rgba(214,185,122,.15); border-radius: 999px; padding: 7px 14px; color: rgba(232,226,214,.65); font-size: 12px; font-weight: 700; cursor: pointer; -webkit-transition: background .2s ease, border-color .2s ease; transition: background .2s ease, border-color .2s ease; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.kc-sound-btn:hover { background: rgba(214,185,122,.08); border-color: rgba(214,185,122,.25); }
.kc-sound-btn.active { color: #d6b97a; border-color: rgba(214,185,122,.35); background: rgba(214,185,122,.08); }

/* Controls */
.kc-controls { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; margin-bottom: 16px; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 8px; }
.kc-spins-left { font-size: 12px; color: rgba(232,226,214,.55); font-weight: 700; }
.kc-spins-left b { color: #d6b97a; }

/* Confetti */
#kc-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9998; }

/* Paybox */
.kc-paybox { margin-top: 20px; text-align: center; padding: 20px; background: rgba(0,0,0,.25); border: 1px solid rgba(214,185,122,.12); border-radius: 18px; }
.kc-paybox p { font-size: 14px; color: rgba(232,226,214,.65); margin: 0 0 12px; }

/* Streak */
.kc-streak { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 5px; background: rgba(165,103,46,.12); border: 1px solid rgba(214,185,122,.20); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; color: #d6b97a; }

/* Responsive KC */
@media (max-width: 580px) {
  .kc-reel { width: 58px; height: 78px; }
  .kc-symbol { height: 78px; font-size: 30px; }
  .kc-symbol.letter { font-size: 22px; }
  .kc-slot { gap: 6px; }
  .kc-machine { padding: 20px 16px 18px; }
  .kc-stats-bar { padding: 10px 12px; }
  .kc-stat-num { font-size: 18px; }
  .kc-paytable, .kc-history { padding: 16px; }
  .kc-pay-symbols { font-size: 13px; letter-spacing: 1px; }
}
@media (max-width: 380px) {
  .kc-reel { width: 50px; height: 70px; }
  .kc-symbol { height: 70px; font-size: 26px; }
  .kc-symbol.letter { font-size: 19px; }
  .kc-slot { gap: 5px; }
}
/* ============================================================
   ENHANCEMENTS — SEO, Revenue, Trust, Newsletter
   ============================================================ */

/* Newsletter signup */
.newsletter-section { margin: 24px 0 8px; padding: 28px 24px; background: linear-gradient(170deg, rgba(139,90,47,.08) 0%, rgba(86,91,96,.08) 100%); border: 1px solid var(--border); border-radius: var(--r-xl); text-align: center; }
.newsletter-section h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.newsletter-section p { font-size: 14px; color: var(--muted); margin: 0 0 16px; max-width: 480px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] { flex: 1; min-width: 200px; border: 1.5px solid rgba(31,35,40,.14); border-radius: 13px; padding: 11px 14px; background: rgba(255,255,255,.92); font-size: 14px; font-family: inherit; outline: none; }
.newsletter-form input[type="email"]:focus { border-color: rgba(86,91,96,.40); box-shadow: 0 0 0 4px rgba(86,91,96,.12); }
.newsletter-form button { flex-shrink: 0; }

/* Trust stats row */

/* Social share row */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.share-row span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(31,35,40,.55); }
.share-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; color: rgba(31,35,40,.72); cursor: pointer; text-decoration: none; transition: background var(--transition), border-color var(--transition), color var(--transition); }
.share-btn:hover { background: rgba(139,90,47,.08); border-color: rgba(139,90,47,.16); text-decoration: none; }

/* Testimonial placeholder */
.testimonial { padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--border); background: rgba(255,255,255,.72); margin-bottom: 12px; }
.testimonial p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; font-style: italic; }
.testimonial cite { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--sage); font-style: normal; }

/* Shop product card */
.product-card { background: rgba(255,255,255,.82); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow2); padding: 20px; transition: box-shadow var(--transition), transform var(--transition); display: flex; flex-direction: column; gap: 10px; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-icon { font-size: 40px; text-align: center; line-height: 1; }
.product-card h4 { font-size: 16px; font-weight: 800; margin: 0; text-align: center; }
.product-card p { font-size: 13px; color: var(--muted); margin: 0; text-align: center; line-height: 1.5; }
.product-price { font-size: 18px; font-weight: 800; color: var(--sage); text-align: center; }
.product-card .badge-row { justify-content: center; }

/* CTA banner */
.cta-banner { padding: 24px 22px; border-radius: var(--r-xl); background: linear-gradient(135deg, rgba(139,90,47,.12), rgba(86,91,96,.10)); border: 1px solid rgba(139,90,47,.18); text-align: center; margin: 20px 0; }
.cta-banner h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.cta-banner p { font-size: 14px; color: var(--muted); margin: 0 0 14px; max-width: 460px; margin-left: auto; margin-right: auto; }

/* Breadcrumb */
.breadcrumb { font-size: 12px; color: var(--muted); margin: 0 0 8px; padding: 0; }
.breadcrumb a { color: var(--sage); text-decoration: underline; }
.breadcrumb span { margin: 0 4px; }

/* Affiliate note */
.affiliate-note { font-size: 11px; color: rgba(31,35,40,.45); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 16px; }

/* Social share section */
.social-share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 20px; padding: 14px 18px; border-radius: var(--r-lg); background: rgba(255,255,255,.60); border: 1px solid var(--border); }
.share-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(31,35,40,.55); margin-right: 4px; }

/* Affiliate row */
.affiliate-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.affiliate-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255,255,255,.72); border: 1px solid var(--border); border-radius: var(--r-lg); }
.affiliate-item a { font-size: 14px; font-weight: 700; color: var(--sage); text-decoration: none; transition: color var(--transition); }
.affiliate-item a:hover { color: var(--ink); text-decoration: underline; }

/* Breadcrumb separator */
.bc-sep { color: rgba(31,35,40,.30); font-weight: 300; }

/* Oracle Dice & Tarot nav link */
.oracle-link { color: rgba(150,100,220,.80) !important; }
.oracle-link:hover { color: rgba(150,100,220,1) !important; }

/* Active nav link indicator */
.nav a.active { border-bottom: 2px solid var(--sage); padding-bottom: 2px; }

/* ============================================================
   RESOURCES PAGE — Cards, Filters, Download Grid
   ============================================================ */

/* Category filter buttons */
.resource-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.72); font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background var(--transition), border-color var(--transition), color var(--transition); font-family: inherit; }
.filter-btn:hover { background: rgba(139,90,47,.08); border-color: rgba(139,90,47,.20); color: var(--ink); }
.filter-btn.active { background: var(--sage); border-color: var(--sage); color: #fff; }

/* Resource card grid */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .resource-grid { grid-template-columns: 1fr; } }

/* Individual resource card */
.resource-card { background: rgba(255,255,255,.82); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow2); padding: 24px; transition: box-shadow var(--transition), transform var(--transition); display: flex; flex-direction: column; }
.resource-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.resource-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.resource-icon { font-size: 36px; line-height: 1; }
.resource-meta { display: flex; gap: 6px; flex-wrap: wrap; }

.resource-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--ink); line-height: 1.3; }
.resource-card > p { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }

.resource-highlights { list-style: none; padding: 0; margin: 0 0 18px; }
.resource-highlights li { font-size: 13px; color: var(--muted); padding: 4px 0 4px 20px; position: relative; line-height: 1.5; }
.resource-highlights li::before { content: "✦"; position: absolute; left: 2px; color: var(--sage); font-size: 11px; top: 6px; }

.resource-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; align-items: center; }
.resource-actions .btn { font-size: 13px; padding: 10px 16px; }

/* ─── Monthly Horoscope (compact) ─── */

/* ─── Monthly Horoscope (compact) ─── */
.hscope-wrap {
  margin: 24px 0 12px;
  background: #f0ede8;
  border-radius: var(--r-xl);
  padding: 24px 20px 20px;
  border: 1px solid rgba(31,35,40,.12);
}
.hscope-header { text-align: center; margin-bottom: 14px; }
.hscope-badge {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.hscope-tagline {
  display: block;
  font-size: 14px;
  color: #5a5a5a;
  margin-top: 8px;
  font-weight: 500;
}

.hscope-sign-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}
.hscope-sign-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  color: #333;
  font-size: 20px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.hscope-sign-btn:hover {
  border-color: var(--sage);
  background: #e8efe6;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,.1);
}
.hscope-sign-btn.active {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
  box-shadow: 0 3px 12px rgba(139,90,47,.35);
  transform: scale(1.1);
}

.hscope-reading-card {
  background: #fff;
  border: 1px solid rgba(31,35,40,.15);
  border-radius: var(--r-xl);
  padding: 22px 26px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.hscope-reading-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.hscope-reading-symbol {
  font-size: 42px;
  line-height: 1;
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139,90,47,.15), rgba(139,90,47,.06));
  border-radius: var(--r-lg);
  flex-shrink: 0;
  border: 1px solid rgba(139,90,47,.12);
}
.hscope-reading-text { flex: 1; min-width: 0; }
.hscope-reading-name {
  display: block;
  font-family: var(--heading);
  font-size: 19px;
  font-weight: 700;
  color: #8b5a2f;
}
.hscope-reading-dates {
  display: block;
  font-size: 12px;
  color: #888;
  margin: 2px 0 12px;
  font-weight: 500;
}
.hscope-reading-body {
  font-size: 14.5px;
  line-height: 1.7;
  color: #3a3a3a;
  margin: 0;
}

@media (max-width: 600px) {
  .hscope-reading-inner { flex-direction: column; align-items: center; text-align: center; }
  .hscope-reading-symbol { width: 52px; height: 52px; font-size: 34px; }
  .hscope-reading-dates { margin: 2px 0 10px; }
  .hscope-sign-btn { width: 40px; height: 40px; font-size: 18px; }
  .hscope-wrap { padding: 18px 14px 16px; }
}

/* ============================================================
   DREAM INTERPRETATION PAGE
   ============================================================ */
.dream-hero-note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: #f0ede8;
  border: 1px solid rgba(31,35,40,.10);
  color: #4e5552;
  line-height: 1.65;
}
.dream-tool {
  margin-top: 24px;
}
.dream-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dream-field-full { grid-column: 1 / -1; }
.dream-tool label {
  display: block;
  font-weight: 750;
  color: #26352f;
  margin-bottom: 8px;
}
.dream-tool textarea,
.dream-tool input,
.dream-tool select {
  width: 100%;
  border: 1px solid rgba(31,35,40,.16);
  border-radius: var(--r-md);
  background: #fff;
  color: #1f2328;
  padding: 13px 14px;
  font: inherit;
  box-shadow: 0 1px 0 rgba(31,35,40,.03);
}
.dream-tool textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.6;
}
.dream-help {
  display: block;
  margin-top: 6px;
  color: #707873;
  font-size: 13px;
  line-height: 1.45;
}
.dream-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}
.dream-result {
  margin-top: 24px;
  display: none;
}
.dream-result.show { display: block; }
.dream-reading-card {
  background: #fff;
  border: 1px solid rgba(31,35,40,.14);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: 0 10px 32px rgba(31,35,40,.08);
}
.dream-reading-card h3,
.dream-reading-card h4 {
  color: #8b5a2f;
}
.dream-reading-card h3 {
  margin-bottom: 8px;
  font-family: var(--heading);
  font-size: clamp(24px, 3vw, 34px);
}
.dream-reading-card h4 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 17px;
}
.dream-reading-card p {
  color: #3b423f;
  line-height: 1.75;
}
.dream-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}
.dream-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f0ede8;
  border: 1px solid rgba(31,35,40,.10);
  color: #46504b;
  font-size: 13px;
  font-weight: 700;
}
.dream-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.dream-rec-box {
  background: #fbfaf8;
  border: 1px solid rgba(31,35,40,.11);
  border-radius: var(--r-lg);
  padding: 16px;
}
.dream-rec-box strong {
  display: block;
  color: #26352f;
  margin-bottom: 7px;
}
.dream-rec-box span {
  color: #56605b;
  line-height: 1.55;
  font-size: 14px;
}
.dream-disclaimer {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: #fff7e8;
  border: 1px solid rgba(180,130,40,.22);
  color: #654b1d;
  line-height: 1.6;
  font-size: 14px;
}
.dream-support-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #f0ede8, #fbfaf8);
  border: 1px solid rgba(139,90,47,.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dream-support-box p {
  margin: 0;
  color: #46504b;
}
.dream-empty-warning {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: #fff0ef;
  border: 1px solid rgba(170,50,40,.20);
  color: #8a2d24;
  font-weight: 700;
}
.dream-empty-warning.show { display: block; }
@media (max-width: 800px) {
  .dream-form-grid,
  .dream-recommendation-grid { grid-template-columns: 1fr; }
  .dream-reading-card { padding: 18px; }
}

/* ============================================================
   NAVIGATION OVERFLOW FIX
   Keep desktop header from clipping when many links exist.
   ============================================================ */
.topbar {
  min-height: var(--topbar-h);
  height: auto;
}
.topbar-inner {
  min-height: var(--topbar-h);
  overflow: visible;
}
.nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow: visible;
  min-width: 0;
}
.nav a {
  font-size: 12px;
  padding: 6px 7px;
  line-height: 1.1;
}
.brand {
  max-width: 220px;
}
.brand-text p {
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .nav a { font-size: 11.5px; padding: 6px 6px; }
  .brand { max-width: 190px; }
  .brand-text p { display: none; }
}
/* ============================================================
   CORRECTED DESKTOP NAVIGATION
   Full navigation remains visible on desktop; mobile uses hamburger.
   ============================================================ */
@media (min-width: 981px) {
  :root { --topbar-h: 112px; }
  .topbar {
    height: auto !important;
    min-height: var(--topbar-h) !important;
  }
  .topbar-inner {
    height: auto !important;
    min-height: var(--topbar-h) !important;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .brand {
    max-width: none;
    justify-content: center;
  }
  .brand-text p {
    display: block;
    white-space: normal;
  }
  .nav {
    display: flex !important;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    overflow: visible;
  }
  .nav a {
    font-size: 12px;
    padding: 6px 8px;
    line-height: 1.15;
  }
  .hamburger {
    display: none !important;
  }
}

@media (max-width: 980px) {
  :root { --topbar-h: 66px; }
  .topbar {
    height: var(--topbar-h) !important;
    min-height: var(--topbar-h) !important;
  }
  .topbar-inner {
    height: 100% !important;
    min-height: var(--topbar-h) !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
  }
  .nav { display: none !important; }
  .hamburger { display: -webkit-box !important; display: -ms-flexbox !important; display: flex !important; }
}

/* Land acknowledgement footer note */
.land-acknowledgement {
  max-width: 920px;
  margin: 14px auto 0;
  padding: 12px 14px 0;
  border-top: 1px solid rgba(31,35,40,.08);
  color: rgba(31,35,40,.62);
  font-size: 12.5px;
  line-height: 1.65;
  text-align: center;
}
.land-acknowledgement strong {
  color: rgba(31,35,40,.78);
}
.canada-line {
  max-width: 920px;
  margin: 8px auto 0;
  color: rgba(31,35,40,.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
}
.kc-body .land-acknowledgement,
.odt-page .land-acknowledgement,
.odt-footer .land-acknowledgement {
  border-top-color: rgba(214,185,122,.12);
  color: rgba(232,226,214,.58);
}
.kc-body .land-acknowledgement strong,
.odt-page .land-acknowledgement strong,
.odt-footer .land-acknowledgement strong {
  color: rgba(214,185,122,.82);
}
