/* === DEEN DAILY — Modern Luxe === */

@font-face {
  font-family: "Omar Naskh";
  src: url("/static/fonts/omar-naskh-medium.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LPMQ Isyarat";
  src: url("/static/fonts/lpmq-isyarat.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Ink (deep emeralds, near black) */
  --ink-950: #061811;
  --ink-900: #0A1F18;
  --ink-800: #0F2A20;
  --ink-700: #163828;
  --ink-600: #1F4E3A;
  --ink-500: #2C7058;
  --ink-400: #4A8C77;
  --ink-300: #79AC9B;
  --ink-200: #B8D2C7;
  --ink-100: #DCE9E2;

  /* Champagne / gold accents */
  --gold-50:  #FAF4E2;
  --gold-100: #F2E5BC;
  --gold-200: #E5D195;
  --gold-300: #D4B86A;
  --gold-400: #C9A961;
  --gold-500: #B89248;
  --gold-600: #8E6D2C;

  /* Cream / surface — warm luxury */
  --cream-50:  #FBF8F0;
  --cream-100: #F6F0E1;
  --cream-200: #EDE3CB;
  --cream-300: #E0D2B0;

  /* Accent = champagne gold (luxury Islamic) */
  --accent-50:  #F8F1DA;
  --accent-100: #F2E5BC;
  --accent-200: #E5D195;
  --accent-300: #D4B86A;
  --accent-400: #C9A961;
  --accent-500: #B89248;
  --accent-600: #8E6D2C;
  --accent-700: #6B5320;

  /* Charcoal / text — warm, refined */
  --ink-text:  #1B1F1D;
  --text-1:    #1B1F1D;
  --text-2:    #4F5651;
  --text-3:    #7A8079;
  --text-4:    #A8ADA6;

  /* Lines & surfaces */
  --line:        rgba(11, 31, 24, 0.06);
  --line-strong: rgba(11, 31, 24, 0.10);
  --surface:     #FFFFFF;
  --surface-2:   #FBFAF6;
  --surface-3:   #F6F0E1;
  --bg:          #F5F1E8;
  --bg-warm:     #F8F4EA;

  /* Brand-anchor: deep emerald (luxury Islamic). Stays dark in both modes. */
  --brand-deep:  #0A1F18;
  --brand-mid:   #163828;
  --brand-light: #1F4E3A;
  --on-brand:    #FBF8F0;
  --on-gold:     #0A1F18;
  --on-accent:   #0A1F18;
  --text-strong: #0A1F18;  /* primary heading color (flips in dark mode) */

  /* Shadows — multi-layer, soft */
  --sh-xs: 0 1px 2px rgba(11, 31, 24, 0.04);
  --sh-sm: 0 1px 2px rgba(11, 31, 24, 0.04), 0 1px 1px rgba(11, 31, 24, 0.03);
  --sh-md: 0 2px 4px rgba(11, 31, 24, 0.04), 0 8px 24px rgba(11, 31, 24, 0.06);
  --sh-lg: 0 4px 8px rgba(11, 31, 24, 0.04), 0 24px 64px rgba(11, 31, 24, 0.10);
  --sh-xl: 0 8px 16px rgba(11, 31, 24, 0.05), 0 40px 96px rgba(11, 31, 24, 0.12);
  --sh-glow: 0 0 0 1px rgba(212, 184, 106, 0.15), 0 8px 32px rgba(212, 184, 106, 0.18);

  /* Radius — slightly bigger across the board for modern softness */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Type — Geist (sama dengan growallet) */
  --font-display: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-arabic: "Omar Naskh", "LPMQ Isyarat", "Amiri", "Scheherazade New", serif;

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Ambient (used in body background) */
  --ambient-1: rgba(212, 184, 106, 0.08);
  --ambient-2: rgba(15, 42, 32, 0.05);

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
}

/* ============================================================
   DARK MODE — "Calm" direction
   Deep navy-emerald, warm cream text, gold + sage accents.
   ============================================================ */
[data-theme="dark"] {
  color-scheme: dark;

  --ink-950: #03100B;
  --ink-900: #0A1F18;     /* keep as bg in both modes — text uses --text-strong */
  --ink-800: #163828;
  --ink-700: #1F4E3A;     /* sage emerald-ish */
  --ink-600: #5BA28C;
  --ink-500: #6BB8A0;
  --ink-400: #80C8B5;
  --ink-300: #9DD3C5;
  --ink-200: #BAE0D5;
  --ink-100: #DCEEE8;

  --gold-50:  #2A2410;
  --gold-100: #3D3416;
  --gold-200: #B89248;
  --gold-300: #D4B86A;
  --gold-400: #E0CC92;
  --gold-500: #EDD9A5;
  --gold-600: #F4E5C2;

  /* Cream scale in dark mode = elevated dark panels above bg.
     Must be progressively LIGHTER than --bg so cards stand out. */
  --cream-50:  #112019;
  --cream-100: #15281F;
  --cream-200: #1B3327;
  --cream-300: #244232;

  --ink-text: #E8DCC4;
  --text-1:   #E8DCC4;
  --text-2:   #B5AC97;
  --text-3:   #80796B;
  --text-4:   #545048;
  --text-strong: #F2E8D2;

  --line:        rgba(232, 220, 196, 0.08);
  --line-strong: rgba(232, 220, 196, 0.14);
  /* Elevation order (darkest → lightest): bg → bg-warm → surface → surface-2 → surface-3
     This makes .card (surface) clearly LIGHTER than body (bg) — cards become elevated panels. */
  --bg:          #050E0A;
  --bg-warm:     #08130D;
  --surface:     #15281F;
  --surface-2:   #1B3327;
  --surface-3:   #244232;

  --brand-deep:  #03100B;
  --brand-mid:   #0F261C;
  --brand-light: #1F4E3A;

  --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(0, 0, 0, 0.2);
  --sh-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
  --sh-lg: 0 4px 8px rgba(0, 0, 0, 0.3), 0 24px 64px rgba(0, 0, 0, 0.5);
  --sh-xl: 0 8px 16px rgba(0, 0, 0, 0.4), 0 40px 96px rgba(0, 0, 0, 0.6);

  --ambient-1: rgba(212, 184, 106, 0.06);
  --ambient-2: rgba(74, 140, 119, 0.05);
}

/* Smooth transition between modes */
html, body, .card, .btn, .field input, .field textarea, .field select,
.sidebar, .main, .audio-bar, .mobile-nav, .sheet, .modal {
  transition: background-color 0.4s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

* { box-sizing: border-box; }
*::selection { background: var(--gold-200); color: var(--on-gold); }
html, body { margin: 0; padding: 0; }

/* === Defensive overflow rules — prevent any element pushing layout wider than viewport === */
img, svg, video, canvas, iframe, picture { max-width: 100%; height: auto; }
pre, code { max-width: 100%; overflow-x: auto; word-wrap: break-word; overflow-wrap: anywhere; }
.card, .chat-bubble, .welcome-card, .ayah-row, .auth-card { min-width: 0; }
/* Long words / URLs in body text wrap instead of pushing parent wide */
p, .muted, .tagline, .hadith-card, .ai-reflection, .chat-bubble { overflow-wrap: anywhere; word-break: break-word; }


html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11", "ss02", "cv02";
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 20% 0%, var(--ambient-1), transparent 50%),
    radial-gradient(circle at 80% 100%, var(--ambient-2), transparent 50%);
  background-attachment: fixed;
}

/* === DARK MODE AMBIENT (brand-tinted, tenant-adaptive) === */
[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(var(--accent-rgb, 212, 184, 106), 0.10), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(var(--brand-deep-rgb, 31, 78, 58), 0.18), transparent 55%),
    radial-gradient(ellipse at 0% 60%, rgba(var(--brand-deep-rgb, 74, 140, 119), 0.10), transparent 50%);
}
[data-theme="dark"] body::before {
  /* Subtle star field */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(232, 220, 196, 0.4), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(232, 220, 196, 0.25), transparent),
    radial-gradient(2px 2px at 75% 22%, rgba(212, 184, 106, 0.3), transparent),
    radial-gradient(1px 1px at 88% 58%, rgba(232, 220, 196, 0.3), transparent),
    radial-gradient(1px 1px at 45% 78%, rgba(232, 220, 196, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 18% 88%, rgba(212, 184, 106, 0.2), transparent),
    radial-gradient(1px 1px at 62% 12%, rgba(232, 220, 196, 0.3), transparent);
  background-size: 100% 100%;
  background-attachment: fixed;
  opacity: 0.7;
}

/* In dark mode, welcome & pom display use brand-tinted glow (tenant-adaptive) */
[data-theme="dark"] .welcome-card {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(var(--accent-rgb, 212, 184, 106), 0.16), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(var(--brand-deep-rgb, 74, 140, 119), 0.18), transparent 55%),
    linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-mid) 60%, var(--brand-light) 100%);
  border-color: rgba(var(--accent-rgb, 212, 184, 106), 0.14);
}
[data-theme="dark"] .pom-display {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb, 212, 184, 106), 0.20), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(var(--brand-deep-rgb, 74, 140, 119), 0.14), transparent 50%),
    linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-mid) 100%);
}
[data-theme="dark"] .hadith-card,
[data-theme="dark"] .ai-reflection {
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 184, 106, 0.06), transparent 55%),
    var(--surface);
}
[data-theme="dark"] .auth-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 184, 106, 0.08), transparent 60%),
    var(--surface);
}

/* Mood verse card: in dark mode, deeper gradient based on mood tone */
[data-theme="dark"] .mood-verse-card {
  background:
    radial-gradient(circle at 100% 0%, var(--mood-bg-1), transparent 55%),
    var(--surface);
}

/* Mobile nav glass for dark mode */
[data-theme="dark"] .mobile-nav {
  background: rgba(10, 22, 18, 0.85);
  border-top-color: rgba(232, 220, 196, 0.08);
}
[data-theme="dark"] .mobile-nav a.active .ic {
  background: var(--cream-100);
  border-color: var(--line-strong);
}

/* Audio bar adjusts in dark mode */
[data-theme="dark"] .audio-bar {
  background: rgba(3, 16, 11, 0.92);
  border-top-color: rgba(212, 184, 106, 0.18);
}
[data-theme="dark"] .mobile-nav {
  background: rgba(10, 22, 18, 0.85);
  border-top-color: rgba(232, 220, 196, 0.08);
}

/* Sheet modal in dark mode */
[data-theme="dark"] .sheet { background: var(--surface-2); }

/* Make main content sit above star field */
.main, .sidebar, .landing, .auth-page { position: relative; z-index: 1; }

a { color: var(--ink-500); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--ink-700); }
hr { border: none; border-top: 1px solid var(--line); margin: var(--s-5) 0; }

/* === LAYOUT === */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, var(--brand-deep) 0%, #061811 100%);
  color: var(--on-brand);
  padding: var(--s-6) var(--s-4);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  border-right: 1px solid rgba(212, 184, 106, 0.06);
  overflow-y: auto;
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb, 212, 184, 106), 0.08), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(var(--brand-deep-rgb, 31, 78, 58), 0.10), transparent 50%);
  pointer-events: none;
}
.sidebar > * { position: relative; }

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  margin-bottom: var(--s-6);
}
.sidebar .brand-mark {
  width: 40px;
  height: 40px;
  background:
    radial-gradient(circle at 70% 25%, rgba(var(--accent-rgb, 212,184,106),0.18), transparent 60%),
    linear-gradient(135deg, var(--brand-light) 0%, var(--brand-mid) 60%, var(--brand-deep) 100%);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  box-shadow: 0 4px 12px rgba(11, 31, 24, 0.4), inset 0 1px 0 rgba(212, 184, 106, 0.15);
  padding: 6px;
}
.sidebar .brand-mark svg { width: 100%; height: 100%; }
.sidebar .brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--on-brand);
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: rgba(246, 240, 225, 0.65);
  font-size: 13.5px;
  font-weight: 450;
  letter-spacing: -0.005em;
  transition: all 0.2s var(--ease);
  position: relative;
}
.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-brand);
}
.sidebar nav a.active {
  background: linear-gradient(90deg, rgba(212, 184, 106, 0.15) 0%, rgba(212, 184, 106, 0.04) 100%);
  color: var(--gold-200);
}
.sidebar nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 16px rgba(212, 184, 106, 0.35);
}
.sidebar nav a .ic {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.sidebar nav a .ic svg { width: 18px; height: 18px; }
.sidebar nav a:hover .ic, .sidebar nav a.active .ic { opacity: 1; }

.sidebar .nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 240, 225, 0.35);
  padding: var(--s-4) 14px var(--s-2);
}

.sidebar .footer-area {
  padding-top: var(--s-4);
  border-top: 1px solid rgba(246, 240, 225, 0.06);
  margin-top: var(--s-3);
}
.sidebar .user-chip {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-2);
  border: 1px solid rgba(246, 240, 225, 0.05);
}
.sidebar .user-chip .name {
  color: var(--on-brand);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
}
.sidebar .user-chip .email {
  color: rgba(246, 240, 225, 0.45);
  font-size: 11px;
  margin-top: 2px;
}
.sidebar .footer-area a {
  display: block;
  padding: 6px 14px;
  font-size: 12px;
  color: rgba(246, 240, 225, 0.55);
  border-radius: var(--r-sm);
  transition: all 0.2s var(--ease);
}
.sidebar .footer-area a {
  display: block;
  padding: 8px 14px;
  font-size: 12px;
  color: rgba(246, 240, 225, 0.55);
  border-radius: var(--r-sm);
  transition: all 0.2s var(--ease);
  text-decoration: none;
}
.sidebar .footer-area a:hover { color: var(--gold-200); background: rgba(255,255,255,0.03); }
.sidebar .footer-area a.theme-toggle-link { color: var(--gold-300); }
.sidebar .footer-area a.install-btn { color: var(--ink-400); }

/* === MAIN === */
.main {
  /* Top padding: at least 32px on desktop (no safe-area), grows on iOS notch */
  padding: calc(max(env(safe-area-inset-top), 32px) + var(--s-5)) var(--s-7) var(--s-9);
  max-width: 1080px;
  width: 100%;
  min-width: 0;
  animation: fadeIn 0.4s var(--ease-out);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-head {
  margin-bottom: var(--s-6);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-strong);
}
.page-head h1 em {
  font-style: normal;
  color: var(--text-2);
  font-weight: 400;
}
.page-head p {
  color: var(--text-3);
  margin: 6px 0 0;
  font-size: 14px;
  letter-spacing: -0.005em;
}

/* === CARDS === */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.02);
  border: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.card.tight { padding: var(--s-4); }
.card.lg { padding: var(--s-6); }
.card h2, .card h3 {
  margin: 0 0 var(--s-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.card-row { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); min-width: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); min-width: 0; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* === BUTTONS — pill-shaped, bold (Nuvance signature) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-full);
  border: none;
  background: var(--brand-deep);
  color: var(--on-brand);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-mid); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 15, 31, 0.22); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(11, 15, 31, 0.15); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.ghost {
  background: var(--surface);
  color: var(--text-strong);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-xs);
}
.btn.ghost:hover { background: var(--cream-50); border-color: var(--text-3); }

.btn.gold {
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 100%);
  color: var(--on-gold);
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 6px 18px rgba(212, 184, 106, 0.3);
}
.btn.gold:hover {
  background: linear-gradient(180deg, var(--gold-200) 0%, var(--gold-400) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 10px 24px rgba(212, 184, 106, 0.4);
}

.btn.accent {
  background: linear-gradient(180deg, var(--accent-400) 0%, var(--accent-600) 100%);
  color: var(--on-accent);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 24px rgba(61, 77, 255, 0.32);
}
.btn.accent:hover {
  background: linear-gradient(180deg, var(--accent-300) 0%, var(--accent-500) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 12px 32px rgba(61, 77, 255, 0.42);
}

.btn.sm { padding: 8px 16px; font-size: 13px; }
.btn.lg { padding: 16px 32px; font-size: 15px; }
.btn.full { width: 100%; }
.btn.danger {
  background: transparent;
  color: #b34141;
  border: 1px solid rgba(179, 65, 65, 0.3);
}
.btn.danger::before { display: none; }
.btn.danger:hover { background: rgba(179, 65, 65, 0.06); border-color: #b34141; transform: translateY(-1px); }

/* === FORMS === */
.field { margin-bottom: var(--s-4); }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0;
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-1);
  transition: all 0.2s var(--ease);
  letter-spacing: -0.005em;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(31, 78, 58, 0.08);
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.45; }

/* === LANDING === */
.landing {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(212, 184, 106, 0.18), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(31, 78, 58, 0.10), transparent 50%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--cream-100) 100%);
  display: flex;
  flex-direction: column;
}
/* In dark mode, landing bg uses --bg (the darkest tone) so card surfaces stand out
   as elevated panels rather than being darker than the page background. */
[data-theme="dark"] .landing {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(212, 184, 106, 0.12), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(31, 78, 58, 0.20), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}
.landing header {
  padding: var(--s-5) var(--s-7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}
.landing .brand {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.03em;
}
.landing .brand .mark {
  width: 38px;
  height: 38px;
  background:
    radial-gradient(circle at 70% 25%, rgba(var(--accent-rgb, 212,184,106),0.18), transparent 60%),
    linear-gradient(135deg, var(--brand-light) 0%, var(--brand-mid) 60%, var(--brand-deep) 100%);
  color: var(--gold-300);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(11, 31, 24, 0.2);
  padding: 6px;
}
.landing .brand .mark svg { width: 100%; height: 100%; }
.landing .auth-links { display: flex; gap: var(--s-3); }

.landing .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--s-7) var(--s-5) var(--s-9);
  text-align: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.hero-inner { max-width: 820px; width: 100%; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(212, 184, 106, 0.10);
  border: 1px solid rgba(212, 184, 106, 0.25);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-600);
  letter-spacing: 0.08em;
  margin-bottom: var(--s-5);
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 88px);
  line-height: 0.96;
  margin: 0 0 var(--s-5);
  letter-spacing: -0.045em;
  color: var(--text-strong);
  font-weight: 600;
}
.hero h1 em {
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: 19px;
  color: var(--text-2);
  margin: 0 auto var(--s-6);
  line-height: 1.6;
  max-width: 620px;
  letter-spacing: -0.005em;
  font-weight: 400;
}
.hero .cta-row {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
}
.hero .preview {
  margin: var(--s-8) auto 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-xl);
  border: 1px solid var(--line);
  text-align: left;
  max-width: 760px;
  position: relative;
  overflow: hidden;
}
.hero .preview::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 184, 106, 0.4), transparent);
}
.hero .preview h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.hero .preview .sub {
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: var(--s-5);
  letter-spacing: -0.005em;
}
.preview-times {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (max-width: 600px) { .preview-times { grid-template-columns: repeat(3, 1fr); } }
.pt-cell {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 8px;
  text-align: center;
  transition: all 0.25s var(--ease);
}
.pt-cell .lbl {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.pt-cell .tm {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-strong);
  margin-top: 4px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.pt-cell.next {
  background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-mid) 100%);
  border-color: var(--brand-light);
  box-shadow: 0 12px 28px -8px rgba(11, 31, 24, 0.30);
}
.pt-cell.next .lbl { color: var(--gold-300); }
.pt-cell.next .tm { color: var(--gold-200); }

/* === LANDING V2 (conversion-focused, long scroll) === */
/* Force full-viewport width — overrides any parent .main max-width */
main.public-main { max-width: none !important; width: 100% !important; padding: 0 !important; }
.landing-v2 {
  background: var(--bg-warm);
  min-height: 100vh;
  width: 100%;
  max-width: none;
}
.landing-v2 > header,
.landing-v2 > section,
.landing-v2 > footer { width: 100%; max-width: none; }
.lp-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) { .lp-container { padding: 0 18px; } }

.lp-header {
  position: sticky;
  top: 0;
  background: rgba(248, 244, 234, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  z-index: 50;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
[data-theme="dark"] .lp-header { background: rgba(10, 22, 18, 0.85); border-bottom-color: rgba(232, 220, 196, 0.08); }
[data-theme="dark"] .lp-trust { background: var(--surface); }
[data-theme="dark"] .lp-section-alt { background: var(--surface); }
.lp-header .lp-container {
  display: flex;
  align-items: center;
  gap: 32px;
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}
.lp-brand-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #0F2A20, #061811);
  color: var(--gold-300);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 5px;
}
.lp-brand-mark svg { width: 100%; height: 100%; }
.lp-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  margin-left: 16px;
}
.lp-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.lp-nav a:hover { color: var(--text-strong); }
.lp-auth-links { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 720px) { .lp-nav { display: none; } }

.lp-hero {
  padding: 80px 0 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,184,106,0.18), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(31,78,58,0.10), transparent 50%);
}
.lp-hero-inner { max-width: 880px; margin: 0 auto; }
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(212, 184, 106, 0.12);
  border: 1px solid rgba(212, 184, 106, 0.25);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-600);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.lp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--text-strong);
  font-weight: 700;
  margin: 0 0 20px;
}
.lp-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-hero-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 36px;
  letter-spacing: -0.005em;
}
.lp-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.lp-hero-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.lp-trust {
  background: var(--surface);
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lp-trust-grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  text-align: center;
}
.lp-trust-grid .lp-stat { min-width: 120px; }
.lp-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.04em;
  line-height: 1;
}
.lp-stat-label {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 6px;
  letter-spacing: -0.005em;
}
@media (max-width: 720px) { .lp-trust-grid { grid-template-columns: repeat(2, 1fr); } }

.lp-section { padding: 80px 0; }
.lp-section-alt { background: var(--surface); }
.lp-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.lp-section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.lp-section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  font-weight: 700;
  margin: 0 0 16px;
}
.lp-section-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
  letter-spacing: -0.005em;
}

.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-feature {
  /* Match original screenshot: cream-bg cards with subtle outline (not white) */
  background: #F3EBD8;
  border: 1px solid rgba(196, 168, 110, 0.18);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  transition: all 0.3s var(--ease);
}
.lp-section-alt .lp-feature { background: var(--bg-warm); }
[data-theme="dark"] .lp-section-alt .lp-feature { background: var(--surface-2); }
.lp-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11, 31, 24, 0.08);
  border-color: rgba(212, 184, 106, 0.3);
}
.lp-feature-ic {
  /* Icon container: slightly lighter cream than card bg, dark stroke icon */
  width: 50px; height: 50px;
  background: #E8DFC9;
  color: #1B1F1D;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  border: none;
}
.lp-feature-ic svg { width: 26px; height: 26px; stroke-width: 1.6; }
.lp-feature h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.lp-feature p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}
@media (max-width: 880px) { .lp-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lp-feature-grid { grid-template-columns: 1fr; } }

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.lp-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
}
.lp-step-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 16px;
}
.lp-step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.lp-step p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 720px) { .lp-steps { grid-template-columns: 1fr; } }

.lp-pricing-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
}
.lp-pricing-grid > .lp-pricing-card {
  flex: 0 1 340px;
  max-width: 380px;
  min-width: 280px;
}
@media (max-width: 600px) {
  .lp-pricing-grid > .lp-pricing-card { flex: 1 1 100%; max-width: none; }
}

.lp-pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s var(--ease);
}
.lp-pricing-card.is-popular {
  border-color: var(--gold-400);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 184, 106, 0.12), transparent 70%),
    var(--surface);
  box-shadow: 0 16px 40px -8px rgba(212, 184, 106, 0.25);
  transform: scale(1.03);
  z-index: 1;
}
.lp-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--on-gold);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(212, 184, 106, 0.3);
}
.lp-pricing-save {
  display: inline-block;
  background: rgba(74, 140, 119, 0.15);
  color: #2d6e5d;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  align-self: flex-start;
}
.lp-pricing-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.lp-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.lp-price-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.04em;
  line-height: 1;
}
.lp-price-unit {
  font-size: 13px;
  color: var(--text-2);
}
.lp-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.lp-pricing-features li {
  font-size: 13.5px;
  color: var(--text-1);
  padding: 6px 0;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.lp-pricing-cta {
  width: 100%;
  margin-top: auto;
}
.lp-pricing-note {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.lp-pricing-note a { color: var(--gold-600); font-weight: 600; }

.lp-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-testimonial {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.lp-section-alt .lp-testimonial { background: var(--surface); }
.lp-testimonial-quote {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-strong);
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  font-style: italic;
}
.lp-testimonial-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-strong);
  letter-spacing: -0.015em;
}
.lp-testimonial-role {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
}
@media (max-width: 880px) { .lp-testimonials { grid-template-columns: 1fr; } }

.lp-faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.lp-faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
}
.lp-faq-q {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.015em;
  cursor: pointer;
  padding: 18px 22px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-faq-q::-webkit-details-marker { display: none; }
.lp-faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--gold-600);
  font-weight: 400;
  transition: transform 0.2s;
}
.lp-faq-item[open] .lp-faq-q::after { content: "−"; }
.lp-faq-a {
  padding: 0 22px 18px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}

.lp-final-cta { padding: 80px 0; }
.lp-final-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb, 212, 184, 106), 0.20), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(var(--brand-deep-rgb, 31, 78, 58), 0.30), transparent 55%),
    linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-mid) 100%);
  color: var(--on-brand);
  border-radius: var(--r-xl);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-final-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 184, 106, 0.5), transparent);
}
.lp-final-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.lp-final-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--on-brand);
}
.lp-final-sub {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 28px;
}

.lp-footer {
  background: var(--brand-deep);
  color: var(--on-brand);
  padding: 60px 0 30px;
}
.lp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.lp-footer .lp-brand { color: var(--on-brand); font-size: 18px; }
.lp-footer-tag {
  font-size: 13.5px;
  line-height: 1.6;
  opacity: 0.65;
  max-width: 320px;
}
.lp-footer-h {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 12px;
}
.lp-footer a {
  display: block;
  color: rgba(251, 248, 240, 0.7);
  font-size: 14px;
  text-decoration: none;
  padding: 4px 0;
}
.lp-footer a:hover { color: var(--on-brand); }
.lp-footer-copy {
  border-top: 1px solid rgba(251, 248, 240, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 720px) { .lp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .lp-footer-grid { grid-template-columns: 1fr; } }

/* === LEGACY landing (keep for fallback) === */
.feature-grid {
  margin-top: var(--s-9);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  border: 1px solid var(--line);
  text-align: left;
  transition: all 0.3s var(--ease);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border-color: rgba(61, 77, 255, 0.15);
}
.feature .ic-pill {
  background: linear-gradient(135deg, var(--cream-100), var(--cream-200));
  color: var(--text-strong);
  border: 1px solid var(--line);
}
.feature h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.025em;
}
.feature p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.feature .ic-pill {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--cream-100) 0%, var(--cream-200) 100%);
  color: var(--ink-700);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: var(--s-3);
  border: 1px solid var(--line);
}
.landing footer {
  text-align: center;
  padding: var(--s-6) var(--s-5);
  color: var(--text-4);
  font-size: 12px;
  letter-spacing: -0.005em;
}

/* === AUTH FORMS === */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(212, 184, 106, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--cream-100) 100%);
  padding: var(--s-5);
}
.auth-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--sh-xl);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 184, 106, 0.5), transparent);
}
.auth-card .brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-strong);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.04em;
}
.auth-card .sub {
  text-align: center;
  color: var(--text-3);
  margin-bottom: var(--s-6);
  font-size: 14px;
  letter-spacing: -0.005em;
}
.auth-card .switch {
  text-align: center;
  margin-top: var(--s-5);
  font-size: 13px;
  color: var(--text-3);
}
.auth-card .switch a { color: var(--ink-600); font-weight: 500; }

/* === DASHBOARD === */
.welcome-card {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(var(--accent-rgb, 212, 184, 106), 0.22), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(var(--brand-deep-rgb, 31, 78, 58), 0.30), transparent 55%),
    linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-mid) 60%, var(--brand-light) 100%);
  color: var(--on-brand);
  padding: var(--s-7);
  border-radius: var(--r-xl);
  margin-bottom: var(--s-5);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(11, 31, 24, 0.30), 0 4px 8px rgba(11, 31, 24, 0.06);
}
.welcome-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
}
.welcome-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}
.welcome-card > * { position: relative; z-index: 1; }
.welcome-card .greet {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.welcome-card h2 {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0 0 var(--s-5);
  color: var(--on-brand);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.welcome-card .next-prayer {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.welcome-card .next-prayer .label {
  font-size: 11px;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.welcome-card .next-prayer .name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.welcome-card .next-prayer .countdown {
  margin-left: auto;
  text-align: right;
}
.welcome-card .next-prayer .countdown .time {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--gold-300);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.welcome-card .next-prayer .countdown .left {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  border: 1px solid var(--line);
  transition: all 0.25s var(--ease);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.stat-card:hover { border-color: rgba(61, 77, 255, 0.15); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08); }
.stat-card .lbl {
  font-size: 11.5px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 12px;
}
.stat-card .val {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}
.stat-card { min-width: 0; overflow: hidden; }
@media (max-width: 600px) {
  .stat-card .val { font-size: 28px; letter-spacing: -0.035em; }
}
.stat-card .val .small {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 4px;
}

.progress-bar {
  height: 6px;
  background: var(--cream-100);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-top: var(--s-3);
}
.progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  transition: width 0.6s var(--ease-out);
  border-radius: var(--r-full);
}

/* === SHOLAT TRACKER === */
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: var(--s-3);
}
@media (max-width: 600px) { .prayer-grid { grid-template-columns: repeat(3, 1fr); } }
.prayer-cell {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-3) 8px;
  text-align: center;
  transition: all 0.25s var(--ease);
}
.prayer-cell .lbl {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.prayer-cell .tm {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 500;
  color: var(--text-strong);
  margin-top: 4px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.prayer-cell.next {
  background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-mid) 100%);
  border-color: var(--brand-light);
  box-shadow: 0 12px 28px -8px rgba(11, 31, 24, 0.30);
}
.prayer-cell.next .lbl { color: var(--gold-300); }
.prayer-cell.next .tm { color: var(--gold-200); }

.checklist { display: flex; flex-direction: column; gap: 6px; }
.check-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  user-select: none;
}
.check-row:hover {
  border-color: var(--line-strong);
  background: var(--cream-50);
}
.check-row.done {
  background: linear-gradient(90deg, rgba(31, 78, 58, 0.04), rgba(212, 184, 106, 0.04));
  border-color: rgba(31, 78, 58, 0.15);
}
.check-row .check {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--text-4);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
  color: transparent;
  font-size: 13px;
  font-weight: 700;
}
.check-row.done .check {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-color: var(--gold-400);
  color: var(--on-gold);
  box-shadow: 0 4px 12px rgba(212, 184, 106, 0.30);
}
.check-row .lbl { flex: 1; font-weight: 500; font-size: 14px; letter-spacing: -0.005em; }
.check-row .meta {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-400) 100%);
  color: var(--on-gold);
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.015em;
  box-shadow: 0 4px 16px rgba(212, 184, 106, 0.25), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* === DZIKIR === */
.dzikir-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--s-7) var(--s-5);
  background: linear-gradient(160deg, var(--cream-50) 0%, var(--cream-100) 100%);
  border-radius: var(--r-lg);
  margin: var(--s-4) 0;
  border: 1px solid var(--line);
}
.dzikir-counter .num {
  font-family: var(--font-mono);
  font-size: clamp(96px, 16vw, 144px);
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.dzikir-counter .label {
  color: var(--text-3);
  margin-top: var(--s-3);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.dzikir-counter button {
  margin-top: var(--s-5);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--brand-mid) 0%, var(--brand-deep) 100%);
  color: var(--on-brand);
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: -0.005em;
  box-shadow: 0 20px 40px -10px rgba(11, 31, 24, 0.35), inset 0 1px 0 rgba(255,255,255,0.10);
  transition: all 0.15s var(--ease);
  font-family: inherit;
}
.dzikir-counter button:hover {
  transform: scale(1.04);
  box-shadow: 0 24px 50px -8px rgba(11, 31, 24, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.dzikir-counter button:active { transform: scale(0.96); }

/* === Murattal player per dzikir === */
.dz-audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 14px 0 4px;
  background: linear-gradient(135deg, rgba(var(--brand-deep-rgb, 11, 31, 24), 0.04), rgba(var(--accent-rgb, 212, 184, 106), 0.06));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}
.dz-audio-btn {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-deep));
  color: var(--on-brand);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s var(--ease);
  box-shadow: 0 4px 12px -2px rgba(11, 31, 24, 0.25);
}
.dz-audio-btn:hover { transform: scale(1.05); }
.dz-audio-btn:active { transform: scale(0.94); }
.dz-audio-meta {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.dz-audio-time { letter-spacing: -0.02em; }
.dz-audio-progress {
  margin-top: 4px;
  height: 4px;
  background: rgba(var(--brand-deep-rgb, 11, 31, 24), 0.08);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}
.dz-audio-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  transition: width 0.1s linear;
}
/* Visual cue when target tepat tercapai (auto-advance dalam 700ms) */
.dzikir-counter button.dz-done-pulse {
  background: linear-gradient(160deg, var(--gold-300), var(--gold-500)) !important;
  color: var(--on-gold) !important;
  animation: dzDonePulse 0.7s var(--ease-out);
  box-shadow: 0 0 0 0 var(--gold-400), 0 24px 50px -8px rgba(212, 184, 106, 0.50);
}
@keyframes dzDonePulse {
  0%   { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(212, 184, 106, 0.60); }
  40%  { transform: scale(1.10); box-shadow: 0 0 0 24px rgba(212, 184, 106, 0); }
  100% { transform: scale(1.0);  box-shadow: 0 0 0 0 rgba(212, 184, 106, 0); }
}

.dzikir-arabic {
  font-family: var(--font-arabic);
  font-size: 30px;
  line-height: 2.1;
  text-align: right;
  direction: rtl;
  color: var(--text-strong);
  padding: var(--s-3) 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-feature-settings: "liga", "calt", "kern";
  text-rendering: optimizeLegibility;
}
/* Waqf marks (small high/low combining letters above the line that signal
   pausing rules during recitation). Color them gold so the reader can spot
   them at a glance without losing reading flow. Wrapped at runtime by
   quran.js for any U+06D6..U+06DC and U+06DF..U+06EC found in ayah text. */
.qr-waqf {
  color: #B8923E;
  font-weight: 700;
}
[data-theme="dark"] .qr-waqf { color: #D4B86A; }
.dzikir-translit {
  color: var(--text-2);
  margin-top: var(--s-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.dzikir-meaning { color: var(--text-1); margin-top: 6px; font-size: 14px; line-height: 1.55; }

/* === HABITS === */
.habit-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  transition: all 0.2s var(--ease);
}
.habit-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--sh-sm);
}
.habit-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--cream-100), var(--cream-200));
  color: var(--ink-700);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--line);
}
.habit-name { flex: 1; font-weight: 500; font-size: 14px; letter-spacing: -0.005em; }
.habit-week { display: flex; gap: 4px; }
.habit-day {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--cream-50);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-4);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-weight: 600;
}
.habit-day:hover { background: var(--cream-100); border-color: var(--line-strong); }
.habit-day.done {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--on-gold);
  border-color: var(--gold-400);
  box-shadow: 0 4px 12px rgba(212, 184, 106, 0.30);
}
.habit-day.today { box-shadow: 0 0 0 2px var(--gold-300); }
.habit-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.habit-row:hover .habit-actions { opacity: 1; }

/* === GOALS === */
.goal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-bottom: var(--s-3);
  position: relative;
  transition: all 0.25s var(--ease);
}
.goal-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.goal-card.done { opacity: 0.55; }
.goal-card.done .goal-title { text-decoration: line-through; }
.goal-card .cat-pill {
  display: inline-block;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 10px;
}
.cat-pill.dunia { background: rgba(31, 78, 58, 0.08); color: var(--ink-600); }
.cat-pill.akhirat { background: rgba(31, 78, 58, 0.12); color: var(--ink-700); }
.cat-pill.keluarga { background: rgba(212, 184, 106, 0.18); color: var(--gold-600); }
.cat-pill.ilmu { background: rgba(11, 31, 24, 0.08); color: var(--ink-800); }
.goal-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 var(--s-3);
  color: var(--text-strong);
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.goal-niat {
  color: var(--text-2);
  font-size: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--cream-50), var(--cream-100));
  border-left: 2px solid var(--gold-400);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 0 0 var(--s-3);
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.goal-niat::before {
  content: "نِيَّة ";
  font-style: normal;
  color: var(--gold-500);
  font-weight: 600;
  font-family: var(--font-arabic);
}
.goal-meta { font-size: 12px; color: var(--text-3); }
.goal-actions { display: flex; gap: 8px; margin-top: var(--s-3); }

/* === POMODORO === */
.pom-display {
  text-align: center;
  padding: var(--s-9) var(--s-5);
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 184, 106, 0.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(31, 78, 58, 0.20), transparent 50%),
    linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-mid) 100%);
  color: var(--on-brand);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(11, 31, 24, 0.4);
  border: 1px solid rgba(212, 184, 106, 0.12);
}
.pom-display::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}
.pom-time {
  font-family: var(--font-mono);
  font-size: clamp(96px, 15vw, 168px);
  font-weight: 500;
  color: var(--gold-200);
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 40px rgba(212, 184, 106, 0.30);
}
.pom-state {
  font-size: 12px;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.pom-controls {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  margin-top: var(--s-6);
}
.pom-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}

/* === JOURNAL === */
.journal-q { margin-bottom: var(--s-5); }
.journal-q label {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-strong);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.journal-q textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-1);
  resize: vertical;
  transition: all 0.2s var(--ease);
  letter-spacing: -0.005em;
  display: block;
  box-sizing: border-box;
}
.journal-q textarea::placeholder {
  color: var(--text-3);
  font-family: var(--font-body);
  opacity: 0.85;
}
.journal-q textarea:hover { border-color: var(--text-3); }
.journal-q textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(212, 184, 106, 0.12);
}
[data-theme="dark"] .journal-q textarea {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(232, 220, 196, 0.10);
}
[data-theme="dark"] .journal-q textarea:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold-300);
  box-shadow: 0 0 0 4px rgba(212, 184, 106, 0.15);
}
.ai-reflection {
  margin-top: var(--s-5);
  padding: var(--s-5);
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 184, 106, 0.08), transparent 50%),
    linear-gradient(135deg, var(--cream-50) 0%, var(--cream-100) 100%);
  border-radius: var(--r-md);
  border: 1px solid rgba(212, 184, 106, 0.2);
  position: relative;
  overflow: hidden;
}
.ai-reflection::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
}
.ai-reflection .label {
  font-size: 11px;
  color: var(--gold-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.ai-reflection .body {
  color: var(--text-1);
  line-height: 1.7;
  white-space: pre-wrap;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* === HADITH === */
.hadith-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 184, 106, 0.08), transparent 60%),
    linear-gradient(160deg, var(--surface) 0%, var(--cream-50) 100%);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.hadith-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 184, 106, 0.4), transparent);
}
.hadith-arabic {
  font-family: var(--font-arabic);
  font-size: 32px;
  line-height: 2.2;
  text-align: right;
  direction: rtl;
  color: var(--text-strong);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
  word-break: break-word;
  overflow-wrap: anywhere;
  font-feature-settings: "liga", "calt", "kern";
  text-rendering: optimizeLegibility;
}
.hadith-text {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.45;
  color: var(--text-strong);
  margin-bottom: var(--s-3);
  letter-spacing: -0.025em;
  font-weight: 500;
}
.hadith-source {
  font-size: 13px;
  color: var(--gold-600);
  font-weight: 600;
  margin-bottom: var(--s-5);
  letter-spacing: 0.02em;
}
.hadith-tadabbur {
  background: rgba(31, 78, 58, 0.04);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border-left: 2px solid var(--ink-600);
  color: var(--text-1);
  line-height: 1.7;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.hadith-tadabbur .label {
  font-size: 11px;
  color: var(--ink-700);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-style: normal;
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
}

/* === CHAT === */
.chat-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.chat-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: var(--r-md);
  line-height: 1.6;
  font-size: 14px;
  white-space: pre-wrap;
  letter-spacing: -0.005em;
  animation: bubbleIn 0.25s var(--ease-out);
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-bubble.user {
  background: linear-gradient(160deg, var(--brand-mid), var(--brand-deep));
  color: var(--on-brand);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 8px 20px -4px rgba(11, 31, 24, 0.20);
}
.chat-bubble.assistant {
  background: var(--cream-50);
  color: var(--text-1);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--line);
}
.chat-bubble.assistant.thinking { color: var(--text-3); font-style: italic; }
.chat-input-row {
  display: flex;
  gap: 10px;
  padding: var(--s-4);
  border-top: 1px solid var(--line);
  background: var(--cream-50);
}
.chat-input-row input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.chat-input-row input:focus {
  outline: none;
  border-color: var(--ink-500);
  box-shadow: 0 0 0 4px rgba(31, 78, 58, 0.08);
}

/* === SETTINGS === */
.settings-section { margin-bottom: var(--s-6); }
.settings-section h3 {
  font-family: var(--font-display);
  color: var(--text-strong);
  margin: 0 0 var(--s-3);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* === MODAL === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 24, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s var(--ease-out);
}
.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  width: 100%;
  max-width: 500px;
  margin: var(--s-5);
  box-shadow: var(--sh-xl);
  border: 1px solid var(--line);
  animation: modalIn 0.3s var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 var(--s-4);
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: var(--s-4);
}

/* === TOAST === */
.toast-stack {
  position: fixed;
  bottom: var(--s-5);
  right: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.toast {
  background: var(--ink-900);
  color: var(--on-brand);
  padding: 12px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  animation: slideUp 0.3s var(--ease-out);
  max-width: 360px;
  border: 1px solid var(--ink-700);
}
.toast.success {
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900));
  border-color: var(--ink-600);
}
.toast.error { background: #8b3838; border-color: #6e2c2c; }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === TENANT CREATE FORM === */
.tn-dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 32px 20px;
  text-align: center;
  background: var(--cream-50);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.tn-dropzone:hover { border-color: var(--gold-400); background: var(--cream-100); }
.tn-dropzone.drag { border-color: var(--gold-400); background: rgba(212, 184, 106, 0.10); transform: scale(1.005); }
.tn-dropzone img { display: block; }
.tn-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 600px) { .tn-swatches { grid-template-columns: repeat(2, 1fr); } }
.tn-swatch {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.tn-swatch:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.tn-swatch-color {
  width: 100%;
  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.tn-swatch-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tn-swatch-hex {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-strong);
  margin-top: 2px;
  letter-spacing: -0.02em;
}
.tn-swatch-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.tn-mock {
  font-family: var(--font-body);
}
.tn-mock button {
  font-family: var(--font-body);
}

/* === MOBILE NAV === */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-top: 1px solid rgba(11, 31, 24, 0.08);
  /* Compact: top=6, bottom=safe-area+6 (~10-40px depending on device).
     Earlier value (12 + safe-area+14) made the nav too tall on iPhone. */
  padding: 6px 8px calc(max(env(safe-area-inset-bottom), 6px) + 6px);
  z-index: 50;
}
.mobile-nav-row { display: flex; justify-content: space-around; }
.mobile-nav a, .mobile-nav-more {
  flex: 1;
  text-align: center;
  padding: 4px 4px 2px;
  font-size: 11px;
  color: var(--text-3);
  border-radius: var(--r-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.2s var(--ease);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mobile-nav a .ic, .mobile-nav-more .ic {
  width: 36px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s var(--ease);
}
.mobile-nav a .ic svg, .mobile-nav-more .ic svg { width: 20px; height: 20px; }
.mobile-nav a.active {
  color: var(--text-strong);
  font-weight: 600;
}
.mobile-nav a.active .ic {
  background: var(--cream-100);
  border: 1px solid var(--line);
}

/* === SHEET (mobile "Lainnya") === */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 24, 0);
  backdrop-filter: blur(0px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.25s var(--ease-out), backdrop-filter 0.25s var(--ease-out);
}
.sheet-backdrop.open {
  background: rgba(11, 31, 24, 0.45);
  backdrop-filter: blur(8px);
}
.sheet {
  background: var(--surface);
  width: 100%;
  max-width: 560px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 14px 18px calc(env(safe-area-inset-bottom) + 24px);
  box-shadow: 0 -16px 40px rgba(11, 31, 24, 0.18);
  transform: translateY(100%);
  transition: transform 0.32s var(--ease-out);
  max-height: 88vh;
  overflow-y: auto;
}
.sheet-backdrop.open .sheet { transform: translateY(0); }
.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--line-strong);
  border-radius: 999px;
  margin: 0 auto 14px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-4);
}
.sheet-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.035em;
  color: var(--text-strong);
}
.sheet-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--cream-100);
  color: var(--text-2);
  font-size: 18px;
  cursor: pointer;
  font-family: inherit;
}
.sheet-section { margin-bottom: var(--s-5); }
.sheet-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
  padding: 0 4px;
}
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 380px) { .sheet-grid { grid-template-columns: repeat(3, 1fr); } }
.sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border-radius: var(--r-md);
  background: var(--cream-50);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text-1);
  transition: all 0.18s var(--ease);
  text-align: center;
}
.sheet-item:hover, .sheet-item:active {
  background: var(--cream-100);
  border-color: var(--line-strong);
  transform: scale(0.97);
}
.sheet-item-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-deep));
  color: var(--gold-300);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -4px rgba(11, 31, 24, 0.20);
}
.sheet-item-icon svg { width: 22px; height: 22px; }
.sheet-item-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.sheet-footer {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  text-align: center;
}
.sheet-logout {
  background: none;
  border: none;
  color: #b34141;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 16px;
  margin-top: 4px;
}
.sheet-quick-action {
  background: var(--cream-50);
  border: 1px solid var(--line);
  width: 100%;
  padding: 14px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-1);
  cursor: pointer;
  margin-bottom: 8px;
  font-weight: 500;
  transition: all 0.18s var(--ease);
}
.sheet-quick-action:hover, .sheet-quick-action:active {
  background: var(--cream-100);
  border-color: var(--line-strong);
}

@media (max-width: 880px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-nav { display: block; }
  .main { padding: calc(var(--s-5) + env(safe-area-inset-top)) var(--s-4) calc(var(--s-9) + var(--s-5)); }
  .page-head h1 { font-size: 26px; }
  .welcome-card { padding: var(--s-5); }
  .welcome-card h2 { font-size: 22px; }
  .hero { padding: var(--s-5) var(--s-4) var(--s-7); }
  .landing header { padding: var(--s-4); }
  .auth-card { padding: var(--s-5); }
}
@media (max-width: 480px) {
  .hadith-arabic { font-size: 26px; line-height: 1.95; }
  .dzikir-arabic { font-size: 24px; line-height: 1.95; }
  .mood-modal-arabic { font-size: 24px; line-height: 1.85; }
  .pom-display { padding: var(--s-7) var(--s-4); }
  .page-head h1 { font-size: 22px; }
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  opacity: 0.6;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  text-align: center;
  padding: var(--s-7) var(--s-5);
  color: var(--text-3);
}
.empty .icn { font-size: 32px; margin-bottom: 8px; opacity: 0.4; }

.muted { color: var(--text-3); font-size: 13px; letter-spacing: -0.005em; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  background: var(--cream-100);
  color: var(--text-2);
  font-weight: 500;
  border: 1px solid var(--line);
}

/* === SUBTLE DIVIDER ORNAMENT === */
.ornament {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text-4);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin: var(--s-5) 0;
}
.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.sholat-dzikir-link {
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 184, 106, 0.10), transparent 55%),
    var(--surface);
  border: 1px solid rgba(212, 184, 106, 0.2);
  transition: all 0.2s var(--ease);
}
.sholat-dzikir-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 184, 106, 0.15);
  border-color: var(--gold-300);
}

/* === QURAN READER (tabs + ornament badge + sticky resume) === */
/* NOTE: do NOT use overflow-x:hidden on html/body — it breaks position:sticky (sidebar).
   Mobile overflow is fixed by min-width:0 on flex/grid items + .grid-2 stacking. */
.app-shell { overflow-x: clip; }
@supports not (overflow-x: clip) { .app-shell { overflow-x: hidden; } }

/* Tabs (segmented control) */
.q-tabs {
  display: flex;
  background: var(--cream-100);
  border-radius: var(--r-full);
  padding: 4px;
  margin-bottom: var(--s-4);
  gap: 2px;
}
.q-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--r-full);
  letter-spacing: -0.01em;
  transition: all 0.2s var(--ease);
}
.q-tab.active {
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: 0 2px 6px rgba(11, 31, 24, 0.06), 0 1px 1px rgba(11, 31, 24, 0.04);
}
[data-theme="dark"] .q-tabs { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .q-tab.active { background: var(--surface-2); }

/* Search wrap */
.q-search-wrap {
  position: relative;
  margin-bottom: var(--s-4);
}
.q-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  display: inline-flex;
}
.q-search-input {
  width: 100%;
  padding: 13px 16px 13px 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--cream-50);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-1);
  letter-spacing: -0.005em;
}
.q-search-input::placeholder { color: var(--text-3); }
.q-search-input:focus {
  outline: none;
  border-color: var(--gold-300);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(212, 184, 106, 0.10);
}

/* Surah list */
.q-surah-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.q-surah-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}
.q-surah-row:hover { background: var(--cream-50); }
.q-surah-badge {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}
.q-surah-badge svg.surah-ornament { width: 100%; height: 100%; }
.surah-ornament-num {
  fill: var(--text-strong);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.q-surah-meta { flex: 1; min-width: 0; overflow: hidden; }
.q-surah-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-surah-sub {
  font-size: 12.5px;
  color: var(--gold-600);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-surah-arabic {
  font-family: var(--font-arabic);
  font-size: 22px;
  color: var(--text-strong);
  flex-shrink: 0;
  direction: rtl;
}
.q-play-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: var(--gold-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* Juz list */
.q-juz-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.q-juz-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s var(--ease);
}
.q-juz-row:hover { background: var(--cream-50); }
.q-juz-badge {
  width: 48px; height: 48px;
  flex-shrink: 0;
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
}
.q-juz-badge svg.surah-ornament { width: 100%; height: 100%; }
.q-juz-info { flex: 1; min-width: 0; }
.q-juz-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.q-juz-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}

/* Section labels (Riwayat) */
.q-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  background: var(--cream-50);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}
[data-theme="dark"] .q-section-label { background: rgba(255,255,255,0.03); }

/* History card (riwayat items) */
.q-history-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease);
}
.q-history-card:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.q-history-highlight {
  background: linear-gradient(135deg, rgba(212, 184, 106, 0.08), rgba(212, 184, 106, 0.02));
  border-color: rgba(212, 184, 106, 0.25);
}
.q-history-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: rgba(212, 184, 106, 0.14);
  color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.q-history-num {
  width: 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--brand-light);
  text-align: center;
  flex-shrink: 0;
}
.q-history-text { flex: 1; min-width: 0; }
.q-history-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-strong);
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-row-arrow {
  color: var(--text-3);
  font-size: 16px;
  flex-shrink: 0;
}

/* Sticky bottom "Lanjutkan Membaca" bar — anchored to main area, not over sidebar */
.quran-resume-bar {
  position: fixed;
  bottom: 0;
  left: 260px;  /* sidebar width on desktop */
  right: 0;
  background:
    radial-gradient(circle at 0% 50%, rgba(212, 184, 106, 0.18), transparent 50%),
    var(--cream-100);
  border-top: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 32px env(safe-area-inset-bottom);
  text-decoration: none;
  color: inherit;
  z-index: 40;
  box-shadow: 0 -4px 20px rgba(11, 31, 24, 0.06);
  animation: resumeBarSlide 0.4s var(--ease-out);
}
@keyframes resumeBarSlide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.quran-resume-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: rgba(212, 184, 106, 0.18);
  color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.quran-resume-text { flex: 1; min-width: 0; padding: 4px 0; }
.quran-resume-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.quran-resume-ref {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quran-resume-arrow {
  color: var(--text-3);
  font-size: 18px;
  flex-shrink: 0;
}
body.has-resume-bar { padding-bottom: 90px; }
[data-theme="dark"] .quran-resume-bar { background: linear-gradient(0deg, var(--surface-2), var(--surface)); }

@media (max-width: 880px) {
  .quran-resume-bar {
    left: 0;
    bottom: calc(60px + env(safe-area-inset-bottom));
    padding: 14px 20px;
  }
  body.has-resume-bar { padding-bottom: 160px; }
}
@media (max-width: 600px) {
  .q-surah-arabic { font-size: 18px; }
  .q-surah-name { font-size: 15px; }
  .q-surah-badge { width: 40px; height: 40px; }
}

/* === SURAH READER AUDIO === */
.surah-audio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 14px 18px;
  background: linear-gradient(160deg, var(--cream-50), var(--cream-100));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}
.sab-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.sab-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-deep));
  color: var(--gold-300);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 6px 14px -4px rgba(11, 31, 24, 0.20);
}
.sab-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sab-select {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  color: var(--text-strong);
  cursor: pointer;
  letter-spacing: -0.005em;
  min-width: 140px;
}
.sab-select:focus {
  outline: none;
  border-color: var(--ink-500);
  box-shadow: 0 0 0 3px rgba(31, 78, 58, 0.08);
}

.ayah-row {
  position: relative;
}
.ayah-row:hover {
  background: var(--cream-50);
}
.ayah-row.playing {
  background: linear-gradient(90deg, rgba(212, 184, 106, 0.10), rgba(212, 184, 106, 0.02));
  box-shadow: inset 3px 0 0 var(--gold-400);
  animation: ayahPulse 2s ease-out;
}
@keyframes ayahPulse {
  0%   { background: rgba(212, 184, 106, 0.22); }
  100% { background: linear-gradient(90deg, rgba(212, 184, 106, 0.10), rgba(212, 184, 106, 0.02)); }
}

@media (max-width: 600px) {
  .surah-audio-bar { padding: 10px 12px; }
  .sab-select { min-width: 120px; font-size: 12px; }
  .sab-label { display: none; }
}

/* === MOOD TRACKER === */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: var(--s-5);
}
.mood-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.mood-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--mood-bg-1, rgba(11,31,24,0.04)), var(--mood-bg-2, rgba(11,31,24,0.01)));
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.mood-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: var(--mood-accent, var(--ink-300));
}
.mood-card > * { position: relative; z-index: 1; }
.mood-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mood-icon-bg, var(--cream-100));
  margin-bottom: 12px;
  border: 1px solid rgba(11,31,24,0.06);
  font-size: 28px;
  line-height: 1;
}
.mood-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.mood-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
  letter-spacing: -0.005em;
}

/* Tone palettes */
.mood-ember    { --mood-bg-1: rgba(202,90,60,.10); --mood-bg-2: rgba(202,90,60,.02); --mood-icon-bg: rgba(202,90,60,.14); --mood-icon-fg: #8a3a1f; --mood-accent: rgba(202,90,60,.3); }
.mood-indigo   { --mood-bg-1: rgba(60,75,135,.10); --mood-bg-2: rgba(60,75,135,.02); --mood-icon-bg: rgba(60,75,135,.14); --mood-icon-fg: #2c386b; --mood-accent: rgba(60,75,135,.3); }
.mood-violet   { --mood-bg-1: rgba(120,80,170,.10); --mood-bg-2: rgba(120,80,170,.02); --mood-icon-bg: rgba(120,80,170,.14); --mood-icon-fg: #5e3f8c; --mood-accent: rgba(120,80,170,.3); }
.mood-slate    { --mood-bg-1: rgba(80,95,110,.10); --mood-bg-2: rgba(80,95,110,.02); --mood-icon-bg: rgba(80,95,110,.14); --mood-icon-fg: #3d4a59; --mood-accent: rgba(80,95,110,.3); }
.mood-ocean    { --mood-bg-1: rgba(40,110,140,.10); --mood-bg-2: rgba(40,110,140,.02); --mood-icon-bg: rgba(40,110,140,.14); --mood-icon-fg: #1e5573; --mood-accent: rgba(40,110,140,.3); }
.mood-ash      { --mood-bg-1: rgba(110,110,110,.10); --mood-bg-2: rgba(110,110,110,.02); --mood-icon-bg: rgba(110,110,110,.14); --mood-icon-fg: #555; --mood-accent: rgba(110,110,110,.3); }
.mood-rose     { --mood-bg-1: rgba(180,90,120,.10); --mood-bg-2: rgba(180,90,120,.02); --mood-icon-bg: rgba(180,90,120,.14); --mood-icon-fg: #8a3f5a; --mood-accent: rgba(180,90,120,.3); }
.mood-midnight { --mood-bg-1: rgba(35,50,90,.12); --mood-bg-2: rgba(35,50,90,.02); --mood-icon-bg: rgba(35,50,90,.18); --mood-icon-fg: #1a2548; --mood-accent: rgba(35,50,90,.35); }
.mood-umber    { --mood-bg-1: rgba(140,90,50,.10); --mood-bg-2: rgba(140,90,50,.02); --mood-icon-bg: rgba(140,90,50,.14); --mood-icon-fg: #6b4220; --mood-accent: rgba(140,90,50,.3); }
.mood-gold     { --mood-bg-1: rgba(212,184,106,.16); --mood-bg-2: rgba(212,184,106,.04); --mood-icon-bg: rgba(212,184,106,.22); --mood-icon-fg: #8a6d2c; --mood-accent: rgba(212,184,106,.4); }
.mood-amber    { --mood-bg-1: rgba(220,150,50,.12); --mood-bg-2: rgba(220,150,50,.02); --mood-icon-bg: rgba(220,150,50,.18); --mood-icon-fg: #8a5b1c; --mood-accent: rgba(220,150,50,.35); }
.mood-emerald  { --mood-bg-1: rgba(13,92,63,.10); --mood-bg-2: rgba(13,92,63,.02); --mood-icon-bg: rgba(13,92,63,.14); --mood-icon-fg: var(--ink-700); --mood-accent: rgba(13,92,63,.3); }

/* === MOOD MODAL — immersive, calming === */
.mood-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  /* align-items: flex-start so when content > viewport, modal flows DOWN
     (scrollable) instead of centering above the top edge (unreachable). */
  align-items: flex-start;
  justify-content: center;
  padding: 32px 24px;
  background: rgba(11, 31, 24, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mood-modal-backdrop.open {
  background: rgba(11, 31, 24, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.mood-modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 48px 36px 36px;
  max-width: 600px;
  width: 100%;
  /* Keep horizontal aesthetics but allow vertical room — auto margins so
     short content still appears vertically centered in viewport, tall
     content sticks to top + flows down (backdrop handles the scroll). */
  margin: auto 0;
  position: relative;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--sh-xl);
  transform: scale(0.96) translateY(16px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
  /* Was overflow:hidden — that clipped content AND blocked internal scroll.
     Use clip on horizontal only for the radial-gradient effect to stay
     inside rounded corners. */
  overflow-x: clip;
}
.mood-modal-backdrop.open .mood-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.mood-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, var(--mood-bg-1, rgba(11,31,24,0.06)), transparent 55%),
    radial-gradient(ellipse at 50% 100%, var(--mood-bg-2, rgba(11,31,24,0.03)), transparent 50%);
  pointer-events: none;
}
.mood-modal::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mood-accent, rgba(212,184,106,0.4)), transparent);
}
.mood-modal > * { position: relative; }

.mood-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 31, 24, 0.06);
  color: var(--text-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  font-family: inherit;
  transition: all 0.2s var(--ease);
}
.mood-modal-close:hover { background: rgba(11, 31, 24, 0.12); transform: scale(1.05); }

.mood-audio-toggle {
  position: absolute;
  top: 16px; left: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 31, 24, 0.06);
  color: var(--text-strong);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  font-family: inherit;
  transition: all 0.2s var(--ease);
}
.mood-audio-toggle:hover { background: rgba(11, 31, 24, 0.12); transform: scale(1.05); }
.mood-audio-toggle svg .mute-line { display: none; }
.mood-audio-toggle.off {
  color: var(--text-3);
}
.mood-audio-toggle.off svg .wave-1,
.mood-audio-toggle.off svg .wave-2 { display: none; }
.mood-audio-toggle.off svg .mute-line { display: block; opacity: 0.7; }
.mood-audio-toggle.playing {
  color: var(--gold-600);
  background: rgba(212, 184, 106, 0.16);
  box-shadow: 0 0 0 0 rgba(212, 184, 106, 0.4);
  animation: audioPulse 2.4s ease-in-out infinite;
}
.mood-audio-toggle.playing svg .wave-1 {
  animation: waveFade 2s ease-in-out infinite;
  transform-origin: 16px 12px;
}
.mood-audio-toggle.playing svg .wave-2 {
  animation: waveFade 2s ease-in-out infinite 0.4s;
  transform-origin: 18px 12px;
}
@keyframes audioPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 184, 106, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(212, 184, 106, 0); }
}
@keyframes waveFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
[data-theme="dark"] .mood-audio-toggle { background: rgba(255,255,255,0.06); color: var(--gold-300); }
[data-theme="dark"] .mood-audio-toggle:hover { background: rgba(255,255,255,0.12); }
[data-theme="dark"] .mood-audio-toggle.playing { background: rgba(212, 184, 106, 0.18); color: var(--gold-200); }

.mood-modal-transform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 56px;
  line-height: 1;
}
.mood-emoji-from {
  display: inline-block;
  filter: saturate(0.85);
  animation: moodFromFade 1.2s var(--ease-out);
  opacity: 0.85;
}
.mood-emoji-to {
  display: inline-block;
  animation: moodToBreath 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 16px var(--mood-bg-1, rgba(212, 184, 106, 0.4)));
}
.mood-emoji-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mood-icon-fg, var(--text-3));
  opacity: 0.5;
  animation: arrowGlide 2s ease-in-out infinite;
}
@keyframes moodFromFade {
  0% { transform: scale(1.1); opacity: 0; }
  50% { opacity: 0.85; }
  100% { transform: scale(1); opacity: 0.85; }
}
@keyframes moodToBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes arrowGlide {
  0%, 100% { transform: translateX(-2px); opacity: 0.4; }
  50% { transform: translateX(4px); opacity: 0.85; }
}

.mood-modal-transform-label {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  font-weight: 500;
}
.mood-modal-arabic {
  font-family: var(--font-arabic);
  font-size: 30px;
  line-height: 2.0;
  text-align: center;
  direction: rtl;
  color: var(--text-strong);
  margin-bottom: 24px;
  padding: 16px 8px;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-feature-settings: "liga", "calt", "kern";
  text-rendering: optimizeLegibility;
  animation: arabicReveal 0.8s var(--ease-out) 0.2s both;
}
@keyframes arabicReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mood-modal-snippet {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.45;
  color: var(--text-strong);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  padding: 0 8px;
  animation: arabicReveal 0.8s var(--ease-out) 0.4s both;
}
.mood-modal-ref {
  font-size: 11px;
  color: var(--gold-600);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  animation: arabicReveal 0.8s var(--ease-out) 0.5s both;
}
.mood-modal-full {
  text-align: left;
  margin: 20px auto 8px;
  max-width: 460px;
}
.mood-modal-full summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
  text-align: center;
  padding: 8px;
  list-style: none;
}
.mood-modal-full summary::-webkit-details-marker { display: none; }
.mood-modal-full summary::after { content: " ⌄"; opacity: 0.5; }
.mood-modal-full[open] summary::after { content: " ⌃"; }
.mood-modal-full p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  text-align: left;
}
.mood-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.mood-modal-counter {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.05em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.mood-audio-source {
  color: var(--gold-600);
  font-weight: 600;
}

.mood-modal-loading {
  padding: 80px 0;
  text-align: center;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mood-modal-loading-state { padding: 60px 36px; }

/* Dark mode adjustments */
[data-theme="dark"] .mood-modal-backdrop.open { background: rgba(0, 0, 0, 0.65); }
[data-theme="dark"] .mood-modal-close { background: rgba(255,255,255,0.06); color: var(--text-2); }
[data-theme="dark"] .mood-modal-close:hover { background: rgba(255,255,255,0.12); }
[data-theme="dark"] .mood-modal-actions { border-top-color: rgba(255,255,255,0.06); }

@media (max-width: 600px) {
  .mood-modal-backdrop { padding: 12px; align-items: flex-end; }
  .mood-modal {
    padding: 36px 20px 24px;
    border-radius: var(--r-xl) var(--r-xl) var(--r-md) var(--r-md);
    max-height: 92vh;
    overflow-y: auto;
  }
  .mood-modal-transform { font-size: 44px; gap: 12px; }
  .mood-modal-arabic { font-size: 24px; line-height: 1.9; }
  .mood-modal-snippet { font-size: 18px; }
  .mood-modal-actions .btn { flex: 1 1 auto; min-width: 100px; }
}

/* ===== legacy verse card (kept for fallback, not actively used) ===== */
.mood-verse-card {
  margin-top: 8px;
  background:
    radial-gradient(circle at 100% 0%, var(--mood-bg-1), transparent 60%),
    var(--surface);
  border-color: var(--mood-accent, var(--line-strong));
  animation: fadeIn 0.4s var(--ease-out);
}
.mood-verse-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.mood-verse-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mood-icon-bg);
  border: 1px solid rgba(11,31,24,0.08);
  font-size: 36px;
  line-height: 1;
}
.mood-verse-mood-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.025em;
}
.mood-verse-ref {
  font-size: 12px;
  color: var(--gold-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.mood-verse-arabic {
  margin-bottom: 16px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid var(--line);
}
.mood-verse-snippet {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.45;
  color: var(--text-strong);
  letter-spacing: -0.025em;
  font-weight: 500;
  padding: 8px 0;
}
.mood-verse-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.mood-log-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mood-icon-bg);
  border: 1px solid rgba(11,31,24,0.06);
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}

/* === AUDIO LIBRARY === */
.qari-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.qari-chip {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 10px 14px 10px 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.2s var(--ease);
  min-width: 200px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 480px) { .qari-chip { min-width: 0; flex: 1 1 100%; } }
.qari-chip:hover { border-color: var(--ink-300); background: var(--cream-50); transform: translateY(-1px); }
.qari-chip-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cream-100);
  border: 1px solid var(--line);
}
.qari-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-strong);
}
.qari-chip-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.qari-chip.active {
  background: linear-gradient(160deg, var(--brand-mid), var(--brand-deep));
  border-color: var(--brand-mid);
  color: var(--on-brand);
  box-shadow: 0 8px 20px -6px rgba(11, 31, 24, 0.30);
}
.qari-chip.active .qari-chip-photo {
  border-color: var(--gold-300);
  box-shadow: 0 0 0 2px rgba(212, 184, 106, 0.35);
}
.qari-chip-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.qari-chip.active .qari-chip-name { color: var(--gold-200); }
.qari-chip-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.qari-chip.active .qari-chip-sub { color: rgba(246, 240, 225, 0.6); }

.audio-bar {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: rgba(10, 31, 24, 0.96);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  color: var(--on-brand);
  padding: 12px 20px env(safe-area-inset-bottom);
  z-index: 60;
  border-top: 1px solid rgba(212, 184, 106, 0.15);
  transition: bottom 0.3s var(--ease-out);
  box-shadow: 0 -8px 32px rgba(11, 31, 24, 0.3);
}
.audio-bar.open { bottom: 0; }
.audio-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 20px;
  align-items: center;
}
.audio-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.audio-thumb {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--on-gold);
  font-size: 15px;
  flex-shrink: 0;
}
.audio-text { min-width: 0; flex: 1; }
.audio-title {
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-sub {
  font-size: 11.5px;
  color: rgba(246, 240, 225, 0.6);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.audio-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-300);
  color: var(--on-gold);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.15s var(--ease);
  font-family: inherit;
}
.audio-btn:hover { background: var(--gold-200); transform: scale(1.04); }
.audio-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.audio-time {
  font-family: var(--font-display);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(246, 240, 225, 0.7);
  flex-shrink: 0;
}
.audio-seek-wrap { flex: 1; min-width: 60px; display: flex; }
.audio-seek {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: rgba(246, 240, 225, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.audio-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--gold-300);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--ink-900);
}
.audio-seek::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--gold-300);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--ink-900);
}
.audio-actions { display: flex; gap: 6px; flex-shrink: 0; }
.audio-btn-sm {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(246, 240, 225, 0.08);
  color: rgba(246, 240, 225, 0.85);
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s var(--ease);
}
.audio-btn-sm:hover { background: rgba(246, 240, 225, 0.15); color: var(--gold-200); }

body.has-audio-bar { padding-bottom: 90px; }
@media (max-width: 880px) {
  .audio-bar.open { bottom: 60px; }
  body.has-audio-bar { padding-bottom: 150px; }
  .audio-bar-inner { grid-template-columns: 1fr auto; gap: 8px; }
  .audio-controls { grid-column: 1 / -1; order: 2; padding-top: 4px; }
  .audio-actions { order: 1; }
  .audio-thumb { width: 38px; height: 38px; }
}

/* === SCROLLBARS === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-full); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

/* === LANDING V3 ADDITIONS === */

/* Promo bar — sticky at top, above header */
.lp-promo-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(135deg, #0A1F18 0%, #163828 100%);
  color: var(--gold-200);
  padding: 10px 0;
  border-bottom: 1px solid rgba(212, 184, 106, 0.2);
  box-shadow: 0 4px 12px rgba(11, 31, 24, 0.3);
}
.lp-promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.lp-promo-badge {
  background: rgba(212, 184, 106, 0.18);
  color: var(--gold-300);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.lp-promo-msg { color: #E8DCC4; }
.lp-promo-msg strong { color: var(--gold-300); font-weight: 700; }
.lp-promo-timer {
  font-family: var(--font-mono);
  background: rgba(212, 184, 106, 0.16);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--gold-200);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lp-promo-cta {
  color: var(--gold-300);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed var(--gold-400);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease);
}
.lp-promo-cta:hover { color: var(--gold-200); }

/* Hero actions row */
.lp-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 28px 0 16px;
  flex-wrap: wrap;
}
.btn.lg { padding: 14px 28px; font-size: 15px; font-weight: 600; }

/* Final CTA banner */
.lp-cta-banner {
  background:
    radial-gradient(circle at 70% 30%, rgba(212, 184, 106, 0.18), transparent 55%),
    linear-gradient(135deg, #0A1F18 0%, #1F4E3A 100%);
  color: #E8DCC4;
  border-radius: var(--r-xl);
  padding: 64px 32px;
  text-align: center;
  border: 1px solid rgba(212, 184, 106, 0.15);
  box-shadow: 0 24px 60px -12px rgba(11, 31, 24, 0.5);
}
.lp-cta-eyebrow {
  display: inline-block;
  background: rgba(212, 184, 106, 0.16);
  color: var(--gold-300);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.lp-cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
}
.lp-cta-sub {
  font-size: 16px;
  color: rgba(232, 220, 196, 0.85);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Section head — already partially defined, ensure consistent */
.lp-section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.lp-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  margin: 0 0 12px;
  line-height: 1.15;
}
.lp-section-head p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* When promo bar is present, sticky header should sit just below it. */
.lp-promo-bar + .lp-header { top: 44px; }

/* === CHECKOUT === */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 880px) { .checkout-grid { grid-template-columns: 1fr; } }

.checkout-summary { background: var(--bg-warm); position: sticky; top: 96px; }
@media (max-width: 880px) { .checkout-summary { position: static; } }
.checkout-price { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.checkout-price-final {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.checkout-savings {
  display: inline-block;
  background: rgba(74, 140, 119, 0.16);
  color: #2d6e5d;
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}
.checkout-features {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}
.checkout-amount-callout {
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(212, 184, 106, 0.10), rgba(212, 184, 106, 0.04));
  border: 1px dashed var(--gold-400);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

dl.ck-detail { display: grid; grid-template-columns: 90px 1fr; gap: 6px 14px; margin-top: 12px; font-size: 14px; }
dl.ck-detail dt { color: var(--text-2); font-size: 13px; }
dl.ck-detail dd { margin: 0; font-weight: 600; color: var(--text-strong); }

/* === ADMIN SHELL V2 === */
.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
  overflow-x: clip;
}
@supports not (overflow-x: clip) { .admin-shell { overflow-x: hidden; } }
.admin-sidebar {
  background: linear-gradient(180deg, #0A1F18 0%, #0F2A1F 100%);
  color: #C9C4B6;
  padding: 20px 16px 16px;
  border-right: 1px solid rgba(212, 184, 106, 0.10);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(212, 184, 106, 0.10);
}
.admin-brand-mark {
  width: 40px;
  height: 40px;
  background:
    radial-gradient(circle at 70% 25%, rgba(212, 184, 106, 0.18), transparent 60%),
    linear-gradient(135deg, #1F4E3A 0%, #0A1F18 100%);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  padding: 6px;
  flex-shrink: 0;
}
.admin-brand-mark svg, .admin-brand-mark img { width: 100%; height: 100%; }
.admin-brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #E8DCC4;
  letter-spacing: -0.02em;
}
.admin-brand-sub { font-size: 11px; color: var(--gold-300); letter-spacing: 0.06em; text-transform: uppercase; }

.admin-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-section {
  font-size: 10px;
  font-weight: 700;
  color: rgba(212, 184, 106, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 12px 12px 6px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: #C9C4B6;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s var(--ease);
}
.admin-nav-link:hover { background: rgba(212, 184, 106, 0.08); color: #E8DCC4; }
.admin-nav-link.active {
  background: linear-gradient(135deg, rgba(212, 184, 106, 0.18), rgba(212, 184, 106, 0.06));
  color: var(--gold-300);
  font-weight: 600;
}
.admin-nav-link.disabled { color: rgba(201, 196, 182, 0.40); cursor: not-allowed; pointer-events: none; }
.admin-nav-badge {
  font-size: 9px;
  background: rgba(212, 184, 106, 0.16);
  color: var(--gold-300);
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-footer {
  border-top: 1px solid rgba(212, 184, 106, 0.10);
  padding-top: 14px;
  margin-top: 14px;
}
.admin-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}
.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #0A1F18;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.admin-user-name { font-size: 13px; font-weight: 600; color: #E8DCC4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-email { font-size: 11px; color: rgba(201, 196, 182, 0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.admin-main { padding: 32px 36px 64px; max-width: 1280px; min-width: 0; overflow-x: clip; }
.admin-main h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: 0 0 6px;
}
.admin-main .page-head { margin-bottom: 24px; }

/* Mobile drawer */
.admin-menu-btn {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 70;
  background: #0A1F18;
  color: var(--gold-300);
  border: 1px solid rgba(212, 184, 106, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 24, 0.5);
  z-index: 50;
}
.admin-overlay.show { display: block; }

@media (max-width: 880px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; top: 0; left: 0; transform: translateX(-100%); width: 280px; z-index: 60; transition: transform 0.25s var(--ease); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-menu-btn { display: flex; align-items: center; justify-content: center; }
  .admin-main { padding: 64px 16px 64px; }
}

/* Admin tables/cards utilities */
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
.admin-table th { background: var(--bg-warm); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(212, 184, 106, 0.04); }

.admin-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-status.pending { background: rgba(196, 154, 56, 0.16); color: #8b6a14; }
.admin-status.submitted { background: rgba(74, 140, 200, 0.16); color: #2a5680; }
.admin-status.verified { background: rgba(74, 140, 119, 0.16); color: #2d6e5d; }
.admin-status.rejected { background: rgba(186, 74, 74, 0.14); color: #8a2a2a; }

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.admin-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.admin-kpi-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
.admin-kpi-val { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.03em; margin-top: 4px; }
.admin-kpi-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* === ADMIN DASHBOARD V2 (mirrors growallet /admin) ============================= */

.admin-bigmetric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.admin-bigmetric-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .admin-bigmetric-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .admin-bigmetric-grid,
  .admin-bigmetric-grid--4 { grid-template-columns: 1fr; }
}
.admin-bigmetric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.admin-bigmetric:hover {
  border-color: var(--gold-300);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -16px rgba(177, 138, 30, 0.30);
}
.admin-bigmetric-left { flex: 1; min-width: 0; }
.admin-bigmetric-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.admin-bigmetric-ic { font-size: 14px; }
.admin-bigmetric-val {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.admin-bigmetric-sub {
  font-size: 12.5px; color: var(--text-2);
  margin-top: 6px;
}
.admin-bigmetric.tone-good .admin-bigmetric-sub { color: #16a34a; }
.admin-bigmetric.tone-bad .admin-bigmetric-sub { color: #dc2626; }

.admin-spark {
  display: flex; align-items: flex-end;
  gap: 3px;
  height: 42px;
  width: 80px;
  flex-shrink: 0;
  overflow: hidden;
  contain: layout;
}
.admin-spark-bar {
  flex: 1 1 0;
  min-width: 0;
  background: var(--gold-400);
  opacity: 0.75;
  border-radius: 2px 2px 0 0;
  transition: opacity .15s ease;
}
.admin-spark-bar.empty {
  background: var(--surface-2);
  opacity: 1;
}
.admin-bigmetric:hover .admin-spark-bar:not(.empty) { opacity: 1; }

.admin-alerts { margin-bottom: 20px; padding: 14px 16px !important; }
.admin-alerts-head {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #b18a1e;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.admin-alerts-ic { color: #b18a1e; font-size: 14px; }
.admin-alerts-list { display: flex; flex-direction: column; gap: 8px; }
.admin-alert {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  text-decoration: none;
  transition: transform .15s ease;
  border: 1px solid transparent;
}
.admin-alert:hover { transform: translateX(2px); }
.admin-alert.danger { background: rgba(220, 38, 38, 0.06); border-color: rgba(220, 38, 38, 0.20); color: #991b1b; }
.admin-alert.warn   { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.22); color: #92400e; }
.admin-alert.info   { background: rgba(59, 130, 246, 0.07); border-color: rgba(59, 130, 246, 0.22); color: #1e40af; }
[data-theme="dark"] .admin-alert.danger { background: rgba(220, 38, 38, 0.12); color: #fca5a5; }
[data-theme="dark"] .admin-alert.warn   { background: rgba(245, 158, 11, 0.12); color: #fcd34d; }
[data-theme="dark"] .admin-alert.info   { background: rgba(59, 130, 246, 0.12); color: #93c5fd; }

.admin-statcard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 720px) { .admin-statcard-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-statcard {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.admin-statcard:hover { border-color: var(--gold-300); transform: translateY(-1px); }
.admin-statcard-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.admin-statcard-ic { font-size: 12px; }
.admin-statcard-val {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
  line-height: 1;
}
.admin-statcard.tone-good .admin-statcard-val { color: #16a34a; }
.admin-statcard.tone-warn .admin-statcard-val { color: #b45309; }
.admin-statcard.tone-bad  .admin-statcard-val { color: #dc2626; }

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 720px) { .admin-quick-grid { grid-template-columns: 1fr; } }
.admin-quick {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.admin-quick:hover { border-color: var(--gold-300); transform: translateY(-1px); }
.admin-quick-h { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.admin-quick-d { font-size: 12px; color: var(--text-2); }

.admin-bigmetric-highlight {
  background: linear-gradient(135deg, var(--gold-50), #FFFBF2);
  border-color: var(--gold-300);
}

/* Revenue dashboard ─────────────────────────────────────────────────────── */
.admin-rev-alltime {
  display: flex;
  gap: 0;
  padding: 18px 0 !important;
  margin-bottom: 20px;
}
.admin-rev-alltime-col {
  flex: 1;
  padding: 0 22px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.admin-rev-alltime-col:last-child { border-right: none; }
.admin-rev-alltime-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.admin-rev-alltime-val {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .admin-rev-alltime { flex-direction: column; gap: 14px; }
  .admin-rev-alltime-col { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .admin-rev-alltime-col:last-child { border-bottom: none; padding-bottom: 0; }
}

.admin-rev-chart { margin-bottom: 20px; }
.admin-rev-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.admin-rev-chart-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.admin-rev-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 160px;
  padding: 4px 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  contain: layout;
}
.admin-rev-bar {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  background: var(--gold-400);
  opacity: 0.7;
  border-radius: 2px 2px 0 0;
  min-height: 4%;
  transition: opacity .15s ease, transform .15s ease;
  cursor: default;
  position: relative;
}
.admin-rev-bars-x {
  display: flex;
  gap: 3px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.admin-rev-bars-x span {
  flex: 1 1 0;
  min-width: 0;
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.admin-rev-chart .card,
.admin-rev-chart {
  overflow: hidden;
  contain: layout;
}
.admin-rev-bar:hover { opacity: 1; transform: scaleY(1.02); transform-origin: bottom; }
.admin-rev-bar.empty { background: var(--surface-2); opacity: 1; }
.admin-rev-bars-x {
  display: flex;
  gap: 3px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.admin-rev-bars-x span {
  flex: 1;
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.admin-rev-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 920px) { .admin-rev-2col { grid-template-columns: 1fr; } }
.admin-plan-list { display: flex; flex-direction: column; gap: 14px; }
.admin-plan-row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.admin-plan-row-name { font-size: 13.5px; font-weight: 700; color: var(--text-1); }
.admin-plan-row-stat { font-size: 12px; color: var(--text-2); }
.admin-plan-bar { background: var(--surface-2); height: 8px; border-radius: 4px; overflow: hidden; }
.admin-plan-bar-fill { background: var(--gold-400); height: 100%; border-radius: 4px; transition: width .3s ease; }

.admin-top-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.admin-top-table thead th { text-align: left; padding: 6px 6px; font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--line); }
.admin-top-table tbody td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-top-table tbody tr:last-child td { border-bottom: none; }
.admin-top-table .admin-top-total { color: var(--gold-500); font-weight: 700; }

.admin-rev-heatmap { padding: 18px !important; }
.admin-heatmap { font-variant-numeric: tabular-nums; }
.admin-heatmap-hour-row {
  display: grid;
  grid-template-columns: 36px repeat(24, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.admin-heatmap-hour-row span {
  font-size: 9.5px;
  color: var(--text-3);
  text-align: center;
}
.admin-heatmap-row {
  display: grid;
  grid-template-columns: 36px repeat(24, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}
.admin-heatmap-day {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
  display: flex; align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-heatmap-cell {
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: var(--surface-2);
  transition: transform .12s ease;
}
.admin-heatmap-cell:hover { transform: scale(1.4); z-index: 1; }

/* === Mobile bottom-sheet menu ("Lainnya" tap) ============================== */

.menu-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 24, 0.55);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.menu-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.menu-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--surface);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -16px 48px -8px rgba(0,0,0,0.30);
  max-height: 88vh;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
.menu-sheet.open { transform: translateY(0); }
.menu-sheet-handle {
  width: 40px; height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin: 10px auto 0;
  flex-shrink: 0;
}
.menu-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 8px;
  flex-shrink: 0;
}
.menu-sheet-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
}
.menu-sheet-close {
  background: var(--surface-2);
  border: 1px solid var(--line);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.menu-sheet-close:hover { color: var(--text-1); }
.menu-sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 24px;
}
.menu-sheet-body .menu-section { margin-bottom: 20px; }
.menu-sheet-body .menu-section-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
  margin: 4px 0 10px;
}
/* Account list inside the sheet */
.account-list {
  display: flex; flex-direction: column;
  gap: 4px;
}
.account-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}
.account-row:hover {
  background: var(--surface);
  border-color: var(--gold-300);
}
.account-emoji { font-size: 18px; }
.account-label { flex: 1; }
.account-arrow { color: var(--text-3); font-size: 15px; }
.account-row-form { margin: 0; padding: 0; }
.account-row-form button.account-row {
  width: 100%;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: inherit;
}
.account-row-danger { color: #c44545 !important; }
.account-row-danger:hover { border-color: #c44545 !important; }

/* === THEME TOGGLE (Light / Auto / Dark) === */
.theme-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 3px;
  margin: 12px 0;
}
.sidebar .theme-toggle { background: rgba(212, 184, 106, 0.08); border-color: rgba(212, 184, 106, 0.16); }
.admin-sidebar .theme-toggle { background: rgba(212, 184, 106, 0.08); border-color: rgba(212, 184, 106, 0.16); }
.theme-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1;
  padding: 6px 0;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.sidebar .theme-toggle button,
.admin-sidebar .theme-toggle button { color: rgba(201, 196, 182, 0.65); }
.theme-toggle button:hover { color: var(--text-strong); }
.sidebar .theme-toggle button:hover,
.admin-sidebar .theme-toggle button:hover { color: var(--gold-300); }
.theme-toggle button.active {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--on-gold);
  font-weight: 600;
}
.sidebar .theme-toggle button.active,
.admin-sidebar .theme-toggle button.active {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #0A1F18;
}

/* === QURAN INDEX (iOS-style list) === */
.qr-page { padding-bottom: 100px; }
.qr-head { padding: 4px 0 8px; }
.qr-head h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin: 0;
}

/* Pill segmented control */
.qr-tabs {
  display: grid;
  /* Auto-fit to whatever number of tabs we render (currently 4: Surah/Juz/
     Halaman/Riwayat). 4-col on desktop, wraps to 2-col below 540px so labels
     don't truncate. */
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-warm);
  border-radius: 12px;
  padding: 4px;
  margin: 12px 0 16px;
  position: relative;
}
@media (max-width: 540px) {
  .qr-tabs { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .qr-tab:not(:first-child)::before { display: none; }
}
.qr-tab {
  text-align: center;
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 9px;
  position: relative;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.qr-tab:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--line);
}
.qr-tab.active {
  background: var(--surface);
  color: var(--text-strong);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(11, 31, 24, 0.06), 0 0 0 1px rgba(11, 31, 24, 0.04);
}
.qr-tab.active::before, .qr-tab.active + .qr-tab::before { background: transparent; }

/* Search box */
.qr-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-warm);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.qr-search-ic {
  width: 16px;
  height: 16px;
  color: var(--text-2);
  flex-shrink: 0;
}
.qr-search input {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--text-strong);
  outline: none;
}
.qr-search input::placeholder { color: var(--text-3, var(--text-2)); }

/* List */
.qr-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.qr-item { border-bottom: 1px solid var(--line); }
.qr-item:last-child { border-bottom: none; }

.qr-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  color: inherit;
  text-decoration: none;
}
.qr-item-body { flex: 1; min-width: 0; }
.qr-item-title {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.qr-item-sub {
  font-size: 13px;
  color: var(--gold-500);
  margin-top: 2px;
}
.qr-item-arabic {
  font-family: 'Omar Naskh', 'LPMQ Isyarat', serif;
  font-size: 22px;
  color: var(--text-strong);
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
  direction: rtl;
}

/* Octagram badge */
.qr-badge {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--text-3, #b8a87d);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-badge-svg { width: 100%; height: 100%; opacity: 0.55; }
.qr-badge-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-strong);
}

/* Riwayat sections */
.qr-section-head {
  background: var(--bg-warm);
  margin: 12px -16px 0;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
@media (min-width: 760px) {
  .qr-section-head { margin-left: 0; margin-right: 0; border-radius: 8px; }
}

.qr-bookmark-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  color: var(--text-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.qr-bookmark-ic {
  width: 36px;
  height: 36px;
  background: rgba(212, 184, 106, 0.12);
  border: 1px solid rgba(212, 184, 106, 0.30);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
  flex-shrink: 0;
}

.qr-history-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 4px;
  color: var(--text-strong);
  text-decoration: none;
}
.qr-history-num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-500);
  min-width: 28px;
  text-align: center;
}
.qr-history-label { flex: 1; font-size: 14px; }

.qr-chevron {
  color: var(--text-3, #999);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

/* Continue-reading sticky card (fixed above mobile-nav) */
.qr-continue {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 96px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-warm);
  border: 1px solid rgba(212, 184, 106, 0.35);
  border-radius: 14px;
  color: var(--text-strong);
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(11, 31, 24, 0.18);
}
.qr-continue-ic {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(212, 184, 106, 0.12);
  border: 1px solid rgba(212, 184, 106, 0.30);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-500);
  flex-shrink: 0;
}
.qr-continue-body { flex: 1; min-width: 0; }
.qr-continue-title { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.qr-continue-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.qr-continue-arrow { font-size: 24px; color: var(--text-3); }

@media (min-width: 880px) {
  /* On desktop with persistent sidebar, place continue card inside main column */
  .qr-continue {
    position: sticky;
    left: auto;
    right: auto;
    bottom: 24px;
    margin: 24px 0 0;
  }
}

/* === QARI CARDS (Audio Library) === */
.qari-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.qari-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease);
  position: relative;
}
.qari-card:hover {
  border-color: var(--gold-400);
  background: linear-gradient(135deg, rgba(212, 184, 106, 0.04), transparent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(11, 31, 24, 0.18);
}
.qari-photo-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--cream-100);
  box-shadow: 0 2px 6px rgba(11, 31, 24, 0.08);
  background: var(--bg-warm);
}
.qari-card:hover .qari-photo-wrap {
  border-color: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(212, 184, 106, 0.18);
}
.qari-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qari-meta { flex: 1; min-width: 0; }
.qari-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  line-height: 1.2;
}
.qari-style {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 4px;
}
.qari-arrow {
  color: var(--text-3, var(--text-2));
  font-size: 18px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: all 0.2s var(--ease);
}
.qari-card:hover .qari-arrow {
  color: var(--gold-500);
  opacity: 1;
  transform: translateX(2px);
}

/* === DARK MODE REFINEMENTS (post-tenant-override fix) === */

/* Inputs in dark mode sit slightly DARKER than their parent card,
   so the form field is visually distinguishable from the panel it lives in. */
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .field select {
  background: var(--bg-warm);
  border-color: var(--line-strong);
  color: var(--text-strong);
}
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder {
  color: var(--text-3);
}
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field textarea:focus,
[data-theme="dark"] .field select:focus {
  border-color: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(212, 184, 106, 0.12);
}

/* Body text default color in dark mode — ensure it's readable */
[data-theme="dark"] body { color: var(--text-1); }

/* Page head headings — full contrast cream in dark mode */
[data-theme="dark"] .page-head h1,
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 {
  color: var(--text-strong);
}
[data-theme="dark"] .muted { color: var(--text-2); }

/* Card border in dark mode — subtle outline to delineate cards from bg */
[data-theme="dark"] .card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.20);
}

/* Admin panel dashboard tables — ensure dark bg consistency */
[data-theme="dark"] .admin-table { background: var(--surface); }
[data-theme="dark"] .admin-table th { background: var(--bg-warm); color: var(--text-2); }
[data-theme="dark"] .admin-table tr:hover td { background: rgba(212, 184, 106, 0.06); }
[data-theme="dark"] .admin-kpi {
  background: var(--surface);
  border-color: var(--line);
}

/* Theme-toggle pill — bg should contrast with surrounding */
[data-theme="dark"] .theme-toggle { background: var(--bg-warm); border-color: var(--line); }

/* Sticky audio/continue/promo bars — make sure they remain readable */
[data-theme="dark"] .qr-continue {
  background: var(--surface);
  border-color: var(--gold-300);
  color: var(--text-strong);
}
[data-theme="dark"] .qr-continue-sub,
[data-theme="dark"] .qr-history-label,
[data-theme="dark"] .qr-item-title { color: var(--text-strong); }
[data-theme="dark"] .qr-search { background: var(--bg-warm); }
[data-theme="dark"] .qr-tabs { background: var(--bg-warm); }
[data-theme="dark"] .qr-tab { color: var(--text-2); }
[data-theme="dark"] .qr-tab.active { background: var(--surface-2); color: var(--text-strong); }
[data-theme="dark"] .qr-section-head { background: var(--bg-warm); color: var(--text-2); }

/* Tier badges / pill buttons on dark sidebar — keep gold accent */
[data-theme="dark"] .btn.gold,
[data-theme="dark"] button.btn.gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #0A1F18;
}
[data-theme="dark"] .btn.ghost {
  background: var(--bg-warm);
  border-color: var(--line-strong);
  color: var(--text-1);
}
[data-theme="dark"] .btn.ghost:hover { background: var(--surface); border-color: var(--gold-300); }

/* === HABITS — 7/30 day grid extension === */

.hb-range { display: inline-flex; background: var(--bg-warm); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.hb-range-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.15s var(--ease);
}
.hb-range-tab:hover { color: var(--text-strong); }
.hb-range-tab.active {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--on-gold);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(212, 184, 106, 0.25);
}
[data-theme="dark"] .hb-range-tab.active { color: #0A1F18; }

/* Chunk header (30-day view only) */
.hb-chunk-head {
  display: grid;
  grid-template-columns: 40px 1fr auto auto auto auto;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 18px 6px;
}
.hb-chunk-spacer, .hb-pct-spacer { display: none; } /* placeholders */
.hb-chunk-head .hb-chunk-label {
  text-align: center;
  min-width: calc(10 * 22px + 9 * 4px);
}
@media (max-width: 1100px) {
  .hb-chunk-head { display: none; }
}

/* Habit row layout — adjust to give grid more horizontal room */
.habit-row {
  display: grid;
  grid-template-columns: 40px minmax(120px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.habit-row.hb-row-30 {
  grid-template-columns: 36px minmax(110px, 200px) 1fr auto auto;
}
.habit-name-text { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }

/* Day grid */
.habit-grid { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: thin; }
.habit-grid.grid-30 { gap: 3px; }
.habit-grid.grid-30 .habit-day { width: 22px; height: 22px; font-size: 9px; border-radius: 5px; }

/* 10-day chunk separator */
.hb-chunk-gap { display: inline-block; width: 6px; flex-shrink: 0; }

/* Percent badge per habit */
.habit-pct {
  min-width: 44px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-500);
  letter-spacing: -0.02em;
}
.habit-delete { margin: 0; }
.habit-delete button { padding: 4px 10px; }

/* Mobile: stack habit name + grid, horizontal scroll on grid */
@media (max-width: 720px) {
  .habit-row, .habit-row.hb-row-30 {
    grid-template-columns: 36px 1fr auto auto;
    grid-template-rows: auto auto;
  }
  .habit-name { grid-column: 2 / 3; grid-row: 1; }
  .habit-pct { grid-column: 3 / 4; grid-row: 1; }
  .habit-delete { grid-column: 4 / 5; grid-row: 1; }
  .habit-grid { grid-column: 1 / -1; grid-row: 2; padding-top: 6px; }
  .habit-row.hb-row-30 .habit-grid { overflow-x: auto; }
}

/* Today column highlight (subtle gold ring already on .habit-day.today) */
.habit-day.today:not(.done) {
  border-color: var(--gold-300);
  background: rgba(212, 184, 106, 0.08);
  color: var(--gold-500);
}

/* === AUDIO PLAYER (full-surah per qari) === */
.ap-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  color: var(--text-strong);
  text-decoration: none;
  font-size: 20px;
  flex-shrink: 0;
}
.ap-back:hover { background: var(--surface); border-color: var(--gold-300); }

.ap-qari-photo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-300);
  flex-shrink: 0;
}
.ap-search-row { display: flex; align-items: center; gap: 10px; }

/* Row buttons (replace anchor) */
.ap-row {
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.ap-row:hover { background: var(--bg-warm); }
.ap-row.playing {
  background: linear-gradient(90deg, rgba(212, 184, 106, 0.12), transparent);
  box-shadow: inset 3px 0 0 var(--gold-400);
}
.ap-play-ic {
  font-size: 16px;
  color: var(--gold-500);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

/* Sticky bottom audio bar */
.ap-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  background: var(--surface);
  border: 1px solid var(--gold-300);
  border-radius: 16px;
  box-shadow: 0 16px 40px -10px rgba(11, 31, 24, 0.40);
  padding: 12px 16px;
}
[data-theme="dark"] .ap-bar {
  background: var(--surface-2);
  border-color: var(--gold-400);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.60);
}
.ap-bar-inner {
  display: grid;
  grid-template-columns: 44px 1fr auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.ap-bar-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-300);
  object-fit: cover;
}
.ap-bar-meta { min-width: 0; }
.ap-bar-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.ap-bar-sub { font-size: 12px; color: var(--text-2); }

.ap-bar-controls { display: flex; align-items: center; gap: 6px; }
.ap-btn {
  appearance: none;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-strong);
  font-size: 14px;
  transition: all 0.15s var(--ease);
}
.ap-btn:hover { border-color: var(--gold-300); background: var(--surface); }
.ap-btn.primary {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--on-gold);
  border-color: var(--gold-400);
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(212, 184, 106, 0.30);
}
[data-theme="dark"] .ap-btn.primary { color: #0A1F18; }

.ap-bar-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}
.ap-bar-progress input[type="range"] {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}
.ap-bar-progress input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--line-strong);
  border-radius: 999px;
}
.ap-bar-progress input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--line-strong);
  border-radius: 999px;
}
.ap-bar-progress input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--gold-400);
  border-radius: 50%;
  margin-top: -5px;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.20);
}
.ap-bar-progress input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--gold-400);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

@media (max-width: 760px) {
  .ap-bar { left: 8px; right: 8px; bottom: 76px; padding: 10px 12px; }
  .ap-bar-inner { grid-template-columns: 40px 1fr auto auto; row-gap: 8px; }
  .ap-bar-photo { width: 40px; height: 40px; }
  .ap-bar-progress { grid-column: 1 / -1; min-width: 0; }
  .ap-bar-progress span { display: none; }
  .ap-bar-controls .ap-btn:not(.primary) { display: none; }
}

/* === Audio bar: respect sidebar offset on desktop, full-width on mobile === */
/* Desktop with app/admin shell — bar starts AFTER 260px sidebar (+ small gap) */
@media (min-width: 881px) {
  body[data-shell="app"]   .ap-bar,
  body[data-shell="admin"] .ap-bar { left: 276px; }
}
/* Mobile + public landing already use default left:16px / right:16px */

/* === HABITS — consistency summary + sparkline === */
.hb-summary { margin-bottom: 16px; padding: 18px 20px; }
.hb-summary-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.hb-summary-stats {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.hb-summary-stats strong { color: var(--gold-500); font-weight: 700; }

.hb-bar-chart {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  height: 64px;
  align-items: end;
}
.hb-bar-col {
  height: 100%;
  display: flex;
  align-items: flex-end;
  background: var(--bg-warm);
  border-radius: 6px 6px 4px 4px;
  overflow: hidden;
}
.hb-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 100%);
  border-radius: 6px 6px 0 0;
  transition: height 0.4s var(--ease);
  min-height: 3px;
}
[data-theme="dark"] .hb-bar-col { background: var(--surface); }

.hb-bar-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.habit-meta {
  font-size: 11px;
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}
.habit-meta .hb-streak { color: var(--gold-500); font-weight: 600; }

/* Inline sparkline per habit (8 bars) */
.hb-spark {
  width: 72px;
  height: 28px;
  flex-shrink: 0;
  overflow: visible;
}
.hb-spark-bar.low  { fill: rgba(186, 74, 74, 0.55); }
.hb-spark-bar.mid  { fill: rgba(212, 184, 106, 0.65); }
.hb-spark-bar.high { fill: var(--gold-400); }
[data-theme="dark"] .hb-spark-bar.low  { fill: rgba(232, 130, 130, 0.65); }
[data-theme="dark"] .hb-spark-bar.mid  { fill: rgba(232, 200, 130, 0.72); }
[data-theme="dark"] .hb-spark-bar.high { fill: var(--gold-300); }

/* Adjust habit-row grid to fit sparkline column */
.habit-row {
  grid-template-columns: 40px minmax(140px, 1fr) auto 72px auto auto;
}
.habit-row.hb-row-30 {
  grid-template-columns: 36px minmax(110px, 200px) 1fr 72px auto auto;
}
@media (max-width: 720px) {
  .habit-row, .habit-row.hb-row-30 {
    grid-template-columns: 36px 1fr 72px auto auto;
    grid-template-rows: auto auto;
  }
  .habit-name { grid-column: 2 / 3; grid-row: 1; }
  .hb-spark { grid-column: 3 / 4; grid-row: 1; }
  .habit-pct { grid-column: 4 / 5; grid-row: 1; }
  .habit-delete { grid-column: 5 / 6; grid-row: 1; }
  .habit-grid { grid-column: 1 / -1; grid-row: 2; padding-top: 6px; }
}

/* === QURAN SURAH NAV — bottom prev/index/next === */
.qsn {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  margin: 32px 0 24px;
  align-items: stretch;
}
.qsn-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text-strong);
  text-decoration: none;
  transition: all 0.2s var(--ease);
  font-size: 14px;
  line-height: 1.2;
}
.qsn-btn:hover {
  border-color: var(--gold-400);
  background: linear-gradient(135deg, rgba(212, 184, 106, 0.06), transparent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(11, 31, 24, 0.18);
}
.qsn-empty { visibility: hidden; }
.qsn-prev { justify-content: flex-start; }
.qsn-next { justify-content: flex-end; text-align: right; }
.qsn-index {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 22px;
  color: var(--gold-500);
}
.qsn-index-label { font-size: 12px; font-weight: 600; margin-top: 4px; }
.qsn-arrow { font-size: 22px; color: var(--gold-500); flex-shrink: 0; }
.qsn-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qsn-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
.qsn-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }

@media (max-width: 640px) {
  .qsn { grid-template-columns: 1fr 1fr; }
  .qsn-index { grid-column: 1 / -1; order: -1; }
  .qsn-empty { display: none; }
}

/* ============================================================================
   LANDING V3 — restored styles (flagship cards, kerugian, hijrah, demo
   carousel, sticky CTA, scarcity overlay, social-proof toast, vs alternatif,
   gradient text, persona/footer pills). These were previously missing from
   app.css and caused the landing to render with un-styled divs.
   ============================================================================ */

/* Gradient text utility — used on section headings */
.lp-gradient-text {
  background: linear-gradient(135deg, var(--gold-500) 0%, #C9A85A 50%, var(--gold-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-500);
}

/* Feature icon emoji fallback */
.lp-feature-emoji {
  font-size: 26px;
  line-height: 1;
}

/* ── Kerugian (FOMO) section ─────────────────────────────────────────────── */
.lp-section-kerugian {
  background: linear-gradient(180deg, #FFF8F0, #FAF7EE);
}
.lp-kerugian-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.lp-kerugian-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid #f3e6d0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 14px -8px rgba(196, 69, 69, 0.10);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lp-kerugian-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -10px rgba(196, 69, 69, 0.18);
}
.lp-kerugian-icon {
  /* Icon container — cream rounded square w/ dark stroke SVG, matches Features style */
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3EBD8;
  border-radius: 11px;
  color: #1B1F1D;
  margin-bottom: 4px;
}
.lp-kerugian-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.lp-kerugian-body { flex: 1; min-width: 0; }
.lp-kerugian-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1B1F1D;
  line-height: 1.3;
  margin-bottom: 4px;
}
.lp-kerugian-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #4F5651;
}
.lp-kerugian-cta {
  margin-top: 8px;
  background: linear-gradient(135deg, #FFF8E6, #FCEEC8);
  border: 1.5px solid var(--gold-300);
  border-radius: 16px;
  padding: 28px 26px;
  text-align: center;
}
.lp-kerugian-quote {
  font-size: 16px;
  font-style: italic;
  line-height: 1.65;
  color: #1B1F1D;
  margin: 0 auto 8px;
  max-width: 680px;
}
.lp-kerugian-quote strong { color: var(--gold-600); font-style: normal; }
.lp-kerugian-attr {
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 18px;
}
.lp-kerugian-msg {
  font-size: 14.5px;
  line-height: 1.6;
  color: #4F5651;
  margin: 0 0 18px;
}
.lp-kerugian-msg strong { color: var(--gold-600); font-weight: 700; }

/* ── Untuk Siapa (personas) section ──────────────────────────────────────── */
.lp-section-personas {
  background: linear-gradient(180deg, #FAF7EE, #FFFFFF);
}
.lp-personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}
.lp-persona-card,
.lp-persona {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px 20px;
  text-align: center;
  transition: transform .15s ease, border-color .15s ease;
}
.lp-persona-card:hover,
.lp-persona:hover { transform: translateY(-2px); border-color: var(--gold-300); }
.lp-persona-emoji {
  font-size: 42px;
  line-height: 1;
  margin: 0 auto 12px;
  display: block;
  text-align: center;
}
.lp-persona-card h3,
.lp-persona-card h4,
.lp-persona h3,
.lp-persona h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1B1F1D;
  margin: 0 0 8px;
  text-align: center;
}
.lp-persona-card p,
.lp-persona p {
  font-size: 13px;
  line-height: 1.6;
  color: #4F5651;
  margin: 0;
  text-align: center;
}

/* ── Flagship 3 section ──────────────────────────────────────────────────── */
.lp-section-flagship {
  background: linear-gradient(180deg, #FFFFFF, #FAF7EE);
}
.lp-flagship-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 880px) { .lp-flagship-grid { grid-template-columns: 1fr; } }
.lp-flagship-card {
  position: relative;
  background: linear-gradient(180deg, #fff, #FFFBF2);
  border: 1.5px solid var(--gold-200);
  border-radius: 18px;
  padding: 26px 22px 22px;
  box-shadow: 0 8px 22px -14px rgba(177, 138, 30, 0.20);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.lp-flagship-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -16px rgba(177, 138, 30, 0.35);
}
.lp-flagship-num {
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: var(--gold-200);
  line-height: 1;
  letter-spacing: -0.04em;
}
.lp-flagship-ic {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: white;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px -4px rgba(177, 138, 30, 0.35);
}
.lp-flagship-ic svg { width: 26px; height: 26px; }
.lp-flagship-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #1B1F1D;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.lp-flagship-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4F5651;
  margin: 0 0 12px;
}
.lp-flagship-desc strong { color: var(--gold-600); font-weight: 700; }
.lp-flagship-proof {
  background: rgba(177, 138, 30, 0.08);
  border-left: 3px solid var(--gold-400);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #4F5651;
  margin-top: auto;
}

/* ── Vs Alternatif (comparison table) ────────────────────────────────────── */
.lp-section-vs {
  background: linear-gradient(180deg, #FAF7EE, #FFFFFF);
}
.lp-vs-wrap {
  max-width: 880px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 22px -14px rgba(0,0,0,0.08);
}
.lp-vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.lp-vs-table thead th {
  background: linear-gradient(180deg, #FFFBF2, #FCEEC8);
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-600);
  border-bottom: 1px solid var(--gold-200);
}
.lp-vs-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: #4F5651;
  vertical-align: top;
}
.lp-vs-table tbody tr:last-child td { border-bottom: none; }
.lp-vs-table tbody tr:hover { background: #FFFBF2; }
.lp-vs-table tbody td:first-child {
  font-weight: 600;
  color: #1B1F1D;
  background: #FAF7EE;
}
.lp-vs-deen { background: rgba(177, 138, 30, 0.04); color: var(--gold-600); font-weight: 600; }
.lp-vs-no { color: #c44545; font-weight: 700; }
.lp-vs-partial { color: #b45309; font-style: italic; }

/* ── Hijrah Companion section ────────────────────────────────────────────── */
.lp-section-hijrah {
  background: linear-gradient(180deg, #F5F0E8, #FAF7EE);
}
.lp-hijrah-quote {
  max-width: 720px;
  margin: 32px auto 0;
  background: #fff;
  border: 1px solid var(--gold-200);
  border-radius: 16px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 6px 18px -10px rgba(177, 138, 30, 0.20);
}
.lp-hijrah-quote-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  line-height: 1.65;
  color: #1B1F1D;
  margin: 0 0 10px;
}
.lp-hijrah-quote-attr {
  font-size: 12.5px;
  color: var(--text-3);
}
.lp-hijrah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}
.lp-hijrah-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  /* Vertical stack: emoji top → title → description (matches original layout) */
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: transform .15s ease, border-color .15s ease;
}
.lp-hijrah-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-300);
}
.lp-hijrah-emoji {
  /* Icon in cream rounded square — consistent with Features/Kerugian style */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: #F3EBD8;
  border-radius: 12px;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
}
.lp-hijrah-card h3,
.lp-hijrah-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1B1F1D;
  margin: 0 0 4px;
  line-height: 1.3;
}
.lp-hijrah-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4F5651;
  margin: 0;
}

/* ── About Pembuat section ───────────────────────────────────────────────── */
.lp-section-about {
  background: linear-gradient(180deg, #FFFFFF, #FAF7EE);
}
.lp-about-body p {
  font-size: 15px;
  line-height: 1.7;
  color: #4F5651;
  margin: 0 0 14px;
}
.lp-about-body p strong { color: #1B1F1D; font-weight: 700; }

/* ── Demo preview (phone mockup carousel) ────────────────────────────────── */
.lp-section-demo {
  background: linear-gradient(180deg, #FAF7EE, #FFFFFF);
}
.lp-demo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  padding: 12px 0;
  flex-wrap: wrap;
}
@media (max-width: 880px) {
  .lp-demo-wrap { flex-direction: column; gap: 28px; }
}
.lp-demo-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.lp-demo-phone {
  position: relative;
  width: 280px;
  height: 580px;
  background: #1B1F1D;
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.30), 0 0 0 4px #2a2e2c;
}
/* Notch removed — was covering screen content. Cleaner without it. */
.lp-demo-notch { display: none; }
.lp-demo-screen {
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.lp-demo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}
.lp-demo-img.active { opacity: 1; }
.lp-demo-tabs {
  display: flex;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 4px 12px -6px rgba(0,0,0,0.10);
}
.lp-demo-tab {
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s ease;
}
.lp-demo-tab.active {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: white;
}
.lp-demo-tab:hover:not(.active) { color: var(--text-1); }

/* ── Scarcity countdown section ──────────────────────────────────────────── */
.lp-section-scarcity {
  background: linear-gradient(180deg, #FFFFFF, #FFF8E6);
}
.lp-scarcity-card {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(135deg, #fff, #FFFBF2);
  border: 2px solid var(--gold-300);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 14px 36px -16px rgba(177, 138, 30, 0.30);
}
.lp-scarcity-pulse {
  font-size: 38px;
  animation: lp-scarcity-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.lp-scarcity-body { flex: 1; min-width: 0; }
.lp-scarcity-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #c44545;
  margin-bottom: 6px;
}
.lp-scarcity-title {
  font-size: 20px;
  font-weight: 800;
  color: #1B1F1D;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.lp-scarcity-title strong { color: var(--gold-600); }
.lp-scarcity-msg {
  font-size: 13.5px;
  color: #4F5651;
  margin-bottom: 12px;
}
.lp-scarcity-timer {
  display: flex; align-items: baseline; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.lp-time-block {
  display: flex; flex-direction: column; align-items: center;
  background: #1B1F1D;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 52px;
}
.lp-time-num {
  font-size: 22px; font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.lp-time-lbl {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-top: 4px;
}
.lp-time-sep {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-500);
  padding: 0 1px;
}
.lp-scarcity-cta {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -4px rgba(212, 184, 106, 0.5);
  transition: filter .15s ease, transform .15s ease;
}
.lp-scarcity-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
@media (max-width: 720px) {
  .lp-scarcity-card { flex-direction: column; align-items: stretch; text-align: center; }
  .lp-scarcity-timer { justify-content: center; }
}

/* ── Sticky bottom CTA (lp-sticky-*) ─────────────────────────────────────── */
.lp-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent, rgba(248, 244, 234, 0.85) 60%, rgba(248, 244, 234, 0.98) 100%);
  padding: 18px 16px calc(14px + env(safe-area-inset-bottom));
  z-index: 60;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  pointer-events: none;
}
.lp-sticky-cta.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.lp-sticky-inner {
  max-width: 540px;
  margin: 0 auto;
  display: flex; gap: 12px; align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--gold-300);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 14px 36px -12px rgba(177, 138, 30, 0.30), 0 4px 14px -4px rgba(11, 31, 24, 0.10);
}
.lp-sticky-text { flex: 1; min-width: 0; color: #1B1F1D; display: flex; flex-direction: column; gap: 3px; }
.lp-sticky-title { font-weight: 700; font-size: 13px; color: #1B1F1D; line-height: 1.15; display: flex; align-items: center; gap: 5px; }
.lp-sticky-star { font-size: 13px; }
.lp-sticky-price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; line-height: 1.1; }
.lp-sticky-old { font-size: 12px; color: #9aa19a; text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: #c44545; }
.lp-sticky-new { font-size: 16px; font-weight: 800; color: var(--gold-600); letter-spacing: -0.01em; }
.lp-sticky-unit { font-size: 11px; font-weight: 600; color: #7A8079; margin-left: 1px; }
.lp-sticky-save { font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; color: #fff; background: #c44545; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.lp-sticky-btn {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700; font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -4px rgba(212, 184, 106, 0.5);
}
@media (max-width: 380px) {
  .lp-sticky-inner { padding: 10px 12px; gap: 8px; }
  .lp-sticky-title { font-size: 12px; }
  .lp-sticky-new { font-size: 14px; }
  .lp-sticky-old { font-size: 11px; }
  .lp-sticky-save { font-size: 9px; padding: 2px 5px; }
  .lp-sticky-btn { padding: 10px 14px; font-size: 12px; }
}

/* ── Scarcity overlay (floats above sticky CTA) ──────────────────────────── */
@keyframes lp-scarcity-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.lp-scarcity-overlay {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 59;
  padding: 0 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: transform .35s ease, opacity .35s ease, bottom .25s ease;
}
.lp-scarcity-overlay.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
body[data-lp-sticky-visible="1"] .lp-scarcity-overlay { bottom: calc(92px + env(safe-area-inset-bottom)); }
body[data-lp-sticky-visible="0"] .lp-scarcity-overlay,
body:not([data-lp-sticky-visible]) .lp-scarcity-overlay { bottom: calc(16px + env(safe-area-inset-bottom)); }
.lp-scarcity-overlay-inner {
  max-width: 540px;
  margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #FFF8E6, #FDEFCF);
  border: 1.5px solid var(--gold-300);
  border-radius: 12px;
  padding: 6px 10px 6px 12px;
  box-shadow: 0 12px 32px -10px rgba(177, 138, 30, 0.40), 0 4px 12px -4px rgba(11, 31, 24, 0.12);
}
.lp-scarcity-overlay-icon { font-size: 17px; flex-shrink: 0; animation: lp-scarcity-pulse 1.6s ease-in-out infinite; }
.lp-scarcity-overlay-body {
  flex: 1; min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-column-gap: 10px;
  align-items: center;
}
.lp-scarcity-overlay-label {
  grid-column: 1 / span 2;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.08em; color: #c44545;
  text-transform: uppercase; line-height: 1.15;
  margin-bottom: 2px;
}
.lp-scarcity-overlay-timer { display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.lp-ov-num {
  font-size: 14px; font-weight: 800;
  color: #1B1F1D;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(177, 138, 30, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
  min-width: 22px;
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.lp-ov-sep { font-size: 13px; font-weight: 800; color: var(--gold-600); padding: 0 1px; }
.lp-scarcity-overlay-sub { font-size: 11px; color: #4F5651; line-height: 1.25; }
.lp-scarcity-overlay-sub strong { color: #c44545; font-weight: 700; white-space: nowrap; }
.lp-scarcity-overlay-close {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(11, 31, 24, 0.08);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #4F5651;
  font-size: 15px; line-height: 1;
  cursor: pointer; flex-shrink: 0;
}
.lp-scarcity-overlay-close:hover { background: #fff; color: #1B1F1D; }
@media (max-width: 420px) {
  .lp-scarcity-overlay-inner { padding: 6px 8px 6px 10px; gap: 8px; }
  .lp-scarcity-overlay-body { grid-template-columns: 1fr; grid-column-gap: 0; }
  .lp-scarcity-overlay-label { grid-column: 1; margin-bottom: 1px; }
  .lp-scarcity-overlay-sub { font-size: 10.5px; margin-top: 2px; }
  .lp-ov-num { font-size: 13px; min-width: 20px; padding: 1px 4px; }
}

/* ── Social-proof toast ──────────────────────────────────────────────────── */
.lp-toast {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 50;
  display: flex; align-items: center; gap: 11px;
  background: linear-gradient(180deg, #FFFFFF, #FBF7EE);
  border: 1px solid rgba(177, 138, 30, 0.22);
  border-left: 3px solid var(--gold-500);
  border-radius: 14px;
  padding: 10px 12px 10px 12px;
  box-shadow: 0 14px 34px -10px rgba(11, 31, 24, 0.22), 0 4px 12px -4px rgba(177, 138, 30, 0.18);
  max-width: 300px;
  transform: translateY(14px) scale(0.96);
  opacity: 0;
  transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1), opacity .28s ease, bottom .25s ease;
  pointer-events: none;
}
.lp-toast.show { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
body[data-lp-sticky-visible="1"] .lp-toast { bottom: calc(98px + env(safe-area-inset-bottom)); }
body[data-lp-sticky-visible="1"][data-lp-scarcity-overlay-visible="1"] .lp-toast { bottom: calc(178px + env(safe-area-inset-bottom)); }
.lp-toast-avatar {
  position: relative;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: white;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -2px rgba(177, 138, 30, 0.40);
}
.lp-toast-avatar-ping {
  position: absolute;
  top: -2px; right: -2px;
  width: 9px; height: 9px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  animation: lp-toast-ping 1.6s ease-out infinite;
}
@keyframes lp-toast-ping {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.lp-toast-body { flex: 1; min-width: 0; }
.lp-toast-line { font-size: 12.5px; line-height: 1.3; color: #1B1F1D; }
.lp-toast-name { font-weight: 700; }
.lp-toast-msg { color: #4F5651; font-weight: 500; }
.lp-toast-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.lp-toast-badge {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #FFF8E6, #FCEEC8);
  color: var(--gold-600);
  font-size: 10.5px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(177, 138, 30, 0.25);
}
.lp-toast-time { font-size: 10.5px; color: #9aa19a; }
.lp-toast-close {
  background: transparent; border: none;
  color: #9aa19a; font-size: 18px;
  cursor: pointer; padding: 0 4px; line-height: 1;
  align-self: flex-start; margin-top: -2px;
}
.lp-toast-close:hover { color: #1B1F1D; }
@media (max-width: 380px) {
  .lp-toast { left: 10px; right: 10px; max-width: none; padding: 9px 10px; gap: 9px; }
  .lp-toast-avatar { width: 30px; height: 30px; font-size: 13px; }
  .lp-toast-line { font-size: 12px; }
}

/* ── Plan card features list (lp-plan-feature-*) ─────────────────────────── */
.lp-plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 5px 0;
  font-size: 13px;
  line-height: 1.45;
}
.lp-plan-feature-ic {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-500);
  width: 18px; height: 18px;
}
.lp-plan-feature-ic svg { width: 16px; height: 16px; }
.lp-plan-feature-text { flex: 1; min-width: 0; color: #4F5651; }

/* ── Testimoni author label ──────────────────────────────────────────────── */
.lp-testimonial-author {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-600);
  margin-top: 8px;
}

/* ── Misc landing utilities ──────────────────────────────────────────────── */
.lp-stat-grid .lp-stat {
  text-align: center;
  padding: 0 18px;
}
.lp-about-wrap-textonly {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.lp-about-wrap-textonly .lp-about-body { max-width: 640px; margin: 0 auto; }
.lp-about-wrap-textonly .lp-eyebrow { margin-left: auto; margin-right: auto; }
.lp-about-wrap-textonly .lp-about-body p { text-align: center; }

/* ── Landing footer (lp-footer-*) ────────────────────────────────────────── */
.lp-footer-brand {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 360px;
}
.lp-footer-col { display: flex; flex-direction: column; }
.lp-footer-socials { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.lp-footer-soc {
  display: inline-flex !important; align-items: center; gap: 7px;
  padding: 8px 13px !important;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212, 184, 106, 0.22);
  border-radius: 999px;
  color: rgba(251, 248, 240, 0.88) !important;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s ease;
  text-decoration: none;
}
.lp-footer-soc:hover {
  background: rgba(212, 184, 106, 0.15);
  border-color: var(--gold-400);
  color: var(--gold-200) !important;
  transform: translateY(-1px);
}
.lp-footer-soc svg { flex-shrink: 0; }
.lp-footer-pill {
  display: inline-flex; align-items: center;
  background: rgba(212, 184, 106, 0.08);
  border: 1px solid rgba(212, 184, 106, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: rgba(251, 248, 240, 0.72);
  font-weight: 500;
}

/* ── Demo features list (3 callouts under phone mockup) ──────────────────── */
.lp-demo-features {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 320px;
  margin-top: 18px;
}
.lp-demo-feat {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.lp-demo-feat-ic { font-size: 20px; flex-shrink: 0; line-height: 1; }
.lp-demo-feat-title { font-size: 13px; font-weight: 700; color: #1B1F1D; margin-bottom: 2px; }
.lp-demo-feat-desc { font-size: 12px; line-height: 1.5; color: #4F5651; }

/* ── Admin page head (heading + subtitle pair) ───────────────────────────── */
.admin-page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.admin-page-head h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin: 0;
}
.admin-page-head .muted { color: var(--text-3); font-size: 13px; }
.admin-page-head .muted.small { font-size: 12.5px; }
.admin-nav-label { flex: 1; min-width: 0; }

/* ============================================================================
   SETTINGS — Color theme picker (swatch ring + active state)
   ============================================================================ */
.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  align-items: flex-start;
}
.color-swatch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 6px 4px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: all .15s ease;
  min-width: 64px;
}
.color-swatch:hover { background: var(--surface-2); }
.color-swatch.active {
  background: var(--surface-2);
  border-color: var(--gold-400);
  color: var(--text-1);
}
.color-swatch .ring {
  display: inline-block;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px rgba(0,0,0,0.12);
}
.color-swatch-custom { position: relative; }
.color-swatch-custom .ring { background-clip: padding-box; }

/* ============================================================================
   SITUASI / "SAYA LAGI…" — Resep Spiritual cards
   ============================================================================ */
.sit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.sit-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease;
}
.sit-chip:hover { transform: translateY(-2px); border-color: var(--gold-300); }
.sit-chip-icon { font-size: 26px; flex-shrink: 0; }
.sit-chip-body { flex: 1; min-width: 0; }
.sit-chip-title { font-size: 14px; font-weight: 700; color: var(--text-1); }
.sit-chip-sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.sit-chip-arrow { color: var(--text-3); font-size: 18px; flex-shrink: 0; }

.sit-detail-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.sit-detail-icon { font-size: 32px; }

.sit-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 18px;
  margin: 18px 0;
}
.sit-section-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}

.sit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.sit-item:last-child { border-bottom: none; padding-bottom: 0; }
.sit-item:first-child { padding-top: 0; }
.sit-item-no {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--gold-100);
  color: var(--gold-600);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.sit-item-body { flex: 1; min-width: 0; }
.sit-item-arabic {
  font-size: 26px;
  line-height: 2;
  text-align: right;
  color: var(--text-1);
  margin-bottom: 8px;
  font-family: 'Geist', system-ui, sans-serif;
  direction: rtl;
}
.sit-item-latin {
  font-size: 14px;
  font-style: italic;
  color: var(--text-2);
  margin-bottom: 6px;
  line-height: 1.6;
}
.sit-item-translation {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-1);
  margin-bottom: 6px;
}
.sit-item-source {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 4px;
}

.sit-action-box {
  position: relative;
  background: linear-gradient(135deg, #FFF8E6, #FCEEC8);
  border: 1.5px solid var(--gold-400);
  border-left-width: 4px;
  border-radius: 14px;
  padding: 20px 22px 18px 24px;
  margin: 22px 0 0;
  box-shadow: 0 4px 14px -8px rgba(177, 138, 30, 0.25);
}
[data-theme="dark"] .sit-action-box {
  /* Visible against dark page bg — gold-tinted dark panel instead of cream */
  background: linear-gradient(135deg, rgba(212, 184, 106, 0.18), rgba(177, 138, 30, 0.10));
  border-color: var(--gold-400);
  border-left-color: var(--gold-300);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 6px 18px -12px rgba(0,0,0,0.40);
}
.sit-action-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
[data-theme="dark"] .sit-action-label {
  background: rgba(212, 184, 106, 0.18);
  color: var(--gold-300);
}
.sit-action-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-1);
  margin: 0;
  font-weight: 500;
}
[data-theme="dark"] .sit-action-text {
  color: rgba(251, 248, 240, 0.94);
}

/* ============================================================================
   SIDEBAR FOOTER — action buttons (Pengaturan / Admin / Keluar) + feedback form
   Earlier CSS targeted `.footer-area a` but template uses `.footer-action`.
   ============================================================================ */
.sidebar .footer-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(251, 248, 240, 0.72) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sidebar .footer-action svg { flex-shrink: 0; opacity: 0.8; }
.sidebar .footer-action:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(251, 248, 240, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.06);
}
.sidebar .footer-action:hover svg { opacity: 1; }
.sidebar .footer-action.footer-action-admin {
  color: var(--gold-300) !important;
  background: rgba(212, 184, 106, 0.06);
  border-color: rgba(212, 184, 106, 0.12);
}
.sidebar .footer-action.footer-action-admin:hover {
  background: rgba(212, 184, 106, 0.14);
  color: var(--gold-200) !important;
}
.sidebar .footer-action.footer-action-danger {
  color: #f87171 !important;
}
.sidebar .footer-action.footer-action-danger:hover {
  background: rgba(248, 113, 113, 0.10);
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.20);
}
.sidebar .footer-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

/* Feedback form di bottom sidebar */
.sidebar-feedback {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-direction: column; gap: 6px;
}
.sidebar-feedback-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(251, 248, 240, 0.60);
  margin-bottom: 2px;
}
.sidebar-feedback textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(251, 248, 240, 0.92);
  font-size: 12.5px;
  font-family: inherit;
  resize: vertical;
  min-height: 50px;
  line-height: 1.45;
  transition: border-color .15s ease, background .15s ease;
}
.sidebar-feedback textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.06);
}
.sidebar-feedback textarea::placeholder { color: rgba(251, 248, 240, 0.36); }
.sidebar-feedback-btn {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: filter .15s ease, transform .15s ease;
  align-self: flex-end;
}
.sidebar-feedback-btn:hover { filter: brightness(1.10); transform: translateY(-1px); }
.sidebar-feedback-btn:disabled { opacity: 0.5; cursor: wait; transform: none; }
.sidebar-feedback-status {
  font-size: 11.5px;
  min-height: 16px;
  text-align: right;
}

/* ============================================================================
   FINAL CTA buttons (lp-cta-actions) — gold + ghost variants
   ============================================================================ */
.lp-cta-actions {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.lp-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease, background .15s ease;
}
.lp-cta-btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: white !important;
  box-shadow: 0 8px 22px -8px rgba(212, 184, 106, 0.5);
}
.lp-cta-btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lp-cta-btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(251, 248, 240, 0.92) !important;
  border: 1px solid rgba(251, 248, 240, 0.30);
}
.lp-cta-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white !important;
}
@media (max-width: 480px) {
  .lp-cta-actions { flex-direction: column; }
  .lp-cta-btn { width: 100%; padding: 13px 20px; }
}

/* ============================================================================
   INSTALL PAGE — /install tutorial (iOS / Android / Desktop)
   ============================================================================ */
.install-page {
  background: linear-gradient(180deg, #FAF7EE 0%, #FFFFFF 60%);
  padding: 60px 0 100px;
  min-height: 100vh;
}
.install-head { text-align: center; margin-bottom: 40px; }
.install-eyebrow {
  display: inline-block;
  background: var(--gold-100);
  color: var(--gold-600);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.install-head h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #1B1F1D;
  margin: 0 0 14px;
  line-height: 1.15;
}
.install-lede {
  font-size: 16px;
  line-height: 1.65;
  color: #4F5651;
  max-width: 640px;
  margin: 0 auto;
}
.install-lede strong { color: var(--gold-600); }

.install-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  max-width: 580px;
  margin: 40px auto 32px;
  box-shadow: 0 4px 14px -8px rgba(0,0,0,0.10);
}
.install-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  white-space: nowrap;
}
.install-tab.active {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: white;
}
.install-tab:hover:not(.active) { color: var(--text-1); background: var(--surface-2); }
@media (max-width: 540px) {
  .install-tabs { flex-direction: column; border-radius: 14px; padding: 6px; }
  .install-tab { border-radius: 10px; }
}

.install-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto 40px;
}
.install-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 4px 14px -8px rgba(0,0,0,0.06);
}
.install-step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 12px -2px rgba(177, 138, 30, 0.35);
}
.install-step-body { flex: 1; min-width: 0; }
.install-step-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #1B1F1D;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.install-step-body p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #4F5651;
  margin: 0 0 10px;
}
.install-step-body p strong { color: #1B1F1D; font-weight: 700; }
.install-step-body code {
  background: var(--gold-50);
  color: var(--gold-600);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  border: 1px solid var(--gold-200);
}
.install-tip {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #f59e0b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #92400e;
  margin-top: 10px;
}
.install-illustration {
  display: flex; justify-content: center;
  background: var(--gold-50);
  border: 1px dashed var(--gold-300);
  border-radius: 12px;
  padding: 20px;
  margin-top: 12px;
  color: var(--gold-600);
}
.install-cta {
  display: inline-block;
  margin-top: 12px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: white;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 14px -4px rgba(177, 138, 30, 0.40);
  transition: filter .15s ease, transform .15s ease;
}
.install-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.install-benefits {
  max-width: 880px;
  margin: 60px auto 40px;
  text-align: center;
}
.install-benefits h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #1B1F1D;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.install-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  text-align: left;
}
.install-benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.install-benefit-icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}
.install-benefit h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #1B1F1D;
  margin: 0 0 6px;
}
.install-benefit p {
  font-size: 13px;
  line-height: 1.6;
  color: #4F5651;
  margin: 0;
}

.install-faq {
  max-width: 720px;
  margin: 40px auto;
}
.install-faq h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #1B1F1D;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-align: center;
}
.install-faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 8px;
  transition: border-color .15s ease;
}
.install-faq-item[open] { border-color: var(--gold-300); }
.install-faq-item summary {
  font-weight: 700;
  font-size: 14.5px;
  color: #1B1F1D;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.install-faq-item summary::-webkit-details-marker { display: none; }
.install-faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--gold-500);
  font-weight: 400;
  margin-left: 12px;
  transition: transform .15s ease;
}
.install-faq-item[open] summary::after { transform: rotate(45deg); }
.install-faq-item p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #4F5651;
  margin: 12px 0 0;
}
.install-faq-item p strong { color: #1B1F1D; }

.install-back {
  text-align: center;
  margin-top: 32px;
}
.install-back a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 13.5px;
}
.install-back a:hover { color: var(--gold-600); }

/* ============================================================================
   FEEDBACK PAGE — /feedback (growallet-style)
   ============================================================================ */
.fb-page { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin: 0 auto; }
.fb-head { padding: 4px 0 0; }
.fb-head h1 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text-1);
}
.fb-lede { font-size: 13.5px; line-height: 1.6; color: var(--text-3); margin: 0; }

.fb-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 20px;
}
.fb-section-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.fb-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
}
.fb-alert-ok { background: rgba(34, 197, 94, 0.10); color: #166534; border: 1px solid rgba(34, 197, 94, 0.25); }
.fb-alert-err { background: rgba(220, 38, 38, 0.08); color: #991b1b; border: 1px solid rgba(220, 38, 38, 0.25); }
[data-theme="dark"] .fb-alert-ok { color: #86efac; }
[data-theme="dark"] .fb-alert-err { color: #fca5a5; }

.fb-form { display: flex; flex-direction: column; gap: 16px; }
.fb-field { display: flex; flex-direction: column; gap: 8px; }
.fb-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.fb-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 540px) {
  .fb-category-grid { grid-template-columns: repeat(2, 1fr); }
}
.fb-cat-option { cursor: pointer; }
.fb-cat-option input { position: absolute; opacity: 0; pointer-events: none; }
.fb-cat-option-inner {
  padding: 12px 10px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  text-align: center;
  transition: all .15s ease;
}
.fb-cat-option:hover .fb-cat-option-inner { background: var(--surface); border-color: var(--gold-300); }
.fb-cat-option input:checked + .fb-cat-option-inner {
  background: var(--gold-50);
  border-color: var(--gold-500);
}
.fb-cat-option-icon { font-size: 20px; margin-bottom: 4px; line-height: 1; }
.fb-cat-option-label { font-size: 12px; font-weight: 700; color: var(--text-1); }
.fb-cat-option input:checked + .fb-cat-option-inner .fb-cat-option-label { color: var(--gold-600); }

.fb-input, .fb-textarea {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--text-1);
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.fb-input:focus, .fb-textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  background: var(--surface);
}
.fb-textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.fb-hint { font-size: 11.5px; color: var(--text-3); }

.fb-actions {
  display: flex; justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.fb-submit-btn {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
  transition: filter .15s ease, transform .15s ease;
  box-shadow: 0 6px 14px -4px rgba(177, 138, 30, 0.40);
}
.fb-submit-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item {
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.fb-item-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.fb-cat, .fb-status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.fb-cat-feature { background: rgba(177, 138, 30, 0.12); color: var(--gold-600); }
.fb-cat-bug { background: rgba(220, 38, 38, 0.10); color: #991b1b; }
.fb-cat-general { background: rgba(124, 58, 237, 0.10); color: #6d28d9; }
.fb-cat-praise { background: rgba(34, 197, 94, 0.10); color: #15803d; }
.fb-cat-other { background: var(--surface); color: var(--text-3); border: 1px solid var(--line); }

.fb-status-new { background: rgba(245, 158, 11, 0.14); color: #92400e; }
.fb-status-reviewed { background: rgba(59, 130, 246, 0.10); color: #1e40af; }
.fb-status-planned { background: rgba(124, 58, 237, 0.10); color: #6d28d9; }
.fb-status-done { background: rgba(34, 197, 94, 0.12); color: #166534; }
.fb-status-wont_fix { background: var(--surface); color: var(--text-3); border: 1px solid var(--line); }

.fb-item-date { font-size: 11.5px; color: var(--text-3); margin-left: auto; }
.fb-item-body {
  font-size: 13.5px; line-height: 1.6; color: var(--text-1);
  white-space: pre-wrap;
}
.fb-item-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-1);
}
.fb-item-note-label { font-weight: 700; color: var(--gold-600); }

/* ============================================================================
   CHECKOUT — fix oversized icons in features list
   ============================================================================ */
.checkout-plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}
.checkout-plan-feature-ic {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  color: var(--gold-500);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  border-radius: 6px;
  margin-top: 1px;
}
.checkout-plan-feature-ic svg {
  width: 14px; height: 14px;
  stroke-width: 1.8;
}

/* ============================================================================
   ADMIN PAYMENTS — gateway config (Manual / Xendit) growallet-style
   ============================================================================ */
.pay-alert {
  background: rgba(177, 138, 30, 0.10);
  border: 1px solid var(--gold-300);
  color: var(--gold-600);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  max-width: 880px;
}

.pay-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 880px;
}

.pay-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 20px;
}

.pay-section-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.pay-section-head-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.pay-section-head-row .pay-section-label { margin-bottom: 0; }
.pay-section-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 18px;
}
.pay-section-desc strong { color: var(--text-1); }
.pay-section-desc code {
  background: var(--surface-2);
  color: var(--gold-600);
  padding: 1px 6px;
  border-radius: 5px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
}

.pay-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.pay-status-badge.ready { background: rgba(34, 197, 94, 0.12); color: #166534; }
.pay-status-badge.notready { background: var(--surface-2); color: var(--text-3); }
[data-theme="dark"] .pay-status-badge.ready { color: #86efac; }

/* Provider tiles */
.pay-provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) { .pay-provider-grid { grid-template-columns: 1fr; } }
.pay-provider-tile {
  cursor: pointer;
  display: block;
}
.pay-provider-tile input { position: absolute; opacity: 0; pointer-events: none; }
.pay-provider-tile-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: all .15s ease;
  position: relative;
}
.pay-provider-tile:hover .pay-provider-tile-inner {
  background: var(--surface);
  border-color: var(--gold-300);
}
.pay-provider-tile input:checked + .pay-provider-tile-inner {
  background: var(--gold-50);
  border-color: var(--gold-500);
}
.pay-provider-tile-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}
.pay-provider-tile-body { flex: 1; min-width: 0; }
.pay-provider-tile-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.pay-provider-tile-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
}
.pay-provider-tile-radio {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  position: relative;
  align-self: center;
}
.pay-provider-tile.selected .pay-provider-tile-radio,
.pay-provider-tile input:checked + .pay-provider-tile-inner .pay-provider-tile-radio {
  border-color: var(--gold-500);
  background: var(--gold-500);
}
.pay-provider-tile.selected .pay-provider-tile-radio::after,
.pay-provider-tile input:checked + .pay-provider-tile-inner .pay-provider-tile-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #fff;
  border-radius: 50%;
}

/* Fields */
.pay-field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.pay-field:last-child { margin-bottom: 0; }
.pay-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
}
.pay-input, .pay-textarea {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--text-1);
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
  width: 100%;
}
.pay-input:focus, .pay-textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  background: var(--surface);
}
.pay-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
}
.pay-hint {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
}
.pay-hint code, .pay-hint strong { color: var(--gold-600); font-weight: 600; }
.pay-hint code {
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
}

/* Input with action (eye toggle) */
.pay-input-with-action {
  position: relative;
  display: flex;
}
.pay-input-with-action .pay-input { padding-right: 44px; }
.pay-eye-btn {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 6px;
  font-size: 14px;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.pay-eye-btn:hover { background: var(--surface); color: var(--text-1); }

/* Segmented Test/Live */
.pay-segmented {
  display: flex;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  max-width: 360px;
}
.pay-seg-option { flex: 1; cursor: pointer; }
.pay-seg-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-seg-option span {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  text-align: center;
  transition: all .15s ease;
}
.pay-seg-option:hover span:not(.pay-seg-active) { color: var(--text-1); }
.pay-seg-option input:checked + span {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: white;
  box-shadow: 0 4px 12px -2px rgba(177, 138, 30, 0.40);
}

/* Webhook URL display box */
.pay-webhook-box {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--gold-50);
  border: 1px dashed var(--gold-300);
  border-radius: 10px;
}
.pay-webhook-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 8px;
}
.pay-webhook-row {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 8px;
}
.pay-webhook-row code {
  flex: 1;
  background: #fff;
  border: 1px solid var(--gold-200);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-1);
  overflow-x: auto;
  white-space: nowrap;
}
.pay-copy-btn {
  flex-shrink: 0;
  background: var(--gold-500);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: filter .15s ease;
}
.pay-copy-btn:hover { filter: brightness(1.10); }

.pay-actions {
  display: flex; justify-content: flex-end;
}
.pay-save-btn {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: white;
  border: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: filter .15s ease, transform .15s ease;
  box-shadow: 0 6px 16px -4px rgba(177, 138, 30, 0.40);
}
.pay-save-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ============================================================================
   CHECKOUT — voucher input with inline Apply button + status
   ============================================================================ */
.ck-voucher-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.ck-voucher-row input[type="text"] {
  flex: 1;
  min-width: 0;
}
.ck-voucher-apply {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: white;
  border: none;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: filter .15s ease, transform .15s ease;
  box-shadow: 0 4px 12px -4px rgba(177, 138, 30, 0.40);
}
.ck-voucher-apply:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.ck-voucher-apply:disabled { opacity: 0.6; cursor: wait; transform: none; }
.ck-voucher-status {
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
  color: var(--text-3);
}
.ck-voucher-status.err { color: #c44545; }
.ck-voucher-status.ok { color: #16a34a; }
.ck-voucher-applied {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.30);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #166534;
  text-align: center;
}
[data-theme="dark"] .ck-voucher-applied { color: #86efac; }

/* ============================================================================
   MOOD MODAL — Resep Spiritual sub-card (visually distinct from main verse)
   Font sizes deliberately SMALLER than .mood-modal-arabic + .mood-modal-snippet
   so the main ayat above stays the focal point.
   ============================================================================ */
.mood-recipe {
  margin-top: 28px;
  padding: 20px 22px 18px;
  background: rgba(11, 31, 24, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  position: relative;
}
[data-theme="dark"] .mood-recipe {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.mood-recipe-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: rgba(212, 184, 106, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(212, 184, 106, 0.22);
}
[data-theme="dark"] .mood-recipe-label {
  background: rgba(212, 184, 106, 0.18);
  color: var(--gold-300);
  border-color: rgba(212, 184, 106, 0.30);
}

.mood-recipe-doa {
  display: flex; flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

/* Arabic — smaller than main .mood-modal-arabic (which is ~32px+).
   Cap around 22px so the user's eye stays on the verse above. */
.mood-recipe-arabic {
  font-size: 21px !important;
  line-height: 1.95;
  color: var(--text-1);
  margin: 2px 0 4px;
  letter-spacing: 0;
}
@media (max-width: 480px) {
  .mood-recipe-arabic { font-size: 19px !important; line-height: 1.8; }
}

.mood-recipe-trans {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  font-style: italic;
  max-width: 92%;
  margin: 0 auto;
}
.mood-recipe-trans em { font-style: italic; }

.mood-recipe-meaning {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-1);
  max-width: 92%;
  margin: 4px auto 0;
}

.mood-recipe-source {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 6px;
  font-weight: 500;
}

/* Langkah konkret sub-block — separated by border-top dotted, gold accent */
.mood-recipe-action {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
[data-theme="dark"] .mood-recipe-action {
  border-top-color: rgba(255, 255, 255, 0.10);
}
.mood-recipe-action-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: rgba(212, 184, 106, 0.10);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
[data-theme="dark"] .mood-recipe-action-label {
  background: rgba(212, 184, 106, 0.16);
  color: var(--gold-300);
}
.mood-recipe-action p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-1);
  margin: 0;
  max-width: 92%;
  margin-left: auto;
  margin-right: auto;
}
[data-theme="dark"] .mood-recipe-action p {
  color: rgba(251, 248, 240, 0.92);
}

/* ============================================================================
   LOCK ICONS — sidebar nav + menu tiles for free users
   ============================================================================ */
/* Sidebar nav-link layout: icon + label + lock right-aligned */
.sidebar nav a.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.sidebar nav a.nav-link .nav-label-text {
  flex: 1; min-width: 0;
}
.sidebar nav a.nav-locked .nav-label-text { opacity: 0.7; }
.sidebar nav a.nav-locked .ic { opacity: 0.6; }
.nav-lock {
  font-size: 11px;
  opacity: 0.85;
  margin-left: 4px;
}

/* Menu tile lock — small badge on top-right of the icon circle */
.menu-tile-locked .menu-tile-circle { opacity: 0.62; filter: saturate(0.7); }
.menu-tile-locked .menu-tile-label   { opacity: 0.75; }
.menu-tile-circle { position: relative; }
.menu-tile-lock {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--gold-500);
  color: #fff;
  font-size: 9px;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px -2px rgba(0,0,0,0.30);
  border: 2px solid var(--surface);
}

/* ============================================================================
   PWA standalone — ensure top safe-area is respected (iOS notch / dynamic island)
   ============================================================================ */
@media (display-mode: standalone) {
  /* Solid mask FIXED over the status bar area — prevents scrolled content
     from showing through the notch/dynamic island.
     z-index above sticky headers but below modals (200+). */
  body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0;
    height: env(safe-area-inset-top);
    background: var(--bg);
    z-index: 9999;
    pointer-events: none;
  }
  body { padding-top: env(safe-area-inset-top); background: var(--bg); }
  /* Sticky headers offset by safe-area so they sit BELOW the mask. */
  .lp-header { top: env(safe-area-inset-top); }
  /* `.main` already pushed down by body padding-top above — just a comfortable
     gap (s-6 ≈ 24px) so header isn't glued to the status bar mask edge. */
  .main { padding-top: var(--s-6); }
  .mobile-nav { padding-bottom: calc(max(env(safe-area-inset-bottom), 8px) + 6px); }
}
html { background: var(--bg); }

/* ============================================================================
   QURAN — Halaman tab (604-page grid)
   ============================================================================ */
.qr-halaman-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 6px;
  padding: 8px 0;
}
.qr-halaman-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  padding: 4px;
}
.qr-halaman-cell:hover {
  transform: translateY(-2px);
  border-color: var(--gold-400);
  background: var(--gold-50);
}
.qr-halaman-num {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1;
}
.qr-halaman-sub {
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.qr-halaman-cell:hover .qr-halaman-num { color: var(--gold-600); }
@media (max-width: 480px) {
  .qr-halaman-grid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 5px; }
  .qr-halaman-num { font-size: 15px; }
  .qr-halaman-sub { font-size: 9px; }
}

/* === Mushaf page view (/quran/halaman/{n}) ============================== */
.mushaf-head {
  display: flex; align-items: center; gap: 12px;
  background: var(--brand-deep);
  /* Hardcode light cream — --cream-50 flips to dark in dark-mode but this
     header bar stays dark-green in both themes, so the var would invert
     the text to invisible. */
  color: #FBF8F0;
  margin: -16px -16px 0;
  padding: 14px 16px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  position: sticky; top: 0; z-index: 50;
}
.mushaf-head, .mushaf-head a, .mushaf-page-label, .mushaf-surah-label {
  color: #FBF8F0;
}
.mushaf-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: inherit;
  text-decoration: none; font-size: 18px; flex-shrink: 0;
}
.mushaf-back:hover { background: rgba(255,255,255,0.2); }
.mushaf-title { flex: 1; text-align: center; line-height: 1.25; }
.mushaf-page-label {
  display: inline-block;
  background: rgba(255,255,255,0.10);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.mushaf-surah-label {
  font-size: 18px; font-weight: 700; margin-top: 4px;
  font-family: var(--font-display, inherit);
}
.mushaf-spacer { width: 32px; flex-shrink: 0; }

.mushaf-page {
  background: var(--surface);
  color: var(--text-strong);
  padding: 28px 22px 22px;
  margin: 18px 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  font-family: var(--font-arabic);
  font-size: 26px;
  line-height: 2.5;
  text-align: justify;
  text-align-last: center;
}
@media (max-width: 540px) {
  .mushaf-page { padding: 22px 16px 18px; font-size: 23px; line-height: 2.4; }
}

.mushaf-ayah { unicode-bidi: isolate; }
.mushaf-aya-num {
  color: #B8923E;
  font-size: 0.78em;
  margin: 0 2px;
  font-family: var(--font-arabic);
  unicode-bidi: isolate;
}
[data-theme="dark"] .mushaf-aya-num { color: var(--gold-400, #D4B86A); }

.mushaf-surah-break {
  display: block; width: 100%;
  margin: 18px 0 10px;
  text-align: center;
}
.mushaf-surah-divider {
  height: 1px; background: var(--line); margin: 0 auto 12px; width: 60%;
}
.mushaf-surah-banner {
  display: inline-block;
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 22px;
  font-family: var(--font-arabic);
  font-size: 22px;
  color: var(--text-strong);
  letter-spacing: 0.5px;
}
.mushaf-besmellah {
  margin-top: 12px;
  font-family: var(--font-arabic);
  font-size: 22px;
  color: var(--text-strong);
}

.mushaf-page-num {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  margin: 0 0 18px;
  letter-spacing: 1px;
}

.mushaf-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  margin: 8px 0 24px;
}
.mushaf-nav-btn {
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-strong);
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.mushaf-nav-btn:hover { border-color: var(--brand-deep); }
.mushaf-nav-btn.ghost { background: transparent; border-style: dashed; opacity: 0.5; }
.mushaf-nav-index {
  background: var(--brand-deep); color: var(--cream-50); border-color: var(--brand-deep);
  white-space: nowrap;
}
.mushaf-nav-index:hover { background: var(--brand-deep); }
@media (max-width: 540px) {
  .mushaf-nav-btn { font-size: 12px; padding: 10px 8px; }
}

/* === Dzikir branded toast ============================================== */
.dz-toast-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,16,14,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dz-toast-backdrop.open { opacity: 1; pointer-events: auto; }
.dz-toast-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--cream-50, #FBF7EC) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px 22px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  transform: translateY(12px) scale(0.96);
  transition: transform 0.28s cubic-bezier(.22,1,.36,1);
}
.dz-toast-backdrop.open .dz-toast-card { transform: translateY(0) scale(1); }
[data-theme="dark"] .dz-toast-card {
  background: linear-gradient(180deg, #1A3328 0%, #15281F 100%);
}
.dz-toast-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(212,184,106,0.25), rgba(212,184,106,0.08));
  border-radius: 50%;
  font-size: 32px;
  border: 1px solid rgba(212,184,106,0.45);
}
.dz-toast-err .dz-toast-icon {
  background: linear-gradient(135deg, rgba(220,90,90,0.20), rgba(220,90,90,0.05));
  border-color: rgba(220,90,90,0.40);
}
.dz-toast-title {
  font-size: 20px; font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
  font-family: var(--font-display, inherit);
}
.dz-toast-body {
  font-size: 14px; line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 18px;
}
.dz-toast-btn {
  appearance: none; border: 0;
  background: var(--brand-deep);
  color: var(--cream-50);
  padding: 12px 28px;
  font-size: 15px; font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.dz-toast-btn:hover { filter: brightness(1.08); }

/* === Mushaf page — parchment overhaul ================================= */
/* Always render as printed-page (cream bg + dark ink) regardless of theme */

.mushaf-page {
  background: #FBF6E7;
  color: #1B1F1D;
  padding: 36px 26px 28px;
  margin: 18px 0 14px;
  border-radius: 14px;
  border: 1px solid #C9B98A;
  position: relative;
  font-family: 'Amiri Quran', 'Scheherazade New', 'Traditional Arabic', var(--font-arabic);
  font-size: 30px;
  line-height: 2.45;
  text-align: justify;
  text-align-last: center;
  box-shadow:
    0 0 0 6px #FBF6E7,
    0 0 0 7px #C9B98A,
    0 12px 32px rgba(0,0,0,0.18);
  /* subtle paper grain */
  background-image:
    radial-gradient(ellipse at top, rgba(201,185,138,0.10), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(201,185,138,0.08), transparent 60%);
}

/* Decorative corner ornaments */
.mushaf-page::before,
.mushaf-page::after {
  content: "❋";
  position: absolute;
  font-size: 14px;
  color: #B8923E;
  opacity: 0.7;
}
.mushaf-page::before { top: 10px; left: 12px; }
.mushaf-page::after  { top: 10px; right: 12px; }

@media (max-width: 540px) {
  .mushaf-page {
    padding: 28px 18px 22px;
    font-size: 25px;
    line-height: 2.35;
    box-shadow:
      0 0 0 4px #FBF6E7,
      0 0 0 5px #C9B98A,
      0 8px 24px rgba(0,0,0,0.15);
  }
}

.mushaf-ayah { unicode-bidi: isolate; color: #1B1F1D; }
.mushaf-aya-num {
  color: #8C6A1F;
  font-family: inherit;
  font-size: 1em;
  margin: 0 2px;
  unicode-bidi: isolate;
}

.mushaf-surah-break {
  display: block; width: 100%;
  margin: 22px 0 14px;
  text-align: center;
}
.mushaf-surah-divider { display: none; }
.mushaf-surah-banner {
  display: inline-block;
  background: linear-gradient(180deg, #F4E3B0 0%, #E5CD86 100%);
  border: 1px solid #B8923E;
  border-radius: 10px;
  padding: 12px 36px;
  font-family: inherit;
  font-size: 26px;
  color: #5C4A1A;
  letter-spacing: 1px;
  box-shadow: inset 0 0 0 2px #FBF6E7;
  position: relative;
}
.mushaf-surah-banner::before,
.mushaf-surah-banner::after {
  content: "✦";
  color: #B8923E;
  font-size: 14px;
  vertical-align: middle;
  margin: 0 8px;
  opacity: 0.6;
}
.mushaf-besmellah {
  margin-top: 14px;
  font-family: inherit;
  font-size: 24px;
  color: #1B1F1D;
}

.mushaf-page-num {
  text-align: center;
  color: #8C6A1F;
  font-size: 13px;
  margin: 12px 0 18px;
  letter-spacing: 2px;
  font-weight: 600;
}
.mushaf-page-num::before { content: "— "; opacity: 0.5; }
.mushaf-page-num::after  { content: " —"; opacity: 0.5; }


/* === QCF v1 mushaf — line-by-line, fit-to-viewport ==================== */
.mushaf-page-qcf {
  background: #FBF6E7;
  color: #1B1F1D;
  padding: 22px 26px 20px;
  margin: 12px auto 8px;
  max-width: 1240px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid #C9B98A;
  position: relative;
  line-height: 1.0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  /* font-size will be set by mushaf-fit.js */
  font-size: 26px;
  box-shadow:
    0 0 0 5px #FBF6E7,
    0 0 0 6px #C9B98A,
    0 12px 32px rgba(0,0,0,0.18);
  background-image:
    radial-gradient(ellipse at top, rgba(201,185,138,0.10), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(201,185,138,0.08), transparent 60%);
}
.mushaf-page-qcf::before,
.mushaf-page-qcf::after {
  content: "❋";
  position: absolute;
  font-size: 12px;
  color: #B8923E;
  opacity: 0.6;
}
.mushaf-page-qcf::before { top: 6px; left: 10px; }
.mushaf-page-qcf::after  { top: 6px; right: 10px; }

.mushaf-line {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.85;
  direction: rtl;
  unicode-bidi: bidi-override;
  /* Allow the QCF v1 PUA glyphs to render as one continuous run.
     Each line in the template is a single text node — internal glyph metrics
     (built into the per-page font) produce the printed-mushaf justified look. */
  white-space: nowrap;
  letter-spacing: 0;
  word-spacing: 0;
  font-feature-settings: "kern" 1, "liga" 1;
}

@media (max-width: 540px) {
  /* Edge-to-edge mushaf: cancel parent .main horizontal padding so the
     reader uses the full viewport width — gives auto-fit more room to grow
     the font. Negative margin matches --s-4 (mobile main L/R padding). */
  .mushaf-wrap {
    margin-left: calc(-1 * var(--s-4));
    margin-right: calc(-1 * var(--s-4));
  }
  .mushaf-page-qcf {
    padding: 12px 6px 10px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    max-width: none;
  }
  /* Loading skeleton matches the edge-to-edge frame */
  .mushaf-loading {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  }
}

/* === Mushaf reader: loading state + reveal ============================= */
.mushaf-wrap { position: relative; min-height: 320px; }

.mushaf-loading {
  position: absolute; inset: 12px auto 8px 0; right: 0;
  margin: auto; max-width: 720px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px;
  background: #FBF6E7;
  border: 1px solid #C9B98A;
  border-radius: 14px;
  color: #8C6A1F;
  box-shadow:
    0 0 0 5px #FBF6E7,
    0 0 0 6px #C9B98A,
    0 12px 32px rgba(0,0,0,0.18);
  opacity: 1;
  transition: opacity 0.25s ease;
  z-index: 2;
  min-height: 320px;
}
.mushaf-loading.done { opacity: 0; pointer-events: none; }
.mushaf-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(184,146,62,0.25);
  border-top-color: #B8923E;
  border-radius: 50%;
  animation: mushafSpin 0.9s linear infinite;
  margin-bottom: 12px;
}
@keyframes mushafSpin { to { transform: rotate(360deg); } }
.mushaf-loading-text { font-size: 14px; font-weight: 600; letter-spacing: 0.3px; }

/* Hide page content until font is loaded — prevents PUA glyph soup */
.mushaf-page-qcf {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.mushaf-page-qcf.ready { visibility: visible; opacity: 1; }

/* Loading overlay is delayed by 180ms so it doesn't flash when the font
   is already cached (very common after first page nav). */
.mushaf-loading {
  opacity: 0;
  animation: mushafLoadingFadeIn 0s ease 180ms forwards;
}
.mushaf-loading.done { opacity: 0; animation: none; }
@keyframes mushafLoadingFadeIn { to { opacity: 1; } }

/* === Inline swipe hint (persistent, dismissable) ====================== */
.mushaf-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px auto 0;
  padding: 5px 10px 5px 14px;
  font-size: 11.5px;
  color: var(--text-3);
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.2px;
  position: relative;
  left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity 280ms ease, transform 280ms ease;
}
.mushaf-hint.done { opacity: 0; transform: translateX(-50%) translateY(-4px); pointer-events: none; }
.mushaf-hint .mh-arrow {
  color: var(--gold-400, #C9A961);
  font-weight: 700;
  animation: mhArrowPulse 1.6s ease-in-out infinite;
}
.mushaf-hint .mh-arrow:first-child { animation-name: mhArrowPulseLeft; }
.mushaf-hint .mh-arrow:nth-child(3) { animation-name: mhArrowPulseRight; animation-delay: 0.8s; }
@keyframes mhArrowPulseLeft {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50%      { transform: translateX(-3px); opacity: 1; }
}
@keyframes mhArrowPulseRight {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50%      { transform: translateX(3px); opacity: 1; }
}
.mushaf-hint .mh-close {
  appearance: none; border: 0; background: transparent;
  color: var(--text-4);
  font-size: 16px; line-height: 1;
  padding: 0 4px; margin-left: 4px;
  cursor: pointer;
  font-family: inherit;
}
.mushaf-hint .mh-close:hover { color: var(--text-2); }

/* === Mushaf page-flip — simple horizontal slide ====================== */
.mushaf-wrap {
  overflow: hidden;
  /* Lock touch to horizontal pan only — vertical drift during a swipe used
     to leak into the body scroll, making the gesture feel "draggy".
     pan-x = browser ignores vertical motion inside this area, pinch-zoom
     still allowed for inspecting Arabic glyphs. */
  touch-action: pan-x pinch-zoom;
}

.mushaf-page-qcf.flip-out-left {
  animation: slideOutLeft 240ms cubic-bezier(.4, 0, .2, 1) forwards;
}
.mushaf-page-qcf.flip-out-right {
  animation: slideOutRight 240ms cubic-bezier(.4, 0, .2, 1) forwards;
}
.mushaf-page-qcf.flip-in-right {
  animation: slideInFromRight 280ms cubic-bezier(.2, .7, .3, 1) both;
}
.mushaf-page-qcf.flip-in-left {
  animation: slideInFromLeft 280ms cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes slideOutLeft  { to { transform: translateX(-100%); opacity: 0; } }
@keyframes slideOutRight { to { transform: translateX( 100%); opacity: 0; } }
@keyframes slideInFromRight {
  from { transform: translateX( 100%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes slideInFromLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mushaf-page-qcf.flip-out-left,
  .mushaf-page-qcf.flip-out-right { animation: none; opacity: 0; transition: opacity 120ms; }
  .mushaf-page-qcf.flip-in-left,
  .mushaf-page-qcf.flip-in-right { animation: none; }
}

/* === Mushaf surah-header banner (rendered on empty slots) ============== */
.mushaf-surah-banner-line {
  justify-content: center !important;
}
.mushaf-surah-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px;
  border: 1.5px solid #B8923E;
  border-radius: 8px;
  background: linear-gradient(180deg, #F4E3B0 0%, #E5CD86 100%);
  color: #5C4A1A;
  font-family: 'Amiri Quran', 'Scheherazade New', serif;
  font-size: 0.85em;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px #FBF6E7;
  white-space: nowrap;
  line-height: 1.4;
}
.msb-ornament { font-size: 0.9em; color: #B8923E; opacity: 0.8; }
.msb-name { letter-spacing: 0.5px; }

.mushaf-line-empty { min-height: 1em; }

/* === Mushaf surah-header (3-column) + bismillah lines ================== */
.mushaf-surah-banner-line {
  justify-content: center !important;
  padding: 4px 0;
}
.mushaf-surah-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #EDF6EF;
  border: 1px solid #C9D9CB;
  border-radius: 8px;
  padding: 8px 14px;
  width: 100%;
  max-width: 96%;
  direction: ltr;
}
.msb-side {
  flex: 0 0 auto;
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 0.45em;
  color: #2D5240;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.msb-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.msb-medallion {
  display: inline-block;
  padding: 4px 18px;
  border: 1.5px solid #B8923E;
  border-radius: 999px;
  background: #FBF6E7;
  font-family: 'Amiri Quran', 'Scheherazade New', serif;
  font-size: 0.65em;
  color: #5C4A1A;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.mushaf-bismillah-line {
  justify-content: center !important;
}
.mushaf-bismillah {
  font-family: 'Amiri Quran', 'Scheherazade New', serif;
  font-size: 0.75em;
  color: #1B1F1D;
  text-align: center;
  letter-spacing: 0.5px;
  direction: rtl;
  /* subtle decorative underline */
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(184,146,62,0.25);
}
