/* =====================================================================
   Waseet One — clickable app mockup · design system
   Blue-contrast identity: midnight navy chrome · cobalt brand · amber CTA
   All colours are tokens. Dark mode = [data-theme="dark"] on .phone.
   ===================================================================== */
:root{
  /* brand */
  --navy-950:#050E26; --navy-900:#071537; --navy-800:#0B1F4D; --navy-700:#132D6B;
  --brand:#1D4ED8; --brand-600:#1840B4; --brand-500:#2B5CF0; --brand-300:#7FA2FF; --brand-100:#DCE6FF; --brand-50:#EEF3FF;
  --amber:#FFB020; --amber-600:#E89A00; --amber-100:#FFEBC2; --amber-50:#FFF7E6;
  /* neutrals (light) */
  --bg:#F3F6FC; --surface:#FFFFFF; --surface-2:#F7F9FD; --line:#E2E8F3; --line-2:#CBD5E6;
  --ink:#0A1530; --ink-2:#2E3A57; --muted:#5F6B86; --faint:#94A0BA;
  /* status */
  --ok:#0E8A5F; --ok-50:#E3F6EE; --bad:#D92D20; --bad-50:#FDECEA; --warn:#B45309; --warn-50:#FEF3E2;
  --wa:#128C4A; --wa-50:#E3F5EA;
  /* shape + type */
  --r-xs:6px; --r-sm:10px; --r:14px; --r-lg:20px; --r-pill:999px;
  --sh-1:0 1px 2px rgba(10,21,48,.06),0 1px 1px rgba(10,21,48,.04);
  --sh-2:0 6px 18px rgba(10,21,48,.10);
  --sh-3:0 18px 40px rgba(5,14,38,.28);
  --font:'Cairo','IBM Plex Sans Arabic',system-ui,-apple-system,'Segoe UI',Tahoma,sans-serif;
  --status-h:46px; --tab-h:78px; --hdr-h:52px;
  /* stage (desktop presentation, always dark) */
  --stage:#040A1C; --stage-2:#0B1631; --stage-line:#1A2747; --stage-text:#D6DEF2; --stage-muted:#8A97B8;
}
.phone[lang="en"]{--font:'Plus Jakarta Sans','Cairo',system-ui,-apple-system,'Segoe UI',sans-serif}
.phone[data-theme="dark"]{
  --bg:#060C1D; --surface:#0E1730; --surface-2:#121D3A; --line:#1D2A4B; --line-2:#2A3A62;
  --ink:#EEF2FF; --ink-2:#C6D0EA; --muted:#93A0C2; --faint:#64729A;
  --brand:#5B86FF; --brand-600:#4573F5; --brand-500:#6E95FF; --brand-100:#1B2C5E; --brand-50:#14214A;
  --amber-100:#3B2C0A; --amber-50:#2A2008;
  --ok-50:#0B2A21; --bad-50:#3A1310; --warn-50:#33230A; --wa:#25B866; --wa-50:#0C2A1A;
  --sh-1:none; --sh-2:0 6px 18px rgba(0,0,0,.35);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{background:var(--stage);color:var(--stage-text);font-family:var(--font);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased;overflow:hidden}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:inherit}
input,select,textarea{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
svg{display:block}
:focus-visible{outline:2px solid var(--brand-500);outline-offset:2px;border-radius:6px}
bdi{unicode-bidi:isolate}

/* ---------------- stage + presenter panel ---------------- */
.stage{height:100dvh;display:grid;grid-template-columns:minmax(280px,360px) 1fr}
.panel{padding:30px 26px;border-inline-end:1px solid var(--stage-line);overflow:auto;display:flex;flex-direction:column;gap:22px;background:linear-gradient(180deg,#071334,#040A1C 60%)}
.panel .brand{display:flex;align-items:center;gap:12px}
.panel .brand b{font-size:22px;color:#fff;font-weight:700;letter-spacing:-.01em}
.panel .brand small{display:block;color:var(--stage-muted);font-size:12px;font-weight:400}
.panel h2{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--stage-muted);font-weight:600;margin-bottom:10px}
.panel p{color:var(--stage-muted);font-size:13px}
.panel ol{padding-inline-start:18px;display:grid;gap:7px;font-size:13px;color:var(--stage-text)}
.panel ol b{color:#fff}
.pseg{display:inline-flex;background:var(--stage-2);border:1px solid var(--stage-line);border-radius:10px;padding:3px;gap:3px}
.pseg button{padding:7px 12px;border-radius:7px;font-weight:600;color:var(--stage-muted);font-size:13px}
.pseg button[aria-pressed="true"]{background:#fff;color:var(--navy-900)}
.pbtn{padding:9px 12px;border:1px solid var(--stage-line);border-radius:10px;color:var(--stage-text);font-weight:600;font-size:13px}
.pbtn:hover{background:var(--stage-2)}
.pmap{display:grid;gap:2px}
.pmap .grp{font-size:11px;color:var(--amber);font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin:10px 0 4px}
.pmap button{padding:6px 8px;border-radius:7px;color:var(--stage-muted);font-size:13px;display:flex;gap:8px;align-items:baseline}
.pmap button .k{color:var(--brand-300);font-weight:600;font-size:11px;min-width:30px}
.pmap button[aria-current="true"],.pmap button:hover{color:#fff;background:var(--stage-2)}
.panel .foot{margin-top:auto;font-size:11px;color:var(--stage-muted)}
.stage-main{display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;padding:24px;overflow:hidden;background:radial-gradient(60% 50% at 50% 40%,#0C1D4A 0%,transparent 70%)}

/* ---------------- phone frame ---------------- */
.phone{width:390px;height:844px;background:var(--bg);color:var(--ink);border-radius:56px;position:relative;overflow:hidden;font-family:var(--font);
  box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 0 11px #0E1420,0 0 0 13px #2A3550;isolation:isolate}
.phone .island{position:absolute;top:11px;left:50%;transform:translateX(-50%);width:122px;height:35px;background:#000;border-radius:20px;z-index:90}
.phone .status{position:absolute;top:0;left:0;right:0;height:var(--status-h);display:flex;justify-content:space-between;align-items:center;padding:6px 32px 0;font-size:15px;font-weight:600;z-index:85;pointer-events:none;color:var(--status-c,var(--ink));direction:ltr}
.phone .status .r{display:flex;gap:6px;align-items:center;font-size:12px}
.phone .status .bat{width:25px;height:12px;border:1.5px solid currentColor;border-radius:4px;position:relative;opacity:.9}
.phone .status .bat::after{content:"";position:absolute;inset:1.5px;right:6px;background:currentColor;border-radius:1.5px}
.phone .homebar{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);width:136px;height:5px;border-radius:3px;background:var(--ink);opacity:.85;z-index:95;pointer-events:none}
.phone.on-dark .status{--status-c:#fff}

/* ---------------- views ---------------- */
.app{position:absolute;inset:0;overflow:hidden}
.view{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--bg)}
.view.enter{animation:vIn .28s cubic-bezier(.2,.8,.2,1)}
.view.enter-back{animation:vBack .24s cubic-bezier(.2,.8,.2,1)}
.view.fade{animation:fadeIn .2s ease}
.view.up{animation:vUp .3s cubic-bezier(.2,.8,.2,1)}
@keyframes vIn{from{transform:translateX(100%)}to{transform:none}}
[dir="rtl"] .view.enter{animation-name:vInR}
@keyframes vInR{from{transform:translateX(-100%)}to{transform:none}}
@keyframes vBack{from{transform:translateX(-14%);opacity:.6}to{transform:none;opacity:1}}
[dir="rtl"] .view.enter-back{animation-name:vBackR}
@keyframes vBackR{from{transform:translateX(14%);opacity:.6}to{transform:none;opacity:1}}
@keyframes vUp{from{transform:translateY(100%)}to{transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.view,.sheet,.backdrop,.dlg,.toast{animation:none!important}}

.body{flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;position:relative;scrollbar-width:none}
.body::-webkit-scrollbar{display:none}
.body.pad-tab{padding-bottom:calc(var(--tab-h) + 16px)}
.body.pad-cta{padding-bottom:110px}
.body.pad-top{padding-top:var(--status-h)}

/* ---------------- headers ---------------- */
.hdr{padding-top:var(--status-h);background:var(--surface);flex:0 0 auto;position:relative;z-index:5;border-bottom:1px solid var(--line)}
.hdr .bar{height:var(--hdr-h);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:4px;padding:0 8px}
.hdr .ttl{font-weight:700;font-size:17px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hdr .ttl small{display:block;font-size:11.5px;font-weight:400;color:var(--muted)}
.hdr .acts{display:flex;align-items:center;gap:2px;min-width:40px;justify-content:flex-end}
.hdr .acts.start{justify-content:flex-start}
.hdr.navy{background:var(--navy-900);color:#fff;border-bottom:0}
.hdr.navy .ttl small{color:#AFC0EA}
.hdr.clear{background:transparent;border-bottom:0;position:absolute;top:0;left:0;right:0}
.ib{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;position:relative;flex:0 0 auto}
.ib svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ib:active{background:rgba(127,127,127,.12)}
.ib.circle{background:rgba(5,14,38,.55);color:#fff;border-radius:50%;backdrop-filter:blur(6px)}
.ib .dot{position:absolute;top:6px;inset-inline-end:6px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--bad);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center;border:2px solid var(--surface)}
.hdr.navy .ib .dot{border-color:var(--navy-900)}
[dir="rtl"] .flip svg,[dir="rtl"] svg.flip{transform:scaleX(-1)}

/* brand home header */
.homehdr{background:linear-gradient(160deg,var(--navy-900) 0%,var(--navy-800) 60%,#163A8F 100%);color:#fff;padding:calc(var(--status-h) + 4px) 16px 16px;position:relative;overflow:hidden}
.homehdr::after{content:"";position:absolute;inset:auto -40px -60px auto;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(91,134,255,.35),transparent 65%);pointer-events:none}
.homehdr .top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;position:relative;z-index:1}
.logo{display:flex;align-items:center;gap:9px;font-weight:700;font-size:19px;letter-spacing:-.01em}
.logo .mk{width:34px;height:34px;border-radius:11px;background:var(--amber);display:grid;place-items:center;color:var(--navy-900);box-shadow:0 4px 12px rgba(255,176,32,.35)}
.logo .mk svg{width:22px;height:22px}
.logo small{display:block;font-size:10.5px;font-weight:400;color:#AFC0EA;letter-spacing:.02em}

/* search pill */
.search{display:flex;align-items:center;gap:10px;height:48px;border-radius:var(--r-pill);background:var(--surface);color:var(--ink);padding:0 6px 0 16px;box-shadow:var(--sh-2);position:relative;z-index:1;width:100%}
[dir="rtl"] .search{padding:0 16px 0 6px}
.search svg{width:20px;height:20px;color:var(--muted);stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round;flex:0 0 auto}
.search .ph{flex:1;color:var(--muted);font-size:14px;text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search input{flex:1;border:0;background:transparent;outline:0;font-size:15px;min-width:0}
.search .city{height:36px;padding:0 12px;border-radius:var(--r-pill);background:var(--brand-50);color:var(--brand);font-weight:600;font-size:12.5px;display:flex;align-items:center;gap:5px;white-space:nowrap}
.search .city svg{width:15px;height:15px;color:var(--brand);stroke:var(--brand)}
.search.flat{box-shadow:none;background:var(--surface-2);border:1px solid var(--line)}

/* ---------------- tab bar ---------------- */
.tabbar{position:absolute;left:0;right:0;bottom:0;height:var(--tab-h);background:var(--surface);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);align-items:start;padding-top:9px;z-index:30;box-shadow:0 -6px 20px rgba(10,21,48,.05)}
.tabbar button{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted);font-size:10.5px;font-weight:500;position:relative}
.tabbar button svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tabbar button[aria-current="true"]{color:var(--brand);font-weight:700}
.tabbar button[aria-current="true"] svg{stroke-width:2.2}
.tabbar .badge{position:absolute;top:-4px;inset-inline-start:calc(50% + 4px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--bad);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center;border:2px solid var(--surface)}
.tabbar .fab{transform:translateY(-26px);gap:6px}
.tabbar .fab .disc{width:52px;height:52px;border-radius:17px;background:var(--amber);display:grid;place-items:center;box-shadow:0 8px 20px rgba(232,154,0,.45),0 0 0 5px var(--surface);transform:rotate(45deg)}
.tabbar .fab .disc svg{color:var(--navy-900);stroke:var(--navy-900);width:26px;height:26px;stroke-width:2.6;transform:rotate(-45deg)}
.tabbar .fab span{color:var(--ink);font-weight:700}
.postpill{position:absolute;bottom:24px;inset-inline-end:16px;z-index:31;height:50px;padding:0 18px 0 14px;border-radius:var(--r-pill);background:var(--amber);color:var(--navy-900);font-weight:700;display:flex;align-items:center;gap:8px;box-shadow:0 10px 24px rgba(232,154,0,.45);animation:fadeIn .2s}
.postpill svg{width:20px;height:20px;stroke:currentColor;stroke-width:2.6;fill:none;stroke-linecap:round}

/* ---------------- buttons ---------------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:50px;border-radius:var(--r);font-weight:700;font-size:15.5px;padding:0 18px;transition:transform .08s,background .15s;white-space:nowrap}
.btn:active{transform:scale(.98)}
.btn svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn.block{width:100%}
.btn.primary{background:var(--brand);color:#fff}
.btn.primary:hover{background:var(--brand-600)}
.btn.navy{background:var(--navy-900);color:#fff}
.phone[data-theme="dark"] .btn.navy{background:var(--brand-100);color:#fff}
.btn.amber{background:var(--amber);color:var(--navy-900)}
.btn.outline{border:1.5px solid var(--line-2);color:var(--ink);background:var(--surface)}
.btn.outline.brand{border-color:var(--brand);color:var(--brand)}
.btn.soft{background:var(--brand-50);color:var(--brand)}
.btn.ghost{color:var(--brand);height:40px;padding:0 10px}
.btn.wa{background:var(--wa);color:#fff}
.btn.danger{background:var(--bad);color:#fff}
.btn.danger-soft{background:var(--bad-50);color:var(--bad)}
.btn[disabled]{background:var(--line);color:var(--faint);cursor:not-allowed;box-shadow:none}
.btn.sm{height:38px;font-size:13.5px;padding:0 14px;border-radius:var(--r-sm)}
.btn.xs{height:30px;font-size:12px;padding:0 11px;border-radius:9px}
.btn.pill{border-radius:var(--r-pill)}
.btn .spin{width:18px;height:18px;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:rot .8s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}

/* ---------------- forms ---------------- */
.fld{display:grid;gap:7px;margin-bottom:16px}
.fld>label,.fld .lb{font-size:13px;font-weight:600;color:var(--ink-2);display:flex;justify-content:space-between;align-items:center}
.fld .lb .req{color:var(--bad)}
.fld .hint{font-size:12px;color:var(--muted)}
.fld .err{font-size:12px;color:var(--bad);font-weight:600}
.inp{width:100%;height:50px;border:1.5px solid var(--line);border-radius:var(--r-sm);background:var(--surface);padding:0 14px;font-size:15px;outline:0;transition:border .15s}
.inp:focus{border-color:var(--brand)}
textarea.inp{height:auto;min-height:110px;padding:12px 14px;resize:none;line-height:1.6}
.inp.pick{display:flex;align-items:center;justify-content:space-between;cursor:pointer;text-align:start}
.inp.pick.empty{color:var(--faint)}
.inp.pick svg{width:18px;height:18px;color:var(--muted);stroke:var(--muted);fill:none;stroke-width:2}
.inp.ro{background:var(--surface-2);color:var(--ink-2)}
.inpg{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:var(--r-sm);background:var(--surface);overflow:hidden}
.inpg:focus-within{border-color:var(--brand)}
.inpg .pre{padding:0 12px;height:50px;display:flex;align-items:center;gap:6px;background:var(--surface-2);border-inline-end:1px solid var(--line);font-weight:600;direction:ltr}
.inpg input{flex:1;border:0;height:50px;padding:0 14px;outline:0;background:transparent;font-size:16px;min-width:0}
.otp{display:flex;gap:10px;justify-content:center;direction:ltr}
.otp input{width:52px;height:60px;text-align:center;font-size:24px;font-weight:700;border:1.5px solid var(--line);border-radius:var(--r-sm);background:var(--surface);outline:0}
.otp input:focus{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-50)}
.seg{display:flex;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:3px;gap:3px}
.seg button{flex:1;height:38px;border-radius:9px;font-weight:600;font-size:13.5px;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--brand);box-shadow:var(--sh-1)}
.tgl{width:46px;height:28px;border-radius:14px;background:var(--line-2);position:relative;flex:0 0 auto;transition:background .15s}
.tgl::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:inset-inline-start .15s}
.tgl[aria-checked="true"]{background:var(--brand)}
.tgl[aria-checked="true"]::after{inset-inline-start:21px}
.chk{width:22px;height:22px;border-radius:7px;border:1.8px solid var(--line-2);display:grid;place-items:center;flex:0 0 auto;background:var(--surface)}
[aria-checked="true"]>.chk,.chk[aria-checked="true"]{background:var(--brand);border-color:var(--brand)}
[aria-checked="true"]>.chk::after,.chk[aria-checked="true"]::after{content:"";width:10px;height:5.5px;border-inline-start:2.4px solid #fff;border-bottom:2.4px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}
[dir="rtl"] [aria-checked="true"]>.chk::after{transform:rotate(45deg) translate(-1px,-1px) scaleX(-1)}
.radio{width:22px;height:22px;border-radius:50%;border:1.8px solid var(--line-2);flex:0 0 auto;display:grid;place-items:center}
[aria-checked="true"]>.radio{border-color:var(--brand)}
[aria-checked="true"]>.radio::after{content:"";width:11px;height:11px;border-radius:50%;background:var(--brand)}

/* ---------------- chips ---------------- */
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 16px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 28px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 28px),transparent 100%)}
.chips::-webkit-scrollbar{display:none}
.chip{height:36px;padding:0 14px;border-radius:var(--r-pill);border:1.5px solid var(--line);background:var(--surface);font-size:13px;font-weight:600;color:var(--ink-2);white-space:nowrap;display:inline-flex;align-items:center;gap:6px;flex:0 0 auto}
.chip svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.chip[aria-pressed="true"]{background:var(--navy-900);border-color:var(--navy-900);color:#fff}
.phone[data-theme="dark"] .chip[aria-pressed="true"]{background:var(--brand);border-color:var(--brand)}
.chip .n{font-size:11px;background:var(--amber);color:var(--navy-900);border-radius:9px;padding:0 6px;min-width:18px;height:18px;display:grid;place-items:center}
.chip.sm{height:30px;font-size:12px;padding:0 11px}
.chipwrap{display:flex;flex-wrap:wrap;gap:8px}

/* ---------------- sections ---------------- */
.sec{padding:18px 16px 4px}
.sech{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.sech h3{font-size:17px;font-weight:700;display:flex;align-items:center;gap:8px}
.sech h3 .ic{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:var(--amber-50);color:var(--amber-600)}
.sech h3 .ic svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2}
.sech .more{color:var(--brand);font-weight:600;font-size:13px;display:flex;align-items:center;gap:2px}
.sech .more svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2}
.hscroll{display:flex;gap:12px;overflow-x:auto;padding:0 16px 6px;scrollbar-width:none;scroll-snap-type:x mandatory}
.hscroll::-webkit-scrollbar{display:none}
.hscroll>*{scroll-snap-align:start;flex:0 0 auto}
.card{background:var(--surface);border-radius:var(--r);box-shadow:var(--sh-1);border:1px solid var(--line)}
.divider{height:8px;background:var(--bg)}
.hair{height:1px;background:var(--line)}

/* category tiles */
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:10px 8px}
.tile{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11.5px;font-weight:600;text-align:center;color:var(--ink-2);line-height:1.25}
.tile .tb{width:100%;aspect-ratio:1;border-radius:18px;display:grid;place-items:center;position:relative;overflow:hidden;background:var(--tint,var(--brand-50))}
.phone[data-theme="dark"] .tile .tb{background:color-mix(in srgb,var(--tint,#DCE6FF) 16%,var(--surface))}
.tile .ct{font-size:10.5px;color:var(--muted);font-weight:500;margin-top:-4px}
.tile .tb svg{width:58%;height:58%}
.tile .new{position:absolute;top:5px;inset-inline-end:5px;background:var(--amber);color:var(--navy-900);font-size:9px;font-weight:800;padding:1px 6px;border-radius:6px}

/* ---------------- listing cards ---------------- */
.art{position:relative;overflow:hidden;background:var(--surface-2)}
.art>svg{width:100%;height:100%}
img.ph{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none;user-select:none}
/* compact row (default feed — Haraj density) */
.lrow{display:grid;grid-template-columns:108px 1fr;gap:12px;padding:12px 16px;background:var(--surface);border-bottom:1px solid var(--line);position:relative;text-align:start;width:100%}
.lrow .art{width:108px;height:108px;border-radius:12px}
.lrow .info{min-width:0;display:flex;flex-direction:column;gap:3px}
.lrow .ttl{font-weight:600;font-size:14.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding-inline-end:28px}
.lrow .meta{font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.lrow .meta svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2}
.lrow .seller{font-size:12px;color:var(--ink-2);display:flex;align-items:center;gap:5px;margin-top:auto}
.lrow .fav{position:absolute;top:8px;inset-inline-end:8px}
.lrow.promo{background:linear-gradient(90deg,var(--amber-50),var(--surface) 70%)}
[dir="rtl"] .lrow.promo{background:linear-gradient(270deg,var(--amber-50),var(--surface) 70%)}
.lrow.viewed .ttl{color:var(--muted)}
/* large card */
.lcard{background:var(--surface);border-radius:var(--r);overflow:hidden;border:1px solid var(--line);box-shadow:var(--sh-1);margin:0 16px 14px;text-align:start;width:calc(100% - 32px);display:block}
.lcard .art{aspect-ratio:16/10}
.lcard .in{padding:12px 14px 14px;display:grid;gap:5px}
.lcard .ttl{font-weight:700;font-size:15.5px;line-height:1.35}
.lcard .attrs{display:flex;gap:6px;flex-wrap:wrap}
.lcard .attrs span{font-size:11.5px;background:var(--surface-2);border:1px solid var(--line);padding:2px 8px;border-radius:7px;color:var(--ink-2)}
.lcard .acts{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;margin-top:6px}
/* mini (carousel) */
.lmini{width:168px;background:var(--surface);border-radius:var(--r);overflow:hidden;border:1px solid var(--line);box-shadow:var(--sh-1);text-align:start;display:block}
.lmini .art{height:118px}
.lmini .in{padding:9px 10px 11px;display:grid;gap:3px}
.lmini .ttl{font-size:13px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:35px}
.lmini .meta{font-size:11px;color:var(--muted)}
/* image overlays */
.ov{position:absolute;display:flex;gap:5px;z-index:2}
.ov.ts{top:8px;inset-inline-start:8px}
.ov.te{top:8px;inset-inline-end:8px}
.ov.bs{bottom:8px;inset-inline-start:8px}
.ov.be{bottom:8px;inset-inline-end:8px}
.tag{height:22px;padding:0 8px;border-radius:7px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.tag svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.4}
.tag.feat{background:var(--amber);color:var(--navy-900)}
.tag.pin{background:var(--navy-900);color:#fff}
.tag.dark{background:rgba(5,14,38,.65);color:#fff;backdrop-filter:blur(4px)}
.tag.ok{background:var(--ok-50);color:var(--ok)}
.tag.brand{background:var(--brand-50);color:var(--brand)}
.tag.bad{background:var(--bad-50);color:var(--bad)}
.tag.warn{background:var(--warn-50);color:var(--warn)}
.tag.grey{background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
.sold-rib{position:absolute;top:14px;inset-inline-start:-34px;transform:rotate(-38deg);background:var(--bad);color:#fff;font-weight:800;font-size:12px;padding:3px 40px;z-index:3}
[dir="rtl"] .sold-rib{transform:rotate(38deg)}

/* price */
.price{font-weight:700;color:var(--ink);display:inline-flex;align-items:center;gap:5px;direction:ltr;unicode-bidi:isolate;font-size:16px;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.price .rs{width:.9em;height:1em;flex:0 0 auto}
.rs path{stroke:none!important;fill:currentColor}
.price.lg{font-size:24px}
.price.brand{color:var(--brand)}
.price .old{font-size:12px;color:var(--faint);text-decoration:line-through;font-weight:500}
.ptype{font-weight:700;font-size:14px;color:var(--brand)}
.ptype.offer{color:var(--warn)}

/* badges next to names */
.vb{color:#fff;display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;flex:0 0 auto}
.vb svg{width:10px;height:10px;color:#fff;stroke:#fff;fill:none;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.vb.id{background:var(--brand)}
.vb.biz{background:var(--amber-600)}
.vb.phone{background:var(--faint)}
.vbadge{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;padding:3px 9px 3px 4px;border-radius:var(--r-pill)}
[dir="rtl"] .vbadge{padding:3px 4px 3px 9px}
.vbadge.id{background:var(--brand-50);color:var(--brand)}
.vbadge.biz{background:var(--amber-50);color:var(--warn)}
.vbadge.phone{background:var(--surface-2);color:var(--muted)}
.vbadge.rega{background:var(--ok-50);color:var(--ok)}

/* avatar (no photos of people — initials) */
.av{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:15px;color:#fff;flex:0 0 auto;position:relative}
.av.sm{width:32px;height:32px;font-size:12px}
.av.xs{width:24px;height:24px;font-size:10px}
.av.lg{width:72px;height:72px;font-size:24px}
.av.sq{border-radius:14px}
.av .on{position:absolute;bottom:1px;inset-inline-end:1px;width:11px;height:11px;border-radius:50%;background:#22C55E;border:2px solid var(--surface)}

/* ---------------- menu rows ---------------- */
.mrow{display:flex;align-items:center;gap:13px;padding:14px 16px;background:var(--surface);border-bottom:1px solid var(--line);width:100%;text-align:start}
.mrow .mi{width:36px;height:36px;border-radius:11px;background:var(--brand-50);color:var(--brand);display:grid;place-items:center;flex:0 0 auto}
.mrow .mi svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mrow .ml{flex:1;min-width:0;font-weight:600;font-size:14.5px}
.mrow .ml small{display:block;font-weight:400;font-size:12px;color:var(--muted);margin-top:1px}
.mrow .mv{color:var(--muted);font-size:13px;display:flex;align-items:center;gap:6px}
.mrow .chev svg{width:18px;height:18px;color:var(--faint);stroke:var(--faint);fill:none;stroke-width:2}
[dir="rtl"] .mrow .chev svg{transform:scaleX(-1)}
.mgroup{margin:12px 16px;border-radius:var(--r);overflow:hidden;border:1px solid var(--line)}
.mgroup .mrow:last-child{border-bottom:0}
.mhead{padding:16px 20px 6px;font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.04em}

/* spec table + kv */
.specs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.spec{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:9px 12px}
.spec small{display:block;font-size:11.5px;color:var(--muted)}
.spec b{font-size:14px;font-weight:600}
.kv{display:grid;grid-template-columns:auto 1fr;font-size:13.5px;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.kv>*{padding:10px 12px;border-bottom:1px solid var(--line)}
.kv>:nth-last-child(-n+2){border-bottom:0}
.kv dt{color:var(--muted);background:var(--surface-2)}
.kv dd{font-weight:600;text-align:end}

/* stats */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px;text-align:center}
.stat b{display:block;font-size:18px;font-weight:700}
.stat small{font-size:11px;color:var(--muted)}

/* stepper */
.stepper{padding:10px 16px 12px;background:var(--surface);border-bottom:1px solid var(--line)}
.stepper .row{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:8px}
.stepper .row b{color:var(--ink)}
.stepper .bars{display:flex;gap:5px}
.stepper .bars i{flex:1;height:5px;border-radius:3px;background:var(--line)}
.stepper .bars i.on{background:var(--brand)}
.stepper .bars i.cur{background:var(--amber)}
.meter{height:8px;border-radius:4px;background:var(--line);overflow:hidden}
.meter i{display:block;height:100%;background:linear-gradient(90deg,var(--brand),var(--brand-500));border-radius:4px;transition:width .3s}

/* sticky bottom CTA bar */
.ctabar{position:absolute;left:0;right:0;bottom:0;padding:12px 16px 30px;background:var(--surface);border-top:1px solid var(--line);display:flex;gap:8px;z-index:20;box-shadow:0 -8px 24px rgba(10,21,48,.06)}
.ctabar .btn{flex:1;height:50px}
.ctabar .btn.sq{flex:0 0 50px;padding:0}

/* notices */
.note{display:flex;gap:10px;padding:12px 14px;border-radius:12px;font-size:13px;line-height:1.55;align-items:flex-start}
.note svg{width:18px;height:18px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:2;margin-top:1px}
.note.info{background:var(--brand-50);color:var(--ink-2)}
.note.info svg{color:var(--brand);stroke:var(--brand)}
.note.warn{background:var(--warn-50);color:var(--ink-2)}
.note.warn svg{color:var(--warn);stroke:var(--warn)}
.note.ok{background:var(--ok-50);color:var(--ink-2)}
.note.ok svg{color:var(--ok);stroke:var(--ok)}
.note.bad{background:var(--bad-50);color:var(--ink-2)}
.note.bad svg{color:var(--bad);stroke:var(--bad)}
.banner{border-radius:var(--r);padding:16px;color:#fff;background:linear-gradient(135deg,var(--navy-800),var(--brand));position:relative;overflow:hidden}
.banner h4{font-size:16px;font-weight:700;margin-bottom:4px}
.banner p{font-size:12.5px;opacity:.85;max-width:24ch}

/* empty + skeleton */
.empty{display:grid;justify-items:center;text-align:center;padding:56px 32px;gap:10px}
.empty .ill{width:120px;height:120px}
.empty h3{font-size:18px;font-weight:700}
.empty p{color:var(--muted);max-width:30ch;font-size:13.5px}
.skel{background:linear-gradient(90deg,var(--line) 0%,var(--surface-2) 40%,var(--line) 80%);background-size:300% 100%;animation:shim 1.2s linear infinite;border-radius:8px}
@keyframes shim{from{background-position:100% 0}to{background-position:-100% 0}}

/* chat */
.bub{max-width:78%;padding:9px 13px;border-radius:18px;font-size:14px;line-height:1.5;position:relative;word-wrap:break-word}
.bub .tm{display:block;font-size:10.5px;opacity:.7;margin-top:3px;text-align:end}
.bub.out{background:var(--brand);color:#fff;align-self:flex-end;border-end-end-radius:6px}
.bub.in{background:var(--surface);border:1px solid var(--line);align-self:flex-start;border-end-start-radius:6px}
.sysmsg{align-self:center;font-size:12px;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);padding:5px 12px;border-radius:var(--r-pill);display:flex;gap:6px;align-items:center}
.sysmsg svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2}
.composer{display:flex;align-items:flex-end;gap:8px;padding:10px 12px 30px;background:var(--surface);border-top:1px solid var(--line)}
.composer .box{flex:1;min-height:44px;border-radius:22px;background:var(--surface-2);border:1px solid var(--line);display:flex;align-items:center;padding:0 14px}
.composer .box input{flex:1;border:0;background:transparent;outline:0;font-size:15px;height:42px;min-width:0}
.composer .send{width:44px;height:44px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;flex:0 0 auto}
.composer .send svg{width:20px;height:20px;color:#fff;stroke:#fff;fill:none;stroke-width:2.2}
[dir="rtl"] .composer .send svg{transform:scaleX(-1)}

/* ---------------- overlays ---------------- */
.backdrop{position:absolute;inset:0;background:rgba(5,14,38,.55);z-index:60;animation:fadeIn .2s}
.sheet{position:absolute;left:0;right:0;bottom:0;max-height:88%;background:var(--surface);color:var(--ink);border-radius:24px 24px 0 0;z-index:61;display:flex;flex-direction:column;animation:vUp .3s cubic-bezier(.2,.8,.2,1);overflow:hidden;padding-bottom:22px}
.sheet .grab{width:40px;height:5px;border-radius:3px;background:var(--line-2);margin:9px auto 2px;flex:0 0 auto}
.sheet .sh{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;padding:4px 8px 8px;flex:0 0 auto}
.sheet .sh b{text-align:center;font-size:16.5px;font-weight:700}
.sheet .sh .x{width:36px;height:36px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;justify-self:end}
.sheet .sh .x svg{width:16px;height:16px;color:var(--ink-2);stroke:var(--ink-2);fill:none;stroke-width:2.4}
.sheet .sb{overflow-y:auto;flex:1;scrollbar-width:none}
.sheet .sf{padding:12px 16px 0;border-top:1px solid var(--line);display:flex;gap:8px;flex:0 0 auto}
.sheet.full{max-height:none;top:var(--status-h);border-radius:24px 24px 0 0}
.opt{display:flex;gap:12px;align-items:center;padding:13px 18px;border-bottom:1px solid var(--line);width:100%;text-align:start;font-size:14.5px}
.opt .t{flex:1;min-width:0}
.opt .t small{display:block;font-size:12px;color:var(--muted)}
.opt .ct{color:var(--muted);font-size:12.5px}
.opt svg.ic{width:20px;height:20px;color:var(--ink-2);stroke:var(--ink-2);fill:none;stroke-width:1.9}
.dlg{position:absolute;inset:0;z-index:62;display:grid;place-items:center;padding:28px;animation:fadeIn .18s}
.dlg .box{background:var(--surface);color:var(--ink);border-radius:22px;padding:22px 20px 16px;width:100%;max-width:330px;display:grid;gap:12px;box-shadow:var(--sh-3);text-align:center}
.dlg .ico{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;margin:0 auto 2px}
.dlg .ico svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:2}
.dlg h3{font-size:18px;font-weight:700}
.dlg p{font-size:13.5px;color:var(--muted);line-height:1.6}
.dlg .row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}
.toast{position:absolute;left:16px;right:16px;bottom:calc(var(--tab-h) + 14px);background:var(--navy-900);color:#fff;padding:13px 14px;border-radius:14px;font-size:13.5px;font-weight:600;z-index:80;animation:tIn .25s cubic-bezier(.2,.8,.2,1);display:flex;gap:10px;align-items:center;box-shadow:var(--sh-3)}
.toast svg{width:18px;height:18px;color:var(--amber);stroke:var(--amber);fill:none;stroke-width:2.4;flex:0 0 auto}
.toast .act{margin-inline-start:auto;color:var(--amber);font-weight:700}
@keyframes tIn{from{transform:translateY(20px);opacity:0}to{transform:none;opacity:1}}
.phone[data-theme="dark"] .toast{background:#1B2A55}

/* gallery (fullscreen viewer) */
.gal{position:absolute;inset:0;background:#000;z-index:70;display:flex;flex-direction:column;animation:fadeIn .2s;color:#fff}
.gal .gtop{padding:calc(var(--status-h) + 4px) 12px 8px;display:flex;justify-content:space-between;align-items:center}
.gal .gimg{flex:1;display:grid;place-items:center}
.gal .gimg .art{width:100%;aspect-ratio:4/3}
.gal .thumbs{display:flex;gap:6px;padding:12px 12px 34px;overflow-x:auto}
.gal .thumbs button{width:56px;height:56px;border-radius:10px;overflow:hidden;opacity:.5;flex:0 0 auto;border:2px solid transparent}
.gal .thumbs button[aria-current="true"]{opacity:1;border-color:var(--amber)}

/* utility */
.row{display:flex;align-items:center;gap:8px}
.grow{flex:1;min-width:0}
.col{display:grid;gap:8px}
.muted{color:var(--muted)}
.small{font-size:12px}
.b{font-weight:700}
.center{text-align:center}
.pad{padding:16px}
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}
.ell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ltr{direction:ltr;unicode-bidi:isolate}
.hidden{display:none!important}

/* ---------------- real phone: edge to edge ---------------- */
@media (max-width:760px){
  .stage{grid-template-columns:1fr}
  .panel{display:none}
  .stage-main{padding:0;background:none}
  .phone{width:100vw;height:100dvh;border-radius:0;box-shadow:none;--status-h:max(env(safe-area-inset-top),12px)}
  .phone .island,.phone .homebar,.phone .status{display:none}
  .phone input,.phone textarea,.phone select{font-size:16px} /* iOS zooms into smaller fields on focus */
}
@media (max-height:940px) and (min-width:761px){.phone{transform:scale(.92)}}
@media (max-height:860px) and (min-width:761px){.phone{transform:scale(.84)}}
@media (max-height:780px) and (min-width:761px){.phone{transform:scale(.76)}}
@media (max-height:690px) and (min-width:761px){.phone{transform:scale(.66)}}
