/* BookZen — editorial typography + discovery grid */

:root {
  --bz-font-serif: "Lora", "Georgia", "Times New Roman", serif;
  --bz-font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    system-ui, sans-serif;
  --bz-text-body: #1e1e1e;
  --bz-accent: #f05d23;
  --bz-discovery-gap: 2rem;
}

/* Body & interface sans */
body.bz-theme-surface,
.bz-theme-screen,
.bz-lang-btn,
.bz-btn,
.bz-upload-hint,
.bz-upload-formats,
.bz-feat-card__teaser,
.bz-feat-card__detail,
.bz-feat-card__more,
.bz-control-bar,
.bz-control-btn,
#wpm-display,
#progress-text,
.bz-progress-input,
.bz-distill-toggle,
.bz-distill-log,
.bz-preview-head,
#preview-modal textarea,
#preview-modal button,
.bz-filter-row,
.filter-pill,
.bottom-nav-item,
.bottom-nav-item__label,
.book-card__action,
.book-card__open,
.book-card__meta,
.book-card__author,
.book-card__citation,
.bz-discovery__lead,
.bz-hero-eyebrow,
.bz-hero-subtitle,
footer,
#reading-screen .bz-reading-dismiss,
#reading-screen .active-reading-meta,
#stats-modal,
.bz-file-processing__msg {
  font-family: var(--bz-font-sans);
}

body.bz-theme-surface {
  color: var(--bz-text-body);
}

/* Dark base text → luxury canvas block at end of file */

/* Serif — display headings & book titles */
.bz-display-heading,
.bz-hero-title,
.book-card__title,
.bz-feat-card__head h3,
#science-heading ~ div h3,
[data-i18n="scienceRsvpTitle"],
[data-i18n="scienceBionicTitle"] {
  font-family: var(--bz-font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bz-display-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--bz-text-body);
  text-align: center;
  margin: 0 0 0.75rem;
}

/* html.dark .bz-display-heading → luxury canvas block (end of file) */

.bz-hero-title {
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* ── RSVP engine: fixed-axis ORP centering ──────────────────────────
   The pivot character (.w-orp) is always at the exact viewport centre.
   .w-left  → right-aligned, grows left of pivot
   .w-orp   → single highlighted character, anchored at centre
   .w-right → left-aligned, grows right of pivot
   ─────────────────────────────────────────────────────────────────── */
.bz-rsvp-text,
#rsvp-text {
  font-family: var(--bz-font-sans) !important;
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-content: center !important;
  align-items: baseline !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box !important;
  /* Default size (sm tier) — overridden by data-chunk-size below */
  font-size: clamp(2rem, 8vw, 4rem) !important;
  line-height: 1.15 !important;
  text-align: center !important;
  transform: translateZ(0);
  backface-visibility: hidden;
  overflow: hidden !important;
}

/* Dynamic font tiers — set by setRsvpDisplay() via data-chunk-size attr */
.bz-rsvp-text[data-chunk-size="sm"],
#rsvp-text[data-chunk-size="sm"] {
  font-size: clamp(2rem, 8vw, 4rem) !important;
  letter-spacing: -0.01em;
}
.bz-rsvp-text[data-chunk-size="md"],
#rsvp-text[data-chunk-size="md"] {
  font-size: clamp(1.75rem, 7vw, 3.5rem) !important;
  letter-spacing: -0.01em;
}
.bz-rsvp-text[data-chunk-size="lg"],
#rsvp-text[data-chunk-size="lg"] {
  font-size: clamp(1.5rem, 6vw, 3rem) !important;
  letter-spacing: -0.015em;
}
.bz-rsvp-text[data-chunk-size="xl"],
#rsvp-text[data-chunk-size="xl"] {
  font-size: clamp(1.2rem, 5vw, 2.4rem) !important;
  letter-spacing: -0.02em;
}

.bz-rsvp-text .w-left,
.bz-rsvp-text .w-orp,
.bz-rsvp-text .w-right,
#rsvp-text .w-left,
#rsvp-text .w-orp,
#rsvp-text .w-right {
  transition: color 0.15s ease;
  will-change: color;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.bz-rsvp-text .w-left,
#rsvp-text .w-left {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  text-align: right !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

.bz-rsvp-text .w-orp,
#rsvp-text .w-orp {
  flex: 0 0 auto !important;
  text-align: center !important;
  min-width: 0.6ch !important;
  color: #f05d23 !important;
  font-weight: 700 !important;
  position: relative;
  white-space: nowrap;
}

.bz-rsvp-text .w-right,
#rsvp-text .w-right {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

.bz-rsvp-zone {
  contain: layout style;
}

html.dark .bz-rsvp-text .w-orp,
html.dark #rsvp-text .w-orp {
  color: #f05d23 !important;
}

/* ── Editorial Font Toggle ──────────────────────────────────────────
   bz-font-serif on #rsvp-text → Lora (academic/editorial)
   default (no class)           → Plus Jakarta Sans (modern/technical)
   ─────────────────────────────────────────────────────────────────── */
#rsvp-text.bz-font-serif,
.bz-rsvp-text.bz-font-serif {
  font-family: var(--bz-font-serif) !important;
  font-weight: 400 !important;
  letter-spacing: 0.005em !important;
  font-style: normal;
}

/* Aa button: label inherits sans/serif depending on active mode */
.bz-font-toggle-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-family: var(--bz-font-sans);
  transition: font-family 0.25s ease;
}

/* When serif is active, show label in serif to signal the mode visually */
#font-toggle[aria-pressed="true"] .bz-font-toggle-label {
  font-family: var(--bz-font-serif);
  font-weight: 600;
}

/* Active state: tinted orange ring (mirrors bionic-toggle pattern) */
#font-toggle[aria-pressed="true"] {
  background: rgba(240, 93, 35, 0.1) !important;
  box-shadow:
    0 0 0 2px rgba(240, 93, 35, 0.35),
    0 1px 4px rgba(0, 0, 0, 0.06) !important;
  color: #f05d23 !important;
}

html.dark #font-toggle[aria-pressed="true"] {
  background: rgba(240, 93, 35, 0.14) !important;
  box-shadow: 0 0 0 2px rgba(240, 93, 35, 0.4) !important;
}

/* ── Hibrit Okuma Motoru: Düzen Anahtarı ───────────────────────────
   bz-state-phrase  → Semantik öbek modu: flex, ortalanmış, gap ile birleşik
   bz-state-word    → ORP modu: 3-eksenli simetrik bölünme (w-left|w-orp|w-right)
   ─────────────────────────────────────────────────────────────────── */

/* PHRASE MODE ─────────────────────────────────────────────────────── */
#rsvp-text.bz-state-phrase,
.bz-rsvp-text.bz-state-phrase {
  display: flex !important;
  justify-content: center !important;
  align-items: baseline !important;
  gap: 0.4ch !important;
  flex-wrap: nowrap !important;
  /* No 3-col split: override w-left/w-right symmetry */
}

/* Phrase-mode word spans: natural width, no stretching */
.bz-state-phrase .bz-phrase-word {
  flex: 0 0 auto !important;
  min-width: 0;
  white-space: nowrap !important;
  text-align: center !important;
  overflow: visible !important;
}

/* WORD MODE (ORP) ──────────────────────────────────────────────────── */
/* w-left / w-orp / w-right already defined globally above;
   bz-state-word simply keeps the default flex layout. */
#rsvp-text.bz-state-word,
.bz-rsvp-text.bz-state-word {
  display: flex !important;
  justify-content: center !important;
  align-items: baseline !important;
  flex-wrap: nowrap !important;
  gap: 0 !important; /* no gap — ORP axis handles spacing */
}

/* Within word-mode, phrase-word spans must NOT interfere */
.bz-state-word .bz-phrase-word {
  display: contents !important;
}

/* Reading pane — contain flex children, keep RSVP stack centered */
.bz-reading-main {
  overflow: hidden !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.bz-rsvp-text b,
#rsvp-text b {
  font-weight: 700;
  color: inherit;
}

/* ——— Discovery section ——— */
.bz-discovery {
  width: 100%;
  padding: 3.5rem 1.5rem 4rem;
}

.bz-discovery__inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.bz-discovery__lead {
  max-width: 36rem;
  margin: 0 auto 2.25rem;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  color: #5c5c5c;
  letter-spacing: 0.005em;
}

/* html.dark .bz-discovery__lead → luxury canvas block (end of file) */

/* Filter pills — flat, horizontal scroll on small screens */
.bz-filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  align-items: center;
  margin: 0 0 2.5rem;
  padding: 0 0 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 0.75rem,
    #000 calc(100% - 0.75rem),
    transparent
  );
}

.bz-filter-row::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .bz-filter-row {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    mask-image: none;
  }
}

.filter-pill {
  flex-shrink: 0;
  padding: 0.375rem 0.875rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #6b6b6b;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease;
}

.filter-pill:hover {
  color: var(--bz-text-body);
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

html.dark .filter-pill {
  color: #94a3b8;
}

html.dark .filter-pill:hover {
  color: #e8e6e3;
  background: rgba(255, 255, 255, 0.04);
}

.filter-pill.is-active,
.filter-pill[aria-selected="true"] {
  color: var(--bz-accent);
  background: rgba(240, 93, 35, 0.08);
  border-color: rgba(240, 93, 35, 0.2);
}

html.dark .filter-pill.is-active,
html.dark .filter-pill[aria-selected="true"] {
  background: rgba(240, 93, 35, 0.12);
  border-color: rgba(240, 93, 35, 0.3);
}

.filter-pill:focus-visible {
  outline: 2px solid var(--bz-accent);
  outline-offset: 3px;
  border-radius: 9999px;
}

/* Discovery grid — fluid, relaxed rhythm */
.bz-discovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--bz-discovery-gap);
  align-items: stretch;
}

/* Linear-grade elastic save pop */
@keyframes savePopMaster {
  0% {
    transform: scale(1) translateZ(0);
  }
  40% {
    transform: scale(0.82) translateZ(0);
  }
  70% {
    transform: scale(1.12) translateZ(0);
  }
  100% {
    transform: scale(1) translateZ(0);
  }
}

@keyframes readCheckPop {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Book cards — borderless, soft padding */
.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  min-height: 100%;
  padding: 0.5rem 0.25rem 1.25rem;
  margin: 0;
  border: none;
  background: transparent;
  text-align: left;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  box-shadow: 0 0 0 transparent;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

html.dark .book-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.book-card.is-saved {
  animation: savePopMaster 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.book-card.is-hidden {
  display: none;
}

.book-card__cover-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.book-card__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 0.25rem;
  background: linear-gradient(
    145deg,
    rgba(240, 93, 35, 0.12) 0%,
    rgba(30, 30, 30, 0.04) 55%,
    rgba(253, 246, 227, 0.9) 100%
  );
  box-shadow: 0 12px 32px rgba(30, 30, 30, 0.06);
  transition: box-shadow 0.4s ease;
  transform: translate3d(0, 0, 0);
  contain: layout style paint;
}

/* Anti-CLS skeleton — reserves cover footprint instantly */
@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(220, 214, 204, 0.95) 0%,
    rgba(244, 241, 234, 1) 45%,
    rgba(220, 214, 204, 0.95) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  pointer-events: none;
}

html.dark .skeleton-cover {
  background: linear-gradient(
    90deg,
    rgba(30, 41, 59, 0.95) 0%,
    rgba(51, 65, 85, 1) 45%,
    rgba(30, 41, 59, 0.95) 100%
  );
  background-size: 200% 100%;
}

.book-card__cover-img,
.book-card img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.book-card__cover-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.book-card__cover.is-loaded .book-card__cover-img {
  opacity: 1;
}

.book-card__cover.is-loaded .skeleton-cover {
  opacity: 0;
  animation: none;
  transition: opacity 0.35s ease;
}

html.dark .book-card__cover {
  background: rgba(10, 11, 16, 0.5);
  box-shadow: none !important;
}

.book-card:hover .book-card__cover {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

html.dark .book-card:hover .book-card__cover {
  box-shadow: none !important;
}

.book-card__actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.book-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: rgba(253, 246, 227, 0.92);
  color: #5c5c5c;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  box-shadow: 0 4px 14px rgba(30, 30, 30, 0.08);
  will-change: transform;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.book-card__action:active {
  transform: scale(0.85) translateZ(0) !important;
}

html.dark .book-card__action {
  background: rgba(30, 41, 59, 0.88);
  color: #94a3b8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.book-card__action:hover {
  color: var(--bz-text-body);
  transform: translate3d(0, -1px, 0) scale(1.04);
}

html.dark .book-card__action:hover {
  color: #f4f1ec;
}

.book-card__action:focus-visible {
  outline: 2px solid var(--bz-accent);
  outline-offset: 2px;
}

.book-card__action--save.is-active,
.book-card.is-saved .book-card__action--save {
  color: var(--bz-accent);
  background: rgba(240, 93, 35, 0.12);
}

.book-card__action-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.book-card__check-svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  transform: translate3d(0, 0, 0);
  transform-origin: center center;
  will-change: transform;
}

.book-card__check-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-card__action--read.active {
  color: var(--bz-accent);
  background: rgba(240, 93, 35, 0.14);
}

.book-card__action--read.active .book-card__check-path {
  stroke-dashoffset: 0;
}

.book-card__action--read.active .book-card__check-svg {
  animation: readCheckPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 8px rgba(240, 93, 35, 0.65));
}

.book-card__open {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.book-card__open:focus-visible {
  outline: 2px solid var(--bz-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.book-card__title {
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--bz-text-body);
  margin: 0 0 0.35rem;
}

html.dark .book-card__title {
  color: #f5f5f0;
  font-weight: 700;
  line-height: 1.3;
}

.book-card__author {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b6b6b;
  margin: 0 0 0.35rem;
}

.book-card__citation {
  font-size: 0.6875rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  color: #8a8a8a;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.dark .book-card__citation {
  color: #78716c;
}

html.dark .book-card__author {
  color: #94a3b8;
}

.book-card__meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
}

html.dark .book-card__meta {
  color: #64748b;
}

/* ——— Stripe-style reading status bar ——— */
.bz-reading-status-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
}

.bz-reading-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #666;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.bz-reading-dismiss:hover {
  color: #1e1e1e;
  background: rgba(0, 0, 0, 0.05);
}

html.dark .bz-reading-dismiss {
  color: #94a3b8;
}

html.dark .bz-reading-dismiss:hover {
  color: #f4f1ec;
  background: rgba(255, 255, 255, 0.06);
}

.bz-reading-status-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0;
}

.bz-reading-logo--micro {
  --bz-logo-reading-size: 22px;
  width: auto;
  max-width: none;
  height: auto;
  flex-shrink: 0;
}

.bz-reading-logo--micro .bz-brand-img {
  max-height: 22px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.bz-reading-status-sep {
  flex-shrink: 0;
  align-self: center;
  height: 16px;
  margin: 0 12px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

html.dark .bz-reading-status-sep {
  border-left-color: rgba(255, 255, 255, 0.12);
}

.active-reading-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
  color: #666;
}

html.dark .active-reading-meta {
  color: #94a3b8;
}

.audio-zen-toggle.is-active {
  color: #f05d23;
  background: rgba(240, 93, 35, 0.12);
}

html.dark .audio-zen-toggle.is-active {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.14);
}

/* ——— Mobile thumb-zone navigation ——— */
.bottom-nav-bar {
  display: none;
}

.bottom-nav-item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border: none;
  background: transparent;
  color: #6b6b6b;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item__hit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0.35rem 0.5rem;
  border-radius: 0.875rem;
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.65),
    inset -2px -2px 5px rgba(30, 30, 30, 0.06);
  transition: color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.bottom-nav-item__icon {
  width: 1.35rem;
  height: 1.35rem;
}

.bottom-nav-item__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 5.5rem;
  text-align: center;
}

.bottom-nav-item.is-active {
  color: var(--bz-accent);
}

.bottom-nav-item.is-active .bottom-nav-item__hit {
  box-shadow:
    inset 0 0 0 1px rgba(240, 93, 35, 0.28),
    inset 2px 2px 4px rgba(255, 255, 255, 0.5),
    0 4px 14px rgba(240, 93, 35, 0.12);
}

.bottom-nav-item:active .bottom-nav-item__hit {
  transform: scale(0.96);
}

.bottom-nav-item:focus-visible .bottom-nav-item__hit {
  outline: 2px solid var(--bz-accent);
  outline-offset: 2px;
}

html.dark .bottom-nav-item {
  color: #94a3b8;
}

html.dark .bottom-nav-item__hit {
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.05),
    inset -2px -2px 5px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767px) {
  .bottom-nav-bar {
    display: flex;
    position: fixed;
    z-index: 55;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    align-items: stretch;
    justify-content: space-around;
    gap: 0.25rem;
    padding: 0.45rem 0.5rem;
    border: none;
    border-radius: 1.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(244, 241, 234, 0.85);
    box-shadow:
      0 -4px 24px rgba(30, 30, 30, 0.08),
      0 12px 40px rgba(30, 30, 30, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transform: translate3d(0, 0, 0);
  }

  html.dark .bottom-nav-bar {
    background: rgba(15, 23, 42, 0.88);
    box-shadow:
      0 -4px 28px rgba(0, 0, 0, 0.35),
      0 12px 36px rgba(0, 0, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  body.bz-has-bottom-nav #home-screen {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.bz-has-bottom-nav #home-screen > footer {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.bz-reading-active .bottom-nav-bar {
    display: none;
  }
}

@media (min-width: 768px) {
  body.bz-has-bottom-nav #home-screen {
    padding-bottom: 0;
  }
}

/* ——— Cinematic reading viewport ——— */
.bz-reading-screen {
  position: relative;
  background: radial-gradient(circle, #f4f1ea 60%, #eae6db 100%);
  transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .bz-reading-screen {
  background: radial-gradient(circle, #12131c 50%, #0a0b10 100%);
}

.reading-progress-top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 40;
  height: 2px;
  width: var(--bz-reading-pct, 0%);
  background: #f05d23;
  transition: width 0.3s ease;
  pointer-events: none;
  border-radius: 0 1px 1px 0;
}

html.dark .reading-progress-top {
  background: #fb923c;
}

.header,
.control-bar,
.bz-control-bar,
.back-button-container,
.zen-chrome {
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s ease,
    filter 0.6s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Cinematic blur — zen chrome fade */
body.state-zen-active .zen-chrome,
body.state-zen-active .header,
body.state-zen-active .control-bar,
body.state-zen-active .bz-control-bar,
body.state-zen-active .desktop-nav-header {
  opacity: 0 !important;
  filter: blur(12px) grayscale(50%) !important;
  transform: translate3d(0, 15px, 0) scale(0.97) !important;
  pointer-events: none !important;
  transition:
    opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.7s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.7s cubic-bezier(0.19, 1, 0.22, 1) !important;
  will-change: opacity, filter, transform;
}

body.state-zen-active.ui-visible .zen-chrome,
body.state-zen-active.ui-visible .header,
body.state-zen-active.ui-visible .control-bar,
body.state-zen-active.ui-visible .bz-control-bar,
body.state-zen-active.ui-visible .desktop-nav-header {
  opacity: 1 !important;
  filter: blur(0px) grayscale(0%) !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  pointer-events: auto !important;
}

@media (max-width: 767px) {
  body.state-zen-active .bz-control-top,
  body.state-zen-active #progress-text {
    display: none;
  }
}

/* ——— RSVP gesture overlay ——— */

.gesture-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  cursor: default;
}

#reading-screen:not(.pointer-events-auto) .gesture-overlay {
  pointer-events: none;
}

#reading-screen.pointer-events-auto .gesture-overlay {
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .control-bar,
  .bz-control-bar,
  .back-button-container,
  .zen-chrome {
    transition: opacity 0.35s ease;
  }

  body.state-zen-active .header,
  body.state-zen-active .control-bar,
  body.state-zen-active .bz-control-bar,
  body.state-zen-active .zen-chrome,
  body.state-zen-active .desktop-nav-header {
    transform: none !important;
    filter: none !important;
    transition: opacity 0.35s ease !important;
  }

  .reading-progress-top {
    transition: none;
  }

  .bz-rsvp-text .w-left,
  .bz-rsvp-text .w-orp,
  .bz-rsvp-text .w-right,
  #rsvp-text .w-left,
  #rsvp-text .w-orp,
  #rsvp-text .w-right {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-card,
  .filter-pill,
  .book-card__check-path {
    transition: none !important;
  }

  .book-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  html.dark .book-card:hover {
    box-shadow: none !important;
  }

  .book-card.is-saved {
    animation: none;
  }

  .book-card__action--read.active .book-card__check-svg {
    animation: none;
    filter: none;
  }

  .book-card__action--read.active .book-card__check-path {
    stroke-dashoffset: 0;
  }

  .skeleton-cover {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Aesthetic Revolution — Linear / Stripe grade discovery cards.
   Native CSS only. Overrides earlier base rules via source order.
   PWA, theme bootstrap, and JS logic remain untouched.
   ═══════════════════════════════════════════════════════════════════ */

/* 1 · Atmospheric luxury-paper backdrop ----------------------------- */
body.bz-theme-surface::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEU8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw+8fNTAAAAGXRSTlMAMRggHCEoKTE1Nzg5PkFHRkhJSktMVFVXWVxfbHR0AAABFklEQVR4AWXAZXbCQBQA4K7m3N2d/X/m8X6fB4ZcOXZO+t/w1/33/H3/P4D+v4/f/D/w1/1w/H3/P4D+f/D/4L/n7/v/+f8B9P99/OYP/H3/P4D+v5/H8T8A9N//D/4L/H3/P4D+f90H4H/fP/D/8f89f90H4N/z1//3/AL0/+H3//w/4A/f/D9w1//w+//5/wD0/3385g/8ff8/gP6//6fvP4D+f90H4H/fP/D/8f89f90H4N/z1//3/AL0/+H3//w/4A/f/D9w1//w+//5/wD0/3385g/8ff8/gP6//6fvP4D+f90H4H/fP/D/8f89f90H4N/z1//3/AL0/+H3//w/4A/f/D9w1//w+//5/wD0/3385g/8ff8/gP6//6fvA/T/vX8Af98H4N/z1//3/AL0/+F//A8AgN4HAAAAAElFTkSuQmCC");
  background-repeat: repeat;
  background-size: 96px 96px;
  opacity: 0.05;
}

body.bz-theme-surface::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(244, 241, 234, 0) 55%,
    rgba(234, 230, 219, 0.55) 100%
  );
}

html.dark body.bz-theme-surface::before {
  opacity: 0.03;
  mix-blend-mode: overlay;
}

html.dark body.bz-theme-surface::after {
  background:
    radial-gradient(
      circle at 15% 12%,
      rgba(30, 41, 59, 0.5) 0%,
      rgba(15, 23, 42, 0) 52%
    ),
    radial-gradient(
      circle at 88% 92%,
      rgba(240, 93, 35, 0.07) 0%,
      rgba(15, 23, 42, 0) 50%
    ),
    radial-gradient(
      ellipse 70% 55% at 50% 40%,
      rgba(56, 89, 140, 0.12) 0%,
      transparent 65%
    );
  opacity: 1;
  animation: bzDarkMeshDrift 26s ease-in-out infinite alternate;
}

@keyframes bzDarkMeshDrift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(1.5%, 1.25%, 0) scale(1.05);
  }
}

/* 2 · Grid layout — generous whitespace + max-width container ------- */
.bz-discovery__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

.bz-discovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 3rem !important;
  padding: 2rem 0 !important;
  align-items: stretch;
}

/* ── Elastic micro-interactions (Inworld.ai / Airbnb spring physics) -- */
.book-card,
.filter-pill {
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),   /* spring overshoot */
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    background 0.3s ease !important;
}

.bz-btn {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    background 0.25s ease !important;
}

/* 3 · Book card — editorial glassmorphic surface -------------------- */
.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  min-height: 100%;
  padding: 1.25rem !important;
  margin: 0;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 16px !important;
  text-align: left;
  overflow: hidden;
  will-change: transform;
  /* Metallic edge light via inset top shadow + layered soft drop-shadows */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.05) !important;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease !important;
}

/* html.dark .book-card → luxury canvas block at end of file */

.book-card:hover {
  transform: translateY(-10px) scale(1.015) !important;
  border-color: rgba(240, 93, 35, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(240, 93, 35, 0.1),
    0 32px 64px rgba(0, 0, 0, 0.04) !important;
}

/* 4 · Cover inset + Airbnb-style image radii ------------------------ */
.book-card__cover-wrap {
  position: static;
  padding: 0 !important;
  margin: 0 0 1.25rem !important;
}

.book-card__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 10px !important;
  background: linear-gradient(
    160deg,
    rgba(15, 23, 42, 0.06) 0%,
    rgba(15, 23, 42, 0.02) 100%
  );
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.book-card:hover .book-card__cover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

html.dark .book-card__cover {
  background: rgba(10, 11, 16, 0.5);
  box-shadow: none !important;
}

html.dark .book-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(212, 77, 26, 0.5) 0%,
    rgba(212, 77, 26, 0.32) 45%,
    rgba(15, 23, 42, 0.5) 100%
  );
  mix-blend-mode: color;
  opacity: 0.92;
}

.book-card:hover .book-card__cover {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

html.dark .book-card:hover .book-card__cover {
  box-shadow: none !important;
}

.book-card img,
.book-card__cover-img {
  aspect-ratio: 2 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  display: block;
}

/* html.dark cover filters → luxury canvas block at end of file */

/* Actions ride the cover, anchored to the outer card so padding stays clean.
   Offset matches the card's own 1.25rem padding so buttons sit flush with cover edge. */
.book-card__actions {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* 5 · Content area — the inner .book-card-content surface ----------- */
.book-card__open {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

/* 6 · Typography hierarchy ----------------------------------------- */
.book-card__title {
  font-family: var(--bz-font-serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--bz-text-body);
  margin: 0;
}

html.dark .book-card__title {
  color: #f5f5f0 !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.book-card__author {
  font-family: var(--bz-font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: #666;
  margin: 6px 0 0;
}

html.dark .book-card__author {
  color: #94a3b8 !important;
}

.book-card__citation {
  font-family: var(--bz-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: #888;
  margin: 12px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.dark .book-card__citation {
  color: #78716c;
}

.book-card__meta {
  font-family: var(--bz-font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 14px 0 0;
}

html.dark .book-card__meta {
  color: #64748b;
}

/* 6b · Card footer row — category + reading-time badge -------------- */
.book-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 14px 0 0;
  flex-wrap: wrap;
}

.book-card__footer .book-card__meta {
  margin: 0;
}

.reading-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  align-self: flex-start;
  font-family: var(--bz-font-sans);
  font-size: 0.675rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px !important;
  border-radius: 20px !important;
  background: rgba(240, 93, 35, 0.09) !important;
  border: 1px solid rgba(240, 93, 35, 0.15);
  color: #f05d23 !important;
  margin-bottom: 10px !important;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease;
}

/* html.dark .reading-badge → luxury canvas block (end of file) */

/* 7 · Header refinement — cleaner glass on the persistent nav ------- */
@media (max-width: 767px) {
  .bottom-nav-bar {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(244, 241, 234, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow:
      0 -2px 12px rgba(15, 23, 42, 0.04),
      0 8px 28px rgba(15, 23, 42, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }

  html.dark .bottom-nav-bar {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow:
      0 -2px 12px rgba(0, 0, 0, 0.3),
      0 8px 28px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
}

.bz-discovery-grid > .book-card {
  contain: layout style;
}

@media (prefers-reduced-motion: reduce) {
  .book-card {
    transition: none;
  }

  .book-card:hover {
    transform: none;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DESKTOP NAV — glass pill, visible only on ≥768 px
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Hidden on mobile by default — Tailwind-free pure CSS breakpoint */
.desktop-nav-header {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.04),
      0 8px 24px rgba(0, 0, 0, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
    /* Slide in from top on load */
    animation: deskNavReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.dark .desktop-nav-header {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.2),
      0 8px 24px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
}

@keyframes deskNavReveal {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ── Desktop nav items ─────────────────────────────────────────────── */
.desktop-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px 0.75rem;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: var(--bz-font-sans, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
}

html.dark .desktop-nav-item {
  color: #94a3b8;
}

/* Hover */
.desktop-nav-item:hover {
  color: #F05D23;
}

html.dark .desktop-nav-item:hover {
  color: #FB923C;
}

/* Active press feedback */
.desktop-nav-item:active {
  opacity: 0.75;
}

/* is-active state — orange label */
.desktop-nav-item.is-active {
  color: #F05D23 !important;
}

html.dark .desktop-nav-item.is-active {
  color: #FB923C !important;
}

/* Underline bar — always present, starts collapsed at centre */
.desktop-nav-item::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: #F05D23;
  transition:
    width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .desktop-nav-item::after {
  background: #FB923C;
}

/* is-active — expand underline to full width from left edge */
.desktop-nav-item.is-active::after {
  width: 100%;
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .desktop-nav-header {
    animation: none !important;
  }
  .desktop-nav-item {
    transition: none !important;
  }
  .desktop-nav-item::after {
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Emergency layout recovery — viewport + overlay stacking
   ═══════════════════════════════════════════════════════════════════ */

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.bz-theme-surface {
  background-color: #f4f1ea !important;
}

#home-screen {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

#preview-modal,
.preview-modal-wrapper {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  max-width: none !important;
}

#preview-modal > div {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: min(92vw, 56rem) !important;
  max-height: 80vh;
  opacity: 1 !important;
  transform: none !important;
}

#reading-screen.bz-reading-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 20 !important;
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
}

/* Discovery grid — stable spacing, no runaway flex displacement */
.bz-discovery {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bz-discovery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 2rem !important;
  padding: 1.5rem 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

@media (min-width: 768px) {
  .bz-discovery-grid {
    gap: 2.5rem !important;
    padding: 2rem 0 !important;
  }
}

.bz-discovery-grid > .book-card {
  min-width: 0;
  max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   Mobile viewport defensiveness — prevent horizontal overflow
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  #home-screen,
  #home-screen > main,
  .bz-discovery,
  .bz-discovery__inner,
  .bz-discovery-grid,
  .book-card,
  .bz-reading-main,
  .bz-rsvp-zone,
  .bz-reading-screen {
    max-width: 100%;
    box-sizing: border-box;
  }

  #home-screen,
  .bz-discovery,
  .bz-reading-screen {
    overflow-x: hidden;
  }

  .bz-discovery__inner {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .bz-discovery-grid {
    grid-template-columns: repeat(
      auto-fill,
      minmax(min(100%, 11.5rem), 1fr)
    ) !important;
    gap: 1.5rem !important;
    padding: 1rem 0 !important;
  }

  .book-card,
  .book-card__open,
  .book-card__title,
  .book-card__author,
  .book-card__citation {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .book-card__cover,
  .book-card__cover-img,
  .book-card img {
    max-width: 100%;
  }

  .bz-reading-main,
  #rsvp-text,
  .bz-rsvp-text {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .bz-reading-main {
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(0.5rem, env(safe-area-inset-right, 0px)) !important;
  }

  .bz-rsvp-zone {
    width: 100%;
    max-width: 100vw;
    padding-left: max(0.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.25rem, env(safe-area-inset-right, 0px));
    overflow: hidden;
  }

  /* Mobile base — shared geometry for both hybrid modes */
  #rsvp-text,
  .bz-rsvp-text {
    display: flex !important;
    align-items: baseline !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(0.5rem, env(safe-area-inset-right, 0px)) !important;
    overflow: hidden !important;
    flex-wrap: nowrap !important;
  }
  /* Phrase mode on mobile: centred flex with gap, no axis split */
  #rsvp-text.bz-state-phrase,
  .bz-rsvp-text.bz-state-phrase {
    justify-content: center !important;
    gap: 0.4ch !important;
  }
  /* Word mode on mobile: keep axis split (w-left grows, w-right grows) */
  #rsvp-text.bz-state-word,
  .bz-rsvp-text.bz-state-word {
    justify-content: center !important;
    gap: 0 !important;
  }
  /* On mobile the sm/md/lg/xl tiers already pick correct font sizes */
  #rsvp-text[data-chunk-size="sm"],
  .bz-rsvp-text[data-chunk-size="sm"] {
    font-size: clamp(1.65rem, 7.5vw, 2.5rem) !important;
  }
  #rsvp-text[data-chunk-size="md"],
  .bz-rsvp-text[data-chunk-size="md"] {
    font-size: clamp(1.45rem, 6.5vw, 2.25rem) !important;
  }
  #rsvp-text[data-chunk-size="lg"],
  .bz-rsvp-text[data-chunk-size="lg"] {
    font-size: clamp(1.25rem, 5.5vw, 2rem) !important;
  }
  #rsvp-text[data-chunk-size="xl"],
  .bz-rsvp-text[data-chunk-size="xl"] {
    font-size: clamp(1rem, 4.5vw, 1.65rem) !important;
  }

  .bz-rsvp-text .w-left,
  #rsvp-text .w-left {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    text-align: right !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  .bz-rsvp-text .w-orp,
  #rsvp-text .w-orp {
    flex: 0 0 auto !important;
    min-width: 0.6ch !important;
    max-width: none !important;
    text-align: center !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  .bz-rsvp-text .w-right,
  #rsvp-text .w-right {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    text-align: left !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  .bz-reading-dock .bz-control-bar,
  .bz-control-bar {
    width: 92% !important;
    max-width: 92vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0.75rem 1rem !important;
    box-sizing: border-box !important;
  }

  .bz-reading-dock {
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px)) !important;
  }

  #preview-modal > div {
    width: min(90%, calc(100vw - 1.5rem)) !important;
    max-width: calc(100vw - 1.5rem) !important;
  }
}

@media (max-width: 480px) {
  .bz-discovery-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  /* Font tiers handle all sizing on ≤480px — no flat override needed */
}

/* ═══════════════════════════════════════════════════════════════════
   Luxury dark canvas — single source of truth (Linear-grade)
   ═══════════════════════════════════════════════════════════════════ */

html.dark,
html.dark body {
  background-color: #0a0b10 !important;
  background-image:
    radial-gradient(
      circle at 0% 0%,
      rgba(30, 41, 59, 0.6) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(240, 93, 35, 0.05) 0%,
      transparent 50%
    ) !important;
  color: #f5f5f0 !important;
}

html.dark body.bz-theme-surface {
  background-color: #0a0b10 !important;
  background-image:
    radial-gradient(
      circle at 0% 0%,
      rgba(30, 41, 59, 0.6) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(240, 93, 35, 0.05) 0%,
      transparent 50%
    ) !important;
  color: #f5f5f0 !important;
}

html.dark body.bz-theme-surface::before,
html.dark body::before {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.02 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E") !important;
  background-repeat: repeat !important;
  background-size: 200px 200px !important;
  mix-blend-mode: normal !important;
}

html.dark body.bz-theme-surface::after {
  opacity: 0 !important;
  animation: none !important;
  pointer-events: none !important;
}

html.dark :root {
  --bz-shadow-soft: 0 4px 28px rgba(0, 0, 0, 0.35);
  --bz-shadow-lift: 0 20px 48px rgba(0, 0, 0, 0.45);
  --bz-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.dark .bz-display-heading,
html.dark .bz-hero-title {
  color: #f5f5f0 !important;
  text-shadow: 0 1px 32px rgba(240, 93, 35, 0.08);
}

html.dark .bz-hero-subtitle,
html.dark .bz-discovery__lead {
  color: #94a3b8 !important;
}

html.dark .bz-lang-switch {
  background: rgba(15, 23, 42, 0.72) !important;
  border-color: rgba(240, 93, 35, 0.28) !important;
}

html.dark .bz-lang-btn {
  color: #94a3b8 !important;
}

html.dark .bz-btn-secondary {
  color: #e2e8f0 !important;
  background: rgba(30, 41, 59, 0.65) !important;
  border-color: rgba(240, 93, 35, 0.28) !important;
}

html.dark .bz-upload-card {
  background: rgba(30, 41, 59, 0.45) !important;
  border-color: rgba(240, 93, 35, 0.35) !important;
}

html.dark .bz-upload-hint {
  color: #94a3b8 !important;
}

html.dark .bz-feat-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html.dark .bz-feat-card__head h3 {
  color: #f5f5f0 !important;
}

html.dark .bz-feat-card__teaser {
  color: #94a3b8 !important;
}

html.dark .bz-feat-card__detail {
  color: #cbd5e1 !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark .bz-theme-toggle-btn--icon {
  background: rgba(15, 23, 42, 0.75) !important;
  border-color: rgba(240, 93, 35, 0.35) !important;
  color: #fdba74 !important;
}

html.dark .bz-theme-hanger::before {
  background: #94a3b8 !important;
}

html.dark .bz-distill-log-btn {
  background: rgba(30, 41, 59, 0.55) !important;
  border-color: rgba(100, 116, 139, 0.5) !important;
  color: #94a3b8 !important;
}

html.dark .bz-distill-log__inner {
  background: rgba(15, 23, 42, 0.55) !important;
  border-color: rgba(240, 93, 35, 0.22) !important;
}

html.dark .bz-distill-log__item {
  color: #cbd5e1 !important;
  border-bottom-color: rgba(71, 85, 105, 0.45) !important;
}

html.dark .bz-distill-toggle {
  background: rgba(30, 41, 59, 0.55) !important;
  border-color: rgba(240, 93, 35, 0.35) !important;
}

html.dark .bz-distill-label {
  color: #cbd5e1 !important;
}

html.dark .bz-distill-toggle.is-active .bz-distill-label {
  color: #fdba74 !important;
}

html.dark .bz-file-processing__card {
  background: rgba(30, 41, 59, 0.94) !important;
  border-color: rgba(240, 93, 35, 0.35) !important;
}

html.dark .bz-file-processing__msg {
  color: #e2e8f0 !important;
}

html.dark .book-card {
  background: rgba(255, 255, 255, 0.025) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 16px !important;
  /* Dark metallic edge: subtle top highlight + deep ambient shadow */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.35),
    0 20px 40px rgba(0, 0, 0, 0.25) !important;
}

html.dark .book-card:hover {
  transform: translateY(-10px) scale(1.015) !important;
  border-color: rgba(240, 93, 35, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 12px 28px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(240, 93, 35, 0.08),
    0 32px 64px rgba(0, 0, 0, 0.3) !important;
}

html.dark .book-card__cover-img,
html.dark .book-card img {
  filter: grayscale(100%) contrast(1.1) brightness(0.8) !important;
  mix-blend-mode: luminosity !important;
  transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  z-index: 0;
}

html.dark .book-card:hover .book-card__cover-img,
html.dark .book-card:hover img {
  filter: grayscale(10%) contrast(1.05) brightness(0.95) !important;
}

html.dark .book-card__title {
  color: #f5f5f0 !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

html.dark .book-card__author {
  color: #94a3b8 !important;
}

html.dark .reading-badge {
  background: rgba(240, 93, 35, 0.12) !important;
  border-color: rgba(240, 93, 35, 0.25) !important;
  color: #f05d23 !important;
}

/* RSVP pivot glow — visible behind the ORP column in dark mode */
html.dark .bz-rsvp-text .w-orp,
html.dark #rsvp-text .w-orp {
  text-shadow: 0 0 20px rgba(240, 93, 35, 0.55) !important;
}

html.dark .bz-reading-screen {
  background: radial-gradient(circle, #12131c 50%, #0a0b10 100%) !important;
}

html.dark .reading-progress-top {
  background: #f05d23 !important;
}

html.dark .bz-rsvp-text,
html.dark #rsvp-text {
  color: #f1f5f9 !important;
}

html.dark .bz-rsvp-text .w-orp,
html.dark #rsvp-text .w-orp {
  color: #f05d23 !important;
}

html.dark .bz-control-bar {
  border-color: rgba(51, 65, 85, 0.5) !important;
  background: rgba(30, 41, 59, 0.5) !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html.dark .bz-progress-rail {
  background: rgba(51, 65, 85, 0.85) !important;
}

html.dark #play-btn {
  background: rgba(51, 65, 85, 0.9) !important;
  color: #fdba74 !important;
}

html.dark #preview-modal > div {
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #f5f5f0 !important;
}

/* ══════════════════════════════════════════════════════════════════
   LANDING PAGE 2.0 — Hero, Infographic, Guide, Steps
   ══════════════════════════════════════════════════════════════════ */

/* ── Hero Badge ──────────────────────────────────────────────────── */
.bz-hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.bz-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  background: rgba(240, 93, 35, 0.1);
  border: 1px solid rgba(240, 93, 35, 0.28);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #F05D23;
  white-space: nowrap;
}

.bz-hero-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: bz-pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes bz-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.75); }
}

.bz-hero-badge-status {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #22c55e;
}

/* ── Infographic Section ─────────────────────────────────────────── */
.bz-infographic-wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

.bz-infographic-header {
  margin-bottom: 3.5rem;
}

.bz-infographic-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.bz-infographic-sub {
  font-size: 1.0625rem;
  color: #94a3b8;
  font-weight: 400;
  line-height: 1.6;
}

/* ── Infographic 3-column grid ───────────────────────────────────── */
.bz-infographic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .bz-infographic-grid { grid-template-columns: 1fr; }
}

/* ── Individual card ─────────────────────────────────────────────── */
.bz-inf-card {
  position: relative;
  padding: 2rem 1.75rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 4px 24px rgba(0, 0, 0, 0.15),
    0 1px 0 rgba(255,255,255,0.06) inset;
}

.bz-inf-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 93, 35, 0.2);
  box-shadow:
    0 0 0 1px rgba(240, 93, 35, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

/* Huge background number — infographic style */
.bz-inf-num {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.032);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

html:not(.dark) .bz-inf-num {
  color: rgba(15, 23, 42, 0.04);
}

.bz-inf-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(240, 93, 35, 0.1);
  border: 1px solid rgba(240, 93, 35, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F05D23;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.bz-inf-card__icon .bz-lucide { width: 16px; height: 16px; }

.bz-inf-card__title {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #f5f5f0;
}

html:not(.dark) .bz-inf-card__title { color: #1e293b; }

.bz-inf-card__sub {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F05D23;
  margin-bottom: 0.1rem;
}

.bz-inf-card__body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #94a3b8;
}

html:not(.dark) .bz-inf-card__body { color: #475569; }

/* Light mode card */
html:not(.dark) .bz-inf-card {
  background: rgba(255,255,255,0.8);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 1) inset;
}

html:not(.dark) .bz-inf-card:hover {
  border-color: rgba(240, 93, 35, 0.25);
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.1),
    0 1px 0 rgba(255, 255, 255, 1) inset;
}

/* ── Steps Grid (3 Adımda Odaklan) ──────────────────────────────── */
.bz-steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.bz-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.bz-step__num {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #F05D23;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 6px rgba(240, 93, 35, 0.12), 0 4px 16px rgba(240, 93, 35, 0.35);
  flex-shrink: 0;
  letter-spacing: -0.02em;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.bz-step:hover .bz-step__num {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(240, 93, 35, 0.15), 0 8px 24px rgba(240, 93, 35, 0.45);
}

.bz-step__connector {
  flex-shrink: 0;
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(240,93,35,0.4), rgba(240,93,35,0.1));
  margin-top: 1.625rem;
  border-radius: 1px;
}

.bz-step__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

html.dark .bz-step__title { color: #f1f5f9; }

.bz-step__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #64748b;
  max-width: 18rem;
}

html.dark .bz-step__desc { color: #94a3b8; }

@media (max-width: 640px) {
  .bz-steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .bz-step__connector {
    width: 2px;
    height: 2.5rem;
    margin-top: 0;
    background: linear-gradient(180deg, rgba(240,93,35,0.4), rgba(240,93,35,0.1));
  }
}

/* ── Control Guide Section ───────────────────────────────────────── */
.bz-guide-wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
}

.bz-guide-header {
  margin-bottom: 3rem;
}

.bz-guide-sub {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 0.625rem;
}

.bz-guide-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 8px 32px rgba(0, 0, 0, 0.18);
}

html:not(.dark) .bz-guide-list {
  border-color: rgba(15, 23, 42, 0.07);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.bz-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255,255,255,0.018);
  transition: background 0.2s ease;
}

.bz-guide-item:last-child { border-bottom: none; }

.bz-guide-item:hover { background: rgba(240, 93, 35, 0.03); }

html:not(.dark) .bz-guide-item {
  background: rgba(255,255,255,0.7);
  border-bottom-color: rgba(15, 23, 42, 0.05);
}

html:not(.dark) .bz-guide-item:hover { background: rgba(240, 93, 35, 0.025); }

.bz-guide-item__left {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 200px;
  flex-shrink: 0;
}

.bz-guide-item__letter {
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #F05D23;
  background: rgba(240, 93, 35, 0.1);
  border: 1px solid rgba(240, 93, 35, 0.2);
  border-radius: 6px;
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bz-guide-item__icon-wrap {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}

html:not(.dark) .bz-guide-item__icon-wrap {
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.06);
}

.bz-guide-item__icon-wrap .bz-lucide { width: 14px; height: 14px; }

.bz-guide-item__label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f5f5f0;
  line-height: 1.3;
}

html:not(.dark) .bz-guide-item__label { color: #1e293b; }

.bz-guide-item__body {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #94a3b8;
  padding-top: 0.125rem;
}

html:not(.dark) .bz-guide-item__body { color: #475569; }

@media (max-width: 640px) {
  .bz-guide-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
  }
  .bz-guide-item__left { min-width: unset; }
}

/* ══════════════════════════════════════════════════════════════════
   FEATURE 14 — OpenDyslexic / Lexend Reading Mode
   ══════════════════════════════════════════════════════════════════ */
.bz-dyslexic-active #rsvp-text,
.bz-dyslexic-active .bz-rsvp-text {
  font-family: 'Lexend', sans-serif !important;
  font-weight: 400 !important;
  word-spacing: 0.22em !important;
  letter-spacing: 0.06em !important;
  line-height: 1.35 !important;
}

#dyslexic-toggle {
  font-family: 'Lexend', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: inherit;
}

#dyslexic-toggle.is-active {
  background: rgba(240, 93, 35, 0.12) !important;
  color: #f05d23 !important;
  border: 1px solid rgba(240, 93, 35, 0.3) !important;
  box-shadow: 0 0 0 3px rgba(240, 93, 35, 0.15) !important;
}

html.dark #dyslexic-toggle.is-active {
  background: rgba(240, 93, 35, 0.14) !important;
}

/* ══════════════════════════════════════════════════════════════════
   FEATURE 15 — Pomodoro-Zen: Eye Health Notification
   ══════════════════════════════════════════════════════════════════ */
#bz-eye-health {
  background: rgba(10, 11, 16, 0.0);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.bz-eye-health-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 3rem;
  background: rgba(15, 20, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: min(90vw, 380px);
  animation: bz-eye-card-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bz-eye-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bz-eye-health-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.bz-eye-health-title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #f5f5f0;
  margin: 0;
}

.bz-eye-health-body {
  font-size: 0.9375rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.bz-eye-health-ring {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bz-eye-ring-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.bz-eye-countdown {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f05d23;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

.bz-eye-health-skip {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.4rem 1.25rem;
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bz-eye-health-skip:hover {
  color: #f5f5f0;
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
