/* ============================================================
   FitFlow — Landing page styles
   ============================================================ */

/* ---------- HERO ---------- */
.hero { position: relative; padding: 132px 0 40px; overflow: hidden; }
.hero .bloom-1 { width: 620px; height: 620px; background: var(--accent-glow); top: -240px; right: -120px; opacity: .5; }
.hero .bloom-2 { width: 460px; height: 460px; background: rgba(59,130,246,.14); bottom: -160px; left: -140px; opacity: .7; }
.hero-grid {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); box-shadow: var(--sh-sm);
  border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13.5px; font-weight: 800;
  padding: 8px 8px 8px 8px; border-radius: var(--r-pill); margin-bottom: 26px;
}
.hero-badge .pp {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-tint); color: var(--accent);
  font-size: 11.5px; font-weight: 900; letter-spacing: .02em;
  padding: 4px 10px; border-radius: var(--r-pill); text-transform: uppercase;
}
.hero-badge .pp ion-icon { font-size: 13px; }
.hero-h1 {
  font-size: clamp(40px, 6.4vw, 70px);
  font-weight: 900; line-height: 1.02; letter-spacing: -0.04em;
  color: var(--ink); text-wrap: balance;
}
.hero-h1 .accent { color: var(--accent); position: relative; white-space: nowrap; }
.hero-h1 .accent::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.16em;
  background: var(--accent-tint); z-index: -1; border-radius: 4px;
}
.hero-sub {
  font-size: clamp(17px, 2.1vw, 20px); color: var(--muted);
  margin: 22px 0 32px; max-width: 480px; font-weight: 600;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap;
}
.hero-meta .mi { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.hero-meta .mi ion-icon { font-size: 18px; color: var(--green); }

.hero-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 580px; }

/* ---------- PHONE MOCKUP ---------- */
.phone {
  width: 300px; flex-shrink: 0;
  background: #0d130f;
  border-radius: 44px;
  padding: 11px;
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(0,0,0,.04);
  position: relative;
}
.phone::after { /* side button */
  content: ''; position: absolute; right: -3px; top: 130px; width: 3px; height: 60px;
  background: #0d130f; border-radius: 0 3px 3px 0;
}
.phone-screen {
  background: var(--sage); border-radius: 34px; overflow: hidden;
  height: 620px; position: relative;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #0d130f; border-radius: 999px; z-index: 5;
}
.scr-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px 6px; font-size: 13px; font-weight: 800; color: var(--ink);
}
.scr-status .sx { display: flex; gap: 5px; align-items: center; font-size: 13px; }
.scr-body { flex: 1; overflow: hidden; padding: 6px 16px 0; display: flex; flex-direction: column; gap: 11px; }

/* app card primitive (inside phone) */
.ac { background: var(--surface); border-radius: 20px; box-shadow: var(--sh-sm); }
.ac-pad { padding: 14px; }

/* greeting */
.scr-greet { font-size: 13px; font-weight: 700; color: var(--muted); }
.scr-name { font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }

/* top stat cards row */
.scr-row { display: flex; gap: 10px; }
.stat { flex: 1; padding: 13px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-sm); }
.stat-h { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; }
.stat-h ion-icon { font-size: 14px; }
.stat-big { font-size: 24px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; margin-top: 6px; }
.stat-big small { font-size: 13px; font-weight: 700; color: var(--muted); }
.stat-bar { height: 5px; border-radius: 3px; background: var(--sage-sink); margin-top: 9px; overflow: hidden; }
.stat-bar > i { display: block; height: 100%; border-radius: 3px; }
.stat-sub { font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 7px; }
.chip-mini {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; padding: 7px 0; border-radius: 11px; margin-top: 9px; width: 100%;
  white-space: nowrap;
}

.t-blue { color: var(--blue); } .bg-blue { background: var(--blue-tint); }
.t-orange { color: var(--orange); } .bg-orange { background: var(--orange-tint); }
.t-green { color: var(--green); } .bg-green { background: var(--green-tint); }
.t-accent { color: var(--accent); } .bg-accent { background: var(--accent-tint); }

/* streak banner */
.streak {
  display: flex; align-items: center; gap: 13px;
  background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 18px; padding: 14px 16px;
}
.streak .flame {
  width: 40px; height: 40px; border-radius: 12px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--orange); flex-shrink: 0;
  box-shadow: var(--sh-sm);
}
.streak b { font-size: 17px; font-weight: 900; color: var(--ink); display: block; letter-spacing: -.02em; }
.streak span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.streak .chev { margin-left: auto; font-size: 18px; color: var(--accent); }

/* week battery row */
.week-card .week-title { font-size: 11px; font-weight: 900; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.week { display: flex; justify-content: space-between; }
.day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.day .dl { font-size: 10px; font-weight: 800; color: var(--muted); }
.day.today .dl { color: var(--accent); }
.batt {
  width: 19px; height: 30px; border-radius: 5px; border: 2px solid var(--line);
  padding: 2px; display: flex; flex-direction: column-reverse; gap: 2px; position: relative; background: var(--surface);
}
.batt::before { content: ''; position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 7px; height: 3px; border-radius: 2px 2px 0 0; background: var(--line); }
.batt i { display: block; height: 6px; border-radius: 1.5px; }
.batt.empty { border-color: var(--accent); }
.legend { display: flex; gap: 12px; margin-top: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; color: var(--muted); }
.legend i { width: 9px; height: 9px; border-radius: 3px; }

/* list rows (workout / meal) */
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.list-head .lt { font-size: 11px; font-weight: 900; letter-spacing: .06em; color: var(--muted); }
.list-head .cnt { font-size: 11px; font-weight: 900; color: var(--accent); background: var(--accent-tint); padding: 3px 9px; border-radius: 999px; }
.lrow { display: flex; align-items: center; gap: 11px; padding: 11px 4px; border-top: 1px solid var(--line-soft); }
.lrow:first-of-type { border-top: none; }
.box {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.box.on { background: var(--accent); border-color: var(--accent); color: #fff; font-size: 13px; }
.lrow .ln { flex: 1; font-size: 14px; font-weight: 800; color: var(--ink); }
.lrow.done .ln { color: var(--muted-2); text-decoration: line-through; }
.lrow .sets { font-size: 11px; font-weight: 900; color: var(--accent); background: var(--accent-tint); padding: 3px 9px; border-radius: 999px; }

/* macro pills */
.macros { display: flex; gap: 7px; }
.macro { flex: 1; text-align: center; background: var(--sage); border-radius: 13px; padding: 10px 4px; }
.macro b { display: block; font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.macro span { font-size: 10px; font-weight: 800; color: var(--muted); }

/* bottom tab bar */
.tabbar {
  display: flex; justify-content: space-between; padding: 11px 22px 16px;
  background: var(--surface); border-top: 1px solid var(--line-soft);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 800; color: var(--muted-2); }
.tab ion-icon { font-size: 21px; }
.tab.active { color: var(--accent); }

/* heatmap (progress screen) */
.heat { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.heat i { aspect-ratio: 1; border-radius: 6px; background: var(--sage-sink); }

/* floating mini cards around phone */
.float {
  position: absolute; z-index: 3; background: var(--surface);
  border-radius: 18px; box-shadow: var(--sh-md); padding: 13px 15px;
  display: flex; align-items: center; gap: 11px;
}
.float ion-icon { font-size: 20px; }
.float .ft { font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.float .fb { font-size: 16px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.float .ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.float-a { top: 64px; left: -34px; }
.float-b { bottom: 96px; right: -30px; }
@media (max-width: 1080px) { .float-a { left: 4px; } .float-b { right: 4px; } }

/* ---------- TRUST STRIP ---------- */
.trust { padding: 18px 0 6px; }
.trust-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 28px;
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-sm);
  display: flex; align-items: center; justify-content: space-around; gap: 20px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ti-ic { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.trust-item .tt { font-size: 15px; font-weight: 900; color: var(--ink); line-height: 1.15; }
.trust-item .ts { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.trust-div { width: 1px; height: 38px; background: var(--line); }
@media (max-width: 760px) { .trust-div { display: none; } }

/* ---------- SECTION SHELL ---------- */
.section { padding: 92px 0; position: relative; }
.section.tint { background: var(--sage-deep); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; display: flex; flex-direction: column; align-items: center; }
.section-head .sub-sec { margin-left: auto; margin-right: auto; }

/* ---------- FEATURES GRID ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: var(--surface); border-radius: var(--r-card); padding: 26px;
  box-shadow: var(--sh-sm); transition: transform .22s, box-shadow .22s;
  position: relative; overflow: hidden;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.feat-ic { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }
.feat h3 { font-size: 19px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); margin-bottom: 7px; }
.feat p { font-size: 15px; color: var(--muted); font-weight: 600; line-height: 1.6; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- SHOWCASE (alternating screen + copy) ---------- */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.show + .show { margin-top: 96px; }
.show.flip .show-media { order: 2; }
.show-copy .eyebrow { color: var(--accent); }
.show-copy h3 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; letter-spacing: -.03em; line-height: 1.06; color: var(--ink); text-wrap: balance; }
.show-copy p { font-size: 17px; color: var(--muted); font-weight: 600; margin-top: 16px; max-width: 440px; }
.show-list { margin-top: 24px; display: flex; flex-direction: column; gap: 13px; }
.show-list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 700; color: var(--ink-2); list-style: none; }
.show-list li ion-icon { font-size: 18px; color: var(--accent); background: var(--accent-tint); border-radius: 8px; padding: 5px; flex-shrink: 0; }
.show-media { display: flex; justify-content: center; position: relative; }
.show-media .bloom { width: 360px; height: 360px; background: var(--accent-glow); opacity: .4; top: 50%; left: 50%; transform: translate(-50%,-50%); }
@media (max-width: 880px) {
  .show { grid-template-columns: 1fr; gap: 36px; }
  .show.flip .show-media { order: 0; }
  .show-copy p, .show-copy { text-align: left; }
}

/* ---------- INTERACTIVE DEMO (tap-to-switch screens) ---------- */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.demo-copy { max-width: 460px; }
.demo-copy .eyebrow { color: var(--accent); }
.demo-copy h3 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; letter-spacing: -.03em; line-height: 1.06; color: var(--ink); text-wrap: balance; transition: opacity .2s; }
.demo-copy > p { font-size: 17px; color: var(--muted); font-weight: 600; margin-top: 16px; transition: opacity .2s; }
.demo-list { margin-top: 24px; display: flex; flex-direction: column; gap: 13px; }
.demo-list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 700; color: var(--ink-2); list-style: none; }
.demo-list li ion-icon { font-size: 18px; color: var(--accent); background: var(--accent-tint); border-radius: 8px; padding: 5px; flex-shrink: 0; }
.demo-hint {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-size: 13.5px; font-weight: 800; color: var(--muted);
  background: var(--surface); box-shadow: var(--sh-sm); border-radius: var(--r-pill); padding: 9px 16px;
}
.demo-hint ion-icon { font-size: 16px; color: var(--accent); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(4px);} }
.demo-copy.swapping h3, .demo-copy.swapping > p, .demo-copy.swapping .demo-list { opacity: 0; }
.demo-list { transition: opacity .2s; }

.demo-phone { display: flex; justify-content: center; position: relative; }
.demo-phone .bloom { width: 380px; height: 380px; background: var(--accent-glow); opacity: .4; top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* screen stack + transitions */
.screens { position: relative; flex: 1; overflow: hidden; }
.screen {
  position: absolute; inset: 0; padding: 6px 16px 0;
  display: none; flex-direction: column; gap: 11px; overflow: hidden;
}
.screen.active { display: flex; }

/* clickable tab bar */
.tabbar button.tab {
  background: none; border: none; font-family: inherit; cursor: pointer;
  transition: color .18s, transform .12s;
}
.tabbar button.tab:active { transform: scale(.9); }
.tabbar button.tab ion-icon { transition: transform .2s; }
.tabbar button.tab.active ion-icon { transform: translateY(-1px) scale(1.08); }

/* day chips (workouts) */
.daychips { display: flex; gap: 7px; }
.daychip { flex: 1; text-align: center; background: var(--surface); border-radius: 14px; padding: 9px 2px; box-shadow: var(--sh-sm); }
.daychip .dd { font-size: 12px; font-weight: 900; color: var(--ink); }
.daychip .dm { font-size: 9.5px; font-weight: 800; color: var(--muted); margin-top: 2px; }
.daychip.sel { background: var(--accent); }
.daychip.sel .dd, .daychip.sel .dm { color: #fff; }
.seg { display: flex; gap: 8px; }
.seg .s { flex: 1; text-align: center; font-size: 14px; font-weight: 900; padding: 11px 0; border-radius: 14px; color: var(--muted); }
.seg .s.on { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px var(--accent-glow); }
.numrow { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.numrow:first-of-type { border-top: none; }
.numrow .nb { width: 28px; height: 28px; border-radius: 9px; background: var(--sage); color: var(--ink-2); font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.numrow .nn { flex: 1; font-size: 14.5px; font-weight: 800; color: var(--ink); }

/* FAB inside screen */
.fab {
  position: absolute; right: 16px; bottom: 14px; width: 48px; height: 48px; border-radius: 16px;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 12px 24px -6px var(--accent-glow); z-index: 4;
}

/* journal */
.jrnl-today { background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 20px; padding: 16px; }
.jrnl-head { display: flex; align-items: center; justify-content: space-between; }
.jrnl-head .jl { font-size: 10.5px; font-weight: 900; letter-spacing: .06em; color: var(--accent); }
.jrnl-head .jd { font-size: 17px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.jrnl-edit { font-size: 12px; font-weight: 800; color: var(--accent); background: var(--surface); padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.jrnl-mood { font-size: 34px; margin: 8px 0 4px; }
.jrnl-line { display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.jrnl-line .ji { width: 34px; height: 34px; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--accent); flex-shrink: 0; }
.jrnl-line .jt { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.jrnl-line .jv { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.past-row { display: flex; align-items: center; gap: 12px; }
.past-row .pe { font-size: 26px; }
.past-row .pn { flex: 1; }
.past-row .pn b { font-size: 14.5px; font-weight: 900; color: var(--ink); display: block; }
.past-row .pn span { font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* profile */
.prof-top { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px; }
.prof-av { width: 62px; height: 62px; border-radius: 50%; background: var(--green); color: #fff; font-size: 26px; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-sm); }
.prof-name { font-size: 20px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.prof-sub { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.menu-row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-top: 1px solid var(--line-soft); }
.menu-row:first-of-type { border-top: none; }
.menu-row .mi { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.menu-row .mn { flex: 1; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.menu-row .mc { font-size: 16px; color: var(--muted-2); }

@media (max-width: 880px) {
  .demo { grid-template-columns: 1fr; gap: 32px; }
  .demo-copy { order: 2; max-width: none; text-align: center; margin: 0 auto; }
  .demo-list { text-align: left; max-width: 360px; margin-left: auto; margin-right: auto; }
  .demo-hint { margin-left: auto; margin-right: auto; }
}
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why {
  background: var(--surface); border-radius: var(--r-card); padding: 26px;
  box-shadow: var(--sh-sm); display: flex; gap: 16px; align-items: flex-start;
}
.why-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 23px; flex-shrink: 0; }
.why b { font-size: 17px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); display: block; margin-bottom: 5px; }
.why p { font-size: 14.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 700px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- FINAL CTA ---------- */
.cta-final { padding: 40px 0 96px; }
.cta-box {
  max-width: var(--maxw); margin: 0 auto; position: relative; overflow: hidden;
  background: var(--ink); border-radius: 34px; padding: clamp(40px, 7vw, 80px) 24px;
  text-align: center;
}
.cta-box .bloom-a { width: 520px; height: 520px; background: var(--accent-glow); top: -220px; left: 50%; transform: translateX(-50%); opacity: .85; }
.cta-box .bloom-b { width: 300px; height: 300px; background: rgba(59,130,246,.22); bottom: -150px; left: 12%; opacity: .7; }
.cta-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-icon { width: 78px; height: 78px; border-radius: 22px; box-shadow: var(--sh-md); margin-bottom: 22px; }
.cta-box h2 { font-size: clamp(32px, 5.4vw, 56px); font-weight: 900; letter-spacing: -.04em; color: #fff; line-height: 1.03; text-wrap: balance; }
.cta-box p { font-size: 18px; color: #A6BCAE; font-weight: 600; margin: 16px 0 30px; }
.cta-box .free-row { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.cta-box .free-row span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; color: #C7D6CC; }
.cta-box .free-row ion-icon { color: var(--accent); font-size: 17px; }

/* ---------- responsive hero ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-meta { justify-content: center; }
  .hero-stage { margin-top: 28px; min-height: 0; }
}

/* ---------- TWEAKS: accent theme switcher ---------- */
.theme-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--surface); box-shadow: var(--sh-md);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  transition: transform .2s;
}
.theme-fab:hover { transform: scale(1.06) rotate(8deg); }
.theme-fab ion-icon { font-size: 25px; }
.theme-panel {
  position: fixed; right: 20px; bottom: 86px; z-index: 200;
  background: var(--surface); border-radius: 22px; box-shadow: var(--sh-lg);
  padding: 18px; width: 250px; opacity: 0; transform: translateY(10px) scale(.96);
  pointer-events: none; transition: opacity .2s, transform .2s;
  border: 1px solid var(--line);
}
.theme-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.theme-panel h5 { font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sw { aspect-ratio: 1; border-radius: 13px; border: 2px solid transparent; cursor: pointer; position: relative; transition: transform .15s; }
.sw:hover { transform: scale(1.08); }
.sw.sel { border-color: var(--ink); }
.sw.sel::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 15px; }
.theme-cap { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 12px; text-align: center; }
