/* ------------------------------------------------------------------
   Lumitra phone app – styles
------------------------------------------------------------------- */
:root {
  --bell: #00549A;
  --primary: #0F3DB5;
  --primary-2: #1D4ED8;
  --navy: #14213D;
  --ink: #0F1A2E;
  --ink-2: #344054;
  --muted: #667085;
  --line: #E6EBF2;
  --bg: #F5F7FB;
  --green: #1A9E5B;
  --teal: #0E9384;
  --orange: #E0701B;
  --red: #E5484D;
  --purple: #6D4AFF;
  --app-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
}

/* ---------- iPhone frame ---------- */
.phone {
  position: relative; width: 421px; height: 880px; border-radius: 68px; padding: 14px;
  background: linear-gradient(145deg, #2a2b30, #111114 40%, #26272c);
  box-shadow: 0 0 0 1.5px #3a3b40, 0 0 0 4px #0c0c0e, 0 50px 90px -20px rgba(15, 26, 46, .45), 0 30px 50px -30px rgba(15, 26, 46, .5), inset 0 0 3px rgba(255,255,255,.15);
  flex-shrink: 0;
}
.phone .btn-side { position: absolute; background: #1c1d21; border-radius: 3px; box-shadow: inset 0 0 1px rgba(255,255,255,.2); }
.phone .btn-action { left: -5px; top: 150px; width: 5px; height: 32px; }
.phone .btn-vol-up { left: -5px; top: 210px; width: 5px; height: 62px; }
.phone .btn-vol-dn { left: -5px; top: 286px; width: 5px; height: 62px; }
.phone .btn-power { right: -5px; top: 240px; width: 5px; height: 100px; }
.screen-area {
  position: relative; width: 393px; height: 852px; border-radius: 55px; overflow: hidden; overflow: clip; background: var(--bg);
  font-family: var(--app-font); color: var(--ink); -webkit-font-smoothing: antialiased; isolation: isolate;
  clip-path: inset(0 round 55px);
}
.screen.push-out, .screen.pop-out, .screen.fade-out { pointer-events: none; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; border-radius: 20px; background: #000; z-index: 90; }
.island::after { content: ''; position: absolute; right: 22px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a55, #0a0f1a 60%); }
.statusbar { position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 4px 30px 0 46px; z-index: 80; font-weight: 600; font-size: 16.5px; letter-spacing: -.2px; pointer-events: none; transition: color .3s; }
.statusbar.light { color: #fff; }
.statusbar .sb-icons { display: flex; gap: 6px; align-items: center; }
.home-indicator { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 139px; height: 5px; border-radius: 3px; background: #0b0b0c; z-index: 95; pointer-events: none; transition: background .3s; }
.home-indicator.light { background: rgba(255,255,255,.85); }

/* ---------- Screens ---------- */
#screens { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding-top: 54px; background: var(--bg); scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen:not(.no-pad)::before { content: ''; display: block; position: sticky; top: -54px; height: 54px; margin-top: -54px; background: inherit; z-index: 60; }
.screen.white { background: #fff; }
.screen.dark { background: #0B1530; color: #fff; }
.screen.has-tabs { padding-bottom: 96px; }
.screen.no-pad { padding-top: 0; }
.screen.push-in { animation: pushIn .38s cubic-bezier(.2, .8, .2, 1) both; z-index: 2; }
.screen.push-out { animation: pushOut .38s cubic-bezier(.2, .8, .2, 1) both; z-index: 1; }
.screen.pop-in { animation: popIn .38s cubic-bezier(.2, .8, .2, 1) both; z-index: 1; }
.screen.pop-out { animation: popOut .38s cubic-bezier(.2, .8, .2, 1) both; z-index: 2; }
.screen.fade-in { animation: fadeIn .3s ease both; z-index: 2; }
.screen.fade-out { animation: fadeOut .3s ease both; z-index: 1; }
.screen.up-in { animation: upIn .42s cubic-bezier(.2, .8, .2, 1) both; z-index: 2; }
@keyframes pushIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pushOut { to { transform: translateX(-28%); filter: brightness(.92); } }
@keyframes popIn { from { transform: translateX(-28%); filter: brightness(.92); } to { transform: none; } }
@keyframes popOut { to { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes upIn { from { transform: translateY(100%); } to { transform: none; } }

.px { padding-left: 20px; padding-right: 20px; }
.appbar { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 16px; position: relative; }
.appbar .ab-left, .appbar .ab-right { width: 44px; display: flex; align-items: center; }
.appbar .ab-right { justify-content: flex-end; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); background: transparent; border: 0; cursor: pointer; position: relative; }
.iconbtn:active { background: rgba(15, 26, 46, .06); }
.iconbtn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }
.brand { display: flex; align-items: center; gap: 11px; font-family: Lato, var(--app-font); }
.brand .b-bell { color: var(--bell); font-weight: 900; font-size: 26px; letter-spacing: -1px; line-height: 1; }
.brand .b-div { width: 1.5px; height: 24px; background: var(--bell); opacity: .55; }
.brand .b-lum { color: #1C2B4A; font-weight: 400; font-size: 21px; letter-spacing: .1px; line-height: 1; }
.brand.lg .b-bell { font-size: 44px; } .brand.lg .b-lum { font-size: 36px; } .brand.lg .b-div { height: 42px; width: 2px; } .brand.lg { gap: 16px; }
.brand.light .b-bell, .brand.light .b-lum { color: #fff; } .brand.light .b-div { background: #fff; }

h1, h2, h3, h4 { margin: 0; }
.h-xl { font-size: 28px; font-weight: 750; letter-spacing: -.6px; line-height: 1.15; }
.h-lg { font-size: 21px; font-weight: 700; letter-spacing: -.3px; }
.h-md { font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
.h-sm { font-size: 15px; font-weight: 650; }
.sub { color: var(--muted); font-size: 14px; line-height: 1.4; }
.tiny { font-size: 12px; color: var(--muted); }
.section-title { font-size: 15.5px; font-weight: 700; margin: 22px 20px 10px; display: flex; justify-content: space-between; align-items: center; }
.section-title a { font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.card.tap { cursor: pointer; transition: transform .12s; }
.card.tap:active { transform: scale(.985); }
.mx { margin-left: 20px; margin-right: 20px; }
.stack > * + * { margin-top: 10px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 13px; border: 0; font: 600 16px var(--app-font); cursor: pointer; width: 100%; transition: transform .1s, filter .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(15, 61, 181, .55); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: #EEF2FA; color: var(--primary); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; }
.btn-sm { height: 38px; font-size: 14px; border-radius: 10px; width: auto; padding: 0 14px; }
.link { color: var(--primary); font-weight: 600; cursor: pointer; }

/* ---------- Tab bar ---------- */
#tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 86px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 9px 12px 0; z-index: 60; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
#tabbar.hidden { transform: translateY(110%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s .35s; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 550; color: #7A8499; cursor: pointer; width: 70px; background: none; border: 0; font-family: var(--app-font); }
.tab.active { color: var(--primary); }
.tab.active .ic { stroke-width: 2.3; }

/* ---------- Home ---------- */
.welcome { padding: 6px 20px 0; }
.welcome h2 { font-size: 21px; font-weight: 700; letter-spacing: -.3px; }
.hc-card { margin: 16px 20px 0; background: linear-gradient(180deg, #F4F8FF, #EAF1FF); border: 1px solid #D8E4FB; border-radius: 18px; padding: 18px; position: relative; overflow: hidden; }
.hc-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(29,78,216,.12), transparent 70%); }
.hc-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hc-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: 0 2px 6px rgba(15,61,181,.12); }
.pro-banner { margin: 12px 20px 0; border-radius: 14px; padding: 11px 14px; background: linear-gradient(90deg, #0B2A6F, #1D4ED8); color: #fff; display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.pro-banner b { font-weight: 700; }
.pro-pill { background: rgba(255,255,255,.18); border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.prog-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.prog-row .lbl { font-weight: 600; font-size: 15px; }
.ring-sm { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--green); color: var(--green); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.tone-green { color: var(--green); } .tone-orange { color: var(--orange); } .tone-red { color: var(--red); } .tone-muted { color: var(--muted); }

.rec { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid; cursor: pointer; transition: transform .12s; position: relative; }
.rec:active { transform: scale(.985); }
.rec .rec-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255,255,255,.7); }
.rec .rec-body { flex: 1; min-width: 0; }
.rec .rec-title { font-weight: 650; font-size: 14.5px; line-height: 1.25; }
.rec .rec-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.rec .rec-partner { position: absolute; top: 9px; right: 12px; opacity: .9; }
.rec .chev { color: #98A2B3; }
.sponsor { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: #98A2B3; font-weight: 700; }

.bar { height: 8px; border-radius: 99px; background: #E9EDF5; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--primary-2); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.coach-entry { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #0B1530; color: #fff; cursor: pointer; margin: 0 20px; }
.coach-entry .ce-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #34D399, #3B82F6); }

/* ---------- Onboarding ---------- */
.splash { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(120% 80% at 50% 0%, #1D4ED8 0%, #0B2A6F 55%, #07163D 100%); color: #fff; }
.splash .brand { animation: fadeUp .8s .15s both; }
.splash .powered { position: absolute; bottom: 60px; font-size: 13px; opacity: .75; animation: fadeIn 1s .6s both; }
.splash .powered b { font-weight: 800; letter-spacing: -.3px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.onb { height: 100%; display: flex; flex-direction: column; background: #fff; }
.onb-art { height: 400px; margin: 10px 16px 0; border-radius: 28px; position: relative; overflow: hidden; display: grid; place-items: center; }
.onb-body { padding: 26px 26px 0; flex: 1; }
.onb-body h1 { font-size: 27px; font-weight: 750; letter-spacing: -.6px; line-height: 1.15; }
.onb-body p { color: var(--muted); font-size: 15.5px; line-height: 1.5; margin: 12px 0 0; }
.onb-foot { padding: 0 24px 44px; display: flex; flex-direction: column; gap: 16px; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: #D0D5DD; transition: all .3s; }
.dots i.on { width: 22px; background: var(--primary); }
.skip { position: absolute; top: 62px; right: 20px; z-index: 5; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }

.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-row:last-child { border-bottom: 0; }
.cbox { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #C5CCD8; display: grid; place-items: center; flex-shrink: 0; color: #fff; transition: all .15s; margin-top: 1px; }
.cbox.on { background: var(--primary); border-color: var(--primary); }
.cbox.locked { background: #98A2B3; border-color: #98A2B3; }
.toggle { width: 50px; height: 30px; border-radius: 99px; background: #D0D5DD; position: relative; transition: background .2s; flex-shrink: 0; cursor: pointer; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.toggle.on { background: #34C759; }
.toggle.on::after { transform: translateX(20px); }
.toggle.locked { opacity: .6; cursor: not-allowed; }

/* ---------- Scan ---------- */
.scan-wrap { display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.scan-ring { position: relative; width: 300px; height: 300px; margin-top: 18px; }
.scan-ring svg.ticks { position: absolute; inset: 0; }
.scan-face { position: absolute; inset: 30px; border-radius: 50%; overflow: hidden; background: #E8EEF7; }
.scan-face video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.scan-face .mesh { position: absolute; inset: 0; }
.scan-face .sweep { position: absolute; left: 0; right: 0; height: 60px; background: linear-gradient(180deg, transparent, rgba(45, 212, 191, .28), transparent); animation: sweep 2.4s ease-in-out infinite; }
@keyframes sweep { 0% { top: -60px; } 100% { top: 100%; } }
.scan-time { font-size: 44px; font-weight: 750; letter-spacing: -1px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.scan-status { display: flex; align-items: center; gap: 8px; max-width: calc(100% - 40px); box-sizing: border-box; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--teal); background: #E7F8F5; border-radius: 99px; padding: 7px 14px; margin-top: 14px; min-height: 18px; transition: all .3s; }
.scan-status .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pd 1.2s infinite; }
@keyframes pd { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.live-row { display: flex; gap: 10px; margin-top: 14px; }
.live-chip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; min-width: 96px; text-align: center; transition: opacity .4s; }
.live-chip .v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-chip .l { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-top: 1px; }
.ppg { width: 300px; height: 44px; margin-top: 10px; }
.live-badge { display: flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; max-width: calc(100% - 40px); margin: 2px auto 10px; padding: 5px 12px; border-radius: 99px; background: #E7F8F5; color: var(--teal); font-size: 12px; font-weight: 700; text-align: center; }
.live-badge.warn { background: #FFF3E6; color: var(--orange); }
.trust { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--ink-2); font-size: 13px; margin-top: 16px; }
.trust span { display: flex; align-items: center; gap: 5px; }
.trust i { width: 3px; height: 3px; border-radius: 50%; background: #98A2B3; }

.tips { display: flex; flex-direction: column; gap: 10px; }
.tip { display: flex; gap: 14px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.tip .t-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #EEF4FF; color: var(--primary-2); flex-shrink: 0; }

.proc { display: flex; flex-direction: column; align-items: center; padding: 40px 28px 0; }
.proc-orb { width: 150px; height: 150px; border-radius: 50%; position: relative; display: grid; place-items: center; }
.proc-orb::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #2DD4BF, #3B82F6, #8B5CF6, #2DD4BF); animation: spin 2.2s linear infinite; filter: blur(1px); }
.proc-orb::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.proc-orb > * { position: relative; z-index: 1; color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.proc-steps { width: 100%; margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.proc-step { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #98A2B3; transition: color .3s; }
.proc-step .ps-i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #D0D5DD; display: grid; place-items: center; color: #fff; transition: all .3s; flex-shrink: 0; }
.proc-step.active { color: var(--ink); font-weight: 600; }
.proc-step.active .ps-i { border-color: var(--primary-2); border-top-color: transparent; animation: spin .8s linear infinite; }
.proc-step.done { color: var(--ink-2); }
.proc-step.done .ps-i { background: var(--green); border-color: var(--green); }

/* ---------- Results ---------- */
.gauge-wrap { position: relative; width: 230px; height: 200px; margin: 4px auto 0; }
.gauge-wrap .g-center { position: absolute; left: 0; right: 0; top: 64px; text-align: center; }
.g-score { font-size: 54px; font-weight: 750; letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums; }
.g-score small { font-size: 22px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.g-label { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 16px; margin-top: 6px; }
.seg-tabs { display: flex; gap: 8px; justify-content: center; margin: 4px 20px 14px; }
.seg-tab { padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: 600 13.5px var(--app-font); color: var(--ink-2); cursor: pointer; }
.seg-tab.on { border-color: var(--primary-2); color: var(--primary); background: #EEF4FF; }
.metric { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: transform .12s; animation: fadeUp .4s both; }
.metric:active { transform: scale(.985); }
.metric .m-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.metric .m-name { flex: 1; font-size: 14.5px; font-weight: 550; }
.metric .m-val { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.metric .m-val small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.pill.good { background: #E7F7EE; color: var(--green); }
.pill.med { background: #FFF3E6; color: var(--orange); }
.pill.high { background: #FFECEC; color: var(--red); }
.pill.beta { background: #F0EBFF; color: var(--purple); }
.disclaimer { display: flex; align-items: center; gap: 6px; justify-content: center; color: var(--muted); font-size: 12.5px; margin: 14px 20px 0; text-align: center; }
.points-toast { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 70; }

/* ---------- AI plan ---------- */
.ai-hero { margin: 4px 16px 0; border-radius: 22px; background: radial-gradient(120% 90% at 0% 0%, #1E3A8A 0%, #0B1530 60%); color: #fff; padding: 18px; position: relative; overflow: hidden; }
.ai-hero .ai-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #7DD3FC; }
.ai-hero .ai-line { font-size: 16.5px; font-weight: 600; line-height: 1.35; margin-top: 8px; }
.ai-hero .ai-line b { color: #7DD3FC; font-weight: 700; }
.flag { display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px; border-radius: 13px; background: #fff; border: 1px solid var(--line); animation: fadeUp .4s both; }
.flag .f-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.flag .f-ico.high { background: var(--red); } .flag .f-ico.med { background: #F79009; } .flag .f-ico.good { background: var(--green); }
.flag .f-t { font-weight: 650; font-size: 14px; line-height: 1.25; } .flag .f-n { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.goals-card { margin: 12px 16px 0; border-radius: 20px; background: #1B2340; color: #fff; padding: 16px; }
.goals-card .gc-h { display: inline-block; background: #7FCBB0; color: #0B1530; font-weight: 700; border-radius: 99px; padding: 5px 14px; font-size: 13.5px; margin-bottom: 10px; }
.goal { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #121935; margin-top: 7px; font-size: 13.5px; line-height: 1.35; }
.goal .ic { color: #7FCBB0; flex-shrink: 0; margin-top: 1px; }
.meal-tabs { display: flex; gap: 6px; margin: 0 16px; background: #EAEFF7; padding: 4px; border-radius: 12px; }
.meal-tab { flex: 1; text-align: center; padding: 8px 0; border-radius: 9px; font: 600 12.5px var(--app-font); color: var(--ink-2); cursor: pointer; background: none; border: 0; }
.meal-tab.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.meal-card { margin: 10px 16px 0; display: flex; gap: 14px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.meal-img { width: 96px; height: 96px; border-radius: 14px; display: grid; place-items: center; font-size: 50px; flex-shrink: 0; }
.meal-card ul { margin: 0; padding-left: 16px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.supps { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
.supps::-webkit-scrollbar { display: none; }
.supp { flex: 0 0 128px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.supp .s-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #EAFBF8; color: var(--teal); margin-bottom: 8px; }
.supp .s-n { font-weight: 700; font-size: 14px; } .supp .s-w { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.coupon { margin: 0 16px; border: 2px dashed #7FCBB0; border-radius: 18px; background: linear-gradient(135deg, #F1FBF5, #E4F6EC); padding: 16px; position: relative; overflow: hidden; cursor: pointer; }
.coupon .cp-val { font-size: 34px; font-weight: 800; color: #1A7F4B; letter-spacing: -1px; line-height: 1; }
.coupon .cp-t { font-weight: 700; font-size: 15px; }
.coupon .cp-s { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.coupon .cp-art { position: absolute; right: 12px; bottom: 10px; font-size: 44px; opacity: .95; }
.coupon.clipped { border-style: solid; border-color: var(--green); }

/* ---------- History ---------- */
.chart-card { margin: 0 20px; padding: 16px 12px 10px; }
.range-tabs { display: flex; gap: 4px; background: #EEF1F6; border-radius: 10px; padding: 3px; }
.range-tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: 600 12.5px var(--app-font); color: var(--muted); cursor: pointer; }
.range-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: 600 13px var(--app-font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-row:last-child { border-bottom: 0; }

/* ---------- Rewards ---------- */
.points-card { margin: 6px 20px 0; border-radius: 22px; padding: 20px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #3B82F6 0%, #1D4ED8 35%, #0B2A6F 100%); position: relative; overflow: hidden; }
.points-card::after { content: ''; position: absolute; right: -30px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 30px solid rgba(255,255,255,.07); }
.points-card .pc-n { font-size: 38px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.earn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.earn .e-pts { margin-left: auto; font-weight: 700; color: var(--green); font-size: 14px; }
.offer-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; transition: transform .12s; animation: fadeUp .35s both; }
.offer-card:active { transform: scale(.985); }
.offer-card .oc-top { padding: 14px 16px 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--line); }
.offer-card .oc-body { padding: 12px 16px 14px; display: flex; gap: 12px; align-items: center; }
.offer-card .oc-val { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.clipped-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--green); background: #E7F7EE; border-radius: 99px; padding: 3px 8px; }
.empty { text-align: center; padding: 30px 30px; color: var(--muted); font-size: 14px; }

/* ---------- Profile ---------- */
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 24px; flex-shrink: 0; }
.set-group { margin: 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.set-row:last-child { border-bottom: 0; }
.set-row .sr-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.set-row .sr-main { flex: 1; min-width: 0; }
.set-row .sr-sub { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.set-row .sr-val { color: var(--muted); font-size: 14px; }

/* ---------- Coach chat ---------- */
.chat { display: flex; flex-direction: column; height: 100%; background: #F5F7FB; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 56px; border-bottom: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.chat-av { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #34D399, #3B82F6); color: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.chat-body::-webkit-scrollbar { display: none; }
.msg { max-width: 84%; padding: 10px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; animation: fadeUp .25s both; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--primary); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg ul { margin: 6px 0 0; padding-left: 18px; } .msg li { margin: 2px 0; }
.msg .act-card { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #F8FAFD; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #98A2B3; animation: ty 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ty { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }
.chat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px; scrollbar-width: none; flex-shrink: 0; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips .chip { background: #fff; border-color: #D3E2FF; color: var(--primary); }
.chat-input { display: flex; gap: 8px; padding: 8px 12px 34px; background: #fff; border-top: 1px solid var(--line); flex-shrink: 0; }
.chat-input input { flex: 1; height: 42px; border-radius: 21px; border: 1px solid var(--line); padding: 0 16px; font: 15px var(--app-font); outline: none; background: #F5F7FB; }
.chat-input input:focus { border-color: #9DB8F5; background: #fff; }
.chat-input button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* ---------- Sheet / toast ---------- */
#sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 30, .45); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .3s; }
#sheet-backdrop.on { opacity: 1; pointer-events: auto; }
#sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; background: #fff; border-radius: 28px 28px 0 0; z-index: 101; transform: translateY(105%); transition: transform .38s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; padding: 10px 20px 40px; scrollbar-width: none; }
#sheet::-webkit-scrollbar { display: none; }
#sheet.on { transform: none; }
.grabber { width: 38px; height: 5px; border-radius: 3px; background: #D0D5DD; margin: 0 auto 14px; }
#toast { position: absolute; left: 50%; top: calc(var(--sat, 12px) + 46px); transform: translate(-50%, -20px); background: rgba(15, 26, 46, .92); color: #fff; padding: 10px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 600; z-index: 120; opacity: 0; transition: all .35s cubic-bezier(.2, .8, .2, 1); display: flex; align-items: center; gap: 8px; white-space: nowrap; pointer-events: none; backdrop-filter: blur(10px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.why-box { background: #F5F8FF; border: 1px solid #DCE6FB; border-radius: 14px; padding: 12px 14px; margin-top: 14px; }
.why-box .wb-h { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--primary); }
.why-box ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.barcode { display: flex; gap: 2px; height: 64px; justify-content: center; margin: 14px 0 6px; }
.barcode i { background: #111; display: block; }
.notif { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif .n-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.plogo { display: inline-flex; align-items: center; gap: 4px; line-height: 1; white-space: nowrap; font-family: Lato, var(--app-font); }
.plogo-badge { display: inline-grid; place-items: center; color: #fff; border-radius: 3px; font-weight: 900; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 75; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 8px; height: 12px; border-radius: 2px; animation: fall 1.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(880px) rotate(540deg); opacity: .6; } }
