/* MemberFit — members area. Dark sidebar (desktop) / bottom tabs (mobile), orange brand. */
:root {
  --night: #0d0b09;
  --night-2: #18120e;
  --night-3: #261c15;
  --night-line: rgba(255, 255, 255, .07);
  --side-text: #ece4dd;
  --side-muted: #9b8f86;
  --o1: #ff8a42;
  --o2: #f2541b;
  --o3: #c2450b;
  --grad: linear-gradient(135deg, #ff9a3c 0%, #f2541b 55%, #c2450b 100%);
  --grad-btn: linear-gradient(135deg, #f86a22 0%, #e04e12 50%, #b83e08 100%);
  --o-soft: #fff4ec;
  --o-line: #ffe0cc;
  --bg: #fffaf6;
  --card: #ffffff;
  --ink: #111111;
  --text: #2e2a27;
  --muted: #6b6b70;
  --line: #f1e9e3;
  --green: #1e7a4c;
  --green-soft: #e6f4ec;
  --red: #c2412d;
  --red-soft: #fdeee9;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(60, 25, 5, .04), 0 10px 30px rgba(120, 50, 10, .07);
  --shadow-lg: 0 24px 60px rgba(40, 15, 0, .22);
  --side-w: 272px;
  --tabbar-h: 68px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); min-height: 100vh; }
h1, h2, h3, h4 { font-family: "Poppins", "Inter", sans-serif; color: var(--ink); margin: 0; letter-spacing: -.015em; }
p { margin: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
img { display: block; max-width: 100%; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s, box-shadow .15s, background .15s, opacity .15s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 22px -8px rgba(224, 78, 18, .65); }
.btn-primary:hover { box-shadow: 0 14px 28px -8px rgba(224, 78, 18, .75); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--o-soft); color: var(--o3); }
.btn-ghost:hover { background: #ffe9da; }
.btn-line { border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--o-line); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.chip-green { background: var(--green-soft); color: var(--green); }
.chip-red { background: var(--red-soft); color: var(--red); }
.chip-orange { background: var(--o-soft); color: var(--o3); }
.chip-dark { background: rgba(255,255,255,.12); color: #fff; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- layout ---------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30; display: flex; flex-direction: column;
  background: radial-gradient(140% 70% at 0% 0%, #3a2316 0%, #1a130e 45%, var(--night) 100%); color: var(--side-text);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 8px 20px rgba(242, 84, 27, .35); }
.brand b { display: block; font-family: "Poppins"; font-size: 18px; color: #fff; line-height: 1.1; }
.brand small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.side-nav { flex: 1; overflow-y: auto; padding: 4px 14px 16px; }
.nav-label { font-size: 11px; letter-spacing: .12em; font-weight: 800; color: var(--side-muted); margin: 18px 10px 8px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; margin-bottom: 2px;
  font-weight: 600; font-size: 14.5px; color: var(--side-text); text-align: left; transition: background .15s;
}
.nav-item:hover { background: rgba(255,255,255,.06); }
.nav-item.active { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 22px -10px rgba(242, 84, 27, .8); }
.nav-item svg.i { opacity: .9; }
.nav-item .badge { margin-left: auto; font-size: 11px; font-weight: 800; color: #ffd8bf; background: rgba(242,84,27,.18); padding: 2px 8px; border-radius: 999px; }
.nav-item.active .badge { background: rgba(255,255,255,.22); color: #fff; }
.side-foot { border-top: 1px solid var(--night-line); padding: 14px 16px 18px; }
.who { display: flex; align-items: center; gap: 10px; padding: 6px 6px 12px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; }
.who-txt { min-width: 0; }
.who-txt small { display: block; font-size: 11px; color: var(--side-muted); }
.who-txt b { display: block; font-size: 13px; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-row { display: flex; gap: 8px; }
.lang-select {
  flex: 1; height: 36px; border-radius: 10px; border: 1px solid var(--night-line); background: rgba(255,255,255,.05);
  color: var(--side-text); font: inherit; font-size: 13px; padding: 0 10px;
}
.side-logout { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--night-line); color: var(--side-text); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.side-logout:hover { background: rgba(255,255,255,.06); }

.main { margin-left: var(--side-w); min-height: 100vh; }
.view { max-width: 1080px; margin: 0 auto; padding: 36px 40px 64px; }
.mobile-top { display: none; }
.tabbar { display: none; }

/* ---------- page header ---------- */
.page-head { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; line-height: 1.15; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--o2); margin-bottom: 8px; }
.note { font-size: 13px; color: var(--muted); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-title { font-size: 19px; margin: 34px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* hero */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 34px 34px 30px; color: #fff;
  background: radial-gradient(120% 130% at 100% 0%, #5a2a12 0%, #24160e 40%, var(--night) 100%);
  box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -70px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 66, .55) 0%, rgba(242, 84, 27, 0) 70%); pointer-events: none;
}
.hero-logo { position: absolute; right: 30px; bottom: 26px; width: 92px; height: 92px; border-radius: 26px; opacity: .95; transform: rotate(-8deg); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.hero h1 { color: #fff; font-size: 30px; line-height: 1.15; max-width: 560px; position: relative; z-index: 1; }
.hero p { color: #e8dcd3; margin-top: 10px; max-width: 520px; position: relative; z-index: 1; }
.hero .chip { margin-bottom: 14px; position: relative; z-index: 1; }

/* steps */
.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; align-items: start; }
.step-num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: "Poppins"; font-weight: 800; font-size: 18px;
  background: var(--o-soft); color: var(--o3);
}
.step h3 { font-size: 16.5px; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.step-msg { font-size: 13.5px; font-weight: 600; }
.step-msg.ok { color: var(--green); }
.step-msg.err { color: var(--red); }
.store-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 14px; border-radius: 14px; background: var(--ink); color: #fff; }
.store-btn small { display: block; font-size: 10.5px; opacity: .75; line-height: 1; }
.store-btn b { display: block; font-size: 15.5px; line-height: 1.2; }
.store-btn.off { background: #f3eeea; color: var(--muted); cursor: default; }
.store-btn svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }

/* bonus cards */
.bonus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bonus { display: flex; flex-direction: column; overflow: hidden; text-align: left; transition: transform .2s, box-shadow .2s; }
.bonus:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(120, 50, 10, .14); }
.bonus-art { height: 128px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 16px 20px; }
.bonus-art.a1 { background: radial-gradient(110% 120% at 100% 0%, #ffb36b 0%, #f2541b 45%, #a33a09 100%); }
.bonus-art.a2 { background: radial-gradient(110% 120% at 100% 0%, #4b2a17 0%, #1d140e 55%, var(--night) 100%); }
.bonus-art .big { font-size: 56px; line-height: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
.bonus-art .tag { position: absolute; top: 14px; left: 16px; }
.bonus-art .mini { position: absolute; right: 16px; bottom: 16px; display: grid; grid-template-columns: repeat(7, 10px); gap: 4px; }
.bonus-art .mini i { width: 10px; height: 10px; border-radius: 3px; background: rgba(255,255,255,.35); }
.bonus-art .mini i.on { background: #fff; }
.bonus-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bonus-body h3 { font-size: 17px; }
.bonus-body p { color: var(--muted); font-size: 14px; }
.bonus-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.bar { height: 8px; border-radius: 99px; background: #f3e7de; overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .4s; }
.open-link { display: inline-flex; align-items: center; gap: 4px; color: var(--o3); font-weight: 700; font-size: 14px; }

/* ---------- calendar ---------- */
.seg { display: inline-flex; padding: 4px; background: #f6ede6; border-radius: 999px; gap: 2px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(60,25,5,.1); }
.cal-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-overall { display: flex; align-items: center; gap: 12px; min-width: 240px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.weeks { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; scrollbar-width: none; }
.weeks::-webkit-scrollbar { display: none; }
.week-chip {
  flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 128px; padding: 12px 14px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--line); text-align: left; transition: border-color .15s, box-shadow .15s;
}
.week-chip b { font-family: "Poppins"; font-size: 15px; color: var(--ink); }
.week-chip small { font-size: 12px; color: var(--muted); font-weight: 600; }
.week-chip .bar { width: 100%; height: 5px; }
.week-chip.on { border-color: var(--o2); box-shadow: 0 8px 20px -10px rgba(242,84,27,.6); }
.week-chip.on b { color: var(--o3); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; min-height: 160px; display: flex; flex-direction: column; gap: 8px; }
.day-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px; border-bottom: 1px solid var(--line); }
.day-head b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--o3); font-weight: 800; }
.day-head small { font-size: 11px; color: var(--muted); font-weight: 700; }
.day.today { border-color: var(--o-line); box-shadow: 0 0 0 3px var(--o-soft); }
.post {
  text-align: left; padding: 11px 11px 10px; border-radius: 12px; background: var(--bg); border: 1px solid #f4e6dc; border-left: 3px solid var(--o2);
  font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 8px;
}
.post:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -8px rgba(226,67,31,.35); }
.post.done { border-left-color: var(--green); background: #f3faf6; border-color: #d9efe2; }
.post .type { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--o2); }
.post.done .type { color: var(--green); }
.ticks { display: flex; gap: 4px; }
.ticks i { width: 18px; height: 5px; border-radius: 99px; background: #eedfd4; }
.ticks i.on { background: var(--o2); }
.post.done .ticks i.on { background: var(--green); }
.rest { font-size: 12.5px; color: #b1a69d; padding: 10px 6px; text-align: center; margin: auto 0; }

/* ---------- sheet / dialog ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(13, 11, 9, .62); backdrop-filter: blur(4px); animation: fade .18s; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2,.9,.3,1.2); }
.sheet-head { position: sticky; top: 0; background: #fff; padding: 22px 24px 14px; display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); z-index: 1; }
.sheet-head h2 { font-size: 19px; line-height: 1.3; }
.sheet-head .eyebrow { margin-bottom: 4px; }
.x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #f6efea; flex: none; }
.x:hover { background: #efe4dc; }
.sheet-body { padding: 18px 24px 24px; }
.content-text { white-space: pre-wrap; font-size: 14.5px; line-height: 1.7; color: var(--text); background: var(--bg); border: 1px solid #f4e6dc; border-radius: 14px; padding: 16px; }
.content-text a { color: var(--o3); font-weight: 600; text-decoration: underline; word-break: break-all; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--muted); }
.check .box { width: 18px; height: 18px; border-radius: 6px; border: 2px solid #d9cbc0; display: grid; place-items: center; }
.check.on { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.check.on .box { background: var(--green); border-color: var(--green); }
.check.on .box::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- script ---------- */
.rules { padding: 20px 22px; background: linear-gradient(180deg, #fff7f1, #ffefe3); border-color: var(--o-line); }
.rules h3 { font-size: 16px; margin-bottom: 10px; }
.rules ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rules li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.rules li::before { content: "✓"; color: var(--o2); font-weight: 900; }
.stage { margin-top: 14px; overflow: hidden; }
.stage-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-align: left; }
.stage-num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--night); color: #fff; font-family: "Poppins"; font-weight: 800; flex: none; }
.stage-head h3 { font-size: 16px; }
.stage-head p { font-size: 13.5px; color: var(--muted); }
.stage-head .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.stage.open .chev { transform: rotate(180deg); }
.stage-body { display: none; padding: 0 20px 20px; gap: 12px; }
.stage.open .stage-body { display: grid; }
.msg { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--bg); }
.msg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.msg-top b { font-size: 12.5px; font-weight: 800; color: var(--o3); text-transform: uppercase; letter-spacing: .05em; }
.bubble { background: #fff; border: 1px solid #f1e4da; border-radius: 4px 16px 16px 16px; padding: 12px 14px; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; }
.bubble mark { background: #ffe6d4; color: var(--o3); border-radius: 5px; padding: 0 3px; font-weight: 600; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink); }
.copy-btn:hover { border-color: var(--o-line); }
.copy-btn.ok { color: var(--green); border-color: #cfe9da; background: var(--green-soft); }
.copy-btn svg.i { width: 15px; height: 15px; }

/* ---------- plan ---------- */
.plan-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.plan-card { padding: 26px; }
.plan-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.plan-top img { width: 52px; height: 52px; border-radius: 15px; }
.plan-top h2 { font-size: 21px; }
.plan-line { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.plan-line svg.i { color: var(--o2); }
.alert { padding: 14px 16px; border-radius: 14px; background: var(--red-soft); color: var(--red); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.inc { padding: 24px; }
.inc h3 { font-size: 16px; margin-bottom: 12px; }
.inc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inc li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.inc li svg.i { color: var(--green); width: 18px; height: 18px; }

/* ---------- support ---------- */
.support-card { padding: 26px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; background: radial-gradient(120% 140% at 100% 0%, #4b2a17 0%, #1d140e 50%, var(--night) 100%); color: #fff; border: 0; }
.support-card h2 { color: #fff; font-size: 20px; }
.support-card p { color: #e1d4ca; }
.faq { margin-top: 10px; overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 17px 20px; text-align: left; font-weight: 700; font-size: 15px; color: var(--ink); }
.faq-q .chev { color: var(--muted); transition: transform .2s; }
.faq.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }
.faq.open .faq-a { display: block; }

/* ---------- login ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.login-art {
  position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 90% at 50% 0%, #3a2316 0%, #1a130e 45%, var(--night) 100%);
}
.login-art::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,66,.45), rgba(242,84,27,0) 70%); }
.login-art .brand { padding: 0; position: relative; z-index: 1; }
.login-art h2 { color: #fff; font-size: 34px; line-height: 1.15; max-width: 440px; position: relative; z-index: 1; }
.login-art h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-perks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.login-perks li { display: flex; gap: 12px; align-items: center; color: #e6d9cf; font-weight: 500; }
.login-perks li span:first-child { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); flex: none; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-form { width: 100%; max-width: 380px; }
.login-form h1 { font-size: 27px; line-height: 1.2; }
.login-form > p { color: var(--muted); margin: 8px 0 26px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.field input {
  width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid var(--o-line); padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--o2); box-shadow: 0 0 0 4px rgba(242,84,27,.12); }
.form-err { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 13.5px; font-weight: 600; }
.login-form .btn { margin-top: 16px; height: 52px; }
.login-help { margin-top: 22px; font-size: 13.5px; color: var(--muted); text-align: center; }
.login-help a { color: var(--o3); font-weight: 700; }
.lang-mini { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.lang-mini button { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.lang-mini button.on { color: var(--o3); background: var(--o-soft); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); animation: pop .2s; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .view { padding: 18px 16px 40px; }
  .mobile-top {
    display: flex; position: sticky; top: 0; z-index: 25; align-items: center; gap: 10px; height: 60px; padding: 0 16px;
    background: rgba(255, 250, 246, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  }
  .mobile-top img { width: 32px; height: 32px; border-radius: 9px; }
  .mobile-top b { font-family: "Poppins"; font-size: 17px; color: var(--ink); }
  .mobile-top .avatar { margin-left: auto; width: 34px; height: 34px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(13, 11, 9, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--night-line);
  }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--side-muted); font-size: 10.5px; font-weight: 700; }
  .tab svg.i { width: 22px; height: 22px; }
  .tab.active { color: #fff; }
  .tab.active svg.i { color: var(--o1); }
  .page-head h1 { font-size: 24px; }
  .hero { padding: 26px 22px 24px; border-radius: 22px; }
  .hero h1 { font-size: 24px; padding-right: 40px; }
  .hero-logo { width: 64px; height: 64px; right: 18px; bottom: auto; top: 20px; border-radius: 18px; }
  .bonus-grid, .plan-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 38px 1fr; gap: 12px; padding: 18px 16px; }
  .step-num { width: 38px; height: 38px; font-size: 16px; border-radius: 12px; }
  .days { grid-template-columns: 1fr; }
  .day { min-height: 0; }
  .day-head { padding-bottom: 8px; }
  .rest { padding: 4px 6px; text-align: left; }
  .cal-overall { min-width: 0; width: 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 8px; }
  .sheet-wrap { align-items: flex-end; padding: 0; }
  .sheet { max-width: none; border-radius: 24px 24px 0 0; max-height: 92vh; animation: up .25s cubic-bezier(.2,.9,.3,1); }
  .sheet-head { padding: 18px 18px 12px; }
  .sheet-body { padding: 16px 18px calc(24px + env(safe-area-inset-bottom)); }
  .login-page { grid-template-columns: 1fr; }
  .login-art { padding: 28px 22px 30px; }
  .login-art h2 { font-size: 26px; margin-top: 26px; }
  .login-perks { display: none; }
  .login-form-wrap { align-items: flex-start; padding: 30px 22px 40px; }
  .toast { bottom: calc(var(--tabbar-h) + 18px); }
}
@keyframes up { from { transform: translateY(100%); } }

/* =====================================================================
   ViralFit members area — additions on top of the MemberFit area styles
   ===================================================================== */
.side-row .side-logout { flex: 1; justify-content: center; }
.side-logout svg.i { width: 16px; height: 16px; }
.nav-item.is-locked { color: var(--side-muted); }
.nav-item .badge.lock { background: rgba(255,255,255,.06); color: var(--side-muted); padding: 3px 6px; display: inline-flex; }
.nav-item .badge.lock svg.i { width: 13px; height: 13px; }

/* hero */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; position: relative; z-index: 1; }
.chips-row .chip { margin: 0; }
.hero p b { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.hero-ghost { background: rgba(255,255,255,.1); color: #fff; }
.hero-ghost:hover { background: rgba(255,255,255,.16); }

/* module tiles */
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mod-grid.two { grid-template-columns: 1fr 1fr; }
.mod { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.mod:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(120, 50, 10, .14); }
.mod-art { height: 118px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 14px 18px; }
.mod-art .tag { position: absolute; top: 12px; left: 14px; z-index: 1; }
.mod-art .big { font-size: 50px; line-height: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
.mod-art.a1 { background: radial-gradient(110% 120% at 100% 0%, #ffb36b 0%, #f2541b 45%, #a33a09 100%); }
.mod-art.a2 { background: radial-gradient(110% 120% at 100% 0%, #4b2a17 0%, #1d140e 55%, var(--night) 100%); }
.mod-art.a3 { background: radial-gradient(110% 120% at 100% 0%, #ffd29a 0%, #ff8a42 45%, #c2450b 100%); }
.mod-art.a4 { background: radial-gradient(110% 120% at 100% 0%, #b6e3a1 0%, #4e9a52 50%, #1f5a2e 100%); }
.mod-art.a5 { background: radial-gradient(110% 120% at 100% 0%, #ffb36b 0%, #7a2f10 50%, var(--night) 100%); }
.mod-art.a6 { background: radial-gradient(110% 120% at 100% 0%, #3a2316 0%, #1a130e 45%, var(--night) 100%); }
.mod-art.img { padding: 0; height: 150px; background: var(--night); }
.mod-art.img img { width: 100%; height: 100%; object-fit: cover; }
.mod-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mod-body h3 { font-size: 16.5px; }
.mod-body p { color: var(--muted); font-size: 14px; }
.mod-body .open-link, .mod-body .bonus-foot { margin-top: auto; padding-top: 10px; }
.mod.locked .mod-art::after { content: ""; position: absolute; inset: 0; background: rgba(13, 11, 9, .32); }
.mod.locked .mod-art .big, .mod.locked .mod-art img { filter: grayscale(.6); }
.mod-lock { position: absolute; z-index: 1; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12.5px; font-weight: 800; }
.mod-lock svg.i { width: 15px; height: 15px; }
.mod.locked .open-link { color: var(--muted); }

.notice { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-top: 22px; border-color: #f6dfa6; background: #fffaeb; }
.notice > svg.i { margin-left: auto; color: #a07a10; }
.notice-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #f5c242; color: #3d2c00; font-weight: 900; }
.notice b { display: block; color: var(--ink); }
.notice small { color: var(--muted); font-size: 13.5px; }

/* back link + lesson rows */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--o3); margin-bottom: 14px; }
.back-link svg.i { width: 18px; height: 18px; }
.lesson-rows { display: grid; gap: 10px; }
.lesson-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; transition: border-color .15s, transform .15s; }
.lesson-row:hover { border-color: var(--o-line); transform: translateY(-1px); }
.lesson-row > svg.i { margin-left: auto; color: var(--o2); }
.lesson-n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--o-soft); color: var(--o3); font-family: "Poppins"; font-weight: 800; }

/* link cards */
.link-list { display: grid; gap: 10px; }
.link-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; transition: border-color .15s; }
a.link-row:hover { border-color: var(--o-line); }
.link-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--o-soft); color: var(--o2); }
.link-txt { min-width: 0; flex: 1; }
.link-txt b { display: block; color: var(--ink); font-size: 15px; }
.link-txt small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.link-row .btn svg.i { width: 16px; height: 16px; }
.link-row.soon { opacity: .72; }
.link-row.soon .link-ic { background: #f4efeb; color: var(--muted); }

/* locked */
.locked-panel { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: linear-gradient(180deg, #fff7f1, #fff); border-color: var(--o-line); }
.locked-panel h3 { font-size: 17px; }
.locked-panel p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.locked-panel a { color: var(--o3); font-weight: 700; }
.lock-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--ink); color: #fff; }
.pack-banners { display: grid; gap: 12px; margin-top: 18px; }
.pack-banners img, .pack-hero img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.locked-preview img { filter: grayscale(.5); opacity: .7; }
.pack-hero { margin-bottom: 6px; }
.tip { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--o-soft); border: 1px solid var(--o-line); font-size: 14px; color: var(--text); }
.tip svg.i { color: var(--o2); flex: none; margin-top: 1px; }
.tip a { color: var(--o3); font-weight: 700; }
.week-banner { width: 100%; max-height: 150px; object-fit: cover; border-radius: 16px; margin: 0 0 14px; }

/* app */
.sub-mini { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.sub-mini svg.i { width: 18px; height: 18px; color: var(--o2); }
.sub-mini b { color: var(--ink); }
.link-btn { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.app-shots { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.app-shots .shot { width: 30%; max-width: 170px; aspect-ratio: 1206/2622; border-radius: 22px; padding: 4px; background: #111; box-shadow: 0 18px 36px -14px rgba(0,0,0,.45); }
.app-shots .shot:nth-child(2) { transform: translateY(-12px); }
.app-shots .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 18px; }

/* account sheet */
.acct-block { padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.acct-block h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-weight: 600; color: var(--ink); }
.acct-row .chip svg.i { width: 14px; height: 14px; }
.acct-plan { font-size: 14.5px; color: var(--text); }
.acct-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.acct-link svg.i { width: 15px; height: 15px; }
.acct-link:hover { color: var(--ink); }
.acct-gap { margin-top: 10px; }
.acct-cancel { display: block; margin: 18px auto 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.acct-cancel:hover { color: var(--red); }
.acct-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.acct-back svg.i { width: 16px; height: 16px; }
.acct-offer { text-align: center; padding: 6px 0 4px; }
.acct-offer h2 { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.offer-ic { display: block; font-size: 42px; margin-bottom: 10px; }
.acct-lead { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.acct-lead b { color: var(--ink); }
.acct-no { display: block; margin: 14px auto 0; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.acct-danger { background: var(--red); color: #fff; }
.acct-err { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 13.5px; font-weight: 600; }

/* ViralFit lesson content (HTML copied from the old area) */
.lesson {
  --text-primary: var(--ink); --text-secondary: var(--text); --text-muted: var(--muted); --orange: var(--o2);
  --kb-amber: var(--o2); --kb-orange: var(--o2); --border: var(--line); --bg-card: #fff; --bg-hover: var(--o-soft);
  --radius: 16px; --radius-sm: 12px;
  color: var(--text); font-size: 15.5px; line-height: 1.75;
}
.lesson-content { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; }
.lesson h2 { font-size: 19px; margin: 26px 0 8px; color: var(--ink); }
.lesson h2:first-child, .lesson-content > :first-child { margin-top: 0; }
.lesson h3 { font-size: 16px; margin: 18px 0 6px; }
.lesson p { margin: 0 0 12px; }
.lesson ul, .lesson ol { margin: 0 0 14px; padding-left: 22px; }
.lesson li { margin: 4px 0; }
.lesson strong { color: var(--ink); }
.lesson a { color: var(--o3); font-weight: 600; }
.lesson iframe { border-radius: 14px; }
.lesson .tip-box { background: var(--o-soft); border: 1px solid var(--o-line); border-left: 4px solid var(--o2); border-radius: 12px; padding: 14px 16px; margin: 18px 0 0; font-size: 14.5px; }
.lesson .tip-box strong { color: var(--o3); }
.lesson .info-box { background: #fffaeb; border: 1px solid #f6dfa6; border-left: 4px solid #f5c242; border-radius: 12px; padding: 14px 16px; margin: 0 0 22px; font-size: 14.5px; }
.lesson .section-heading { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.lesson .pack-sep { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; }
.lesson .pack-sep-line { flex: 1; height: 1px; background: var(--line); }
.lesson .pack-sep-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--o3); white-space: nowrap; }
.lesson .link-grid { display: grid; gap: 10px; margin-bottom: 8px; }
.lesson .link-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: border-color .15s; }
.lesson .link-card:hover { border-color: var(--o-line); }
.lesson .link-card-icon { width: 42px; height: 42px; border-radius: 12px; flex: none; background: var(--o-soft); display: grid; place-items: center; }
.lesson .link-card-icon::before { content: "🎨"; font-size: 20px; }
.lesson .link-card-icon.drive::before { content: "📁"; }
.lesson .link-card-info { flex: 1; min-width: 0; line-height: 1.35; }
.lesson .link-card-label { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--o2); }
.lesson .link-card-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.lesson .link-card-sub { font-size: 13px; color: var(--muted); }
.lesson .link-card-btn { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--o-soft); color: var(--o3); font-weight: 700; font-size: 13.5px; }
.lesson .lesson-list { display: grid; gap: 10px; }
.lesson .lesson-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); line-height: 1.4; }
.lesson .lesson-item:hover { border-color: var(--o-line); }
.lesson .lesson-item::after { content: "→"; margin-left: auto; color: var(--o2); font-weight: 800; }
.lesson .lesson-num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--o-soft); color: var(--o3); font-family: "Poppins"; font-weight: 800; }
.lesson .lesson-item-title { font-weight: 700; color: var(--ink); }
.lesson .lesson-item-desc { font-size: 13.5px; color: var(--muted); }
.lesson .reco-accordion { display: grid; gap: 12px; margin-bottom: 22px; }
.lesson .reco-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.lesson .reco-card[open] { border-color: var(--o-line); }
.lesson .reco-card summary { cursor: pointer; list-style: none; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; color: var(--ink); }
.lesson .reco-card summary::-webkit-details-marker { display: none; }
.lesson .reco-card summary::after { content: "▾"; color: var(--o2); transition: transform .2s; }
.lesson .reco-card[open] summary::after { transform: rotate(180deg); }
.lesson .reco-card-body { padding: 0 20px 20px; font-size: 14.5px; }
.lesson .reco-card-body p.reco-label { margin: 20px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.lesson .reco-card-body p.reco-label:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.lesson .faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 10px; }
.lesson .faq-q { display: block; padding: 0; font-weight: 700; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.lesson .faq-a { display: block; padding: 0; color: var(--muted); font-size: 14.5px; }

@media (max-width: 1100px) {
  .mod-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .mod-grid, .mod-grid.two { grid-template-columns: 1fr; }
  .lesson-content { padding: 20px 18px; }
  .link-row { flex-wrap: wrap; }
  .link-row .btn { width: 100%; }
  .lesson .link-card { flex-wrap: wrap; }
  .lesson .link-card-btn { width: 100%; justify-content: center; }
  .locked-panel { flex-direction: column; }
}

/* discreet MemberFit links (the app has its own area: the web dashboard) */
.nav-ext { display: flex; align-items: center; gap: 10px; margin: 18px 6px 0; padding: 9px 10px; border-radius: 12px; border: 1px dashed var(--night-line); color: var(--side-muted); font-size: 13px; font-weight: 600; }
.nav-ext:hover { color: var(--side-text); background: rgba(255,255,255,.04); }
.nav-ext svg.i { width: 16px; height: 16px; }
.nav-ext svg.i:last-child { margin-left: auto; }
.app-link { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--line); color: var(--muted); }
.app-link:hover { border-color: var(--o-line); }
.app-link img { width: 34px; height: 34px; border-radius: 10px; }
.app-link b { display: block; color: var(--ink); font-size: 14.5px; }
.app-link small { display: block; font-size: 12.5px; }
.app-link > svg.i { margin-left: auto; width: 18px; height: 18px; }
