/* ==========================================================================
   Slow Burn design system
   Dark athletic look by default. A light theme is available from the sun/moon
   button in the header (saved per device). Change the brand colours here.
   ========================================================================== */
:root {
  --bg: #07090d;
  --bg-2: #0e1219;
  --card: #11161f;
  --card-2: #161c28;
  --line: #1f2735;
  --line-strong: #344056;
  --text: #f4f6fb;
  --muted: #94a0b8;
  --accent: #2f6bff;            /* electric blue: buttons, links, highlights */
  --accent-hi: #5b8cff;
  --accent-ink: #ffffff;
  --accent-text: #7ea6ff;
  --accent-soft: rgba(47, 107, 255, .14);
  --accent-glow: rgba(47, 107, 255, .45);
  --burn: #ff5a1f;              /* hot orange: trial badges, "best value", progress */
  --burn-soft: rgba(255, 90, 31, .14);
  --burn-text: #ff9466;
  --danger: #ff5a6a;
  --danger-line: #4a2530;
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .14);
  --glass: rgba(7, 9, 13, .82);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-2: #ebeff6;
  --card: #ffffff;
  --card-2: #f3f6fb;
  --line: #dde3ee;
  --line-strong: #bcc7da;
  --text: #0b1220;
  --muted: #586379;
  --accent: #1f5eff;
  --accent-hi: #3d74ff;
  --accent-text: #1a4fe0;
  --accent-soft: rgba(31, 94, 255, .10);
  --accent-glow: rgba(31, 94, 255, .28);
  --burn: #e8480f;
  --burn-soft: rgba(232, 72, 15, .10);
  --burn-text: #b93a0c;
  --danger: #d92d42;
  --danger-line: #f3c2c9;
  --ok: #0f9d63;
  --ok-soft: rgba(15, 157, 99, .12);
  --glass: rgba(245, 247, 251, .86);
  --shadow: 0 14px 40px rgba(11, 18, 32, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -.025em; font-weight: 800; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.page-title { font-size: clamp(30px, 5vw, 44px); margin: 6px 0 4px; }
.display { font-size: clamp(34px, 6.4vw, 60px); font-weight: 900; letter-spacing: -.035em; }
.h-md { font-size: 26px; margin: 56px 0 18px; }
.h-sm { font-size: 19px; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 18px; margin: 12px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100vw - 1240px) / 2));
  background: var(--glass); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -.03em; text-transform: uppercase; }
.logo { width: 32px; height: 32px; border-radius: 10px; background: url(/icon.svg) center/cover; box-shadow: 0 4px 18px var(--accent-glow); flex: none; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a:not(.btn) { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 650; font-size: 15px; transition: color .15s, background .15s; }
.topnav a:not(.btn):hover, .topnav a.active:not(.btn) { color: var(--text); background: var(--bg-2); }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--bg-2); }
.icon-btn svg { width: 19px; height: 19px; }

.trialbar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px; font-size: 14px; text-align: center;
  background: linear-gradient(90deg, var(--burn-soft), var(--accent-soft)); border-bottom: 1px solid var(--line);
}
.trialbar[hidden] { display: none; }
.trialbar svg { width: 17px; height: 17px; color: var(--burn-text); flex: none; }
.trialbar a { font-weight: 700; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 820px) {
  .topnav a:not(.btn) { display: none; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px; min-height: 44px; justify-content: center; }
  .tabbar a.active { color: var(--accent-text); }
  .tabbar svg { width: 22px; height: 22px; }
  .footer { padding-bottom: 96px !important; }
}

main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 16px 64px; flex: 1; animation: page .35s var(--ease); }
@keyframes page { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 0; cursor: pointer; min-height: 44px;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--accent-ink);
  font-weight: 750; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  box-shadow: 0 6px 22px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .15s var(--ease), box-shadow .2s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 10px 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; min-height: 38px; }
.btn.lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; min-height: 52px; }
.btn.ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--line-strong); filter: none; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger-line); box-shadow: none; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

label { display: block; font-size: 14px; font-weight: 650; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; min-height: 46px;
  background: var(--bg); border: 1px solid var(--line); outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--accent); padding: 0; }
input[type=file] { padding: 9px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-weight: 500; cursor: pointer; }
.consent { margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.consent a, .fineprint a, .safety a, .legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.error { color: var(--danger); font-size: 14px; min-height: 20px; margin-top: 10px; }
.fineprint { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line);
  min-height: 520px; display: flex; align-items: flex-end;
  background:
    radial-gradient(700px 360px at 88% 10%, var(--accent-glow), transparent 62%),
    radial-gradient(520px 320px at 0% 100%, rgba(255, 90, 31, .22), transparent 60%),
    linear-gradient(135deg, #111827, #07090d);
  color: #f4f6fb;
}
.hero.compact { min-height: 0; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center 25%; opacity: .5; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 13, .96) 0%, rgba(7, 9, 13, .78) 42%, rgba(7, 9, 13, .2) 100%), linear-gradient(0deg, rgba(7, 9, 13, .9), transparent 55%); }
.hero-copy { position: relative; padding: 56px 48px; max-width: 760px; }
.hero h1 { font-size: clamp(36px, 6.6vw, 68px); font-weight: 900; letter-spacing: -.04em; line-height: 1.02; margin-top: 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7ea6ff, #ff9466); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #b6c0d4; font-size: 18px; max-width: 560px; margin: 18px 0 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.hero .hero-fine { font-size: 14px; color: #94a0b8; margin: 16px 0 0; }
.hero-stats { display: flex; gap: 36px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.03em; }
.hero-stats span { color: #94a0b8; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
@media (max-width: 640px) {
  .hero { border-radius: 22px; min-height: 480px; }
  .hero-copy { padding: 34px 22px; }
  .hero .btn { flex: 1 1 100%; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 24px; }
}

.trial-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--burn-soft); color: var(--burn-text); border: 1px solid rgba(255, 90, 31, .4);
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.hero .trial-badge { background: rgba(255, 90, 31, .16); color: #ffb08c; }
.trial-badge svg { width: 14px; height: 14px; }

/* ---------- sections & rows ---------- */
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 24px; }
.section-head a:not(.btn) { color: var(--accent-text); font-weight: 700; font-size: 15px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 16px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
@media (max-width: 560px) { .scroller { grid-auto-columns: 78vw; } }

/* ---------- workout card ---------- */
.card { display: block; color: var(--text); border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #0e1219; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .thumb img { transform: scale(1.06); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 45%); pointer-events: none; }
.thumb-fallback {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px;
  background: radial-gradient(circle at 80% 20%, var(--c2), transparent 60%), linear-gradient(135deg, var(--c1), #0b0f19);
  font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: rgba(255, 255, 255, .92);
}
.thumb-fallback svg { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; opacity: .5; }
.badge { position: absolute; z-index: 2; top: 10px; left: 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; }
.badge.free { background: var(--ok); color: #04261a; }
.badge.premium { background: var(--accent); color: #fff; }
.dur { position: absolute; z-index: 2; bottom: 10px; right: 10px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.lock, .playdot { position: absolute; z-index: 2; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; }
.lock svg { width: 16px; height: 16px; }
.playdot { top: 50%; left: 50%; right: auto; width: 54px; height: 54px; transform: translate(-50%, -50%) scale(.8); opacity: 0; background: var(--accent); box-shadow: 0 8px 28px var(--accent-glow); transition: opacity .2s, transform .25s var(--ease); }
.playdot svg { width: 22px; height: 22px; margin-left: 3px; }
.card:hover .playdot { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .2); }
.bar i { display: block; height: 100%; background: var(--burn); }
.card-body { padding: 14px 16px 16px; }
.card-body .eyebrow { font-size: 11px; }
.card-body h3 { font-size: 17px; margin-top: 4px; }
.card-body p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- programs ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat {
  padding: 20px 18px; border-radius: var(--radius); min-height: 104px; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  font-weight: 800; font-size: 18px; letter-spacing: -.02em; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .2s var(--ease), filter .2s;
}
.cat small { color: rgba(255, 255, 255, .78); font-weight: 600; font-size: 13px; letter-spacing: 0; }
.cat:hover { transform: translateY(-3px); filter: brightness(1.1); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 24px; }
.filters input { flex: 1 1 240px; max-width: 340px; }
.filters select { width: auto; flex: 0 1 auto; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-top: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 650; font-size: 14px; cursor: pointer; transition: all .15s; min-height: 40px; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- video page ---------- */
.player-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.player-wrap.workout { aspect-ratio: auto; background: var(--card); }
.player-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.locked { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 12px; color: #f4f6fb; background: radial-gradient(circle at 50% 30%, rgba(47, 107, 255, .3), transparent 60%), linear-gradient(180deg, #111827, #07090d); }
.locked > *:not(.locked-bg) { position: relative; }
.locked-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(10px) brightness(.35); transform: scale(1.1); }
.locked .lock-ic { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .18); }
.locked .lock-ic svg { width: 26px; height: 26px; }
.locked h2 { font-size: clamp(20px, 3.4vw, 28px); }
.locked p { color: #b6c0d4; max-width: 440px; margin: 0 0 6px; }
.locked .btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); }
@media (max-width: 560px) { .player-wrap:not(.workout):has(.locked) { aspect-ratio: 4 / 3; } }
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; margin-top: 24px; }
@media (max-width: 980px) { .video-layout { grid-template-columns: 1fr; } }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--muted); }
.pill svg { width: 14px; height: 14px; }
.title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.title-row h1 { font-size: clamp(26px, 4.4vw, 38px); margin-top: 4px; }
.fav-btn.on { color: var(--burn-text); border-color: var(--burn); }
.fav-btn.on svg { fill: var(--burn); stroke: var(--burn); }
.safety { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.5; }
.safety svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent-text); }
.related { display: grid; gap: 14px; }
.related .card { display: grid; grid-template-columns: 136px 1fr; }
.related .thumb-fallback { font-size: 13px; padding: 8px; }
.related .thumb-fallback svg, .related .playdot { display: none; }
.related .card-body { padding: 10px 12px; }
.related .card-body h3 { font-size: 14px; }

/* ---------- video player (shared controls) ---------- */
.vp { position: relative; width: 100%; height: 100%; background: #000; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; outline: none; }
.player-wrap > .vp { position: absolute; inset: 0; }
.vp video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; cursor: pointer; }
.vp video.mirror { transform: scaleX(-1); }
.vp-big {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(47, 107, 255, .22), 0 14px 44px rgba(47, 107, 255, .55);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.vp-big:hover { transform: translate(-50%, -50%) scale(1.07); }
.vp-big svg { width: 36px; height: 36px; margin-left: 5px; }
.vp.playing .vp-big { display: none; }
.vp-msg { position: absolute; z-index: 2; left: 50%; bottom: 76px; transform: translateX(-50%); background: rgba(0, 0, 0, .75); padding: 8px 14px; border-radius: 10px; font-size: 13px; text-align: center; max-width: 90%; }
.vp-bar {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px;
  padding: 34px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .82));
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.vp.show .vp-bar, .vp:not(.playing) .vp-bar, .vp:focus-within .vp-bar { opacity: 1; transform: none; pointer-events: auto; }
.vp-bar button {
  flex: none; min-width: 40px; height: 40px; padding: 0 6px; border: 0; border-radius: 10px; background: transparent; color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s;
}
.vp-bar button:hover { background: rgba(255, 255, 255, .14); }
.vp-bar button.off { color: #94a0b8; }
.vp-bar button.on { color: var(--accent-hi); background: rgba(47, 107, 255, .2); }
.vp-bar svg { width: 20px; height: 20px; }
.vp-txt { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vp-bar input[type=range] { flex: 1; min-width: 40px; min-height: 0; height: 22px; padding: 0; margin: 0 6px; border: 0; background: transparent; accent-color: var(--accent); cursor: pointer; box-shadow: none; }
.vp-time { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; color: #dfe5f0; min-width: 40px; text-align: center; }
.vp.vp-fill, .wp.vp-fill { position: fixed !important; inset: 0; z-index: 100; height: 100dvh; border-radius: 0; }

/* ---------- guided workout player ---------- */
.wp { display: grid; grid-template-columns: minmax(0, 1fr) 340px; background: var(--card); --tone: var(--accent); --tone-soft: var(--accent-soft); }
.wp[data-tone="warm"] { --tone: #ff9f3d; --tone-soft: rgba(255, 159, 61, .16); }
.wp[data-tone="rest"] { --tone: #34d399; --tone-soft: rgba(52, 211, 153, .16); }
.wp[data-tone="cool"] { --tone: #3ddcc4; --tone-soft: rgba(61, 220, 196, .16); }
.wp[data-tone="flow"] { --tone: #a78bfa; --tone-soft: rgba(167, 139, 250, .16); }
.wp-stage { aspect-ratio: 16 / 9; height: auto; }
.wp-stage video { object-fit: contain; }
.wp-shade { position: absolute; inset: 0; background: rgba(4, 6, 10, .0); transition: background .4s; pointer-events: none; }
.wp[data-kind="rest"] .wp-shade, .wp[data-kind="intro"] .wp-shade, .wp[data-kind="outro"] .wp-shade { background: rgba(4, 6, 10, .68); pointer-events: auto; cursor: pointer; }
.wp-top { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.wp-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--tone-soft); color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); }
.wp-top .wp-pill { background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); }
.wp-round { font-size: 13px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .6); padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.wp-round:empty { display: none; }
.wp-center { position: absolute; z-index: 2; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 20px 70px; cursor: pointer; }
.wp[data-kind="rest"] .wp-center, .wp[data-kind="intro"] .wp-center, .wp[data-kind="outro"] .wp-center { display: flex; }
.wp:not(.playing) .wp-center { justify-content: flex-end; padding-bottom: 84px; }
.wp:not(.playing) .wp-center b { font-size: clamp(18px, 2.6vw, 28px); }
.wp-center small { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tone); }
.wp-center b { font-size: clamp(22px, 4vw, 40px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.wp-side { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-left: 1px solid var(--line); min-width: 0; }
.wp-now { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.wp-name { font-size: clamp(22px, 2.4vw, 30px); margin-top: 12px; }
.wp-cue { color: var(--muted); margin: 8px 0 0; min-height: 3em; }
.wp-steps { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.wp-steps:empty { display: none; }
.wp-steps li { position: relative; padding-left: 18px; font-size: 15px; color: var(--text); }
.wp-steps li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.wp-timer { position: relative; width: 168px; height: 168px; margin: 0 auto; flex: none; }
.wp-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wp-timer circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.wp-timer .track { stroke: var(--line); }
.wp-timer .fill { stroke: var(--tone); transition: stroke .3s; filter: drop-shadow(0 0 8px var(--tone)); }
.wp-timer div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wp-timer b { font-size: 52px; font-weight: 900; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.wp-timer span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.wp-next { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.wp-next[hidden] { display: none; }
.wp-next img { width: 84px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; }
.wp-next small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wp-next b { font-size: 15px; line-height: 1.25; display: block; }
.wp-overall div { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.wp-overall i { display: block; height: 100%; width: 0; background: var(--tone); border-radius: 3px; }
.wp-overall span { display: block; margin-top: 6px; font-size: 12px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }

/* tablet & phone: clip on top, timer panel underneath */
@media (max-width: 1040px) {
  .wp { grid-template-columns: 1fr; }
  .wp-side { border-left: 0; border-top: 1px solid var(--line); padding: 18px; gap: 14px; }
  .wp-now { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .wp-text { min-width: 0; flex: 1; }
  .wp-timer { width: 132px; height: 132px; margin: 0; }
  .wp-timer b { font-size: 40px; }
  .wp-cue { min-height: 0; }
}
@media (max-width: 560px) {
  .player-wrap { border-radius: 16px; margin: 0 -8px; }
  .wp-side { padding: 14px; }
  .wp-timer { width: 104px; height: 104px; }
  .wp-timer b { font-size: 32px; }
  .wp-timer span { font-size: 10px; }
  .wp-name { font-size: 20px; margin-top: 8px; }
  .wp-cue { font-size: 14px; }
  .vp-big { width: 68px; height: 68px; }
  .vp-big svg { width: 28px; height: 28px; }
  .vp-bar { gap: 0; padding: 26px 4px 6px; }
  .vp-bar button { min-width: 34px; height: 38px; padding: 0 4px; }
  .vp-bar [data-t="total"], .vp-bar [data-a="prev"] { display: none; }
  .vp-time { min-width: 34px; font-size: 12px; }
  .vp-bar input[type=range] { margin: 0 2px; }
  .wp:not(.playing) .wp-center { padding-bottom: 50px; }
  .wp:not(.playing) .wp-center small { display: none; }
  .wp:not(.playing) .wp-center b { font-size: 17px; }
  .wp-stage .vp-big { top: 40%; width: 56px; height: 56px; }
  .wp-stage .vp-big svg { width: 24px; height: 24px; }
}
/* full screen */
.wp:fullscreen, .wp.vp-fill { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: 100%; background: #07090d; color: #f4f6fb; height: 100dvh; }
.wp:fullscreen .wp-stage, .wp.vp-fill .wp-stage { aspect-ratio: auto; height: 100%; }
@media (max-width: 1040px), (orientation: portrait) {
  .wp:fullscreen, .wp.vp-fill { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
}
.vp:fullscreen { width: 100vw; height: 100vh; }

/* ---------- pricing ---------- */
.pricing { max-width: 920px; margin: 0 auto; }
.pricing .display { margin-top: 16px; }
.toggle { display: flex; width: fit-content; margin: 30px auto 0; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.toggle button { border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; font-weight: 750; font-size: 15px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; transition: all .2s var(--ease); }
.toggle button[aria-selected="true"] { background: var(--accent); color: #fff; box-shadow: 0 6px 20px var(--accent-glow); }
.toggle .save { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; background: var(--burn); color: #fff; text-transform: uppercase; }
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; margin-top: 30px; align-items: stretch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan.best { order: -1; } }
.plan { position: relative; padding: 30px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--accent); background: radial-gradient(520px 240px at 100% 0%, var(--accent-soft), transparent 70%), var(--card); box-shadow: 0 20px 60px rgba(47, 107, 255, .16); }
.plan .tag { position: absolute; top: -14px; left: 28px; background: linear-gradient(90deg, var(--burn), #ff8a3d); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 8px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(255, 90, 31, .4); }
.plan h3 { font-size: 20px; }
.plan h3 .muted { font-weight: 600; }
.price { font-size: 52px; font-weight: 900; margin: 12px 0 2px; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
.plan li.off { color: var(--muted); }
.plan li.off svg { color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.timeline div { padding: 16px 18px; border-left: 1px solid var(--line); position: relative; }
.timeline div:first-child { border-left: 0; }
.timeline b { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.timeline span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .timeline { grid-template-columns: 1fr; } .timeline div { border-left: 0; border-top: 1px solid var(--line); } .timeline div:first-child { border-top: 0; } }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 110px; }
.compare .yes svg { width: 20px; height: 20px; color: var(--ok); }
.compare .no svg { width: 18px; height: 18px; color: var(--muted); opacity: .6; }
.compare th:last-child { color: var(--accent-text); }
.trial-box { margin: 26px auto 0; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(255, 90, 31, .4); background: var(--burn-soft); }
.trial-box.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); }
.trial-box-top { display: flex; align-items: center; gap: 12px; }
.trial-box-top > svg { width: 24px; height: 24px; flex: none; color: var(--burn-text); }
.trial-box.ok .trial-box-top > svg { color: var(--ok); }
.trial-box-top div { flex: 1; min-width: 0; }
.trial-box-top b { display: block; }
.trial-box-top span { font-size: 14px; color: var(--muted); }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--burn)); }
.countdown { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 2px; }
.countdown b { font-size: 48px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.countdown span { color: var(--muted); font-weight: 650; }
.demo-note { margin: 24px auto 0; padding: 12px 16px; border-radius: 12px; background: var(--burn-soft); border: 1px solid rgba(255, 90, 31, .35); font-size: 14px; color: var(--burn-text); text-align: center; }

/* ---------- panels / auth / account ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.panel.note { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); line-height: 1.6; }
.auth { max-width: 440px; margin: 28px auto; }
.auth h1 { font-size: 30px; margin: 12px 0 6px; }
.auth .btn { margin-top: 18px; }
.auth .switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: 15px; }
.auth .switch a { color: var(--accent-text); font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 750; white-space: nowrap; }
.status.on { background: var(--ok-soft); color: var(--ok); }
.status.off { background: rgba(148, 160, 184, .16); color: var(--muted); }
.status.warn, .status.trial { background: var(--burn-soft); color: var(--burn-text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.stat b { display: block; font-size: 32px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 11px; }
  .panel { padding: 20px; border-radius: 18px; }
}
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 6px; margin: 18px 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 16px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--text); border-color: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 700; background: var(--bg-2); white-space: nowrap; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
tr:last-child td { border-bottom: 0; }
td .btn { white-space: nowrap; }
.mini-thumb { width: 76px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; position: relative; }
.mini-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-thumb .thumb-fallback { font-size: 0; }
.mini-thumb .thumb-fallback svg { display: none; }
.progress-up { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; margin-top: 12px; display: none; }
.progress-up i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.or { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 -6px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li > svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: var(--burn-soft); color: var(--burn-text); margin-top: 1px; }
.checklist li.done > svg { background: var(--ok-soft); color: var(--ok); }
.checklist b { display: block; font-size: 15px; }
.checklist span { font-size: 13px; color: var(--muted); }
.ex-list { display: grid; gap: 10px; }
.ex-row { display: grid; grid-template-columns: 112px minmax(150px, 220px) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.ex-thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.ex-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ex-info b { display: block; }
.ex-info a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.ex-fields { display: grid; gap: 8px; }
.ex-fields input { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.ex-actions { display: flex; gap: 8px; }
@media (max-width: 900px) {
  .ex-row { grid-template-columns: 96px 1fr; }
  .ex-fields, .ex-actions { grid-column: 1 / -1; }
}

/* ---------- legal ---------- */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal-nav { position: sticky; top: 84px; display: grid; gap: 4px; }
.legal-nav a { padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 650; font-size: 15px; }
.legal-nav a:hover, .legal-nav a.active { background: var(--card); color: var(--text); }
.legal-nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
.legal { max-width: 760px; line-height: 1.7; }
.legal h1 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 6px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal-date { color: var(--muted) !important; font-size: 14px; margin: 0 0 22px; }
.legal-box { padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); margin: 6px 0 10px; }
.legal-box.warn { background: var(--burn-soft); border-color: rgba(255, 90, 31, .45); }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 18px; }
  .legal-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
  .legal-nav a.active { box-shadow: inset 0 -3px 0 var(--accent); }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 34px 16px; }
.foot-inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 14px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; text-transform: uppercase; letter-spacing: -.02em; }
.foot-brand .logo { width: 26px; height: 26px; border-radius: 8px; box-shadow: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--muted); font-size: 14px; font-weight: 600; padding: 4px 0; }
.foot-links a:hover { color: var(--text); }
.foot-note { font-size: 13px; color: var(--muted); max-width: 760px; margin: 0; line-height: 1.5; }
.foot-note a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.foot-copy { font-size: 13px; color: var(--muted); margin: 0; }
.foot-copy a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 22px; }
.empty h3 { color: var(--text); margin-bottom: 6px; font-size: 20px; }
.empty .btn { margin-top: 8px; }
.loading { display: grid; place-items: center; min-height: 40vh; }
.player-wrap > .loading { position: absolute; inset: 0; min-height: 0; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 650; box-shadow: var(--shadow);
  transition: opacity .2s, transform .25s var(--ease); z-index: 120; max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--danger); color: #fff; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s; }
.feature:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
.cta-band { margin-top: 56px; padding: 48px 26px; border-radius: 28px; text-align: center; border: 1px solid var(--line); background: radial-gradient(600px 240px at 50% 0%, var(--accent-soft), transparent 70%), linear-gradient(135deg, var(--card), var(--bg-2)); }
.cta-band h2 { font-size: clamp(26px, 4.4vw, 38px); margin-bottom: 10px; font-weight: 900; }
.cta-band p { color: var(--muted); margin: 0 0 22px; }

/* ---------- nutrition ---------- */
.nu-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 26px; }
.nu-intro h3, .nu-tipgrid h3 { margin: 12px 0 6px; font-size: 18px; }
.nu-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.nu-ic svg { width: 24px; height: 24px; }
.nu-disclaimer { margin-top: 34px; max-width: 760px; }
.nu-daynav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 18px; font-size: 18px; }
.nu-daynav b { min-width: 130px; text-align: center; }
.nu-summary { display: flex; gap: 28px; align-items: center; }
.nu-ring { position: relative; width: 168px; height: 168px; flex: none; }
.nu-ring svg { width: 100%; height: 100%; }
.nu-ring circle { fill: none; stroke-width: 11; }
.nu-ring .track { stroke: var(--line); }
.nu-ring .fill { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.nu-ring .fill.over { stroke: var(--burn); }
.nu-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.nu-ring b { font-size: 38px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.nu-ring span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; margin-top: 4px; }
.nu-side { flex: 1; min-width: 0; }
.nu-line { margin: 0 0 12px; color: var(--muted); }
.nu-line b { color: var(--text); }
.nu-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nu-macro b { font-size: 18px; }
.nu-macro span:last-child { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.nu-macro .meter { margin-top: 8px; }
.meter.m-p i { background: var(--accent); }
.meter.m-c i { background: var(--ok); }
.meter.m-f i { background: var(--burn); }
.nu-water { display: flex; align-items: center; gap: 4px; margin-top: 16px; flex-wrap: wrap; }
.nu-water button { border: 0; background: transparent; padding: 4px; color: var(--line-strong); cursor: pointer; min-width: 32px; min-height: 36px; border-radius: 8px; }
.nu-water button svg { width: 22px; height: 22px; }
.nu-water button.on { color: var(--accent-text); }
.nu-water button.on svg { fill: currentColor; }
.nu-add { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.nu-add .btn { flex: 1; min-width: 140px; }
.nu-add svg, .nu-box h3 svg { width: 18px; height: 18px; }
.nu-box { margin-bottom: 8px; }
.nu-box h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.nu-drop { display: grid; place-items: center; min-height: 190px; margin: 12px 0 0; border: 2px dashed var(--line-strong); border-radius: 18px; cursor: pointer; background: var(--card-2) center / cover no-repeat; color: var(--muted); text-align: center; }
.nu-drop:hover { border-color: var(--accent); color: var(--text); }
.nu-drop span { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nu-drop svg { width: 34px; height: 34px; }
.nu-drop.has { border-style: solid; min-height: 240px; align-items: end; }
.nu-drop.has span { background: var(--glass); padding: 8px 16px; border-radius: 999px; margin-bottom: 12px; color: var(--text); }
.nu-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.nu-result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.nu-result-head h3 { margin: 0; }
.nu-item { display: grid; grid-template-columns: auto 1fr 92px auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nu-item b, .nu-entry b, .nu-food b, .nu-pick > b { display: block; }
.nu-item input[type=number] { text-align: right; padding: 8px 10px; min-height: 40px; }
.nu-total { text-align: right; font-size: 18px; margin: 14px 0; }
.nu-total b { font-size: 26px; }
.nu-tips { background: var(--accent-soft); border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.nu-tips ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.nu-tips p { margin: 6px 0 0; line-height: 1.6; }
.nu-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nu-row select, .nu-row input { flex: 1; min-width: 90px; }
.nu-row .btn { flex: 1.4; }
.nu-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nu-found { margin-top: 12px; max-height: 380px; overflow-y: auto; }
.nu-food { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 12px 4px; color: var(--text); cursor: pointer; font: inherit; }
.nu-food:hover { background: var(--card-2); }
.nu-pick { padding: 6px 0; display: grid; gap: 8px; }
.nu-meal { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px 18px; margin-bottom: 14px; }
.nu-meal-head { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.nu-meal-head b { color: var(--text); }
.nu-entry { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nu-entry:last-child { border-bottom: 0; }
.nu-entry .icon-btn svg { width: 18px; height: 18px; }
.nu-kcal { font-variant-numeric: tabular-nums; }
.nu-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.nu-week a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.nu-week a.cur { color: var(--text); font-weight: 800; }
.nu-week .bar { position: relative; width: 100%; max-width: 44px; height: 110px; background: var(--card-2); border-radius: 10px; display: flex; align-items: flex-end; overflow: hidden; }
.nu-week .bar i { display: block; width: 100%; background: var(--accent); border-radius: 10px 10px 0 0; }
.nu-week .bar i.over { background: var(--burn); }
.nu-week .bar em { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--text); opacity: .5; }
.nu-week small { font-variant-numeric: tabular-nums; }
.nu-recipe { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px; align-items: center; margin-top: 16px; }
.nu-recipe-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 22px; }
.nu-stats { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.nu-stats .stat { padding: 14px 10px; text-align: center; }
.nu-stats .stat b { font-size: 24px; }
.nu-list { margin: 12px 0 0; padding-left: 22px; line-height: 1.7; }
.nu-list li { margin-bottom: 6px; }
.nu-tipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.nu-tipgrid p { line-height: 1.6; margin: 0; }
.nu-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-weight: 900; }
.nu-units { margin: 14px 0 0; }
.nu-units button { padding: 8px 18px; font-size: 14px; }
.nu-promo { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, var(--card)), var(--card)); border: 1px solid var(--line); border-radius: 26px; padding: 34px; }
.nu-promo h2 { font-size: clamp(24px, 4vw, 34px); margin: 8px 0 10px; letter-spacing: -.02em; }
.nu-promo p { color: var(--muted); max-width: 620px; line-height: 1.6; }
.nu-promo .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.nu-promo .btn svg { width: 20px; height: 20px; }

/* ---------- streak ---------- */
.streak { display: grid; grid-template-columns: auto 1fr; gap: 10px 26px; align-items: center; }
.streak > p { grid-column: 1 / -1; margin: 0; }
.streak-num { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.streak-num svg { width: 34px; height: 34px; }
.streak-num.hot svg { color: var(--burn); fill: var(--burn-soft); }
.streak-num b { font-size: 40px; font-weight: 900; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.streak-num span { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.streak-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; justify-self: end; width: 100%; }
.streak-days div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.streak-days i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.streak-days .done i { background: var(--burn); border-color: var(--burn); color: #fff; }
.streak-days svg { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .nu-summary { flex-direction: column; align-items: stretch; gap: 18px; }
  .nu-ring { margin: 0 auto; }
  .nu-grid4 { grid-template-columns: repeat(2, 1fr); }
  .nu-recipe { grid-template-columns: 1fr; }
  .nu-item { grid-template-columns: auto 1fr 76px; }
  .nu-item > span:last-child { display: none; }
  .nu-promo { padding: 24px 20px; }
  .streak { grid-template-columns: 1fr; }
  .streak-days { justify-self: stretch; max-width: none; }
  .streak-days i { width: 30px; height: 30px; }
  .tabbar a { font-size: 10.5px; }
}

/* ---------- delete account ---------- */
.danger-zone { margin-top: 20px; border-color: var(--danger-line); }
.danger-zone summary { cursor: pointer; font-weight: 750; color: var(--danger); min-height: 28px; }
.danger-zone p { color: var(--muted); line-height: 1.6; margin: 14px 0 4px; max-width: 720px; }
.danger-zone form { max-width: 420px; }
.danger-zone .check { margin-top: 14px; }

/* ---------- recommendations ---------- */
.recommendations { display: grid; gap: 16px; }
.rec-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.rec-badge svg { width: 14px; height: 14px; }
.rec-workout .rec-badge { background: var(--accent-soft); color: var(--accent-text); }
.rec-meal .rec-badge { background: var(--accent-soft); color: var(--accent-text); }
.rec-recipe .rec-badge { background: var(--burn-soft); color: var(--burn-text); }
.rec-card { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.rec-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.rec-thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--bg-2); display: flex; align-items: flex-end; justify-content: space-between; padding: 10px; }
.rec-thumb .dur { background: rgba(0, 0, 0, .72); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.rec-thumb .badge { position: static; }
.rec-info { min-width: 0; }
.rec-info h3 { font-size: 16px; margin: 0 0 4px; }
.rec-info .muted { font-size: 12px; }
.rec-go { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 4px 14px var(--accent-glow); transition: transform .15s; }
.rec-go svg { width: 18px; height: 18px; margin-left: 2px; }
.rec-card:hover .rec-go { transform: scale(1.08); }
.rec-meal-card { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.rec-meal-card p { margin: 0 0 12px; color: var(--muted); }
.rec-ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.idea { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600; }
.rec-recipe-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.rec-recipe-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.rec-recipe-info h3 { font-size: 16px; margin: 0 0 4px; }
.rec-recipe-info p { margin: 0; font-size: 13px; }
.rec-recipe-card .rec-go { background: var(--burn); box-shadow: 0 4px 14px rgba(255, 90, 31, .4); }
@media (max-width: 560px) {
  .rec-card { grid-template-columns: 90px 1fr; grid-template-rows: auto auto; }
  .rec-card .rec-go { grid-column: 1 / -1; justify-self: center; margin-top: 8px; }
  .rec-recipe-card { grid-template-columns: 1fr; }
}

/* ---------- meal plan, health details, weight ---------- */
.nu-checks { border: 0; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; }
.nu-checks.one { grid-template-columns: 1fr; }
.nu-checks legend { font-size: 14px; font-weight: 650; color: var(--muted); padding: 0; margin-bottom: 8px; }
.nu-checks .check { margin: 0; }
.nu-note { margin: 12px 0; padding: 16px 18px; border-radius: 16px; }
.nu-planhead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 20px 0 12px; }
.nu-planhead b { font-size: 26px; font-weight: 900; }
.nu-plan { display: grid; gap: 12px; }
.nu-planmeal { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.nu-planmeal img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.nu-planmeal h3 { margin: 4px 0; font-size: 18px; }
.nu-planmeal p { margin: 0; }
.nu-planmeal .btn svg { width: 16px; height: 16px; }
.nu-chart { width: 100%; height: auto; margin-top: 8px; }
.nu-chart polyline { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.nu-chart circle { fill: var(--card); stroke: var(--accent); stroke-width: 3; }
.nu-chart-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.nu-chart-legend b { color: var(--text); }
.nu-wlist { margin-top: 14px; }
.nu-wlist summary { cursor: pointer; color: var(--muted); font-weight: 650; }
@media (max-width: 720px) {
  .nu-checks { grid-template-columns: repeat(2, 1fr); }
  .nu-planmeal { grid-template-columns: 84px 1fr; }
  .nu-planmeal img { width: 84px; }
  .nu-planmeal .btn { grid-column: 1 / -1; }
}

/* Phone layouts keep long recipe actions and touch controls inside the viewport. */
@media (max-width: 560px) {
  .nu-recipe { grid-template-columns: minmax(0, 1fr); }
  .nu-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #nu-log-recipe { white-space: normal; width: 100%; }
  .wp-stage { aspect-ratio: 4 / 3; }
  .wp-stage .vp-big { top: 32%; }
  .vp-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-top: 10px; }
  .vp-bar .vp-time[data-t="now"] { grid-row: 1; grid-column: 1; }
  .vp-bar input[type=range] { grid-row: 1; grid-column: 2 / -1; width: calc(100% - 4px); height: 44px; }
  .vp-bar button { min-width: 44px; height: 44px; }
  .wp:not(.playing) .wp-center { padding-bottom: 100px; }
}
@media (min-width: 561px) and (max-width: 1366px) and (pointer: coarse) {
  .vp-bar button { min-width: 44px; height: 44px; }
  .vp-bar input[type=range] { height: 44px; }
}
@media (orientation: landscape) and (max-height: 560px) and (pointer: coarse) {
  .wp:fullscreen, .wp.vp-fill { grid-template-columns: minmax(0, 1fr) 240px; grid-template-rows: 100%; }
  .wp:fullscreen .wp-side, .wp.vp-fill .wp-side { overflow-y: auto; padding: 12px; gap: 10px; }
  .wp:fullscreen .wp-now, .wp.vp-fill .wp-now { flex-direction: column; }
  .wp:fullscreen .wp-timer, .wp.vp-fill .wp-timer { width: 88px; height: 88px; }
  .wp:fullscreen .wp-timer b, .wp.vp-fill .wp-timer b { font-size: 28px; }
  .wp:fullscreen .wp-timer span, .wp.vp-fill .wp-timer span { font-size: 9px; }
  .wp:fullscreen .vp-bar [data-a="prev"], .wp.vp-fill .vp-bar [data-a="prev"],
  .wp:fullscreen .vp-bar [data-t="total"], .wp.vp-fill .vp-bar [data-t="total"] { display: none; }
}
@media (orientation: landscape) and (max-width: 740px) and (max-height: 560px) and (pointer: coarse) {
  .wp:fullscreen .vp-bar, .wp.vp-fill .vp-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 10px 4px 6px; }
  .wp:fullscreen .vp-time[data-t="now"], .wp.vp-fill .vp-time[data-t="now"] { grid-row: 1; grid-column: 1; }
  .wp:fullscreen .vp-bar input[type=range], .wp.vp-fill .vp-bar input[type=range] { grid-row: 1; grid-column: 2 / -1; width: calc(100% - 4px); margin: 0 2px; }
}
