/* ═══════════════════════════════════════════════════════════════════
   FIZZEEK — Reusable Component Patterns
   Flat minimal vocabulary shared across every page (other than
   muscle-memory, which has its own bespoke vocabulary).
   Depends on css/fizzeek-tokens.css being loaded first.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Base reset (safe: additive, no page-breaking defaults) ── */
html, body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══ PANEL — flat surface for cards, modals, content containers ═══ */
.fz-panel{
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.fz-panel--elevated{
  background: var(--elevated);
  border-color: var(--elevated-border);
}
.fz-panel--well{
  background: var(--well);
  border-color: var(--well-border);
}

/* ═══ BUTTON — three variants (primary / secondary / ghost) ═══ */
.fz-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-width: 44px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--text);
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.fz-btn:active{ transform: scale(0.97); }
.fz-btn:disabled,
.fz-btn[aria-disabled="true"]{
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* Primary — vivid green fill, the single strongest action on a screen */
.fz-btn--primary{
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  font-weight: 700;
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 3px 10px rgba(34,197,94,0.28);
}
.fz-btn--primary:active{
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,0.18),
    0 1px 4px rgba(34,197,94,0.22);
}

/* Secondary — outlined ghost, pairs with primary for hierarchy */
.fz-btn--secondary{
  background: transparent;
  border-color: var(--text-dim);
  color: var(--text);
}
.fz-btn--secondary:hover{ border-color: var(--text-muted); }
.fz-btn--secondary:active{
  background: var(--interactive);
  border-color: var(--text-muted);
}

/* Ghost — lowest emphasis, for tertiary actions */
.fz-btn--ghost{
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}
.fz-btn--ghost:hover{ color: var(--text); }
.fz-btn--ghost:active{ background: var(--interactive); }

/* Full-width variant (common for mobile bottom-anchored actions) */
.fz-btn--block{ width: 100%; }

/* ═══ PILL — tag / badge / label ═══ */
.fz-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--interactive);
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
}
.fz-pill--gold{
  color: var(--gold);
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.25);
}
.fz-pill--green{
  color: var(--green);
  background: rgba(34,197,94,0.10);
  border-color: rgba(34,197,94,0.25);
}
.fz-pill--purple{
  color: var(--purple);
  background: rgba(168,148,210,0.10);
  border-color: rgba(168,148,210,0.30);
}

/* ═══ HEADER — shared page header chrome ═══ */
.fz-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--panel-border);
  padding: 14px 20px calc(14px);
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
}
.fz-header__title{
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}
.fz-header__back{
  width: 36px; height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}
.fz-header__back:active{ background: var(--interactive); }

/* ═══ NOISE / AMBIENT overlays — deliberately DISABLED ═══
   Old aesthetic used noise + radial glow overlays. The flat-minimal
   design drops them. If a page still has them, force-hide here so the
   migration is idempotent. */
.noise, .ambient, .orb, .ambient-glow, .floating-orb{
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   Typography utilities — premium flat depends on a tight type rhythm.
   These are the only sanctioned font-size/weight/spacing combos.
   ═══════════════════════════════════════════════════════════════════ */

/* DISPLAY — biggest text on the screen (hero / brand). */
.fz-display{
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1.1;
  color: var(--text);
}
.fz-display--lg{ font-size: var(--text-3xl); letter-spacing: 8px; }

/* EYEBROW — small uppercase label that sits above a heading. */
.fz-eyebrow{
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* SUBTITLE — pairs with .fz-display under the brand mark. */
.fz-subtitle{
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* SECTION HEADING — small caps row at the top of a content block. */
.fz-section-label{
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* CARD title — used inside hub-cards, phase-cards, list rows. */
.fz-card-title{
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

/* META — secondary line under a title (subtitle / caption). */
.fz-meta{
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
}

/* DIVIDER — short hairline used as a delicate separator under titles. */
.fz-divider{
  width: 48px;
  height: 1px;
  background: var(--panel-border);
  margin: 0 auto;
  border: 0;
}
.fz-divider--full{ width: 100%; }

/* ═══════════════════════════════════════════════════════════════════
   Hub card — used by home.html (4 dashboard tiles) and any page that
   needs a tappable surface with icon + title + meta + optional badge.
   ═══════════════════════════════════════════════════════════════════ */
.fz-hub-card{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  padding: 22px 18px 18px;
  min-height: 168px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  box-shadow: var(--depth-1), var(--depth-edge);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition:
    background var(--fz-dur-fast, 160ms) var(--fz-ease-out-expo, cubic-bezier(0.16,1,0.30,1)),
    border-color var(--fz-dur-fast, 160ms) var(--fz-ease-out-expo, cubic-bezier(0.16,1,0.30,1)),
    box-shadow var(--fz-dur-base, 280ms) var(--fz-ease-out-expo, cubic-bezier(0.16,1,0.30,1)),
    transform 0.1s ease;
}
.fz-hub-card:hover{
  background: var(--elevated);
  border-color: var(--elevated-border);
  box-shadow: var(--depth-2), var(--depth-edge);
}
.fz-hub-card:active{ transform: scale(0.985); }
.fz-hub-card__icon-wrap{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: var(--text);
  opacity: 0.92;
  transition: opacity var(--fz-dur-fast) var(--fz-ease-out-expo);
}
.fz-hub-card:hover .fz-hub-card__icon-wrap{ opacity: 1; }
.fz-hub-card__icon-wrap svg{ width: 32px; height: 32px; }
.fz-hub-card__title{
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
.fz-hub-card__meta{
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
}
.fz-hub-card__badge{
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--interactive);
  color: var(--text-dim);
  border: 1px solid var(--panel-border);
}
.fz-hub-card__badge--active{
  color: var(--green);
  background: var(--tint-green-soft);
  border-color: rgba(34,197,94,0.28);
}
.fz-hub-card__badge--pr{
  color: var(--gold);
  background: var(--tint-gold-soft);
  border-color: rgba(201,168,76,0.28);
}
body.light-mode .fz-hub-card__badge--pr{ color: var(--gold-deep); border-color: rgba(139,106,20,0.30); }

/* Two-column grid that hub-cards sit in. */
.fz-hub-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 520px){
  .fz-hub-grid{ gap: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════
   Coming-Soon template — collapses 7 separate stub pages into one
   reusable shell. Children: .fz-coming-soon__icon (svg / img),
   .fz-coming-soon__label (eyebrow), .fz-coming-soon__title, .fz-coming-soon__copy,
   .fz-coming-soon__cta (a .fz-btn).
   ═══════════════════════════════════════════════════════════════════ */
.fz-coming-soon{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 28px;
  min-height: calc(100dvh - 200px);
  gap: 14px;
}
.fz-coming-soon__icon{
  width: 96px;
  height: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  opacity: 0.5;
  margin-bottom: 8px;
}
.fz-coming-soon__icon svg{ width: 100%; height: 100%; }
.fz-coming-soon__label{
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.fz-coming-soon__title{
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--text);
}
.fz-coming-soon__copy{
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 320px;
}
.fz-coming-soon__cta{
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   Bottom dock — single source of truth for the floating pill nav.
   Used by every page except index/privacy/terms/offline.
   ═══════════════════════════════════════════════════════════════════ */
.fz-dock,
body .fz-dock,
.fz-dock.fz-anim-dock,
body .fz-dock.fz-anim-dock{
  position: fixed !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 520 !important;
  display: flex !important;
  justify-content: center !important;
  padding: 6px 0 max(2px, calc(env(safe-area-inset-bottom) - 30px)) !important;
  pointer-events: auto !important;
  background-color: #000 !important;
  background-image: none !important;
  border-top: 1px solid rgba(255,255,255,0.10) !important;
}
body.light-mode .fz-dock,
html body.light-mode .fz-dock,
body.light-mode .fz-dock.fz-anim-dock,
html body.light-mode .fz-dock.fz-anim-dock{
  background-color: #fff !important;
  border-top-color: rgba(0,0,0,0.10) !important;
}
.fz-dock__pill,
body .fz-dock__pill{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 0 !important;
  width: 100% !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  pointer-events: auto !important;
  box-shadow: none !important;
}
.fz-dock__btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px;
  min-width: 54px;
  min-height: 48px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--fz-dur-fast, 160ms) var(--fz-ease-out-expo, cubic-bezier(0.16,1,0.30,1)),
    background var(--fz-dur-fast, 160ms) var(--fz-ease-out-expo, cubic-bezier(0.16,1,0.30,1)),
    transform 0.1s ease;
}
.fz-dock__btn svg{
  width: 20px;
  height: 20px;
  color: currentColor;
  transition: color var(--fz-dur-fast) var(--fz-ease-out-expo);
}
.fz-dock__btn:hover,
.fz-dock__btn:focus-visible{ color: var(--text); }
.fz-dock__btn:active{ transform: scale(0.94); }
.fz-dock__label{
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: currentColor;
  white-space: nowrap;
}
/* Active page indicator — bolder text + small accent dot below. */
.fz-dock__btn.is-active{
  color: var(--text);
}
.fz-dock__btn.is-active .fz-dock__label{
  font-weight: 900;
}
.fz-dock__btn.is-active::after{
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text);
}
.fz-dock__btn{ position: relative; }
/* Round 92: bold black active dock entry in light mode (was muted
   gold which faded against the linen background). */
body.light-mode .fz-dock__btn.is-active{
  color: #000 !important;
}
body.light-mode .fz-dock__btn.is-active .fz-dock__label{
  font-weight: 900 !important;
  color: #000 !important;
}
body.light-mode .fz-dock__btn.is-active svg{
  color: #000 !important;
}
body.light-mode .fz-dock__btn.is-active::after{
  background: #000 !important;
  width: 5px;
  height: 5px;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

/* ═══════════════════════════════════════════════════════════════════
   App header — fixed top bar with back button + centered title.
   Used by every page below home (workouts, playlists, calendar,
   warmup, recover, motivate, about, trainers, merch, diet, phases).
   ═══════════════════════════════════════════════════════════════════ */
.fz-app-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: var(--bg);
  border-bottom: 1px solid var(--panel-border);
}
.fz-app-header__back{
  position: absolute;
  left: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  text-decoration: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--fz-dur-fast, 160ms) var(--fz-ease-out-expo, cubic-bezier(0.16,1,0.30,1)),
              color var(--fz-dur-fast, 160ms) var(--fz-ease-out-expo, cubic-bezier(0.16,1,0.30,1));
}
.fz-app-header__back:hover{ color: var(--text); }
.fz-app-header__back:active{ background: var(--interactive); }
.fz-app-header__back svg{
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.fz-app-header__title{
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
}

/* Page-content wrapper that pairs with .fz-app-header — leaves room for
   the fixed header at top and the fixed dock at bottom. */
.fz-app-body{
  max-width: 720px;
  margin: 0 auto;
  padding: 76px 20px calc(112px + env(safe-area-inset-bottom));
  min-height: 100vh; min-height: 100dvh;
}

/* ═══════════════════════════════════════════════════════════════════
   Section intro — small eyebrow + big title + sub-copy.
   Used at the top of any content page that wants a deliberate
   "what is this screen" framing (workouts.html, future selector pages).
   ═══════════════════════════════════════════════════════════════════ */
.fz-section-intro{
  text-align: center;
  margin: 24px 0 32px;
  padding: 0 8px;
}
.fz-section-intro__label{
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.fz-section-intro__title{
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
}
.fz-section-intro__sub{
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════
   Phase card — used by workouts.html (Phase 1-4 selector).
   Reads --phase-accent from [data-phase="N"] (defined in fizzeek-phases.css).
   ═══════════════════════════════════════════════════════════════════ */
.fz-phase-card{
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 18px 20px;
  min-height: 116px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--phase-accent, var(--text-dim));
  border-radius: var(--radius-md);
  box-shadow: var(--depth-1), var(--depth-edge);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition:
    background var(--fz-dur-fast, 160ms) var(--fz-ease-out-expo, cubic-bezier(0.16,1,0.30,1)),
    border-color var(--fz-dur-fast, 160ms) var(--fz-ease-out-expo, cubic-bezier(0.16,1,0.30,1)),
    box-shadow var(--fz-dur-base, 280ms) var(--fz-ease-out-expo, cubic-bezier(0.16,1,0.30,1)),
    transform 0.1s ease;
}
.fz-phase-card:hover{
  background: var(--elevated);
  border-color: var(--elevated-border);
  border-left-color: var(--phase-accent);
  box-shadow: var(--depth-2), var(--depth-edge);
}
.fz-phase-card:active{ transform: scale(0.99); }

/* Coming-soon variant — slightly muted, makes the active phase obvious */
.fz-phase-card.is-soon{ opacity: 0.78; }
.fz-phase-card.is-soon:hover{ opacity: 0.92; }

.fz-phase-card__icon{
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fz-phase-card__icon img{
  width: 48px; height: 48px;
  object-fit: contain;
}
.fz-phase-card__body{
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.fz-phase-card__number{
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--phase-accent, var(--text-dim));
  margin-bottom: 5px;
}
.fz-phase-card__name{
  font-size: var(--text-xl);
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 6px;
}
.fz-phase-card__tagline{
  font-size: var(--text-sm);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.fz-phase-card__desc{
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.fz-phase-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fz-phase-card__pill{
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--interactive);
  border: 1px solid var(--panel-border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.fz-phase-card__pill--active{
  color: var(--green);
  background: var(--tint-green-soft);
  border-color: rgba(34,197,94,0.28);
}
.fz-phase-card__pill--soon{ color: var(--text-dim); }

.fz-phase-card__arrow{
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: var(--text);
  opacity: 0.40;
  transition:
    opacity var(--fz-dur-fast, 160ms) var(--fz-ease-out-expo, cubic-bezier(0.16,1,0.30,1)),
    transform var(--fz-dur-fast, 160ms) var(--fz-ease-out-expo, cubic-bezier(0.16,1,0.30,1));
}
.fz-phase-card__arrow svg{
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.fz-phase-card:hover .fz-phase-card__arrow{
  opacity: 1;
  transform: translateX(3px);
}

/* Stack of phase cards */
.fz-phase-stack{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   Round 90 (Apr 30) — Shared settings popup. Bottom-sheet with two
   actions: dark/light toggle + sign out. Injected dynamically by
   fizzeek-boot.js when [data-action="open-settings"] is clicked.
   Muscle-memory.html keeps its own richer settings panel; everywhere
   else uses this lightweight popup.
   ═══════════════════════════════════════════════════════════════════ */
.fz-settings-overlay{
  position: fixed;
  inset: 0;
  /* R219: opaque backdrop */
  background: rgba(0,0,0,0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.22s ease;
}
.fz-settings-overlay.open{
  opacity: 1;
  pointer-events: auto;
}
.fz-settings-popup{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: var(--panel, #161311);
  border-top: 1px solid var(--panel-border, rgba(255,255,255,0.10));
  border-radius: 22px 22px 0 0;
  padding: 14px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0,0,0,0.45);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fz-settings-popup.open{ transform: translateY(0); }
body.light-mode .fz-settings-overlay{ background: rgba(255,255,255,0.78); }
body.light-mode .fz-settings-popup{
  background: #fff;
  border-top-color: rgba(0,0,0,0.08);
  box-shadow: 0 -12px 40px rgba(0,0,0,0.10);
}

/* Drag handle */
.fz-settings-popup::before{
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  margin: 0 auto 10px;
}
body.light-mode .fz-settings-popup::before{ background: rgba(0,0,0,0.18); }

.fz-settings-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 6px;
}
body.light-mode .fz-settings-header{ border-bottom-color: rgba(0,0,0,0.08); }
.fz-settings-title{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text, #fff);
}
.fz-settings-close{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.fz-settings-close:active{ transform: scale(0.92); background: rgba(255,255,255,0.14); }
body.light-mode .fz-settings-close{
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.85);
}

.fz-settings-row{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.1s ease;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.fz-settings-row:active{ transform: scale(0.99); background: rgba(255,255,255,0.07); }
body.light-mode .fz-settings-row{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
body.light-mode .fz-settings-row:active{ background: rgba(0,0,0,0.03); }

.fz-settings-icon{
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: rgba(255,255,255,0.75);
}
body.light-mode .fz-settings-icon{ color: rgba(0,0,0,0.65); }

.fz-settings-label{
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text, #fff);
}
body.light-mode .fz-settings-label{ color: #000; }

.fz-settings-row--danger .fz-settings-label{ color: #ef4444; }
.fz-settings-row--danger .fz-settings-icon{ color: #ef4444; }
body.light-mode .fz-settings-row--danger .fz-settings-label{ color: #dc2626; }
body.light-mode .fz-settings-row--danger .fz-settings-icon{ color: #dc2626; }

.fz-settings-chevron{
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: rgba(255,255,255,0.40);
}
body.light-mode .fz-settings-chevron{ color: rgba(0,0,0,0.40); }
.fz-settings-row--danger .fz-settings-chevron{ color: #ef4444; }
body.light-mode .fz-settings-row--danger .fz-settings-chevron{ color: #dc2626; }

/* Toggle switch */
.fz-settings-toggle{
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.fz-settings-toggle.is-light{
  background: linear-gradient(135deg, #D9B878, #BFA34D);
}
.fz-settings-toggle-thumb{
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.30);
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1);
}
.fz-settings-toggle.is-light .fz-settings-toggle-thumb{
  transform: translateX(20px);
}
body.light-mode .fz-settings-toggle{ background: rgba(0,0,0,0.10); }
body.light-mode .fz-settings-toggle.is-light{
  background: linear-gradient(135deg, #8B6A14, #6B5210);
}

