/* ============================================================
   MaxFit Mobile — Shared Design System (Light)
   Single source of truth for every section mockup.
   Derived from design-light.md + the proven maxfit-mobile-ui.html.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500;600&family=Almarai:wght@400;700;800&display=swap');

:root {
  /* surfaces */
  --bg-100: #FFFFFF;   /* raised card/sheet */
  --bg-200: #FAFAF7;   /* app canvas */
  /* gray scale (solid — text + opaque fills) */
  --gray-100: #F4F6F1;
  --gray-200: #ECEEE9;
  --gray-300: #E7EAE2;
  --gray-400: #DFE3D9;
  --gray-500: #C7CCBF;
  --gray-600: #A7AC9F;
  --gray-700: #8A9082;
  --gray-800: #6F756A;
  --gray-900: #5B6157;   /* secondary text */
  --gray-1000: #0A0A0A;  /* primary text */
  /* gray alpha (borders, dividers, overlays) */
  --ga-100: #0000000d;
  --ga-200: #00000015;
  --ga-300: #0000001a;
  --ga-400: #00000014;
  /* lime brand accent */
  --lime-100: #F4FEDC;
  --lime-300: #E0FA97;
  --lime-500: #CCFF0A;   /* bright fill — black text or dark surfaces only */
  --lime-700: #CCFF0A;
  --lime-900: #6F8C00;   /* olive — lime text/icons on light */
  --lime-1000: #3F4F00;
  /* state */
  --red-100: #ffeeef;
  --red-700: #fc0035;
  --red-800: #ea001d;
  --amber-100: #fff6de;
  --amber-600: #ffa600;
  --amber-900: #aa4d00;
  --green-100: #ecfdec;
  --green-700: #28a948;
  --green-900: #107d32;

  /* radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 9999px;

  /* elevation */
  --shadow-card: 0 1px 2px rgba(10,10,10,0.04), 0 12px 34px -18px rgba(10,10,10,0.18);
  --shadow-hero: 0 2px 6px rgba(10,10,10,0.10), 0 30px 60px -30px rgba(10,10,10,0.45);
  --shadow-pop: 0 2px 4px rgba(10,10,10,0.05), 0 18px 44px -22px rgba(10,10,10,0.24);

  /* focus ring (design-light.md): 2px surface gap, then olive-lime ring */
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px var(--lime-900);

  /* logo tile — refined dark squircle: subtle gradient, hairline edge, soft lift */
  --logo-bg: linear-gradient(160deg, #1c1e1b 0%, #0b0b0b 100%);
  --logo-ring: inset 0 0 0 1px rgba(255,255,255,0.09), 0 8px 20px -10px rgba(10,10,10,0.55);

  --ease: cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, #FFFFFF 0%, var(--bg-200) 55%),
    var(--bg-200);
  color: var(--gray-1000);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: 56px 24px 80px;
}

/* Arabic uses Almarai; Latin/numerals stay Geist */
[lang="ar"], [dir="rtl"] { font-family: 'Almarai', 'Plus Jakarta Sans', system-ui, sans-serif; }

/* ============ gallery page chrome ============ */
.page-head { text-align: center; max-width: 760px; margin: 0 auto 16px; }
.page-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--lime-900); background: var(--lime-100);
  border: 1px solid var(--ga-400);
  padding: 5px 10px 5px 8px; border-radius: var(--r-full); margin-bottom: 20px;
}
.page-head .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-900); }
.page-head h1 { font-size: 40px; font-weight: 600; line-height: 48px; letter-spacing: -2.4px; }
.page-head p { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--gray-900); }

.section-band {
  max-width: 1320px; margin: 56px auto 20px; padding: 0 8px;
  display: flex; align-items: center; gap: 14px;
}
.section-band .n {
  font-family: 'Geist Mono', monospace; font-size: 13px; font-weight: 600;
  color: var(--lime-900); background: var(--lime-100); border: 1px solid var(--ga-400);
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.section-band h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.8px; }
.section-band .line { flex: 1; height: 1px; background: var(--ga-300); }

.stage { display: flex; gap: 32px 40px; justify-content: center; align-items: flex-start; flex-wrap: wrap; max-width: 1320px; margin: 0 auto; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone-label { font-size: 13px; font-weight: 500; color: var(--gray-800); letter-spacing: -0.1px; }
.phone-label .tag { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--gray-600); margin-inline-start: 6px; }

/* ============ phone frame ============ */
.phone {
  width: 360px; height: 760px; background: #0A0A0A; border-radius: 52px; padding: 12px;
  box-shadow: 0 0 0 2px var(--ga-200), 0 50px 90px -40px rgba(10,10,10,0.45), 0 18px 44px -22px rgba(10,10,10,0.20);
  position: relative;
}
.screen { width: 100%; height: 100%; background: var(--bg-200); border-radius: 42px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
/* s02 — smooth lime top-glow + film grain, sitting behind the content */
.s02 .screen::before { content: ""; position: absolute; inset: 0 0 auto; height: 340px; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(204,255,10,0.22) 0%, rgba(204,255,10,0.08) 32%, rgba(204,255,10,0) 100%); }
.s02 .screen::after { content: ""; position: absolute; inset: 0 0 auto; height: 340px; z-index: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.s02 .screen > .scroll { position: relative; z-index: 1; }
.notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 30px; background: #0A0A0A; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; z-index: 30; }

.statusbar { height: 50px; flex: none; display: flex; align-items: center; justify-content: space-between; padding-inline: 30px 26px; font-size: 14px; font-weight: 600; letter-spacing: -0.2px; color: var(--gray-1000); position: relative; z-index: 20; }
.statusbar.on-dark { color: #fff; }
.statusbar .glyphs { display: flex; align-items: center; gap: 7px; }
.statusbar .glyphs svg { display: block; }

.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; }
.scroll::-webkit-scrollbar { width: 0; }
.pad { padding: 4px 22px 0; }

/* keep numerals/clock LTR even when the screen is RTL */
.ltr-nums { direction: ltr; unicode-bidi: isolate; }

/* ============ generic primitives ============ */
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.muted { color: var(--gray-900); }
.center { text-align: center; }
.grow { flex: 1; }
.mt-auto { margin-top: auto; }

.brand { display: flex; align-items: center; gap: 9px; }
.mark { display: inline-flex; align-items: center; justify-content: center; }
.brand .mark { flex: none; }
.brand .name { font-size: 18px; font-weight: 600; letter-spacing: -0.5px; }
/* real MaxFit logomark — primary lime + black lower layer, no tile, enlarged */
.mf-logo { width: 40px; height: 22px; display: block; }
.brand .mark svg.mf-logo { width: 40px; height: 22px; }
.mf-logo.lg { width: 124px; height: 68px; }

.card { background: var(--bg-100); border: 1px solid var(--ga-400); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }

.section-title { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; color: var(--gray-1000); }
.link { font-size: 13px; font-weight: 500; color: var(--lime-900); cursor: pointer; background: none; border: none; font-family: inherit; }
.link:hover { color: var(--lime-1000); }
.link:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 16px; padding: 5px 10px; border-radius: var(--r-full); border: 1px solid var(--ga-400); }
.pill.lime { background: var(--lime-100); color: var(--lime-900); }
.pill.gray { background: var(--gray-100); color: var(--gray-900); }

/* ============ buttons ============ */
.btn { height: 48px; border: none; border-radius: var(--r-full); font-family: inherit; font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; width: 100%; transition: transform 150ms var(--ease), background 150ms var(--ease); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-primary { background: var(--lime-700); color: #000; box-shadow: 0 12px 26px -14px rgba(111,140,0,0.55); }
.btn-primary:hover { background: var(--lime-500); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--bg-100); color: var(--gray-1000); border: 1px solid var(--ga-400); }
.btn-secondary:hover { background: var(--gray-100); }
.btn-tertiary { background: transparent; color: var(--gray-1000); }
.btn-tertiary:hover { background: var(--gray-100); }
.btn[disabled], .btn.is-disabled { background: var(--gray-100); color: var(--gray-700); cursor: not-allowed; transform: none; }
.btn.is-loading { color: var(--gray-700); pointer-events: none; }
.btn .spin { width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.18); border-top-color: rgba(0,0,0,0.55); animation: spin 0.7s linear infinite; }

/* ============ forms ============ */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--gray-1000); display: flex; align-items: center; gap: 5px; }
.field-label .req { color: var(--red-800); }
.field-label .optional { color: var(--gray-700); font-weight: 400; }
.input {
  height: 48px; width: 100%; border-radius: var(--r-full);
  background: var(--gray-100); border: 1px solid var(--ga-300);
  color: var(--gray-1000); font-family: inherit; font-size: 16px;
  padding-inline: 18px; transition: border-color 150ms var(--ease), background 150ms var(--ease);
}
.input::placeholder { color: var(--gray-600); }
.input:hover { border-color: var(--gray-400); background: var(--bg-100); }
.input:focus-visible, .input:focus { outline: none; border-color: var(--lime-900); background: var(--bg-100); box-shadow: var(--focus-ring); }
textarea.input { height: auto; min-height: 88px; border-radius: var(--r-md); padding-block: 13px; padding-inline: 16px; resize: none; line-height: 1.5; }
.input.input--error { border-color: var(--red-800); background: var(--red-100); }
.field-help { font-size: 12px; color: var(--gray-800); line-height: 1.45; }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--red-800); font-weight: 500; }
.field-error svg { width: 14px; height: 14px; flex: none; }

/* password */
.pwd { position: relative; }
.pwd .input { padding-inline-end: 56px; }
.pwd .toggle {
  position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
  height: 36px; padding-inline: 10px; border: none; background: transparent;
  color: var(--gray-800); font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 8px;
}
.pwd .toggle:hover { background: var(--gray-100); color: var(--gray-1000); }
.pwd .toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pwd-reqs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; }
.pwd-reqs li { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--gray-800); }
.pwd-reqs li svg { width: 13px; height: 13px; flex: none; color: var(--gray-500); }
.pwd-reqs li.ok { color: var(--green-900); }
.pwd-reqs li.ok svg { color: var(--green-700); }

/* checkbox */
.checkbox { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; min-height: 44px; padding-block: 4px; }
.checkbox .box { width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--gray-500); background: var(--bg-100); display: flex; align-items: center; justify-content: center; color: transparent; transition: all 150ms var(--ease); }
.checkbox.checked .box { background: var(--lime-500); border-color: var(--lime-500); color: #000; }
.checkbox .box svg { width: 13px; height: 13px; }
.checkbox .ctext { font-size: 13px; color: var(--gray-900); line-height: 1.5; }
.checkbox .ctext a { color: var(--lime-900); font-weight: 500; text-decoration: none; }

/* chips (multi-select) */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 15px; border-radius: var(--r-full);
  background: var(--bg-100); border: 1px solid var(--ga-400);
  font-size: 14px; font-weight: 500; color: var(--gray-1000); cursor: pointer;
  transition: all 150ms var(--ease);
}
.chip:hover { background: var(--gray-100); }
.chip .ci { width: 18px; height: 18px; color: var(--gray-800); }
.chip .tick { width: 16px; height: 16px; display: none; color: #000; }
.chip.chip--selected { background: var(--lime-500); border-color: var(--lime-500); color: #000; }
.chip.chip--selected .ci { color: #2b3500; }
.chip.chip--selected .tick { display: block; }

/* big card-style multi-select (equipment) */
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px;
  border-radius: var(--r-md); background: var(--bg-100); border: 1px solid var(--ga-400); cursor: pointer;
  transition: all 150ms var(--ease);
}
.opt:hover { background: var(--gray-100); }
.opt .oi { width: 38px; height: 38px; border-radius: 10px; flex: none; background: var(--gray-1000); color: var(--lime-500); display: flex; align-items: center; justify-content: center; }
.opt .oi svg { width: 19px; height: 19px; }
.opt .ot { flex: 1; }
.opt .ot .otit { font-size: 14px; font-weight: 600; letter-spacing: -0.1px; }
.opt .ot .osub { font-size: 12px; color: var(--gray-900); margin-top: 1px; }
.opt .obox { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid var(--gray-500); display: flex; align-items: center; justify-content: center; color: transparent; }
.opt.sel { border-color: var(--lime-500); background: var(--lime-100); }
.opt.sel .obox { background: var(--lime-500); border-color: var(--lime-500); color: #000; }
.opt.sel .obox svg { width: 13px; height: 13px; }

/* OTP */
.otp { display: flex; gap: 9px; direction: ltr; justify-content: center; }
.otp-cell {
  width: 46px; height: 56px; border-radius: 14px;
  background: var(--gray-100); border: 1px solid var(--ga-300);
  font-family: 'Geist Mono', monospace; font-size: 24px; font-weight: 600; color: var(--gray-1000);
  text-align: center; display: flex; align-items: center; justify-content: center;
}
.otp-cell.filled { border-color: var(--gray-500); background: var(--bg-100); }
.otp-cell.active { border-color: var(--lime-900); box-shadow: var(--focus-ring); }
.otp-cell.err { border-color: var(--red-800); background: var(--red-100); }

/* stepper */
.stepper { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.chev { width: 40px; height: 40px; border-radius: var(--r-full); border: 1px solid var(--ga-400); background: var(--bg-100); display: flex; align-items: center; justify-content: center; color: var(--gray-1000); cursor: pointer; flex: none; }
.chev:hover { background: var(--gray-100); }
.chev svg { width: 19px; height: 19px; }
[dir="rtl"] .chev svg { transform: scaleX(-1); }   /* mirror back-arrow in RTL */
.stepper .track { flex: 1; }
.stepper .track .meta { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 500; color: var(--gray-800); margin-bottom: 6px; }
.stepper .track .meta .mono { font-family: 'Geist Mono', monospace; }
.stepper .bar { height: 6px; border-radius: var(--r-full); background: var(--gray-200); overflow: hidden; }
.stepper .bar > span { display: block; height: 100%; background: var(--lime-500); border-radius: var(--r-full); }

/* banner */
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); font-size: 13px; line-height: 1.45; margin-bottom: 16px; }
.banner svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.banner.info { background: var(--lime-100); border: 1px solid var(--ga-400); color: var(--lime-1000); }
.banner.info svg { color: var(--lime-900); }
.banner.warn { background: var(--amber-100); border: 1px solid var(--ga-400); color: var(--amber-900); }
.banner.warn svg { color: var(--amber-600); }
.banner.error { background: var(--red-100); border: 1px solid var(--ga-400); color: var(--red-800); }
.banner.error svg { color: var(--red-800); }
.banner b { font-weight: 600; }

/* divider with label */
.div-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--gray-700); font-size: 12px; }
.div-or::before, .div-or::after { content: ""; flex: 1; height: 1px; background: var(--ga-300); }

/* SSO buttons */
.sso { display: flex; gap: 10px; }
.sso .sso-btn { flex: 1; height: 48px; border-radius: var(--r-full); border: 1px solid var(--ga-400); background: var(--bg-100); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--gray-1000); cursor: pointer; }
.sso .sso-btn:hover { background: var(--gray-100); }
.sso .sso-btn svg { width: 18px; height: 18px; }

/* auth screen layout helpers */
.auth-head { margin: 10px 0 22px; }
.auth-head h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.7px; line-height: 1.2; }
.auth-head p { font-size: 13.5px; color: var(--gray-900); margin-top: 7px; line-height: 1.5; }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--gray-900); margin-top: 18px; }
.auth-foot a, .auth-foot .link { font-weight: 500; }

/* full-screen centered (splash / biometric) */
.fs-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 0 30px; }

/* loader dots */
.dots { display: flex; gap: 6px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-500); animation: bounce 1.2s var(--ease) infinite; }
.dots span:nth-child(2) { animation-delay: .15s; }
.dots span:nth-child(3) { animation-delay: .3s; }

/* ===== reference-style auth: dark photo hero + white sheet ===== */
.screen.auth { background: #0b0d09; }
.auth-hero {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(10,12,8,0.30) 0%, rgba(10,12,8,0.52) 48%, rgba(10,12,8,0.92) 100%),
    url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=800&q=70') center/cover no-repeat,
    #0b0d09;
}
.auth-top { position: absolute; top: 60px; inset-inline: 24px; z-index: 3; display: flex; align-items: center; gap: 9px; }
.auth-top .name { color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -0.4px; }
.auth-top .mf-logo { width: 26px; height: 15px; }

.welcome-center { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 24px; padding: 0 30px 270px; text-align: center; }
.welcome-center .wc-logo { display: flex; align-items: center; gap: 12px; }
.welcome-center .wc-logo .name { color: #fff; font-weight: 700; font-size: 26px; letter-spacing: -0.8px; }
.welcome-center .wc-logo .mf-logo { width: 50px; height: 28px; }
.welcome-center h1 { color: #fff; font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -0.2px; }
.mf-ai { color: var(--lime-500); }

.dots-nav { display: flex; gap: 6px; justify-content: center; }
.dots-nav span { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.45); }
.dots-nav span.on { width: 18px; background: #fff; }

.sheet {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 5;
  background: #fff; border-top-left-radius: 30px; border-top-right-radius: 30px;
  padding: 22px 22px 26px; box-shadow: 0 -16px 50px rgba(0,0,0,0.30);
  display: flex; flex-direction: column;
}
.sheet.tall { top: 128px; overflow-y: auto; }
.sheet.tall::-webkit-scrollbar { width: 0; }
.sheet-header { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; margin-bottom: 6px; }
.sheet-header .sh-back { width: 38px; height: 38px; border-radius: 50%; background: var(--gray-100); border: 1px solid var(--ga-300); display: inline-flex; align-items: center; justify-content: center; color: var(--gray-1000); cursor: pointer; }
.sheet-header .sh-back svg { width: 18px; height: 18px; }
[dir="rtl"] .sheet-header .sh-back svg { transform: scaleX(-1); }
.sheet-header .sh-title { text-align: center; font-size: 15px; font-weight: 600; color: var(--gray-1000); }
.auth-heading { font-size: 22px; font-weight: 700; letter-spacing: -0.6px; line-height: 1.25; color: var(--gray-1000); margin: 14px 0 20px; }
.btn-dark { background: var(--gray-1000); color: #fff; box-shadow: 0 12px 26px -12px rgba(10,10,10,0.55); }
.btn-dark:hover { background: #1d1d1d; }
.legal { font-size: 12px; color: var(--gray-700); text-align: center; line-height: 1.6; margin-top: 18px; max-width: 280px; margin-inline: auto; }
.legal a { color: var(--gray-1000); font-weight: 600; text-decoration: none; }
.home-ind { width: 134px; height: 5px; border-radius: 99px; background: var(--gray-1000); opacity: 0.8; margin: 16px auto 0; }
.sheet-grab { width: 40px; height: 5px; border-radius: 99px; background: var(--gray-300); margin: 0 auto 18px; }

/* ===== full-bleed "Get Started" landing — photo + centred logo + CTA ===== */
.getstarted { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding: 0 30px 20px; }
.getstarted .gs-mark { width: 54px; height: 30px; margin-bottom: 26px; }
.getstarted h1 { color: #fff; font-size: 31px; font-weight: 800; line-height: 1.14; letter-spacing: -0.6px; }
.getstarted .gs-sub { color: rgba(255,255,255,0.72); font-size: 15px; line-height: 1.5; margin: 14px 0 28px; }
.getstarted .gs-cta { width: 100%; height: 58px; font-size: 17px; font-weight: 600; }
.getstarted .gs-foot { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 20px; }
.getstarted .gs-foot a { color: var(--lime-500); font-weight: 700; text-decoration: none; }
.getstarted .home-ind { background: rgba(255,255,255,0.85); margin-top: 18px; }
/* Get Started uses its own hero image (only this screen, via :has) */
.screen.auth:has(.getstarted) .auth-hero {
  background:
    linear-gradient(180deg, rgba(10,12,8,0.12) 0%, rgba(10,12,8,0.42) 52%, rgba(10,12,8,0.92) 100%),
    url("getstarted-hero.png") center/cover no-repeat,
    #0b0d09;
}
/* Welcome uses its own hero image (only this screen, via :has) */
.screen.auth:has(.welcome-center) .auth-hero {
  background:
    linear-gradient(180deg, rgba(10,12,8,0.12) 0%, rgba(10,12,8,0.40) 50%, rgba(10,12,8,0.94) 100%),
    url("ChatGPT Image Jun 21, 2026, 06_27_55 PM.png") center/cover no-repeat,
    #0b0d09;
}

/* ===== splash logomark — switchable animation variants ===== */
.mf-anim { transform-origin: center; transform-box: border-box; will-change: transform, filter; }
.mf-anim .bar, .mf-anim .stroke { transform-box: fill-box; }
.mf-anim .bar { transform-origin: center bottom; }
.mf-anim .stroke { transform-origin: center; }
/* child-based variants share the idle breathe loop on the root */
.mf-anim.v-assemble { animation: mfGlow 3.4s ease-in-out 1.25s infinite; }

/* 1 — Assemble: staggered rise + pop (spine → outer → chevrons) */
.mf-anim.v-assemble .bar    { opacity: 0; animation: mfRise 0.62s var(--ease) forwards; }
.mf-anim.v-assemble .stroke { opacity: 0; animation: mfPop 0.60s var(--ease) forwards; }
.mf-anim.v-assemble .b2 { animation-delay: 0.02s; }
.mf-anim.v-assemble .b4 { animation-delay: 0.02s; }
.mf-anim.v-assemble .b1 { animation-delay: 0.15s; }
.mf-anim.v-assemble .b3 { animation-delay: 0.15s; }
.mf-anim.v-assemble .s-lime  { animation-delay: 0.30s; }
.mf-anim.v-assemble .s-cream { animation-delay: 0.44s; }

/* 2 — Spring: whole-mark scale + rotate overshoot */
.mf-anim.v-spring { animation: mfSpring 0.85s cubic-bezier(.18,.8,.25,1.2) both, mfGlow 3.4s ease-in-out 1.3s infinite; }
.mf-anim.v-spring .bar, .mf-anim.v-spring .stroke { opacity: 1; }

/* 3 — Reveal: left-to-right wipe */
.mf-anim.v-reveal { animation: mfWipe 0.8s var(--ease) both, mfGlow 3.4s ease-in-out 1.3s infinite; }
.mf-anim.v-reveal .bar, .mf-anim.v-reveal .stroke { opacity: 1; }

/* 4 — Equalizer: bars rise to form the mark, then a calm voice-wave ripples
   left→right through them forever. Bars only dip below full height (never
   overshoot), so the logo stays intact — like a listening assistant. */
.mf-anim.v-eq { animation: mfGlowSoft 3.2s ease-in-out infinite; }
.mf-anim.v-eq .bar { opacity: 1; }
.mf-anim.v-eq .b1 { animation: mfBarUp .5s var(--ease) .00s both, mfWave 1.7s ease-in-out .60s infinite; }
.mf-anim.v-eq .b2 { animation: mfBarUp .5s var(--ease) .08s both, mfWave 1.7s ease-in-out .73s infinite; }
.mf-anim.v-eq .b4 { animation: mfBarUp .5s var(--ease) .16s both, mfWave 1.7s ease-in-out .86s infinite; }
.mf-anim.v-eq .b3 { animation: mfBarUp .5s var(--ease) .24s both, mfWave 1.7s ease-in-out .99s infinite; }
.mf-anim.v-eq .stroke  { opacity: 0; animation: mfPop .55s var(--ease) .34s forwards; }
.mf-anim.v-eq .s-cream { animation-delay: .46s; }

/* 5 — Focus: blur + fade to sharp */
.mf-anim.v-blur { animation: mfBlur 0.85s ease both, mfGlow 3.4s ease-in-out 1.35s infinite; }
.mf-anim.v-blur .bar, .mf-anim.v-blur .stroke { opacity: 1; }

/* 6 — Converge: each piece flies in from the screen edge — lime M from the top,
   white M from the bottom, side bars from left & right — meeting in the centre.
   overflow:visible lets the pieces travel outside the small SVG box. */
.mf-anim.v-converge { animation: mfGlow 3.4s ease-in-out 1.8s infinite; overflow: visible; }
/* the zoom rides on the wrapper div (SVG-root scaling is unreliable) */
.splash-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; transform-origin: center; }
.splash-stage.is-zoom { animation: mfConvZoom 1.6s ease-in-out both; }
/* shimmer: a light sweep masked to the exact logo shape (M + bars), so the shine
   rides on the logo silhouette only — not a box. Fires after it assembles, loops. */
.splash-stage::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 124px; height: 68px; transform: translate(-50%, -50%);
  background: linear-gradient(110deg, transparent 36%, rgba(255,255,255,0.95) 50%, transparent 64%);
  background-size: 240% 100%; background-position: 170% 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='75 23 100 55'%3E%3Crect x='76.66' y='41.51' width='6.39' height='21.02'/%3E%3Crect x='87.26' y='30.79' width='6.64' height='39.38'/%3E%3Crect x='166.95' y='41.51' width='6.39' height='21.02'/%3E%3Crect x='156.42' y='30.79' width='6.64' height='39.38'/%3E%3Cpath d='M125.05,61.19c-.16,0-.32-.03-.46-.11-.13-.06-.25-.15-.34-.26l-16.23-12.96h-9.78c-.59,0-1.08-.48-1.08-1.08V26.2c0-.59,.48-1.08,1.08-1.08h4.49c.59,0,1.08,.48,1.08,1.08v14.84h6.13c.25,0,.47,.09,.67,.24l14.47,11.46,14.44-11.44c.19-.15,.43-.24,.67-.24h6.12v-14.84c0-.59,.48-1.08,1.08-1.08h4.49c.59,0,1.08,.48,1.08,1.08v20.59c0,.59-.48,1.08-1.08,1.08h-9.77l-16.37,13.06c-.19,.15-.43,.24-.67,.24h-.01Z'/%3E%3Cpath d='M125.05,75.37c-.16,0-.31-.03-.46-.11-.14-.06-.26-.15-.34-.27l-18.37-14.77h-2.07v14.04c0,.59-.48,1.08-1.08,1.08h-4.49c-.59,0-1.08-.48-1.08-1.08v-20.59c0-.59,.48-1.08,1.08-1.08h8.16c.25,0,.48,.09,.68,.24l17.98,14.53,17.95-14.51c.16-.13,.36-.22,.57-.24l.22-.02h.12l7.95,.02c.59,0,1.08,.48,1.08,1.08v20.59c0,.59-.48,1.08-1.08,1.08h-4.49c-.59,0-1.08-.48-1.08-1.08v-14.04h-2.07l-18.51,14.88c-.19,.16-.43,.24-.68,.24h.01Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='75 23 100 55'%3E%3Crect x='76.66' y='41.51' width='6.39' height='21.02'/%3E%3Crect x='87.26' y='30.79' width='6.64' height='39.38'/%3E%3Crect x='166.95' y='41.51' width='6.39' height='21.02'/%3E%3Crect x='156.42' y='30.79' width='6.64' height='39.38'/%3E%3Cpath d='M125.05,61.19c-.16,0-.32-.03-.46-.11-.13-.06-.25-.15-.34-.26l-16.23-12.96h-9.78c-.59,0-1.08-.48-1.08-1.08V26.2c0-.59,.48-1.08,1.08-1.08h4.49c.59,0,1.08,.48,1.08,1.08v14.84h6.13c.25,0,.47,.09,.67,.24l14.47,11.46,14.44-11.44c.19-.15,.43-.24,.67-.24h6.12v-14.84c0-.59,.48-1.08,1.08-1.08h4.49c.59,0,1.08,.48,1.08,1.08v20.59c0,.59-.48,1.08-1.08,1.08h-9.77l-16.37,13.06c-.19,.15-.43,.24-.67,.24h-.01Z'/%3E%3Cpath d='M125.05,75.37c-.16,0-.31-.03-.46-.11-.14-.06-.26-.15-.34-.27l-18.37-14.77h-2.07v14.04c0,.59-.48,1.08-1.08,1.08h-4.49c-.59,0-1.08-.48-1.08-1.08v-20.59c0-.59,.48-1.08,1.08-1.08h8.16c.25,0,.48,.09,.68,.24l17.98,14.53,17.95-14.51c.16-.13,.36-.22,.57-.24l.22-.02h.12l7.95,.02c.59,0,1.08,.48,1.08,1.08v20.59c0,.59-.48,1.08-1.08,1.08h-4.49c-.59,0-1.08-.48-1.08-1.08v-14.04h-2.07l-18.51,14.88c-.19,.16-.43,.24-.68,.24h.01Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  mix-blend-mode: screen; pointer-events: none; opacity: 0;
}
/* shimmer only runs once .go is (re)applied — kept in sync with the entrance */
.splash-stage.go::after { animation: mfShine 3.2s ease-in-out 1.9s infinite; }
@keyframes mfShine {
  0%   { background-position: 170% 0; opacity: 0; }
  10%  { opacity: 1; }
  45%  { background-position: -70% 0; opacity: 1; }
  50%, 100% { background-position: -70% 0; opacity: 0; }
}
.mf-anim.v-converge .bar, .mf-anim.v-converge .stroke { opacity: 0; }
.mf-anim.v-converge .bar { transform-origin: center; }   /* scale from own centre while flying in */
.mf-anim.v-converge .s-lime  { animation: mfDropTop    1.45s cubic-bezier(.2,.9,.25,1) 0.00s both; }
.mf-anim.v-converge .s-cream { animation: mfRiseBottom 1.45s cubic-bezier(.2,.9,.25,1) 0.00s both; }
.mf-anim.v-converge .b2 { animation: mfFromLeft  1.40s cubic-bezier(.2,.9,.25,1) 0.14s both; }
.mf-anim.v-converge .b1 { animation: mfFromLeft  1.40s cubic-bezier(.2,.9,.25,1) 0.20s both; }
.mf-anim.v-converge .b4 { animation: mfFromRight 1.40s cubic-bezier(.2,.9,.25,1) 0.14s both; }
.mf-anim.v-converge .b3 { animation: mfFromRight 1.40s cubic-bezier(.2,.9,.25,1) 0.20s both; }

@keyframes mfRise   { 0% { opacity:0; transform: translateY(6px) scaleY(0.35);} 55%{ opacity:1;} 100%{ opacity:1; transform: translateY(0) scaleY(1);} }
@keyframes mfPop    { 0% { opacity:0; transform: translateY(4px) scale(0.72);} 60%{ opacity:1;} 100%{ opacity:1; transform: translateY(0) scale(1);} }
@keyframes mfGlow   { 0%,100%{ transform: scale(1); filter: drop-shadow(0 0 5px rgba(204,255,10,0));} 50%{ transform: scale(1.03); filter: drop-shadow(0 0 18px rgba(204,255,10,0.40));} }
@keyframes mfSpring { 0% { opacity:0; transform: scale(0.2) rotate(-8deg);} 60%{ opacity:1; transform: scale(1.08) rotate(2deg);} 100%{ opacity:1; transform: scale(1) rotate(0);} }
@keyframes mfWipe   { 0% { opacity:.25; clip-path: inset(0 100% 0 0);} 100%{ opacity:1; clip-path: inset(0 0 0 0);} }
/* equalizer: bars grow from the baseline, then a smooth wave dips them in turn */
@keyframes mfBarUp { 0%{ transform: scaleY(0); } 100%{ transform: scaleY(1); } }
@keyframes mfWave  { 0%,100%{ transform: scaleY(1); } 30%{ transform: scaleY(.46); } 62%{ transform: scaleY(.9); } }
@keyframes mfGlowSoft { 0%,100%{ filter: drop-shadow(0 0 6px rgba(204,255,10,.12)); } 50%{ filter: drop-shadow(0 0 16px rgba(204,255,10,.34)); } }
@keyframes mfBlur   { 0% { opacity:0; filter: blur(10px); transform: scale(1.14);} 100%{ opacity:1; filter: blur(0); transform: scale(1);} }
/* converge: whole mark zooms down from full-screen size; halves top/bottom, bars sides */
@keyframes mfConvZoom   { 0%{ transform: scale(5); } 100%{ transform: scale(1); } }
@keyframes mfDropTop    { 0%{ opacity:0; transform: translateY(-360px) scale(4); } 12%{ opacity:1; } 100%{ opacity:1; transform: translateY(0) scale(1); } }
@keyframes mfRiseBottom { 0%{ opacity:0; transform: translateY(360px) scale(4); }  12%{ opacity:1; } 100%{ opacity:1; transform: translateY(0) scale(1); } }
@keyframes mfFromLeft   { 0%{ opacity:0; transform: translateX(-260px) scale(4); } 12%{ opacity:1; } 100%{ opacity:1; transform: translateX(0) scale(1); } }
@keyframes mfFromRight  { 0%{ opacity:0; transform: translateX(260px) scale(4); }  12%{ opacity:1; } 100%{ opacity:1; transform: translateX(0) scale(1); } }

/* splash wordmark — fades up only after the logo animation finishes */
.splash-name { opacity: 0; animation: mfNameIn 0.55s var(--ease) 1.65s both; }
@keyframes mfNameIn { 0%{ opacity:0; transform: translateY(12px); } 100%{ opacity:1; transform: translateY(0); } }

/* animation switcher control */
.anim-switch { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 1320px; margin: 0 auto 22px; }
.as-btn { font-family: inherit; font-size: 13px; font-weight: 500; color: var(--gray-900); background: var(--bg-100); border: 1px solid var(--ga-400); padding: 8px 16px; border-radius: var(--r-full); cursor: pointer; transition: all 150ms var(--ease); }
.as-btn:hover { background: var(--gray-100); }
.as-btn.is-on { background: var(--lime-500); color: #000; border-color: var(--lime-500); }
.as-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce { 0%,100%{ transform: translateY(0); opacity:.5;} 50%{ transform: translateY(-6px); opacity:1;} }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .mf-anim .bar, .mf-anim .stroke, .splash-name { opacity: 1 !important; } }
@media (max-width: 820px) { body { padding: 40px 16px 56px; } .page-head h1 { font-size: 30px; line-height: 36px; letter-spacing: -1.4px; } }

/* ============================================================
   SECTION 02 — TODAY & PLANS  (light app shell)
   Same light design system as the rest of the app, with a few
   deliberate DARK accents: the bottom nav pill, the workout hero
   card, plan-card icon tiles and the day-number / ring cores.
   Lime = the selected/active colour; dark = structural accents.
   ============================================================ */

/* scroll body padding — clears the floating nav / action bar */
.l-pad { padding: 2px 18px 112px; }
.l-pad.acts { padding-bottom: 104px; }

/* greeting header */
.l-top { display: flex; align-items: center; gap: 11px; padding: 4px 0 14px; }
.l-top .av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--lime-500); }
.l-top .greet { flex: 1; min-width: 0; }
.l-top .greet .g1 { font-size: 11.5px; color: var(--gray-900); }
.l-top .greet .g2 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.4px; color: var(--gray-1000); margin-top: 2px; }
.l-top .ibtn { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-100); border: 1px solid var(--ga-400); display: flex; align-items: center; justify-content: center; color: var(--gray-1000); flex: none; position: relative; box-shadow: var(--shadow-card); }
.l-top .ibtn svg { width: 20px; height: 20px; }
.l-top .ibtn .ndot { position: absolute; top: 10px; inset-inline-end: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-900); border: 2px solid var(--bg-100); }

/* streak pill */
.l-streak { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--amber-900); background: var(--amber-100); border: 1px solid var(--ga-400); padding: 5px 10px; border-radius: var(--r-full); flex: none; }
.l-streak svg { width: 13px; height: 13px; color: var(--amber-600); }

/* big tab title + in-app bar */
.l-title { font-size: 27px; font-weight: 800; letter-spacing: -1px; color: var(--gray-1000); }
.l-tsub { font-size: 13px; color: var(--gray-900); margin-top: 2px; }
.l-bar { display: flex; align-items: center; gap: 10px; padding: 4px 0 10px; }
.l-bar .lt { flex: 1; text-align: center; font-size: 16px; font-weight: 800; letter-spacing: -0.3px; color: var(--gray-1000); }
.l-bar .ls { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--gray-800); min-width: 42px; text-align: center; }
[dir="rtl"] .l-bar .ls { font-family: 'Almarai', sans-serif; }

/* in-app section heading */
.l-h { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; gap: 10px; }
.l-h h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; color: var(--gray-1000); }
.l-h .more { font-size: 12.5px; font-weight: 600; color: var(--lime-900); background: none; border: none; font-family: inherit; cursor: pointer; padding: 0; }

/* AI badge */
.ai-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--lime-900); background: var(--lime-100); border: 1px solid var(--ga-400); padding: 3px 9px 3px 7px; border-radius: var(--r-full); }
.ai-badge svg { width: 12px; height: 12px; }

/* progress card (lime-tinted) + dark ring */
.prog-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 12px 0 8px; background: none; border: none; box-shadow: none; }
.prog-card .ring { width: 132px; height: 132px; margin-bottom: 14px; }
.prog-card .ring > span { width: 104px; height: 104px; font-size: 30px; letter-spacing: -0.5px; }
.prog-card .pc-k { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; color: var(--gray-1000); }
.prog-card .pc-s { font-size: 12.5px; color: var(--gray-900); margin-top: 3px; }
.ring { width: 66px; height: 66px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--lime-500) calc(var(--p,0) * 1%), var(--gray-200) 0); }
.ring > span { width: 52px; height: 52px; border-radius: 50%; background: var(--gray-1000); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: #fff; }

/* stat cards (light, clean) */
.l-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.l-stat { background: var(--bg-100); border: 1px solid var(--ga-400); border-radius: var(--r-lg); padding: 15px; box-shadow: var(--shadow-card); }
.l-stat .ls-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--lime-100); color: var(--lime-900); display: flex; align-items: center; justify-content: center; }
.l-stat .ls-ic svg { width: 19px; height: 19px; }
.l-stat .ls-val { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; color: var(--gray-1000); margin-top: 12px; }
.l-stat .ls-val small { font-size: 12px; font-weight: 600; color: var(--gray-700); }
.l-stat .ls-lab { font-size: 12.5px; color: var(--gray-900); margin-top: 2px; }
.l-stat .ls-bar { height: 6px; border-radius: 99px; background: var(--gray-200); margin-top: 11px; overflow: hidden; }
.l-stat .ls-bar > i { display: block; height: 100%; background: var(--lime-500); border-radius: 99px; }

/* hero workout card (DARK accent) */
.l-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 198px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; box-shadow: var(--shadow-hero); }
.l-hero .lh-bg { position: absolute; inset: 0; background-size: cover; background-position: center 22%; }
.l-hero .lh-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,6,0.05) 0%, rgba(8,10,6,0.36) 72%, rgba(8,10,6,0.92) 100%); }
.l-hero > .lh-row, .l-hero > .lh-title, .l-hero > .lh-sub, .l-hero > .lh-cta { position: relative; z-index: 2; }
.l-hero .lh-row { display: flex; gap: 6px; margin-bottom: auto; }
.l-hero .pill.glass { font-size: 11px; font-weight: 600; padding: 4px 10px; }
.l-hero .lh-title { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.15; margin-top: 12px; }
.l-hero .lh-sub { color: rgba(255,255,255,0.8); font-size: 12.5px; margin-top: 4px; margin-bottom: 13px; }
.l-hero .lh-cta { height: 40px; border-radius: var(--r-full); background: var(--lime-500); color: #000; font-weight: 600; font-size: 13px; letter-spacing: -0.1px; font-family: inherit; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; align-self: flex-start; padding: 0 16px; }
.l-hero .lh-cta svg { width: 15px; height: 15px; }
.pill.glass { background: rgba(255,255,255,0.18); color: #fff; border-color: rgba(255,255,255,0.28); }

/* check rows (today meals/exercises) */
.l-check { display: flex; align-items: center; gap: 13px; padding: 13px 14px; background: var(--bg-100); border: 1px solid var(--ga-400); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.l-check + .l-check { margin-top: 9px; }
.l-check .lc-box { width: 24px; height: 24px; border-radius: 8px; border: 1.6px solid var(--gray-400); flex: none; display: flex; align-items: center; justify-content: center; color: transparent; }
.l-check .lc-box svg { width: 13px; height: 13px; }
.l-check.done .lc-box { background: var(--lime-500); border-color: var(--lime-500); color: #000; }
.l-check .lc-body { flex: 1; min-width: 0; }
.l-check .lc-name { font-size: 14px; font-weight: 600; color: var(--gray-1000); }
.l-check.done .lc-name { color: var(--gray-700); text-decoration: line-through; }
.l-check .lc-sub { font-size: 12px; color: var(--gray-900); margin-top: 1px; }
.l-check .lc-fig { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--gray-1000); flex: none; }
.l-check .lc-fig small { font-weight: 500; color: var(--gray-700); font-size: 11px; }

/* macro tally */
.l-macros { display: flex; gap: 9px; }
.l-macro { flex: 1; background: var(--bg-100); border: 1px solid var(--ga-400); border-radius: var(--r-md); padding: 12px 8px; text-align: center; box-shadow: var(--shadow-card); }
.l-macro .lm-val { font-size: 18px; font-weight: 800; color: var(--gray-1000); letter-spacing: -0.3px; }
.l-macro .lm-val small { font-size: 10px; font-weight: 600; color: var(--gray-700); }
.l-macro .lm-lab { font-size: 10.5px; color: var(--gray-900); margin-top: 3px; }
.l-macro .lm-bar { height: 4px; border-radius: 99px; background: var(--gray-200); margin-top: 8px; overflow: hidden; }
.l-macro .lm-bar > i { display: block; height: 100%; background: var(--lime-500); border-radius: 99px; }

/* day strip */
.l-days { display: flex; gap: 7px; }
.l-days .d { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0; border-radius: 15px; background: var(--bg-100); border: 1px solid var(--ga-400); cursor: pointer; }
.l-days .d .dn { font-size: 10.5px; color: var(--gray-700); }
.l-days .d .dd { font-size: 14px; font-weight: 700; color: var(--gray-1000); }
.l-days .d.on { background: var(--lime-500); border-color: var(--lime-500); }
.l-days .d.on .dn, .l-days .d.on .dd { color: #000; }

/* history rows w/ conic ring */
.l-hist { display: flex; align-items: center; gap: 13px; padding: 12px 14px; background: var(--bg-100); border: 1px solid var(--ga-400); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.l-hist + .l-hist { margin-top: 9px; }
.l-hist .mr { width: 42px; height: 42px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--lime-500) calc(var(--p,0) * 1%), var(--gray-200) 0); }
.l-hist .mr > span { width: 33px; height: 33px; border-radius: 50%; background: var(--bg-100); display: flex; align-items: center; justify-content: center; font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 700; color: var(--gray-1000); }
[dir="rtl"] .l-hist .mr > span { font-family: 'Almarai', sans-serif; }
.l-hist .hb { flex: 1; }
.l-hist .hd { font-size: 14px; font-weight: 700; color: var(--gray-1000); }
.l-hist .hs { font-size: 12px; color: var(--gray-900); margin-top: 1px; }
.l-hist .htag { margin-inline-start: auto; }

/* segmented control */
.l-seg { display: flex; gap: 4px; background: var(--gray-100); border: 1px solid var(--ga-300); border-radius: var(--r-full); padding: 4px; }
.l-seg button { flex: 1; height: 38px; border: none; background: transparent; color: var(--gray-900); font-family: inherit; font-size: 14px; font-weight: 700; border-radius: var(--r-full); cursor: pointer; }
.l-seg button.on { background: var(--lime-500); color: #000; }

/* plan cards (light, DARK icon tile) */
.l-plan { display: flex; align-items: center; gap: 13px; background: var(--bg-100); border: 1px solid var(--ga-400); border-radius: var(--r-lg); padding: 15px; box-shadow: var(--shadow-card); }
.l-plan + .l-plan, .l-gen + .l-plan, .l-plan + .l-gen { margin-top: 11px; }
.l-plan .pi { width: 46px; height: 46px; border-radius: 13px; flex: none; background: var(--gray-1000); color: var(--lime-500); display: flex; align-items: center; justify-content: center; }
.l-plan .pi svg { width: 22px; height: 22px; }
.l-plan .pb { flex: 1; min-width: 0; }
.l-plan .pt { font-size: 15px; font-weight: 800; color: var(--gray-1000); letter-spacing: -0.2px; }
.l-plan .pm { font-size: 12px; color: var(--gray-900); margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.l-plan .pchev { color: var(--gray-600); flex: none; }
[dir="rtl"] .l-plan .pchev svg { transform: scaleX(-1); }
.l-plan.locked .pi { background: var(--gray-200); color: var(--gray-600); }
.l-plan.locked .pt { color: var(--gray-700); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-full); white-space: nowrap; }
.badge svg { width: 11px; height: 11px; }
.badge.active { background: var(--lime-100); color: var(--lime-900); }
.badge.arch { background: var(--gray-200); color: var(--gray-800); }
.badge.type { background: var(--gray-100); color: var(--gray-900); border: 1px solid var(--ga-300); }
.badge.pro { background: var(--amber-100); color: var(--amber-900); }

/* generate-new CTA card */
.l-gen { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1.5px dashed var(--ga-400); border-radius: var(--r-lg); background: var(--bg-100); cursor: pointer; width: 100%; font-family: inherit; text-align: start; box-shadow: var(--shadow-card); }
.l-gen .gi { width: 44px; height: 44px; border-radius: 13px; background: var(--lime-500); color: #000; display: flex; align-items: center; justify-content: center; flex: none; }
.l-gen .gi svg { width: 22px; height: 22px; }
.l-gen .gt { font-size: 14px; font-weight: 800; color: var(--gray-1000); }
.l-gen .gs { font-size: 12px; color: var(--gray-900); margin-top: 2px; }

/* collapsible day cards (plan detail) */
.l-day { background: var(--bg-100); border: 1px solid var(--ga-400); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card); }
.l-day + .l-day { margin-top: 10px; }
.l-dh { display: flex; align-items: center; gap: 11px; padding: 14px 15px; cursor: pointer; }
.l-dh .dno { width: 30px; height: 30px; border-radius: 9px; background: var(--gray-1000); color: var(--lime-500); font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
[dir="rtl"] .l-dh .dno { font-family: 'Almarai', sans-serif; }
.l-dh .dt { flex: 1; min-width: 0; }
.l-dh .dday { font-size: 14px; font-weight: 800; color: var(--gray-1000); }
.l-dh .dsub { font-size: 12px; color: var(--gray-900); margin-top: 1px; }
.l-dh .dchev { color: var(--gray-600); transition: transform 150ms var(--ease); flex: none; }
.l-day.open .dchev { transform: rotate(180deg); }
.l-db { padding: 0 15px 13px; }
.l-ex { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--ga-200); }
.l-ex .eb { flex: 1; min-width: 0; }
.l-ex .en { font-size: 13.5px; font-weight: 600; color: var(--gray-1000); }
.l-ex .em { font-size: 12px; color: var(--gray-900); margin-top: 2px; }
.l-ex .ef { margin-inline-start: auto; font-family: 'Geist Mono', monospace; font-size: 13px; font-weight: 500; color: var(--gray-900); flex: none; white-space: nowrap; }
[dir="rtl"] .l-ex .ef { font-family: 'Almarai', sans-serif; }
.l-note { display: flex; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--lime-100); font-size: 12px; line-height: 1.45; color: var(--lime-1000); }
.l-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--lime-900); }

/* meal rows (diet) — clean: icon + name + kcal, one muted slot line; macros summarised at the day total */
.l-meal { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ga-200); }
.l-meal .mic { width: 38px; height: 38px; border-radius: 11px; flex: none; background: var(--gray-100); color: var(--lime-900); display: flex; align-items: center; justify-content: center; }
.l-meal .mic svg { width: 18px; height: 18px; }
.l-meal .mb { flex: 1; min-width: 0; }
.l-meal .mt { display: flex; align-items: baseline; gap: 10px; }
.l-meal .mn { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--gray-1000); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-meal .mk { font-size: 14px; font-weight: 700; color: var(--gray-1000); flex: none; }
.l-meal .mk small { font-size: 10.5px; font-weight: 500; color: var(--gray-700); }
.l-meal .ms { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.l-meal .mslot { font-size: 12px; color: var(--gray-900); }
.l-meal .mtag { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: auto; font-size: 11px; font-weight: 600; color: var(--lime-900); }
.l-meal .mtag svg { width: 11px; height: 11px; }
/* day total — kcal + one muted macro summary */
.l-dtot { display: flex; justify-content: space-between; align-items: center; padding-top: 13px; margin-top: 6px; border-top: 1px solid var(--ga-300); }
.l-dtot .dt-l { font-size: 12.5px; font-weight: 600; color: var(--gray-1000); }
.l-dtot .dt-m { font-size: 11.5px; color: var(--gray-800); margin-top: 2px; }
.l-dtot b { font-size: 17px; font-weight: 800; color: var(--gray-1000); }

/* bottom action bar (detail/generator) */
.l-acts { position: absolute; inset-inline: 0; bottom: 0; z-index: 15; padding: 14px 18px 18px; display: flex; gap: 10px; align-items: center; background: linear-gradient(180deg, rgba(250,250,247,0) 0%, var(--bg-200) 30%); }
.l-acts .btn { flex: 1; }
.iact { width: 48px; height: 48px; flex: none; border-radius: var(--r-full); border: 1px solid var(--ga-400); background: var(--bg-100); color: var(--gray-1000); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-card); }
.iact svg { width: 19px; height: 19px; }
.iact.danger { color: var(--red-800); }

/* generating / job-progress */
.l-genwrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 34px; gap: 6px; }
.l-orb { width: 100px; height: 100px; position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.l-orb .rng { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--gray-200); border-top-color: var(--lime-500); animation: spin 1s linear infinite; }
.l-orb .core { width: 72px; height: 72px; border-radius: 50%; background: var(--gray-1000); display: flex; align-items: center; justify-content: center; color: var(--lime-500); }
.l-orb .core svg { width: 32px; height: 32px; }
.l-genwrap h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; color: var(--gray-1000); }
.l-genwrap p { font-size: 13.5px; color: var(--gray-900); line-height: 1.55; max-width: 252px; }
.l-elapsed { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--gray-700); margin-top: 6px; }
[dir="rtl"] .l-elapsed { font-family: 'Almarai', sans-serif; }

/* bottom nav — DARK pill (signature dark accent on light) */
.l-nav { position: absolute; inset-inline: 14px; bottom: 16px; z-index: 20; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 7px; background: var(--gray-1000); border-radius: var(--r-full); box-shadow: 0 18px 40px -16px rgba(10,10,10,0.45); }
.l-nav .t { display: flex; align-items: center; justify-content: center; gap: 0; height: 40px; min-width: 40px; padding: 0; border-radius: var(--r-full); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.62); border: none; font-family: inherit; font-size: 0; cursor: pointer; transition: background 150ms var(--ease), color 150ms var(--ease); }
.l-nav .t .ti { display: flex; align-items: center; justify-content: center; flex: none; }
.l-nav .t .ti svg { width: 20px; height: 20px; }
.l-nav .t.on { background: var(--lime-500); color: #000; gap: 7px; padding: 0 16px; font-size: 13px; font-weight: 600; letter-spacing: -0.2px; }
.l-nav .t.on .ti svg { width: 19px; height: 19px; }

/* ============================================================
   SECTION 02 — REFERENCE DASHBOARD RE-SKIN  (Today + History)
   Layout borrowed from the reference tracker app: avatar + D/W/M
   top bar, oversized hero ring on a DARK panel, horizontal stat
   chips, and a DARK weekly line-chart card. MaxFit content only;
   light canvas + dark feature panels = the "mixed" look.
   ============================================================ */

/* top bar: avatar (start) · D/W/M (centred) · more (end) */
.l-top.tbar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; }
.l-top.tbar .av { justify-self: start; }
.l-top.tbar .ibtn { justify-self: end; }

/* D/W/M segmented — compact, dark active chip */
.dwm { display: inline-flex; gap: 3px; background: var(--gray-100); border: 1px solid var(--ga-300); border-radius: var(--r-full); padding: 3px; }
.dwm button { height: 30px; min-width: 36px; padding: 0 13px; border: none; background: transparent; color: var(--gray-800); font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 0.3px; border-radius: var(--r-full); cursor: pointer; }
.dwm button.on { background: var(--gray-1000); color: #fff; }

/* hero ring — oversized DARK panel, rounded-cap lime arc, day-nav */
.l-ring { position: relative; border-radius: var(--r-lg); background: radial-gradient(120% 95% at 50% 6%, #20231d 0%, var(--gray-1000) 62%); box-shadow: var(--shadow-hero); padding: 24px 18px 26px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.l-ring::before { content: ""; position: absolute; top: 50%; left: 50%; width: 250px; height: 250px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(204,255,10,0.16) 0%, rgba(204,255,10,0) 66%); }
.l-ring .lr-svg { position: relative; z-index: 1; width: 214px; height: 214px; display: block; }
.l-ring .lr-track { fill: none; stroke: rgba(255,255,255,0.10); stroke-width: 7; }
.l-ring .lr-prog { fill: none; stroke: var(--lime-500); stroke-width: 7; stroke-linecap: round; }
.l-ring .lr-c { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.l-ring .lr-lab { font-size: 12px; font-weight: 700; letter-spacing: 0.2px; color: var(--lime-500); }
.l-ring .lr-big { font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1.02; color: #fff; margin-top: 5px; }
[dir="rtl"] .l-ring .lr-big { letter-spacing: -1px; }
.l-ring .lr-sub { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 5px; }
.l-ring .lr-prev { position: absolute; z-index: 3; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.l-ring .lr-prev svg { width: 18px; height: 18px; }
[dir="rtl"] .l-ring .lr-prev svg { transform: scaleX(-1); }

/* horizontal stat chips — light cards, bleed to the screen edges */
.stat-chips { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; margin: 16px -18px 4px; padding: 2px 18px; scrollbar-width: none; }
.stat-chips::-webkit-scrollbar { display: none; height: 0; width: 0; }
.stat-chip { scroll-snap-align: start; flex: 0 0 auto; width: 116px; background: var(--bg-100); border: 1px solid var(--ga-400); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 14px; }
.stat-chip .ch-val { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; color: var(--gray-1000); line-height: 1; }
.stat-chip .ch-val small { font-size: 11px; font-weight: 600; color: var(--gray-700); letter-spacing: 0; }
.stat-chip .ch-lab { font-size: 11.5px; color: var(--gray-900); margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-chip.streak { background: linear-gradient(150deg, var(--amber-100), var(--bg-100) 92%); border-color: var(--ga-400); }
.stat-chip.streak .ch-val { display: inline-flex; align-items: center; gap: 5px; color: var(--amber-900); }
.stat-chip.streak .ch-val svg { width: 17px; height: 17px; color: var(--amber-600); }
.stat-chip.streak .ch-lab { color: var(--amber-900); opacity: 0.8; }

/* weekly line-chart card — DARK accent (History) */
.chart-card { position: relative; border-radius: var(--r-lg); background: radial-gradient(120% 120% at 50% 0%, #1c1f19 0%, var(--gray-1000) 70%); box-shadow: var(--shadow-hero); padding: 15px 12px 11px; overflow: hidden; }
.chart-card .cc-top { display: flex; align-items: baseline; justify-content: space-between; padding: 0 6px 8px; }
.chart-card .cc-t { font-size: 13px; font-weight: 700; color: #fff; }
.chart-card .cc-s { font-family: 'Geist Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.55); }
[dir="rtl"] .chart-card .cc-s { font-family: 'Almarai', sans-serif; }
.chart-card .spark { width: 100%; height: auto; display: block; }
.chart-card .cc-days { display: flex; padding: 8px 2px 2px; }
.chart-card .cc-days span { flex: 1; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: rgba(255,255,255,0.5); }
.chart-card .cc-days span.on { color: var(--lime-500); }
