/* ==========================================================================
   MFit — Design System
   Font: Plus Jakarta Sans (UI) + Space Grotesk (numerics)
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #F4F5F8;
  --bg-deep: #EDEFF4;
  --surface: #FFFFFF;
  --surface-2: #F7F8FB;
  --line: #ECEEF3;
  --line-strong: #E1E4EC;

  /* Ink */
  --ink: #14151A;
  --ink-2: #45474F;
  --muted: #8A8D98;
  --muted-2: #A9ACB6;

  /* Brand pastels */
  --lavender: #D6D3F7;
  --lavender-2: #B9B4F0;
  --peach: #F7BE9A;
  --peach-2: #F09A6E;
  --mint: #B6E9D6;
  --sky: #C3E5F7;
  --sky-2: #9BD3F0;
  --rose: #EDB8D6;
  --black: #121317;
  --cta: #121317;
  --on-cta: #FFFFFF;
  --pill: #17181D;

  /* Accents */
  --violet: #7B7BF5;
  --coral: #FF7A5C;
  --teal: #35D0BA;
  --amber: #F5A524;
  --danger: #FF4D6A;
  --success: #21C97A;

  /* Geometry */
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;
  --r-xs: 10px;
  --radius: var(--r-xl);
  --radius-sm: var(--r-md);

  /* Elevation — layered, low-alpha */
  --sh-1: 0 1px 2px rgba(18,20,35,.04), 0 2px 8px rgba(18,20,35,.03);
  --sh-2: 0 2px 4px rgba(18,20,35,.04), 0 8px 22px rgba(18,20,35,.05);
  --sh-3: 0 4px 10px rgba(18,20,35,.05), 0 18px 42px rgba(18,20,35,.08);
  --sh-4: 0 10px 24px rgba(18,20,35,.10), 0 30px 70px rgba(18,20,35,.14);
  --sh-ink: 0 10px 30px rgba(18,19,23,.28);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --nav-h: 88px;
  --app-max: 430px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-num: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;

  --ease: cubic-bezier(.32,.72,.25,1);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background: #D9DCE4;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { letter-spacing: -.028em; line-height: 1.15; font-weight: 800; }
input, button, textarea, select { font-family: inherit; }
::selection { background: var(--lavender); color: var(--ink); }

.app-shell {
  max-width: var(--app-max);
  margin: 0 auto;
  height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* ambient light behind content */
.app-shell::before {
  content: '';
  position: absolute; inset: -20% -30% auto -30%; height: 60%;
  background:
    radial-gradient(45% 55% at 20% 20%, rgba(150,140,255,.16), transparent 70%),
    radial-gradient(40% 50% at 85% 10%, rgba(255,160,120,.14), transparent 70%);
  pointer-events: none; z-index: 0;
}

.screen-scroll {
  position: relative; z-index: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: calc(14px + var(--safe-top)) 18px calc(var(--nav-h) + var(--safe-bot));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.screen-scroll::-webkit-scrollbar { display: none; }

.screen { display: none; }
.screen.active { display: block; }

/* Staggered entrance for direct children of an active screen */
.screen.active > * {
  animation: riseIn .5s var(--ease-out) backwards;
}
.screen.active > *:nth-child(1) { animation-delay: .02s; }
.screen.active > *:nth-child(2) { animation-delay: .06s; }
.screen.active > *:nth-child(3) { animation-delay: .10s; }
.screen.active > *:nth-child(4) { animation-delay: .14s; }
.screen.active > *:nth-child(5) { animation-delay: .18s; }
.screen.active > *:nth-child(n+6) { animation-delay: .22s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== Home header ===== */
.home-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px;
}
.home-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: var(--lavender);
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(18,20,35,.10);
}
.home-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-hello { font-size: 18px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.home-date { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 600; }

.icon-round {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.9); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--sh-2);
  transition: transform .22s var(--spring), box-shadow .22s var(--ease);
}
.icon-round:active { transform: scale(.9); box-shadow: var(--sh-1); }
.icon-round .material-symbols-outlined { font-size: 22px; }
.notif-badge {
  position: absolute; top: 9px; right: 10px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger); border: 2px solid #fff;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,106,.5); }
  50% { box-shadow: 0 0 0 6px rgba(255,77,106,0); }
}

/* ===== Analysis card ===== */
.analysis-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--sh-3);
  border: 1px solid rgba(255,255,255,.9);
  position: relative; overflow: hidden;
}
.analysis-card::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,1,.14), transparent 70%);
  pointer-events: none;
}
.analysis-score {
  font-family: var(--font-num);
  font-size: 54px; font-weight: 700; letter-spacing: -.05em; line-height: 1;
  margin-top: 4px;
  background: linear-gradient(135deg, #FF7A01, #FF4D6A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric-bars { margin-top: 16px; display: grid; gap: 10px; }
.row-m {
  display: grid; grid-template-columns: 78px 1fr 30px;
  align-items: center; gap: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--muted);
}
.row-m > span:last-child {
  text-align: right; color: var(--ink); font-family: var(--font-num); font-size: 12px;
}
.row-m .bar {
  height: 7px; border-radius: 99px; background: var(--surface-2);
  overflow: hidden; box-shadow: inset 0 1px 2px rgba(18,20,35,.06);
}
.row-m .bar i {
  display: block; height: 100%; border-radius: 99px; width: 0;
  transition: width 1s var(--ease-out);
}

/* ===== Daily challenge ===== */
.challenge-card {
  background: linear-gradient(135deg, #DBD8FA 0%, #C6C2F4 100%);
  border-radius: var(--r-xl);
  padding: 22px 20px;
  position: relative; overflow: hidden;
  min-height: 152px; margin-bottom: 20px;
  box-shadow: 0 14px 34px rgba(120,110,220,.20);
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.challenge-card:active { transform: scale(.985); }
.challenge-card h3 {
  font-size: 26px; font-weight: 800; letter-spacing: -.035em;
  line-height: 1.08; max-width: 58%; position: relative; z-index: 1;
}
.challenge-card p {
  font-size: 12px; color: #57548A; margin-top: 8px; max-width: 56%;
  font-weight: 600; position: relative; z-index: 1;
}
.challenge-faces { display: flex; margin-top: 16px; position: relative; z-index: 1; }
.challenge-faces span {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid #DBD8FA;
  margin-left: -9px; background: #fff center/cover no-repeat; display: inline-block;
}
.challenge-faces span:first-child { margin-left: 0; }
.challenge-art {
  position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  width: 150px; height: 150px; pointer-events: none;
}
.blob { position: absolute; }
.blob-a {
  width: 70px; height: 70px; background: linear-gradient(140deg,#8A97FF,#6B78F0);
  right: 40px; top: 20px; border-radius: 26px; transform: rotate(25deg);
  box-shadow: 0 10px 22px rgba(90,100,240,.32);
  animation: float1 6s ease-in-out infinite;
}
.blob-b {
  width: 54px; height: 54px; background: linear-gradient(140deg,#FFA184,#FF7A5C);
  right: 10px; top: 56px; border-radius: 18px; transform: rotate(-15deg);
  box-shadow: 0 10px 20px rgba(255,120,90,.32);
  animation: float2 7s ease-in-out infinite;
}
.blob-c {
  width: 48px; height: 48px; background: linear-gradient(140deg,#6FE6DC,#35D0BA);
  right: 55px; bottom: 20px; border-radius: 50%;
  box-shadow: 0 10px 20px rgba(50,200,185,.3);
  animation: float1 8s ease-in-out infinite reverse;
}
@keyframes float1 {
  0%,100% { transform: translateY(0) rotate(25deg); }
  50% { transform: translateY(-9px) rotate(30deg); }
}
@keyframes float2 {
  0%,100% { transform: translateY(0) rotate(-15deg); }
  50% { transform: translateY(8px) rotate(-20deg); }
}

/* ===== Week strip ===== */
.week-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px;
  margin-bottom: 22px; scrollbar-width: none;
}
.week-strip::-webkit-scrollbar { display: none; }
.day-pill {
  flex: 0 0 auto; width: 48px; text-align: center; padding: 10px 0;
  border-radius: var(--r-md); cursor: pointer; color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--spring);
}
.day-pill:active { transform: scale(.94); }
.day-pill .d { font-size: 11px; font-weight: 700; display: block; margin-bottom: 6px; }
.day-pill .n { font-size: 15px; font-weight: 800; color: var(--ink); font-family: var(--font-num); }
.day-pill.on { background: var(--cta); color: var(--on-cta); box-shadow: var(--sh-ink); }
.day-pill.on .n { color: var(--on-cta); }
.day-pill.on .dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; margin: 6px auto 0; }

.section-title {
  font-size: 20px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}

/* ===== Plan grid ===== */
.plan-grid {
  display: grid;
  grid-template-columns: 1.15fr .95fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px; min-height: 288px; margin-bottom: 24px;
}
.plan-card {
  border-radius: var(--r-xl); padding: 16px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan-card:active { transform: scale(.975); }
.plan-card.tall {
  grid-row: 1 / span 2;
  background: linear-gradient(160deg, #F9C0A0, #EE9468);
  min-height: 288px; box-shadow: 0 14px 32px rgba(235,145,100,.28);
}
.plan-card.sky {
  background: linear-gradient(160deg, #CDE9F9, #A5D6F1);
  box-shadow: 0 14px 32px rgba(120,190,235,.28);
}
.plan-card.social {
  background: linear-gradient(135deg, #EBBADB, #C7B6F2);
  justify-content: center; align-items: center;
  box-shadow: 0 14px 32px rgba(190,150,225,.28);
}
.tag {
  display: inline-flex; align-self: flex-start;
  font-size: 10px; font-weight: 800; padding: 5px 11px; letter-spacing: .02em;
  border-radius: 999px; background: rgba(255,255,255,.62); color: #2A2A33;
  backdrop-filter: blur(6px); position: relative; z-index: 1;
}
.plan-card h4 {
  font-size: 22px; font-weight: 800; letter-spacing: -.03em;
  margin-top: 10px; line-height: 1.08; position: relative; z-index: 1;
}
.plan-meta {
  font-size: 11px; color: rgba(0,0,0,.58); margin-top: 6px;
  font-weight: 600; line-height: 1.45; position: relative; z-index: 1;
}
.trainer-row {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  padding-top: 14px; position: relative; z-index: 1;
}
.trainer-row img, .trainer-row .av {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  background: rgba(255,255,255,.5); box-shadow: 0 0 0 2px rgba(255,255,255,.6);
}
.trainer-row span { font-size: 12px; font-weight: 700; }
.social-icons { display: flex; gap: 14px; color: #fff; }
.social-icons .material-symbols-outlined {
  font-size: 26px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.16));
  transition: transform .25s var(--spring);
}
.social-icons .material-symbols-outlined:active { transform: scale(1.2); }

/* ===== MFit Method ===== */
.method-grid { display: grid; gap: 10px; margin-bottom: 24px; }
.method-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-radius: var(--r-lg); padding: 14px 16px;
  box-shadow: var(--sh-1); border: 1px solid rgba(255,255,255,.9);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.method-item:active { transform: scale(.985); box-shadow: var(--sh-2); }
.method-item .ico {
  width: 44px; height: 44px; border-radius: var(--r-sm); flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--violet), #5A5AE8);
  box-shadow: 0 6px 16px rgba(110,110,240,.28);
}
.method-item:nth-child(2) .ico { background: linear-gradient(140deg, #FFA184, var(--coral)); box-shadow: 0 6px 16px rgba(255,120,90,.28); }
.method-item:nth-child(3) .ico { background: linear-gradient(140deg, #6FE6DC, var(--teal)); box-shadow: 0 6px 16px rgba(50,200,185,.28); }
.method-item strong { font-size: 14px; font-weight: 800; display: block; }
.method-item .muted { font-size: 11px; }

/* ===== Store entry banner ===== */
.store-entry {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(120deg, #1B1C22 0%, #2C2E38 55%, #1B1C22 100%);
  color: #fff; border-radius: var(--r-xl); padding: 20px;
  margin-bottom: 16px; cursor: pointer;
  box-shadow: var(--sh-ink); position: relative; overflow: hidden;
  transition: transform .3s var(--ease);
}
.store-entry:active { transform: scale(.98); }
.store-entry::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen {
  0%, 65% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.store-entry .material-symbols-outlined {
  background: rgba(255,255,255,.12); border-radius: 50%;
  width: 40px; height: 40px; display: grid; place-items: center;
  position: relative; z-index: 1; flex-shrink: 0;
}

/* ===== Tracking widgets ===== */
.track-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.track-mini {
  background: var(--surface); border-radius: var(--r-lg); padding: 16px;
  box-shadow: var(--sh-1); border: 1px solid rgba(255,255,255,.9);
}
.track-mini .lbl { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .01em; }
.track-mini .val {
  font-size: 22px; font-weight: 800; margin-top: 4px;
  font-family: var(--font-num); letter-spacing: -.03em;
}
.progress {
  height: 7px; background: var(--surface-2); border-radius: 99px;
  overflow: hidden; margin-top: 10px;
  box-shadow: inset 0 1px 2px rgba(18,20,35,.06);
}
.progress > i {
  display: block; height: 100%; border-radius: 99px; width: 0;
  transition: width .7s var(--ease-out);
  position: relative; overflow: hidden;
}
.progress > i::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ===== Bottom nav — liquid glass ===== */
.bottom-nav {
  position: absolute; left: 50%; bottom: calc(14px + var(--safe-bot));
  transform: translateX(-50%);
  width: min(352px, calc(100% - 28px)); height: 68px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.14) 42%, rgba(255,255,255,.08) 100%),
    rgba(255,255,255,.18);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 8px; z-index: 60;
  box-shadow:
    0 12px 40px rgba(20,24,40,.18),
    0 2px 8px rgba(20,24,40,.08),
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -1px 0 rgba(255,255,255,.2);
  isolation: isolate;
}
.bottom-nav::before {
  content: ''; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none; z-index: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.55) 0%, transparent 38%, transparent 62%, rgba(255,255,255,.18) 100%);
  opacity: .7;
}
.nav-indicator {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  left: 0; top: 50%;
  transform: translate(-50%, -50%);
  transition: left .5s var(--ease), width .5s var(--ease),
              filter .5s var(--ease), border-radius .5s var(--ease), background .35s var(--ease);
  z-index: 0; pointer-events: none;
  box-shadow:
    0 6px 18px rgba(20,24,40,.16),
    inset 0 1px 0 rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.7);
}
.nav-indicator.moving { width: 62px; border-radius: 23px; filter: blur(5px); opacity: .85; }
.nav-item {
  position: relative; z-index: 1; width: 48px; height: 48px;
  display: grid; place-items: center;
  color: rgba(18,19,23,.42); cursor: pointer;
  transition: color .34s var(--ease), transform .34s var(--spring);
}
.nav-item:active { transform: scale(.86); }
.nav-item .material-symbols-outlined { font-size: 24px; font-variation-settings: 'FILL' 0; }
.nav-item.active { color: #121317; }
.nav-item.active .material-symbols-outlined { font-variation-settings: 'FILL' 1; }
.nav-item.nav-plus {
  width: 52px; height: 52px;
  color: rgba(18,19,23,.55);
}
.nav-item.nav-plus .material-symbols-outlined {
  font-size: 30px; font-variation-settings: 'wght' 500, 'FILL' 0;
}
.nav-item.nav-plus.active {
  color: #121317;
}
.nav-item.nav-plus.active .material-symbols-outlined {
  font-variation-settings: 'wght' 600, 'FILL' 0;
}

/* ===== Profile ===== */
.prof-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.prof-head h2 { font-size: 18px; font-weight: 800; }
.prof-center { text-align: center; margin-bottom: 20px; }
.prof-big {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--lavender); overflow: hidden; display: grid; place-items: center;
  box-shadow: 0 0 0 4px #fff, 0 12px 30px rgba(18,20,35,.14);
  position: relative;
}
.prof-big img { width: 100%; height: 100%; object-fit: cover; }
.prof-big > div { width: 100%; height: 100%; display: grid; place-items: center; }
.prof-center h3 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.prof-center .loc { font-size: 13px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.prof-stats {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.prof-stats strong { font-size: 16px; color: var(--ink); font-family: var(--font-num); }
.prof-actions { display: flex; gap: 8px; margin-left: 8px; }

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.metric {
  border-radius: var(--r-md); padding: 14px 12px; text-align: left;
  box-shadow: var(--sh-1);
}
.metric.mint { background: linear-gradient(150deg, #C6EFDF, var(--mint)); }
.metric.sky { background: linear-gradient(150deg, #D2ECFA, var(--sky)); }
.metric.peach { background: linear-gradient(150deg, #FBD2B8, var(--peach)); }
.metric small { display: block; font-size: 10px; color: rgba(0,0,0,.52); font-weight: 700; }
.metric strong {
  display: block; font-size: 16px; font-weight: 800; margin-top: 5px;
  font-family: var(--font-num); letter-spacing: -.02em;
}

.menu-list {
  background: var(--surface); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-2); border: 1px solid rgba(255,255,255,.9);
}
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background .22s var(--ease);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:active { background: var(--surface-2); }
.menu-ico {
  width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface-2);
  display: grid; place-items: center; color: var(--ink); flex-shrink: 0;
}
.menu-item .t { flex: 1; min-width: 0; }
.menu-item .t strong { display: block; font-size: 14px; font-weight: 700; }
.menu-item .t span { font-size: 11px; color: var(--muted); }
.menu-item .chev { color: #C7CAD2; transition: transform .22s var(--ease); }
.menu-item:active .chev { transform: translateX(3px); }

.legal-tiny {
  font-size: 10.5px; color: var(--muted-2); line-height: 1.65;
  text-align: center; margin: 18px 4px 6px; font-weight: 500;
}
.legal-tiny a { color: var(--muted); text-decoration: underline; cursor: pointer; }

/* ===== Studio / packages ===== */
.page-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}
.page-bar h2 { font-size: 22px; font-weight: 800; letter-spacing: -.035em; flex: 1; }

.pkg-card {
  background: var(--surface); border-radius: 16px; overflow: hidden;
  margin-bottom: 10px; box-shadow: var(--sh-1);
  border: 1px solid rgba(255,255,255,.9);
  display: grid; grid-template-columns: 108px 1fr; min-height: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pkg-card:active { transform: scale(.985); box-shadow: var(--sh-2); }
.pkg-cover {
  aspect-ratio: auto; min-height: 100%; background: var(--bg-deep) center/cover no-repeat; position: relative;
}
.pkg-cover .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent 60%);
  color: #fff;
}
.pkg-cover .play .material-symbols-outlined {
  font-size: 28px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.pkg-body { padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pkg-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.pkg-body h3 {
  font-size: 14px; font-weight: 800; margin: 0; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pkg-body .meta { font-size: 11px; color: var(--muted); margin: 4px 0 8px; font-weight: 500; }
.pkg-body .price { font-size: 13px; font-weight: 800; color: var(--ink); font-family: var(--font-num); }
.pkg-body .tag { font-size: 10px; padding: 3px 8px; margin: 0; }
.pkg-body .btn-sm { padding: 7px 10px; font-size: 12px; }
.price {
  font-family: var(--font-num); font-size: 20px; font-weight: 700;
  letter-spacing: -.03em; color: var(--ink);
}
.amt { font-family: var(--font-num); font-weight: 700; letter-spacing: -.02em; }
.sub { font-size: 11px; color: var(--muted); font-weight: 600; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 6px 11px;
  border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line); margin: 0 6px 6px 0;
}

/* ===== Wallet / credits ===== */
.credit-hero {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--sky) 100%);
  border-radius: var(--r-xl); padding: 26px; text-align: center; margin-bottom: 18px;
  box-shadow: 0 14px 34px rgba(140,160,220,.24);
  position: relative; overflow: hidden;
}
.credit-hero-profile {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; text-align: left; padding: 16px 18px; margin-bottom: 16px;
}
.credit-hero-profile .num {
  font-size: 32px; margin-top: 2px;
}
.credit-hero-profile .btn { flex-shrink: 0; position: relative; z-index: 1; }
.credit-hero-sm { padding: 18px; margin-bottom: 14px; }
.credit-hero-sm .num { font-size: 36px; }
.credit-hero::after {
  content: ''; position: absolute; left: -30%; top: -60%;
  width: 160%; height: 160%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.55), transparent 55%);
  pointer-events: none;
}
.credit-hero .num {
  font-family: var(--font-num);
  font-size: 44px; font-weight: 700; letter-spacing: -.05em; line-height: 1.05;
  position: relative; z-index: 1;
}

/* premium credit cards — horizontal snap carousel */
#creditPackages {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px 0 10px; margin: 0 -18px; padding-inline: 18px;
}
#creditPackages::-webkit-scrollbar { display: none; }
.credit-card {
  flex: 0 0 210px; scroll-snap-align: center;
  aspect-ratio: 1.62; padding: 18px;
  border-radius: var(--r-lg); color: #fff;
  display: flex; flex-direction: column; align-items: flex-start;
  background: linear-gradient(140deg, #2A2C36 0%, #16171C 55%, #24262F 100%);
  box-shadow: 0 14px 34px rgba(18,19,23,.30), inset 0 1px 0 rgba(255,255,255,.10);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.credit-card:active { transform: scale(.975); }
/* holographic sweep */
.credit-card::after {
  content: ''; position: absolute; inset: -50%;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.16) 48%, rgba(160,190,255,.12) 54%, transparent 64%);
  transform: translateX(-60%);
  animation: holo 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes holo {
  0%, 70% { transform: translateX(-60%); }
  100% { transform: translateX(60%); }
}
.credit-card.pop {
  background: linear-gradient(140deg, #4B45C6 0%, #7B5CE8 50%, #B06AD8 100%);
  box-shadow: 0 16px 40px rgba(110,80,220,.38), inset 0 1px 0 rgba(255,255,255,.18);
}
.credit-card.pop::before {
  content: 'POPÜLER';
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: rgba(255,255,255,.92); color: #4B45C6;
  font-size: 8.5px; font-weight: 800; letter-spacing: .07em;
  padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
}
/* EMV-style chip */
.credit-card .chip {
  width: 34px; height: 25px; border-radius: 6px; margin: 0 0 auto; padding: 0;
  background: linear-gradient(140deg, #F4D68A, #C9A24B 45%, #F0D392);
  border: 0; position: relative; z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.credit-card .chip::after {
  content: ''; position: absolute; inset: 5px 7px;
  border: 1px solid rgba(0,0,0,.18); border-radius: 2px;
  border-left-width: 0; border-right-width: 0;
}
.credit-card .amt {
  font-size: 24px; font-weight: 700; letter-spacing: -.035em;
  position: relative; z-index: 1;
}
.credit-card .sub {
  font-size: 11.5px; color: rgba(255,255,255,.72);
  font-weight: 600; margin-top: 2px; position: relative; z-index: 1;
}
.credit-card .btn { position: relative; z-index: 1; backdrop-filter: blur(6px); }

.glass {
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}

.pay-sheet { max-height: 92%; }
.pay-summary {
  display: grid; gap: 10px; padding: 16px; margin-bottom: 4px;
  border-radius: var(--r-lg); background: var(--surface-2);
  border: 1px solid var(--line);
}
.pay-summary .pay-kicker {
  font-size: 11px; font-weight: 800; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
}
.pay-summary h4 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.pay-summary .pay-amount {
  font-family: var(--font-num); font-size: 28px; font-weight: 700;
  letter-spacing: -.04em; margin-top: 2px;
}
.pay-summary .pay-meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.pay-options { display: grid; gap: 8px; margin: 14px 0 10px; }
.pay-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--line-strong);
  cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink);
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--spring);
  position: relative;
}
.pay-opt:active { transform: scale(.98); }
.pay-opt.on { border-color: var(--cta); background: var(--surface-2); box-shadow: 0 0 0 1px var(--cta); }
.pay-opt .pay-opt-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--bg-deep); color: var(--ink);
}
.pay-opt.on .pay-opt-ico { background: var(--cta); color: var(--on-cta); }
.pay-opt .pay-opt-text { flex: 1; min-width: 0; }
.pay-opt .pay-opt-text small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.pay-opt .pay-check {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; color: transparent; flex-shrink: 0;
}
.pay-opt.on .pay-check {
  border-color: var(--cta); background: var(--cta); color: var(--on-cta);
}
.pay-opt .pay-check .material-symbols-outlined { font-size: 16px; }
.pay-secure {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(33,201,122,.08); border: 1px solid rgba(33,201,122,.22);
  margin-bottom: 14px; font-size: 12px; color: var(--ink-2); line-height: 1.45; font-weight: 600;
}
.pay-secure .material-symbols-outlined { color: var(--success); font-size: 20px; flex-shrink: 0; }
.pay-stage-frame { display: none; }
.pay-stage-frame.on { display: block; }
.pay-stage-select.hidden, .pay-stage-done.hidden { display: none !important; }
.pay-done {
  text-align: center; padding: 28px 12px 12px;
}
.pay-done .pay-done-ico {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: rgba(33,201,122,.14); color: var(--success);
}
.pay-done .pay-done-ico .material-symbols-outlined { font-size: 36px; }
.pay-done.err .pay-done-ico { background: rgba(255,77,106,.14); color: var(--danger); }
.pay-done h4 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.pay-done p { color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.5; }
.pay-loading {
  display: none; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; font-size: 13px; font-weight: 700; color: var(--muted);
}
.pay-loading.on { display: flex; }
.pay-loading .spin {
  width: 18px; height: 18px; border: 2px solid var(--line-strong);
  border-top-color: var(--cta); border-radius: 50%;
  animation: paySpin .7s linear infinite;
}
@keyframes paySpin { to { transform: rotate(360deg); } }

.dietitian-card {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center;
  background: var(--surface); border-radius: var(--r-lg); padding: 12px;
  margin-bottom: 10px; box-shadow: var(--sh-1);
  border: 1px solid rgba(255,255,255,.9);
  transition: transform .25s var(--ease);
}
.dietitian-card:active { transform: scale(.985); }
.dietitian-card .photo {
  width: 72px; height: 72px; border-radius: var(--r-md);
  object-fit: cover; background: var(--lavender);
}
.dietitian-card h4 { font-size: 14px; font-weight: 800; }
.dietitian-card .spec { font-size: 11px; color: var(--muted); font-weight: 600; }
.dietitian-card .bio {
  font-size: 11px; color: var(--ink-2); margin-top: 4px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rating { color: var(--amber); font-size: 11px; font-weight: 800; }

/* ===== Store ===== */
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.store-card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-1); border: 1px solid rgba(255,255,255,.9);
  display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.store-card:active { transform: scale(.975); box-shadow: var(--sh-3); }
.store-card img, .store-card .ph {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: linear-gradient(150deg, var(--surface-2), var(--bg-deep));
  display: grid; place-items: center; color: var(--muted-2);
}
.store-card .b, .store-card .body {
  padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1;
}
.store-card h4, .store-card strong { font-size: 13px; font-weight: 700; line-height: 1.3; }
.store-card .price { font-size: 16px; margin-top: auto; padding-top: 6px; }
.store-card .btn { margin-top: 8px; }

.cart-fab {
  position: absolute; right: 18px; bottom: calc(var(--nav-h) + 26px + var(--safe-bot));
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--cta); color: var(--on-cta); cursor: pointer;
  display: grid; place-items: center; z-index: 55;
  box-shadow: var(--sh-ink);
  transition: transform .28s var(--spring);
}
.cart-fab:active { transform: scale(.9); }
.cart-fab .badge {
  position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px;
  border-radius: 99px; background: var(--coral); color: #fff;
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
  padding: 0 5px; border: 2px solid var(--bg);
  font-family: var(--font-num);
}

/* ===== Chrono ===== */
.chrono-display {
  font-family: var(--font-num);
  font-size: 72px; font-weight: 700; letter-spacing: -.06em;
  text-align: center; margin: 48px 0 36px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, var(--ink), #4A4C58);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Zone pills ===== */
.zone-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.zone-pills::-webkit-scrollbar { display: none; }
.zone-pills button {
  flex: 0 0 auto; border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--muted); border-radius: 999px; padding: 9px 16px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .25s var(--ease);
}
.zone-pills button:active { transform: scale(.94); }

/* ===== Buttons ===== */
.btn {
  border: 0; cursor: pointer; font-weight: 700; font-size: 14px;
  border-radius: var(--r-sm); padding: 15px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .2s var(--spring), box-shadow .25s var(--ease), background .22s var(--ease), opacity .2s;
  letter-spacing: -.01em;
}
.btn:active { transform: scale(.965); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--cta); color: var(--on-cta); box-shadow: 0 8px 20px rgba(18,19,23,.22); }
.btn-primary:active { box-shadow: 0 4px 12px rgba(18,19,23,.2); }
.btn-primary .material-symbols-outlined { color: inherit; }
.btn-ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:active { background: var(--line); }
.btn-sm { padding: 9px 14px; font-size: 12px; border-radius: var(--r-xs); }
.btn-full { width: 100%; }
.btn-soft { background: rgba(255,255,255,.72); color: var(--ink); backdrop-filter: blur(8px); }
.btn-danger { background: var(--danger); color: #fff; }

/* ===== Forms ===== */
.input {
  width: 100%; background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 15px 16px; color: var(--ink);
  font: inherit; font-weight: 600; outline: none;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), background .22s;
}
.input::placeholder { color: var(--muted-2); font-weight: 500; }
.input:focus {
  border-color: var(--lavender-2);
  box-shadow: 0 0 0 4px rgba(185,180,240,.22);
}
.input:user-invalid { border-color: rgba(255,77,106,.5); }
label.lbl {
  display: block; font-size: 11px; color: var(--muted);
  font-weight: 700; margin-bottom: 6px; letter-spacing: .01em;
}
.stack { display: flex; flex-direction: column; gap: 11px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }
.muted { color: var(--muted); font-size: 12px; font-weight: 500; }
.hidden { display: none !important; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
.gap-2 { gap: 8px; }

/* ===== Auth ===== */
#loadingLayer, #authLayer {
  position: absolute; inset: 0; z-index: 80; background: var(--bg);
  overflow-y: auto; scrollbar-width: none;
}
#loadingLayer::-webkit-scrollbar, #authLayer::-webkit-scrollbar { display: none; }
#loadingLayer {
  z-index: 90; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
#loadingLayer.hidden { display: none; }

.auth-tabs {
  display: flex; background: var(--bg-deep); border-radius: 999px;
  padding: 4px; margin: 18px 0; position: relative;
}
.auth-tabs button {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  padding: 11px; border-radius: 999px; font-weight: 700; font-size: 13px;
  cursor: pointer; transition: color .28s var(--ease), background .28s var(--ease);
}
.auth-tabs button.on { background: var(--cta); color: var(--on-cta); box-shadow: 0 4px 12px rgba(18,19,23,.22); }

.step { display: none; }
.step.on { display: block; animation: screenIn .34s var(--ease-out); }
.step h3 { font-size: 22px; font-weight: 800; letter-spacing: -.035em; margin-bottom: 14px; }

.choice {
  width: 100%; margin-bottom: 8px; justify-content: flex-start;
  position: relative; padding-left: 46px;
}
.choice::before {
  content: ''; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line-strong); transition: all .25s var(--ease);
}
.choice.on { background: var(--cta); color: var(--on-cta); }
.choice.on::before {
  border-color: #fff; background: #fff;
  box-shadow: inset 0 0 0 4px var(--black);
}

.range-val {
  font-family: var(--font-num);
  font-size: 54px; font-weight: 700; text-align: center; letter-spacing: -.05em;
}
.range-val small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }

input[type=range] {
  width: 100%; margin: 18px 0; height: 8px; -webkit-appearance: none; appearance: none;
  background: var(--bg-deep); border-radius: 99px; outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 50%; background: var(--black);
  cursor: grab; border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(18,19,23,.32);
  transition: transform .2s var(--spring);
}
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.16); cursor: grabbing; }
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--black);
  cursor: grab; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(18,19,23,.32);
}

input[type=checkbox] {
  width: 20px; height: 20px; accent-color: var(--black); cursor: pointer;
}

/* ===== Modals / sheets ===== */
.modal {
  position: absolute; inset: 0; z-index: 70;
  background: rgba(16,17,24,.38);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  display: none; align-items: flex-end; justify-content: center;
  animation: fadeIn .28s var(--ease-out);
}
.modal.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%; max-height: 90%; overflow: auto; background: var(--surface);
  border-radius: 32px 32px 0 0;
  padding: 10px 18px calc(24px + var(--safe-bot));
  animation: slideUp .42s var(--ease-out);
  scrollbar-width: none; position: relative;
  box-shadow: 0 -18px 50px rgba(0,0,0,.18);
}
.sheet::-webkit-scrollbar { display: none; }
/* grabber */
.sheet::before {
  content: ''; display: block; width: 38px; height: 5px; border-radius: 99px;
  background: var(--line-strong); margin: 0 auto 14px;
}
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; gap: 12px;
}
.sheet-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }

/* ===== Workout detail ===== */
.workout-hero {
  position: relative; height: 42vh; margin: -14px -18px 0;
  background: #222 center/cover no-repeat;
  border-radius: 0 0 32px 32px; overflow: hidden;
}
.workout-hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent 48%);
}
.workout-hero .top-actions {
  position: absolute; top: calc(14px + var(--safe-top)); left: 16px; right: 16px;
  display: flex; justify-content: space-between; z-index: 2;
}
.workout-hero .top-actions button {
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.22); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center; cursor: pointer;
}
.workout-hero .titles {
  position: absolute; left: 18px; right: 18px; bottom: 24px; z-index: 2; color: #fff;
}
.workout-hero .titles h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -.035em;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.workout-hero .titles p { font-size: 13px; opacity: .88; margin-top: 4px; font-weight: 500; }

.ex-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center;
  background: var(--surface-2); border-radius: var(--r-md); padding: 10px; margin: 12px 0;
  border: 1px solid var(--line);
}
.ex-card img { width: 72px; height: 72px; border-radius: var(--r-xs); object-fit: cover; }
.player-wrap { background: #000; border-radius: var(--r-md); overflow: hidden; }
.player-wrap video { width: 100%; display: block; max-height: 46vh; }
.cast-bar { display: flex; gap: 8px; padding: 10px; flex-wrap: wrap; }
.pay-iframe { width: 100%; min-height: 420px; border: 0; border-radius: var(--r-sm); background: #fff; }

/* ===== Chat (dietitian / Servy) ===== */
.chat-shell, .servy-shell { display: flex; flex-direction: column; gap: 10px; }
.chat-msgs, .servy-msgs {
  height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 9px;
  padding: 14px; background: var(--surface-2); border-radius: var(--r-lg);
  border: 1px solid var(--line); scrollbar-width: none;
}
.chat-msgs::-webkit-scrollbar, .servy-msgs::-webkit-scrollbar { display: none; }
.bubble {
  max-width: 82%; padding: 11px 15px; border-radius: 20px;
  font-size: 13.5px; line-height: 1.45; font-weight: 500;
  animation: bubbleIn .32s var(--ease-out);
  word-break: break-word; white-space: pre-wrap;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.bubble.ai, .bubble.them {
  align-self: flex-start; background: var(--surface);
  border-bottom-left-radius: 7px; box-shadow: var(--sh-1);
}
.bubble.me {
  align-self: flex-end; background: var(--cta); color: var(--on-cta);
  border-bottom-right-radius: 7px;
}
.bubble.typing {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 120px; color: var(--muted); font-weight: 700; font-size: 12.5px;
}
.bubble.typing .typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.bubble.typing .typing-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--violet);
  animation: typingDot 1.1s ease-in-out infinite;
}
.bubble.typing .typing-dots i:nth-child(2) { animation-delay: .18s; }
.bubble.typing .typing-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.servy-quick { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.servy-quick::-webkit-scrollbar { display: none; }
.servy-quick button {
  flex: 0 0 auto; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-2); border-radius: 999px; padding: 8px 14px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .22s var(--ease);
}
.servy-quick button:active { background: var(--cta); color: var(--on-cta); transform: scale(.95); }

.call-bar { display: flex; gap: 8px; }
.call-bar .btn { flex: 1; }
.voice-bubble {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 20px; background: var(--surface);
  box-shadow: var(--sh-1); align-self: flex-start; max-width: 82%;
}
.voice-bubble audio { height: 34px; }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i {
  display: block; width: 3px; border-radius: 99px; background: var(--violet);
  animation: waveBar 1s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 8px;  animation-delay: 0s; }
.wave i:nth-child(2) { height: 16px; animation-delay: .12s; }
.wave i:nth-child(3) { height: 22px; animation-delay: .24s; }
.wave i:nth-child(4) { height: 13px; animation-delay: .36s; }
.wave i:nth-child(5) { height: 18px; animation-delay: .48s; }
@keyframes waveBar {
  0%, 100% { transform: scaleY(.42); opacity: .55; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ===== Toasts ===== */
.toast-wrap {
  position: absolute; top: calc(14px + var(--safe-top)); left: 16px; right: 16px;
  z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: rgba(23,24,29,.94); color: #fff; border-radius: var(--r-sm);
  padding: 13px 16px; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 12px 32px rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.08);
  animation: toastIn .4s var(--spring);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-18px) scale(.94); }
  to { opacity: 1; transform: none; }
}

/* ===== Calendar rows ===== */
.class-row {
  background: var(--surface); border-radius: var(--r-lg); padding: 14px 16px;
  margin-bottom: 9px; box-shadow: var(--sh-1);
  border: 1px solid rgba(255,255,255,.9);
}

/* ===== Slider ===== */
.hero-slider {
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface); box-shadow: var(--sh-2);
  border: 1px solid rgba(255,255,255,.9);
}
.hero-track { display: flex; }
.slider-dots { display: flex; justify-content: center; gap: 6px; padding: 12px; }
.slider-dots span { transition: width .35s var(--ease), background .35s var(--ease); }

/* ===== Search overlay ===== */
.search-overlay {
  position: absolute; inset: 0; z-index: 75;
  background: rgba(244,245,248,.86);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  padding: calc(18px + var(--safe-top)) 18px 18px;
  display: none; flex-direction: column; gap: 12px;
  overflow-y: auto; scrollbar-width: none;
}
.search-overlay.open { display: flex; animation: fadeIn .3s var(--ease-out); }
.search-overlay > strong { font-size: 20px; letter-spacing: -.03em; }
.search-hit {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border-radius: var(--r-md); padding: 14px 16px;
  margin-top: 9px; cursor: pointer; box-shadow: var(--sh-1);
  animation: riseIn .35s var(--ease-out) backwards;
  transition: transform .22s var(--ease);
  font-size: 14px; font-weight: 700;
}
.search-hit:active { transform: scale(.98); }
.search-hit .muted {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--surface-2); border-radius: 999px; padding: 4px 9px; flex-shrink: 0;
}

/* ===== Desktop frame ===== */
.brand-word {
  font-size: 30px; font-weight: 800; letter-spacing: -.045em;
}

/* ===== Native app katmanı ===== */

/* Aşağı çekip yenile */
.ptr {
  position: absolute; top: calc(6px + var(--safe-top)); left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--sh-2);
  display: grid; place-items: center; z-index: 58;
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease);
}
.ptr.on { opacity: 1; }
.ptr-spinner {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2.5px solid var(--line-strong); border-top-color: var(--muted);
  transition: border-top-color .22s var(--ease);
}
.ptr.ready .ptr-spinner { border-top-color: var(--violet); }
.ptr.spinning .ptr-spinner {
  border-top-color: var(--violet);
  animation: ptrSpin .7s linear infinite;
}
@keyframes ptrSpin { to { transform: rotate(360deg); } }

/* Çevrimdışı şeridi */
.net-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 92;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; text-align: center;
  padding: 10px 14px calc(10px + var(--safe-bot));
  transform: translateY(100%);
  transition: transform .38s var(--ease-out);
}
.net-bar.on { transform: none; }

/* Güncelleme şeridi */
.update-bar {
  position: absolute; left: 16px; right: 16px;
  bottom: calc(var(--nav-h) + 12px + var(--safe-bot)); z-index: 62;
  background: rgba(23,24,29,.95); color: #fff;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--r-md); padding: 12px 12px 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 14px 34px rgba(0,0,0,.3);
  animation: riseIn .45s var(--ease-out);
}
.update-bar button {
  border: 0; border-radius: var(--r-xs); padding: 9px 14px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 700;
  font-size: 12px; cursor: pointer; flex-shrink: 0;
}

/* Ana ekrana ekle kartı */
.install-card {
  position: absolute; left: 14px; right: 14px;
  bottom: calc(var(--nav-h) + 12px + var(--safe-bot)); z-index: 62;
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.9);
  padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--sh-4);
  animation: riseIn .5s var(--ease-out);
}
.install-card img { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; box-shadow: var(--sh-1); }
.install-card .t { flex: 1; min-width: 0; }
.install-card .t strong { display: block; font-size: 13.5px; font-weight: 800; }
.install-card .t span { font-size: 11px; color: var(--muted); font-weight: 500; }
.install-card .x {
  border: 0; background: transparent; color: var(--muted-2);
  font-size: 15px; cursor: pointer; padding: 4px; line-height: 1; flex-shrink: 0;
}

/* Standalone modda dokunma seçimini kapat, kaydırmayı sabitle */
html.standalone, html.standalone body { overscroll-behavior: none; }

/* ===== Seri (streak) ===== */
.streak-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.9);
  padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--sh-1);
}
.streak-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.streak-main .flame {
  font-size: 30px; color: var(--muted-2);
  transition: color .4s var(--ease), filter .4s var(--ease);
}
.streak-row.hot .flame {
  color: #FF7A01;
  filter: drop-shadow(0 3px 10px rgba(255,122,1,.4));
  animation: flamePulse 2.4s ease-in-out infinite;
}
@keyframes flamePulse {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.09) rotate(2deg); }
}
.streak-main strong {
  display: block; font-size: 17px; font-weight: 800;
  font-family: var(--font-num); letter-spacing: -.03em;
}
.streak-main span { font-size: 11px; color: var(--muted); font-weight: 600; }
.streak-week { display: flex; gap: 5px; flex-shrink: 0; }
.streak-week span {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 800;
  background: var(--surface-2); color: var(--muted-2);
  border: 1px solid var(--line);
  transition: all .35s var(--spring);
}
.streak-week span.on {
  background: linear-gradient(150deg, #FF9A3C, #FF7A01);
  color: #fff; border-color: transparent;
  box-shadow: 0 3px 9px rgba(255,122,1,.34);
}

/* ===== Haftalık özet ===== */
.week-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 20px;
}
.week-summary > div {
  background: var(--surface); border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.9);
  padding: 12px 6px; text-align: center; box-shadow: var(--sh-1);
}
.week-summary strong {
  display: block; font-size: 19px; font-weight: 800;
  font-family: var(--font-num); letter-spacing: -.035em;
}
.week-summary span { font-size: 9.5px; color: var(--muted); font-weight: 700; }

/* ===== Kilo takibi ===== */
.weight-card {
  background: var(--surface); border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.9);
  padding: 18px; margin-bottom: 16px; box-shadow: var(--sh-2);
}
.weight-now {
  font-family: var(--font-num); font-size: 34px; font-weight: 700;
  letter-spacing: -.045em; line-height: 1.1; margin-top: 2px;
}
.weight-now small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.weight-delta { font-size: 12px; font-weight: 700; margin-top: 4px; color: var(--muted); }
.weight-delta span { display: inline-flex; align-items: center; gap: 3px; }
.weight-delta .material-symbols-outlined { font-size: 16px; }
.weight-delta .down { color: var(--success); }
.weight-delta .up { color: var(--coral); }
.weight-delta small { color: var(--muted-2); font-weight: 600; }
.weight-chart { height: 128px; margin-top: 14px; }
.weight-chart canvas { width: 100%; height: 100%; display: block; }
.weight-legend {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--muted-2); font-weight: 700; margin-top: 6px;
}

/* ===== Aktivite geçmişi ===== */
.act-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.9);
  padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--sh-1);
}
.act-ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #FF8A45, var(--orange, #FC4C02));
  box-shadow: 0 5px 14px rgba(252,76,2,.26);
}
.act-info { flex: 1; min-width: 0; }
.act-info strong { display: block; font-size: 13.5px; font-weight: 700; }
.act-info span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.act-nums { text-align: right; flex-shrink: 0; }
.act-nums strong {
  display: block; font-size: 14px; font-weight: 800;
  font-family: var(--font-num); letter-spacing: -.02em;
}
.act-nums span { font-size: 10px; color: var(--muted); font-weight: 600; }
.act-share {
  border: 0; background: transparent; color: var(--muted-2);
  cursor: pointer; padding: 4px; display: grid; place-items: center; flex-shrink: 0;
  transition: color .2s var(--ease), transform .2s var(--spring);
}
.act-share:active { transform: scale(.85); color: var(--ink); }
.act-share .material-symbols-outlined { font-size: 19px; }

/* ===== Ayarlar ===== */
.set-label {
  font-size: 11px; font-weight: 800; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
  margin: 18px 0 9px;
}
.set-label:first-of-type { margin-top: 4px; }
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--bg-deep); border-radius: 999px; padding: 4px; gap: 2px;
}
.seg button {
  border: 0; background: transparent; color: var(--muted);
  padding: 10px; border-radius: 999px; font: inherit;
  font-weight: 700; font-size: 13px; cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease);
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }

.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.set-row:last-of-type { border-bottom: 0; }
.set-row strong { display: block; font-size: 14px; font-weight: 700; }
.set-row span { font-size: 11px; color: var(--muted); font-weight: 500; }

.switch { position: relative; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i {
  display: block; width: 50px; height: 30px; border-radius: 999px;
  background: var(--line-strong); position: relative;
  transition: background .3s var(--ease);
}
.switch i::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: transform .3s var(--spring);
}
.switch input:checked + i { background: var(--success); }
.switch input:checked + i::after { transform: translateX(20px); }

/* ==========================================================================
   Karanlık mod
   ========================================================================== */
html.dark {
  --bg: #101115;
  --bg-deep: #1A1B21;
  --surface: #191A20;
  --surface-2: #212229;
  --line: #26272F;
  --line-strong: #32333C;

  --ink: #F2F3F6;
  --ink-2: #C2C4CC;
  --muted: #8E9099;
  --muted-2: #6B6D76;

  --black: #F2F3F6;
  --cta: #F2F3F6;
  --on-cta: #101115;
  --pill: #1E1F26;

  --sh-1: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.22);
  --sh-2: 0 2px 4px rgba(0,0,0,.32), 0 8px 22px rgba(0,0,0,.28);
  --sh-3: 0 4px 10px rgba(0,0,0,.34), 0 18px 42px rgba(0,0,0,.34);
  --sh-4: 0 10px 24px rgba(0,0,0,.42), 0 30px 70px rgba(0,0,0,.5);
  --sh-ink: 0 10px 30px rgba(0,0,0,.55);
}
html.dark body { background: #08090C; }
html.dark .app-shell::before { opacity: .5; }
html.dark .btn-primary {
  background: var(--cta); color: var(--on-cta);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
html.dark .btn-primary .material-symbols-outlined { color: var(--on-cta); }
html.dark .btn-ghost { background: var(--surface-2); color: var(--ink); }
html.dark .day-pill.on { background: var(--cta); color: var(--on-cta); }
html.dark .day-pill.on .n { color: var(--on-cta); }
html.dark .day-pill.on .dot { background: #121317; }
html.dark .auth-tabs button.on,
html.dark .choice.on { background: var(--cta); color: var(--on-cta); }
html.dark .choice.on::before { border-color: var(--on-cta); background: var(--on-cta); box-shadow: inset 0 0 0 4px var(--cta); }
html.dark .bottom-nav {
  background:
    linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 45%, rgba(255,255,255,.03) 100%),
    rgba(28,30,38,.42);
  border-color: rgba(255,255,255,.22);
  box-shadow:
    0 14px 40px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(255,255,255,.06);
}
html.dark .nav-indicator {
  background: rgba(242,243,246,.92);
  border-color: rgba(255,255,255,.5);
}
html.dark .nav-item { color: rgba(255,255,255,.45); }
html.dark .nav-item.active { color: #121317; }
html.dark .nav-item.nav-plus { color: rgba(255,255,255,.62); }
html.dark .nav-item.nav-plus.active { color: #121317; }
html.dark .cart-fab { background: var(--cta); color: var(--on-cta); }
html.dark .bubble.me { background: var(--cta); color: var(--on-cta); }
html.dark .seg button.on { background: var(--surface-2); color: var(--ink); }
html.dark .toast { background: rgba(40,41,50,.96); }
html.dark .splash,
html.dark #loadingLayer,
html.dark #authLayer { background: var(--bg); }
html.dark .onboard-card { background-color: #1B2A31; }
html.dark .onboard-card::after { background: linear-gradient(to top, #1B2A31, transparent); }
html.dark .onboard-card::before { color: rgba(255,255,255,.24); }
html.dark .slide-track { background: linear-gradient(180deg, #22252C, #1C1E24); box-shadow: none; }
html.dark .slide-track::before { color: #5C6069; }
html.dark .slide-knob { background: linear-gradient(160deg, #3A3D47, #2A2D35); }
html.dark .btn-social { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
html.dark .btn-social.facebook { background: #1877F2; border-color: #1877F2; color: #fff; }
html.dark .search-overlay { background: rgba(16,17,21,.9); }
html.dark .modal { background: rgba(0,0,0,.55); }
html.dark .metric.mint { background: linear-gradient(150deg, #1E4437, #17352C); color: #D7F5E8; }
html.dark .metric.sky { background: linear-gradient(150deg, #1B3A4C, #16303E); color: #D6EEFA; }
html.dark .metric.peach { background: linear-gradient(150deg, #4A3123, #3B271C); color: #FAE3D2; }
html.dark .metric small { color: rgba(255,255,255,.55); }
html.dark .challenge-card { background: linear-gradient(135deg, #2C2A47, #24223B); }
html.dark .challenge-card h3 { color: #EDEBFA; }
html.dark .challenge-card p { color: #A9A5C9; }
html.dark .plan-card h4, html.dark .plan-meta, html.dark .tag { color: #14151A; }
html.dark .switch i::after { background: #F2F3F6; }
html.dark .update-bar { background: rgba(40,41,50,.96); }
html.dark .net-bar { background: #F2F3F6; color: #101115; }
html.dark .ptr { background: var(--surface-2); }
html.dark .credit-hero { background: linear-gradient(135deg, #2E2B4E, #1E3546); }
html.dark .strava-stats > div,
html.dark .act-row, html.dark .streak-row, html.dark .week-summary > div,
html.dark .weight-card, html.dark .method-item, html.dark .track-mini,
html.dark .class-row, html.dark .menu-list, html.dark .pkg-card,
html.dark .store-card, html.dark .dietitian-card, html.dark .analysis-card,
html.dark .install-card, html.dark .hero-slider {
  border-color: var(--line);
}
html.dark .preview-banner {
  background: rgba(252,76,2,.12); color: #FFB27A;
}

/* ===== Package preview / lock ===== */
.pkg-cover { position: relative; }
.pkg-exp, .pkg-preview-badge {
  position: absolute; left: 6px; bottom: 6px; z-index: 2;
  font-size: 9px; font-weight: 800; padding: 3px 7px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(8px);
}
.pkg-preview-badge { left: auto; right: 6px; background: rgba(252,76,2,.9); }
.preview-banner {
  display: flex; align-items: center; gap: 8px;
  background: #FFF4EC; color: #B34A00; border-radius: 14px;
  padding: 10px 12px; font-size: 12px; font-weight: 700; margin-bottom: 12px;
}
.preview-banner .material-symbols-outlined { font-size: 18px; }
.player-wrap.locked { position: relative; border-radius: var(--r-md); overflow: hidden; }
.lock-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  color: #fff; padding: 20px; gap: 6px;
  background: rgba(0,0,0,.35);
}
.lock-overlay .material-symbols-outlined { font-size: 36px; }
.lock-overlay strong { font-size: 16px; }
.lock-overlay p { font-size: 12px; opacity: .85; margin-bottom: 8px; }
.locked-row { opacity: .55; }

/* ===== Product detail ===== */
.pd-hero {
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2);
  margin-bottom: 14px; aspect-ratio: 1; display: grid; place-items: center;
}
.pd-hero img { width: 100%; height: 100%; object-fit: cover; }
.pd-body h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.pd-price {
  font-family: var(--font-num); font-size: 26px; font-weight: 700;
  letter-spacing: -.03em; margin: 8px 0 12px;
}
.pd-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 16px; }
.pd-label { font-size: 11px; font-weight: 800; color: var(--muted); margin: 12px 0 8px; letter-spacing: .03em; text-transform: uppercase; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chip {
  border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--ink); border-radius: 999px; padding: 9px 14px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.pd-chip.on { background: var(--cta); color: var(--on-cta); border-color: var(--cta); }
.pd-qty {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--surface-2); border-radius: 999px; padding: 6px 8px;
}
.pd-qty button {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--surface); color: var(--ink); font-size: 18px; font-weight: 700;
  cursor: pointer; box-shadow: var(--sh-1);
}
.pd-qty strong { font-family: var(--font-num); font-size: 18px; min-width: 24px; text-align: center; }

/* ===== Activity share card ===== */
.share-card {
  position: relative; overflow: hidden; border-radius: 28px;
  min-height: 280px; padding: 22px 20px 18px; margin-bottom: 16px;
  color: #fff; isolation: isolate;
}
.share-card-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.16), transparent 42%),
    linear-gradient(155deg, #1A1428 0%, #3A2460 48%, #FC4C02 100%);
}
.share-card > *:not(.share-card-bg) { position: relative; z-index: 1; }
.share-card-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 800; letter-spacing: .02em; margin-bottom: 18px;
}
.share-card-top span {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.16);
}
.share-card h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 22px;
  line-height: 1.15;
}
.share-card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px;
}
.share-card-stats > div {
  background: rgba(255,255,255,.12); border-radius: 18px; padding: 14px 10px;
  text-align: center; backdrop-filter: blur(8px);
}
.share-card-stats b {
  display: block; font-family: var(--font-num); font-size: 22px; font-weight: 700;
  letter-spacing: -.03em;
}
.share-card-stats small {
  font-size: 11px; font-weight: 700; opacity: .7; text-transform: uppercase;
  letter-spacing: .04em;
}
.share-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; opacity: .85;
}
.share-actions { display: grid; gap: 8px; }

/* ===== Calendar equipment ===== */
.eq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.eq-card {
  background: var(--surface); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-1);
  border: 1px solid rgba(255,255,255,.9);
  transition: transform .25s var(--ease);
}
.eq-card:active { transform: scale(.97); }
.eq-img {
  aspect-ratio: 1.15; background: var(--surface-2) center/cover no-repeat;
  position: relative;
}
.eq-img span {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .03em;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(18,19,23,.72); color: #fff; backdrop-filter: blur(6px);
}
.eq-body { padding: 12px; }
.eq-body strong { display: block; font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.eq-body p {
  font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html.dark .eq-card { border-color: var(--line); }

.method-lead {
  font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
  font-weight: 600; margin: -4px 0 14px;
}
.challenge-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; position: relative; z-index: 2;
}
.chip-cta {
  border: 0; border-radius: 999px; padding: 8px 12px;
  background: rgba(255,255,255,.2); color: #fff; font-weight: 800;
  font-size: 11px; cursor: pointer; font-family: inherit;
  backdrop-filter: blur(6px);
}
.chip-cta:active { transform: scale(.96); }
.card-soft, .live-today {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 14px;
  box-shadow: var(--sh-1); border: 1px solid rgba(255,255,255,.9);
}
.live-today strong { display: block; font-size: 14px; margin-top: 2px; }
.hero-slider {
  margin: 0 0 14px; border-radius: 24px; overflow: hidden;
  box-shadow: var(--sh-2); background: #0e1016;
}
.hero-track {
  display: flex; transition: transform .5s var(--ease);
}
.hero-slide {
  min-width: 100%; min-height: 240px; height: 240px; padding: 0;
  background-size: cover; background-position: center; position: relative;
  display: flex; align-items: flex-end;
}
.hero-slide.has-media { min-height: 240px; height: 240px; }
.hero-slide-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,10,16,.15) 10%, rgba(8,10,16,.78) 100%);
  pointer-events: none;
}
.hero-slide-content {
  position: relative; z-index: 1; padding: 22px 18px 20px; width: 100%;
}
.hero-slide h3 { font-size: 22px; font-weight: 800; color: #fff; margin: 8px 0 6px; line-height: 1.2; }
.hero-slide p { color: rgba(255,255,255,.82); font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.slider-dots {
  display: flex; justify-content: center; gap: 6px; padding: 10px;
  background: var(--surface);
}
.social-visual {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 16px; padding: 6px 0 10px;
}
.social-icon-link {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: transparent; border: 0;
  box-shadow: none; text-decoration: none;
  transition: transform .2s var(--ease);
}
.social-icon-link:active { transform: scale(.92); }
.social-icon-link img {
  width: 48px; height: 48px; object-fit: contain;
  display: block; pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.18));
}
/* legacy card (unused) */
.social-card { display: none; }

.studio-filters {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: -4px 0 14px; padding-bottom: 2px;
}
.studio-filters::-webkit-scrollbar { display: none; }
.studio-filter {
  flex: 0 0 auto; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2);
  font-size: 12px; font-weight: 800; padding: 8px 14px;
  border-radius: 999px; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.studio-filter.on {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.blog-grid { display: grid; gap: 12px; }
.blog-card {
  background: var(--surface); border-radius: 18px; overflow: hidden;
  box-shadow: var(--sh-1); border: 1px solid rgba(255,255,255,.9);
  cursor: pointer; text-align: left; width: 100%; padding: 0;
  color: inherit; font: inherit;
}
.blog-card .plus-cover { height: 140px; background-size: cover; background-position: center; }
.blog-card .blog-card-body { padding: 12px 14px 14px; }
.blog-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.plus-forum-hero {
  position: relative; overflow: hidden;
  border-radius: 22px; margin-bottom: 4px;
  min-height: 168px;
  background: linear-gradient(145deg, #1B1D26 0%, #2A3148 48%, #3D2A55 100%);
  box-shadow: 0 16px 40px rgba(30, 28, 50, .28);
  color: #fff;
}
.plus-forum-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.18), transparent 42%),
    radial-gradient(circle at 12% 90%, rgba(123,92,232,.35), transparent 48%);
}
.plus-forum-hero-body {
  position: relative; z-index: 1; padding: 20px 18px 18px;
}
.plus-forum-kicker {
  display: inline-block; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.62); margin-bottom: 8px;
}
.plus-forum-hero h3 {
  font-size: 24px; font-weight: 800; letter-spacing: -.04em;
  margin: 0 0 6px; line-height: 1.15;
}
.plus-forum-hero p {
  margin: 0 0 14px; font-size: 13px; line-height: 1.45;
  color: rgba(255,255,255,.78); font-weight: 500; max-width: 28ch;
}
.plus-forum-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.plus-forum-actions .btn-primary {
  background: #fff; color: #121317;
}
.plus-forum-actions .btn-ghost {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18);
}
.plus-forum-list { display: grid; gap: 8px; margin-bottom: 6px; }
.plus-forum-item {
  display: block; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px; padding: 13px 14px;
  box-shadow: var(--sh-1); cursor: pointer; color: inherit; font: inherit;
  transition: transform .2s var(--ease);
}
.plus-forum-item:active { transform: scale(.985); }
.plus-forum-item-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.plus-forum-item strong {
  font-size: 14px; font-weight: 800; line-height: 1.3;
}
.plus-forum-replies {
  flex-shrink: 0; min-width: 28px; height: 22px; padding: 0 7px;
  border-radius: 999px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted);
  font-size: 11px; font-weight: 800;
}
.plus-forum-item p {
  margin: 6px 0 0; font-size: 12px; color: var(--muted);
  line-height: 1.4; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.plus-forum-meta {
  display: flex; gap: 10px; margin-top: 8px;
  font-size: 11px; font-weight: 700; color: var(--muted-2);
}
.plus-forum-empty {
  text-align: center; padding: 22px 16px;
  background: var(--surface); border-radius: 18px; box-shadow: var(--sh-1);
}
.plus-forum-empty .material-symbols-outlined {
  font-size: 32px; color: var(--violet); margin-bottom: 6px;
}
.plus-forum-empty p { color: var(--muted); font-size: 13px; margin: 0 0 12px; font-weight: 600; }
html.dark .plus-forum-item { border-color: var(--line); }
html.dark .plus-forum-actions .btn-primary { background: #F2F3F6; }
.forum-search-row .input { flex: 1; margin: 0; }
.forum-item {
  background: var(--surface); border-radius: 16px; padding: 14px;
  margin-bottom: 10px; box-shadow: var(--sh-1); cursor: pointer;
  border: 1px solid rgba(255,255,255,.9);
}
.forum-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.forum-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--muted); }
.forum-badge {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}
.forum-badge.melis { background: #111; color: #fff; }
.forum-badge.dietitian { background: #E8F6F1; color: #0A7A5A; }
.forum-topic-body {
  background: var(--surface); border-radius: 18px; padding: 16px;
  margin-bottom: 14px; box-shadow: var(--sh-1); white-space: pre-wrap;
  font-weight: 600; line-height: 1.55;
}
.forum-reply {
  background: var(--surface-2); border-radius: 14px; padding: 12px;
  margin-bottom: 8px; white-space: pre-wrap; font-weight: 600; font-size: 13px; line-height: 1.5;
}
.forum-reply-box { margin: 14px 0 28px; }
html.dark .blog-card, html.dark .forum-item, html.dark .forum-topic-body { border-color: var(--line); }
html.dark .forum-badge.dietitian { background: rgba(10,122,90,.25); color: #7ddec0; }
.social-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: 12px; font-weight: 800; color: var(--ink);
  box-shadow: var(--sh-1);
}
.social-pill .material-symbols-outlined { font-size: 18px; color: var(--violet); }
.social-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.liability-box {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px; margin: 12px 0 16px;
  font-size: 13px; line-height: 1.55; color: var(--ink-2); font-weight: 600;
}
.liability-box p + p { margin-top: 10px; }
.liability-track { margin-top: 8px; }
.self-note-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 14px; margin-bottom: 14px; box-shadow: var(--sh-1);
  border: 1px solid rgba(255,255,255,.9);
}
.self-note-card textarea { min-height: 100px; margin-bottom: 0; }
.cycle-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 14px; margin-bottom: 12px; box-shadow: var(--sh-1);
}
.cycle-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px;
}
.cyc {
  aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2);
}
.cyc.empty { background: transparent; }
.cyc.period { background: rgba(255,77,106,.18); color: #C6284A; }
.cyc.today { outline: 2px solid var(--violet); }
.plus-card {
  background: var(--surface); border-radius: 16px; padding: 12px;
  margin-bottom: 10px; box-shadow: var(--sh-1); border: 1px solid rgba(255,255,255,.9);
}
.plus-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.plus-card p { font-size: 12px; margin-bottom: 6px; }
.plus-cover {
  height: 110px; border-radius: 12px; margin-bottom: 10px;
  background: var(--surface-2) center/cover no-repeat;
}
html.dark .card-soft, html.dark .live-today, html.dark .self-note-card,
html.dark .cycle-card, html.dark .plus-card { border-color: var(--line); }

/* Desktop: plain centered column, no device frame */
@media (min-width: 500px) {
  body { background: var(--bg); }
  .app-shell {
    height: 100dvh; width: 100%;
    box-shadow: 0 0 0 1px var(--line);
  }
}
