
:root {
  --navy: #020617;
  --navy-soft: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --page: #f1f5f9;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --green: #047857;
  --green-dark: #065f46;
  --green-soft: #ecfdf5;
  --green-border: #a7f3d0;
  --green-text: #064e3b;
  --gold: #b88932;
  --blue: #1d4ed8;
  --line: #cbd5e1;
  --danger: #b91c1c;
  --warning: #92400e;
  --shadow: 0 20px 48px rgba(15, 23, 42, .12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, .08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.18rem; letter-spacing: .01em; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--navy); font-weight: 700; }
.nav-links a:hover { color: var(--green); }

.hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(circle at 82% 18%, rgba(45,134,89,.14), transparent 34%),
    linear-gradient(135deg, #f7fafc, #edf3f7);
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--green-dark); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; margin: 0 0 12px; }
h1,h2,h3 { color: var(--navy); line-height: 1.14; margin-top: 0; }
h1 { font-size: clamp(2.35rem, 5.5vw, 4.4rem); margin-bottom: 20px; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.8rem); letter-spacing: -.018em; }
.lead { font-size: 1.16rem; color: var(--text); max-width: 720px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow); }
.pill-list { display: grid; gap: 13px; }
.pill { padding: 14px 16px; border-radius: var(--radius-md); background: var(--green-soft); color: var(--navy); font-weight: 700; }

.section { padding: 72px 0; }
.section-alt { background: #e7edf3; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.books-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.book-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 15px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.book-cover { aspect-ratio: 2/3; object-fit: cover; width: 100%; border-radius: 14px; background: #e6ebef; }
.book-card h3 { font-size: 1.12rem; margin: 17px 0 9px; }
.book-card p { color: var(--muted); font-size: .95rem; flex: 1; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 13px;
  padding: 13px 20px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 800;
  min-height: 50px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.button:hover, .button:focus { background: var(--green-dark); box-shadow: 0 8px 18px rgba(45,134,89,.18); }
.button:active { transform: translateY(1px); }
.button.secondary { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.button.secondary:hover, .button.secondary:focus { background: var(--surface-soft); border-color: #b9c8d5; }
.button.gold { background: var(--gold); }
.button[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-soft); }
.field { margin-bottom: 17px; }
label { display: block; color: var(--navy); font-weight: 800; margin-bottom: 7px; }
input, textarea, select { width: 100%; border: 1.5px solid #aab8c5; border-radius: 11px; padding: 12px 13px; background: #fff; color: var(--navy); }
input:focus, textarea:focus, select:focus, button:focus, a:focus { outline: 3px solid rgba(45,134,89,.24); outline-offset: 2px; }
.checkbox { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 13px 0; }
.checkbox input { width: 19px; height: 19px; margin-top: 3px; }
.checkbox label { font-weight: 400; color: var(--text); margin: 0; }
.note { color: var(--muted); font-size: .92rem; }
.status { margin-top: 16px; min-height: 24px; font-weight: 700; line-height: 1.45; }
.status.error { color: var(--danger); }
.status.success { color: var(--green-dark); }
.status.warning { color: var(--warning); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Reader resource pages: faithful to the calm, balanced layout of the earlier site. */
.resource-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px 14px;
  background: var(--page);
  overflow: hidden;
}
.resource-card {
  position: relative;
  width: min(1380px, 100%);
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 38px 42px;
  display: grid;
  grid-template-columns: minmax(430px, 500px) minmax(0, 1fr);
  gap: 62px;
  align-items: center;
  animation: cardEnter .55s cubic-bezier(.22,.8,.32,1) both;
}
.resource-cover-panel {
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, .05);
  animation: coverEnter .65s .08s cubic-bezier(.22,.8,.32,1) both;
}
.resource-cover {
  width: 100%;
  max-width: 470px;
  max-height: 740px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #e2e8f0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .15);
  transition: transform .3s ease, box-shadow .3s ease;
}
.resource-cover-panel:hover .resource-cover {
  transform: translateY(-3px) scale(1.006);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .18);
}
.resource-content {
  min-width: 0;
  animation: contentEnter .65s .16s cubic-bezier(.22,.8,.32,1) both;
}
.resource-badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid rgba(167, 243, 208, .7);
  border-radius: 999px;
  padding: 8px 15px;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .01em;
  animation: softPulse 3.4s ease-in-out infinite;
}
.resource-title {
  color: var(--navy);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3.1vw, 2.6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.022em;
  margin: 20px 0 24px;
}
.resource-book-label {
  margin: 0 0 8px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .82rem;
  font-weight: 500;
}
.resource-book-title {
  color: var(--navy);
  font-size: clamp(1.62rem, 2.4vw, 2.15rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.012em;
  margin: 0 0 18px;
}
.resource-amazon-link {
  display: inline-block;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 1.06rem;
  font-weight: 400;
  margin: 0 0 24px;
  transition: color .18s ease, transform .18s ease;
}
.resource-amazon-link:hover,
.resource-amazon-link:focus {
  color: #1e40af;
  transform: translateX(2px);
}
.resource-summary {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--green-border);
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-text);
  font-size: 1.08rem;
  line-height: 1.65;
}
.resource-actions { display: grid; gap: 12px; margin-top: 26px; }
.resource-actions .button {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 66px;
  border-radius: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.12rem, 1.65vw, 1.32rem);
  line-height: 1.25;
  font-weight: 700;
  padding: 15px 22px;
  background: var(--green);
  box-shadow: 0 10px 20px rgba(4, 120, 87, .16);
}
.resource-actions .button:hover,
.resource-actions .button:focus {
  background: var(--green-dark);
  box-shadow: 0 14px 24px rgba(4, 120, 87, .22);
  transform: translateY(-1px);
}
.resource-actions .button::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -45%;
  width: 28%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg);
  animation: buttonSheen 4.8s ease-in-out infinite;
  pointer-events: none;
}
.resource-download-button { letter-spacing: -.006em; }

.complete-card {
  position: relative;
  isolation: isolate;
  display: block;
  text-align: center;
  max-width: 860px;
  padding: 62px 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(167, 243, 208, .36), transparent 26%),
    radial-gradient(circle at 88% 82%, rgba(209, 250, 229, .6), transparent 28%),
    #ffffff;
}
.complete-card::before,
.complete-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  opacity: .55;
  filter: blur(1px);
}
.complete-card::before {
  width: 82px;
  height: 82px;
  background: rgba(167, 243, 208, .55);
  left: 7%;
  top: 14%;
  animation: floatOne 5.5s ease-in-out infinite;
}
.complete-card::after {
  width: 58px;
  height: 58px;
  background: rgba(110, 231, 183, .3);
  right: 8%;
  bottom: 16%;
  animation: floatTwo 6.5s ease-in-out infinite;
}
.complete-card .resource-content { max-width: 720px; margin: 0 auto; }
.complete-brand {
  font-size: 1.12rem;
  padding: 10px 21px;
  letter-spacing: .01em;
}
.complete-card .complete-title {
  font-size: clamp(2.7rem, 5.1vw, 4.45rem);
  line-height: 1.08;
  max-width: 720px;
  margin: 26px auto 24px;
  text-transform: none;
}
.complete-copy {
  max-width: 690px;
  margin: 0 auto;
  color: var(--navy-soft);
  font-size: clamp(1.28rem, 2.1vw, 1.68rem);
  line-height: 1.58;
}
.complete-explore {
  color: var(--green-dark);
  font-size: 1.28em;
  font-weight: 700;
  letter-spacing: -.01em;
}
.complete-card .resource-actions { max-width: 450px; margin: 34px auto 0; }
.complete-card .complete-button { font-size: 1.24rem; }

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(18px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes coverEnter {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes contentEnter {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(4,120,87,0); }
  50% { box-shadow: 0 0 0 7px rgba(4,120,87,.055); }
}
@keyframes buttonSheen {
  0%, 72% { left: -45%; }
  100% { left: 125%; }
}
@keyframes floatOne {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(10px, -8px); }
}
@keyframes floatTwo {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-9px, 9px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); background: #fff; }
.narrow-card { max-width: 850px; margin-left: auto; margin-right: auto; }
.login-card { max-width: 650px; margin: 0 auto 30px; }
.footer-row { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.dashboard-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
.metric { background:white; border:1px solid var(--line); border-radius:16px; padding:18px; }
.metric strong { display:block; font-size:2rem; color: var(--navy); }
.table-wrap { overflow:auto; background:white; border:1px solid var(--line); border-radius:16px; }
table { width:100%; border-collapse:collapse; min-width:760px; }
th,td { text-align:left; padding:12px; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:var(--green-soft); color: var(--navy); }

@media (max-width: 980px) {
  .hero-grid, .form-grid, .resource-card { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resource-card { max-width: 860px; gap: 34px; padding: 32px; }
  .resource-cover-panel { padding: 14px; }
  .resource-cover { max-width: 430px; max-height: 680px; }
  .resource-content { text-align: left; }
  .dashboard-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .nav-links { display:none; }
  .books-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
  .section { padding: 54px 0; }
  .resource-shell { padding: 14px 10px; place-items: start center; }
  .resource-card { padding: 18px; gap: 22px; border-radius: 20px; }
  .resource-cover-panel { padding: 10px; }
  .resource-cover { max-width: 310px; max-height: none; }
  .resource-title { font-size: 2rem; margin: 18px 0 20px; }
  .resource-book-title { font-size: 1.48rem; }
  .resource-amazon-link { font-size: 1rem; margin-bottom: 20px; }
  .resource-summary { font-size: 1rem; padding: 17px; }
  .resource-actions .button { font-size: 1.06rem; min-height: 62px; padding: 13px 14px; }
  .complete-card { padding: 44px 20px; margin-top: 36px; }
  .complete-brand { font-size: 1rem; padding: 9px 17px; }
  .complete-card .complete-title { font-size: 2.55rem; }
  .complete-copy { font-size: 1.2rem; }
}

/* =========================================================
   Stage 4.0 — Modern, email-first homepage
   ========================================================= */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hub-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hub-nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -.018em;
}
.hub-brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #0f8f68, #056c50);
  box-shadow: 0 7px 18px rgba(4, 120, 87, .2);
  font-weight: 900;
}
.hub-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hub-nav-links a,
.nav-feedback {
  border: 0;
  background: transparent;
  color: var(--navy-soft);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 750;
  transition: background .2s ease, color .2s ease;
}
.hub-nav-links a:hover,
.nav-feedback:hover {
  color: var(--green-dark);
  background: var(--green-soft);
}

.signup-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 78px;
  background:
    radial-gradient(circle at 88% 16%, rgba(16, 185, 129, .18), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(14, 165, 233, .08), transparent 30%),
    linear-gradient(145deg, #f8fbfb 0%, #edf5f2 52%, #f9fbfc 100%);
}
.signup-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}
.signup-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: 66px;
  align-items: center;
}
.signup-copy {
  animation: modernRise .65s ease both;
}
.hero-kicker,
.library-kicker,
.dialog-kicker {
  margin: 0 0 12px;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 850;
  font-size: .78rem;
}
.signup-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 5.55rem);
  line-height: .98;
  letter-spacing: -.052em;
  font-weight: 900;
  color: #07111f;
}
.hero-subcopy {
  max-width: 620px;
  margin: 25px 0 0;
  color: #344256;
  font-size: clamp(1.08rem, 1.65vw, 1.28rem);
  line-height: 1.55;
}
.hero-signup {
  max-width: 720px;
  margin-top: 30px;
}
.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 19px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .12);
}
.signup-row input {
  width: 100%;
  min-height: 58px;
  padding: 0 17px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.04rem;
}
.signup-row input::placeholder { color: #7b8797; }
.signup-button {
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #0f8f68, #047857);
  box-shadow: 0 11px 23px rgba(4, 120, 87, .24);
  font-weight: 850;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.signup-button:hover,
.signup-button:focus {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0b7c5b, #065f46);
  box-shadow: 0 15px 28px rgba(4, 120, 87, .29);
}
.signup-button:disabled { opacity: .58; cursor: wait; transform: none; }
.signup-note {
  margin: 11px 4px 0;
  color: #64748b;
  font-size: .89rem;
}
.signup-status { margin-left: 4px; }

.featured-stage {
  position: relative;
  min-height: 500px;
  padding: 28px 30px 24px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 30px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 26px 72px rgba(15, 23, 42, .13);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: modernRise .72s .08s ease both;
}
.featured-topline {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
  font-size: .95rem;
  font-weight: 800;
}
.featured-count {
  color: var(--green-dark);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  font-size: .82rem;
}
.cover-stack {
  position: relative;
  height: 365px;
  margin: 18px auto 8px;
}
.stacked-cover {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 210px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 7px solid #fff;
  border-radius: 18px;
  background: #e2e8f0;
  box-shadow: 0 24px 50px rgba(15, 23, 42, .25);
  transform-origin: 50% 100%;
  transition: transform .28s ease, box-shadow .28s ease, z-index 0s;
}
.stacked-cover img { width: 100%; height: 100%; object-fit: cover; }
.stacked-cover-1 { z-index: 3; transform: translateX(-50%) rotate(-1deg) translateY(4px); }
.stacked-cover-2 { z-index: 2; transform: translateX(-91%) rotate(-10deg) translateY(28px); }
.stacked-cover-3 { z-index: 1; transform: translateX(-9%) rotate(10deg) translateY(28px); }
.stacked-cover:hover { z-index: 5; transform: translateX(-50%) rotate(0) translateY(-7px) scale(1.045); box-shadow: 0 30px 60px rgba(15, 23, 42, .3); }
.stacked-cover-2:hover { transform: translateX(-82%) rotate(-3deg) translateY(-5px) scale(1.04); }
.stacked-cover-3:hover { transform: translateX(-18%) rotate(3deg) translateY(-5px) scale(1.04); }
.cover-skeleton {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 205px;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: linear-gradient(110deg, #e2e8f0 8%, #f8fafc 18%, #e2e8f0 33%);
  background-size: 200% 100%;
  animation: shimmer 1.45s linear infinite;
}
.cover-skeleton:nth-child(1) { z-index: 3; transform: translateX(-50%); }
.cover-skeleton:nth-child(2) { z-index: 2; transform: translateX(-89%) rotate(-10deg) translateY(22px); }
.cover-skeleton:nth-child(3) { z-index: 1; transform: translateX(-11%) rotate(10deg) translateY(22px); }
.featured-empty { min-height: 320px; display: grid; place-items: center; color: var(--muted); }
.featured-link {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 850;
}
.featured-link:hover span { transform: translateX(4px); }
.featured-link span { transition: transform .2s ease; }

.library-section {
  padding: 78px 0 90px;
  background: #f7f9fb;
}
.library-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}
.library-heading h2 {
  margin: 0;
  color: #07111f;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.library-meta {
  margin: 0 0 5px;
  color: var(--muted);
  font-weight: 700;
}
.library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 28px;
}
.search-box,
.sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #d6dee8;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
}
.search-box:focus-within,
.sort-box:focus-within { border-color: #64b899; box-shadow: 0 0 0 4px rgba(4, 120, 87, .09); }
.search-box span { color: var(--green-dark); font-size: 1.45rem; transform: rotate(-18deg); }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--navy);
}
.sort-box span { color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sort-box select { border: 0; outline: 0; background: transparent; color: var(--navy); font-weight: 750; }

.modern-books-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.modern-book-card {
  min-width: 0;
  animation: modernRise .5s ease both;
}
.modern-cover-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: #e2e8f0;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
  transition: transform .26s ease, box-shadow .26s ease;
}
.modern-cover-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, .72), transparent 44%);
  opacity: 0;
  transition: opacity .25s ease;
}
.modern-cover-link:hover { transform: translateY(-7px); box-shadow: 0 22px 42px rgba(15, 23, 42, .2); }
.modern-cover-link:hover::after { opacity: 1; }
.modern-book-cover { width: 100%; height: 100%; object-fit: cover; transition: transform .38s ease; }
.modern-cover-link:hover .modern-book-cover { transform: scale(1.035); }
.cover-action {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-weight: 850;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.modern-cover-link:hover .cover-action { opacity: 1; transform: translateY(0); }
.modern-book-info { padding: 14px 3px 0; }
.modern-book-info h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.04rem;
  line-height: 1.3;
  letter-spacing: -.012em;
}
.book-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 800;
}
.book-link span { transition: transform .2s ease; }
.book-link:hover span { transform: translateX(3px); }
.load-more-wrap { display: flex; justify-content: center; padding-top: 38px; }
.load-more-button {
  min-width: 210px;
  min-height: 54px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
}
.load-more-button:hover { border-color: #79bda4; color: var(--green-dark); transform: translateY(-1px); }
.library-loading { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.library-loading span { aspect-ratio: 2 / 3; border-radius: 18px; background: linear-gradient(110deg, #e2e8f0 8%, #f8fafc 18%, #e2e8f0 33%); background-size: 200% 100%; animation: shimmer 1.45s linear infinite; }
.empty-library { grid-column: 1 / -1; min-height: 260px; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; color: var(--muted); border: 1px dashed #cbd5e1; border-radius: 20px; background: #fff; }
.empty-library strong { color: var(--navy); font-size: 1.25rem; }

.modern-footer {
  padding: 34px 0;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.modern-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.modern-footer-row > div:first-child { display: grid; gap: 3px; }
.modern-footer-row strong { color: var(--navy); }
.modern-footer-row span { color: var(--muted); font-size: .9rem; }
.footer-actions { display: flex; align-items: center; gap: 14px; }
.footer-actions button,
.footer-actions a { border: 0; background: transparent; color: var(--green-dark); text-decoration: none; font-weight: 800; }

.floating-feedback {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  color: #fff;
  background: #07111f;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .22);
  font-weight: 850;
}
.floating-feedback:hover { transform: translateY(-2px); background: var(--green-dark); }

.feedback-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100vh - 34px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 30px 80px rgba(2, 6, 23, .32);
}
.feedback-dialog::backdrop { background: rgba(2, 6, 23, .58); backdrop-filter: blur(5px); }
.feedback-dialog-card {
  position: relative;
  overflow: auto;
  max-height: calc(100vh - 34px);
  padding: 34px;
  border-radius: 24px;
  background: #fff;
}
.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #eef2f6;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1;
}
.feedback-dialog h2 { margin-bottom: 7px; font-size: 2.2rem; }
.dialog-intro { margin-top: 0; color: var(--muted); }
.dialog-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feedback-dialog .field { margin-top: 14px; }
.feedback-dialog .field label { display: block; margin-bottom: 6px; color: var(--navy); font-weight: 750; }
.feedback-dialog input,
.feedback-dialog textarea,
.feedback-dialog select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--navy);
  background: #fff;
}
.feedback-dialog textarea { resize: vertical; }
.feedback-dialog .checkbox { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; color: #475569; }
.feedback-dialog .checkbox input { width: 17px; height: 17px; margin-top: 3px; }
.feedback-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--green);
  font-weight: 850;
}
.feedback-submit:hover { background: var(--green-dark); }

.feedback-success-view {
  min-height: 420px;
  padding: 78px 28px 58px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.feedback-success-view.hidden { display: none; }
.feedback-success-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 2.5rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(34, 128, 91, .24);
}
.feedback-success-view h2 {
  margin: 4px 0 10px;
  font-size: 2.55rem;
}
.feedback-success-message {
  margin: 0;
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 800;
}
.feedback-success-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

@keyframes modernRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  to { background-position-x: -200%; }
}

@media (max-width: 1040px) {
  .signup-hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .signup-copy { text-align: center; }
  .hero-subcopy, .hero-signup { margin-left: auto; margin-right: auto; }
  .featured-stage { width: min(620px, 100%); margin: 0 auto; }
  .modern-books-grid, .library-loading { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hub-nav { min-height: 64px; }
  .hub-brand { font-size: .98rem; }
  .hub-brand-mark { width: 31px; height: 31px; }
  .hub-nav-links a { display: none; }
  .signup-hero { padding: 52px 0 58px; }
  .signup-copy h1 { font-size: clamp(2.65rem, 13vw, 4.4rem); }
  .signup-row { grid-template-columns: 1fr; padding: 7px; }
  .signup-button { width: 100%; }
  .featured-stage { min-height: 450px; padding: 23px 20px 20px; }
  .cover-stack { height: 330px; }
  .stacked-cover, .cover-skeleton { width: 190px; }
  .library-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .library-toolbar { grid-template-columns: 1fr; }
  .modern-books-grid, .library-loading { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .modern-footer-row { align-items: flex-start; flex-direction: column; }
  .dialog-two-cols { grid-template-columns: 1fr; gap: 0; }
  .feedback-dialog-card { padding: 28px 20px 22px; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 24px, 1160px); }
  .signup-copy h1 { font-size: 2.7rem; }
  .hero-subcopy { font-size: 1rem; }
  .featured-stage { min-height: 410px; border-radius: 22px; }
  .cover-stack { height: 295px; }
  .stacked-cover, .cover-skeleton { width: 165px; border-width: 5px; }
  .modern-books-grid, .library-loading { grid-template-columns: 1fr 1fr; gap: 13px; }
  .modern-book-info h3 { font-size: .92rem; }
  .book-link { font-size: .82rem; }
  .floating-feedback { right: 14px; bottom: 14px; }
}

@media (hover: none) {
  .modern-cover-link::after { opacity: .16; }
  .cover-action { opacity: 1; transform: none; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .signup-copy,
  .featured-stage,
  .modern-book-card,
  .cover-skeleton,
  .library-loading span { animation: none !important; }
  .stacked-cover,
  .modern-cover-link,
  .modern-book-cover { transition: none !important; }
}

/* Stage 4.2 — compact reader copy, slightly larger type; all other layout unchanged. */
.resource-content {
  width: 100%;
  max-width: 700px;
  justify-self: start;
}
.resource-title {
  font-size: clamp(2.25rem, 3.35vw, 3rem);
  line-height: 1.1;
}
.resource-book-title {
  font-size: clamp(1.8rem, 2.55vw, 2.35rem);
  line-height: 1.2;
}
.resource-amazon-link { font-size: 1.12rem; }
.resource-summary { font-size: 1.14rem; }
.privacy-card p { font-size: 1.08rem; line-height: 1.72; }
@media (max-width: 980px) {
  .resource-content { max-width: 760px; justify-self: center; }
}
@media (max-width: 620px) {
  .resource-title { font-size: 2.1rem; }
  .resource-book-title { font-size: 1.58rem; }
  .resource-summary { font-size: 1.04rem; }
}


/* =========================================================
   Stage 5.1 — Money Reset Kit hero + mobile-first signup
   ========================================================= */
.signup-hero-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr);
  gap: 52px;
}
.signup-copy h1 {
  max-width: 790px;
  font-size: clamp(4rem, 5.6vw, 4.75rem);
  line-height: 1.01;
  letter-spacing: -.047em;
}
.hero-subcopy {
  max-width: 720px;
}
.kit-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.kit-benefits span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(4, 120, 87, .16);
  border-radius: 999px;
  color: #0f513f;
  background: rgba(236, 253, 245, .78);
  font-size: .88rem;
  font-weight: 780;
}
.kit-benefits span::before {
  content: "✓";
  margin-right: 7px;
  color: #047857;
  font-weight: 900;
}
.hero-signup {
  max-width: 780px;
}
.signup-row {
  border-width: 2px;
  border-color: rgba(4, 120, 87, .2);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .15);
}
.signup-button {
  padding-inline: 26px;
}
.signup-note {
  max-width: 760px;
  line-height: 1.45;
}
.featured-stage-compact {
  width: min(100%, 465px);
  min-height: 430px;
  justify-self: end;
  padding: 24px 24px 20px;
}
.featured-stage-compact .featured-topline {
  gap: 12px;
  line-height: 1.35;
}
.featured-stage-compact .cover-stack {
  height: 310px;
  margin-top: 14px;
}
.featured-stage-compact .stacked-cover,
.featured-stage-compact .cover-skeleton {
  width: 175px;
}
.feedback-consent-note {
  margin: 12px 0 0;
  color: #64748b;
  font-size: .86rem;
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .signup-hero-grid { grid-template-columns: 1fr; }
  .kit-benefits { justify-content: center; }
  .featured-stage-compact { justify-self: center; width: min(520px, 100%); }
}

@media (max-width: 760px) {
  .signup-copy h1 { font-size: clamp(2.45rem, 11.2vw, 2.9rem); line-height: 1.04; }
  .hero-subcopy { font-size: 1rem; }
  .kit-benefits { justify-content: flex-start; }
  .kit-benefits span { width: 100%; justify-content: flex-start; border-radius: 12px; }
  .signup-row { gap: 8px; }
  .signup-row input,
  .signup-button { min-height: 54px; }
  .featured-stage-compact { min-height: 390px; }
  .featured-stage-compact .cover-stack { height: 285px; }
  .featured-stage-compact .stacked-cover,
  .featured-stage-compact .cover-skeleton { width: 160px; }
}

@media (max-width: 480px) {
  .signup-copy h1 { font-size: 2.45rem; }
  .signup-hero { padding-top: 42px; }
  .featured-stage-compact { padding: 20px 16px 16px; }
  .featured-stage-compact .featured-topline { align-items: flex-start; }
  .featured-stage-compact .featured-count { flex: 0 0 auto; }
}

/* Stage 5.2 — secure Money Reset Kit email download */
.kit-download-body{min-height:100vh;background:linear-gradient(145deg,#f6f1e7,#e8f0ea);color:#173d31}
.kit-download-shell{min-height:100vh;display:grid;place-items:center;padding:32px 18px}
.kit-download-card{width:min(680px,100%);background:#fff;border:1px solid #ded7c8;border-radius:24px;box-shadow:0 24px 70px rgba(23,61,49,.13);padding:clamp(28px,6vw,56px)}
.kit-download-brand{display:inline-flex;color:#174b3b;font-weight:800;text-decoration:none;margin-bottom:26px}
.kit-download-card h1{font-size:clamp(36px,6vw,62px);line-height:1.02;letter-spacing:-.045em;margin:8px 0 18px;max-width:12ch}
.kit-download-intro{font-size:18px;line-height:1.7;color:#4b5e55;max-width:58ch}
.kit-download-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:26px 0}
.kit-download-list span{background:#f2f6f2;border:1px solid #dce8df;border-radius:12px;padding:13px 14px;font-weight:700;color:#315447}
.kit-download-button{width:100%;min-height:56px;margin-top:8px}
.kit-home-link{display:inline-block;margin-top:20px;color:#315447;font-weight:700}
@media (max-width:620px){.kit-download-list{grid-template-columns:1fr}.kit-download-card{border-radius:18px;padding:28px 20px}.kit-download-card h1{max-width:none}}


/* =========================================================
   Stage 5.3 — first-screen signup visibility + useful Kit cards
   ========================================================= */
@media (min-width: 1041px) {
  .signup-hero {
    padding: 42px 0 54px;
  }
  .signup-hero-grid {
    align-items: start;
    gap: 46px;
  }
  .signup-copy h1 {
    max-width: 760px;
    font-size: clamp(3.45rem, 4.55vw, 4.15rem);
    line-height: 1;
  }
  .hero-subcopy {
    margin-top: 17px;
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
    line-height: 1.48;
  }
  .hero-signup {
    margin-top: 20px;
  }
  .kit-benefits {
    margin-top: 13px;
  }
  .featured-stage-compact {
    min-height: 398px;
    margin-top: 12px;
  }
  .featured-stage-compact .cover-stack {
    height: 284px;
  }
  .featured-stage-compact .stacked-cover,
  .featured-stage-compact .cover-skeleton {
    width: 162px;
  }
}

.kit-download-list-note {
  margin: 21px 0 9px;
  color: #567065;
  font-size: .93rem;
  font-weight: 700;
}
.kit-download-list {
  margin-top: 0;
}
.kit-download-item {
  background: #f2f6f2;
  border: 1px solid #dce8df;
  border-radius: 12px;
  color: #315447;
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.kit-download-item:hover,
.kit-download-item:focus-within {
  border-color: #9dc9b7;
  background: #edf7f1;
  transform: translateY(-1px);
}
.kit-download-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 13px 40px 13px 14px;
  font-weight: 800;
  color: #315447;
}
.kit-download-item summary::-webkit-details-marker { display: none; }
.kit-download-item summary::after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #087a59;
  font-size: 1.25rem;
  font-weight: 900;
}
.kit-download-item[open] summary::after { content: "−"; }
.kit-download-item p {
  margin: -2px 14px 14px;
  color: #53685e;
  font-size: .92rem;
  line-height: 1.5;
}

@media (max-width: 1040px) {
  .signup-hero { padding-top: 42px; }
  .hero-signup { margin-top: 22px; }
  .kit-benefits { margin-top: 14px; }
}

/* =========================================================
   Stage 5.4 — compact desktop pages + attention email button
   Keeps the approved mobile behavior and all delivery logic unchanged.
   ========================================================= */

/* A calm repeating shine for the main email call-to-action. */
.hero-signup .signup-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  animation: emailButtonGlow 3.8s ease-in-out infinite;
}
.hero-signup .signup-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -40%;
  left: -48%;
  width: 28%;
  height: 180%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
  transform: skewX(-18deg);
  animation: emailButtonSheen 3.8s ease-in-out infinite;
}
@keyframes emailButtonSheen {
  0%, 58% { left: -48%; opacity: 0; }
  64% { opacity: 1; }
  88% { left: 128%; opacity: 1; }
  100% { left: 128%; opacity: 0; }
}
@keyframes emailButtonGlow {
  0%, 55%, 100% { box-shadow: 0 11px 23px rgba(4,120,87,.24); }
  72% { box-shadow: 0 13px 30px rgba(4,120,87,.42), 0 0 0 5px rgba(16,185,129,.08); }
}

@media (min-width: 1041px) {
  /* Slightly narrower shared canvas so every page feels like the earlier project. */
  .container { width: min(1120px, calc(100% - 44px)); }
  .hub-nav, .nav { min-height: 64px; }

  /* Homepage: keep email field visible without browser zoom or scrolling. */
  .signup-hero { padding: 28px 0 40px; }
  .signup-hero-grid {
    grid-template-columns: minmax(0, 1.34fr) minmax(320px, .66fr);
    gap: 36px;
    align-items: start;
  }
  .hero-kicker { margin-bottom: 8px; }
  .signup-copy h1 {
    max-width: 700px;
    font-size: clamp(3rem, 3.75vw, 3.55rem);
    line-height: 1.015;
  }
  .hero-subcopy {
    max-width: 680px;
    margin-top: 13px;
    font-size: 1.02rem;
    line-height: 1.46;
  }
  .hero-signup { margin-top: 15px; max-width: 710px; }
  .signup-row { padding: 6px; border-radius: 16px; }
  .signup-row input, .signup-button { min-height: 52px; }
  .signup-row input { font-size: .98rem; }
  .signup-button { padding-inline: 21px; }
  .signup-note { margin-top: 8px; font-size: .82rem; }
  .kit-benefits { margin-top: 10px; gap: 7px; }
  .kit-benefits span { min-height: 31px; padding: 5px 10px; font-size: .8rem; }
  .featured-stage-compact {
    width: min(100%, 400px);
    min-height: 345px;
    margin-top: 4px;
    padding: 20px 21px 16px;
    border-radius: 24px;
  }
  .featured-stage-compact .featured-topline { font-size: .86rem; }
  .featured-stage-compact .cover-stack { height: 245px; margin-top: 8px; }
  .featured-stage-compact .stacked-cover,
  .featured-stage-compact .cover-skeleton { width: 142px; }
  .featured-link { font-size: .9rem; }

  .library-section { padding: 58px 0 68px; }
  .library-heading h2 { font-size: clamp(2rem, 3vw, 2.65rem); }
  .library-heading { margin-bottom: 19px; }
  .library-toolbar { margin-bottom: 22px; }
  .search-box, .sort-box { min-height: 49px; }
  .modern-books-grid { gap: 19px; }
  .modern-cover-link { border-radius: 15px; }
  .modern-book-info { padding-top: 11px; }

  /* Reader gift pages, download pages, success, privacy and 404. */
  .resource-shell { padding: 18px; }
  .resource-card {
    width: min(1120px, 100%);
    grid-template-columns: minmax(330px, 370px) minmax(0, 1fr);
    gap: 42px;
    padding: 27px 32px;
    border-radius: 21px;
  }
  .resource-cover-panel { padding: 10px; border-radius: 16px; }
  .resource-cover { max-width: 350px; max-height: 570px; border-radius: 10px; }
  .resource-content { max-width: 620px; }
  .resource-badge { padding: 6px 12px; font-size: .76rem; }
  .resource-title {
    font-size: clamp(1.8rem, 2.3vw, 2.2rem);
    margin: 15px 0 17px;
  }
  .resource-book-label { font-size: .75rem; margin-bottom: 5px; }
  .resource-book-title {
    font-size: clamp(1.42rem, 1.9vw, 1.78rem);
    margin-bottom: 13px;
  }
  .resource-amazon-link { font-size: .96rem; margin-bottom: 17px; }
  .resource-summary { padding: 15px 17px; font-size: .98rem; line-height: 1.52; }
  .resource-actions { margin-top: 19px; gap: 9px; }
  .resource-actions .button {
    min-height: 54px;
    padding: 12px 18px;
    font-size: 1.04rem;
  }
  .complete-card { max-width: 760px; padding: 42px 40px; }
  .complete-brand { font-size: .96rem; padding: 8px 16px; }
  .complete-card .complete-title {
    max-width: 650px;
    margin: 20px auto 18px;
    font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  }
  .complete-copy { font-size: clamp(1.08rem, 1.5vw, 1.28rem); }
  .complete-card .resource-actions { margin-top: 26px; }

  /* Money Reset Kit secure page. */
  .kit-download-shell { padding: 20px 18px; }
  .kit-download-card {
    width: min(610px, 100%);
    padding: 34px 38px;
    border-radius: 20px;
  }
  .kit-download-brand { margin-bottom: 16px; font-size: .93rem; }
  .kit-download-card h1 {
    max-width: 13ch;
    margin: 5px 0 13px;
    font-size: clamp(2.35rem, 4vw, 3rem);
    line-height: 1.04;
  }
  .kit-download-intro { font-size: 1rem; line-height: 1.58; }
  .kit-download-list-note { margin-top: 16px; font-size: .86rem; }
  .kit-download-list { gap: 8px; margin-bottom: 18px; }
  .kit-download-item summary { min-height: 48px; padding: 10px 36px 10px 12px; font-size: .92rem; }
  .kit-download-item p { font-size: .85rem; margin-bottom: 11px; }
  .kit-download-button { min-height: 52px; margin-top: 4px; }
  .kit-home-link { margin-top: 15px; font-size: .94rem; }

  /* Other content and admin pages. */
  .section { padding: 52px 0; }
  .form-card { padding: 24px; border-radius: 20px; }
  .narrow-card { max-width: 760px; }
  .privacy-card p { font-size: 1rem; line-height: 1.62; }
  .feedback-dialog { width: min(620px, calc(100% - 28px)); }
  .feedback-dialog-card { padding: 27px; }
  .feedback-dialog h2 { font-size: 1.9rem; }
  .dashboard-grid { gap: 12px; }
  .metric { padding: 15px; }
  .metric strong { font-size: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-signup .signup-button,
  .hero-signup .signup-button::before { animation: none !important; }
}


/* =========================================================
   Stage 5.5 — second Money Reset Kit capture at page bottom
   Same secure delivery flow; no duplicate newsletter-only workflow.
   ========================================================= */
.bottom-signup-section {
  padding: 58px 0 64px;
  background: linear-gradient(180deg, #f7f9fb 0%, #edf6f2 100%);
}
.bottom-signup-card {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(460px, 1.18fr);
  align-items: center;
  gap: 42px;
  padding: 34px 38px;
  border: 1px solid rgba(4, 120, 87, .14);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 20px 55px rgba(15,23,42,.09);
}
.bottom-signup-copy h2 {
  margin: 0;
  color: #07111f;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.bottom-signup-copy > p:last-child {
  margin: 14px 0 0;
  color: #4b5b6d;
  line-height: 1.6;
  max-width: 50ch;
}
.bottom-signup-form {
  margin-top: 0;
  max-width: none;
}
.bottom-signup-form .signup-row {
  box-shadow: 0 16px 42px rgba(15,23,42,.11);
}
@media (max-width: 980px) {
  .bottom-signup-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 620px) {
  .bottom-signup-section { padding: 40px 0 46px; }
  .bottom-signup-card { padding: 25px 18px; border-radius: 20px; }
  .bottom-signup-copy h2 { font-size: 2rem; }
}


/* =========================================================
   Stage 5.6 — financial challenge selector + clearer privacy page
   ========================================================= */
.challenge-section {
  padding: 46px 0 48px;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, .06);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.challenge-heading {
  max-width: 760px;
  margin-bottom: 24px;
}
.challenge-heading h2 {
  margin: 3px 0 10px;
  color: #07111f;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.challenge-heading > p:last-child {
  margin: 0;
  color: #536274;
  font-size: 1.02rem;
  line-height: 1.55;
}
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.challenge-card {
  position: relative;
  min-height: 164px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 19px 17px;
  text-align: left;
  color: #0a1727;
  background: #f7faf9;
  border: 1px solid #dce8e3;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15,23,42,.05);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.challenge-card:hover,
.challenge-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15,23,42,.10);
  outline: none;
}
.challenge-card.active {
  border-color: #047857;
  background: #eaf8f2;
  box-shadow: 0 0 0 3px rgba(4,120,87,.12), 0 16px 36px rgba(4,120,87,.12);
}
.challenge-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: #08775d;
  font-size: 1.12rem;
  font-weight: 900;
}
.challenge-credit .challenge-icon { background: #245b8f; }
.challenge-debt .challenge-icon { background: #9b4b38; }
.challenge-savings .challenge-icon { background: #80631c; }
.challenge-card-copy { display: grid; gap: 8px; }
.challenge-card-copy strong { font-size: 1.02rem; line-height: 1.22; }
.challenge-card-copy small { color: #59687a; font-size: .88rem; line-height: 1.48; }
.challenge-arrow { align-self: center; color: #08775d; font-size: 1.25rem; font-weight: 900; transition: transform .18s ease; }
.challenge-card:hover .challenge-arrow,
.challenge-card.active .challenge-arrow { transform: translateX(4px); }
.library-heading-actions { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.clear-challenge {
  border: 1px solid #b8cec5;
  background: #fff;
  color: #075f4b;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.clear-challenge:hover { background: #edf8f4; }
.privacy-card { max-width: 820px; }
.privacy-lead { color: #425466; font-size: 1.06rem !important; }
.privacy-section { padding: 18px 0; border-top: 1px solid #e5ece9; }
.privacy-section h2 { margin: 0 0 8px; font-size: 1.2rem; color: #0a1727; }
.privacy-section p, .privacy-section ul { margin: 0; color: #4d5d6d; }
.privacy-section ul { padding-left: 22px; line-height: 1.65; }
.privacy-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1050px) {
  .challenge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .challenge-section { padding: 36px 0 38px; }
  .challenge-heading h2 { font-size: 2rem; }
  .challenge-grid { grid-template-columns: 1fr; }
  .challenge-card { min-height: 0; }
  .library-heading-actions { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .challenge-card, .challenge-arrow { transition: none !important; }
}


/* =========================================================
   Stage 5.7 — catalog-led challenges, unified book cards,
   consent-safe Feedback, and Dashboard reply workflow
   ========================================================= */
.challenge-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.challenge-grid-five .challenge-card {
  grid-template-columns: 38px 1fr;
  min-height: 190px;
  padding: 18px 15px;
}
.challenge-grid-five .challenge-icon {
  width: 38px;
  height: 38px;
}
.challenge-grid-five .challenge-arrow {
  position: absolute;
  right: 15px;
  bottom: 14px;
}
.challenge-limited-income .challenge-icon { background: #08775d; }
.challenge-credit .challenge-icon { background: #245b8f; }
.challenge-debt .challenge-icon { background: #9b4b38; }
.challenge-frugal .challenge-icon { background: #a05e16; }
.challenge-freedom .challenge-icon { background: #6e5b17; }

.library-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 18px;
  scrollbar-width: thin;
}
.library-filter {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #cbd8d2;
  border-radius: 999px;
  background: #fff;
  color: #315447;
  font-weight: 800;
  cursor: pointer;
}
.library-filter:hover,
.library-filter.active {
  border-color: #08775d;
  background: #eaf8f2;
  color: #075f4b;
  box-shadow: 0 0 0 3px rgba(4,120,87,.08);
}

.modern-book-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}
.modern-book-info {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.book-category {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf7f2;
  color: #08775d;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.book-description {
  margin: 0 0 12px;
  color: #586779;
  font-size: .87rem;
  line-height: 1.5;
}
.modern-book-info .book-link {
  margin-top: auto;
}
.recommended-book .modern-cover-link {
  box-shadow: 0 0 0 3px rgba(4,120,87,.15), 0 17px 36px rgba(15,23,42,.14);
}
.recommended-ribbon {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  right: 12px;
  padding: 7px 9px;
  border-radius: 10px;
  color: #fff;
  background: rgba(4,120,87,.94);
  text-align: center;
  font-size: .72rem;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(4,120,87,.25);
}

.feedback-email-note {
  margin: 14px 0 0;
  padding: 11px 12px;
  border-radius: 11px;
  background: #f5f8f7;
  color: #52635c;
  font-size: .88rem;
  line-height: 1.45;
}
.newsletter-choice {
  padding: 12px;
  border: 1px solid #d9e7e1;
  border-radius: 12px;
  background: #fbfdfc;
}
.newsletter-choice label {
  line-height: 1.45;
}

.dashboard-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.dashboard-section-heading p {
  max-width: 760px;
  margin-top: -4px;
  color: #64748b;
}
.feedback-table {
  min-width: 1180px;
}
.feedback-message-cell {
  min-width: 280px;
  max-width: 420px;
  white-space: pre-wrap;
}
.dashboard-actions {
  display: flex;
  min-width: 185px;
  flex-wrap: wrap;
  gap: 7px;
}
.dashboard-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid #9fc8b8;
  border-radius: 9px;
  background: #edf8f4;
  color: #075f4b;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.dashboard-action:hover { background: #dff3ea; }
.secondary-action {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}
.disabled-action { opacity: .55; cursor: default; }
.status-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475569;
  font-size: .76rem;
  font-weight: 850;
  text-transform: capitalize;
}
.status-replied { background: #e8f3ff; color: #245b8f; }
.status-resolved { background: #e7f7ef; color: #08775d; }
.status-in_progress { background: #fff4d8; color: #7a5d12; }
.status-spam { background: #fce8e8; color: #9b2f2f; }

@media (max-width: 1180px) {
  .challenge-grid-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .challenge-grid-five { grid-template-columns: 1fr 1fr; }
  .challenge-grid-five .challenge-card { min-height: 165px; }
  .book-description { font-size: .82rem; }
}
@media (max-width: 520px) {
  .challenge-grid-five { grid-template-columns: 1fr; }
  .challenge-grid-five .challenge-card { min-height: 0; }
  .library-filter-bar { margin-inline: -2px; }
  .book-description { display: none; }
}


/* Stage 5.7.1 — Dashboard access helper */
.dashboard-secret-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem;align-items:center}.dashboard-secret-row input{min-width:0}.compact-button{min-height:42px;padding:.55rem .85rem}@media(max-width:560px){.dashboard-secret-row{grid-template-columns:1fr}.compact-button{width:100%}}

/* Stage 5.7.2 — clearer protected Dashboard access and visible results */
.dashboard-body { background: #eef3f7; }
.dashboard-page { padding-top: 36px; }
.dashboard-page .login-card { max-width: 650px; }
.dashboard-page .login-card h1 { font-size: clamp(2.6rem, 6vw, 4.7rem); margin-bottom: 26px; }
.dashboard-login-button { width: 100%; }
.dashboard-private-note { margin: 16px 0 0; color: var(--muted); font-size: .9rem; }
.dashboard-global-status {
  position: sticky;
  top: 82px;
  z-index: 12;
  width: min(900px, 100%);
  margin: 0 auto 18px;
  padding: 0;
  background: transparent;
}
.dashboard-global-status:not(:empty) {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.dashboard-global-status.success { border-color: var(--green-border); background: var(--green-soft); }
.dashboard-global-status.warning { border-color: #f2c879; background: #fff8e8; color: var(--warning); }
.dashboard-global-status.error { border-color: #fecaca; background: #fff1f2; }
.dashboard-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.dashboard-admin-toolbar h2 { margin-bottom: 0; }
.dashboard-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.dashboard-lock-button { background: #334155; }
.dashboard-lock-button:hover, .dashboard-lock-button:focus { background: #1e293b; }
.dashboard-results-section { scroll-margin-top: 145px; }
.system-check-summary {
  margin: 0 0 22px;
  padding: 17px 19px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.system-check-summary.healthy { border-color: var(--green-border); background: var(--green-soft); color: var(--green-text); }
.system-check-summary.attention { border-color: #f2c879; background: #fff8e8; color: #713f12; }
.system-check-summary ul { margin: 8px 0 0 20px; padding: 0; }
@media (max-width: 760px) {
  .dashboard-admin-toolbar { align-items: stretch; flex-direction: column; }
  .dashboard-toolbar-actions { justify-content: stretch; }
  .dashboard-toolbar-actions .button { width: 100%; }
  .dashboard-global-status { top: 72px; }
}

/* Stage 5.7.4 — secure interactive analytics dashboard */
:root {
  --admin-ink:#091529;
  --admin-muted:#5d6d82;
  --admin-surface:#ffffff;
  --admin-bg:#eef3f8;
  --admin-border:#d8e1eb;
  --admin-green:#087b62;
  --admin-teal:#0b8f83;
  --admin-blue:#1769aa;
  --admin-violet:#7550b9;
  --admin-amber:#d58908;
  --admin-rose:#c9455d;
  --admin-shadow:0 18px 50px rgba(18,37,63,.10);
}
*{box-sizing:border-box}
.admin-dashboard-body{margin:0;min-height:100vh;background:linear-gradient(145deg,#eef4f8 0%,#f8fbfd 48%,#ecf6f2 100%);color:var(--admin-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.admin-dashboard-shell{width:min(1500px,100%);margin:0 auto;padding:22px}
.hidden{display:none!important}
.admin-login-wrap{min-height:calc(100vh - 44px);display:grid;place-items:center;padding:28px 0}
.admin-login-card{width:min(560px,100%);background:rgba(255,255,255,.96);border:1px solid rgba(191,207,220,.85);border-radius:32px;padding:38px;box-shadow:0 30px 80px rgba(20,45,72,.16)}
.admin-login-mark{width:62px;height:62px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(135deg,var(--admin-green),var(--admin-teal));color:#fff;font-size:34px;font-weight:900;box-shadow:0 12px 28px rgba(8,123,98,.28);margin-bottom:24px}
.admin-kicker{margin:0 0 8px;text-transform:uppercase;letter-spacing:.2em;font-size:.74rem;font-weight:900;color:var(--admin-green)}
.admin-kicker-light{color:rgba(255,255,255,.78)}
.admin-login-card h1{font-size:clamp(2.15rem,5vw,3.4rem);line-height:1.02;margin:0 0 14px;letter-spacing:-.045em}
.admin-login-copy{color:var(--admin-muted);font-size:1.03rem;line-height:1.6;margin:0 0 26px}
.admin-field-label{display:block;font-weight:850;margin-bottom:8px}
.admin-secret-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:14px}
.admin-secret-row input,.admin-table-tools input,.admin-table-tools select,.admin-select-wrap select,.admin-range-control select{width:100%;border:1px solid #b8c6d5;border-radius:14px;background:#fff;color:var(--admin-ink);font:inherit;padding:13px 14px;outline:none;transition:border-color .2s,box-shadow .2s}
.admin-secret-row input:focus,.admin-table-tools input:focus,.admin-table-tools select:focus,.admin-select-wrap select:focus,.admin-range-control select:focus{border-color:var(--admin-green);box-shadow:0 0 0 4px rgba(8,123,98,.12)}
.admin-button{appearance:none;border:0;border-radius:13px;padding:12px 17px;font:inherit;font-weight:850;cursor:pointer;transition:transform .18s,box-shadow .18s,background .18s,opacity .18s;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}
.admin-button:hover:not(:disabled){transform:translateY(-1px)}
.admin-button:disabled{opacity:.55;cursor:not-allowed}
.admin-button-primary{background:linear-gradient(135deg,var(--admin-green),var(--admin-teal));color:#fff;box-shadow:0 10px 24px rgba(8,123,98,.22)}
.admin-button-wide{width:100%;min-height:50px}
.admin-button-muted{background:#edf2f6;color:var(--admin-ink);border:1px solid #d5dee8}
.admin-button-secondary{background:#e9f6f2;color:#075d4c;border:1px solid #bde0d5}
.admin-button-white{background:#fff;color:#075d4c}
.admin-button-glass{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.28)}
.admin-button-danger-soft{background:rgba(88,13,29,.34);color:#fff;border:1px solid rgba(255,255,255,.2)}
.admin-status{min-height:24px;margin:14px 0 0;font-weight:750;color:var(--admin-muted)}
.admin-status.success{color:#087452}.admin-status.error{color:#b32643}.admin-status.warning{color:#9a6200}
.admin-login-note{color:#728096;font-size:.86rem;line-height:1.5;margin:18px 0 0;text-align:center}
.admin-app{display:flex;flex-direction:column;gap:22px}
.admin-hero{position:relative;overflow:hidden;background:linear-gradient(120deg,#075f4c 0%,#087b62 43%,#116a97 100%);color:#fff;border-radius:30px;padding:30px;box-shadow:var(--admin-shadow);display:flex;align-items:flex-end;justify-content:space-between;gap:22px}
.admin-hero:after{content:"";position:absolute;width:340px;height:340px;border-radius:50%;right:-100px;top:-170px;background:rgba(255,255,255,.10)}
.admin-hero>div{position:relative;z-index:1}
.admin-hero h1{font-size:clamp(2rem,4vw,3.6rem);line-height:1;margin:0 0 12px;letter-spacing:-.045em}
.admin-hero p{margin:0;color:rgba(255,255,255,.85)}
.admin-last-updated{font-size:.84rem;margin-top:8px!important;color:rgba(255,255,255,.68)!important}
.admin-hero-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;max-width:650px}
.admin-control-strip{background:#fff;border:1px solid var(--admin-border);border-radius:20px;padding:14px 16px;box-shadow:0 8px 28px rgba(20,45,72,.06);display:flex;align-items:end;justify-content:space-between;gap:16px}
.admin-range-control{display:flex;flex-direction:column;gap:6px;min-width:190px}.admin-range-control label,.admin-select-wrap label{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:var(--admin-muted)}
.admin-control-actions{display:flex;gap:10px;flex-wrap:wrap}
.admin-attention-banner{border-radius:18px;padding:15px 18px;font-weight:750;border:1px solid}
.admin-attention-banner.healthy{background:#e9f8f2;border-color:#b7e4d3;color:#086548}
.admin-attention-banner.attention{background:#fff7df;border-color:#f1d486;color:#835600}
.admin-attention-banner.danger{background:#fff0f2;border-color:#f2b7c2;color:#9d1d39}
.admin-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.admin-kpi-card{position:relative;overflow:hidden;background:#fff;border:1px solid var(--admin-border);border-radius:20px;padding:19px;box-shadow:0 10px 30px rgba(20,45,72,.065);min-height:132px}
.admin-kpi-card:after{content:"";position:absolute;width:85px;height:85px;border-radius:50%;right:-30px;bottom:-35px;background:var(--kpi-soft,#eaf5f1)}
.admin-kpi-label{position:relative;z-index:1;color:var(--admin-muted);font-size:.82rem;font-weight:800;margin:0 0 10px}
.admin-kpi-value{position:relative;z-index:1;font-size:2.1rem;line-height:1;font-weight:950;letter-spacing:-.04em;margin:0;color:var(--kpi-color,var(--admin-ink))}
.admin-kpi-note{position:relative;z-index:1;margin:11px 0 0;color:#7a8798;font-size:.75rem}
.admin-highlight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.admin-highlight-card{border-radius:22px;padding:21px;color:#fff;min-height:155px;box-shadow:0 12px 32px rgba(20,45,72,.11)}
.admin-highlight-card p{font-size:.78rem;text-transform:uppercase;letter-spacing:.11em;font-weight:900;margin:0 0 12px;color:rgba(255,255,255,.76)}
.admin-highlight-card h2{font-size:1.45rem;line-height:1.14;margin:0 0 10px;word-break:break-word}.admin-highlight-card span{font-size:.86rem;color:rgba(255,255,255,.78)}
.admin-highlight-book{background:linear-gradient(135deg,#1769aa,#174e87)}.admin-highlight-subscriber{background:linear-gradient(135deg,#087b62,#0b9582)}.admin-highlight-feedback{background:linear-gradient(135deg,#7550b9,#9a4f96)}
.admin-dashboard-grid{display:grid;gap:16px}.admin-dashboard-grid-wide{grid-template-columns:minmax(0,2fr) minmax(330px,1fr)}.admin-dashboard-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-dashboard-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.admin-panel{background:#fff;border:1px solid var(--admin-border);border-radius:24px;padding:21px;box-shadow:0 10px 34px rgba(20,45,72,.07);min-width:0}
.admin-panel-wide{min-height:420px}.admin-panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.admin-panel-heading-wrap{align-items:end}.admin-panel-heading h2{font-size:1.3rem;line-height:1.15;margin:0;letter-spacing:-.02em}.admin-panel-kicker{margin:0 0 5px;text-transform:uppercase;letter-spacing:.11em;font-size:.69rem;color:var(--admin-green);font-weight:900}.admin-panel-copy{margin:7px 0 0;color:var(--admin-muted);font-size:.87rem;line-height:1.5}
.admin-chart-legend{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}.admin-chart-legend span{font-size:.75rem;color:var(--admin-muted);font-weight:750;display:flex;align-items:center;gap:6px}.admin-chart-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}
.admin-line-chart{width:100%;min-height:320px}.admin-line-chart svg{width:100%;height:320px;display:block;overflow:visible}.admin-chart-grid-line{stroke:#e7edf3;stroke-width:1}.admin-chart-axis-label{fill:#8290a1;font-size:10px}.admin-chart-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.admin-chart-dot{stroke:#fff;stroke-width:2}
.admin-funnel{display:flex;flex-direction:column;gap:14px}.admin-funnel-item{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:8px}.admin-funnel-label{font-size:.85rem;font-weight:800}.admin-funnel-value{font-weight:950}.admin-funnel-track{grid-column:1/-1;height:16px;border-radius:999px;background:#edf2f6;overflow:hidden}.admin-funnel-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--admin-green),var(--admin-blue));min-width:2px}.admin-funnel-rate{grid-column:1/-1;color:var(--admin-muted);font-size:.74rem}
.admin-donut-layout{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:16px;min-height:190px}.admin-donut{width:148px;height:148px;border-radius:50%;position:relative;background:#e8edf2}.admin-donut:after{content:"";position:absolute;inset:28px;background:#fff;border-radius:50%;box-shadow:inset 0 0 0 1px #e9eef3}.admin-donut-center{position:absolute;inset:0;display:grid;place-items:center;text-align:center;z-index:2;font-weight:950;font-size:1.42rem}.admin-donut-center small{display:block;font-size:.66rem;color:var(--admin-muted);font-weight:800;margin-top:2px}.admin-donut-legend{display:flex;flex-direction:column;gap:9px}.admin-donut-legend-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;font-size:.78rem}.admin-donut-legend-row i{width:10px;height:10px;border-radius:3px}.admin-donut-legend-row span{color:var(--admin-muted)}.admin-donut-legend-row strong{font-size:.84rem}
.admin-ranking-list{display:flex;flex-direction:column;gap:10px}.admin-ranking-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border-radius:14px;background:#f5f8fa}.admin-ranking-number{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#e3f2ed;color:#08664f;font-weight:950}.admin-ranking-title{min-width:0;font-size:.82rem;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-ranking-meta{color:var(--admin-muted);font-size:.7rem;margin-top:2px}.admin-ranking-value{font-weight:950}
.admin-horizontal-chart{display:flex;flex-direction:column;gap:13px;margin-top:8px}.admin-book-bar-row{display:grid;grid-template-columns:minmax(190px,260px) minmax(0,1fr) 86px;gap:12px;align-items:center}.admin-book-bar-title{font-size:.8rem;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-book-bar-track{height:18px;background:#edf2f6;border-radius:999px;overflow:hidden;display:flex}.admin-book-bar-view{height:100%;background:var(--admin-blue)}.admin-book-bar-download{height:100%;background:var(--admin-green)}.admin-book-bar-values{text-align:right;font-size:.75rem;color:var(--admin-muted)}
.admin-select-wrap{min-width:260px}.admin-book-drilldown{margin-top:20px;padding:18px;border-radius:18px;background:linear-gradient(135deg,#f3f8fb,#f1faf6);border:1px solid #d8e7e1}.admin-book-drilldown h3{margin:0 0 12px}.admin-drilldown-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.admin-drilldown-stat{background:#fff;border-radius:13px;padding:12px;border:1px solid #e0e8ee}.admin-drilldown-stat span{display:block;font-size:.68rem;color:var(--admin-muted);margin-bottom:4px}.admin-drilldown-stat strong{font-size:1.25rem}
.admin-table-tools{display:grid;grid-template-columns:1fr 170px;gap:10px;margin-bottom:13px}.admin-table-tools-inline{grid-template-columns:minmax(220px,320px) 170px}.admin-table-wrap{overflow:auto;border:1px solid #e1e7ed;border-radius:16px}.admin-table-wrap table{width:100%;border-collapse:collapse;font-size:.78rem}.admin-table-wrap th{position:sticky;top:0;background:#f3f6f9;color:#526175;text-align:left;padding:11px;font-size:.69rem;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.admin-table-wrap td{padding:11px;border-top:1px solid #edf1f4;vertical-align:top;max-width:330px}.admin-table-wrap tr:hover td{background:#fbfcfd}.admin-table-empty{text-align:center;color:var(--admin-muted);padding:22px!important}.admin-pill{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:.68rem;font-weight:900;white-space:nowrap}.admin-pill-good{background:#dff4eb;color:#06664c}.admin-pill-warn{background:#fff0c8;color:#875a00}.admin-pill-bad{background:#ffe1e6;color:#a8223d}.admin-pill-neutral{background:#e9eef3;color:#526175}
.admin-feedback-list{display:flex;flex-direction:column;gap:12px}.admin-feedback-card{border:1px solid #dfe7ee;border-radius:18px;padding:16px;background:#fff}.admin-feedback-card.attention{border-color:#efc777;background:#fffcf4}.admin-feedback-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.admin-feedback-email{font-weight:900;word-break:break-all}.admin-feedback-meta{color:var(--admin-muted);font-size:.74rem;margin-top:4px}.admin-feedback-message{margin:13px 0;line-height:1.55;color:#27364b;white-space:pre-wrap}.admin-feedback-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-action-link,.admin-action-button{border:0;border-radius:10px;padding:8px 11px;font:inherit;font-size:.73rem;font-weight:900;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}.admin-action-link{background:#e6f5f0;color:#08634f}.admin-action-button{background:#edf1f5;color:#314256}.admin-action-button.resolve{background:#e9e4f7;color:#5c3d96}.admin-action-button.reopen{background:#fff0ce;color:#805600}
.admin-system-summary{padding:15px;border-radius:15px;margin-bottom:15px}.admin-system-summary.healthy{background:#e5f6ef;color:#076249;border:1px solid #b8e0d2}.admin-system-summary.attention{background:#fff4d6;color:#7d5500;border:1px solid #efd185}.admin-system-summary ul{margin:8px 0 0;padding-left:20px}
.admin-dashboard-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--admin-muted);font-size:.79rem;padding:2px 4px 16px}.admin-dashboard-footer a{color:var(--admin-green);font-weight:850}
@media(max-width:1180px){.admin-kpi-grid{grid-template-columns:repeat(3,1fr)}.admin-dashboard-grid-wide{grid-template-columns:1fr}.admin-dashboard-grid-three{grid-template-columns:1fr 1fr}.admin-drilldown-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:780px){.admin-dashboard-shell{padding:12px}.admin-login-wrap{min-height:calc(100vh - 24px)}.admin-login-card{padding:26px;border-radius:24px}.admin-hero{padding:24px;display:block}.admin-hero-actions{justify-content:flex-start;margin-top:20px}.admin-control-strip{align-items:stretch;flex-direction:column}.admin-control-actions{display:grid;grid-template-columns:1fr 1fr}.admin-kpi-grid{grid-template-columns:1fr 1fr}.admin-highlight-grid,.admin-dashboard-grid-three,.admin-dashboard-grid-two{grid-template-columns:1fr}.admin-panel-heading-wrap{align-items:stretch;flex-direction:column}.admin-select-wrap{min-width:0}.admin-donut-layout{grid-template-columns:130px 1fr}.admin-donut{width:128px;height:128px}.admin-book-bar-row{grid-template-columns:130px minmax(0,1fr);gap:8px}.admin-book-bar-values{grid-column:2;text-align:left}.admin-drilldown-grid{grid-template-columns:1fr 1fr}.admin-table-tools,.admin-table-tools-inline{grid-template-columns:1fr}.admin-dashboard-footer{flex-direction:column;align-items:flex-start}}
@media(max-width:480px){.admin-kpi-grid{grid-template-columns:1fr}.admin-secret-row{grid-template-columns:1fr}.admin-control-actions{grid-template-columns:1fr}.admin-hero-actions{display:grid;grid-template-columns:1fr 1fr}.admin-hero-actions .admin-button{width:100%}.admin-donut-layout{grid-template-columns:1fr;justify-items:center}.admin-donut-legend{width:100%}.admin-drilldown-grid{grid-template-columns:1fr}.admin-feedback-head{flex-direction:column}.admin-line-chart svg{height:270px}.admin-line-chart{min-height:270px}}
@media(prefers-reduced-motion:reduce){.admin-button{transition:none}.admin-button:hover:not(:disabled){transform:none}}


/* Stage 5.7.5 — brighter analytics, clear comparisons, interactive legends, and XLSX exports */
:root{--admin-ink:#172033;--admin-muted:#667085;--admin-border:#dbe6f2;--admin-green:#10b981;--admin-teal:#06b6d4;--admin-blue:#2563eb;--admin-violet:#8b5cf6;--admin-amber:#f59e0b;--admin-rose:#ec4899}
.admin-dashboard-body{background:radial-gradient(circle at 8% 8%,#dff8ff 0,transparent 26%),radial-gradient(circle at 92% 12%,#fbe4ff 0,transparent 24%),radial-gradient(circle at 18% 92%,#e7ffe8 0,transparent 28%),linear-gradient(145deg,#f8fbff 0%,#fff8fc 52%,#f6fff9 100%)}
.admin-hero{background:linear-gradient(120deg,#2563eb 0%,#7c3aed 46%,#ec4899 100%);box-shadow:0 22px 60px rgba(91,70,220,.22)}
.admin-control-strip,.admin-panel,.admin-kpi-card{background:rgba(255,255,255,.94);border-color:#dbe6f2;box-shadow:0 14px 38px rgba(51,65,85,.09)}
.admin-highlight-book{background:linear-gradient(135deg,#2563eb,#06b6d4)}.admin-highlight-subscriber{background:linear-gradient(135deg,#10b981,#22c55e)}.admin-highlight-feedback{background:linear-gradient(135deg,#8b5cf6,#ec4899)}
.admin-button-primary{background:linear-gradient(135deg,#2563eb,#8b5cf6)}.admin-button-secondary{background:linear-gradient(135deg,#ecfeff,#f3e8ff);color:#4c1d95;border-color:#c4b5fd}
.admin-kpi-card{min-height:168px}.admin-kpi-clickable{cursor:pointer}.admin-kpi-clickable:hover{transform:translateY(-3px);box-shadow:0 20px 45px rgba(79,70,229,.16)}.admin-kpi-link{display:inline-block;position:relative;z-index:1;margin-top:8px;color:var(--kpi-color);font-size:.72rem;font-weight:900}.admin-kpi-split,.admin-kpi-chips{position:relative;z-index:1;display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.admin-kpi-split span,.admin-kpi-chips span{display:flex;align-items:baseline;gap:4px;padding:5px 8px;border-radius:999px;background:var(--kpi-soft);font-size:.67rem;color:#526175}.admin-kpi-split strong,.admin-kpi-chips strong{color:var(--kpi-color);font-size:.78rem}
.admin-period-strip{display:grid;grid-template-columns:minmax(230px,1.3fr) repeat(5,minmax(120px,1fr));gap:10px;padding:14px;border-radius:22px;background:linear-gradient(90deg,#eff6ff,#faf5ff,#fff7ed,#ecfdf5);border:1px solid #dbeafe}.admin-period-heading,.admin-period-item{background:rgba(255,255,255,.82);border-radius:15px;padding:12px}.admin-period-heading strong,.admin-period-item strong{display:block;font-size:1.15rem}.admin-period-heading span,.admin-period-item span{font-size:.72rem;color:var(--admin-muted)}
.admin-chart-legend{gap:8px}.admin-legend-toggle{appearance:none;border:1px solid #dbe4ee;background:#fff;border-radius:999px;padding:7px 10px;font:inherit;font-size:.73rem;color:#334155;font-weight:850;display:flex;align-items:center;gap:6px;cursor:pointer}.admin-legend-toggle i{width:10px;height:10px;border-radius:50%}.admin-legend-toggle.inactive{opacity:.4;text-decoration:line-through}.admin-legend-toggle:hover{box-shadow:0 6px 18px rgba(37,99,235,.12)}
.admin-source-bars{display:flex;flex-direction:column;gap:9px;margin-top:15px}.admin-source-bar-row{display:grid;grid-template-columns:minmax(100px,1fr) 2fr auto;gap:9px;align-items:center;font-size:.74rem}.admin-source-track{height:12px;background:#eef2f7;border-radius:999px;overflow:hidden}.admin-source-track div{height:100%;border-radius:999px}.admin-source-bar-row strong{font-size:.8rem}
.admin-comparison-legend{display:flex;gap:18px;justify-content:flex-end;margin:-6px 0 12px;font-size:.75rem;font-weight:800;color:#64748b}.admin-comparison-legend span{display:flex;align-items:center;gap:6px}.admin-comparison-legend i{width:14px;height:8px;border-radius:999px}.admin-comparison-legend i.views{background:#2563eb}.admin-comparison-legend i.downloads{background:#10b981}
.admin-horizontal-chart{gap:16px}.admin-book-compare-row{display:grid;grid-template-columns:minmax(190px,280px) minmax(0,1fr);gap:14px;align-items:center;padding:12px;border-radius:16px;background:linear-gradient(90deg,#f8fbff,#fff)}.admin-book-metrics{display:grid;gap:7px}.admin-book-metric{display:grid;grid-template-columns:86px minmax(0,1fr) 54px;gap:9px;align-items:center;font-size:.72rem}.admin-book-single-track{height:12px;border-radius:999px;background:#eaf0f6;overflow:hidden}.admin-book-single-track>div{height:100%;border-radius:999px}.admin-book-metric strong{text-align:right}.admin-book-bar-view{background:linear-gradient(90deg,#2563eb,#06b6d4)}.admin-book-bar-download{background:linear-gradient(90deg,#10b981,#84cc16)}
.admin-drilldown-grid{grid-template-columns:repeat(4,1fr)}.admin-mini-comparison{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:16px}.admin-mini-comparison>div{display:grid;grid-template-columns:150px 1fr 50px;gap:9px;align-items:center;padding:10px;border-radius:13px;background:#fff}.admin-mini-comparison span{font-size:.72rem;color:#64748b}.admin-mini-track{height:12px;background:#edf2f7;border-radius:999px;overflow:hidden}.admin-mini-track i{display:block;height:100%;border-radius:999px}.admin-mini-comparison strong{text-align:right}
.admin-workflow-help{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}.admin-workflow-help div{padding:10px;border-radius:13px;background:linear-gradient(135deg,#eff6ff,#faf5ff);border:1px solid #e0e7ff}.admin-workflow-help strong{display:block;color:#5b21b6;font-size:.77rem;margin-bottom:4px}.admin-workflow-help span{display:block;color:#64748b;font-size:.7rem;line-height:1.4}.admin-cell-detail{margin-top:5px;color:#b42318;font-size:.7rem;line-height:1.4}
.admin-feedback-card.attention{border-color:#f59e0b;background:linear-gradient(135deg,#fff9e9,#fff)}
@media(max-width:1180px){.admin-period-strip{grid-template-columns:repeat(3,1fr)}.admin-period-heading{grid-column:1/-1}.admin-workflow-help{grid-template-columns:1fr 1fr}}
@media(max-width:780px){.admin-period-strip{grid-template-columns:1fr 1fr}.admin-period-heading{grid-column:1/-1}.admin-book-compare-row{grid-template-columns:1fr}.admin-mini-comparison{grid-template-columns:1fr}.admin-workflow-help{grid-template-columns:1fr}.admin-drilldown-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.admin-period-strip{grid-template-columns:1fr}.admin-book-metric{grid-template-columns:78px minmax(0,1fr) 44px}.admin-mini-comparison>div{grid-template-columns:110px 1fr 40px}.admin-drilldown-grid{grid-template-columns:1fr}}

/* Stage 5.7.6 — compact green/blue admin header, colored chart controls,
   anonymous unique-visitor analytics, responsive reader pages, and Resend replies. */
.admin-dashboard-body{
  background:
    radial-gradient(circle at 8% 5%,#dff7f1 0,transparent 25%),
    radial-gradient(circle at 95% 10%,#e2f3ff 0,transparent 24%),
    linear-gradient(145deg,#f7fcfa 0%,#f7fbff 52%,#fffdf7 100%);
}
.admin-hero{
  background:linear-gradient(120deg,#08765f 0%,#0b8a79 45%,#146f9b 100%);
  padding:22px 26px;
  border-radius:24px;
  align-items:center;
  box-shadow:0 18px 46px rgba(8,118,95,.18);
}
.admin-hero:after{width:260px;height:260px;right:-86px;top:-150px;background:rgba(255,255,255,.09)}
.admin-hero h1{font-size:clamp(1.8rem,3.2vw,3rem);margin-bottom:8px;max-width:720px}
.admin-hero p{font-size:.93rem}.admin-last-updated{margin-top:7px!important;font-size:.76rem!important}
.admin-hero-actions{max-width:720px;gap:8px}.admin-hero-actions .admin-button{min-height:43px;padding:10px 14px;font-size:.76rem}
.admin-button-primary{background:linear-gradient(135deg,#08765f,#146f9b)}
.admin-button-secondary{background:linear-gradient(135deg,#e8faf4,#e7f4ff);color:#075b50;border-color:#a7dcd0}
.admin-highlight-feedback{background:linear-gradient(135deg,#d45f2d,#db2777)}
.admin-kpi-card{min-height:162px}
.admin-legend-toggle{
  color:var(--series-color);
  border-color:color-mix(in srgb,var(--series-color) 34%,white);
  background:var(--series-soft);
  box-shadow:0 5px 14px color-mix(in srgb,var(--series-color) 12%,transparent);
}
.admin-legend-toggle i{background:var(--series-color);width:11px;height:11px}
.admin-legend-toggle.inactive{background:#f2f4f7;border-color:#d8dee7;color:#7b8796;opacity:.62;text-decoration:none;box-shadow:none}
.admin-legend-toggle.inactive i{background:#a7b0bd}
.admin-period-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center}
.admin-period-item>div{padding:6px 7px;border-radius:10px;background:#fff}
.admin-period-item>div:nth-child(1){border-left:4px solid #2563eb}.admin-period-item>div:nth-child(2){border-left:4px solid #0891b2}
.admin-period-item>div strong{font-size:1rem}.admin-period-item>div span{display:block;font-size:.64rem;color:#667085}
.admin-period-item small{grid-column:1/-1;color:#4b596c;font-size:.68rem;font-weight:850}
.admin-action-link{font:inherit;border:0;cursor:pointer;background:linear-gradient(135deg,#dff8ef,#dff4ff);color:#075f55}
.admin-feedback-reply-meta{margin:-2px 0 12px;padding:9px 11px;border-radius:11px;background:#eef8ff;color:#315d76;font-size:.72rem;font-weight:750}
.admin-modal{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:18px}
.admin-modal.hidden{display:none}.admin-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.56);backdrop-filter:blur(4px)}
.admin-modal-card{position:relative;width:min(720px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border:1px solid #dbe6f2;border-radius:24px;padding:24px;box-shadow:0 32px 90px rgba(15,23,42,.32)}
.admin-modal-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.admin-modal-heading h2{margin:2px 0 0;font-size:1.65rem;color:#172033}
.admin-modal-close{width:40px;height:40px;border:0;border-radius:12px;background:#eef3f7;color:#324154;font-size:1.6rem;cursor:pointer}
.admin-modal-card input,.admin-modal-card textarea{margin-bottom:14px}.admin-modal-card textarea{resize:vertical;min-height:180px}
.admin-original-message{padding:14px;border-radius:14px;background:#f5f8fb;border:1px solid #e2e8f0;margin:0 0 14px}.admin-original-message strong{display:block;color:#385066;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}.admin-original-message p{margin:0;white-space:pre-wrap;color:#4b596c;line-height:1.5}
.admin-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}.admin-modal-open{overflow:hidden}
/* Keep the generous desktop reader layout, but stack cleanly on phones and tablets. */
.resource-card{width:min(1380px,100%)}
@media(max-width:980px){.resource-card{width:min(860px,100%);grid-template-columns:1fr}.resource-cover{max-width:430px}}
@media(max-width:620px){
  .resource-shell{overflow-x:hidden;padding:10px 8px}
  .resource-card{width:100%;padding:16px;gap:19px;border-radius:18px}
  .resource-cover-panel{padding:8px}.resource-cover{width:min(100%,310px);max-width:310px}
  .resource-content{min-width:0}.resource-title{font-size:clamp(1.75rem,9vw,2.2rem)}.resource-book-title{font-size:clamp(1.3rem,7vw,1.65rem)}
  .resource-actions .button{width:100%;white-space:normal}
  .admin-modal{padding:8px;place-items:end center}.admin-modal-card{border-radius:20px 20px 0 0;padding:18px;max-height:92vh;width:100%}.admin-modal-actions{display:grid;grid-template-columns:1fr}.admin-modal-actions .admin-button{width:100%}
}
@media(max-width:780px){.admin-hero{padding:20px}.admin-hero-actions{margin-top:16px}.admin-hero h1{font-size:2rem}}

/* Stage 5.7.7 — restore the previously approved compact reader-resource size on desktop.
   Tablet and mobile responsiveness from Stage 5.7.6 remains unchanged. */
@media (min-width:981px){
  .resource-card{
    width:min(1120px,100%);
    grid-template-columns:minmax(330px,370px) minmax(0,1fr);
    gap:42px;
    padding:27px 32px;
    border-radius:21px;
  }
  .resource-cover-panel{padding:10px;border-radius:16px}
  .resource-cover{max-width:350px;max-height:570px;border-radius:10px}
  .resource-content{max-width:620px}
}

/* Stage 5.8 — internal book detail pages before Amazon. */
.book-detail-body { background: #f7f9fb; }
.book-detail-main { min-height: 70vh; }
.book-detail-hero {
  padding: 58px 0 68px;
  background:
    radial-gradient(circle at 85% 18%, rgba(4,120,87,.14), transparent 34%),
    linear-gradient(145deg, #f8fbfa, #eef3f6);
  border-bottom: 1px solid #dfe7ee;
}
.book-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
}
.book-detail-cover-wrap {
  padding: 16px;
  border: 1px solid #d7e1e8;
  border-radius: 26px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 24px 58px rgba(15,23,42,.14);
}
.book-detail-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 17px;
  background: #e2e8f0;
  box-shadow: 0 12px 28px rgba(15,23,42,.18);
}
.book-detail-kicker,
.book-detail-section-label {
  margin: 0 0 12px;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .76rem;
  font-weight: 900;
}
.book-detail-copy h1 {
  margin: 0;
  max-width: 820px;
  color: #07111f;
  font-size: clamp(2.45rem, 5.7vw, 5.2rem);
  line-height: 1.01;
  letter-spacing: -.045em;
}
.book-detail-tagline {
  max-width: 760px;
  margin: 24px 0 0;
  color: #3d4b5f;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.65;
}
.book-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.book-amazon-button { background: #111827; }
.book-amazon-button:hover,
.book-amazon-button:focus { background: #020617; }
.book-detail-section { padding: 76px 0; }
.book-detail-section-soft { background: #edf2f5; }
.book-detail-two-column { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.book-detail-panel {
  padding: clamp(25px, 4vw, 40px);
  border: 1px solid #d8e1e8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15,23,42,.07);
}
.book-problem-panel { border-top: 5px solid #047857; }
.book-detail-panel h2,
.book-detail-heading h2,
.book-tools-grid h2,
.book-final-cta h2 {
  margin: 0 0 16px;
  color: #07111f;
  font-size: clamp(1.7rem, 3.5vw, 2.75rem);
  letter-spacing: -.025em;
}
.book-detail-panel > p:last-child { margin-bottom: 0; color: #445166; font-size: 1.05rem; }
.book-detail-check-list,
.book-tool-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 13px; }
.book-detail-check-list li,
.book-tool-list li { position: relative; padding-left: 32px; color: #334155; }
.book-detail-check-list li::before,
.book-tool-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-size: .8rem;
  font-weight: 900;
}
.book-detail-heading { max-width: 760px; margin-bottom: 30px; }
.book-detail-heading > p:last-child { color: var(--muted); font-size: 1.03rem; }
.book-learning-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.book-learning-card {
  min-height: 210px;
  padding: 26px;
  border: 1px solid #dce4eb;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.065);
}
.book-learning-card span { display: block; margin-bottom: 34px; color: #0f8f68; font-size: 1.75rem; font-weight: 900; }
.book-learning-card p { margin: 0; color: #263449; font-weight: 720; line-height: 1.55; }
.book-detail-section-dark { background: #07111f; color: #dbe5ef; }
.book-detail-section-label-light { color: #6ee7b7; }
.book-tools-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr); gap: 52px; align-items: start; }
.book-tools-grid h2 { color: #fff; }
.book-tools-intro { color: #b9c6d5; max-width: 680px; }
.book-tool-list li { color: #e5edf5; }
.book-resource-cards { display: grid; gap: 15px; }
.book-resource-card {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 24px 58px 24px 24px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  color: #fff;
  background: rgba(255,255,255,.075);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.book-resource-card:hover,
.book-resource-card:focus { transform: translateY(-3px); background: rgba(255,255,255,.12); border-color: rgba(110,231,183,.55); }
.book-resource-card span { color: #6ee7b7; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 900; }
.book-resource-card strong { font-size: 1.18rem; }
.book-resource-card small { color: #b9c6d5; }
.book-resource-card b { position: absolute; right: 23px; top: 50%; transform: translateY(-50%); font-size: 1.45rem; }
.book-final-cta { background: #f7f9fb; }
.book-final-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid #d7e1e8;
  border-radius: 27px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15,23,42,.09);
}
.book-final-cta-card p:last-child { max-width: 720px; margin-bottom: 0; color: var(--muted); }

@media (max-width: 900px) {
  .book-detail-hero-grid { grid-template-columns: minmax(180px, 270px) minmax(0, 1fr); gap: 32px; }
  .book-learning-grid { grid-template-columns: 1fr; }
  .book-learning-card { min-height: 0; }
  .book-learning-card span { margin-bottom: 16px; }
  .book-tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .book-detail-hero { padding: 34px 0 48px; }
  .book-detail-hero-grid,
  .book-detail-two-column { grid-template-columns: 1fr; }
  .book-detail-cover-wrap { width: min(270px, 78vw); margin: 0 auto; }
  .book-detail-copy { text-align: center; }
  .book-detail-copy h1 { font-size: clamp(2.15rem, 12vw, 3.55rem); }
  .book-detail-actions { justify-content: center; }
  .book-final-cta-card { align-items: stretch; flex-direction: column; }
  .book-final-cta-card .button { width: 100%; }
}

.admin-book-bar-click{background:linear-gradient(90deg,#d97706,#facc15)}


/* Stage 5.8.1 Amazon Associates disclosure */
.amazon-link-note {
  margin: 10px 0 0;
  color: #64748b;
  font-size: .82rem;
  line-height: 1.45;
}
.book-detail-copy .amazon-link-note { color: #526176; }
.amazon-associate-disclosure {
  padding: 0 0 22px;
  color: #aeb9c7;
  font-size: .78rem;
  line-height: 1.45;
}


/* Stage 5.8.3 / 5.9.2 — explicit categories + color-coded Dollar by Dollar series */
.series-section {
  padding: 48px 0;
  background: linear-gradient(180deg, #fffdf8 0%, #f7faf9 100%);
  border-top: 1px solid #e1ebe7;
  border-bottom: 1px solid #e1ebe7;
}
.series-heading { max-width: 860px; margin-bottom: 24px; }
.series-heading h2 { margin: 5px 0 8px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.02; letter-spacing: -.045em; color: #0c1628; }
.series-heading > p:last-child { margin: 0; color: #59687a; line-height: 1.65; }
.series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.series-card {
  --series-accent: #2563eb;
  --series-soft: #eff6ff;
  --series-dark: #1d4ed8;
  width: 100%; min-height: 152px; padding: 22px; display: grid;
  grid-template-columns: auto 1fr auto; gap: 16px; align-items: start;
  text-align: left; border: 2px solid color-mix(in srgb, var(--series-accent) 24%, white); border-radius: 22px;
  background: rgba(255,255,255,.95); box-shadow: 0 16px 34px rgba(22,52,44,.07);
  color: #10203a; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.series-financial-freedom-files { --series-accent: #2563eb; --series-soft: #eff6ff; --series-dark: #1d4ed8; }
.series-smart-saver-saturday { --series-accent: #ea580c; --series-soft: #fff7ed; --series-dark: #c2410c; }
.series-money-101-mondays { --series-accent: #16a34a; --series-soft: #f0fdf4; --series-dark: #15803d; }
.series-card:hover, .series-card:focus-visible { transform: translateY(-3px); border-color: var(--series-accent); box-shadow: 0 20px 42px color-mix(in srgb, var(--series-accent) 18%, transparent); outline: none; }
.series-card.active { border-color: var(--series-accent); background: var(--series-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--series-accent) 16%, transparent), 0 20px 42px color-mix(in srgb, var(--series-accent) 16%, transparent); }
.series-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--series-accent); color: #fff; font-weight: 900; font-size: .82rem; }
.series-card strong, .series-card small, .series-card em { display: block; }
.series-card strong { font-size: 1.12rem; line-height: 1.2; }
.series-card small { margin-top: 5px; color: var(--series-dark); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.series-card em { margin-top: 11px; color: #607083; font-size: .9rem; line-height: 1.45; font-style: normal; }
.series-arrow { color: var(--series-dark); font-size: 1.3rem; font-weight: 900; align-self: center; }
.book-taxonomy { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.book-series { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: .72rem; line-height: 1; font-weight: 900; }
.book-series-financial-freedom-files { background: #dbeafe; color: #1d4ed8; }
.book-series-smart-saver-saturday { background: #ffedd5; color: #c2410c; }
.book-series-money-101-mondays { background: #dcfce7; color: #15803d; }
@media (max-width: 900px) { .series-grid { grid-template-columns: 1fr; } .series-card { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .series-card { transition: none !important; } }

/* Stage 5.9: optional post-signup interest step */
/* Stage 5.9.1: high-visibility optional reader-interest step */
.interest-step {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 20px;
  border: 2px solid #6d28d9;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff8e7 0%, #eef9ff 48%, #f5efff 100%);
  box-shadow: 0 18px 42px rgba(79, 50, 145, .18);
}
.interest-step::before {
  content: "PERSONALIZE YOUR RESOURCES";
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #5b21b6;
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.interest-step-heading { display: grid; gap: 4px; margin-bottom: 14px; }
.interest-step-heading strong { color: #17233b; font-size: 1.08rem; }
.interest-step-heading span { color: #4b5563; font-size: .9rem; line-height: 1.5; }
.interest-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.interest-options button {
  --interest-accent: #0f766e;
  --interest-soft: #ecfdf5;
  min-height: 54px;
  padding: 12px 14px;
  border: 2px solid color-mix(in srgb, var(--interest-accent) 48%, white);
  border-left: 8px solid var(--interest-accent);
  border-radius: 15px;
  background: var(--interest-soft);
  color: #17233b;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .07);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, filter .16s ease;
}
.interest-options button:nth-child(1) { --interest-accent: #c2410c; --interest-soft: #fff1e7; }
.interest-options button:nth-child(2) { --interest-accent: #1d4ed8; --interest-soft: #eaf1ff; }
.interest-options button:nth-child(3) { --interest-accent: #be123c; --interest-soft: #ffeaf0; }
.interest-options button:nth-child(4) { --interest-accent: #047857; --interest-soft: #e7f8f1; }
.interest-options button:nth-child(5) { --interest-accent: #6d28d9; --interest-soft: #f1eaff; }
.interest-options button:hover,
.interest-options button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .14);
  filter: saturate(1.12);
  outline: 3px solid color-mix(in srgb, var(--interest-accent) 24%, transparent);
  outline-offset: 2px;
}
.interest-options button[aria-pressed="true"] {
  border-color: var(--interest-accent);
  background: var(--interest-accent);
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--interest-accent) 28%, transparent);
}
.interest-options button:disabled { opacity: .68; cursor: wait; transform: none; }
.interest-step-footer { display: flex; align-items: center; gap: 12px; margin-top: 13px; min-height: 28px; }
.interest-skip { border: 0; padding: 5px 1px; background: transparent; color: #374151; text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 700; }
.interest-status { margin: 0; font-size: .9rem; font-weight: 750; }
.interest-step.interest-complete { border-color: #047857; background: #ecfdf5; }
.interest-step.interest-complete::before { content: "PREFERENCE SAVED"; background: #047857; }
.interest-step.interest-complete .interest-options,
.interest-step.interest-complete .interest-skip { display: none; }

/* Stage 5.9.1: explicit interest directory in the protected dashboard */
.admin-interest-directory { border: 2px solid #c4b5fd; background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,243,255,.96)); }
.admin-interest-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 5px 0 16px; }
.admin-interest-card {
  --interest-card: #5b21b6;
  --interest-card-soft: #f3e8ff;
  min-height: 94px;
  padding: 13px;
  border: 2px solid color-mix(in srgb, var(--interest-card) 34%, white);
  border-radius: 17px;
  background: var(--interest-card-soft);
  color: #172033;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.admin-interest-card:nth-child(1) { --interest-card: #c2410c; --interest-card-soft: #fff1e7; }
.admin-interest-card:nth-child(2) { --interest-card: #1d4ed8; --interest-card-soft: #eaf1ff; }
.admin-interest-card:nth-child(3) { --interest-card: #be123c; --interest-card-soft: #ffeaf0; }
.admin-interest-card:nth-child(4) { --interest-card: #047857; --interest-card-soft: #e7f8f1; }
.admin-interest-card:nth-child(5) { --interest-card: #6d28d9; --interest-card-soft: #f1eaff; }
.admin-interest-card strong { display: block; margin-bottom: 4px; color: var(--interest-card); font-size: 1.55rem; line-height: 1; }
.admin-interest-card span { display: block; font-size: .78rem; font-weight: 850; line-height: 1.35; }
.admin-interest-card:hover,.admin-interest-card:focus-visible,.admin-interest-card.active { transform: translateY(-2px); border-color: var(--interest-card); box-shadow: 0 10px 22px rgba(30,41,59,.12); outline: none; }
.admin-interest-card.active { background: var(--interest-card); color: #fff; }
.admin-interest-card.active strong { color: #fff; }
.admin-interest-directory-summary { margin: 0 0 11px; color: #334155; font-size: .88rem; font-weight: 750; }
.admin-interest-sync-note { margin-top: 11px; padding: 11px 13px; border-radius: 14px; background: #fff7df; color: #664d03; font-size: .8rem; line-height: 1.5; }
@media (max-width: 1050px) { .admin-interest-cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 640px) {
  .interest-options { grid-template-columns: 1fr; }
  .interest-step { padding: 16px; }
  .interest-step-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
  .admin-interest-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .admin-interest-cards { grid-template-columns: 1fr; } }

/* Stage 5.9.2 — consistent series colors on cards, book pages, and toolkit pages */
body[data-series="financial-freedom-files"] {
  --series-page-accent: #2563eb;
  --series-page-dark: #1d4ed8;
  --series-page-soft: #eff6ff;
  --series-page-border: #bfdbfe;
}
body[data-series="smart-saver-saturday"] {
  --series-page-accent: #ea580c;
  --series-page-dark: #c2410c;
  --series-page-soft: #fff7ed;
  --series-page-border: #fed7aa;
}
body[data-series="money-101-mondays"] {
  --series-page-accent: #16a34a;
  --series-page-dark: #15803d;
  --series-page-soft: #f0fdf4;
  --series-page-border: #bbf7d0;
}
body[data-series] .book-detail-hero {
  background: linear-gradient(135deg, var(--series-page-soft), #ffffff 70%);
  border-bottom: 4px solid var(--series-page-accent);
}
body[data-series] .book-series-banner {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 11px;
  border: 1px solid var(--series-page-border);
  border-radius: 999px;
  background: var(--series-page-soft);
  color: var(--series-page-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}
body[data-series] .book-detail-kicker,
body[data-series] .book-detail-section-label,
body[data-series] .resource-book-label { color: var(--series-page-dark); }
body[data-series] .book-amazon-button,
body[data-series] .resource-download-button {
  background: var(--series-page-accent);
}
body[data-series] .book-amazon-button:hover,
body[data-series] .book-amazon-button:focus,
body[data-series] .resource-download-button:hover,
body[data-series] .resource-download-button:focus {
  background: var(--series-page-dark);
}
body[data-series] .resource-shell {
  background: linear-gradient(145deg, var(--series-page-soft), #f8fafc 58%, #ffffff);
}
body[data-series] .resource-card {
  border: 2px solid var(--series-page-border);
  box-shadow: 0 24px 65px color-mix(in srgb, var(--series-page-accent) 14%, transparent);
}
body[data-series] .resource-badge {
  background: var(--series-page-soft);
  color: var(--series-page-dark);
  border-color: var(--series-page-border);
}
body[data-series] .resource-summary {
  background: var(--series-page-soft);
  color: #243247;
  border-color: var(--series-page-border);
}
body[data-series] .resource-amazon-link { color: var(--series-page-dark); }
body[data-series] .book-resource-card span { color: color-mix(in srgb, var(--series-page-accent) 72%, white); }

/* The required Amazon Associates statement stays in the footer, but quietly. */
.amazon-associate-disclosure {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 8px 0 13px;
  color: #667085;
  font-size: .74rem;
  line-height: 1.35;
  letter-spacing: .005em;
}
.amazon-associate-disclosure span { opacity: .9; }
.affiliate-disclosure-page { padding: 64px 0 90px; background: #f8fafc; min-height: 70vh; }
.affiliate-disclosure-card { max-width: 820px; padding: clamp(26px, 5vw, 48px); border: 1px solid #dbe3ea; border-radius: 24px; background: #fff; box-shadow: 0 18px 45px rgba(15,23,42,.08); }
.affiliate-disclosure-card h1 { margin-top: 0; color: #0f172a; font-size: clamp(2rem,5vw,3.5rem); }
.affiliate-disclosure-card p { color: #475569; line-height: 1.75; }
.affiliate-disclosure-card .required-statement { padding: 16px 18px; border-left: 5px solid #2563eb; border-radius: 12px; background: #eff6ff; color: #1e3a8a; font-weight: 800; }
.resource-mini-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding: 8px 14px 18px; color: #8491a2; font-size: .68rem; line-height: 1.35; background: #f8fafc; }
.resource-mini-footer a { color: #64748b; }

/* =========================================================
   Stage 5.10 — mobile, layout stability, and performance
   ========================================================= */
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { max-width: 100%; overflow-x: clip; }
img { max-width: 100%; }
main section[id] { scroll-margin-top: 78px; }
.modern-book-card,
.modern-book-info,
.challenge-card-copy,
.series-card > span,
.resource-content,
.book-detail-copy { min-width: 0; }
.modern-book-cover,
.book-detail-cover,
.resource-cover,
.stacked-cover img { background: #e8edf2; }
.modern-book-cover,
.book-detail-cover,
.resource-cover { aspect-ratio: 2 / 3; }
.challenge-section,
.series-section,
.library-section { content-visibility: auto; contain-intrinsic-size: 1px 760px; }
.signup-button,
.load-more-button,
.challenge-card,
.series-card,
.book-amazon-button,
.resource-download-button { touch-action: manipulation; }

/* Keep text usable and prevent unusually long titles/URLs from widening phones. */
.modern-book-info h3,
.book-detail-title,
.resource-book-title,
.feedback-dialog,
.admin-table td { overflow-wrap: anywhere; }

/* Footer disclosure remains present but is not visually dominant. */
.amazon-associate-disclosure { border-top: 1px solid #eef2f6; justify-content: flex-start; }

@media (max-width: 760px) {
  .hub-nav { gap: 10px; }
  .hub-brand span:last-child { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-feedback { min-width: 44px; min-height: 44px; }
  .signup-copy h1 { font-size: clamp(2.35rem, 10vw, 3.35rem); }
  .signup-hero { padding-top: 38px; }
  .challenge-card,
  .series-card { width: 100%; }
  .floating-feedback { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .modern-footer { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
}

@media (max-width: 430px) {
  .container { width: min(100% - 28px, 1160px); }
  .modern-books-grid,
  .library-loading { grid-template-columns: 1fr; gap: 24px; }
  .modern-cover-link { width: min(310px, 100%); margin-inline: auto; }
  .modern-book-info { width: min(310px, 100%); margin-inline: auto; }
  .modern-book-info h3 { font-size: 1.05rem; }
  .book-link { font-size: .92rem; }
  .featured-stage { min-height: 370px; padding-inline: 14px; }
  .cover-stack { height: 260px; }
  .stacked-cover,
  .cover-skeleton { width: 145px; }
  .interest-step { border-radius: 18px; }
  .feedback-dialog { width: calc(100% - 16px); }
}

@media (prefers-reduced-data: reduce) {
  .challenge-section,
  .series-section,
  .library-section { content-visibility: auto; }
  .modern-cover-link::after { display: none; }
  .modern-book-cover { transition: none !important; }
}

/* Stage 5.10C — written email consultations */
.nav-consultation { color: #0f766e; text-decoration: none; font-weight: 800; padding: 9px 12px; border-radius: 999px; background: #ecfdf5; border: 1px solid #a7f3d0; }
.consultation-promo-section { padding: 28px clamp(16px, 4vw, 48px); content-visibility: auto; contain-intrinsic-size: 420px; }
.consultation-promo-card { max-width: 1120px; margin: 0 auto; padding: clamp(24px, 4vw, 42px); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .65fr); gap: 30px; align-items: center; border-radius: 28px; border: 1px solid #99f6e4; background: linear-gradient(135deg,#f0fdfa 0%,#ecfeff 50%,#eff6ff 100%); box-shadow: 0 22px 50px rgba(15,118,110,.12); }
.consultation-promo-card h2 { margin: 6px 0 12px; color: #0f172a; font-size: clamp(1.75rem,3vw,2.55rem); line-height: 1.08; }
.consultation-promo-card p { color: #334155; font-size: 1.04rem; line-height: 1.7; }
.consultation-promo-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.consultation-promo-points span { background: #fff; color: #0f766e; border: 1px solid #ccfbf1; border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: .86rem; }
.consultation-promo-action { display: grid; gap: 12px; }
.consultation-promo-button { display: block; text-align: center; padding: 16px 18px; border-radius: 15px; background: #0f766e; color: #fff; text-decoration: none; font-weight: 900; box-shadow: 0 12px 25px rgba(15,118,110,.23); }
.consultation-promo-button:hover,.consultation-promo-button:focus { background: #115e59; transform: translateY(-1px); }
.consultation-promo-action small { color: #475569; line-height: 1.5; text-align: center; }
.consultation-page { background: linear-gradient(180deg,#f8fafc,#ecfeff 55%,#fff); color: #0f172a; }
.consultation-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 70px; }
.consultation-hero { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.65fr); gap: 28px; align-items: start; }
.consultation-hero h1 { margin: 6px 0 16px; font-size: clamp(2.25rem,5vw,4.4rem); line-height: .98; letter-spacing: -.045em; color: #0f172a; }
.consultation-lead { font-size: clamp(1.05rem,1.6vw,1.25rem); line-height: 1.75; color: #334155; max-width: 760px; }
.consultation-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 26px; }
.consultation-facts div { padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #cbd5e1; box-shadow: 0 10px 25px rgba(15,23,42,.06); }
.consultation-facts strong,.consultation-facts span { display:block; }
.consultation-facts strong { color:#0f766e; margin-bottom:4px; }
.consultation-facts span { color:#64748b; font-size:.88rem; }
.consultation-safety-card { border-radius: 22px; padding: 24px; background: #fff7ed; border: 1px solid #fed7aa; box-shadow: 0 18px 35px rgba(154,52,18,.08); }
.consultation-safety-card h2 { margin-top:0; color:#9a3412; }
.consultation-safety-card p { color:#7c2d12; line-height:1.65; }
.consultation-form-section { margin-top: 34px; display:grid; grid-template-columns:minmax(240px,.65fr) minmax(0,1.35fr); gap:28px; align-items:start; }
.consultation-form-heading { position:sticky; top:20px; padding:24px; border-radius:22px; background:#0f766e; color:#fff; }
.consultation-form-heading h2 { margin:6px 0 12px; font-size:clamp(1.55rem,2.7vw,2.3rem); }
.consultation-form-heading p { line-height:1.65; color:#ccfbf1; }
.consultation-form { padding: clamp(22px,4vw,38px); border-radius:24px; background:#fff; border:1px solid #dbeafe; box-shadow:0 22px 55px rgba(15,23,42,.09); }
.consultation-grid.two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.consultation-form .field { margin-bottom:18px; }
.consultation-form label { display:block; margin-bottom:7px; font-weight:850; color:#1e293b; }
.consultation-form input,.consultation-form select,.consultation-form textarea { width:100%; box-sizing:border-box; border:1px solid #cbd5e1; border-radius:12px; padding:13px 14px; background:#fff; color:#0f172a; font:inherit; }
.consultation-form textarea { resize:vertical; }
.consultation-form input:focus,.consultation-form select:focus,.consultation-form textarea:focus { outline:3px solid rgba(13,148,136,.18); border-color:#0d9488; }
.field-help { display:block; margin-top:6px; color:#64748b; font-size:.86rem; }
.consultation-check { display:flex!important; align-items:flex-start; gap:11px; padding:14px; margin:12px 0!important; border-radius:13px; background:#f8fafc; border:1px solid #e2e8f0; font-weight:650!important; line-height:1.5; }
.consultation-check input { width:auto!important; margin-top:4px; flex:0 0 auto; }
.consultation-check.optional { background:#f0fdf4; border-color:#bbf7d0; }
.consultation-submit { width:100%; margin-top:16px; min-height:58px; border:0; border-radius:14px; background:#0f766e; color:#fff; font-weight:900; font-size:1.06rem; cursor:pointer; }
.consultation-submit:hover,.consultation-submit:focus { background:#115e59; }
.consultation-submit:disabled { opacity:.65; cursor:wait; }
.consultation-status { margin-top:14px; }
.honeypot { position:absolute!important; left:-9999px!important; width:1px!important; height:1px!important; opacity:0!important; }
@media (max-width: 820px) { .consultation-promo-card,.consultation-hero,.consultation-form-section { grid-template-columns:1fr; } .consultation-form-heading { position:static; } .consultation-facts { grid-template-columns:1fr; } }
@media (max-width: 560px) { .consultation-grid.two { grid-template-columns:1fr; } .consultation-shell { width:min(100% - 20px,1120px); padding-top:24px; } .consultation-form { padding:18px; } .consultation-promo-section { padding:18px 10px; } }

/* Consultation dashboard */
.admin-consultation-list { display:grid; gap:14px; }
.admin-consultation-card { border:1px solid #99f6e4; border-left:7px solid #0f766e; border-radius:16px; padding:18px; background:linear-gradient(135deg,#fff,#f0fdfa); }
.admin-consultation-card.attention { box-shadow:0 10px 28px rgba(15,118,110,.12); }
.admin-consultation-head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.admin-consultation-name { font-weight:900; color:#0f172a; }
.admin-consultation-meta { color:#64748b; font-size:.86rem; margin-top:4px; }
.admin-consultation-question { margin:14px 0 8px; padding:12px; border-radius:12px; background:#fff; border:1px solid #dbeafe; color:#0f172a; line-height:1.6; }
.admin-consultation-situation { color:#475569; line-height:1.6; white-space:pre-wrap; }
.admin-consultation-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }

/* Stage 5.10.7 consultation delivery diagnostics */
.admin-delivery-error{margin-top:10px;padding:10px 12px;border:1px solid #f6c86d;border-radius:10px;background:#fff8e8;color:#6b4200;font-size:.86rem;line-height:1.45;overflow-wrap:anywhere}

/* Stage 5.11 paid consultation foundation */
.consultation-mini-list { margin:0; padding-left:20px; color:#334155; line-height:1.65; }
.consultation-mini-list li + li { margin-top:7px; }
.consultation-offer-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:22px 0; }
.consultation-offer-card { border-radius:18px; padding:22px; border:1px solid #dbeafe; background:#fff; box-shadow:0 12px 30px rgba(15,23,42,.06); }
.consultation-offer-card h2 { margin:3px 0 9px; font-size:1.18rem; color:#0f172a; }
.consultation-offer-card p:last-child { margin-bottom:0; color:#475569; line-height:1.65; }
.consultation-offer-card.good { border-left:7px solid #0f766e; background:linear-gradient(135deg,#fff,#f0fdfa); }
.consultation-offer-card.caution { border-left:7px solid #b45309; background:linear-gradient(135deg,#fff,#fffbeb); }
.consultation-payment-panel,.consultation-success-panel { margin-top:22px; padding:24px; border-radius:18px; border:1px solid #99f6e4; background:linear-gradient(135deg,#ffffff,#f0fdfa); box-shadow:0 14px 36px rgba(15,118,110,.12); }
.consultation-payment-panel h2,.consultation-success-panel h2 { margin:4px 0 10px; color:#0f172a; }
.consultation-payment-panel p,.consultation-success-panel p { color:#475569; line-height:1.65; }
#paypalButtonHost { min-height:52px; margin:18px 0 10px; }
.consultation-payment-note { font-size:.86rem; color:#64748b!important; }
.consultation-return-link { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 20px; border-radius:12px; background:#0f766e; color:#fff; text-decoration:none; font-weight:850; }
.hidden { display:none!important; }
@media (max-width: 760px) { .consultation-offer-grid { grid-template-columns:1fr; } }

/* Stage 5.11 consultation report builder */
.consultation-report-body { background:#eef5f3; color:#0f172a; }
.report-builder-shell { width:min(1180px,calc(100% - 28px)); margin:28px auto 60px; }
.report-builder-intro { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; padding:24px; border-radius:18px; background:linear-gradient(135deg,#ffffff,#e9f7f3); border:1px solid #99f6e4; box-shadow:0 16px 38px rgba(15,118,110,.10); }
.report-builder-intro h1 { margin:4px 0 8px; font-size:clamp(1.65rem,3vw,2.35rem); }
.report-builder-intro p:last-child { max-width:720px; color:#52616b; line-height:1.65; }
.report-builder-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; max-width:430px; }
.report-client-card { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.report-client-card>div { background:#fff; border:1px solid #d9e5e1; border-radius:13px; padding:14px; }
.report-client-card span { display:block; color:#64748b; font-size:.78rem; text-transform:uppercase; letter-spacing:.07em; font-weight:800; }
.report-client-card strong { display:block; margin-top:5px; color:#17333a; word-break:break-word; }
.report-source-card { margin:18px 0; padding:22px; background:#fff; border:1px solid #d9e5e1; border-radius:17px; }
.report-source-card h2 { margin:0 0 14px; }
.report-source-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.report-source-grid article { padding:15px; border-radius:12px; background:#f8fafc; border:1px solid #e2e8f0; }
.report-source-grid p { margin:8px 0 0; color:#475569; white-space:pre-wrap; line-height:1.55; }
.report-builder-form { display:grid; gap:16px; padding:24px; background:#fff; border:1px solid #d9e5e1; border-radius:18px; }
.report-builder-form label { display:grid; gap:7px; font-weight:850; color:#1e293b; }
.report-builder-form input,.report-builder-form textarea,.report-builder-form select { width:100%; box-sizing:border-box; border:1px solid #cbd5e1; border-radius:11px; padding:12px 13px; font:inherit; color:#0f172a; background:#fff; }
.report-builder-form textarea { resize:vertical; line-height:1.55; }
.report-builder-form input:focus,.report-builder-form textarea:focus,.report-builder-form select:focus { outline:3px solid rgba(15,118,110,.14); border-color:#0f766e; }
.report-builder-form fieldset { border:1px solid #99f6e4; border-radius:15px; padding:18px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; background:#f0fdfa; }
.report-builder-form legend { padding:0 8px; font-weight:900; color:#0f766e; }
.report-two-col { display:grid; grid-template-columns:2fr 1fr; gap:14px; }
@media(max-width:880px){.report-builder-intro{display:block}.report-builder-actions{justify-content:flex-start;max-width:none;margin-top:18px}.report-client-card,.report-source-grid{grid-template-columns:1fr 1fr}.report-builder-form fieldset{grid-template-columns:1fr}}
@media(max-width:560px){.report-client-card,.report-source-grid,.report-two-col{grid-template-columns:1fr}.report-builder-shell{width:min(100% - 18px,1180px)}.report-builder-form,.report-builder-intro{padding:17px}}


/* Stage 5.11.6 — PayPal checkout and consultation page layout repair */
.compact-header .header-inner {
  width: min(1160px, calc(100% - 36px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.compact-header .brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 1.22rem;
}
.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 20px;
}
.top-nav a {
  color: #334155;
  text-decoration: none;
  font-weight: 800;
}
.top-nav a:hover,
.top-nav a:focus,
.top-nav a.active {
  color: #0f766e;
}
.site-footer {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 38px;
  display: grid;
  gap: 14px;
  border-top: 1px solid #dbe4ea;
}
.site-footer > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
}
.site-footer strong { color: #0f172a; }
.site-footer span,
.site-footer .affiliate-mini { color: #64748b; }
.site-footer .affiliate-mini { margin: 0; font-size: .86rem; }
.site-footer .footer-actions { flex-wrap: wrap; }

.legal-page-body {
  background: linear-gradient(180deg, #f8fafc 0%, #eef6f7 100%);
}
.legal-page {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 72px;
}
.legal-hero {
  padding: clamp(28px, 5vw, 50px);
  margin-bottom: 22px;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}
.legal-hero h1 {
  margin: 4px 0 12px;
  font-size: clamp(2.3rem, 7vw, 4.4rem);
  line-height: 1;
}
.legal-hero p:last-child {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}
.legal-page .privacy-section {
  padding: 24px clamp(20px, 4vw, 34px);
  margin-top: 14px;
  border: 1px solid #dbe4ea;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}
.legal-page .privacy-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}
.legal-page .privacy-section p {
  margin: 0;
  max-width: 78ch;
  line-height: 1.78;
}
#paypalButtonHost {
  width: min(100%, 520px);
}
#paypalButtonHost:empty::before {
  content: "Secure PayPal buttons will appear here.";
  display: block;
  padding: 14px 16px;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
}

@media (max-width: 720px) {
  .compact-header .header-inner {
    min-height: 0;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .top-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 7px 14px;
  }
  .site-footer {
    padding-bottom: 28px;
  }
}

/* =========================================================
   Stage 5.12.5 — stable, compact book-detail layout
   Keeps long titles and non-standard cover images inside a balanced first screen.
   ========================================================= */
.book-detail-hero {
  padding: 42px 0 54px;
}
.book-detail-hero-grid {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.book-detail-cover-wrap {
  width: 100%;
  max-width: 300px;
  justify-self: center;
  padding: 12px;
  border-radius: 22px;
}
.book-detail-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
}
.book-detail-copy {
  padding-top: 8px;
}
.book-detail-copy h1 {
  max-width: 19ch;
  font-size: clamp(2.35rem, 4.15vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.book-detail-tagline {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.58;
}
.book-detail-actions {
  margin-top: 24px;
}

@media (max-width: 1000px) and (min-width: 701px) {
  .book-detail-hero-grid {
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: 32px;
  }
  .book-detail-cover-wrap { max-width: 240px; }
  .book-detail-copy h1 {
    max-width: none;
    font-size: clamp(2.1rem, 4.7vw, 3.35rem);
  }
}

@media (max-width: 700px) {
  .book-detail-hero { padding: 30px 0 42px; }
  .book-detail-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .book-detail-cover-wrap { width: min(240px, 72vw); max-width: 240px; }
  .book-detail-copy { padding-top: 0; text-align: center; }
  .book-detail-copy h1 {
    max-width: none;
    font-size: clamp(2.05rem, 10vw, 3.1rem);
    line-height: 1.06;
  }
  .book-detail-tagline { margin-left: auto; margin-right: auto; }
}
