/* ===== Nethra Nutrition Centre — design tokens ===== */
:root {
  --green-900: #063d1d;
  --green-800: #0a4d25;
  --green-700: #0d5a2c;
  --green-600: #137a36;
  --green-500: #1f9a43;
  --green-400: #3fb85d;
  --green-100: #e3f3e6;
  --green-50: #f1f8f1;
  --gold-700: #a86f06;
  --gold-600: #c98d0c;
  --gold-500: #e0a91b;
  --gold-400: #f2c94c;
  --gold-100: #fbf1d3;
  --bg: #f5f7f0;
  --surface: #ffffff;
  --surface-2: #f0f3ec;
  --text: #13261a;
  --text-2: #4b5e51;
  --text-3: #85948a;
  --line: #e2e8df;
  --danger: #d63c3c;
  --info: #2b7bb9;
  --grad-green: linear-gradient(135deg, #0a4d25 0%, #137a36 55%, #2ea24f 100%);
  --grad-gold: linear-gradient(135deg, #a86f06 0%, #e0a91b 50%, #f6d77a 100%);
  --shadow-sm: 0 1px 2px rgba(10, 40, 20, .06), 0 1px 3px rgba(10, 40, 20, .08);
  --shadow: 0 6px 20px rgba(10, 60, 30, .10);
  --shadow-lg: 0 18px 40px rgba(10, 60, 30, .18);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tab-h: 68px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Montserrat', var(--font);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.gold-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hidden { display: none !important; }

/* ===== Splash ===== */
/* Splash: 2500 ms intro, then a circular wipe into the app (timeline in ms noted per step) */
.splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f1f8f1 55%, #dcefe0 100%);
  clip-path: circle(150% at 50% 42%);
  transition: clip-path .65s cubic-bezier(.7, 0, .3, 1), opacity .65s ease;
}
.splash.out { clip-path: circle(0% at 50% 42%); opacity: 0; pointer-events: none; }
.splash-glow { /* 0–2500: soft gold halo breathing behind the mark */
  position: absolute; left: 50%; top: 42%; width: 320px; height: 320px; margin: -160px 0 0 -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 201, 76, .35) 0%, rgba(242, 201, 76, 0) 65%);
  animation: glow 2.5s ease-out both;
}
.splash-mark { position: relative; width: 150px; height: 150px; }
.splash-ring { position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); transform: rotate(-90deg); overflow: visible; }
.splash-ring circle { /* 0–950: ring draws itself, then slowly turns */
  fill: none; stroke: url(#spRing); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 591; stroke-dashoffset: 0;
  animation: ringDraw .95s cubic-bezier(.6, 0, .2, 1) both, ringSpin 2.5s linear both;
  transform-origin: 100px 100px;
}
.splash-logo { /* 180–1050: emblem pops in with a twist */
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 14px 34px rgba(13, 90, 44, .22);
  animation: logoIn .85s cubic-bezier(.2, 1.35, .4, 1) .18s both;
}
.splash-logo img { width: 100%; height: 100%; animation: sprout .9s cubic-bezier(.3, .8, .3, 1) .3s both; }
.splash-logo::after { /* 1450–2050: light sweep across the emblem */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .85) 48%, rgba(255, 246, 214, .6) 52%, transparent 70%);
  transform: translateX(-130%); animation: shine .6s ease-in-out 1.45s both;
}
.splash-name { display: flex; margin-top: 26px; font: 800 38px var(--font-head); color: var(--green-700); letter-spacing: .06em; perspective: 400px; }
.splash-name span { /* 1000–1550: letters rise one after another */
  display: inline-block; animation: letterUp .55s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(1000ms + var(--i) * 85ms);
}
.splash-name span:last-child { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash-sub { display: flex; align-items: center; gap: 10px; margin-top: 6px; font: 600 11.5px var(--font-head); color: var(--green-800); }
.splash-sub span { letter-spacing: .32em; margin-right: -.32em; animation: subIn .65s ease-out 1.5s both; }
.splash-sub i { /* 1550–2050: gold rules extend outwards */
  display: block; width: 34px; height: 2px; border-radius: 2px; background: var(--grad-gold);
  animation: lineGrow .5s ease-out 1.55s both;
}
.splash-sub i:first-child { transform-origin: right; }
.splash-sub i:last-child { transform-origin: left; }
.splash-bar { /* 0–2400: progress fills, ending just before the wipe */
  position: absolute; left: 50%; bottom: calc(14% + var(--safe-b)); width: 120px; margin-left: -60px; height: 4px; border-radius: 99px;
  background: rgba(19, 122, 54, .12); overflow: hidden;
}
.splash-bar i { display: block; height: 100%; background: var(--grad-gold); transform-origin: left; animation: barFill 2.4s cubic-bezier(.4, .1, .3, 1) both; }
.splash-leaves i { /* 350–2500: little leaves float up and fade */
  position: absolute; left: 50%; top: 58%; width: 14px; height: 14px; border-radius: 0 100% 0 100%; opacity: 0;
  background: linear-gradient(135deg, #3fb85d, #137a36);
  animation: leafUp 1.9s ease-out both;
}
.splash-leaves i:nth-child(even) { background: var(--grad-gold); width: 10px; height: 10px; }
.splash-leaves i:nth-child(1) { --x: -120px; --r: -40deg; animation-delay: .35s; }
.splash-leaves i:nth-child(2) { --x: 110px; --r: 60deg; animation-delay: .55s; }
.splash-leaves i:nth-child(3) { --x: -70px; --r: 90deg; animation-delay: .75s; }
.splash-leaves i:nth-child(4) { --x: 140px; --r: -70deg; animation-delay: .88s; }
.splash-leaves i:nth-child(5) { --x: -150px; --r: 120deg; animation-delay: 1.05s; }
.splash-leaves i:nth-child(6) { --x: 60px; --r: -110deg; animation-delay: 1.25s; }
.splash-leaves i:nth-child(7) { --x: -30px; --r: 30deg; animation-delay: 1.45s; }
.splash-leaves i:nth-child(8) { --x: 95px; --r: 150deg; animation-delay: 1.65s; }
@keyframes glow { from { transform: scale(.4); opacity: 0; } 55% { transform: scale(1.1); opacity: 1; } to { transform: scale(1); opacity: .8; } }
@keyframes ringDraw { from { stroke-dashoffset: 591; } }
@keyframes ringSpin { from { rotate: -40deg; } }
@keyframes logoIn { from { transform: scale(.25) rotate(-140deg); opacity: 0; } }
@keyframes sprout { from { clip-path: circle(0% at 50% 85%); transform: translateY(14px) scale(1.1); } to { clip-path: circle(75% at 50% 50%); } }
@keyframes shine { to { transform: translateX(130%); } }
@keyframes letterUp { from { opacity: 0; transform: translateY(26px) rotateX(85deg); } }
@keyframes subIn { from { opacity: 0; letter-spacing: .8em; } }
@keyframes lineGrow { from { transform: scaleX(0); } }
@keyframes barFill { from { transform: scaleX(0); } }
@keyframes leafUp {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.4); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--x), -260px) rotate(var(--r)) scale(1); }
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== Shell ===== */
.shell { min-height: 100%; display: flex; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* opacity-only entrance: a transform here would trap the fixed cart/pay bars inside the view */
.view { flex: 1; padding: 16px 16px calc(var(--tab-h) + var(--safe-b) + 24px); outline: none; animation: viewIn .28s ease both; }
@keyframes viewIn { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.shell.no-chrome .sidebar, .shell.no-chrome .tabbar, .shell.no-chrome .topbar { display: none; }
.shell.no-chrome .view { padding: 0; }

/* Top bar (mobile) */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(245, 247, 240, .9);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .brand { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.topbar .brand img { width: 36px; height: 36px; }
.topbar .brand b { font: 800 16px var(--font-head); color: var(--green-700); letter-spacing: .03em; display: block; line-height: 1.1; }
.topbar .brand small { font: 600 8px var(--font-head); letter-spacing: .12em; color: var(--gold-700); white-space: nowrap; display: block; }
.topbar .title { flex: 1; font: 700 18px var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; position: relative;
  background: var(--surface); box-shadow: var(--shadow-sm); color: var(--green-700); flex: none; cursor: pointer;
}
.icon-btn svg, .icon-btn svg * { width: 20px; height: 20px; pointer-events: none; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; }
.install-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
  background: var(--grad-gold); color: #3a2500; font: 700 13px var(--font-head); box-shadow: 0 4px 12px rgba(201, 141, 12, .35);
}
.install-btn svg { width: 16px; height: 16px; }

/* Bottom tab bar (mobile) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(10, 60, 30, .06);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--text-3); padding: 6px 0; }
.tab svg { width: 23px; height: 23px; }
.tab.active { color: var(--green-700); font-weight: 600; }
.tab.active svg { filter: drop-shadow(0 2px 4px rgba(19, 122, 54, .3)); }
.tab-fab { justify-self: center; margin-top: -30px; }
.tab-fab button {
  width: 60px; height: 60px; border-radius: 50%; background: var(--grad-green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(13, 90, 44, .45), inset 0 0 0 3px rgba(242, 201, 76, .9); border: 4px solid var(--bg);
}
.tab-fab svg { width: 28px; height: 28px; }

/* Sidebar (desktop) */
.sidebar { display: none; }

/* ===== Components ===== */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 16px; }
.card + .card, .section + .section, .card + .section, .section + .card { margin-top: 16px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.section-head a, .link { font-size: 13px; font-weight: 600; color: var(--green-600); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px;
  border-radius: 14px; font: 700 15px var(--font-head); letter-spacing: .01em; transition: transform .12s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-green); color: #fff; box-shadow: 0 6px 16px rgba(13, 90, 44, .3); }
.btn-gold { background: var(--grad-gold); color: #3a2500; box-shadow: 0 6px 16px rgba(201, 141, 12, .3); }
.btn-ghost { background: var(--green-50); color: var(--green-700); }
.btn-outline { background: #fff; color: var(--green-700); box-shadow: inset 0 0 0 1.5px var(--green-600); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line);
}
.chip.active { background: var(--green-700); color: #fff; box-shadow: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.chips::-webkit-scrollbar { display: none; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.badge-green { background: var(--green-100); color: var(--green-700); }
.badge-gold { background: var(--gold-100); color: var(--gold-700); }
.badge-red { background: #fde7e7; color: var(--danger); }
.badge-grey { background: var(--surface-2); color: var(--text-2); }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--grad-green); color: #fff; font: 700 16px var(--font-head); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold-400);
}
.avatar.lg { width: 84px; height: 84px; font-size: 30px; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; box-shadow: 0 0 0 2px #fff; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  outline: none; transition: border-color .2s, box-shadow .2s; font-size: 15px;
}
textarea.input { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(31, 154, 67, .12); }
.input-group { display: flex; align-items: center; gap: 8px; }

.list { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; }
.list-item + .list-item { border-top: 1px solid var(--line); }
.list-item .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); flex: none; font-size: 18px; }
.list-item .ico svg { width: 20px; height: 20px; }
.chev { color: var(--text-3); width: 18px; height: 18px; flex: none; }

.empty { text-align: center; padding: 30px 16px; color: var(--text-3); }
.empty .big { font-size: 40px; }

/* ===== Hero / home ===== */
.hello { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hello h1 { font-size: 21px; }
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px; color: #fff; background: var(--grad-green);
  box-shadow: var(--shadow);
}
.hero::before {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 14px solid rgba(242, 201, 76, .35);
}
.hero::after { content: ''; position: absolute; right: 20px; bottom: -80px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.hero > * { position: relative; z-index: 1; }
.hero .kpi { font: 800 34px var(--font-head); line-height: 1; }
.hero .kpi small { font-size: 15px; font-weight: 600; opacity: .85; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.hero-stats div { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px; }
.hero-stats b { display: block; font: 700 17px var(--font-head); }
.hero-stats span { font-size: 11.5px; opacity: .85; }
.progress { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--grad-gold); transition: width .8s ease; }
.progress.light { background: var(--surface-2); }

.streak {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r);
  background: linear-gradient(135deg, #fff8e3, #fdecb8); box-shadow: var(--shadow-sm);
}
.streak .flame { font-size: 30px; animation: flick 1.6s ease-in-out infinite; }
@keyframes flick { 50% { transform: scale(1.12) rotate(-4deg); } }
.week { display: flex; gap: 6px; margin-top: 6px; }
.week span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .7); color: var(--gold-700); }
.week span.on { background: var(--gold-500); color: #fff; }
.week span.today { box-shadow: 0 0 0 2px var(--green-600); }

.tracker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.track {
  background: var(--surface); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.track .top { display: flex; align-items: center; justify-content: space-between; }
.track .emoji { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.track b { font: 800 20px var(--font-head); }
.track b small { font-size: 12px; font-weight: 600; color: var(--text-3); }
.track .lbl { font-size: 12.5px; color: var(--text-2); }
.track .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.track .plus:active { transform: scale(.9); }

.ring { position: relative; width: 74px; height: 74px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-txt { position: absolute; inset: 0; display: grid; place-items: center; font: 800 16px var(--font-head); color: var(--green-700); }

.tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--green-50); border: 1px dashed #b9dcc0; }
.tip .ti { font-size: 24px; }

/* Carousel */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; flex: none; }
.banner { width: 86%; max-width: 420px; height: 150px; border-radius: var(--r-lg); overflow: hidden; position: relative; color: #fff; box-shadow: var(--shadow); background: var(--grad-green); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 61, 29, .92) 0%, rgba(6, 61, 29, .55) 55%, rgba(6, 61, 29, .1) 100%); }
.banner .txt { position: absolute; inset: 0; z-index: 1; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; max-width: 75%; }
.banner h3 { font-size: 17px; }
.banner p { font-size: 12.5px; opacity: .9; margin-top: 4px; }

/* Shake cards */
.shake-card {
  width: 140px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px;
  text-align: center;
  transition: transform .22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .22s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.shake-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13, 90, 44, 0.12);
}
.shake-card:active {
  transform: scale(0.98);
}
.shake-art {
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}
.shake-art .shake-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
  transition: transform .4s ease;
}
.shake-card:hover .shake-art .shake-img {
  transform: scale(1.08);
}
.shake-art svg { height: 96px; }
.shake-card h4 { font: 700 13.5px var(--font-head); margin-top: 2px; line-height: 1.25; }
.shake-card p { font-size: 11.5px; color: var(--text-3); margin-top: 2px; line-height: 1.3; }
.shake-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shake-grid .shake-card { width: auto; }
.fav { color: var(--danger); }
.ticket-art img.shake-img,
.p-art img.shake-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Products */
.product-list { display: grid; gap: 12px; }
.product { display: flex; gap: 12px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 12px; align-items: center; }
.p-art { width: 72px; height: 72px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.p-art svg { width: 56px; height: 56px; }
.product h4 { font: 600 14px var(--font); line-height: 1.3; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.price b { font: 800 16px var(--font-head); color: var(--green-700); }
.price s { font-size: 12px; color: var(--text-3); }
.price .off { font-size: 11.5px; font-weight: 700; color: var(--gold-700); }
.add-btn { width: 36px; height: 36px; border-radius: 11px; background: var(--green-700); color: #fff; display: grid; place-items: center; flex: none; }
.add-btn svg { width: 18px; height: 18px; }
.qty { display: inline-flex; align-items: center; border-radius: 11px; background: var(--green-50); overflow: hidden; }
.qty button { width: 32px; height: 34px; font-size: 18px; color: var(--green-700); font-weight: 700; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); }
.search .input { padding-left: 42px; border-radius: 14px; }
.cart-fab {
  position: fixed; right: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 25; display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px; border-radius: 999px; background: var(--green-800); color: #fff; font: 700 14px var(--font-head); box-shadow: var(--shadow-lg);
  animation: fadeUp .3s ease both;
}
.cart-fab .n { background: var(--gold-400); color: var(--green-900); border-radius: 99px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 12px; padding: 0 6px; }

/* Charts (sizes are in SVG viewBox units, 600 wide) */
.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--line); stroke-width: 1.5; }
.chart .axis { fill: var(--text-3); font-size: 17px; font-family: var(--font); }
.chart .area { opacity: .14; }
.chart .line { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .pt { stroke: #fff; stroke-width: 3; }
.chart .target { stroke: var(--gold-500); stroke-dasharray: 8 8; stroke-width: 2.5; }

/* Quick-log controls */
.glasses { display: flex; gap: 4px; flex-wrap: wrap; }
.glass { font-size: 26px; width: 38px; height: 42px; border-radius: 10px; filter: grayscale(1); opacity: .35; transition: all .15s; }
.glass.on { filter: none; opacity: 1; background: #e3f0fb; }
.moods { display: flex; justify-content: space-between; }
.moods button { font-size: 32px; width: 54px; height: 54px; border-radius: 50%; opacity: .45; transition: all .15s; }
.moods button.on { opacity: 1; background: var(--gold-100); transform: scale(1.1); }
.desk-only { display: none !important; }
.seg { display: flex; background: var(--surface-2); padding: 4px; border-radius: 12px; gap: 4px; }
.seg button { flex: 1; height: 36px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.seg button.active { background: #fff; color: var(--green-700); box-shadow: var(--shadow-sm); }
.metric-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mt { background: var(--surface); border-radius: 14px; padding: 12px; box-shadow: var(--shadow-sm); }
.mt span { font-size: 11.5px; color: var(--text-3); display: block; }
.mt b { font: 800 18px var(--font-head); }
.mt em { font-style: normal; font-size: 11.5px; font-weight: 600; }
.up { color: var(--danger); } .down { color: var(--green-600); }

/* Coach updates timeline */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--green-400), var(--gold-400)); }
.tl { position: relative; }
.tl + .tl { margin-top: 14px; }
.tl::before { content: ''; position: absolute; left: -22px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--green-600); }
.tl .stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0; }
.tl .stats div { background: var(--green-50); border-radius: 10px; padding: 6px 4px; text-align: center; }
.tl .stats b { display: block; font: 700 14px var(--font-head); color: var(--green-700); }
.tl .stats span { font-size: 10px; color: var(--text-3); }
.quote { background: var(--gold-100); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; color: #5a4300; }

/* Referral */
.ref-hero { text-align: center; color: #fff; border-radius: var(--r-lg); padding: 24px 18px; background: var(--grad-green); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.ref-hero .gift { font-size: 48px; animation: pop .8s both; }
.ref-hero h2 { font-size: 22px; margin: 6px 0; }
.ref-code {
  display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 6px 6px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .14); border: 1.5px dashed rgba(242, 201, 76, .8);
}
.ref-code code { flex: 1; text-align: left; font: 600 13px ui-monospace, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallet { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: linear-gradient(135deg, #fffaf0, #fbefc9); box-shadow: var(--shadow-sm); }
.wallet .amt { font: 800 28px var(--font-head); color: var(--gold-700); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.steps3 div { background: var(--surface); border-radius: 14px; padding: 12px 6px; box-shadow: var(--shadow-sm); font-size: 12px; color: var(--text-2); }
.steps3 b { display: block; font-size: 24px; margin-bottom: 4px; }
.share-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-row button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); padding: 10px 0; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.share-row .si { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 18px; }

/* Plan / instalments */
.inst { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.inst + .inst { border-top: 1px solid var(--line); }
.inst .num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--font-head); flex: none; }
.inst .num.paid { background: var(--green-100); color: var(--green-700); }
.inst .num.due { background: var(--gold-100); color: var(--gold-700); }
.bill { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.bill .r { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.bill .r.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font: 800 17px var(--font-head); color: var(--green-700); }
.bill .r.credit { color: var(--gold-700); font-weight: 600; }

/* Profile */
.profile-head { text-align: center; padding: 24px 16px 18px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.profile-head::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 84px; background: var(--grad-green); }
.profile-head > * { position: relative; }
.profile-head .avatar { margin: 30px auto 10px; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bdg { text-align: center; font-size: 11px; color: var(--text-2); }
.bdg i { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 6px; border-radius: 50%; font-size: 24px; font-style: normal; background: var(--gold-100); box-shadow: inset 0 0 0 2px var(--gold-400); }
.bdg.locked i { background: var(--surface-2); box-shadow: none; filter: grayscale(1); opacity: .5; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.kv div { background: #fff; padding: 12px 14px; }
.kv span { display: block; font-size: 11.5px; color: var(--text-3); }
.kv b { font-weight: 600; font-size: 14px; }

/* Articles & stories */
.article { width: 240px; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); text-align: left; }
.article .img { height: 130px; background: var(--grad-green); position: relative; }
.article img { width: 100%; height: 100%; object-fit: cover; }
.article .bd { padding: 12px; }
.article h4 { font: 700 14px var(--font-head); margin-top: 6px; }
.story { width: 260px; display: flex; gap: 12px; background: var(--surface); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow-sm); }
.story img { width: 72px; height: 88px; border-radius: 12px; object-fit: cover; flex: none; background: var(--green-100); }
.story b { font: 800 18px var(--font-head); color: var(--green-700); }

/* Notifications */
.notif { display: flex; gap: 12px; padding: 14px 16px; align-items: flex-start; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif.unread { background: var(--green-50); }
.notif .ni { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: #fff; box-shadow: var(--shadow-sm); flex: none; }

/* Auth / onboarding */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #fff; }
.auth-top { position: relative; padding: calc(30px + var(--safe-t)) 24px 40px; text-align: center; background: radial-gradient(circle at 50% 0%, #ffffff 0%, #eef7ef 70%); overflow: hidden; }
.auth-top img, .onb-slide > img { width: 200px; margin: 0 auto; mix-blend-mode: multiply; }
.auth-body { flex: 1; padding: 24px; max-width: 460px; width: 100%; margin: -20px auto 0; background: #fff; border-radius: 26px 26px 0 0; position: relative; }
.otp { display: flex; gap: 10px; justify-content: center; }
.otp input { width: 50px; height: 56px; text-align: center; font: 800 22px var(--font-head); border-radius: 14px; border: 1.5px solid var(--line); outline: none; }
.otp input:focus { border-color: var(--green-500); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-pick { display: grid; gap: 10px; }
.demo-pick button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); text-align: left; }
.onb { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #fff; }
.onb-slide { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 28px 10px; }
.onb-art { width: 260px; height: 260px; border-radius: 50%; overflow: hidden; margin-bottom: 26px; box-shadow: 0 0 0 10px var(--green-50), 0 0 0 12px var(--gold-400), var(--shadow-lg); background: var(--grad-green); }
.onb-art img { width: 100%; height: 100%; object-fit: cover; }
.onb h1 { font-size: 26px; color: var(--green-800); }
.onb p { color: var(--text-2); margin-top: 10px; max-width: 340px; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 18px 0; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .3s, background .3s; }
.dots i.on { width: 26px; background: var(--green-600); }
.onb-foot { padding: 0 24px calc(28px + var(--safe-b)); max-width: 460px; width: 100%; margin: 0 auto; display: grid; gap: 10px; }
.goal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goal { padding: 14px 10px; border-radius: 14px; border: 1.5px solid var(--line); text-align: center; font-size: 13px; font-weight: 600; background: #fff; }
.goal i { display: block; font-size: 26px; font-style: normal; margin-bottom: 4px; }
.goal.on { border-color: var(--green-600); background: var(--green-50); color: var(--green-700); }

/* Sheet / modal */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(4, 30, 14, .45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.sheet-backdrop.open { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92vh; overflow-y: auto; background: #fff;
  border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); transform: translateY(105%);
  transition: transform .32s cubic-bezier(.2, .9, .3, 1), opacity .25s ease, visibility .32s; box-shadow: var(--shadow-lg);
  visibility: hidden; pointer-events: none; opacity: 0;
}
.sheet.open { transform: none; visibility: visible; pointer-events: auto; opacity: 1; }
.sheet .grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { margin-bottom: 14px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 20px); z-index: 80; transform: translate(-50%, 20px);
  background: var(--green-900); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .25s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 1.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .7; } }

.install-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow-sm); border: 1.5px solid var(--gold-400); }
.install-card img { width: 48px; height: 48px; border-radius: 12px; }

/* Admin */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm); }
.stat span { font-size: 12.5px; color: var(--text-2); }
.stat b { display: block; font: 800 26px var(--font-head); color: var(--green-700); margin-top: 4px; }
.stat em { font-style: normal; font-size: 12px; color: var(--text-3); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 12px 14px; background: var(--surface-2); white-space: nowrap; }
td { padding: 12px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--green-50); }
.price-table td, .price-table th { text-align: right; }
.price-table td:first-child, .price-table th:first-child { text-align: left; white-space: normal; min-width: 180px; }

/* ===== Ordering, tokens & payments ===== */
.tab { position: relative; }
.tab-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--gold-500); color: #fff; font: 700 10.5px/18px var(--font-head); font-style: normal; text-align: center; }
.shake-card .from { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--green-700); background: var(--green-50); padding: 2px 8px; border-radius: 99px; }
.order-cta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: linear-gradient(135deg, #063d1d, #137a36); color: #fff; box-shadow: var(--shadow); }
.order-cta p { opacity: .85; }
.how3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.how3 div { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px 8px; font-size: 12px; line-height: 1.35; }
.how3 b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-400); color: var(--green-900); font: 800 12px var(--font-head); margin-bottom: 6px; }
.plan-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.plan-chip { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 14px; padding: 10px; box-shadow: var(--shadow-sm); }
.plan-chip > span { font-size: 22px; }
.plan-chip b { font: 800 15px var(--font-head); color: var(--green-700); }
.plan-chip .tiny { line-height: 1.25; }
.plan-opts { display: grid; gap: 10px; }
.plan-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s, background .15s; }
.plan-opt.on { background: var(--green-50); box-shadow: inset 0 0 0 2px var(--green-600); }
.po-ic { font-size: 26px; }
.po-price { font: 800 17px var(--font-head); color: var(--green-700); }
.voucher-toggle { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--gold-100); border: 1.5px dashed var(--gold-500); cursor: pointer; font-size: 14px; }
.voucher-toggle input { width: 20px; height: 20px; accent-color: var(--green-600); flex: none; }

.ticket { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow-sm); text-align: left; overflow: hidden; }
.ticket::before, .ticket::after { content: ''; position: absolute; right: 92px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); }
.ticket::before { top: -9px; } .ticket::after { bottom: -9px; }
.ticket.past { opacity: .62; }
.ticket-art { width: 58px; height: 64px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ticket-art svg { height: 54px; }
.ticket-title { display: block; font: 700 14px var(--font-head); margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-code { width: 82px; flex: none; text-align: center; border-left: 2px dashed var(--line); padding-left: 10px; color: var(--green-700); }
.ticket-code code { display: block; font: 700 12px ui-monospace, Consolas, monospace; letter-spacing: .02em; word-break: break-all; }
.ticket-code .tiny { font-weight: 600; }
.pack .pack-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 12px 0; }
.pack-dots i { height: 10px; border-radius: 99px; background: var(--surface-2); }
.pack-dots i.on { background: var(--grad-gold); }
.token-big { text-align: center; padding: 18px; border-radius: 20px; background: linear-gradient(180deg, #fff, var(--green-50)); box-shadow: inset 0 0 0 2px var(--gold-400); }
.token-big.dim { filter: grayscale(.8); opacity: .7; }
.qr { width: 220px; height: 220px; margin: 12px auto 8px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.qr svg { width: 100% !important; height: 100% !important; }
.qr-fallback svg { width: 90px; height: 90px; color: var(--green-600); }
.code-big { font: 800 26px ui-monospace, Consolas, monospace; letter-spacing: .08em; color: var(--green-800); margin-bottom: 4px; }
.success-tick { width: 72px; height: 72px; margin: 6px auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-green); color: #fff; box-shadow: 0 0 0 8px var(--green-100); animation: pop .5s both; }
.success-tick svg { width: 36px; height: 36px; stroke-width: 3; }

/* Payment gateway sheet */
.sheet.gateway { padding: 0 0 calc(16px + var(--safe-b)); }
.sheet.gateway .grab { display: none; }
.gw-head { background: var(--grad-green); color: #fff; padding: 18px 20px 20px; border-radius: 26px 26px 0 0; }
.gw-amt { font: 800 34px var(--font-head); margin-top: 14px; }
.gw-body { padding: 4px 20px 0; }
.upi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.upi { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; font-size: 12px; font-weight: 600; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.upi span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 13px var(--font-head); }
.upi.on, .gw-opt.on { box-shadow: inset 0 0 0 2px var(--green-600); background: var(--green-50); }
.radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); flex: none; }
.gw-opt.on .radio { box-shadow: inset 0 0 0 6px var(--green-600); }
.gw-proc { text-align: center; padding: 40px 0 30px; display: grid; justify-items: center; gap: 8px; }
.spinner { width: 52px; height: 52px; border-radius: 50%; border: 5px solid var(--green-100); border-top-color: var(--green-600); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Referral */
.ref-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; text-align: left; }
.ref-rules div { background: rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px; }
.ref-rules b { display: block; font: 800 24px var(--font-head); color: var(--gold-400); }
.ref-rules span { font-size: 12.5px; opacity: .92; }
.ref-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 8px; }
.ref-dots i { height: 18px; border-radius: 6px; background: var(--surface-2); font-size: 11px; font-style: normal; display: grid; place-items: center; }
.ref-dots i.on { background: var(--gold-500); }
.ref-card { margin-top: 0; }
.sheet.pop { text-align: center; }
.ref-pop { position: relative; padding-top: 6px; }
.pop-x { position: absolute; right: 0; top: 0; z-index: 25; cursor: pointer; pointer-events: auto !important; }
.pop-gift { font-size: 60px; animation: pop .8s both, flick 1.8s 1s ease-in-out infinite; pointer-events: none; display: inline-block; }
.ref-pop h2 { margin: 8px 20px 8px; font-size: 21px; color: var(--green-800); }
.ref-code.light { background: var(--green-50); border-color: var(--gold-500); color: var(--text); }

/* Coach redeem */
.code-input { font: 700 18px ui-monospace, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; flex: 1; min-width: 0; }
.lookup { margin-top: 14px; padding: 14px; border-radius: 14px; }
.lookup.good { background: var(--green-50); box-shadow: inset 0 0 0 2px var(--green-500); }
.lookup.bad { background: #fdeeee; box-shadow: inset 0 0 0 2px #f2b8b8; }
.scan-vid { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: #000; }
.dotc { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.big-num { font: 800 20px var(--font-head); color: var(--green-700); }

/* ===== Cart, checkout & order pages ===== */
.icon-btn .count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--gold-500); color: #fff; font: 700 11px/19px var(--font-head); text-align: center; border: 2px solid #fff; box-sizing: content-box; }
@media (max-width: 430px) { .topbar.has-title .install-btn { padding: 0; width: 36px; justify-content: center; } .topbar.has-title .install-btn span { display: none; } }
.product.in-cart { box-shadow: var(--shadow-sm), inset 0 0 0 2px var(--green-400); }
.qty.vertical { flex-direction: column-reverse; }
.qty.vertical button { height: 28px; }
.qty button svg { vertical-align: -2px; }
.cart-bar, .pay-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 25; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 14px; border-radius: 18px; background: var(--green-800); color: #fff; box-shadow: var(--shadow-lg); animation: fadeUp .3s ease both;
}
.cart-bar b { display: block; font: 700 15px var(--font-head); }
.cart-bar .tiny { opacity: .8; }
.cb-ic { position: relative; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; flex: none; }
.cb-ic svg { width: 21px; height: 21px; }
.cb-ic i { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; border-radius: 99px; background: var(--gold-400); color: var(--green-900); font: 800 11px/19px var(--font-head); font-style: normal; text-align: center; padding: 0 4px; }
.cb-go { display: flex; align-items: center; gap: 2px; font: 700 13.5px var(--font-head); color: var(--gold-400); white-space: nowrap; }
.cb-go svg { width: 16px; height: 16px; }
.pay-bar { background: #fff; color: var(--text); box-shadow: 0 -4px 24px rgba(10, 60, 30, .16); justify-content: space-between; }
.pay-bar b { display: block; font: 800 20px var(--font-head); color: var(--green-700); line-height: 1.1; }
.pay-bar .btn { min-width: 150px; }
.view:has(.cart-bar), .view:has(.pay-bar) { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 110px); }
body:has(.cart-bar) .toast, body:has(.pay-bar) .toast { bottom: calc(var(--tab-h) + var(--safe-b) + 96px); }
.desk-only-btn { display: none; }
.steps-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.steps-bar div { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.steps-bar i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--font-head); font-style: normal; background: var(--surface-2); }
.steps-bar span { flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.steps-bar .done { color: var(--green-700); } .steps-bar .done i { background: var(--green-600); color: #fff; }
.steps-bar .now { color: var(--text); } .steps-bar .now i { background: var(--gold-500); color: #fff; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-line .p-art { width: 60px; height: 60px; }
.cart-line .p-art svg { width: 46px; height: 46px; }
.saving-note { margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--green-50); color: var(--green-700); font-size: 13px; font-weight: 600; text-align: center; }
.pm-list { display: grid; gap: 8px; margin-top: 12px; }
.pm { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .15s, background .15s; }
.pm input { position: absolute; opacity: 0; pointer-events: none; }
.pm.on { background: var(--green-50); box-shadow: inset 0 0 0 2px var(--green-600); }
.pm.on .radio { box-shadow: inset 0 0 0 6px var(--green-600); }
.pm-ic { font-size: 22px; width: 32px; text-align: center; }
.pm-panel { padding: 4px 2px 8px; animation: fadeUp .2s ease both; }
.upi-wait { position: relative; width: 70px; height: 70px; display: grid; place-items: center; }
.upi-wait .spinner { position: absolute; inset: 0; width: 70px; height: 70px; }
.upi-wait span { font: 800 22px var(--font-head); color: var(--green-700); }
.gw-otp { text-align: center; padding: 22px 0 6px; display: grid; gap: 12px; justify-items: center; }
.otp6 { text-align: center; font: 800 26px ui-monospace, Consolas, monospace; letter-spacing: .5em; max-width: 240px; }
.order-head { text-align: center; padding: 22px 16px; border-radius: var(--r-lg); background: var(--grad-green); color: #fff; box-shadow: var(--shadow); margin-top: 0; }
.steps-bar + .order-head { margin-top: 16px; }
.order-head .success-tick { background: #fff; color: var(--green-700); box-shadow: 0 0 0 8px rgba(255, 255, 255, .18); }
.order-head h2 { font-size: 22px; margin-bottom: 4px; }
.status-steps { display: grid; gap: 0; }
.status-steps > div { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.status-steps > div:last-child { padding-bottom: 0; }
.status-steps > div:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 28px; bottom: 2px; width: 2px; background: var(--line); }
.status-steps > div.done:not(:last-child)::after { background: var(--green-500); }
.status-steps i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 12px var(--font-head); font-style: normal; background: var(--surface-2); color: var(--text-3); }
.status-steps .done i { background: var(--green-600); color: #fff; }
.status-steps .now i { background: var(--gold-500); color: #fff; }
.status-steps b { display: block; font-size: 14px; }
.status-steps small { color: var(--text-3); font-size: 12px; }
.click-row { cursor: pointer; }
.click-row:hover { background: var(--green-50); }
.card + .card { margin-top: 12px; }
@media print {
  .sidebar, .topbar, .tabbar, .no-print, .pay-bar, .cart-bar, .toast, .steps-bar, .ticket-code { display: none !important; }
  body, .view { background: #fff; padding: 0; }
  .card, .list, .ticket { box-shadow: none; border: 1px solid #ccc; }
}

/* ===== Desktop ===== */
@media (min-width: 960px) {
  body { font-size: 15px; }
  .tabbar, .topbar .brand, .mob-only { display: none !important; }
  .desk-only { display: block !important; }
  .sidebar {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; width: 264px; flex: none;
    background: linear-gradient(180deg, #063d1d 0%, #0a4d25 60%, #0d5a2c 100%); color: #d8eadb; padding: 22px 16px;
  }
  .sidebar .s-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 14px; }
  .sidebar .s-brand img { width: 50px; height: 50px; background: #fff; border-radius: 50%; padding: 3px; }
  .sidebar .s-brand b { display: block; font: 800 19px var(--font-head); color: #fff; letter-spacing: .04em; }
  .sidebar .s-brand small { font: 600 9.5px var(--font-head); letter-spacing: .24em; color: var(--gold-400); }
  .s-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #cfe3d3; font-weight: 500; font-size: 14.5px; margin-bottom: 2px; transition: background .15s; }
  .s-link svg { width: 20px; height: 20px; }
  .s-link:hover { background: rgba(255, 255, 255, .07); }
  .s-link.active { background: rgba(242, 201, 76, .16); color: #fff; box-shadow: inset 3px 0 0 var(--gold-400); }
  .s-link .cnt { margin-left: auto; background: var(--gold-400); color: var(--green-900); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
  .s-foot { margin-top: auto; }
  .s-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); margin-top: 10px; }
  .s-user .avatar { width: 38px; height: 38px; font-size: 14px; box-shadow: 0 0 0 2px var(--gold-400); }
  .topbar { padding: 16px 32px; background: rgba(245, 247, 240, .85); }
  .topbar .title { font-size: 22px; }
  .view { padding: 8px 32px 48px; max-width: 1240px; width: 100%; margin: 0 auto; }
  .desk-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .desk-grid > * + * { margin-top: 0 !important; }
  .tracker { grid-template-columns: repeat(4, 1fr); }
  .carousel { margin: 0; padding: 2px 0 6px; }
  .chips { margin: 0; padding: 2px 0 4px; flex-wrap: wrap; }
  .banner { width: 48%; height: 180px; }
  .shake-grid { grid-template-columns: repeat(5, 1fr); }
  .product-list { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .chart { max-height: 300px; }
  .chart .axis { font-size: 12px; }
  .chart .line { stroke-width: 3.5; }
  .cart-fab { bottom: 28px; right: 32px; }
  .cart-bar { left: auto; right: 32px; bottom: 28px; width: 400px; }
  .pay-bar { display: none; }
  .desk-only-btn { display: flex; }
  .view:has(.pay-bar) { padding-bottom: 48px; }
  body:has(.pay-bar) .toast { bottom: 32px; }
  body:has(.cart-bar) .toast { bottom: 110px; }
  .toast { bottom: 32px; }
  .sheet { left: 50%; right: auto; bottom: 50%; width: 520px; border-radius: 24px; transform: translate(-50%, 60%); opacity: 0; visibility: hidden; transition: all .25s; max-height: 86vh; }
  .sheet.open { transform: translate(-50%, 50%); opacity: 1; visibility: visible; }
  .sheet .grab { display: none; }
  .sheet.gateway { width: 440px; }
  .gw-head { border-radius: 24px 24px 0 0; }
  .auth { flex-direction: row; }
  .auth-top { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px; }
  .auth-top img { width: 320px; }
  .auth-body { margin: 0; border-radius: 0; display: flex; flex-direction: column; justify-content: center; padding: 48px; max-width: 520px; box-shadow: var(--shadow-lg); }
  .onb { flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; }
}
@media (min-width: 1280px) { .shake-grid { grid-template-columns: repeat(5, 1fr); } .product-list { grid-template-columns: repeat(3, 1fr); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
