/* ============================================================
   VELUNE — Design System
   Palette: White · Black (monochrome, professional)
   Fonts: Fredoka (brand / logo-style) · Geist Sans · Inter · Atkinson
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Fredoka:wght@500;600;700&family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&display=swap');
@import url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/style.min.css');

:root {
  /* Core palette — white / black / gold */
  --bg:           #ffffff;
  --bg-alt:       #f7f7f7;
  --bg-elevated:  #fafafa;
  --text:         #0a0a0a;
  --text-muted:   #525252;
  --text-subtle:  #737373;
  --border:       #e5e5e5;
  --border-strong:#d4d4d4;
  --surface:      #ffffff;
  /* Accent = black only (no gold) — premium uses solid black */
  --accent:       #0a0a0a;
  --premium:      #0a0a0a;
  --danger:       #b91c1c;
  --success:      #166534;
  --info:         #0a0a0a;

  /* Radii */
  --radius-sm:    0.375rem;
  --radius:       0.5rem;
  --radius-md:    0.75rem;
  --radius-lg:    1rem;
  --radius-xl:    1.25rem;
  --radius-full:  999px;

  /* Shadows */
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow:       0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg:    0 8px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-focus: 0 0 0 3px rgba(10, 10, 10, 0.12);

  /* Typography */
  --font-sans:    'Geist Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    var(--font-sans);
  --font-head:    'Geist Sans', 'Inter', system-ui, sans-serif;
  /* Matches bubble wordmark feel from official logo */
  --font-brand:   'Fredoka', 'Geist Sans', system-ui, sans-serif;
  --font-dyslexic:'Atkinson Hyperlegible', 'OpenDyslexic', 'Comic Sans MS', sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Layout */
  --nav-h: 64px;
  --container: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration: 180ms;
}

/* Font preference modes */
body.font-geist {
  --font-body: 'Geist Sans', 'Inter', system-ui, sans-serif;
  --font-head: 'Geist Sans', 'Inter', system-ui, sans-serif;
}
body.font-inter {
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Inter', system-ui, sans-serif;
}
body.font-dyslexic,
body.font-dyslexic * {
  font-family: var(--font-dyslexic) !important;
  letter-spacing: 0.02em;
  word-spacing: 0.05em;
  line-height: 1.7;
}
/* Brand wordmark always keeps logo-style type (or logo images) */
body.font-dyslexic .brand-text,
body.font-dyslexic .brand-text * {
  font-family: var(--font-brand) !important;
  letter-spacing: -0.02em;
  word-spacing: normal;
  line-height: 1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
canvas { max-width: 100%; }
button, input, select, textarea { font-family: inherit; max-width: 100%; }
input, textarea { outline: none; }

/* Keep flex/grid children from forcing horizontal overflow */
main, section, article, aside, header, footer,
.container, .navbar-inner, .auth-shell, .auth-form-panel,
.hero-inner, .hero-left, .globe-wrap, .dash-main {
  min-width: 0;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

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

/* ── Page Loader ─────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; background: var(--bg); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo img {
  height: 2rem;
  width: auto;
  max-width: 9rem;
  display: block;
  object-fit: contain;
}
.loader-logo {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--text);
}
.loader-logo::after {
  content: '';
  display: block; width: 40%; height: 2px; margin: 0.65rem auto 0;
  background: var(--text);
  animation: loaderBar 1.1s ease infinite;
}
@keyframes loaderBar {
  0% { transform: scaleX(0.2); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.2); opacity: 0.4; }
}

/* ── Toast ───────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 8000;
  display: flex; flex-direction: column; gap: 0.5rem;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.1rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: slideIn 0.25s var(--ease); max-width: 340px;
  pointer-events: auto; background: var(--text); color: #fff;
  border: 1px solid var(--text);
}
.toast svg { flex-shrink: 0; width: 16px; height: 16px; }
.toast-success { background: #0a0a0a; }
.toast-error   { background: #450a0a; border-color: #7f1d1d; }
.toast-info    { background: #0a0a0a; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Typography ──────────────────────────────────────────── */
.display {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.03em;
}
.headline {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.02em;
}
.page-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600; letter-spacing: -0.02em;
}
.label {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.label.muted { color: var(--text-subtle); }
.muted { color: var(--text-muted); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.65rem 1.2rem; border-radius: 0.55rem;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  white-space: nowrap; text-decoration: none; font-family: var(--font-body); line-height: 1.2;
  letter-spacing: -0.01em;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Solid black CTA — high contrast, always readable */
.btn-primary  { background: #0a0a0a; color: #ffffff; border-color: #0a0a0a; }
.btn-primary:hover:not(:disabled) { background: #262626; border-color: #262626; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
/* Outlined — clear secondary action */
.btn-outline  { background: #ffffff; color: #0a0a0a; border-color: #d4d4d4; }
.btn-outline:hover:not(:disabled) { border-color: #0a0a0a; background: #fafafa; color: #0a0a0a; }
/* Ghost — tertiary, still readable */
.btn-ghost    { background: transparent; color: #0a0a0a; border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: #f5f5f5; color: #0a0a0a; }
/* Premium same as primary (monochrome) */
.btn-premium  { background: #0a0a0a; color: #ffffff; border-color: #0a0a0a; font-weight: 600; }
.btn-premium:hover:not(:disabled) { background: #262626; border-color: #262626; color: #fff; }
/* On dark / featured cards */
.pricing-card.featured .btn-premium,
.pricing-card.featured .btn-primary,
[style*="background:var(--text)"] .btn-primary,
.card.dark .btn-primary {
  background: #ffffff; color: #0a0a0a; border-color: #ffffff;
}
.pricing-card.featured .btn-premium:hover,
.pricing-card.featured .btn-primary:hover {
  background: #f5f5f5; color: #0a0a0a; border-color: #f5f5f5;
}
.pricing-card.featured .btn-outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.35);
}
.pricing-card.featured .btn-outline:hover {
  background: rgba(255,255,255,.1); border-color: #fff; color: #fff;
}
.btn-danger   { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #991b1b; }
.btn-lg  { padding: 0.9rem 1.6rem; font-size: 0.9375rem; border-radius: 0.65rem; }
.btn-sm  { padding: 0.42rem 0.85rem; font-size: 0.8rem; }
.btn-icon { padding: 0.5rem; aspect-ratio: 1; min-width: 2.35rem; min-height: 2.35rem; }
/* Full-width CTA in cards */
.btn.btn-block, .btn[style*="width:100%"] { width: 100%; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-body { padding: 1.5rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; background: var(--bg);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  margin-bottom: 1.1rem; background: var(--surface);
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text); flex-shrink: 0;
}
.hero-headline { color: var(--text); margin-bottom: 1.25rem; }
.hero-headline em { font-style: normal; color: var(--text-muted); font-weight: 500; }
.hero-sub { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; max-width: 520px; margin-bottom: 2rem; }
.hero-cta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

/* ── Stats ───────────────────────────────────────────────── */
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; text-align: center;
}
.stat-value {
  font-family: var(--font-head); font-size: 2.25rem; font-weight: 600;
  line-height: 1; letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.75rem; color: var(--text-muted); margin-top: 0.4rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
}

/* Dashboard stat cards — monochrome + gold accent */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card-v2 {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.35rem 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.stat-card-v2:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card-v2::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--text); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stat-icon {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
  color: var(--text); flex-shrink: 0;
}
.stat-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem; }
.stat-num {
  font-size: 2rem; font-weight: 600; line-height: 1;
  letter-spacing: -0.03em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-trend {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 0.72rem; font-weight: 600; padding: 3px 7px;
  border-radius: var(--radius-full); white-space: nowrap;
}
.stat-trend.up   { background: rgba(21, 128, 61, 0.1); color: var(--success); }
.stat-trend.down { background: rgba(220, 38, 38, 0.1); color: var(--danger); }
.stat-trend.neu  { background: var(--bg-alt); color: var(--text-muted); }
.stat-spark { display: block; width: 100%; height: 32px; margin-top: 0.15rem; }
.stat-lbl { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); }

/* ── Section header ──────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem;
}
.section-title {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -0.02em;
}

/* ── Shelf ───────────────────────────────────────────────── */
.shelf {
  display: flex; gap: 1rem; overflow-x: auto;
  padding-bottom: 1rem; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  max-width: 100%;
  width: 100%;
  margin-inline: 0;
}
.shelf::-webkit-scrollbar { display: none; }

/* ── Book Card ───────────────────────────────────────────── */
.book-card {
  flex: 0 0 min(160px, 42vw);
  width: min(160px, 42vw);
  max-width: 100%;
  position: relative; border-radius: var(--radius-md);
  overflow: hidden; scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  text-decoration: none; color: inherit;
  min-width: 0;
}
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.book-card .cover-wrap {
  position: relative; aspect-ratio: 2/3; background: var(--bg-alt); overflow: hidden;
}
.book-card .cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; padding: 1rem;
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 500;
  text-align: center; line-height: 1.4;
  background: #0a0a0a; color: rgba(255, 255, 255, 0.85);
}
.book-card .meta {
  padding: 0.75rem 0.85rem 0.9rem; display: flex; flex-direction: column; gap: 0.2rem;
}
.book-card .meta-title {
  font-size: 0.8125rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.book-card .meta-author {
  font-size: 0.75rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.book-card .meta-rating {
  font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem;
  display: flex; align-items: center; gap: 0.25rem;
}
.badge {
  position: absolute; top: 0.5rem; left: 0.5rem; padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm); font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; z-index: 2;
}
.badge-premium { background: #0a0a0a; color: #fff; }
.badge-new     { background: #fff; color: #0a0a0a; border: 1px solid #0a0a0a; }
.badge-free    { background: rgba(0, 0, 0, 0.55); color: #fff; backdrop-filter: blur(4px); }

/* Legacy overlay (kept for safety, unused on new cards) */
.overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0.85rem; opacity: 0; transition: opacity var(--duration); z-index: 1;
  pointer-events: none;
}

/* ── Grid ────────────────────────────────────────────────── */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: 1rem;
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.25rem;
}
.pricing-card.featured {
  background: var(--text); color: #fff; border-color: var(--text);
  box-shadow: var(--shadow-lg); position: relative;
}
.pricing-card.featured::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: #fff; opacity: 0.25;
}
.pricing-price {
  font-family: var(--font-head); font-size: 2.75rem; font-weight: 600;
  line-height: 1; letter-spacing: -0.03em;
}
.pricing-period { font-size: 0.875rem; color: var(--text-muted); }
.pricing-card.featured .pricing-period { color: rgba(255, 255, 255, 0.55); }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* ── Brand mark (logo image OR bubble logo type) ─────────── */
.brand-text {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-style: normal;
  white-space: nowrap;
  line-height: 1.1;
}
.brand-text--inline {
  white-space: normal;
}
.brand-text--sm { font-size: 0.95em; font-weight: 600; }
.brand-text--lg { font-size: 1.35em; font-weight: 700; }
.brand-text--xl { font-size: 1.75em; font-weight: 700; letter-spacing: -0.03em; }

.brand-mark,
.brand-logo {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 0;
}
.brand-mark img,
.brand-logo img,
.nav-logo img {
  display: block;
  height: 1.65rem;
  width: auto;
  max-width: 9.5rem;
  object-fit: contain;
}
.brand-mark--sm img { height: 1.15rem; max-width: 6.5rem; }
.brand-mark--md img { height: 1.5rem; max-width: 8.5rem; }
.brand-mark--lg img,
.nav-logo--lg img,
.brand-logo--lg {
  height: 2.15rem;
  max-width: 12rem;
}
.brand-mark--footer img,
.nav-logo--footer img,
.brand-logo--footer {
  height: 1.85rem;
  max-width: 10rem;
  margin-bottom: 0.85rem;
}
/* Inline logo sitting in a sentence (copyright, labels) */
.brand-mark--inline {
  display: inline-flex;
  margin: 0 0.15em;
  vertical-align: -0.2em;
}
.brand-mark--inline img {
  height: 1.05em;
  max-width: 5.5em;
}

.nav-logo {
  font-family: var(--font-brand); font-size: 1.25rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text); flex-shrink: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.auth-visual .nav-logo img,
.nav-logo--invert img {
  filter: brightness(0) invert(1);
}
.nav-links { display: flex; align-items: center; gap: 0.1rem; flex: 1; min-width: 0; }
.nav-links a {
  padding: 0.45rem 0.7rem; border-radius: 0.5rem; font-size: 0.8125rem;
  color: var(--text-muted); transition: color 0.15s ease, background 0.15s ease;
  font-weight: 500; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-links a.active {
  color: var(--text); background: var(--bg-alt); font-weight: 600;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
}
.nav-actions .btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8125rem; border-radius: 0.5rem; white-space: nowrap; }

/* ── Search ──────────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 0.75rem; width: 100%;
  position: relative; transition: border-color var(--duration), box-shadow var(--duration);
}
.search-bar:focus-within { border-color: var(--text); box-shadow: var(--shadow-focus); }
.search-bar .icon { color: var(--text-muted); flex-shrink: 0; display: flex; }
.search-bar input {
  flex: 1; border: none; background: transparent; padding: 0.6rem 0;
  font-size: 0.875rem; color: var(--text); outline: none;
}
.search-bar input::placeholder { color: var(--text-subtle); }
.search-suggestions {
  position: absolute; top: calc(100% + 0.35rem); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 300; overflow: hidden;
}
.search-suggestions.hidden { display: none; }
.suggestion-item {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1rem;
  font-size: 0.875rem; color: var(--text); transition: background 0.12s;
  width: 100%; text-align: left; background: transparent; border: none;
  cursor: pointer; font-family: inherit; text-decoration: none;
}
.suggestion-item:hover { background: var(--bg-alt); }
.suggestion-item svg { flex-shrink: 0; color: var(--text-muted); width: 14px; height: 14px; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: 240px; flex-shrink: 0; background: var(--surface);
  border-right: 1px solid var(--border); padding: 1.5rem 1rem;
  display: flex; flex-direction: column;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow-y: auto; scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.sidebar-logo img {
  display: block;
  height: 1.5rem;
  width: auto;
  max-width: 8.5rem;
  object-fit: contain;
}
.sidebar-logo {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.02em; padding: 0.25rem 0.5rem; margin-bottom: 1.5rem;
}
.sidebar-section {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-subtle); padding: 0.5rem;
  margin: 0.75rem 0 0.25rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.75rem; border-radius: var(--radius); font-size: 0.875rem;
  color: var(--text-muted); transition: background var(--duration), color var(--duration);
  cursor: pointer; border: none; background: none;
  width: 100%; text-align: left; text-decoration: none; font-family: var(--font-body); font-weight: 500;
}
.sidebar-link:hover, .sidebar-link.active { background: var(--bg-alt); color: var(--text); }
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; }
.sidebar-link.active { border-left: 2px solid var(--text); font-weight: 600; }

/* ── Tabs ────────────────────────────────────────────────── */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.form-hint  { font-size: 0.78rem; color: var(--text-muted); }
.form-input {
  width: 100%; padding: 0.65rem 0.875rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.9rem; color: var(--text);
  background: var(--surface); transition: border-color var(--duration), box-shadow var(--duration);
  font-family: var(--font-body);
}
.form-input:focus { border-color: var(--text); box-shadow: var(--shadow-focus); }
.form-input::placeholder { color: var(--text-subtle); }
select.form-input { cursor: pointer; appearance: none; }

/* ── Modals ──────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 600;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.hidden { display: none; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2rem; width: 100%; max-width: 520px;
  box-shadow: var(--shadow-lg); animation: modalIn 0.2s var(--ease);
  border: 1px solid var(--border);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.modal-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }

/* ── Progress ────────────────────────────────────────────── */
.progress-bar { height: 4px; background: var(--bg-alt); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-full); background: var(--text); transition: width 0.4s var(--ease); }
.progress-fill.accent { background: var(--text); }

/* ── Divider ─────────────────────────────────────────────── */
.divider-text {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.8rem; color: var(--text-muted); text-align: center;
}
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Chips ───────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.85rem; border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: 0.8rem; cursor: pointer;
  transition: all var(--duration); background: transparent;
  color: var(--text-muted); font-family: var(--font-body); font-weight: 500;
  text-decoration: none;
}
.chip:hover, .chip.active, .chip-active { border-color: var(--text); background: var(--text); color: #fff; }
.author-subnav {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  padding: 0 1rem 1.5rem; max-width: 960px; margin: 0 auto;
  width: 100%;
}
.author-chip { gap: .4rem; }
.author-chip-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.author-chip-icon svg { display: block; width: 15px; height: 15px; }
/* Mobile: icon-only pills in a responsive grid (labels hidden) */
@media (max-width: 640px) {
  .author-subnav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .45rem;
    padding: 0 .85rem 1.25rem;
    max-width: 420px;
  }
  .author-chip {
    width: 100%;
    justify-content: center;
    padding: .65rem .35rem;
    min-height: 2.75rem;
    border-radius: 999px;
  }
  .author-chip-label { display: none !important; }
  .author-chip-icon svg { width: 18px; height: 18px; }
}
@media (max-width: 380px) {
  .author-subnav { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 280px; }
}

/* ── Toggle ──────────────────────────────────────────────── */
.toggle { position: relative; width: 2.4rem; height: 1.4rem; flex-shrink: 0; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0; background: var(--border);
  border-radius: var(--radius-full); transition: background 0.2s; cursor: pointer;
}
.toggle input:checked ~ .toggle-track { background: var(--text); }
.toggle-thumb {
  position: absolute; width: 1rem; height: 1rem; left: 0.2rem; top: 0.2rem;
  background: #fff; border-radius: 50%; transition: transform 0.2s;
  pointer-events: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.toggle input:checked ~ .toggle-thumb { transform: translateX(1rem); }

/* ── Table ───────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  max-width: 100%;
}
.table-wrapper table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table-wrapper thead th {
  padding: 0.75rem 1rem; background: var(--bg-alt); text-align: left;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table-wrapper tbody td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-wrapper tbody tr:last-child td { border-bottom: none; }
.table-wrapper tbody tr:hover td { background: var(--bg-alt); }

/* ── Spinner / Empty ─────────────────────────────────────── */
.spinner {
  display: inline-block; width: 1.25rem; height: 1.25rem;
  border: 2px solid var(--border); border-top-color: var(--text);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 3.5rem 2rem;
  background: var(--bg-alt); border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.empty-state .empty-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--text-muted);
}
.empty-state .empty-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.empty-state h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
.empty-state p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; max-width: 320px; }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, #ebebeb 50%, var(--bg-alt) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Greeting ────────────────────────────────────────────── */
.greeting-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.55rem;
}
.greeting-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  flex-shrink: 0;
}
.greeting-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.greeting-phrase {
  display: inline-block; min-width: 0;
  /* system stack so JA/KO/ZH/AR/HI etc. render in native script */
  font-family: var(--font-head), "Segoe UI", "Noto Sans", "Noto Sans JP",
    "Noto Sans KR", "Noto Sans SC", "Noto Sans Arabic", "Noto Sans Devanagari",
    system-ui, sans-serif;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.greeting-phrase.is-changing { opacity: 0; transform: translateY(6px); }
.greeting-lang {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 0.2rem 0.5rem; border-radius: var(--radius-full);
  font-variant-numeric: tabular-nums;
}

/* ── Progress row (library / dashboard) ──────────────────── */
.progress-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-md); text-decoration: none;
  color: var(--text); transition: box-shadow var(--duration), border-color var(--duration);
  background: var(--surface);
}
.progress-row:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.progress-thumb {
  width: 3.5rem; height: 5rem; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.progress-thumb img { width: 100%; height: 100%; object-fit: cover; }
.progress-thumb svg { width: 20px; height: 20px; opacity: 0.5; }

/* ── Page header band ────────────────────────────────────── */
.page-hero {
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; align-items: start;
}
.footer-col-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col-links a {
  font-size: 0.875rem; color: var(--text-muted); transition: color var(--duration);
}
.footer-col-links a:hover { color: var(--text); }
.footer-col-label {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-subtle); margin-bottom: 1rem; font-weight: 600;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; padding-top: 2rem; margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.site-footer {
  border-top: 1px solid var(--border); padding: 4rem 0 2.5rem; background: var(--bg-alt);
}

/* ── Premium upsell ──────────────────────────────────────── */
.premium-upsell-card {
  background: #0a0a0a; border-radius: var(--radius-md); padding: 1.25rem; color: #fff;
  border: 1px solid #1a1a1a;
}
.premium-upsell-card .label { color: rgba(255,255,255,0.55); margin-bottom: 0.5rem; }
.premium-upsell-card p { font-size: 0.8rem; opacity: 0.75; line-height: 1.5; margin-bottom: 1rem; }

/* ── Auth shell ──────────────────────────────────────────── */
.auth-shell { min-height: calc(100vh - var(--nav-h)); display: flex; width: 100%; max-width: 100%; }
.auth-visual {
  flex: 0 0 42%; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2.5rem; background: #0a0a0a; color: #fff;
}
.auth-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; z-index: 0;
}
.auth-visual .overlay-grad {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.8) 100%);
}
.auth-visual > * { position: relative; z-index: 2; }
.auth-form-panel {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 2rem; overflow-y: auto; min-width: 0; width: 100%;
}
.auth-form-inner { width: 100%; max-width: 400px; min-width: 0; }

/* ── Hidden / responsive ─────────────────────────────────── */
.hidden { display: none !important; }
.hide-mobile  { }
.hide-desktop { display: none !important; }

@media (max-width: 900px) {
  .navbar-inner { gap: 0.5rem; }
  .nav-actions .btn-sm { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
}

@media (max-width: 768px) {
  .hide-mobile  { display: none !important; }
  .hide-desktop { display: flex !important; }
  .hero { min-height: auto; padding-top: 1.5rem; }
  .section    { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  .sidebar { display: none; }
  .pricing-card { padding: 1.5rem; }
  .pricing-card.featured { transform: none; }
  .pricing-price { font-size: 2.25rem; }
  .container {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: 1 / -1; }
  .auth-visual { display: none; }
  .auth-shell { min-height: calc(100vh - var(--nav-h)); }
  .auth-form-panel { padding: 1.75rem 1.25rem; }
  .nav-logo img { height: 1.45rem; max-width: 7.5rem; }
  .nav-actions { gap: 0.25rem; }
  .nav-actions .btn-sm { padding: 0.38rem 0.6rem; font-size: 0.75rem; }
  .card-body { padding: 1.15rem; }
  .page-hero { padding: 1.75rem 0; }
  .empty-state { padding: 2.5rem 1.25rem; }
  .modal { padding: 1.35rem; }
  #toast-container {
    left: 0.75rem;
    right: 0.75rem;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    align-items: stretch;
  }
  .toast { max-width: none; }
  .display { font-size: clamp(2rem, 9vw, 3rem); }
  .headline { font-size: clamp(1.45rem, 6vw, 2rem); }
  .page-title { font-size: clamp(1.4rem, 6vw, 1.85rem); }
  .hero-cta .btn-lg { padding: 0.8rem 1.2rem; font-size: 0.9rem; }
  .hero-sub { font-size: 0.98rem; max-width: 100%; }
  .progress-row { gap: 0.75rem; padding: 0.85rem; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: unset; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.65rem; }
  .grid-auto {
    grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr));
    gap: 0.75rem;
  }
  .container {
    padding-left: max(0.875rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.875rem, env(safe-area-inset-right, 0px));
  }
  .navbar-inner {
    padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
    gap: 0.35rem;
  }
  /* Keep nav from overflowing: Sign In lives in drawer on tiny screens */
  .nav-actions > a.btn-ghost[data-auth="guest"] { display: none !important; }
  .nav-actions .btn-sm { padding: 0.36rem 0.55rem; font-size: 0.72rem; }
  .nav-logo img { height: 1.3rem; max-width: 6.75rem; }
  .btn-lg { padding: 0.75rem 1.1rem; font-size: 0.875rem; }
  .hero-cta { gap: 0.5rem; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; min-width: min(100%, 9.5rem); }
  .auth-form-panel { padding: 1.35rem 1rem; }
  .site-footer { padding: 2.5rem 0 1.75rem; }
}

/* Inline footers that skipped .footer-grid still collapse on mobile */
@media (max-width: 768px) {
  footer > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }
  footer > .container > div[style*="grid-template-columns"] > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  footer > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  footer > .container > div[style*="grid-template-columns"] > div:first-child {
    grid-column: unset;
  }
}

/* Book detail page fallbacks (page also has dedicated styles) */
#book-page { overflow-x: clip; max-width: 100%; }

/* Long words / URLs never push the layout sideways */
p, h1, h2, h3, h4, h5, h6, li, td, th, label, .hero-sub, .muted, .page-title, .display, .headline {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pulse   { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes slideIn { from { transform: translateX(0.75rem); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes modalIn { from { transform: scale(0.97) translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Icon utility ────────────────────────────────────────── */
.icon-inline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1em; height: 1em; vertical-align: -0.125em;
}
.icon-inline svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Nav menu items (shared with navbar component) ───────── */
.nav-menu-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; font-size: 0.875rem;
  color: var(--text-muted); text-decoration: none;
  background: none; border: none; cursor: pointer;
  width: 100%; text-align: left; box-sizing: border-box;
  font-family: var(--font-body); font-weight: 500;
  transition: background var(--duration), color var(--duration);
}
.nav-menu-item:hover { background: var(--bg-alt); color: var(--text); }
.nav-menu-item--admin { color: var(--text); font-weight: 600; }
.nav-menu-item--danger { color: var(--danger); }
.nav-menu-item svg { width: 14px; height: 14px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; }
[data-auth="admin"] { display: none !important; }
body.is-admin [data-auth="admin"] { display: flex !important; }

/* ── Skip link ───────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--text); color: #fff; padding: 0.5rem 1rem; font-size: 0.875rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── Font preference control ─────────────────────────────── */
.font-pref-bar {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.font-pref-bar button {
  font-size: 0.75rem; padding: 0.3rem 0.65rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  cursor: pointer; font-weight: 500; transition: all var(--duration);
}
.font-pref-bar button.active,
.font-pref-bar button:hover {
  border-color: var(--text); color: var(--text); background: var(--bg-alt);
}

/* -- Globe section (homepage) ----------------------------- */
#globe-section {
  padding: 5rem 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
#globe-canvas {
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--border), 0 24px 80px rgba(0,0,0,.12);
  cursor: grab;
  width: 400px;
  height: 400px;
  max-width: calc(100vw - 3rem);
  max-height: calc(100vw - 3rem);
  background: #050510;
}
#globe-canvas:active { cursor: grabbing; }
.globe-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-left, 0px)) 0 max(1rem, env(safe-area-inset-right, 0px));
  width: 100%;
  box-sizing: border-box;
}
.globe-stats { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.globe-stat-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color var(--duration), box-shadow var(--duration);
  min-width: 0;
}
.globe-stat-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.globe-stat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text); flex-shrink: 0;
}
@media (max-width: 860px) {
  .globe-wrap { grid-template-columns: 1fr; text-align: center; gap: 2rem; padding: 0 1rem; }
  .globe-wrap > div:last-child { order: -1; }
  .globe-stats { text-align: left; }
}
@media (max-width: 480px) {
  #globe-section { padding: 3rem 0; }
  .globe-wrap { padding: 0 0.875rem; gap: 1.5rem; }
  .globe-stat-row { padding: 0.85rem 1rem; }
}
