/* Tighten spacing when there is NO subtext in the checkout panel */
.product-checkout.product-checkout--no-subtext .order-title {
  margin-bottom: 0 !important;
  line-height: 1.1 !important;
  padding-bottom: 0 !important;
}

.product-checkout.product-checkout--no-subtext .product-checkout-label {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.product-checkout.product-checkout--no-subtext {
  gap: 14px !important;
  /* Increased spacing */
  padding: 20px 20px 16px !important;
  /* Increased padding */
  align-self: flex-start !important;
  /* Prevent stretching */
  height: auto !important;
}

.product-checkout.product-checkout--no-subtext .order-section {
  padding-top: 0 !important;
}

.product-checkout.product-checkout--no-subtext .product-submit {
  margin: 16px auto 20px !important;
  /* Increased margins */
  padding-top: 14px !important;
  /* Taller button */
  padding-bottom: 14px !important;
  /* Taller button */
}

.product-checkout.product-checkout--no-subtext .order-summary-block {
  padding: 10px 12px !important;
  /* Increased padding */
  gap: 6px !important;
  /* Increased gap */
}

/* Optional: slightly reduce top padding of the whole panel */
.product-checkout {
  padding-top: 24px;
}

/* Make Continue to Purchase button wider and less tall */
.product-checkout .product-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 56px;
  width: 100%;
  max-width: 340px;
  margin: 24px auto 32px;
  border-radius: 999px;
}

/* ----------------------
       THEME TOKENS
       ---------------------- */
:root {
  /* shared */
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 60px rgba(92, 131, 176, 0.18);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.9);
  --text-size-body: 14px;
  --nav-height: 80px;
  --guest-card-selected-border: #87b7ff;
  --guest-card-selected-glow: rgba(135, 183, 255, 0.7);
  --option-card-selected-border: #87b7ff;
  --option-card-selected-glow: rgba(35, 151, 255, 0.26);
}

/* LIGHT THEME */
body[data-theme="light"] {
  --bg-page: radial-gradient(circle at top, #e6f1ff 0, #f7fbff 40%, #f7fbff 100%);
  --bg-section: transparent;
  --bg-card: #ffffff;
  --bg-panel: #ffffff;
  --bg-footer: linear-gradient(to top, #dde7f5, #f2f6fd);
  --border-subtle: #e2edf7;
  --accent-soft: #cfe3ff;
  --accent-strong: #a9cfff;
  --accent-glow: rgba(185, 213, 255, 0.9);
  --accent-primary: #23457c;
  --text-main: #1e2733;
  --text-muted: #6f7b8b;
  --text-soft: #7b899c;
  --nav-bg: linear-gradient(to bottom, rgba(247, 251, 255, 0.9), rgba(247, 251, 255, 0.75));
  --nav-border: rgba(204, 222, 244, 0.7);
  --hero-orbit-bg: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0, rgba(198, 219, 255, 0.85) 50%, rgba(175, 204, 255, 0) 70%);
  --card-shadow: 0 12px 30px rgba(184, 205, 235, 0.55);
  --guest-card-selected-border: #3b82f6;
  --guest-card-selected-glow: rgba(59, 130, 246, 0.35);
  --option-card-selected-border: #3b82f6;
  --option-card-selected-glow: rgba(59, 130, 246, 0.35);
}

/* CINEMA / DARK THEME */
body[data-theme="dark"] {
  background-color: #020915;
  /* Solid base color to hide overscroll gaps */
  --bg-page:
    radial-gradient(circle at top left, #204a8e 0, transparent 45%),
    radial-gradient(circle at top right, #295ca7 0, transparent 45%),
    radial-gradient(circle at bottom, #020915 0, #020915 50%, #000000 100%);
  --bg-section: transparent;
  --bg-card: radial-gradient(circle at top left, #162a4e 0, #081224 70%);
  --bg-panel: radial-gradient(circle at top, #1a325d 0, #040813 75%);
  --bg-footer: radial-gradient(circle at top, #121b33 0, #020713 70%);
  --border-subtle: rgba(90, 125, 184, 0.9);
  --accent-soft: #9ccfff;
  --accent-strong: #4ea3ff;
  --accent-glow: rgba(97, 155, 255, 0.9);
  --accent-primary: #f5f8ff;
  --text-main: #f5f8ff;
  --text-muted: #a6b3cc;
  --text-soft: #7883a0;
  --nav-bg: linear-gradient(to bottom, rgba(1, 8, 18, 0.9), rgba(1, 8, 18, 0.7));
  --nav-border: rgba(77, 105, 156, 0.7);
  --hero-orbit-bg: radial-gradient(circle at top, rgba(135, 179, 255, 0.4) 0, transparent 60%);
  --card-shadow: 0 18px 50px rgba(0, 0, 0, 0.95);
}

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

html {
  min-height: 100%;
  background-color: var(--bg-page);
  /* Ensure html matches body */
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:root {
  --layout-max: 1120px;
  --layout-pad-left: 20px;
  --layout-pad-right: 20px;
}

@media (min-width: 1100px) {
  :root {
    --layout-pad-left: 14px;
    --layout-pad-right: 28px;
  }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----------------------
       HEADER
       ---------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 14px var(--layout-pad-right) 14px var(--layout-pad-left);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  max-width: none;
  max-height: none;
}

.logo-text-main {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  letter-spacing: 0.03em;
}

.logo-text-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
}

.nav-links a,
.nav-links .nav-item--watch>a {
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after,
.nav-links .nav-item--watch>a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--accent-soft), #ffffff);
  transition: width 0.18s ease;
}

.nav-links a:hover::after,
.nav-links .nav-item--watch:hover>a::after,
.nav-links .nav-item--watch:focus-within>a::after {
  width: 100%;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item--watch {
  position: relative;
}

/* Compact series dropdown */
.nav-series-dropdown {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 10px);
  width: min(320px, 85vw);
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.35), transparent 60%),
    rgba(5, 12, 30, 0.9);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 160ms ease-out,
    transform 160ms ease-out,
    visibility 0ms linear 160ms;
  z-index: 60;
}

body[data-theme="light"] .nav-series-dropdown {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(circle at bottom right, rgba(203, 219, 255, 0.65), transparent 60%),
    rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(197, 216, 244, 0.8);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(197, 216, 244, 0.35);
}

.nav-item--watch:hover .nav-series-dropdown,
.nav-item--watch:focus-within .nav-series-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 6px);
  transition-delay: 0ms;
}

.nav-series-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 8px 0;
}

body[data-theme="light"] .nav-series-eyebrow {
  color: #23457c;
}

.nav-series-subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 10px 0;
}

body[data-theme="light"] .nav-series-subtitle {
  color: var(--text-muted);
}

.nav-series-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #9ccfff;
  text-decoration: none;
  letter-spacing: 0.05em;
  position: relative;
  padding-right: 16px;
}

.nav-series-link:hover {
  text-decoration: underline;
}

.nav-series-link::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(4px, -50%);
  opacity: 0;
  transition: transform 140ms ease, opacity 140ms ease;
  font-size: 16px;
}

.nav-series-link:hover::after {
  opacity: 1;
  transform: translate(8px, -50%);
}

body[data-theme="light"] .nav-series-link {
  color: #23457c;
}

@media (max-width: 768px) {
  .nav-series-dropdown {
    display: none !important;
  }
}

/* BOOKMARK BUTTON */
.btn-bookmark {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted, #666);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-bookmark:hover {
  transform: scale(1.1);
  color: var(--primary-color, #21519d);
}

.btn-bookmark.active {
  background: var(--primary-color, #21519d);
  color: #fff;
  border-color: var(--primary-color, #21519d);
}

.btn-bookmark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: fill 0.2s;
}

.btn-bookmark.active svg {
  fill: currentColor;
}

/* TOAST NOTIFICATIONS (Global) */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #fff;
  color: #111;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  border: 1px solid #eee;
}

[data-theme="dark"] .toast-notification {
  background: #1a1a1a;
  color: #fff;
  border-color: #333;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #dcfce7;
  color: #166534;
  border-radius: 50%;
}

[data-theme="dark"] .toast-icon {
  background: rgba(22, 101, 52, 0.3);
  color: #4ade80;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ffffff, #e2f0ff);
  border: 1px solid #d1e3ff;
  color: #23457c;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(170, 196, 230, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s ease, color 0.3s ease;
}

body[data-theme="dark"] .nav-cta {
  background: radial-gradient(circle at top left, #4ea3ff 0, #1c305c 55%);
  border-color: rgba(118, 173, 255, 0.9);
  color: #f7fbff;
  box-shadow: 0 16px 38px rgba(1, 8, 18, 0.8);
}

.nav-cta:hover {
  transform: translateY(-1px);
}

/* Theme toggle */
.theme-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle-caption {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.theme-toggle {
  position: relative;
  width: 70px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid #c9dcfe;
  background: radial-gradient(circle at 25% 20%, #f5faff 0, #dfeafe 55%),
    linear-gradient(135deg, #dbeafe, #bfdbfe);
  box-shadow: 0 10px 26px rgba(184, 208, 238, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

body[data-theme="light"] .theme-toggle {
  border-color: #c9dcfe;
  background: radial-gradient(circle at 25% 20%, #f5faff 0, #dfeafe 55%),
    linear-gradient(135deg, #dbeafe, #bfdbfe);
  box-shadow: 0 10px 26px rgba(184, 208, 238, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body[data-theme="dark"] .theme-toggle {
  border-color: rgba(116, 146, 198, 0.9);
  background: radial-gradient(circle at 75% 30%, rgba(111, 167, 255, 0.45), rgba(6, 17, 36, 0.9)),
    linear-gradient(145deg, rgba(6, 15, 30, 0.95), rgba(23, 55, 108, 0.95));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(240, 247, 255, 0.85), rgba(191, 219, 254, 0.9));
  pointer-events: none;
}

body[data-theme="light"] .toggle-track {
  background: linear-gradient(135deg, rgba(240, 247, 255, 0.9), rgba(191, 219, 254, 0.95));
}

body[data-theme="dark"] .toggle-track {
  background: linear-gradient(90deg, rgba(64, 114, 189, 0.2), rgba(255, 255, 255, 0.14));
  box-shadow: inset 0 0 0 1px rgba(116, 146, 198, 0.2);
}

.toggle-knob {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0, #f4e7b5 50%, #e8c776 100%);
  box-shadow: 0 8px 18px rgba(184, 208, 238, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
  transform: translateX(0);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  z-index: 1;
}

body[data-theme="dark"] .toggle-knob {
  transform: translateX(38px);
  background: radial-gradient(circle, #e8f1ff 0, #b9d4ff 45%, #6ba3ff 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(133, 173, 255, 0.8);
}

.toggle-icon {
  width: 14px;
  height: 14px;
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 1;
  color: #23457c;
  fill: currentColor;
}

.icon-moon {
  opacity: 0;
  transform: translateX(-6px);
  color: #0b1e3c;
}

body[data-theme="dark"] .icon-sun {
  opacity: 0;
  transform: translateX(6px);
}

body[data-theme="dark"] .icon-moon {
  opacity: 1;
  transform: translateX(0);
  color: #0f2850;
}

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-right {
    width: 100%;
    justify-content: center;
  }
}

/* ----------------------
       MAIN LAYOUT
       ---------------------- */
main {
  flex: 1;
}

.section {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 40px var(--layout-pad-right) 40px var(--layout-pad-left);
  background: var(--bg-section);
}

/* ----------------------
       HERO
       ---------------------- */
.hero {
  padding-top: 40px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: visible;
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(181, 207, 244, 0.9);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 26px rgba(184, 208, 238, 0.45);
  margin-bottom: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #62769b;
}

body[data-theme="dark"] .hero-badge {
  border-color: rgba(97, 131, 191, 0.85);
  background: rgba(4, 10, 22, 0.9);
  color: #9eb7ff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0, #8fc5ff 45%, #3d7dff 100%);
  box-shadow: 0 0 10px rgba(117, 168, 255, 0.9);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 42px);
  line-height: 1.18;
  margin-bottom: 14px;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 15px;
  max-width: 460px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-subtitle span {
  color: #365aa3;
  font-weight: 500;
}


body[data-theme="dark"] .hero-subtitle span {
  color: #d8e4ff;
}

.hero-title span {
  /* Default inheritance for light mode, or can be specific if needed */
  color: inherit;
}

body[data-theme="dark"] .hero-title span {
  color: #f6e6b2;
  /* Peachy color from Watch page */
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.55);
}


.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

body[data-theme="light"] .hero .btn-primary {
  background: linear-gradient(135deg, #64b0ff 0%, #2f5da8 100%);
  color: #f7fbff;
  border-color: #bcd8ff;
  box-shadow: 0 18px 45px rgba(150, 188, 238, 0.7);
}

.btn-primary,
.btn-ghost {
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff, #d7e7ff);
  color: #214579;
  box-shadow: 0 18px 45px rgba(150, 188, 238, 0.7);
  border: 1px solid #c7dcfb;
}

body[data-theme="dark"] .btn-primary {
  background: radial-gradient(circle at top left, #4ea3ff 0, #21519d 40%, #0a1934 100%);
  border-color: rgba(131, 192, 255, 0.85);
  color: #f7fbff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.9);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-glow-hover:hover {
  box-shadow: 0 0 20px rgba(135, 183, 255, 0.6);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

body[data-theme="dark"] .btn-glow-hover:hover {
  box-shadow: 0 0 25px rgba(135, 183, 255, 0.8);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.btn-ghost {
  background: transparent;
  border: 1px solid #d1e0f2;
  color: #3f557d;
}

body[data-theme="dark"] .btn-ghost {
  border-color: rgba(126, 176, 255, 0.95);
  color: #eaf2ff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(126, 176, 255, 0.45);
}

/* AUTH POPUP (Copied from dashboard.css for global use) */
.password-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.password-popup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-strong);
  transform: scale(0.95);
  animation: scaleIn 0.3s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@keyframes scaleIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.password-popup-card h3 {
  font-family: "Playfair Display", serif;
  /* Updated to match site font */
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.password-popup-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.password-popup-card .btn-primary {
  width: 100%;
  justify-content: center;
  height: 44px;
  font-size: 15px;
}

/* GATEKEEPER MODAL */
.gatekeeper-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gatekeeper-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.gatekeeper-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-shadow: var(--shadow-strong);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.gatekeeper-modal.show .gatekeeper-content {
  transform: scale(1);
}

.gatekeeper-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.gatekeeper-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

.gatekeeper-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.gatekeeper-body {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.gatekeeper-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gatekeeper-actions .btn-primary,
.gatekeeper-actions .btn-ghost {
  width: 100%;
  justify-content: center;
  height: 48px;
}

/* Force Blue Button in Light Mode for Gatekeeper */
body[data-theme="light"] .gatekeeper-actions .btn-primary {
  background: linear-gradient(135deg, #64b0ff 0%, #2f5da8 100%);
  color: #f7fbff;
  border-color: #bcd8ff;
  box-shadow: 0 10px 30px rgba(150, 188, 238, 0.5);
}

body[data-theme="light"] .gatekeeper-actions .btn-primary:hover {
  box-shadow: 0 12px 35px rgba(150, 188, 238, 0.7);
}

.hero-note strong {
  color: #485e86;
  font-weight: 600;
}

body[data-theme="dark"] .hero-note strong {
  color: #d7e4ff;
}

/* Watch page headers: keep uppercase styling consistent */
body[data-page="watch"] .section-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Series cards */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  /* justify-items: center;  <-- Removed to allow wrappers to fill width */
}

/* Wrapper added by JS to hold the card + save button */
.series-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.series-card {
  width: 100%;
  max-width: 320px;
}

@media (max-width: 1100px) {
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .series-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.series-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow, var(--shadow-soft));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.series-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.series-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(123, 161, 232, 0.16), rgba(35, 69, 124, 0.08));
}

body[data-theme="dark"] .series-thumb {
  background: linear-gradient(135deg, rgba(78, 163, 255, 0.22), rgba(12, 20, 35, 0.7));
}

.series-card-body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
}

.series-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  margin: 0;
  line-height: 1.25;
}

.series-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.series-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.series-card .btn-ghost {
  padding: 10px 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

/* ----------------------
       AUTH PAGES
       ---------------------- */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding-top: 60px;
  padding-bottom: 80px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.auth-title {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.auth-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 15px;
}

/* AUTH FORMS */
.auth-form,
.auth-form-reset {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  margin-top: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

.auth-form .form-group input,
.auth-form-reset .form-group input {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--text-main);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: auto;
  /* Override global min-height */
  flex: 0 1 auto;
  /* Override global flex-basis */
  width: 100%;
}

.auth-form .form-group input:focus,
.auth-form-reset .form-group input:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ----------------------
       USER DROPDOWN
       ---------------------- */
.nav-user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.nav-user-avatar svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

.nav-user-avatar:hover {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.nav-user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-user-dropdown:hover .nav-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-user-item {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}

.nav-user-item:hover {
  background: var(--bg-panel);
  color: var(--accent-strong);
}

body[data-theme="dark"] .nav-user-menu {
  background: #0f1c34;
  border-color: rgba(77, 105, 156, 0.5);
}

.auth-btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  padding: 14px;
  font-size: 16px;
}

.auth-footer {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent-strong);
  font-weight: 500;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ----------------------
       DASHBOARD
       ---------------------- */
.dashboard-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

.dashboard-header {
  margin-bottom: 40px;
}

.dashboard-title {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.dashboard-subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.dashboard-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--text-main);
  margin: 0;
}

.dashboard-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  flex-grow: 1;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border-subtle);
}

body[data-theme="dark"] .user-avatar {
  background: rgba(78, 163, 255, 0.2);
  color: #fff;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: visible;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    margin-top: 16px;
  }
}

@media (max-width: 1100px) {
  .hero-testimonial-ribbon {
    max-width: 600px;
  }

  .hero-testimonial-track {
    height: auto;
    max-width: 600px;
    flex-direction: column;
    gap: 10px;
  }

  .hero-testimonial-card {
    position: relative;
    transform: none;
    opacity: 1;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 520px;
    height: auto;
  }

  .hero-testimonial-card:not(.hero-card--active) {
    display: none;
  }

  .hero-testimonial-card .hero-card {
    min-height: 0;
    padding: 16px 14px;
  }
}

.hero-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(228, 240, 255, 0.98));
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  width: 320px;
  max-width: 100%;
  box-shadow: var(--shadow-soft), 0 0 28px rgba(123, 161, 232, 0.35);
  border: 1px solid rgba(197, 216, 244, 0.9);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body[data-theme="dark"] .hero-card {
  background: radial-gradient(circle at top, #1a325d 0, #040813 70%);
  border-color: rgba(97, 131, 191, 0.85);
  box-shadow: var(--shadow-strong), 0 0 32px rgba(97, 155, 255, 0.35);
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-card-avatar {
  width: 52px;
  height: 52px;
  padding: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #dbe8ff 40%, #96b9ff 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(134, 165, 221, 0.7);
  border: 1px solid rgba(184, 209, 242, 0.9);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

body[data-theme="dark"] .hero-card-avatar {
  background: radial-gradient(circle, #ffffff 0, #ccddff 40%, #6ba3ff 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.96);
  border-color: rgba(116, 146, 198, 0.95);
}

.hero-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  border-radius: 50%;
  filter: saturate(1.05);
  transition: transform 0.3s ease;
}

.hero-card-avatar:hover img {
  transform: scale(1.03);
}

.hero-card-meta-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0 0 2px 0;
}

.hero-card-meta-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card-quote {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card-verse {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

.hero-testimonial-ribbon {
  position: relative;
  max-width: 520px;
  width: 100%;
  align-self: center;
  padding: 18px 16px;
  overflow: visible;
  margin: 0 auto;
}

.hero-testimonial-track {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  height: 240px;
  max-width: 720px;
  margin: 0 auto;
  overflow: visible !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.hero-testimonial-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 300ms ease, opacity 300ms ease, filter 300ms ease;
  width: 280px;
  height: 180px;
}

.hero-testimonial-card .hero-card {
  width: 100%;
  height: 100%;
  min-height: 180px;
  padding: 16px 14px;
}

.hero-testimonial-card.hero-card--active {
  transform: translate(-50%, -50%);
  opacity: 1;
  z-index: 3;
}

.hero-testimonial-card.hero-card--left {
  transform: translate(-105%, -50%);
  opacity: 0.35;
  z-index: 2;
}

.hero-testimonial-card.hero-card--right {
  transform: translate(5%, -50%);
  opacity: 0.35;
  z-index: 2;
}

.hero-testimonial-card.hero-card--behind {
  transform: translate(-50%, -50%);
  opacity: 0.35;
  z-index: 1;
}

body[data-theme="dark"] .hero-testimonial-ribbon::before,
body[data-theme="dark"] .hero-testimonial-ribbon::after {
  background: transparent;
  box-shadow: none;
}

.hero-testimonial-nav {
  display: none !important;
}

@media (max-width: 768px) {
  .hero-testimonial-ribbon {
    position: static;
    transform: none;
    margin: 24px auto 0;
    padding-inline: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-testimonial-track {
    height: auto;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-testimonial-card {
    position: relative;
    transform: translate(0, 0);
    opacity: 1;
    max-width: 460px;
    width: 100%;
    left: auto;
    top: auto;
    margin: 0 auto 16px;
  }

  .hero-testimonial-card:not(.hero-card--active) {
    display: none;
  }

  .hero-testimonial-card .hero-card {
    margin: 0 auto;
    width: 100%;
  }
}

.hero-testimonial-card .hero-card-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}

.hero-testimonial-card .hero-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

/* Remove faint square/white box behind testimonial carousel */
.sparkles {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

/* Scripture banner */
.scripture-banner {
  padding: 44px 20px 32px;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeInScripture 1.5s ease forwards;
}

.scripture-inner {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
  padding: 20px 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(circle at bottom right, rgba(15, 36, 84, 0.28), transparent 60%),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .scripture-inner {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 60%),
    radial-gradient(circle at bottom right, rgba(9, 22, 51, 0.45), transparent 60%),
    rgba(7, 12, 26, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

.scripture-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px 0;
}

.scripture-text {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.5;
  color: var(--text-main);
  margin: 0 0 8px 0;
}

.scripture-reference {
  font-size: 13px;
  font-style: italic;
  color: var(--text-soft);
  margin: 0;
}

@keyframes fadeInScripture {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .scripture-inner {
    text-align: center;
    padding: 18px 18px;
  }
}

/* Testimony map */
.map-hero-note {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 8px;
}

.map-section {
  padding-top: 24px;
}

.map-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 16px;
  background: var(--bg-panel);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.map-viewport {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(211, 227, 255, 0.4), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(135, 179, 255, 0.25), transparent 55%),
    linear-gradient(145deg, rgba(223, 235, 255, 0.9), rgba(184, 213, 255, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.35);
  min-height: 420px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

body[data-theme="dark"] .map-viewport {
  background:
    radial-gradient(circle at 20% 20%, rgba(135, 179, 255, 0.35), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(62, 97, 158, 0.35), transparent 55%),
    linear-gradient(145deg, #0b1324, #142643);
  border-color: rgba(90, 125, 184, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}

#testimony-us-map {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
}

.map-state {
  fill: url(#mapFill);
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 0.9;
  transition: fill 0.18s ease, stroke 0.18s ease, opacity 0.18s ease;
  cursor: pointer;
}

.map-state:hover,
.map-state.is-active {
  stroke: rgba(255, 255, 255, 0.9);
  opacity: 0.96;
}

.map-state.has-data {
  stroke: #87c7ff;
  stroke-width: 2;
  fill: rgba(111, 186, 255, 0.18);
  filter: drop-shadow(0 0 8px rgba(111, 186, 255, 0.45));
  animation: statePulse 2.6s ease-in-out infinite;
}

body[data-theme="light"] .map-state.has-data {
  stroke: #2f6fbf;
  fill: rgba(47, 111, 191, 0.22);
  filter: drop-shadow(0 0 10px rgba(47, 111, 191, 0.35));
}

@keyframes statePulse {
  0% {
    filter: drop-shadow(0 0 6px rgba(111, 186, 255, 0.25));
    opacity: 0.92;
  }

  50% {
    filter: drop-shadow(0 0 14px rgba(111, 186, 255, 0.7));
    opacity: 1;
  }

  100% {
    filter: drop-shadow(0 0 6px rgba(111, 186, 255, 0.25));
    opacity: 0.92;
  }
}

.map-pin {
  fill: #f7f2e3;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.6;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, stroke 0.16s ease;
}

.map-pin:hover,
.map-pin:focus-visible {
  outline: none;
  transform: scale(1.08);
}

.map-pin.is-active {
  transform: scale(1.18);
  stroke: rgba(255, 255, 255, 1);
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45));
}

.map-legend {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

body[data-theme=\"dark\"] .map-legend {
  background: rgba(10, 16, 32, 0.82);
}

.map-legend-pill {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.map-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px;
  min-height: 420px;
  box-shadow: var(--shadow-soft);
}

.map-detail-inner h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 10px 0;
  color: var(--text-soft);
}

.map-detail-placeholder {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

.map-stories {
  display: grid;
  gap: 12px;
}

.map-story-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.map-story-card.no-thumb {
  grid-template-columns: 1fr;
}

body[data-theme="dark"] .map-story-card {
  background: radial-gradient(circle at top left, #0f1c34 0, #040813 80%);
  border-color: rgba(77, 105, 156, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.map-story-section {
  display: grid;
  gap: 8px;
}

.map-story-section h3 {
  margin: 4px 0 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.map-story-thumb {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #dfeafe, #bfd8ff 50%, #7ba1e8 95%);
}

.map-story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body[data-theme="dark"] .map-story-thumb {
  background: radial-gradient(circle at 30% 30%, #1f3a6b, #0d1a34 70%, #07101f 100%);
}

.map-story-body {
  display: grid;
  gap: 6px;
  align-content: center;
}

.map-story-type {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.map-story-card h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-main);
}

.map-story-summary {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.map-story-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 8px 12px;
}

.map-footnote {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .map-card {
    grid-template-columns: 1fr;
  }

  .map-detail,
  .map-viewport {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .map-card {
    padding: 12px;
  }

  .map-story-card {
    grid-template-columns: 1fr;
  }

  .map-story-thumb {
    width: 100%;
    height: 160px;
  }
}

/* Gently shift ribbon to the right without clipping */
.testimonial-ribbon,
.hero-testimonial-carousel,
.hero-testimonial-ribbon {
  position: relative;
  transform: none;
  margin: 0 auto;
  overflow: visible !important;
}


@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-card {
    margin-top: 12px;
  }
}

/* ----------------------
       SECTION TITLES
       ---------------------- */
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text-main);
}

body[data-theme="dark"] .section-title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 22px;
}

.section-subtitle {
  font-size: var(--text-size-body);
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 640px;
}

/* ----------------------
       FEATURED STORY
       ---------------------- */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.featured-thumb {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(circle at top, #e1efff 0, #a2c5ff 40%, #5b7eb6 100%);
  box-shadow: var(--shadow-soft);
  min-height: 230px;
  width: 100%;
  max-width: 640px;
}

.featured-thumb iframe {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: none;
}

body[data-theme="dark"] .featured-thumb {
  background: radial-gradient(circle at top, #4e77c5 0, #0c1424 70%);
  box-shadow: var(--shadow-strong);
}

.featured-pill {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.featured-heading {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.featured-text {
  font-size: var(--text-size-body);
  color: var(--text-muted);
  margin-bottom: 14px;
}

.featured-meta {
  font-size: 12px;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .featured {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ----------------------
   CARDS: LATEST STORIES
   ---------------------- */
.trending-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .trending-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .trending-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow), 0 0 26px rgba(123, 161, 232, 0.25);
  border: 1px solid var(--border-subtle);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  --card-thumb: none;
  cursor: default;
}

.trending-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.trending-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
}

.trending-list .card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-list .card-foot {
  margin-top: auto;
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  color: inherit;
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-2px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-thumb);
  background-repeat: no-repeat;
  background-size: 120%;
  background-position: center;
  opacity: 0.28;
  z-index: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 7, 19, 0.7), rgba(2, 7, 19, 0.9));
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
}

body[data-theme="light"] .card {
  background: #f9fbff;
  border-color: #d9e6fb;
  box-shadow: 0 12px 30px rgba(184, 205, 235, 0.55);
}

body[data-theme="light"] .card::before {
  opacity: 0.14;
}

body[data-theme="light"] .card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(230, 240, 255, 0.85));
  opacity: 0.18;
}

body[data-theme="light"] .card-title,
body[data-theme="light"] .card-desc,
body[data-theme="light"] .card-tag,
body[data-theme="light"] .card-foot {
  color: var(--text-main);
}

body[data-theme="light"] .card-tag,
body[data-theme="light"] .card-foot {
  color: var(--text-muted);
}

.card-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

/* Emphasize trending titles */
.trending-card .card-title {
  font-size: 18px;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .trending-card .card-title {
    font-size: 16px;
  }
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.card-foot {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card--media {
  padding: 0;
  overflow: hidden;
}

.card--media::before,
.card--media::after {
  display: none;
}

.card-media-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: var(--card-thumb, none);
  background-size: cover;
  background-position: center;
}

@supports not (aspect-ratio: 1 / 1) {
  .card-media-thumb {
    height: 0;
    padding-top: 56.25%;
  }
}

.card-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  position: relative;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
}

.trending-grid .card .card-foot {
  margin-top: 6px;
}

.article-card {
  cursor: pointer;
}

.article-card:not(.card--media) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  min-height: 270px;
  position: relative;
  overflow: hidden;
}

.article-card:not(.card--media)::before,
.article-card:not(.card--media)::after {
  display: none;
}

.article-card .card-tag,
.article-card .article-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

body[data-page="articles"] .article-card .article-title,
body[data-page="newsletter"] .article-card .article-title,
body[data-page="articles"] .article-card-title,
body[data-page="newsletter"] .article-card-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 1.3vw + 1.4rem, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}

.article-card .article-body,
.article-card .article-summary,
body[data-page="articles"] .article-card-summary,
body[data-page="newsletter"] .article-card-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 0 0 auto;
}

.article-card .article-meta {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: auto;
}

.article-card .article-link {
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body[data-theme="light"] .article-card {
  background: #f9fbff;
  border-color: #d9e6fb;
  box-shadow: 0 12px 30px rgba(184, 205, 235, 0.55);
}

/* ----------------------
   EPISODE CARDS
   ---------------------- */
.episode-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  /* Left align by default with auto-fill */
}

.episode-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.episode-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  /* margin: 0 auto; Removed to allow grid alignment */
  border-radius: 18px;
  border: 1px solid rgba(100, 116, 139, 0.45);
  background: rgba(10, 16, 28, 0.78);
  box-shadow: var(--card-shadow, 0 20px 50px rgba(0, 0, 0, 0.32));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.episode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 186, 255, 0.9);
  background: rgba(14, 22, 36, 0.9);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), 0 0 36px rgba(102, 178, 255, 0.25);
}

body[data-theme="light"] .episode-card {
  background: #ffffff;
  border-color: var(--border-subtle);
  box-shadow: 0 12px 30px rgba(184, 205, 235, 0.45);
}

body[data-theme="light"] .episode-card:hover {
  background: #ffffff;
  border-color: var(--accent-strong);
  box-shadow: 0 20px 50px rgba(150, 188, 238, 0.65);
}

.episode-thumb-16x9 {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-card);
}

.episode-thumb-16x9 .thumb-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.episode-thumb-16x9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.episode-card:hover .episode-thumb-16x9 img {
  transform: scale(1.05);
}

.episode-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  min-height: 150px;
}

.episode-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-soft);
}

.episode-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.episode-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.episode-tags {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: auto;
}

.episode-empty,
.episode-error {
  font-size: 13px;
  color: var(--text-muted);
}

.episode-error {
  color: #f7b4b4;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

/* ----------------------
   SERIES HERO
   ---------------------- */
.series-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.series-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr);
  gap: 26px;
  align-items: center;
}

@media (min-width: 960px) {
  .series-hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 36px;
  }
}

.series-hero-breadcrumb {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.series-hero-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.series-hero-breadcrumb a:hover {
  text-decoration: underline;
}

.series-hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.14;
  color: var(--text-main);
  margin-bottom: 16px;
}

.series-hero-subcopy {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 24px;
}

.series-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.series-hero .btn-primary {
  padding-inline: 20px;
}

.series-hero .btn-ghost {
  padding-inline: 18px;
}

.series-hero-scripture {
  font-size: 12px;
  color: var(--text-soft);
}

.series-hero-scripture-ref {
  color: #9ac5ff;
}

.series-hero-video {
  background: radial-gradient(circle at top left, rgba(78, 163, 255, 0.25), rgba(4, 9, 19, 0.92));
  border-radius: 28px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow, 0 20px 60px rgba(0, 0, 0, 0.55));
}

body[data-theme="light"] .series-hero-video {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(228, 240, 255, 0.9));
  border: 1px solid rgba(197, 216, 244, 0.9);
  box-shadow: var(--shadow-soft);
}

.series-hero-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.series-hero-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.series-hero-video-fallback {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--bg-card);
  color: var(--text-soft);
  font-size: 13px;
  border: 1px dashed var(--border-subtle);
}

.series-hero-video-label {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.series-hero-fallback {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  color: var(--text-muted);
}

/* Message From a Guest */
.home-guest-section {
  max-width: 1120px;
  padding-bottom: 28px;
}

.section-header {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.home-section-header {
  max-width: 760px;
}

.home-section-header .section-subtitle {
  max-width: 760px;
}

.home-guest-section .section-subtitle {
  white-space: nowrap;
  max-width: none;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .home-guest-section .section-subtitle {
    white-space: normal;
  }
}

.home-guest-section .home-guest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto 2.4rem;
  padding-top: 0;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .home-guest-section .home-guest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-guest-section .home-guest-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.home-guest-section .home-guest-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  padding: 1.35rem 1.35rem 1.1rem;
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
  min-height: 320px;
  border: 1px solid var(--border-subtle);
  height: 100%;
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    background 0.25s ease,
    border-color 0.25s ease;
  will-change: transform, background, box-shadow, border-color;
  backface-visibility: hidden;
  transform: translateZ(0);
  cursor: pointer;
}

.home-guest-section .home-guest-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow), 0 12px 34px rgba(0, 0, 0, 0.22), 0 0 0 1px var(--border-subtle);
}

.home-guest-section .home-guest-card-image img {
  width: 100%;
  aspect-ratio: 9 / 10;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  margin-bottom: 0.85rem;
}

.home-guest-section .home-guest-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.home-guest-section .home-guest-card-meta {
  margin-bottom: 0.55rem;
}

.home-guest-section .guest-name {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
  transition: color 0.25s ease;
}

.home-guest-section .guest-tagline {
  font-size: 0.97rem;
  color: var(--text-soft);
  line-height: 1.35;
  margin: 0.15rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.home-guest-section .home-guest-card-description {
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.home-guest-section .home-guest-card-footer {
  margin-top: auto;
  padding-top: 0.65rem;
}

.home-guest-section .home-guest-card-footer .guest-card-button {
  width: 100%;
  justify-content: center;
  transition:
    transform 0.16s ease,
    box-shadow 0.22s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.home-guest-section .home-guest-card-footer .guest-card-button:hover,
.home-guest-section .home-guest-card-footer .guest-card-button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(126, 176, 255, 0.65),
    0 0 26px rgba(78, 163, 255, 0.55);
}

/* ----------------------
       SUBMIT / NEWSLETTER
       ---------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.panel {
  background: var(--bg-panel);
  border-radius: var(--radius-xl);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body[data-theme="dark"] .panel {
  box-shadow: var(--shadow-strong);
}

.panel-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.panel-text {
  font-size: var(--text-size-body);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.panel small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-soft);
}

.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

input[type="email"],
input[type="text"],
textarea {
  flex: 1 1 170px;
  border-radius: 10px;
  border: 1px solid #d1e0f2;
  padding: 9px 13px;
  font-size: 13px;
  outline: none;
  background: #fbfdff;
  color: #1e2733;
  min-height: 42px;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  border-color: #a9c7ff;
  box-shadow: 0 0 0 1px rgba(153, 188, 255, 0.7);
}

body[data-theme="dark"] input[type="email"],
body[data-theme="dark"] input[type="text"],
body[data-theme="dark"] input[type="password"],
body[data-theme="dark"] textarea {
  background: #050b18;
  border-color: rgba(93, 131, 196, 0.9);
  color: #f5f8ff;
}

body[data-theme="dark"] input[type="email"]:focus,
body[data-theme="dark"] input[type="text"]:focus,
body[data-theme="dark"] input[type="password"]:focus,
body[data-theme="dark"] textarea:focus {
  border-color: #79a7ff;
  box-shadow: 0 0 0 1px rgba(124, 176, 255, 0.9);
}

/* Short testimony form tidy alignment */
#short-testimony-form {
  display: grid;
  gap: 10px;
}

#short-testimony-form .form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#short-testimony-form input[type="text"],
#short-testimony-form textarea {
  flex: unset;
  width: 100%;
  margin: 0;
  border-radius: 12px;
}

#short-testimony-form textarea {
  min-height: 90px;
  resize: vertical;
}

#short-testimony-form button[type="submit"] {
  justify-self: start;
  margin-top: 12px;
}

.newsletter-intro {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.newsletter-benefits {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  list-style: none;
}

.newsletter-benefits li {
  position: relative;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.newsletter-benefits li::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.newsletter-teaser {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  font-size: 0.84rem;
  font-style: italic;
  color: var(--text-soft);
  opacity: 0.85;
}

.newsletter-form {
  margin-top: 12px;
}

.newsletter-form-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 520px;
  margin-top: 1.5rem;
}

.newsletter-input {
  flex: 1 1 auto;
  border-radius: 18px;
  padding: 0.78rem 1.25rem;
  min-height: 50px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  line-height: 1.4;
  display: block;
}

body[data-theme="dark"] .newsletter-input {
  background: rgba(12, 20, 35, 0.85);
  border-color: rgba(116, 146, 198, 0.6);
  color: #f7fbff;
}

.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--accent-soft);
  border-color: var(--accent-soft);
}

.newsletter-join-button {
  padding: 0.5rem 1.35rem;
  min-height: 42px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s;
}

.newsletter-join-button:hover {
  transform: translateY(-1px);
}

.newsletter-hint {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-soft);
}

@media (max-width: 640px) {
  .newsletter-form-row {
    flex-direction: column;
    max-width: 100%;
    gap: 10px;
  }

  .newsletter-join-button,
  .newsletter-input {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ----------------------
       ABOUT
       ---------------------- */
.about-text {
  max-width: 720px;
  font-size: var(--text-size-body);
  color: var(--text-muted);
}

/* ----------------------
   FOOTER
   ---------------------- */
footer {
  margin-top: 48px;
  background: var(--bg-footer);
  border-top: 1px solid #dbe6f5;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body[data-theme="dark"] footer {
  border-color: rgba(72, 100, 153, 0.9);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.85);
}

.footer-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 56px var(--layout-pad-right) 40px var(--layout-pad-left);
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: var(--text-soft);
  font-size: 13px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 28rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
  text-align: left;
}

.footer-logo {
  width: 156px;
  height: auto;
  flex-shrink: 0;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo-text {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 28px 48px;
  text-align: left;
  margin-left: auto;
}

.footer-columns {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-left: auto;
  text-align: left;
}

.footer-column {
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-heading {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text-soft);
}

.footer-column a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.footer-column a.is-active {
  color: var(--accent-soft);
  font-weight: 600;
}

.footer-column a:hover {
  color: var(--accent-soft);
  opacity: 0.95;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-soft);
}

.footer-disclaimer {
  max-width: 920px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-soft);
}

.footer-links {
  display: none;
}

@media (max-width: 768px) {
  .footer-inner {
    padding: 40px 20px 32px;
    gap: 24px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-columns {
    width: 100%;
    justify-content: flex-start;
    gap: 32px;
  }

  .footer-bottom {
    text-align: left;
  }

  .footer-copy,
  .footer-disclaimer {
    text-align: left;
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 24px;
}

@media (max-width: 600px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ----------------------
       SECONDARY PAGES
       ---------------------- */
.page-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 50px 20px 30px;
}

.articles-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
}

.page-hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 40px);
  margin: 12px 0 8px;
  color: var(--text-main);
}

.page-hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 620px;
}

.hero-actions {
  margin-top: 14px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body[data-page="articles"] .article-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

body[data-page="newsletter"] .article-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 80px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 900px) {

  body[data-page="articles"] .article-grid,
  body[data-page="newsletter"] .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.article-section {
  margin-bottom: 10px;
}

/* Tighter vertical spacing between sections on Articles index */
body[data-page="articles"] .article-section {
  padding-bottom: 24px;
  margin-bottom: 18px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid #c7dcfb;
  background: linear-gradient(135deg, #ffffff, #e1ecff);
  color: #23457c;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(184, 208, 238, 0.45);
}

body[data-theme="dark"] .pill {
  border-color: rgba(116, 146, 198, 0.9);
  background: radial-gradient(circle at top left, #4ea3ff 0, #1c305c 55%);
  color: #f5f8ff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
}

.article-card {
  gap: 10px;
}

.article-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 10px;
  color: var(--text-muted);
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-link {
  font-size: 13px;
  color: #365aa3;
  text-decoration: none;
  font-weight: 600;
}

body[data-theme="dark"] .article-link {
  color: #9ccfff;
}

.newsletter-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: center;
}

.newsletter-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.ad-placeholder {
  border-radius: var(--radius-xl);
  padding: 16px;
  border: 1px dashed #c6d8f5;
  background: #f7fbff;
  color: var(--text-muted);
  position: relative;
  text-align: center;
}

.ad-label {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

body[data-theme="dark"] .ad-placeholder {
  background: #0a1527;
  border-color: rgba(116, 146, 198, 0.6);
  color: var(--text-muted);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#store-grid {
  display: contents;
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow, var(--shadow-soft));
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  padding-top: 26px;
  gap: 12px;
}

.product-card::before,
.product-card::after {
  display: none;
}

.product-card--message {
  padding: 0;
  overflow: hidden;
}

.product-card--message::before,
.product-card--message::after {
  display: none;
}

.product-card--message .product-hero {
  height: 230px;
  background: #dbe9ff;
  overflow: hidden;
}

.product-card--message .product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card--message .card-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card--message .article-title {
  font-size: 24px;
  line-height: 1.2;
}

.product-card:not(.product-card--message) .card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
}

.product-card:not(.product-card--message) .card-product-image {
  margin: 0 0 2px 0;
}

.product-card:not(.product-card--message) .article-title {
  line-height: 1.25;
  margin: 0 0 6px 0;
  padding-top: 2px;
}

.product-card:not(.product-card--message) .card-desc,
.product-card:not(.product-card--message) .panel-text {
  margin: 0 0 6px 0;
  line-height: 1.6;
  text-align: left;
}

.product-card:not(.product-card--message) .card-actions {
  margin-top: auto;
  padding-top: 8px;
}

body[data-theme="dark"] .product-card--message .product-hero {
  background: #122342;
}

.product-card--message .card-content {
  background: linear-gradient(180deg, rgba(2, 7, 19, 0.82), rgba(2, 7, 19, 0.94));
  color: #f5f8ff;
  gap: 10px;
}

body[data-theme="light"] .product-card--message .card-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(230, 240, 255, 0.96));
  color: var(--text-main);
}

.price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ffffff, #dce9ff);
  color: #23457c;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #c7dcfb;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(150, 188, 238, 0.6);
}

body[data-theme="dark"] .price-badge {
  background: radial-gradient(circle at top left, #4ea3ff 0, #1c305c 55%);
  color: #f5f8ff;
  border-color: rgba(118, 173, 255, 0.9);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.9);
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Content sections */
.content-section {
  display: grid;
  gap: 26px;
}

.content-block {
  background: var(--bg-panel);
  border-radius: var(--radius-xl);
  padding: 18px 18px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body[data-theme="dark"] .content-block {
  box-shadow: var(--shadow-strong);
}

.content-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 900px) {

  .article-grid,
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .newsletter-wide {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* PRODUCT DETAIL LAYOUT */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: start;
}

.guest-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.guest-layout-left {
  display: grid;
  gap: 6px;
}

.guest-layout-right {
  align-self: start;
  margin-top: -18px;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.product-page {
  align-items: start;
}

.product-layout.product-detail-grid {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: flex-start;
  column-gap: 2.5rem;
}

.product-top {
  display: grid;
  gap: 10px;
  padding-top: 32px;
}

.product-breadcrumb {
  font-size: 12px;
  color: var(--text-soft);
  display: flex;
  gap: 6px;
  align-items: center;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.product-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-headings {
  display: grid;
  gap: 10px;
}

.product-tag-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  width: max-content;
  background: var(--bg-card);
}

.product-title-main {
  font-size: 24px;
  font-weight: 700;
}

.product-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.product-gallery {
  display: grid;
  gap: 8px;
  max-width: 680px;
  align-self: stretch;
  align-content: start;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-grid {
  align-items: flex-start;
  row-gap: 24px;
  column-gap: 2.5rem;
}

.product-media-column {
  display: grid;
  gap: 0;
  align-content: start;
  max-width: 780px;
}

.product-media-hero {
  position: relative;
  margin-bottom: 1rem;
}

.product-media-thumbs {
  margin-bottom: 1.25rem;
}

.product-hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(135, 183, 255, 0.18), rgba(255, 255, 255, 0.96));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .product-hero-frame {
  background: radial-gradient(circle at 18% 18%, rgba(90, 146, 225, 0.22), rgba(7, 17, 38, 0.92));
}

.product-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
  display: none;
  place-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.25s ease;
}

body[data-theme="dark"] .product-hero-nav {
  background: radial-gradient(circle at 20% 20%, rgba(90, 146, 225, 0.18), rgba(7, 17, 38, 0.96));
}

.product-hero-nav:hover {
  transform: translateY(calc(-50% - 2px));
  box-shadow: 0 14px 32px rgba(47, 111, 191, 0.22);
  border-color: rgba(99, 179, 255, 0.85);
}

.product-hero-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.product-hero-nav--prev {
  left: 12px;
}

.product-hero-nav--next {
  right: 12px;
}

.product-hero-nav .chevron {
  font-size: 20px;
  line-height: 1;
}

.product-thumb-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 110px;
  gap: 10px;
  padding: 4px 2px 0;
  align-items: stretch;
  overflow-x: auto;
}

.product-thumb-strip::-webkit-scrollbar {
  height: 8px;
}

.product-thumb-strip::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 999px;
}

.product-thumb-strip::-webkit-scrollbar-track {
  background: transparent;
}

.product-thumb-strip .product-thumb {
  aspect-ratio: 16 / 9;
  min-width: 0;
  background: var(--bg-card);
}

.product-thumb-strip .product-thumb img {
  object-fit: cover;
}

.product-thumb.is-active {
  border: 2px solid var(--option-card-selected-border);
  box-shadow: 0 12px 32px var(--option-card-selected-glow);
  background: radial-gradient(circle at 20% 20%, rgba(99, 179, 255, 0.12), rgba(255, 255, 255, 0.96));
}

.product-about-row {
  padding-top: 0;
  width: 100%;
}

.product-description-card {
  background: var(--bg-panel);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.product-rich-text {
  color: var(--text-muted);
  line-height: 1.7;
  display: grid;
  gap: 10px;
}

.product-rich-text p {
  margin: 0;
}

.product-about-body {
  display: grid;
  gap: 10px;
}

.product-description-card .product-rich-text h1,
.product-description-card .product-rich-text h2,
.product-description-card .product-rich-text h3,
.product-description-card .product-rich-text h4,
.product-description-card .product-rich-text h5,
.product-description-card .product-rich-text h6 {
  margin: 0;
  color: var(--text-main);
  line-height: 1.3;
  font-weight: 700;
}

.product-description-card .product-rich-text h1 {
  font-size: 22px;
}

.product-description-card .product-rich-text h2 {
  font-size: 20px;
}

.product-description-card .product-rich-text h3 {
  font-size: 18px;
}

.product-description-card .product-rich-text h4 {
  font-size: 16px;
}

.product-description-card .product-rich-text h5 {
  font-size: 15px;
}

.product-description-card .product-rich-text h6 {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-description-card .product-rich-text h1:not(:first-child),
.product-description-card .product-rich-text h2:not(:first-child),
.product-description-card .product-rich-text h3:not(:first-child),
.product-description-card .product-rich-text h4:not(:first-child),
.product-description-card .product-rich-text h5:not(:first-child),
.product-description-card .product-rich-text h6:not(:first-child) {
  margin-top: 8px;
}

.store-product-description-card {
  width: 100%;
}

@media (min-width: 1024px) {
  .store-product-description-card {
    max-width: 780px;
    margin-left: 0;
    margin-right: 0;
  }
}

.product-detail-card {
  display: grid;
  gap: 12px;
}

@media (max-width: 900px) {
  .product-detail-card {
    position: static;
    top: auto;
  }
}

.product-card-header {
  display: grid;
  gap: 6px;
}

.product-price-stack {
  display: grid;
  gap: 2px;
}

.product-price-main {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
}

.product-price-note {
  font-size: 13px;
  color: var(--text-soft);
}

.order-total--loud {
  align-items: center;
}

.order-total--loud .order-total-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-total--loud span:last-child {
  font-size: 24px;
}

.product-thumbs {
  display: grid;
  gap: 6px;
  margin-top: 32px;
  margin-bottom: 22px;
}

.product-thumbs-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-thumb-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  animation: fade-up 0.3s ease 0.1s both;
}

.product-thumb,
.guest-thumb {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0;
  background: var(--bg-card);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
  transform: translateZ(0);
}

.product-thumb img,
.guest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.guest-thumb {
  background: var(--bg-card);
  opacity: 0.9;
}

.guest-thumb:hover {
  box-shadow: 0 12px 30px rgba(47, 111, 191, 0.16);
  opacity: 1;
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(99, 179, 255, 0.7);
}

.guest-thumb--active {
  border: 2px solid var(--accent-soft);
  box-shadow: var(--shadow-soft);
  background: rgba(78, 163, 255, 0.08);
  opacity: 1;
}

.product-guest-column {
  display: grid;
  align-content: start;
  justify-content: start;
  margin-top: -18px;
}

.guest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

@media (max-width: 1100px) {
  .guest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .guest-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.guest-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 12px;
  background: rgba(8, 20, 48, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  align-content: stretch;
  justify-items: center;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease, filter 0.18s ease;
  aspect-ratio: 3 / 4;
  min-height: 170px;
}

.guest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(35, 85, 150, 0.2);
  border-color: rgba(99, 179, 255, 0.7);
}

.guest-card:is(:focus-visible) {
  outline: 2px solid rgba(99, 179, 255, 0.9);
  outline-offset: 2px;
  box-shadow: 0 18px 42px rgba(35, 85, 150, 0.25);
}

.guest-card.is-selected {
  border-width: 2px;
  border-color: var(--guest-card-selected-border);
  background: radial-gradient(circle at top left, rgba(135, 183, 255, 0.35), rgba(16, 32, 64, 0.9));
  box-shadow:
    0 0 0 1px var(--guest-card-selected-border),
    0 18px 40px var(--guest-card-selected-glow);
  transform: translateY(-2px);
}

[data-theme="light"] .guest-card.is-selected {
  border-width: 2px;
  border-color: var(--guest-card-selected-border);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), #ffffff);
  box-shadow:
    0 0 0 1px var(--guest-card-selected-border),
    0 14px 30px rgba(10, 30, 80, 0.18);
}

[data-theme="light"] .guest-card.is-selected .guest-card-check {
  background: rgba(59, 130, 246, 0.9);
  color: #ffffff;
}

.guest-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(135, 183, 255, 0.95);
  color: #020617;
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(35, 85, 150, 0.3);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.guest-card.is-selected .guest-card-check {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="light"] .guest-card {
  border: 1px solid var(--border-subtle);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(228, 238, 255, 0.9));
  box-shadow: 0 14px 32px rgba(18, 42, 82, 0.14);
}

[data-theme="light"] .guest-card:hover {
  background: linear-gradient(150deg, rgba(240, 246, 255, 0.96), rgba(218, 232, 255, 0.94));
  border-color: rgba(99, 179, 255, 0.5);
}

[data-theme="light"] .guest-card.is-selected {
  border-width: 2px;
  border-color: #4a7fff;
  background: radial-gradient(circle at top left, rgba(74, 127, 255, 0.12), #ffffff);
  box-shadow:
    0 0 0 1px rgba(74, 127, 255, 0.45),
    0 14px 30px rgba(10, 30, 80, 0.18);
}

[data-theme="light"] .guest-card.is-selected .guest-card-check {
  background: rgba(74, 127, 255, 0.9);
  color: #ffffff;
}

body[data-theme="dark"] .guest-card.is-selected {
  background: radial-gradient(circle at 30% 30%, rgba(99, 179, 255, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(14, 38, 78, 0.75), rgba(4, 14, 30, 0.82));
  box-shadow: 0 28px 70px rgba(35, 151, 255, 0.36);
}

/* No floating check pill; rely on glow/border for selected */

.guest-card-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-panel);
}

.guest-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guest-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--text-soft);
}

.guest-card-name {
  font-weight: 700;
  color: var(--text-main);
}

.guest-card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.guest-summary-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  max-width: 360px;
}

.guest-summary-image {
  width: 90px;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-panel);
  display: grid;
  place-items: center;
}

.guest-summary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guest-summary-copy {
  display: grid;
  gap: 4px;
}

.guest-summary-name {
  font-weight: 700;
  color: var(--text-main);
}

.guest-summary-sub {
  font-size: 12px;
  color: var(--text-soft);
}

.guest-detail-hero {
  display: flex;
  justify-content: center;
  padding: 40px 0 28px;
}

.guest-detail-hero-media {
  position: relative;
  width: min(960px, calc(100% - 80px));
  max-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  background: var(--bg-panel);
}

.guest-detail-hero-media::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.guest-detail-hero-media-inner {
  position: absolute;
  inset: 0;
}

.guest-detail-hero-media-inner img,
.guest-detail-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: none;
}

.guest-detail-hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(2, 7, 19, 0) 0%, rgba(3, 8, 18, 0.78) 75%);
  color: #f8fbff;
  display: grid;
  gap: 6px;
}

.guest-detail-hero-name {
  font-weight: 700;
  font-size: 18px;
}

.guest-detail-hero-meta {
  font-size: 12px;
  color: rgba(245, 251, 255, 0.85);
}

.guest-detail-hero-back {
  color: var(--accent-soft);
  font-weight: 600;
  text-decoration: none;
}

.guest-detail-hero-back:hover {
  text-decoration: underline;
}

.guest-detail-step-heading {
  text-align: center;
  margin: 28px auto 24px;
  max-width: 720px;
}

.guest-detail-step-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}

.guest-detail-title {
  font-size: clamp(1.9rem, 2.3vw, 2.4rem);
  margin-bottom: 8px;
}

.guest-detail-subtitle {
  font-size: 0.95rem;
  opacity: 0.8;
  margin: 0;
}

.guest-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
  max-width: 1120px;
  margin: 28px auto 64px;
}

.guest-detail-main-left {
  display: grid;
  gap: 12px;
  max-width: 65%;
}

.guest-detail-main-right {
  position: sticky;
  top: 20px;
  align-self: start;
  max-width: 380px;
  width: 100%;
}

.card-section {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.card-section-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.card-section-title {
  margin: 0;
  font-size: 17px;
  color: var(--text-main);
}

.card-section-helper {
  margin: 2px 0 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.step-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 12px;
}

.option-card-grid--narrow {
  max-width: 520px;
  grid-template-columns: 1fr;
}

.guest-detail-main-right .order-summary-block {
  max-width: 380px;
}

@media (max-width: 900px) {
  .guest-detail-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .guest-detail-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .guest-detail-main-right {
    position: static;
    max-width: none;
  }

  .card-section {
    max-width: none;
  }
}

.product-info {
  background: var(--bg-panel);
  border-radius: var(--radius-xl);
  padding: 18px 18px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.order-card {
  align-self: stretch;
  max-width: 520px;
  width: 100%;
  animation: order-card-in 0.24s ease 0.06s both;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(35, 151, 255, 0.18);
}

.order-card-header {
  display: grid;
  gap: 6px;
}

.order-title {
  margin: 0;
}

.order-form {
  display: grid;
  gap: 14px;
}

.order-section {
  padding: 4px 0 6px;
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.order-section:last-of-type {
  border-bottom: none;
}

.order-section--note-only {
  padding: 0;
  border-bottom: none;
}

.order-section--note-only .delivery-note {
  margin: 4px 0 0;
}

.order-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-section-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.product-checkout {
  display: grid;
  gap: 12px;
}

.product-checkout--no-subtext {
  gap: 4px;
}

.product-checkout-label {
  display: block;
  margin-top: 0;
  margin-bottom: 0;
}

.product-checkout--with-subtext .product-checkout-label {
  margin-top: 0;
}

.product-checkout--no-subtext .product-checkout-label {
  margin-top: 0;
}

.order-section-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.order-label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.format-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.format-pill {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(220, 230, 250, 0.85));
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.28s ease;
}

body[data-theme="dark"] .format-pill {
  background: radial-gradient(circle at 15% 20%, rgba(90, 146, 225, 0.22), rgba(8, 18, 42, 0.92));
  border-color: rgba(106, 150, 221, 0.35);
  box-shadow: var(--shadow-strong);
}

.format-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47, 111, 191, 0.25);
  border-color: rgba(99, 179, 255, 0.75);
}

.format-pill:focus-within,
.delivery-pill:focus-within {
  outline: 2px solid rgba(99, 179, 255, 0.85);
  outline-offset: 2px;
}

.format-pill input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.format-pill-body {
  display: grid;
  gap: 4px;
}

.format-pill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.format-pill-title {
  font-weight: 700;
  color: var(--text-main);
}

.format-pill-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.format-pill-price {
  font-weight: 700;
  color: var(--text-main);
}

.format-pill.is-selected {
  border-color: rgba(99, 179, 255, 0.9);
  box-shadow: 0 18px 40px rgba(35, 151, 255, 0.18);
  transform: translateY(-2px);
}

.delivery-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.delivery-pill {
  position: relative;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.28s ease;
}

body[data-theme="dark"] .delivery-pill {
  background: radial-gradient(circle at 18% 20%, rgba(78, 163, 255, 0.22), rgba(7, 17, 38, 0.92));
  border-color: rgba(106, 150, 221, 0.35);
}

.delivery-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(47, 111, 191, 0.2);
  border-color: rgba(99, 179, 255, 0.85);
}

.delivery-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.delivery-pill-body {
  padding: 12px 12px 10px;
  display: grid;
  gap: 6px;
}

.delivery-pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.delivery-pill-badge {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 233, 179, 0.92), rgba(255, 251, 230, 0.95));
  color: #5a4100;
  border: 1px solid rgba(255, 233, 179, 0.9);
}

.delivery-pill-price {
  font-weight: 700;
  color: var(--text-main);
  font-size: 14px;
}

.delivery-pill.is-selected {
  border-color: rgba(99, 179, 255, 0.9);
  box-shadow: 0 18px 40px rgba(35, 151, 255, 0.18);
  transform: translateY(-2px);
}

.delivery-note--mini {
  margin-top: -2px;
  margin-bottom: 0;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  color: var(--text-main);
}

.order-total span:first-child {
  font-weight: 600;
  color: var(--text-soft);
}

.order-total-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#order-total-amount {
  transition: color 0.18s ease, transform 0.18s ease;
}

.order-total-animate {
  animation: total-pop 0.24s ease;
}

.product-note--tiny {
  margin-top: -4px;
}

.order-help {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.order-help-trigger {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.25s ease;
}

body[data-theme="dark"] .order-help-trigger {
  background: radial-gradient(circle at 20% 20%, rgba(90, 146, 225, 0.2), rgba(7, 17, 38, 0.95));
  border-color: rgba(106, 150, 221, 0.4);
}

.order-help-trigger:hover,
.order-help-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(47, 111, 191, 0.22);
  border-color: rgba(99, 179, 255, 0.85);
}

.order-help-trigger:focus-visible {
  outline: 2px solid rgba(99, 179, 255, 0.85);
  outline-offset: 2px;
}

.order-help-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(63, 105, 166, 0.1));
  border: 1px solid rgba(126, 176, 255, 0.5);
  box-shadow: 0 14px 32px rgba(12, 24, 52, 0.45);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(-4px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.order-help.is-open .order-help-tooltip {
  opacity: 1;
  transform: translateY(0) scale(1.02);
  pointer-events: auto;
}

.order-help--hidden {
  display: none;
}

.order-help-title {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  font-size: 13px;
}

.option-card-grid {
  display: grid;
  gap: 8px;
}

.option-card {
  position: relative;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(225, 236, 255, 0.86));
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.28s ease, filter 0.18s ease;
}

body[data-theme="dark"] .option-card {
  background: radial-gradient(circle at 20% 20%, rgba(78, 163, 255, 0.18), rgba(7, 17, 38, 0.96));
  border-color: rgba(106, 150, 221, 0.35);
}

.option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47, 111, 191, 0.22);
  border-color: rgba(99, 179, 255, 0.9);
}

.option-card:focus-within {
  outline: 2px solid rgba(99, 179, 255, 0.9);
  outline-offset: 2px;
}

.option-card input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.option-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
}

.option-card-copy {
  display: grid;
  gap: 4px;
}

.option-card-title {
  font-weight: 700;
  color: var(--text-main);
}

.option-card-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.option-card-price {
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

.option-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.option-card.is-selected {
  border-color: var(--option-card-selected-border);
  box-shadow: 0 20px 46px var(--option-card-selected-glow);
  background: linear-gradient(150deg, rgba(232, 243, 255, 0.9), rgba(206, 228, 255, 0.9));
  transform: translateY(-2px);
}

body[data-theme="dark"] .option-card.is-selected {
  background: radial-gradient(circle at 20% 20%, rgba(120, 190, 255, 0.3), rgba(10, 24, 48, 0.94));
  border: 2px solid rgba(150, 210, 255, 0.95);
  box-shadow: 0 26px 70px rgba(70, 150, 255, 0.38);
}

body[data-theme="dark"] .option-card {
  background: linear-gradient(155deg, rgba(6, 15, 32, 0.92), rgba(10, 22, 45, 0.9));
  border-color: rgba(70, 110, 180, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .option-card.is-selected {
  border: 2px solid var(--option-card-selected-border);
  background: linear-gradient(150deg, rgba(59, 130, 246, 0.12), #ffffff);
  box-shadow:
    0 0 0 1px var(--option-card-selected-border),
    0 14px 30px rgba(10, 30, 80, 0.18);
}

/* check badge removed; rely on glow and border for selected */

.order-summary-block {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.order-summary-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-summary-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.order-summary-lines {
  display: grid;
  gap: 6px;
}

.order-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text-main);
}

.order-summary-label {
  color: var(--text-soft);
  font-weight: 600;
}

.order-summary-amount {
  font-weight: 700;
  color: var(--text-main);
}

.order-section-compact {
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.order-section-label .order-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}

.length-tier-table {
  display: grid;
  gap: 10px;
}

.length-tier-header,
.length-tier-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.7fr));
  align-items: center;
  gap: 10px;
}

.length-tier-header {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0 2px;
}

.length-tier-row {
  position: relative;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.28s ease;
}

.length-tier-row input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.length-tier-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(47, 111, 191, 0.2);
  border-color: rgba(99, 179, 255, 0.85);
}

.length-tier-row.is-selected {
  border-color: rgba(99, 179, 255, 0.9);
  box-shadow: 0 18px 40px rgba(35, 151, 255, 0.18);
}

.length-tier-cell.length-tier-length {
  display: grid;
  gap: 4px;
}

.length-tier-label {
  font-weight: 700;
  color: var(--text-main);
}

.length-tier-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.length-tier-price {
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

.length-tier-price::before {
  content: attr(data-label);
  display: none;
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
  margin-right: 8px;
}

@media (max-width: 720px) {
  .length-tier-header {
    display: none;
  }

  .length-tier-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .length-tier-price {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .length-tier-price::before {
    display: inline;
  }
}

.product-copy-lead {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.product-copy-lead-small {
  color: var(--text-soft);
  font-size: 13px;
}

.product-checkout-subtext {
  margin-top: 4px;
  margin-bottom: 10px;
  line-height: 1.55;
}

.product-price-lines {
  display: grid;
  gap: 4px;
}

.product-price-caption {
  font-size: 12px;
  color: var(--text-soft);
}

.product-copy-lead-secondary {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.product-form {
  display: grid;
  gap: 12px;
}

.product-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.product-options {
  display: grid;
  gap: 10px;
}

.product-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-pill input[type="radio"] {
  accent-color: #23457c;
}

body[data-theme="dark"] .product-pill input[type="radio"] {
  accent-color: #4ea3ff;
}

.product-pill-title {
  font-size: 14px;
  color: var(--text-main);
}

.product-pill-help {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
}

.product-pill.is-selected {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-soft);
}

.product-form textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  font-size: 13px;
  resize: vertical;
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.product-form textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(78, 163, 255, 0.18);
}

.product-submit {
  /* All sizing and padding now handled by .product-checkout .product-submit above */
  width: 70%;
  max-width: 360px;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  margin: 24px auto 32px;
  display: block;
}

.product-note {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.6;
}

.product-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

@media (max-width: 640px) {
  .product-submit {
    width: 100%;
    max-width: none;
    padding-block: 14px;
    padding-inline: 0;
    border-radius: 24px;
    margin: 20px 0 24px;
  }
}

.guest-preview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 6px;
  align-items: center;
}

.guest-preview-square {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  width: 100%;
}

.guest-preview-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-helper {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: -6px;
  margin-bottom: 6px;
}

.product-tip {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: -4px;
  margin-bottom: 8px;
}

.product-section {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.product-section-title {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.product-section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.delivery-options {
  display: grid;
  gap: 8px;
}

.delivery-options--inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.delivery-option {
  display: block;
  cursor: pointer;
}

.delivery-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.delivery-option-shell {
  border-radius: 16px;
  padding: 10px 12px;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), rgba(4, 18, 46, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 4px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.delivery-option-shell.delivery-option--recommended {
  background: linear-gradient(145deg, rgba(36, 93, 168, 0.5), rgba(14, 40, 82, 0.9));
  border-color: rgba(99, 179, 255, 0.8);
  box-shadow: 0 0 22px rgba(35, 151, 255, 0.22);
}

body[data-theme="light"] .delivery-option-shell {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(220, 230, 250, 0.8));
  border-color: rgba(47, 111, 191, 0.15);
}

.delivery-option-shell.delivery-option--recommended input[type="radio"]:checked+.delivery-option-shell {
  border-color: rgba(99, 179, 255, 0.9);
}

.delivery-option-shell.delivery-option--recommended:hover {
  border-color: rgba(99, 179, 255, 0.9);
}

.delivery-option input[type="radio"]:checked+.delivery-option-shell {
  border-color: rgba(99, 179, 255, 0.8);
  box-shadow: 0 0 22px rgba(35, 151, 255, 0.18);
  transform: translateY(-1px);
}

.delivery-option-shell:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

body[data-theme="light"] .delivery-option input[type="radio"]:checked+.delivery-option-shell {
  border-color: rgba(47, 111, 191, 0.5);
  box-shadow: 0 0 22px rgba(47, 111, 191, 0.18);
}

.delivery-chip {
  border-radius: 12px;
  padding: 10px 12px;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), rgba(4, 18, 46, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 2px;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
  min-height: 88px;
}

body[data-theme="light"] .delivery-chip {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(220, 230, 250, 0.8));
  border-color: rgba(47, 111, 191, 0.15);
}

.delivery-option input[type="radio"]:checked+.delivery-chip {
  border-color: rgba(99, 179, 255, 0.8);
  box-shadow: 0 0 18px rgba(35, 151, 255, 0.18);
  transform: translateY(-1px);
}

.delivery-chip.delivery-option--recommended {
  background: linear-gradient(145deg, rgba(36, 93, 168, 0.5), rgba(14, 40, 82, 0.9));
  border-color: rgba(99, 179, 255, 0.8);
  box-shadow: 0 0 18px rgba(35, 151, 255, 0.2);
}

.delivery-chip-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.delivery-chip-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.delivery-chip-note {
  font-size: 11px;
  color: var(--text-soft);
}

.delivery-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.delivery-option-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.delivery-option-pill {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body[data-theme="light"] .delivery-option-pill {
  background: rgba(47, 111, 191, 0.12);
  color: rgba(33, 71, 122, 0.88);
  border-color: rgba(47, 111, 191, 0.28);
}

.delivery-option-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.delivery-option-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.delivery-option-detail {
  font-size: 12px;
  color: var(--text-soft);
}

.delivery-note {
  font-size: 12px;
  color: var(--text-soft);
}

.product-info-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 0 12px;
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .product-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-info-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
}

.product-info-card h2 {
  font-size: 16px;
  margin: 0;
}

.product-info-card p,
.product-info-card li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.product-info-card ul {
  padding-left: 16px;
  display: grid;
  gap: 4px;
}

.product-info-band {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 6px;
}

.product-info-band h2 {
  font-size: 15px;
  margin: 0;
}

.product-info-band p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.product-accordion {
  max-width: 1120px;
  margin: 12px auto 8px;
  display: grid;
  gap: 12px;
}

.accordion-item {
  border: 1px solid rgba(126, 176, 255, 0.32);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(63, 105, 166, 0.08));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  gap: 10px;
  transition: background 0.2s ease;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 13px;
  transition: max-height 0.28s ease, opacity 0.24s ease;
}

.accordion-panel ul {
  padding-left: 16px;
  display: grid;
  gap: 4px;
}

.accordion-panel.is-open {
  opacity: 1;
  padding: 0 16px 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(63, 105, 166, 0.06));
}

.accordion-item.is-open {
  border-color: rgba(99, 179, 255, 0.7);
  box-shadow: 0 12px 30px rgba(47, 111, 191, 0.18);
}

.chevron {
  font-size: 12px;
  color: var(--text-soft);
  transition: transform 0.24s ease;
}

.accordion-item.is-open .chevron {
  transform: rotate(180deg);
}

.product-description {
  display: grid;
  gap: 8px;
}

.product-description h2 {
  font-size: 14px;
  margin-top: 6px;
}

.product-description ul {
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.product-description li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.product-details-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 0 40px;
  display: grid;
  gap: 18px;
}

.product-details-block {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.product-details-block h2 {
  font-size: 16px;
}

.product-details-block p,
.product-details-block li {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Popup styles for Netlify short-testimony form */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup.hidden {
  display: none;
}

.popup-card {
  background: var(--bg-panel, #fff);
  color: var(--text-main, #111);
  padding: 2rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Ensure popup respects dark/light tokens */
:root {
  --card-bg: #ffffff;
  --text-color: #111111;
}

.dark-theme,
body[data-theme="dark"] .popup-card {
  --card-bg: #1f1f1f;
  --text-color: #f1f1f1;
}

.popup-card {
  background: var(--card-bg);
  color: var(--text-color);
}

/* Encyclopedia page styles */

.section-title {
  text-transform: none;
}

body[data-page="encyclopedia"] .section-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.encyclopedia-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.person-card {
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 18px 20px 20px;
  max-width: 380px;
}

.person-card:hover {
  transform: translateY(-6px);
}

.person-link {
  display: block;
  color: inherit;
  height: 100%;
}

.people-card-media {
  width: 100%;
}

.people-card-media .person-photo {
  width: 100%;
  min-height: 200px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-subtle);
  transition: transform 0.18s ease;
  margin-bottom: 16px;
}

.person-photo--empty {
  background: linear-gradient(135deg, rgba(123, 161, 232, 0.14), rgba(35, 69, 124, 0.08));
}

.people-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.person-body {
  padding: 0;
}

.person-name {
  font-size: 16px;
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
}

.person-location {
  font-size: 12px;
  color: var(--text-soft);
  margin: 0;
}

.person-short {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  /* modern spec */
  line-clamp: 3;
}

.people-card-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

.status-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-strong));
  color: #07204a;
  font-weight: 700;
}

/* People Encyclopedia tweaks */
body[data-page^="encyclopedia"] .person-card {
  background: linear-gradient(145deg, rgba(250, 253, 255, 0.96), #ffffff);
  box-shadow: 0 16px 48px rgba(133, 164, 204, 0.18);
}

body[data-theme="dark"][data-page^="encyclopedia"] .person-card {
  background: linear-gradient(160deg, #0c1426, #090f1f 50%, #060b17 100%);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(90, 125, 184, 0.4);
}

body[data-page^="encyclopedia"] .people-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.78rem;
  min-height: 28px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #cddbf4;
  white-space: nowrap;
  margin-left: 8px;
  background: linear-gradient(135deg, #eef2ff, #dfe9ff);
  color: #274376;
  box-shadow: 0 6px 18px rgba(180, 200, 235, 0.25);
}

body[data-theme="dark"][data-page^="encyclopedia"] .people-pill {
  background: rgba(132, 182, 255, 0.22);
  color: #e5eeff;
  border-color: rgba(140, 190, 255, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

body[data-page^="encyclopedia"] .people-pill--featured {
  background: linear-gradient(135deg, #e6edff, #d7e6ff);
  color: #20355f;
  border-color: #c4d5f8;
}

body[data-theme="dark"][data-page^="encyclopedia"] .people-pill--featured {
  background: linear-gradient(135deg, rgba(140, 188, 255, 0.35), rgba(104, 150, 225, 0.45));
  color: #eef4ff;
  border-color: rgba(156, 202, 255, 0.6);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

body[data-page^="encyclopedia"] .people-pill--featured:hover,
body[data-page^="encyclopedia"] .people-pill--featured:focus-visible {
  outline: none;
  opacity: 0.94;
}

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 40%, rgba(255, 255, 255, 0) 80%);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton-block,
.skeleton-line {
  background: var(--bg-muted, #e6edf7);
  border-radius: 10px;
}

.skeleton-line {
  height: 10px;
  margin: 6px 0;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.tiny {
  width: 40%;
}

@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

.encyclopedia-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 18px 72px;
  display: grid;
  gap: 24px;
}

.detail-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-soft);
}

.detail-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.detail-breadcrumb a:hover {
  text-decoration: underline;
}

.person-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 0;
  /* Full bleed */
  overflow: hidden;
  /* Clip image to border radius */
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 860px;
  /* Restored natural width */
  margin: 0 auto;
}

.person-portrait {
  width: 100%;
  max-width: 100%;
  /* Fill space */
  margin: 0;
}

.person-hero .person-photo {
  width: 100%;
  aspect-ratio: 2.5 / 1;
  /* Cinematic wide ratio to reduce height */
  min-height: auto;
  border-radius: 0;
  background-position: center 25%;
  /* Focus on upper center (faces) */
  background-size: cover;
  box-shadow: none;
  border-bottom: 1px solid var(--border-subtle);
}

.person-hero-body {
  padding: 12px 24px 32px;
  /* Add padding for text */
  width: 100%;
}

/* Hide metadata as requested */
.person-hero-body .people-pill,
.person-hero-body .person-location,
.person-hero-body .person-tags,
.person-hero-body .person-short {
  display: none !important;
}

.person-hero-body h1 {
  margin: 12px 0 8px;
  font-size: 32px;
}

.person-hero-body .person-location {
  font-size: 14px;
}

.person-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 2px;
}

.person-tags span {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-soft);
}

.person-bio {
  display: grid;
  gap: 14px;
  color: var(--text-main);
}

.person-bio p {
  margin: 0;
  line-height: 1.7;
  font-size: 15px;
}

.person-bio img {
  width: 100%;
  border-radius: 12px;
}

.person-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.person-hero--sticky {
  position: relative;
  /* Remove sticky */
  top: 0;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.person-body {
  display: grid;
  gap: 20px;
  overflow: visible;
  text-align: left;
  /* Alignment fix */
  width: 100%;
}


.email-experience {
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.75);
  display: grid;
  gap: 10px;
}

.email-panel-eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0;
}

.email-panel-title {
  margin: 0;
  font-size: 18px;
}

.email-panel-body {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.email-panel-subtext {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.email-panel-disclaimer {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.email-panel-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.8;
}

body[data-theme="light"] .email-experience {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  color: var(--text-main);
}

body[data-theme="light"] .email-panel-eyebrow {
  color: var(--accent-strong);
}

body[data-theme="light"] .email-panel-title {
  color: var(--text-main);
}

body[data-theme="light"] .email-panel-body {
  color: var(--text-main);
}

body[data-theme="light"] .email-panel-subtext,
body[data-theme="light"] .email-panel-disclaimer,
body[data-theme="light"] .email-panel-note {
  color: var(--text-muted);
}

.email-experience-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
}

body[data-page^="encyclopedia"] .email-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  white-space: nowrap;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid #7ba6f5;
  background: linear-gradient(145deg, #c8dfff, #a5c6ff);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(128, 168, 230, 0.28);
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 140ms ease,
    box-shadow 160ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

body[data-theme="dark"][data-page^="encyclopedia"] .email-cta-button {
  border-color: rgba(126, 176, 255, 0.7);
  background: radial-gradient(circle at 20% 20%, rgba(112, 170, 255, 0.45), rgba(70, 124, 210, 0.9));
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.85),
    0 0 22px rgba(116, 168, 255, 0.32),
    0 0 0 1px rgba(126, 176, 255, 0.36);
}

body[data-page^="encyclopedia"] .email-cta-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #d2e6ff, #b3d1ff);
  box-shadow: 0 14px 32px rgba(128, 168, 230, 0.34);
}

body[data-theme="dark"][data-page^="encyclopedia"] .email-cta-button:hover {
  background: radial-gradient(circle at 25% 25%, rgba(132, 188, 255, 0.55), rgba(78, 137, 230, 0.95));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.9),
    0 0 26px rgba(130, 185, 255, 0.38),
    0 0 0 1px rgba(140, 190, 255, 0.42);
}

body[data-page^="encyclopedia"] .email-cta-button:active {
  transform: translateY(0);
  background: linear-gradient(145deg, #b5cff9, #9cbcf4);
  box-shadow: 0 10px 22px rgba(128, 168, 230, 0.24);
}

body[data-theme="dark"][data-page^="encyclopedia"] .email-cta-button:active {
  background: radial-gradient(circle at 30% 30%, rgba(108, 164, 235, 0.5), rgba(60, 109, 185, 0.9));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.82),
    0 0 18px rgba(116, 168, 255, 0.3),
    0 0 0 1px rgba(126, 176, 255, 0.34);
}

/* Encyclopedia email modal */
body[data-page="encyclopedia"] .email-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 20, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 40;
}

body[data-page="encyclopedia"] .email-modal-overlay[hidden] {
  display: none !important;
}

body[data-page="encyclopedia"] .email-modal {
  max-width: 520px;
  width: min(520px, 100%);
}

body[data-page="encyclopedia"] .email-modal-card {
  background: radial-gradient(circle at top left, #1b2b4d 0, #0a1124 70%);
  border-radius: 22px;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(90, 125, 184, 0.4);
}

body[data-theme="light"][data-page="encyclopedia"] .email-modal-card {
  background: linear-gradient(145deg, #f7fbff, #eaf1ff);
  border: 1px solid #d3e0f7;
  box-shadow: 0 20px 60px rgba(160, 190, 230, 0.32);
}

body[data-page="encyclopedia"] .email-modal-actions {
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body[data-page="encyclopedia"] .email-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 10px 0;
}

body[data-page="encyclopedia"] .email-modal-close:hover {
  color: var(--text-main);
}

body.email-modal-open {
  overflow: hidden;
}

.person-appearances {
  margin-top: 10px;
}

.person-appearances h2 {
  margin: 0 0 10px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-main);
}

.person-appearances-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.appearance-card {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.appearance-badge {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.appearance-title {
  margin: 0 0 4px;
  font-size: 15px;
}

.appearance-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.people-disclaimer {
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-soft);
  max-width: 720px;
}

@media (max-width: 960px) {
  .person-layout {
    /* Use default layout */
  }
}

.encyclopedia-back-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.encyclopedia-back-link:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .encyclopedia-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .encyclopedia-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .person-card {
    max-width: 100%;
    min-height: 390px;
  }
}

@media (max-width: 480px) {
  .encyclopedia-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .person-card {
    min-height: 390px;
    max-width: 100%;
  }

  .person-card .person-link {
    display: block;
    padding: 0;
  }

  .people-card-media .person-photo {
    min-height: 180px;
  }
}

@media (max-width: 960px) {
  .person-hero {
    grid-template-columns: 1fr;
  }

  .person-hero .person-photo {
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  .encyclopedia-detail {
    padding: 24px 14px 60px;
  }

  .person-hero {
    padding: 14px;
    gap: 16px;
  }

  .person-hero-body h1 {
    font-size: 22px;
  }
}

.product-steps {
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.product-steps-inline li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex: 1 1 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #23457c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex: 0 0 auto;
}

.product-faq {
  display: grid;
  gap: 10px;
}

.faq-item dt {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 13px;
}

.faq-item dd {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-trust-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-muted);
  box-shadow: var(--shadow-soft);
}

@keyframes order-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes total-pop {
  0% {
    transform: scale(1);
    color: var(--text-main);
  }

  40% {
    transform: scale(1.04);
    color: var(--accent-strong, #4ea3ff);
  }

  100% {
    transform: scale(1);
    color: var(--text-main);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .product-thumb-row {
    grid-auto-flow: column;
    grid-template-columns: repeat(4, 140px);
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .product-details-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-steps {
    flex-direction: column;
  }

  .format-options,
  .delivery-pills {
    grid-template-columns: minmax(0, 1fr);
  }
}

.store-guest-preview {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.store-guest-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------
   ARTICLE DETAIL TEMPLATE
   ---------------------- */
.article-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 16px 96px;
}

@media (max-width: 768px) {
  .article-layout {
    padding-top: 56px;
    padding-bottom: 72px;
  }
}

.article-breadcrumb {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.article-breadcrumb a {
  text-decoration: none;
  color: var(--text-soft);
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-section-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.article-header {
  margin-bottom: 32px;
}

.article-hero-band {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #f6faff, #dfeafe);
  border: 1px solid #d5e5ff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 14px 34px rgba(184, 208, 238, 0.45);
  position: static;
}

.article-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text-main);
}

.article-dek {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 10px;
}

.article-meta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article-hero {
  margin: 28px 0 32px;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.article-hero figcaption {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 8px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
}

.article-body p:first-of-type {
  font-size: 17px;
  font-weight: 500;
}

.article-body p+p {
  margin-top: 14px;
}

.article-body h2 {
  font-size: 20px;
  margin: 28px 0 10px;
  font-weight: 600;
}

.article-pullquote {
  margin: 28px auto;
  padding: 16px 20px;
  max-width: 640px;
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  border-left: 3px solid rgba(184, 199, 255, 0.8);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.03);
  border-radius: 12px;
}

.article-pullquote .article-pullquote-text {
  font-weight: 400;
}

body[data-theme="light"] .article-pullquote .article-pullquote-text {
  color: #000;
}

body[data-theme="dark"] .article-pullquote {
  background: rgba(15, 23, 42, 0.7);
  border-left-color: rgba(129, 178, 255, 0.95);
}

.article-utilities {
  max-width: 720px;
  margin: 0 auto 32px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.article-back-link {
  font-size: 13px;
  text-decoration: none;
  color: var(--accent-soft, #93c5fd);
}

.article-back-link:hover {
  text-decoration: underline;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.article-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

@media (max-width: 640px) {
  .article-utilities {
    flex-direction: column;
    align-items: flex-start;
  }
}

.article-comments {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px dashed rgba(148, 163, 184, 0.5);
}

body[data-theme="dark"] .article-comments {
  background: rgba(15, 23, 42, 0.75);
}

.article-comments h2 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text-main);
}

.article-comments p {
  font-size: 14px;
  color: var(--text-soft);
}

.article-related {
  max-width: 720px;
  margin: 0 auto 40px;
}

.article-related h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-soft);
}

.article-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.article-related li a {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-main);
}

.article-related li a:hover {
  text-decoration: underline;
}

.article-related li p {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* Article hero band */
body[data-theme="dark"] .article-hero-band {
  background: radial-gradient(circle at 20% 20%, rgba(135, 179, 255, 0.35), rgba(6, 15, 30, 0.95));
  border-color: rgba(116, 146, 198, 0.65);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.9);
}

/* Placeholder thumb */
.article-thumb-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, #dfeafe, #bfd8ff 50%, #7ba1e8 95%);
  display: grid;
  place-items: center;
  color: #23457c;
  font-size: 32px;
  box-shadow: var(--shadow-soft);
  position: absolute;
  inset: 0;
}

.article-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #dfeafe, #bfd8ff 50%, #7ba1e8 95%);
  box-shadow: var(--shadow-soft);
  margin-bottom: 10px;
  position: relative;
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

body[data-theme="dark"] .article-thumb-placeholder {
  background: radial-gradient(circle at 30% 30%, #1f3a6b, #0d1a34 70%, #07101f 100%);
  color: #dbeafe;
  box-shadow: var(--shadow-strong);
}

.article-thumb-placeholder svg {
  width: 42px;
  height: 42px;
}

/* Dark-mode polish for secondary pages */
body[data-theme="dark"] .page-hero {
  background: radial-gradient(circle at top, rgba(135, 179, 255, 0.25), rgba(6, 15, 30, 0.95));
  border-radius: 18px;
}

body[data-theme="dark"] .panel,
body[data-theme="dark"] .content-block,
body[data-theme="dark"] .card,
body[data-theme="dark"] .article-card,
body[data-theme="dark"] .product-card {
  background: radial-gradient(circle at top left, #162a4e 0, #081224 70%);
  border-color: rgba(90, 125, 184, 0.9);
  box-shadow: var(--shadow-strong);
}

body[data-theme="dark"] .section-title {
  color: var(--text-main);
}

body[data-theme="dark"] .section-subtitle,
body[data-theme="dark"] .content-text,
body[data-theme="dark"] .panel-text {
  color: var(--text-muted);
}

/* ----------------------
       VERSE INDEX
       ---------------------- */
body[data-page="verses"] .page-hero {
  padding-bottom: 28px;
}

.verses-hero .page-hero-title {
  font-size: clamp(32px, 4vw, 42px);
}

.verses-hero .page-hero-subtitle {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
}

.verse-hero-note {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-soft);
  max-width: 720px;
  line-height: 1.7;
}

.verses-section {
  padding-top: 10px;
}

.verses-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: flex-start;
}

.verse-list-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 16px;
  max-height: 72vh;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.verse-list-header h2 {
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.verse-list-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.verse-list {
  margin-top: 12px;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verse-group {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.verse-group:last-child {
  border-bottom: 0;
}

.verse-group-title {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.verse-group-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verse-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  color: var(--text-main);
}

.verse-item:hover,
.verse-item:focus-visible {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.7);
  outline: none;
}

.verse-item.is-active {
  border-color: rgba(147, 197, 253, 0.95);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  background: radial-gradient(circle at top, rgba(184, 213, 255, 0.25), rgba(255, 255, 255, 0.96));
}

body[data-theme="dark"] .verse-item {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
  background: radial-gradient(circle at top left, #0f1b31 0, #050b16 80%);
  border-color: rgba(77, 105, 156, 0.7);
}

body[data-theme="dark"] .verse-item.is-active {
  background: radial-gradient(circle at top, rgba(78, 163, 255, 0.22), rgba(8, 12, 24, 0.95));
  border-color: rgba(158, 204, 255, 0.9);
}

.verse-item-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.verse-item-meta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}

.verse-detail {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  min-height: 420px;
}

.verse-detail-inner {
  max-width: 760px;
}

.verse-status {
  font-size: 13px;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

.verse-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3.2vw, 32px);
  margin-bottom: 12px;
  color: var(--text-main);
}

.verse-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 12px;
  white-space: pre-line;
}

.verse-translation {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.verse-related h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.verse-related-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.verse-related-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.verse-related-card[aria-disabled="true"] {
  cursor: default;
  opacity: 0.86;
}

.verse-related-card:hover,
.verse-related-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(147, 197, 253, 0.8);
  outline: none;
}

.verse-related-card.no-thumb {
  grid-template-columns: 1fr;
}

.verse-related-label {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.verse-related-thumb {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #dfeafe, #bfd8ff 50%, #7ba1e8 95%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  position: relative;
}

.verse-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body[data-theme="dark"] .verse-related-thumb {
  background: radial-gradient(circle at 30% 30%, #1f3a6b, #0d1a34 70%, #07101f 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);
}

.verse-related-body {
  display: grid;
  gap: 4px;
  align-content: center;
}

.verse-related-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 4px;
}

.verse-related-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.verse-related-more {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.03);
}

body[data-theme="dark"] .verse-related-more {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(129, 178, 255, 0.45);
}

.verse-related-more p {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.verse-related-more ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.verse-related-more a {
  color: var(--text-main);
  text-decoration: none;
}

.verse-related-more a:hover {
  text-decoration: underline;
}

.verse-empty {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.verse-reference-link {
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  text-decoration: none;
  padding-bottom: 1px;
}

.verse-reference-link:hover,
.verse-reference-link:focus-visible {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
  outline: none;
}

@media (max-width: 980px) {
  .verses-layout {
    grid-template-columns: 1fr;
  }

  .verse-list-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .verse-title {
    font-size: 24px;
  }

  .verse-text {
    font-size: 17px;
  }

  .verse-list {
    max-height: none;
  }

  .verse-related-list {
    grid-template-columns: 1fr;
  }

  .verse-related-card {
    grid-template-columns: 1fr;
  }

  .verse-related-thumb {
    width: 100%;
    height: 160px;
  }

  .verse-related-body {
    align-content: start;
  }
}

/* Message from a Guest - Step 1 Button Size Increase */
body[data-product-slug="message-from-a-guest"] .product-submit {
  width: 90% !important;
  max-width: 420px !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

/* Renew Your Vows - Apply "Perfect" Styling to Subtext Version */
body[data-product-slug="renew-your-vows"] .product-checkout {
  gap: 14px !important;
  padding: 20px 20px 16px !important;
  align-self: flex-start !important;
  height: auto !important;
}

body[data-product-slug="renew-your-vows"] .product-checkout .order-title {
  margin-bottom: 0 !important;
  line-height: 1.1 !important;
  padding-bottom: 0 !important;
}

body[data-product-slug="renew-your-vows"] .product-checkout .product-checkout-label {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body[data-product-slug="renew-your-vows"] .product-checkout .order-section {
  padding-top: 0 !important;
}

body[data-product-slug="renew-your-vows"] .product-checkout .product-submit {
  margin: 16px auto 20px !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

body[data-product-slug="renew-your-vows"] .product-checkout .order-summary-block {
  padding: 10px 12px !important;
  gap: 6px !important;
}

body[data-product-slug="renew-your-vows"] .product-checkout-subtext {
  margin: 4px 0 0 0 !important;
  line-height: 1.3 !important;
  padding: 0 !important;
}

body[data-product-slug="renew-your-vows"] .order-card-header {
  gap: 2px !important;
}

/* Custom Store Popup */
.store-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 20, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.store-popup-overlay[hidden] {
  display: none !important;
}

.store-popup-modal {
  max-width: 480px;
  width: min(480px, 100%);
}

.store-popup-card {
  background: radial-gradient(circle at top left, #1b2b4d 0, #0a1124 70%);
  border-radius: 22px;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(90, 125, 184, 0.4);
  padding: 32px;
  display: grid;
  gap: 20px;
  text-align: center;
}

body[data-theme="light"] .store-popup-card {
  background: linear-gradient(145deg, #f7fbff, #eaf1ff);
  border: 1px solid #d3e0f7;
  box-shadow: 0 20px 60px rgba(160, 190, 230, 0.32);
}

.store-popup-title {
  margin: 0;
  font-size: 20px;
  font-family: "Playfair Display", serif;
  color: var(--text-main);
}

.store-popup-body {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.store-popup-input-group {
  display: grid;
}

.store-popup-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input, rgba(255, 255, 255, 0.05));
  color: var(--text-main);
  font-size: 15px;
}

body[data-theme="light"] .store-popup-input {
  background: #fff;
}

.store-popup-input:focus {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(78, 163, 255, 0.18);
}

.store-popup-actions {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.store-popup-confirm {
  width: 100%;
  justify-content: center;
  padding: 12px;
}

.store-popup-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
}

.store-popup-close:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Utility: Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Gatekeeper Modal --- */
.gatekeeper-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.gatekeeper-modal.show {
  opacity: 1;
  visibility: visible;
}

.gatekeeper-content {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 24px;
  /* Big round square */
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid var(--border-subtle);
}

.gatekeeper-modal.show .gatekeeper-content {
  transform: scale(1);
}

.gatekeeper-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.gatekeeper-body {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.gatekeeper-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gatekeeper-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.gatekeeper-close:hover {
  background: var(--bg-active);
  color: var(--text-primary);
}

/* STORIES GRID */
.stories-section .stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .stories-section .stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .stories-section .stories-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* STORIES CARD */
.stories-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  aspect-ratio: 9 / 13;
}

.stories-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.stories-card-video {
  width: 100%;
  height: 100%;
  background: #000;
  display: block;
}

.stories-card-video iframe,
.stories-card-video video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.stories-card-body {
  display: none;
}

/* SINGLE PANEL FOR SUBMIT */
.split-single {
  max-width: 680px;
  margin: 0;
}

/* =========================================
   GLOBAL MOBILE RESPONSIVENESS FIXES
   Target: iPhone / Portrait Tablet (< 768px)
   ========================================= */

@media (max-width: 768px) {

  /* --- 1. GLOBAL CONTAINERS --- */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .page,
  main,
  footer,
  header {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* --- 2. HERO SECTION --- */
  .hero {
    grid-template-columns: 1fr !important;
    padding-top: 20px;
    padding-bottom: 40px;
    text-align: center;
  }

  .hero-visual {
    margin-top: 20px;
    height: auto;
    min-height: 280px;
  }

  .hero-testimonial-ribbon {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .hero-testimonial-track {
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px;
  }

  .hero-testimonial-card .hero-card {
    transform: scale(0.9);
  }

  /* --- 3. NAVIGATION --- */
  .nav {
    flex-direction: column;
    gap: 16px;
    padding: 12px 16px !important;
  }

  .nav-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* --- 4. FOOTER --- */
  .footer-content {
    flex-direction: column !important;
    text-align: center;
    gap: 32px;
  }

  .footer-brand {
    justify-content: center;
  }

  /* --- 5. GRIDS (Watch, Articles, etc.) --- */
  .section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Force 1 column for Series, Dashboard, and Trending */
  .series-grid,
  .dashboard-grid,
  .trending-list {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* SPECIFIC: Articles get 2 columns on mobile */
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  /* Compact text for 2-column mobile cards */
  .cards-grid .card-title {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  /* --- 6. FEATURED SECTIONS --- */
  .featured {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .featured-thumb {
    max-width: 100% !important;
  }
}