/* Member app – "Fresh green" design (default; More → App design). Clean white cards on a soft
   green-grey page, an olive→lime green header, pill buttons. Scoped to body.member.fresh. */
body.member.fresh {
  --fr-dark: #2f4214;
  --fr-deep: #4b6b1f;
  --fr-mid: #6f9a2c;
  --fr-lime: #a3cf4a;
  --fr-bg: #f6f7f1;
  --fr-card: #ffffff;
  --fr-soft: #eef3e2;
  --fr-ink: #1c2412;
  --fr-sub: #6b7363;
  --fr-line: #e6eadc;
  --fr-shadow: 0 4px 18px rgba(47, 66, 20, .08);
  --fr-grad: linear-gradient(135deg, #4b6b1f 0%, #8dbb3b 100%);
  /* the shared pieces (buttons, inputs, Paytm-style cards) pick these up */
  --nx-bg: var(--fr-bg); --nx-card: var(--fr-card); --nx-ink: var(--fr-ink); --nx-sub: var(--fr-sub); --nx-line: var(--fr-line);
  --nx-shadow: var(--fr-shadow); --nx-deep: var(--fr-deep); --nx-blue: var(--fr-mid);
  --bg: var(--fr-bg); --surface: var(--fr-card); --surface-2: var(--fr-soft); --text: var(--fr-ink); --muted: var(--fr-sub); --border: var(--fr-line);
  --primary: #4b6b1f; --primary-ink: #fff; --primary-soft: var(--fr-soft); --grad: var(--fr-grad);
  background: var(--fr-bg);
  color: var(--fr-ink);
}
@media (prefers-color-scheme: dark) {
  body.member.fresh {
    --fr-bg: #10140b; --fr-card: #1a2012; --fr-soft: #243018; --fr-ink: #eef3e2; --fr-sub: #a3ad95; --fr-line: #2a331e;
    --fr-shadow: 0 4px 18px rgba(0, 0, 0, .35); --primary: #a3cf4a; --primary-ink: #10140b;
  }
}

/* ---------- shell ---------- */
body.member.fresh .m-top { background: var(--fr-bg); border-bottom: 0; }
body.member.fresh.on-home .m-top { background: #4b6b1f; }
body.member.fresh.on-home .m-top, body.member.fresh.on-home .m-top .icon-btn, body.member.fresh.on-home .m-top .gym-name { color: #fff; }
body.member.fresh .m-top h1, body.member.fresh .m-top .gym-name { font-weight: 800; }
body.member.fresh.on-home .m-top .bell { background: rgba(255, 255, 255, .18); border-radius: 50%; }
body.member.fresh .m-tabs { background: var(--fr-card); border-top: 1px solid var(--fr-line); box-shadow: 0 -4px 20px rgba(47, 66, 20, .06); }
body.member.fresh .m-tabs a { color: var(--fr-sub); font-weight: 600; }
body.member.fresh .m-tabs a.active { color: var(--fr-deep); font-weight: 800; }
body.member.fresh .m-tabs a.active svg { color: var(--fr-deep); }
@media (prefers-color-scheme: dark) { body.member.fresh .m-tabs a.active, body.member.fresh .m-tabs a.active svg { color: var(--fr-lime); } }
body.member.fresh .m-tabs a.checkin-tab .tab-ring { background: var(--fr-grad); border-color: var(--fr-card); box-shadow: 0 8px 18px rgba(75, 107, 31, .4); }

/* ---------- home ---------- */
.fr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.fr > * { min-width: 0; }
.fr > * { animation: fr-up .45s cubic-bezier(.2, .8, .2, 1) both; }
.fr > *:nth-child(2) { animation-delay: .05s; } .fr > *:nth-child(3) { animation-delay: .1s; }
.fr > *:nth-child(4) { animation-delay: .15s; } .fr > *:nth-child(5) { animation-delay: .2s; }
@keyframes fr-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fr > * { animation: none; } }

/* green header that runs into the top bar */
.fr-top {
  margin: -1rem -1rem 0; padding: .4rem 1rem 1.2rem; background: linear-gradient(180deg, #4b6b1f 0%, #6f9a2c 70%, #86b437 100%);
  border-radius: 0 0 28px 28px; color: #fff; display: grid; gap: 14px;
}
.fr-hi small { font-weight: 600; color: rgba(255, 255, 255, .9); font-size: .88rem; }
.fr-hi h2 { margin: 2px 0 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }

/* the big banner (like a promo card) */
.fr-hero {
  position: relative; overflow: hidden; display: flex; align-items: stretch; width: 100%; min-height: 150px; padding: 18px; border: 0;
  border-radius: 22px; background: #fffdf3; color: var(--fr-dark); text-align: left; font: inherit; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 24px rgba(30, 45, 10, .25);
}
.fr-hero::before { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: #e3efc7; }
.fr-hero::after { content: ""; position: absolute; right: 40px; bottom: -70px; width: 140px; height: 140px; border-radius: 50%; background: #d3e8a6; opacity: .7; }
.fr-ht { position: relative; z-index: 1; display: grid; gap: 4px; align-content: center; max-width: 68%; }
.fr-ht i { font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: var(--fr-mid); }
.fr-ht b { font-size: 1.4rem; line-height: 1.1; font-weight: 900; font-style: italic; letter-spacing: -.01em; color: #3d5a12; text-transform: uppercase; }
.fr-ht small { font-size: .82rem; font-weight: 600; color: #55603f; }
.fr-btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #d9480f 0%, #f76707 100%); color: #fff; font-weight: 800; font-size: .82rem; box-shadow: 0 4px 10px rgba(217, 72, 15, .3);
}
.fr-btn svg { width: 16px; height: 16px; }
.fr-btn.sm { padding: 6px 14px; font-size: .78rem; background: var(--fr-lime); color: var(--fr-dark); box-shadow: none; }
.fr-art { position: absolute; z-index: 1; right: 6px; bottom: -2px; width: 132px; height: 132px; color: #3d5a12; --ground: rgba(61, 90, 18, .25); --accent: #f76707; }
.fr-art svg { width: 100%; height: 100%; }
.fr-hero.live { background: #f1fbe6; }
.fr-hero.live .fr-ht b { font-style: normal; font-variant-numeric: tabular-nums; font-size: 2rem; }
.fr-hero.live .fr-btn { background: var(--fr-dark); box-shadow: none; }
.fr-hero.done { cursor: default; }
.fr-hero:active:not(.done) { transform: scale(.98); }
.fr-hero { transition: transform .15s; }
@media (prefers-color-scheme: dark) {
  .fr-hero, .fr-hero.live { background: #1f2a12; color: #eef3e2; }
  .fr-hero::before { background: #2b3b17; } .fr-hero::after { background: #34481a; }
  .fr-ht b { color: #c5e67f; } .fr-ht small { color: #c3cbb3; } .fr-art { color: #c5e67f; --ground: rgba(197, 230, 127, .25); }
}

/* section headings: "Categories ... See All" */
.fr-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.fr-h h3 { margin: 0; font-size: 1.12rem; font-weight: 800; color: var(--fr-ink); }
.fr-h a { color: var(--fr-mid); font-weight: 700; font-size: .85rem; text-decoration: none; }

/* quick actions: a scrolling row of icon tiles */
.fr-cats { display: flex; gap: 10px; overflow-x: auto; margin: 0 -1rem; padding: 2px 1rem 6px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 1rem; }
.fr-cats::-webkit-scrollbar { display: none; }
.fr-cat { flex: none; width: 76px; display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 18px; background: var(--fr-card);
  box-shadow: var(--fr-shadow); text-decoration: none; color: var(--fr-ink); scroll-snap-align: start; transition: transform .15s; }
.fr-cat:active { transform: scale(.94); }
.fr-cat span { font-size: 1.9rem; line-height: 1; }
.fr-cat small { font-size: .74rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* small cards ("Order again") */
.fr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fr-mini { display: flex; align-items: center; gap: 10px; padding: 12px; border: 0; border-radius: 18px; background: var(--fr-card); box-shadow: var(--fr-shadow);
  color: var(--fr-ink); text-decoration: none; text-align: left; font: inherit; width: 100%; min-width: 0; cursor: pointer; transition: transform .15s; }
.fr-mini:active { transform: scale(.97); }
.fr-mi { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--fr-soft); display: grid; place-items: center; font-size: 1.35rem; }
.fr-mt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fr-mt b { font-size: 1rem; font-weight: 800; }
.fr-mt small { color: var(--fr-sub); font-size: .76rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-go { color: var(--fr-mid); } .fr-go svg { width: 22px; height: 22px; }
.fr-member { background: var(--fr-grad); color: #fff; }
.fr-member .fr-mi { background: rgba(255, 255, 255, .22); }
.fr-member .fr-mt small, .fr-member .fr-go { color: rgba(255, 255, 255, .92); }
.fr-member .fr-mt small { white-space: normal; }
.fr-chip { font-style: normal; font-weight: 800; }
.fr-chip.ok { color: #2f8a3c; } .fr-chip.warn { color: #b7791f; } .fr-chip.bad { color: #c92a2a; }

/* dark "deals" cards, scrolling sideways */
.fr-deals { display: flex; gap: 12px; overflow-x: auto; margin: 0 -1rem; padding: 2px 1rem 8px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; }
.fr-deals::-webkit-scrollbar { display: none; }
.fr-deal {
  position: relative; overflow: hidden; flex: none; width: 78%; max-width: 320px; min-height: 170px; padding: 16px; border-radius: 20px;
  background: radial-gradient(circle at 85% 40%, #3d5a12 0%, #1f2b0d 70%); color: #fff; text-decoration: none; display: grid; gap: 4px; align-content: start;
  scroll-snap-align: start; box-shadow: 0 8px 20px rgba(20, 30, 8, .25);
}
.fr-deal small { font-size: .7rem; font-weight: 800; letter-spacing: .08em; opacity: .85; }
.fr-deal b { font-size: 1.45rem; font-weight: 900; line-height: 1.1; max-width: 62%; letter-spacing: -.01em; }
.fr-tag { justify-self: start; margin-top: 4px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); font-size: .72rem; font-weight: 700; }
.fr-deal .fr-btn { position: absolute; left: 16px; bottom: 14px; margin: 0; }
.fr-deal .fr-tag { margin-bottom: 40px; }
.fr-deal .fr-art { width: 120px; height: 120px; right: 0; bottom: 0; color: #c5e67f; --ground: rgba(197, 230, 127, .25); }
.fr-emo { position: absolute; right: 14px; bottom: 10px; font-size: 4.2rem; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.fr-deal.pt { background: radial-gradient(circle at 85% 40%, #7a3e0c 0%, #2b1606 75%); }
.fr-deal.diet { background: radial-gradient(circle at 85% 40%, #0d5c4a 0%, #062a22 75%); }

/* other pages: softer cards and green accents */
body.member.fresh .m-card, body.member.fresh .list-card, body.member.fresh .profile-head, body.member.fresh .pf-form,
body.member.fresh .pt-card, body.member.fresh .pt-pkg, body.member.fresh .pt-bk { background: var(--fr-card); border-color: transparent; box-shadow: var(--fr-shadow); border-radius: 20px; }
body.member.fresh .btn { border-radius: 999px; font-weight: 700; }
body.member.fresh .btn.primary { background: var(--fr-grad); border-color: transparent; color: #fff; }
body.member.fresh input, body.member.fresh select, body.member.fresh textarea { border-radius: 14px; }
body.member.fresh .lrow .li { color: var(--fr-deep); background: var(--fr-soft); }
@media (prefers-color-scheme: dark) { body.member.fresh .lrow .li { color: var(--fr-lime); } }
body.member.fresh .pf-head { background: var(--fr-grad); box-shadow: 0 10px 22px rgba(75, 107, 31, .3); }
body.member.fresh .chip.active { background: var(--fr-deep); border-color: var(--fr-deep); color: #fff; }

/* ---------- welcome / login (like the reference: green top, white sheet) ---------- */
body.member.fresh .welcome { background: linear-gradient(160deg, #3f5a17 0%, #6f9a2c 55%, #a3cf4a 100%); padding-bottom: 0; }
body.member.fresh .welcome h1 { text-align: left; font-size: 2.2rem; font-weight: 900; letter-spacing: -.02em; margin-top: .25rem; }
body.member.fresh .welcome h1::after { content: "."; color: #ffb347; }
body.member.fresh .welcome p.lead { text-align: left; opacity: .92; font-weight: 500; }
body.member.fresh .welcome .fig { margin-top: .25rem; width: 170px; height: 170px; --accent: #ffb347; }
body.member.fresh .w-feats span { background: rgba(255, 255, 255, .15); border-radius: 16px; }
body.member.fresh .welcome .panel {
  margin: auto -1.5rem 0; border-radius: 30px 30px 0 0; padding: 1.6rem 1.5rem calc(1.6rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(20, 30, 8, .2);
}
body.member.fresh .welcome .panel .btn { border-radius: 999px; min-height: 54px; }
body.member.fresh .welcome .panel .btn.primary { background: linear-gradient(90deg, #3f5a17 0%, #8dbb3b 100%); }
body.member.fresh .welcome .panel input, body.member.fresh .phone-row { border-radius: 999px; background: var(--fr-soft); border-color: transparent; }
body.member.fresh .welcome .panel .phone-row input { background: none; border-radius: 0; min-height: 0; }
body.member.fresh .phone-row:focus-within { border-color: var(--fr-mid); background: var(--fr-card); }
body.member.fresh .welcome .panel .otp-input { border-radius: 18px; }
body.member.fresh .step-title { font-size: 1.55rem; }
body.member.fresh .linkish, body.member.fresh .welcome .panel a { color: var(--fr-deep); }
body.member.fresh .onb-bar i { background: var(--fr-grad); }
body.member.fresh .onb-choices input:checked + span { border-color: var(--fr-mid); background: var(--fr-soft); color: var(--fr-deep); }
/* explore header keeps its colour band in the paytm / fresh designs (the card rules above would make it white) */
body.member.paytm .m-card.hero-card, body.member.fresh .m-card.hero-card { background: var(--grad); color: #fff; }

/* login (mock): green "ShoroFit", icon boxes, Login →, "or", Scan QR instead */
body.member .lib-auth .ml-h { font-size: 1.45rem; line-height: 1.2; }
body.member .lib-auth .ml-brand { display: block; font-size: 1.9rem; font-weight: 850; letter-spacing: -.02em; }
body.member .lib-auth .ml-brand b { color: var(--lib); }
body.member .lib-auth .oa-in { display: flex; align-items: center; gap: .1rem; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); padding: .3rem; }
body.member .lib-auth .oa-in:focus-within { border-color: var(--lib); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lib) 16%, transparent); }
body.member .lib-auth .oa-in i { flex: 0 0 42px; height: 42px; border-radius: 11px; background: var(--lib-soft); color: var(--lib); display: grid; place-items: center; }
body.member .lib-auth .oa-in i svg { width: 20px; height: 20px; }
body.member.member .lib-auth .oa-in input { flex: 1; min-width: 0; border: 0; background: none; box-shadow: none; outline: 0; min-height: 42px; padding: 0 .7rem; font-size: 1rem; letter-spacing: .02em; border-radius: 0; }
body.member.member .lib-auth .oa-in input::placeholder { letter-spacing: 0; }
body.member .lib-auth .field { display: grid; gap: .4rem; }
body.member .lib-auth.lib-auth .lib-card .btn.primary { min-height: 52px; border-radius: 16px; font-size: 1.08rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--lib) 82%, #fff) 0%, var(--lib) 100%); box-shadow: 0 10px 22px color-mix(in srgb, var(--lib) 28%, transparent); }
body.member .lib-auth .ml-or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; margin: .1rem 0; }
body.member .lib-auth .ml-or::before, body.member .lib-auth .ml-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
body.member.member .lib-auth .ml-scan { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--lib) 55%, var(--border)); background: color-mix(in srgb, var(--lib-soft) 45%, var(--surface)); color: var(--lib); font-weight: 700; width: 100%; }
body.member .lib-auth .ml-scan svg { width: 22px; height: 22px; }
body.member.member .lib-auth .oa-in input.pin-input { text-align: left; letter-spacing: .25em; font-weight: 700; }
body.member.member .lib-auth .oa-in input.pin-input::placeholder { letter-spacing: 0; font-weight: 500; }

/* first-time privacy note: a short sheet over the app, not a full page */
.consent-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 20, 10, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: cs-fade .2s ease-out; }
.consent-sheet .cs-card { width: 100%; max-width: 560px; max-height: 80vh; overflow-y: auto; background: #fffcf7; color: #1f2937; border-radius: 22px 22px 0 0; padding: .6rem 1.1rem calc(1rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0,0,0,.18); animation: cs-up .25s ease-out; display: grid; gap: .55rem; }
/* the glass themes make --surface ~60% transparent; a modal sheet must be solid so the page behind doesn't show through its text */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body:not(.nova) .consent-sheet .cs-card { background: #1b1d2a; color: #e8eaf0; } }
.consent-sheet .cs-grab { width: 42px; height: 4px; border-radius: 4px; background: rgba(17,24,39,.18); margin: 0 auto .2rem; }
.consent-sheet h2 { font-size: 1.05rem; margin: 0; }
.consent-sheet p { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--text); }
.consent-sheet .cs-more summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--brand, var(--primary)); }
.consent-sheet .cs-more ul { padding-left: 1.1rem; margin: .4rem 0; font-size: .84rem; line-height: 1.5; }
.consent-sheet .cs-more p { font-size: .82rem; margin-top: .35rem; }
.consent-sheet .btn.primary { min-height: 48px; font-weight: 800; }
.consent-sheet .cs-no { justify-self: center; font-size: .82rem; color: var(--muted); }
@keyframes cs-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes cs-fade { from { opacity: 0; } to { opacity: 1; } }

/* membership page: plans at the person's other gym / library */
.ms2 .ms2-other { align-items: center; }
.ms2 .ms2-other > span:nth-child(2) { flex: 1; min-width: 0; }
.ms2 .ms2-pill-sm { display: inline-block; width: fit-content; justify-self: start; align-self: flex-start; font-style: normal; font-size: .7rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; background: var(--green-soft, #e3f5ea); color: var(--green, #138a4b); margin-top: .2rem; }
.ms2 .ms2-pill-sm.warn { background: var(--amber-soft, #fff3db); color: var(--amber, #a86400); }
.ms2 .ms2-pill-sm.bad { background: var(--red-soft, #fde8e8); color: var(--red, #c62828); }
.ms2 .ms2-other em.bad { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--red, #c62828); }
.ms2 .ms2-add { width: 100%; margin-top: .5rem; }
.ms2 .ms2-other-empty { font-size: .85rem; margin: 0 0 .2rem; text-align: left; }
