/* ═══════════════════════════════════════
   MAIN STYLES — ericks.org
   All colours use tokens from tokens.css
   ═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: var(--font-size-base, 16px); }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.35' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23n2)' opacity='0.018'/%3E%3C/svg%3E");
  color: var(--ink);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 58px;
}

.n-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.n-logo .dot { color: var(--gold); }

.n-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.n-links a {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.n-links a:hover { color: var(--ink); }

.n-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--paper2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.42rem 0.9rem;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s;
  width: 200px;
}
.n-search:hover { border-color: var(--gold); }

.n-join {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--paper) !important;
  background: var(--ink);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: background 0.2s !important;
}
.n-join:hover { background: var(--gold) !important; color: var(--ink) !important; }

/* Aa display settings */
.n-links li:has(.n-aa-btn) { position: relative; }
.n-aa-btn {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
}
.n-aa-btn:hover { border-color: var(--gold); color: var(--gold); }
.n-aa-panel {
  position: absolute;
  top: 52px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  min-width: 200px;
}
.aa-section { margin-bottom: 0.8rem; }
.aa-section:last-child { margin-bottom: 0; }
.aa-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.aa-theme-btns, .aa-size-btns {
  display: flex;
  gap: 0.4rem;
}
.aa-theme-btn, .aa-size-btn {
  background: rgba(42,22,80,0.05);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.78rem;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aa-theme-btn:hover, .aa-size-btn:hover { border-color: var(--gold); }
.aa-theme-btn.active, .aa-size-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
[data-theme="dark"] .aa-theme-btn,
[data-theme="dark"] .aa-size-btn {
  background: rgba(255,255,255,0.06);
}

.n-burger {
  display: none;
  background: none; border: none;
  color: var(--ink); cursor: pointer;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  padding: 3.5rem 3rem 3rem;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.hero-imprint {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.6rem;
}
.imprint-rule { flex: 1; height: 1px; background: var(--rule); }
.imprint-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  text-align: center;
}
.hero-title .hl { font-style: italic; font-weight: 700; }

.hero-sub {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.4rem;
}

/* ─── Search ─── */
.hero-search { position: relative; margin: 0 auto; max-width: 640px; }

.hs-input-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 3px 3px 0 var(--ink);
  transition: box-shadow 0.2s;
  position: relative;
}
.hs-input-wrap:focus-within {
  box-shadow: 3px 3px 0 var(--gold);
  border-color: var(--ink);
}
.hs-input-wrap svg { margin-left: 1rem; color: var(--muted); flex-shrink: 0; }
.hs-input-wrap input {
  flex: 1;
  border: none; outline: none; background: transparent;
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  color: var(--ink);
  padding: 1.1rem 0.85rem;
}
.hs-input-wrap input::placeholder { color: var(--muted); font-style: italic; }

.hs-btn {
  margin: 6px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 5px;
  padding: 0.82rem 1.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.hs-btn:hover { background: var(--gold); color: var(--ink); }

/* Dropdown */
.hs-drop {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
  z-index: 50;
}
.hs-drop.open { display: block; }

.hs-item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.12s;
  text-decoration: none;
  color: inherit;
}
.hs-item:last-child { border-bottom: none; }
.hs-item:hover { background: var(--paper2); }

.hs-badge {
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 3px; flex-shrink: 0;
}
.hb-audio  { background: #FEF3DC; color: var(--gold);   border: 1px solid #E8D090; }
.hb-book   { background: #EDF4EE; color: var(--sage);   border: 1px solid #BBCFBC; }
.hb-art    { background: #F0EDEA; color: var(--muted);  border: 1px solid #D8D0C8; }

.hs-label  { font-family: 'Lora', serif; font-size: 1rem; color: var(--ink); font-weight: 500; }
.hs-meta   { font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }

/* Tags */
.hero-tags {
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap; margin-top: 1.1rem;
  justify-content: center;
}
.tags-pre {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
}
.htag {
  font-size: 0.82rem;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 0.28rem 0.85rem;
  cursor: pointer;
  transition: all 0.18s;
  background: transparent;
}
.htag:hover { border-color: var(--gold); color: var(--gold); background: #FEF9EC; }

/* ═══════════════════════════════════════
   DIVIDER / NUMBERS STRIP
═══════════════════════════════════════ */
.section-rule { border: none; border-top: 1px solid var(--rule); margin: 0; }

.nums {
  display: flex;
  justify-content: center;
  background: var(--paper2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.num-item {
  padding: 1.2rem 3.5rem;
  text-align: center;
  border-right: 1px solid var(--rule);
}
.num-item:last-child { border-right: none; }
.num-n {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
}
.num-l {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ═══════════════════════════════════════
   SECTIONS
═══════════════════════════════════════ */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.sec-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.sec-title em { font-style: italic; font-weight: 700; }
.sec-all {
  font-size: 0.88rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.sec-all:hover { color: var(--ink); }

/* ═══════════════════════════════════════
   BOOKS GRID
═══════════════════════════════════════ */
.bg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.bc { cursor: pointer; }
.bc:hover .bcover { transform: translateY(-5px); }

.bcover {
  aspect-ratio: 2/3;
  position: relative;
  border-radius: 2px 8px 8px 2px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: transform 0.25s;
  box-shadow:
    -3px 0 6px rgba(0,0,0,0.15),
    4px 6px 18px rgba(0,0,0,0.18),
    1px 1px 0 rgba(255,255,255,0.06) inset;
}

.bcover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

.bcover-bg {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem 1rem 1rem 1.3rem;
}

.bcover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10px;
  background: linear-gradient(to right, rgba(0,0,0,0.28), transparent);
  z-index: 3;
}

.bcover-orn {
  position: absolute;
  top: 12px; right: 12px;
  opacity: 0.2;
  z-index: 2;
}

.bk1 { background: var(--bk1); }
.bk2 { background: var(--bk2); }
.bk3 { background: var(--bk3); }
.bk4 { background: var(--bk4); }

.bc-series {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-lt);
  opacity: 0.7;
  position: relative; z-index: 4;
}

.bc-bottom { position: relative; z-index: 4; }
.bc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  line-height: 1.25;
  margin-bottom: 0.3rem;
}
.bc-author {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(255,255,255,0.5);
}

.bc-pill {
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(184,134,11,0.92);
  color: white;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  z-index: 5;
  white-space: nowrap;
}

.bm-title {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.bm-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.bm-author { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.4rem; }
.bm-row { display: flex; align-items: center; gap: 0.6rem; }
.bm-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--sage);
}
.bm-amz {
  font-size: 0.72rem;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(184,134,11,0.3);
  border-radius: 3px;
  padding: 0.12rem 0.45rem;
  transition: all 0.18s;
}
.bm-amz:hover { background: #FEF9EC; border-color: var(--gold); }

/* ═══════════════════════════════════════
   AUDIOBOOKS
═══════════════════════════════════════ */
.audio-wrap {
  background: var(--paper2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.ag {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.acard {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  display: flex; gap: 1rem; align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.acard:hover {
  box-shadow: 0 6px 24px rgba(28,24,20,0.1);
  transform: translateY(-2px);
  border-color: var(--gold);
}

.at {
  width: 52px; height: 52px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  overflow: hidden;
  position: relative;
}
.at-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.at1 { background: linear-gradient(135deg, #2C4A6E, #1A2E42); }
.at2 { background: linear-gradient(135deg, #4A2860, #2A1438); }
.at3 { background: linear-gradient(135deg, #1E4D2B, #0E2614); }

.a-play {
  width: 24px; height: 24px;
  background: var(--gold2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
  font-size: 0.6rem;
}

.a-info { flex: 1; min-width: 0; }
.a-title {
  font-family: 'Lora', serif;
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.a-author { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.35rem; }
.a-meta { display: flex; gap: 0.4rem; align-items: center; }
.a-dur { font-size: 0.76rem; color: var(--gold); font-weight: 600; }
.a-excl {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  background: #FEF3DC;
  color: var(--gold);
  border: 1px solid #E8D090;
  padding: 0.13rem 0.4rem;
  border-radius: 3px;
}

/* ═══════════════════════════════════════
   TOPIC HUBS
═══════════════════════════════════════ */
.hg {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 1.25rem;
}

.hub {
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: box-shadow 0.22s, transform 0.22s;
}
.hub:hover { box-shadow: 0 8px 32px rgba(28,24,20,0.12); transform: translateY(-3px); }

.h1bg { background: linear-gradient(158deg, #1C2E42 0%, #0D1A26 100%); }
.h2bg { background: linear-gradient(158deg, #1A3520 0%, #0A1A0D 100%); }
.h3bg { background: linear-gradient(158deg, #3A1A50 0%, #1C0D28 100%); }

.hub-orn {
  position: absolute;
  top: 1rem; right: 1rem;
  opacity: 0.08;
  pointer-events: none;
}

.hub-body { padding: 1.5rem; }
.hub-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 0.55rem;
}
.hub-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.h1bg .hub-title { font-size: 1.45rem; }
.hub-ct { font-size: 0.78rem; color: rgba(255,255,255,0.38); }

/* ═══════════════════════════════════════
   MEMBERSHIP
═══════════════════════════════════════ */
.memb {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.memb::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.memb-orn {
  position: absolute;
  right: -60px; top: -60px;
  opacity: 0.04;
  pointer-events: none;
}
.memb-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.memb-ey {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.memb-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 3rem;
  color: var(--paper);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}
.memb-title em { font-style: italic; color: var(--gold2); }
.memb-body {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: rgba(253,250,243,0.55);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.memb-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.memb-cta:hover { background: var(--gold2); }

.memb-perks { display: flex; flex-direction: column; gap: 1.5rem; }
.mp {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(250,247,239,0.06);
}
.mp:last-child { border-bottom: none; padding-bottom: 0; }
.mp-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
  opacity: 0.6;
}
.mp-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 0.3rem;
}
.mp-desc {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: rgba(253,250,243,0.4);
  line-height: 1.55;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--paper2);
  border-top: 1px solid var(--rule);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.f-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--muted);
}
.f-logo .dot { color: var(--gold); }
.f-note { font-size: 0.72rem; color: var(--muted); font-family: 'Lora', serif; font-style: italic; }
.f-links { display: flex; gap: 1.5rem; }
.f-links a { font-size: 0.72rem; color: var(--muted); text-decoration: none; }
.f-links a:hover { color: var(--ink); }

/* ═══════════════════════════════════════
   PAYWALL
═══════════════════════════════════════ */
.paywall {
  text-align: center;
  padding: 3rem 2rem;
  border: 2px dashed var(--rule);
  border-radius: 12px;
  margin: 2rem 0;
  background: var(--paper2);
}
.paywall-inner { max-width: 420px; margin: 0 auto; }
.paywall-icon { margin-bottom: 1rem; color: var(--muted); }
.paywall-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.paywall-text {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.paywall-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.paywall-cta:hover { background: var(--gold2); }
.paywall-alt {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.paywall-alt a { color: var(--gold); }

/* ═══════════════════════════════════════
   REVEAL ANIMATION
═══════════════════════════════════════ */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.rv.on { opacity: 1; transform: none; }

/* ═══════════════════════════════════════
   GENERIC CONTENT
═══════════════════════════════════════ */
.single-content {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: 720px;
}
.single-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}
.single-content p { margin-bottom: 1rem; }
.single-content a { color: var(--gold); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .n-links { display: none; flex-direction: column; position: absolute; top: 58px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 1rem 1.5rem; gap: 1rem; }
  .n-links.open { display: flex; }
  .n-burger { display: block; }
  .hero { padding: 2.5rem 1.5rem; }
  .wrap { padding: 3rem 1.5rem; }
  .bg { grid-template-columns: repeat(2, 1fr); }
  .ag { grid-template-columns: 1fr; }
  .hg { grid-template-columns: 1fr 1fr; }
  .memb-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem; }
  .nums { flex-wrap: wrap; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 600px) {
  .bg { grid-template-columns: 1fr; }
  .hg { grid-template-columns: 1fr; }
  .nums { flex-direction: column; }
  .num-item { border-right: none; border-bottom: 1px solid var(--rule); }
  .num-item:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════ */
.auth-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.auth-card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 2.5rem 2.5rem;
  width: 100%;
  max-width: 420px;
}
.auth-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.auth-sub {
  font-family: 'Lora', serif;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.auth-form { display: flex; flex-direction: column; gap: 1.2rem; }
.auth-label {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.82rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0.02em;
}
.auth-input {
  font-family: 'Lora', serif;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
}
.auth-input:focus { outline: none; border-color: var(--gold); }
.auth-btn {
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 5px;
  padding: 0.82rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 0.5rem;
}
.auth-btn:hover { background: var(--gold); color: var(--ink); }
.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.auth-links a { color: var(--gold); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-sep { margin: 0 0.5rem; }
.auth-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.auth-success {
  background: #F0FFF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════
   PRICING CARDS
═══════════════════════════════════════ */
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 2.5rem;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--gold);
  box-shadow: 3px 3px 0 var(--gold);
}
.pricing-badge {
  position: absolute;
  top: -12px; right: 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}
.pricing-header { margin-bottom: 1.5rem; }
.pricing-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.pricing-unit { font-size: 1rem; color: var(--muted); }
.pricing-period { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }
.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}
.pricing-features li {
  font-family: 'Lora', serif;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  padding-left: 1.5rem;
  position: relative;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.pricing-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}
.pricing-cta:hover { background: var(--gold2); }
.pricing-cta-secondary {
  background: var(--paper2);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.pricing-cta-secondary:hover { border-color: var(--gold); background: var(--paper); }
.billing-btn {
  background: transparent;
  color: var(--muted);
}
.billing-btn.active {
  background: var(--ink);
  color: var(--paper);
}

/* ═══════════════════════════════════════
   PROFILE PAGE
═══════════════════════════════════════ */
.profile-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.profile-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.92rem;
}
.profile-label { color: var(--muted); }
.profile-value { color: var(--ink); font-weight: 500; }

@media (max-width: 600px) {
  .pricing-card + .pricing-card { margin-top: 0; }
  .auth-card { padding: 2rem 1.5rem; }
}

/* ═══════════════════════════════════════
   AUDIO PLAYER
═══════════════════════════════════════ */
.audio-player-wrap {
  background: var(--ink);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}
.ap-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* CD disc */
.ap-disc-wrap {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
}
.ap-disc {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a2e, #2a1650);
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.ap-disc-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 0;
}
.ap-disc.spinning {
  animation: spin 4s linear infinite;
}
.ap-disc-hole {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid rgba(255,255,255,0.1);
}
.ap-disc-grooves {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0px,
    transparent 8px,
    rgba(255,255,255,0.03) 9px,
    transparent 10px
  );
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Controls */
.ap-controls { flex: 1; min-width: 0; }
.ap-title-bar { margin-bottom: 1rem; }
.ap-now {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.ap-track-title {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: rgba(253,250,243,0.9);
  font-weight: 500;
}

/* Progress */
.ap-progress-wrap { margin-bottom: 1.2rem; cursor: pointer; }
.ap-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  position: relative;
  overflow: visible;
}
.ap-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  width: 0;
  transition: width 0.1s linear;
}
.ap-progress-limit {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 14px;
  background: var(--rust);
  border-radius: 1px;
}
.ap-time {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  color: rgba(253,250,243,0.4);
  font-variant-numeric: tabular-nums;
}

/* Buttons */
.ap-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.ap-btn {
  background: none;
  border: none;
  color: rgba(253,250,243,0.7);
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.3rem;
}
.ap-btn:hover { color: var(--gold); }
.ap-play {
  width: 56px; height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.ap-play:hover { background: var(--gold2); color: var(--ink); }

/* Extras */
.ap-extras {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
}
.ap-speed {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: rgba(253,250,243,0.7);
  font-size: 0.78rem;
  padding: 0.3rem 0.5rem;
  font-family: 'DM Sans', sans-serif;
}
.ap-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(253,250,243,0.5);
}
.ap-volume {
  width: 80px;
  accent-color: var(--gold);
}

/* Chapter list */
.ap-chapters {
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.8rem;
}
.ap-chapters-toggle {
  background: none;
  border: none;
  color: rgba(253,250,243,0.7);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.ap-chapters-toggle:hover { color: var(--gold); }
.ap-chapters-arrow { transition: transform 0.2s; }
.ap-chapters-toggle.open .ap-chapters-arrow { transform: rotate(180deg); }
.ap-chapter-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  max-height: 240px;
  overflow-y: auto;
}
.ap-chapter-list li {
  padding: 0.5rem 0.8rem;
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: rgba(253,250,243,0.6);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.ap-chapter-list li:hover { background: rgba(255,255,255,0.06); color: rgba(253,250,243,0.9); }
.ap-chapter-list li.active { background: rgba(184,134,11,0.15); color: var(--gold); }

/* Paywall overlay */
.ap-paywall {
  position: absolute;
  inset: 0;
  background: rgba(42,22,80,0.95);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Favourite heart */
.fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--muted);
  transition: color 0.2s;
  display: none; /* Hidden for anonymous */
}
.fav-btn.visible { display: inline-block; }
.fav-btn.active, .fav-btn.is-fav { color: var(--rust); }
.fav-btn:hover { color: var(--rust); }

@media (max-width: 700px) {
  .ap-inner { flex-direction: column; }
  .ap-disc-wrap { width: 120px; height: 120px; }
  .ap-disc { width: 120px; height: 120px; }
}

/* ═══════════════════════════════════════
   BOOK READER
═══════════════════════════════════════ */

/* Book header */
.book-header {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.book-header-cover {
  flex-shrink: 0;
  width: 220px;
}
.book-header-info {
  flex: 1;
  min-width: 280px;
}
.book-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.book-subtitle {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.book-meta-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.book-meta-chip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper2);
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.book-actions {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

/* Reader section */
.reader-section {
  margin-top: 2rem;
}
.reader-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

/* Reader layout: sidebar + content */
.reader-layout {
  display: flex;
  gap: 0;
  min-height: 500px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white, #fff);
}

/* Sidebar */
.reader-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--paper2);
  border-right: 1px solid var(--rule);
  overflow-y: auto;
  max-height: 80vh;
  position: sticky;
  top: 70px;
}
.reader-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1rem 0.8rem;
  border-bottom: 1px solid var(--rule);
}
.reader-sidebar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.reader-sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0.3rem;
}

/* TOC list */
.reader-toc {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}
.reader-toc-item {
  border-bottom: 1px solid var(--rule);
}
.reader-toc-item:last-child {
  border-bottom: none;
}
.reader-toc-item.active .reader-toc-btn {
  background: var(--paper);
  border-left: 3px solid var(--gold);
}
.reader-toc-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}
.reader-toc-btn:hover {
  background: var(--paper);
}
.reader-toc-num {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 1.6rem;
  text-align: right;
  flex-shrink: 0;
}
.reader-toc-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-toc-lock {
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0.5;
}

/* Content area */
.reader-content-area {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem;
  overflow-y: auto;
  max-height: 80vh;
}

/* Mobile TOC toggle */
.reader-toc-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 1.5rem;
  width: 100%;
  text-align: left;
}
.reader-toc-toggle svg {
  flex-shrink: 0;
  color: var(--muted);
}

/* Chapter header */
.reader-chapter-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.reader-chapter-num {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.reader-chapter-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

/* Chapter body (uses .single-content for typography) */
.reader-chapter-body {
  min-height: 300px;
}

/* Navigation */
.reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.reader-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.55rem 1.1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.reader-nav-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--paper2);
}
.reader-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.reader-nav-pos {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Continue reading banner */
.reader-continue {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--paper2);
  border: 1px solid var(--gold);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  font-family: 'Lora', serif;
  font-size: 0.92rem;
  color: var(--ink);
}
.reader-continue-btn {
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 4px;
  padding: 0.45rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.reader-continue-btn:hover { background: var(--gold2); }
.reader-continue-dismiss {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0.3rem;
  flex-shrink: 0;
}

/* Auth gate */
.reader-gate {
  margin-top: 1rem;
}

/* Worksheet grid */
.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ─── Reader responsive ─── */
@media (max-width: 900px) {
  .reader-layout {
    flex-direction: column;
    min-height: auto;
  }
  .reader-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100vh;
    z-index: 200;
    border-right: none;
    border-radius: 0;
  }
  .reader-sidebar.open {
    display: block;
  }
  .reader-sidebar-close {
    display: block;
  }
  .reader-toc-toggle {
    display: flex;
  }
  .reader-content-area {
    padding: 1.5rem 1.2rem;
    max-height: none;
  }
  .book-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .book-header-info {
    min-width: auto;
  }
  .book-actions {
    justify-content: center;
  }
  .reader-continue {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══════════════════════════════════════
   ADMIN PANEL
═══════════════════════════════════════ */

.admin-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* Stats cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}
.admin-stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.admin-stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Quick link cards */
.admin-link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-link-card:hover {
  border-color: var(--gold);
  box-shadow: 3px 3px 0 var(--ink);
}

/* Search + filter inputs */
.admin-search {
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  width: 260px;
  outline: none;
  transition: border-color 0.2s;
}
.admin-search:focus { border-color: var(--gold); }

.admin-filter, .admin-select {
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  cursor: pointer;
}
.admin-filter:focus, .admin-select:focus { border-color: var(--gold); }

/* Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--rule);
  white-space: nowrap;
  user-select: none;
}
.admin-sortable { cursor: pointer; }
.admin-sortable:hover { color: var(--ink); }
.admin-sortable.asc::after { content: ' \25B2'; font-size: 0.65rem; }
.admin-sortable.desc::after { content: ' \25BC'; font-size: 0.65rem; }

.admin-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  vertical-align: middle;
}
.admin-table tbody tr:hover { background: var(--paper2); }

/* Tier badges */
.admin-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: var(--paper2);
  color: var(--muted);
  text-transform: capitalize;
}
.admin-badge--gold {
  background: rgba(184, 134, 11, 0.12);
  color: var(--gold);
}
.admin-badge--purple {
  background: rgba(42, 22, 80, 0.1);
  color: var(--ink2);
}
[data-theme="dark"] .admin-badge--purple {
  background: rgba(200, 191, 216, 0.12);
}

/* Action buttons */
.admin-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.admin-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--rust);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background 0.15s;
  line-height: 1;
}
.admin-delete-btn:hover { background: rgba(139, 58, 26, 0.1); }

.admin-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s;
  line-height: 1;
}
.admin-edit-btn:hover { color: var(--ink); }

.admin-save-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #2e7d32;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  line-height: 1;
}
.admin-save-btn:hover { background: rgba(46, 125, 50, 0.1); }

.admin-cancel-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--rust);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  line-height: 1;
}
.admin-cancel-btn:hover { background: rgba(139, 58, 26, 0.1); }

.admin-approve-btn {
  background: none;
  border: 1px solid #2e7d32;
  cursor: pointer;
  font-size: 0.95rem;
  color: #2e7d32;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.admin-approve-btn:hover { background: #2e7d32; color: #fff; }

.admin-reject-btn {
  background: none;
  border: 1px solid var(--rust);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--rust);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.admin-reject-btn:hover { background: var(--rust); color: #fff; }

/* Inline editing */
.admin-inline-input {
  padding: 0.3rem 0.5rem;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
  outline: none;
}
.admin-inline-select {
  padding: 0.3rem 0.5rem;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

/* Pagination */
.admin-page-btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s;
}
.admin-page-btn:hover { border-color: var(--gold); }
.admin-page-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Delete confirmation modal */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-modal-box {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.admin-modal-cancel {
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.admin-modal-cancel:hover { background: var(--paper2); }
.admin-modal-delete {
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  background: var(--rust);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}
.admin-modal-delete:hover { opacity: 0.85; }
.admin-modal-delete:disabled { opacity: 0.5; cursor: not-allowed; }

/* Add user form details */
.admin-add-form summary { list-style: none; }
.admin-add-form summary::-webkit-details-marker { display: none; }

/* Responsive */
@media (max-width: 768px) {
  .admin-wrap { padding: 1.5rem 1rem 3rem; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-search { width: 100%; }
  .admin-table { font-size: 0.82rem; }
  .admin-table th, .admin-table td { padding: 0.5rem; }
}

/* ═══════════════════════════════════════
   REVIEWS
═══════════════════════════════════════ */
.reviews-section { margin-top: 2rem; }

.reviews-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.reviews-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.reviews-aggregate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
}
.reviews-avg {
  font-weight: 600;
  color: var(--ink);
}
.reviews-count {
  color: var(--muted);
}

/* Star display */
.review-stars {
  display: inline-flex;
  gap: 0.1rem;
}
.review-star {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1;
}
.review-star.filled {
  color: var(--gold);
}

/* Review cards */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
}
.review-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.review-card-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}
.review-card-body {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
}

/* Review form */
.review-form-wrap { margin-top: 1rem; }
.review-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
}
.review-form-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}

/* Star input */
.review-star-input {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.review-star-btn {
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.15s;
  user-select: none;
  line-height: 1;
}
.review-star-btn.filled,
.review-star-btn:hover {
  color: var(--gold);
}

/* Textarea */
.review-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 1rem;
}
.review-textarea:focus {
  border-color: var(--gold);
}

/* Form actions */
.review-form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.review-submit-btn {
  padding: 0.6rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.review-submit-btn:hover { opacity: 0.85; }
.review-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.review-msg {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
}
.review-msg.success { color: var(--gold); }
.review-msg.error { color: var(--rust, #c44); }

/* Login prompt */
.review-login-prompt {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 1rem 0;
}
.review-login-prompt a {
  color: var(--gold);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .review-card { padding: 1rem; }
  .review-form { padding: 1rem; }
  .reviews-header { gap: 0.6rem; }
}
