/* 4LIFEE v16 — public site: white / navy / sky blue (light). Dashboard: calmer slate-navy, larger logo, readable type. */
:root{--v16-ink:#0B1F4B;--v16-ink2:#1B3370;--v16-mute:#4A5B80;--v16-line:#D5E1F4;--v16-sky:#E6F0FF;--v16-sky2:#F3F8FF;--v16-blue:#4468B0;--v16-blue2:#6FA8FF;--v16-yl:#FFC20E}
/* ===== PUBLIC (light) ===== */
body.q,body.is-site{--bg:#fff;--bg2:#F3F8FF;--fg:#0B1F4B;--mute:#4A5B80;--line:#D5E1F4;--card:#fff;--acc:#4468B0;--on-acc:#fff;--inv:#0B1F4B;--on-inv:#fff;
 --l-bone:#F6FAFF;--l-paper:#fff;--l-ink:#0B1F4B;--l-graphite:#2A3C66;--l-mute:#4A5B80;--l-line:#D5E1F4;--l-line-2:#B9CBEA;--l-pine:#4468B0;--l-pine-2:#0B1F4B;--l-pine-tint:#E6F0FF;--l-brass:#4468B0;
 --wh:#0B1F4B;--ms:#4A5B80;--hl:#D5E1F4;--n0:#F6FAFF;--n1:#fff;--n2:#E6F0FF;--n3:#D5E1F4;color-scheme:light}
html:has(body.q),html:has(body.is-site){background:#fff!important;color-scheme:light}
html body.q,html body.is-site{background:#fff!important;color:#0B1F4B!important}
body.q h1,body.q h2,body.q h3,body.q h4,body.is-site h1,body.is-site h2,body.is-site h3{color:#0B1F4B}
body.q .q-hero,body.q .q-ph{background:linear-gradient(180deg,#EAF3FF 0%,#fff 100%)!important}
body.q .q-hero h1,body.q .q-ph h1{color:#0B1F4B!important}
body.q .q-hero h1 em,body.q .kt em,body.q h2 em{color:#4468B0!important;font-style:normal}
body.q .lead,body.q .q-p,body.q p{color:#33466F}
body.q .lab,body.q .sec-k{color:#4468B0!important}
body.q .q-sec,body.q .q-sec.ink{background:#fff!important;color:#0B1F4B!important;border-color:#D5E1F4!important}
body.q .q-sec.soft{background:#F3F8FF!important}
body.q .q-sec.ink h2,body.q .q-sec.ink h3,body.q .q-sec.ink p,body.q .q-sec.ink li{color:#0B1F4B!important}
body.q .q-sec.ink .q-p,body.q .q-sec.ink .q-note{color:#33466F!important}
/* header / footer */
body.q .q-head{background:rgba(255,255,255,.92)!important;border-bottom:1px solid #D5E1F4!important;backdrop-filter:blur(12px)}
body.q .q-head a,body.q .q-nav a{color:#0B1F4B!important}
body.q .q-nav a.on,body.q .q-nav a:hover{color:#4468B0!important}
body.q .q-brand svg,body.q .q-brand img{height:34px;width:auto}
body.q .q-foot{background:#0B1F4B!important;color:#DCE7FF!important}
body.q .q-foot a,body.q .q-foot p,body.q .q-foot h2,body.q .q-foot span{color:#DCE7FF!important}
body.q .q-foot a:hover{color:#FFC20E!important}
body.q .q-huge{color:rgba(255,255,255,.08)!important}
body.q .q-menu{background:#fff!important}body.q .q-menu a.m{color:#0B1F4B!important}
body.q .q-burger span{background:#0B1F4B!important}
/* buttons */
body.q .qb,body.q .b-btn,body.is-site .btn{border-radius:10px!important}
body.q .qb:not(.solid){background:#fff!important;color:#0B1F4B!important;border:1.5px solid #9DB6E4!important}
body.q .qb:not(.solid):hover{border-color:#4468B0!important;color:#4468B0!important}
body.q .qb.solid,body.is-site .btn:not(.line):not(.ghost){background:#FFC20E!important;color:#0B1F4B!important;border:1.5px solid #FFC20E!important;font-weight:800}
body.q .q-acts .lnk{color:#0B1F4B!important;font-weight:700}
body.q .q-acts .qb.sm{padding:9px 18px;font-size:15px}
/* cards, tables, details */
body.q .q-card,body.q .cc,body.q .q-chk>div,body.q .q-doc>div,body.q .pl-c,body.q .q-plan{background:#fff!important;border:1px solid #D5E1F4!important;color:#0B1F4B!important;box-shadow:0 10px 30px -22px rgba(11,31,75,.35)!important}
body.q .q-chk>div p,body.q .q-chk h3{color:#0B1F4B!important}
body.q table,body.q td,body.q th{color:#0B1F4B!important;border-color:#D5E1F4!important;background:transparent!important}
body.q thead th,body.q th{background:#EAF3FF!important}
body.q details{border-color:#D5E1F4!important}body.q summary{color:#0B1F4B!important;font-weight:700}
body.q .q-faq p{color:#33466F!important}
body.q input,body.q select,body.q textarea{background:#fff!important;color:#0B1F4B!important;border:1.5px solid #B9CBEA!important}
body.q .holo{background:linear-gradient(160deg,#0B1F4B,#1B3370)!important;border:0!important;border-radius:22px!important;box-shadow:0 30px 60px -30px rgba(11,31,75,.6)}
body.q .holo *{color:inherit}
/* prices: big, clear */
body.q .q-plans,body.q .q-pl{background:transparent!important}
body.q .q-pc,body.q [class*="q-price"],body.q .pr{color:#0B1F4B!important}
/* ===== ASSISTANT: bottom-right popup ===== */
.l4a{left:auto!important;right:16px!important;top:auto!important;bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;inset-inline:auto!important}
.l4a-fab{background:#0B1F4B!important;border:2px solid #FFC20E!important;color:#fff!important;padding:5px 16px 5px 6px!important;box-shadow:0 14px 34px -12px rgba(11,31,75,.7)!important}
.l4a-fab span{font-weight:700}
.l4a-p{left:auto!important;right:0!important;top:auto!important;bottom:68px!important;background:#fff!important;border:1px solid #B9CBEA!important;box-shadow:0 30px 70px -22px rgba(11,31,75,.55)!important}
.l4a-h{background:#0B1F4B!important}
.l4a-m.a{background:#EAF3FF!important;color:#0B1F4B!important}.l4a-m.u{background:#4468B0!important;color:#fff!important}
.l4a-q button{color:#0B1F4B!important;border-color:#9DB6E4!important;background:#fff!important}
.l4a-f input{background:#fff!important;color:#0B1F4B!important;border:1.5px solid #B9CBEA!important}
.l4a-f button{background:#4468B0!important}
.l4a-t{color:#4A5B80!important;padding:6px 14px 12px;font-size:12px}
.l4a-bub{position:absolute;right:6px;bottom:70px;max-width:250px;background:#fff;color:#0B1F4B;border:1px solid #B9CBEA;border-radius:16px 16px 4px 16px;padding:10px 14px;font:600 14px/1.7 inherit;box-shadow:0 16px 40px -18px rgba(11,31,75,.5);opacity:0;transform:translateY(8px);transition:.4s;pointer-events:none}
.l4a-bub.on{opacity:1;transform:none;pointer-events:auto}
.l4a-tg{position:absolute;right:calc(100% + 10px);bottom:6px;width:44px;height:44px;border-radius:50%;background:#229ED9;display:grid;place-items:center;box-shadow:0 10px 24px -10px rgba(34,158,217,.8)}
.l4a-tg svg{width:22px;height:22px;fill:#fff}
@media(max-width:560px){.l4a-tg{display:none}}
/* Tehran time strip */
.tz{display:inline-flex;align-items:center;gap:8px;font:700 13px/1 inherit;color:#33466F;background:#EAF3FF;border:1px solid #D5E1F4;border-radius:99px;padding:7px 14px}
.tz b{font-feature-settings:"tnum";color:#0B1F4B}
.tz i{width:8px;height:8px;border-radius:50%;background:#2DB872;box-shadow:0 0 0 4px rgba(45,184,114,.2)}
/* sign-in / sign-up chooser */
.st-h{padding:64px 0 24px;text-align:center}.st-h h1{font-size:clamp(30px,5vw,48px);margin:0 0 10px}.st-h p{color:#33466F;margin:0}
.st-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;max-width:980px;margin:24px auto 72px}
.st-c{display:flex;flex-direction:column;gap:10px;padding:28px;border-radius:18px;background:#fff;border:1.5px solid #D5E1F4;color:#0B1F4B;text-decoration:none;transition:.25s;box-shadow:0 14px 34px -26px rgba(11,31,75,.5)}
.st-c:hover{border-color:#4468B0;transform:translateY(-4px)}
.st-c b{font-size:22px}.st-c span{color:#4A5B80;line-height:1.9}.st-c em{margin-top:auto;font-style:normal;font-weight:800;color:#4468B0}
.st-c.hot{background:#0B1F4B;color:#fff;border-color:#0B1F4B}.st-c.hot span{color:#C9D8F6}.st-c.hot em{color:#FFC20E}
/* ===== DASHBOARD: calmer blue, bigger logo, readable ===== */
body.is-app,body.is-app .x{--n0:#0E1A33;--n1:#12213F;--n2:#182B4F;--n3:#20375F;--l-bone:#0E1A33;--l-paper:#14243F;--l-ink:#EEF3FF;--l-graphite:#D3DEF5;--l-mute:#B4C3E2;--l-line:rgba(220,231,255,.16);--l-pine-2:#2C4F8F;--l-pine-tint:#1B2F55;--ms:#B4C3E2;--hl:rgba(220,231,255,.16);--o1:#4C7BD9;--r1:#3D68BE}
html:has(body.is-app){background:#0E1A33!important}html body.is-app{background:#0E1A33!important;font-size:16.5px}
body.is-app .card,body.is-app .qd-c,body.is-app .qd-k,body.is-app .mc,body.is-app .xempty{background:#14243F!important}
body.is-app .xs{background:#0A1429!important}body.is-app .xs-h{background:#14243F!important}
body.is-app input,body.is-app select,body.is-app textarea{background:#0F1D38!important}
body.is-app .xhero,body.is-app .x-hero,body.is-app .today,body.is-app .qa-hero,body.is-app .xt-hero{background:linear-gradient(135deg,#1C3868,#12213F)!important}
body.is-app header.top{padding-block:12px}
body.is-app header.top .logo svg,body.is-app header.top .logo img,body.is-app header.top a[class*="brand"] svg,body.is-app header.top a[class*="brand"] img,body.is-app .brand svg,body.is-app .brand img{height:42px!important;width:auto!important}
body.is-app .xs-h b{font-size:18px}
body.is-app .xs nav a{font-size:16px;padding-block:11px}
/* exercise library: muscles chips + readable cards in both themes */
.xl-mc{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 6px}
.xl-mc span{font:700 12px/1 inherit;padding:6px 9px;border-radius:99px;white-space:nowrap}
.xl-mc .p{background:#4468B0;color:#fff}
.xl-mc .s{background:#E6F0FF;color:#2A4F9C}
.xl-mc em{display:block;font:400 10px/1.2 inherit;opacity:.8;margin-top:3px;font-style:normal}
.xl-mc.big span{font-size:14px;padding:9px 13px;border-radius:12px}
.xl-leg{font-size:13px;color:#4A5B80;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.xl-leg i{width:12px;height:12px;border-radius:50%;display:inline-block}.xl-leg i.p{background:#4468B0}.xl-leg i.s{background:#B9D2FA}
.xd-mus{padding:24px;border-radius:18px;border:1px solid #D5E1F4;background:#F3F8FF;color:#0B1F4B}
.xd-mus h3{margin:0 0 6px}
body.is-app .xl-c{background:#14243F!important;border:1px solid rgba(220,231,255,.18)!important;color:#EEF3FF!important}
body.is-app .xl-c h3,body.is-app .xl-c .xl-b h3{color:#fff!important}
body.is-app .xl-c small{color:#B4C3E2!important}
body.is-app .xl-mc .s{background:#233B66;color:#CFE0FF}
body.is-app .xl-f button,body.is-app .xl-reg button{background:#14243F!important;color:#EEF3FF!important;border:1px solid rgba(220,231,255,.22)!important}
body.is-app .xl-f button.on,body.is-app .xl-reg button.on,body.is-app .xl-f button[aria-pressed=true]{background:#FFC20E!important;color:#0B1F4B!important}
body.is-site .xl-c{background:#fff!important;border:1px solid #D5E1F4!important;color:#0B1F4B!important}
body.is-site .xl-c h3{color:#0B1F4B!important}body.is-site .xl-c small{color:#4A5B80!important}
body.is-site .xl-f button,body.is-site .xl-reg button{background:#fff!important;color:#0B1F4B!important;border:1px solid #B9CBEA!important}
body.is-site .xl-f button.on,body.is-site .xl-reg button.on{background:#0B1F4B!important;color:#fff!important}
body.is-site .xl-hero{background:linear-gradient(160deg,#EAF3FF,#fff)!important;border:1px solid #D5E1F4!important}
body.is-site .xl-hero h1{color:#0B1F4B!important}body.is-site .xl-lead,body.is-site .xl-note{color:#33466F!important}
/* logo on light header; footer keeps white logo */
body.q .q-head .q-brand .l,body.is-site header.top .l{display:block!important}body.q .q-head .q-brand .d,body.is-site header.top .d{display:none!important}
body.q .q-head .q-brand img,body.is-site header.top img{height:38px;width:auto}
body.q .q-foot .q-brand .l,body.q .q-foot .l{display:none!important}body.q .q-foot .d{display:block!important}
/* holo (navy card on a light page) */
body.q .holo,body.q .holo *{color:#fff}body.q .holo-clock b{color:#fff!important;text-shadow:0 0 18px rgba(255,255,255,.35)}body.q .holo-clock span,body.q .holo-clock i{color:#FFC20E!important}
body.q .holo-chips span{background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.3)!important;color:#fff!important}body.q .holo-chips b{color:#FFC20E!important}
/* plans: white cards, big navy prices */
body.q .pl14 .q-plan{background:#fff!important;border:1.5px solid #D5E1F4!important;box-shadow:0 14px 34px -26px rgba(11,31,75,.5)!important;color:#0B1F4B!important}
body.q .pl14 .q-plan.main{background:#0B1F4B!important;border-color:#0B1F4B!important;color:#fff!important}
body.q .pl14 .q-plan.main h3,body.q .pl14 .q-plan.main .pr,body.q .pl14 .q-plan.main li,body.q .pl14 .q-plan.main .cap{color:#fff!important}
body.q .pl14 .q-plan.main .pr small,body.q .pl14 .q-plan.main small{color:#C9D8F6!important}
body.q .pl14 h3{color:#0B1F4B!important;font-size:22px}
body.q .pl14 .pr{color:#0B1F4B!important;font-size:clamp(34px,3.6vw,44px)!important;font-weight:800!important}
body.q .pl14 .pr small{color:#4A5B80!important;font-size:14px!important;font-weight:600!important}
body.q .pl14 .cap,body.q .pl14 li{color:#2A3C66!important;font-size:15px}
body.q .pl14 .pi{color:#4468B0!important}
body.q .pl14 .q-bar{background:#E6F0FF!important}body.q .pl14 .q-bar i{background:#4468B0!important}
body.q .pl14 .flag{background:#FFC20E!important;color:#0B1F4B!important;font-weight:800}
body.q .pl14-t{background:#fff!important;border:1px solid #D5E1F4!important;border-radius:16px;overflow:auto}
body.q .pl14-t td,body.q .pl14-t th{color:#0B1F4B!important;font-size:15px}
body.q .pl14-t td:first-child{font-weight:700}
body.q .pl14-t .ck{color:#1C9B5B!important}
body.q .q-note,body.q .q-note a{color:#33466F!important}body.q .q-note a{color:#4468B0!important;text-decoration:underline}
body.q .q-chk{background:transparent!important}body.q .q-chk>div svg,body.q .q-chk svg{color:#4468B0!important;stroke:#4468B0}
body.q .q-steps li,body.q .q-two li,body.q .q-two h3{color:#0B1F4B!important}
body.q .q-steps li::before{border-color:#4468B0!important;background:#fff!important}
body.q .q-ask{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:28px}
body.q .q-ask .qb svg{fill:#0B1F4B}
body.q .q-empty{background:#F3F8FF!important;border:1px solid #D5E1F4!important;color:#0B1F4B!important}body.q .q-empty h3,body.q .q-empty p{color:#0B1F4B!important}

/* v16 auth + library hero fixes */
body.q .au,body.is-site .au{background:#fff;border:1px solid #dbe6f5;border-radius:22px;overflow:hidden;box-shadow:0 20px 50px -24px rgba(14,26,51,.25)}
body.q .au-f,body.is-site .au-f{background:#fff!important;color:#0e1a33!important}
body.q .au-f *,body.is-site .au-f *{--fg:#0e1a33}
body.q .au-f h1,body.q .au-f h2,body.q .au-f label,body.q .au-f b,body.is-site .au-f h1,body.is-site .au-f h2,body.is-site .au-f label{color:#0e1a33!important}
body.q .au-f p,body.q .au-f small,body.q .au-f .lead,body.is-site .au-f p,body.is-site .au-f small{color:#4b5b78!important}
body.q .au-f input,body.q .au-f select,body.is-site .au-f input,body.is-site .au-f select{background:#f4f8fe!important;color:#0e1a33!important;border:1.5px solid #c9d9f0!important;border-radius:12px}
body.q .au-f input:focus,body.is-site .au-f input:focus{border-color:#3b6fd4!important;outline:0;box-shadow:0 0 0 3px rgba(59,111,212,.18)}
body.q .au-f a,body.is-site .au-f a{color:#2a5bc0!important}
body.q .au-f .btn,body.q .au-f button[type=submit]{color:#0e1a33!important}
.au-v .au-h{color:#fff!important}.au-v .au-s{color:#d5dff2!important}
.au-steps li{color:#fff!important;opacity:1!important}.au-steps li i{color:#ffc20e!important}
/* library hero text on dark card */
body.q .xl-hero,body.is-site .xl-hero{background:#0e1a33;border-radius:22px;color:#fff}
body.q .xl-hero h1,body.is-site .xl-hero h1{color:#fff!important}
body.q .xl-hero .xl-lead,body.q .xl-hero .xl-k,body.is-site .xl-hero .xl-lead,body.is-site .xl-hero .xl-k{color:#cfdcf3!important}
/* assistant inset */
.l4a{right:max(16px,env(safe-area-inset-right,0px))!important;left:auto!important}

/* dashboard logo */
.xs-logo{display:block;padding:18px 18px 6px}.xs-logo img{display:block;height:24px;width:auto}

/* library + food bank: Noto Kufi for headings and descriptions */
@font-face{font-family:"Kufi";src:url(fonts/b/noto-kufi-arabic-arabic-300-normal.woff2) format("woff2");font-weight:300;font-display:swap;unicode-range:U+0600-06FF,U+200C-200E,U+2010-2011,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:"Kufi";src:url(fonts/b/noto-kufi-arabic-arabic-500-normal.woff2) format("woff2");font-weight:500;font-display:swap;unicode-range:U+0600-06FF,U+200C-200E,U+2010-2011,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:"Kufi";src:url(fonts/b/noto-kufi-arabic-arabic-700-normal.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+0600-06FF,U+200C-200E,U+2010-2011,U+FB50-FDFF,U+FE70-FEFF}
.xl-hero h1,.xl-k,.xl-desc,#sheetT,.fb-desc{font-family:"Kufi",Vazirmatn,system-ui,sans-serif}
.xl-hero h1{font-weight:700}
.xl-desc{margin:10px 0 0;font-size:14px;line-height:2;font-weight:300;color:inherit;opacity:.85;max-width:60ch}
.fb-desc{margin:0 0 12px;padding:0 4px;font-size:13px;line-height:2;font-weight:300;opacity:.8}
.xl-hero .xl-desc{color:#E3E8FA;opacity:.88}
.food .fd-i{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.food .fd-i .fimg{margin:0}
/* panel fixes (mobile) */
.l4a-bub{width:max-content;max-width:min(250px,calc(100vw - 32px))}
@media(max-width:980px){
 .xs-logo{display:none}
 body.is-app .l4a{bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
 .l4a-bub{bottom:64px}
}
@media(max-width:900px){.app>*{min-width:0}.side{max-width:100%}}
/* a transform on .x (entrance animation) turned it into the containing block of the fixed bottom nav and FAB: drop it */
.x{animation:none!important;transform:none!important}
@media(max-width:980px){.xs a.xs-logo{display:none}}
@media(max-width:980px){body.is-app .xs a span{white-space:normal;text-overflow:clip;overflow:visible;line-height:1.35;font-size:10.5px;text-align:center}body.is-app .xs a{min-width:76px;max-width:92px}}
