@font-face{font-family:'Plex';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/px-arabic-400.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Plex';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/px-latin-400.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Plex';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/px-arabic-500.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Plex';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/px-latin-500.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Plex';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/px-arabic-600.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Plex';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/px-latin-600.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Plex';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/px-arabic-700.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Plex';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/px-latin-700.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Layout: flag-stripe header with role switch (buyer / seller / admin) → role-specific views. Buyer: green hero + tiles + card grid. Seller & admin: dashboard tiles + tables + queues. Phone bottom bar per role. */
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/rx-arabic-400.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/rx-latin-400.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/rx-arabic-500.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/rx-latin-500.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/rx-arabic-600.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/rx-latin-600.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/rx-arabic-700.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/rx-latin-700.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* NileCube palette: Nile navy + gold, calm neutrals */
:root{
  --bg:#f6f7f9; --surface:#ffffff; --sunk:#eef1f5; --line:#e1e5ec;
  --fg:#141b2b; --muted:#5f6b7d;
  --brand:#1a3768; --brand2:#24477f; --brand-deep:#0f2347; --brand-ink:#ffffff; --brand-soft:#e9eef7;
  --gold:#c8962e; --gold-ink:#1a1405;
  --red:#b3261e; --red-soft:#f9e7e5; --sand:#9a6c12; --sand-soft:#f8f0dc; --blue:#2c6aa8; --blue-soft:#e7f0f9;
  --danger:#b3261e; --wa:#1e8a50; --footer:#0f1a30; --footer-fg:#d5dcea; --admin:#121d33;
  --flag-red:#b3261e; --flag-white:#e9e9e9; --flag-black:#2b2b2b;
  --shadow:0 6px 24px rgba(16,30,60,.07);
  --display:"Plex","Readex Pro",Tahoma,sans-serif;
  --body:"Plex",Tahoma,Arial,sans-serif;
  --brandfont:"Readex Pro",Tahoma,sans-serif;
  --r:16px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0d1220; --surface:#141b2c; --sunk:#1a2236; --line:#26304a; --fg:#e7ebf4; --muted:#9aa6bd;
  --brand:#8fb0ea; --brand2:#a6c1f0; --brand-deep:#0b1a38; --brand-ink:#0b1430; --brand-soft:#1b2846;
  --gold:#e2b65a; --gold-ink:#1a1405;
  --red:#e8776f; --red-soft:#3a1a18; --sand:#e2b65a; --sand-soft:#30271a; --blue:#86a9de; --blue-soft:#1a2536;
  --danger:#ef8a80; --wa:#4cbf7f; --footer:#090e1a; --footer-fg:#c9d2e4; --admin:#0c1426;
  --flag-red:#c9564f; --flag-white:#cfcfcf; --flag-black:#3a3a3a;
  --shadow:0 6px 24px rgba(0,0,0,.35); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0d1220; --surface:#141b2c; --sunk:#1a2236; --line:#26304a; --fg:#e7ebf4; --muted:#9aa6bd;
  --brand:#8fb0ea; --brand2:#a6c1f0; --brand-deep:#0b1a38; --brand-ink:#0b1430; --brand-soft:#1b2846;
  --gold:#e2b65a; --gold-ink:#1a1405;
  --red:#e8776f; --red-soft:#3a1a18; --sand:#e2b65a; --sand-soft:#30271a; --blue:#86a9de; --blue-soft:#1a2536;
  --danger:#ef8a80; --wa:#4cbf7f; --footer:#090e1a; --footer-fg:#c9d2e4; --admin:#0c1426;
  --flag-red:#c9564f; --flag-white:#cfcfcf; --flag-black:#3a3a3a;
  --shadow:0 6px 24px rgba(0,0,0,.35); color-scheme:dark}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{background:var(--bg);color:var(--fg);font-family:var(--body);font-size:15px;line-height:1.6;margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.wrap{max-width:1200px;margin:0 auto;padding-inline:20px}
h1,h2,h3{font-family:var(--display);text-wrap:balance}

header{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--surface);box-shadow:0 1px 0 var(--line)}
.flag{height:3px;display:flex}
.flag i{flex:1}.flag i:nth-child(1){background:var(--flag-red)}.flag i:nth-child(2){background:var(--flag-white)}.flag i:nth-child(3){background:var(--flag-black)}.flag i:nth-child(4){background:var(--brand)}
.top{display:flex;align-items:center;gap:16px;padding-block:10px}
.logo{font-family:var(--display);font-weight:600;font-size:22px;color:var(--brand);background:none;border:0;padding:0;white-space:nowrap;display:flex;align-items:center;gap:8px}
.logo .mark{width:34px;height:34px;border-radius:10px;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:18px}
.logo small{color:var(--fg);font-weight:600;font-size:22px}
.roles{display:flex;background:var(--sunk);border-radius:12px;padding:3px;gap:2px}
.roles button{border:0;background:none;border-radius:9px;padding:6px 12px;font-weight:600;color:var(--muted);white-space:nowrap}
.roles button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:0 1px 4px rgba(0,0,0,.08)}
.tnav{display:flex;gap:2px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.tnav button{border:0;background:none;padding:8px 12px;border-radius:9px;font-weight:600;color:var(--muted);white-space:nowrap}
.tnav button:hover{background:var(--sunk);color:var(--fg)}
.tnav button[aria-current="true"]{color:var(--brand);background:var(--brand-soft)}
.badge{background:var(--red);color:#fff;border-radius:99px;font-size:11px;padding:0 6px;margin-inline-start:4px;font-weight:600}
.who{font-size:13px;color:var(--muted);white-space:nowrap}
.demo{background:var(--sand-soft);font-size:12.5px;text-align:center;padding:5px 16px}
.btn{border:1px solid var(--line);background:var(--surface);border-radius:11px;padding:10px 16px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;text-decoration:none;color:var(--fg)}
.btn.sm{padding:6px 11px;font-size:13px;border-radius:9px}
.btn.primary{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}
.btn.primary:hover{background:var(--brand2)}
.btn.wa{background:var(--wa);color:#fff;border-color:var(--wa)}
.btn.ghost{border-color:transparent;background:transparent}
.btn.danger{color:var(--danger)}
.btn.dangerfill{background:var(--danger);color:#fff;border-color:var(--danger)}
.btn:disabled{opacity:.5;cursor:not-allowed}

.hero{position:relative;color:#fff;padding-block:48px 92px;overflow:hidden;
  background:linear-gradient(160deg,var(--brand-deep) 0%,var(--brand) 100%)}
.hero .wrap{text-align:center;position:relative;z-index:1}
.hero .eyebrow{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:99px;padding:4px 14px;font-size:13px;margin-bottom:12px}
.hero h1{font-size:clamp(28px,5vw,42px);margin:0 0 6px;line-height:1.25}
.hero p{font-size:17px;opacity:.92;margin:0}
.search{background:var(--surface);color:var(--fg);border-radius:18px;padding:8px;display:flex;gap:6px;max-width:860px;margin:24px auto 0;box-shadow:0 10px 30px rgba(10,30,25,.14)}
.search input,.search select{border:0;outline:0;background:transparent;padding:13px;font-size:16px;min-width:0}
.search input{flex:1}.search select{width:170px;border-inline-start:1px solid var(--line)}
.search .btn{padding-inline:26px}
.quick{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px;font-size:13px}
.quick button{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:99px;padding:4px 12px}
.wave{position:absolute;left:0;right:0;bottom:-1px;height:44px;width:100%;display:block}
.wave path{fill:var(--bg)}

.trust{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:-70px;position:relative;z-index:2}
.tile{background:var(--surface);border-radius:14px;padding:14px 16px;box-shadow:var(--shadow);display:flex;align-items:center;gap:12px;border:1px solid var(--line)}
.tile .ic{width:42px;height:42px;border-radius:12px;background:var(--brand-soft);display:grid;place-items:center;font-size:20px;flex:none}
.tile b{display:block;font-family:var(--display);font-size:16px}
.tile span{color:var(--muted);font-size:12.5px;line-height:1.4;display:block}

main{padding-block:26px 110px}
.section{margin-top:32px}.section:first-child{margin-top:0}
.head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px}
.head h2{font-size:21px;margin:0;flex:1;min-width:0}
.head .count{color:var(--muted);font-size:14px;font-weight:400;font-family:var(--body)}
.head select{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:8px}
.sub{color:var(--muted);margin:-8px 0 16px;font-size:14px}

.cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:12px}
.cat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px 8px;text-align:center;font-weight:600;transition:transform .15s,box-shadow .15s}
.cat:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.cat .ic{width:50px;height:50px;margin:0 auto 8px;border-radius:15px;display:grid;place-items:center;font-size:25px}
.cat small{display:block;color:var(--muted);font-weight:400;font-size:12px}
.cat[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}
.pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.pill{background:var(--brand-soft);color:var(--brand);border:0;border-radius:99px;padding:5px 12px;font-weight:600;font-size:13px}

.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;cursor:pointer;transition:transform .15s,box-shadow .15s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:var(--sunk)}
.card .b{padding:12px 14px 14px;display:flex;flex-direction:column;gap:3px;flex:1}
.card h3{font-size:15.5px;margin:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card .tag{position:absolute;top:10px;inset-inline-start:10px;background:rgba(0,0,0,.6);color:#fff;font-size:12px;border-radius:8px;padding:2px 8px}
.favbtn{position:absolute;top:10px;inset-inline-end:10px;width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.94);color:#222;font-size:18px;display:grid;place-items:center;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.favbtn.on{color:var(--red)}
.meta{font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;gap:3px 12px;align-items:center}
.card .meta{margin-top:auto;padding-top:6px;border-top:1px solid var(--line)}
.price{font-family:var(--display);font-weight:600;font-size:18px;color:var(--brand);font-variant-numeric:tabular-nums;white-space:nowrap}
.price.ask{color:var(--sand)}
.vf{color:var(--blue);font-weight:600;font-size:12px;white-space:nowrap}
.chip{display:inline-block;font-size:12px;font-weight:600;border-radius:99px;padding:2px 10px;white-space:nowrap}
.c-live{background:var(--brand-soft);color:var(--brand)}
.c-pending{background:var(--sand-soft);color:var(--sand)}
.c-rejected,.c-hidden,.c-banned{background:var(--red-soft);color:var(--danger)}
.c-sold{background:var(--fg);color:var(--bg)}
.c-warned{background:var(--sand-soft);color:var(--sand)}
.c-active{background:var(--brand-soft);color:var(--brand)}
.c-info{background:var(--blue-soft);color:var(--blue)}

.empty{text-align:center;padding:40px 16px;color:var(--muted);background:var(--surface);border:1px dashed var(--line);border-radius:var(--r)}
.empty b{display:block;color:var(--fg);font-size:16px;margin-bottom:6px}
.notice{background:var(--sand-soft);border-radius:12px;padding:10px 14px;font-size:13.5px;margin-bottom:14px}
.notice.info{background:var(--blue-soft)}
.notice.bad{background:var(--red-soft)}

.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px;min-width:0}
.panel h3{margin:0 0 10px;font-size:17px}
.cols{display:grid;grid-template-columns:1.6fr 1fr;gap:18px;align-items:start}
.cols>*,.detail>*,.threads>*{min-width:0}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.kpi span{color:var(--muted);font-size:13px}
.kpi b{display:block;font-family:var(--display);font-size:26px;font-variant-numeric:tabular-nums;line-height:1.3}
.kpi.alert{border-color:var(--sand);background:var(--sand-soft)}
.kpi.bad{border-color:var(--danger);background:var(--red-soft)}

.tablewrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
table{width:100%;border-collapse:collapse;font-size:14px;min-width:640px}
th,td{padding:11px 12px;text-align:start;border-bottom:1px solid var(--line);vertical-align:middle}
th{font-size:12.5px;color:var(--muted);font-weight:600;background:var(--sunk)}
tr:last-child td{border-bottom:0}
td .ops{display:flex;gap:6px;flex-wrap:wrap}
.mini{width:56px;height:44px;border-radius:8px;object-fit:cover;display:block}
.reason{font-size:12.5px;color:var(--danger);margin-top:2px}

.queue{display:flex;flex-direction:column;gap:12px}
.qi{display:grid;grid-template-columns:120px 1fr auto;gap:14px;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px}
.qi img{width:120px;height:90px;border-radius:10px;object-fit:cover}
.qi h3{margin:0 0 4px;font-size:16px}
.qi .ops{display:flex;flex-direction:column;gap:6px}
.flagged{font-size:13px;background:var(--red-soft);color:var(--danger);border-radius:8px;padding:4px 10px;margin-top:6px;display:inline-block}

.feed{display:flex;flex-direction:column}
.feed div{padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
.feed div:last-child{border-bottom:0}
.feed time{display:block;color:var(--muted);font-size:12px}
.feed .unread{font-weight:600}

/* detail */
.back{margin-bottom:12px}
.detail{display:grid;grid-template-columns:1.35fr 1fr;gap:20px;align-items:start}
aside.panel{position:sticky;top:calc(96px + env(safe-area-inset-top,0px))}
.gallery img.main{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;background:var(--sunk);display:block}
.thumbs{display:flex;gap:8px;margin-top:8px;overflow-x:auto}
.thumbs img{width:72px;height:54px;object-fit:cover;border-radius:8px;cursor:pointer;border:2px solid transparent;flex:none}
.thumbs img.on{border-color:var(--brand)}
.detail h1{font-size:23px;line-height:1.35;margin:16px 0 8px}
.bigprice .price{font-size:28px}
.desc{white-space:pre-wrap;margin:14px 0 0}
.kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0 0}
.kv div{background:var(--sunk);border-radius:10px;padding:8px 12px}
.kv dt{color:var(--muted);font-size:12px}.kv dd{margin:0;font-weight:600}
.seller{display:flex;align-items:center;gap:12px;margin:14px 0}
.avatar{width:48px;height:48px;border-radius:50%;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:600;font-family:var(--display);font-size:19px;flex:none}
.stars{color:#c49a2c;letter-spacing:1px}
.phonebox{background:var(--sunk);border-radius:12px;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.phone{font-family:var(--display);font-size:19px;direction:ltr;unicode-bidi:isolate;user-select:all;letter-spacing:.5px}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.actions .btn{flex:1}
.safety{font-size:13px;margin-top:14px;background:var(--sand-soft);border-radius:12px;padding:12px 14px}
.safety ul{margin:4px 0 0;padding-inline-start:18px}
.rate{display:flex;gap:4px;margin-top:6px}
.rate button{border:0;background:none;font-size:24px;color:#c9c9c9;padding:0 2px}
.rate button.on{color:#c49a2c}

/* chat */
.threads{display:grid;grid-template-columns:300px 1fr;gap:16px;align-items:start}
.tlist{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.tlist button{border:0;border-bottom:1px solid var(--line);background:none;text-align:start;padding:12px 14px;display:flex;gap:10px;align-items:center}
.tlist button:last-child{border-bottom:0}
.tlist button[aria-current="true"]{background:var(--brand-soft)}
.tlist .t{min-width:0;flex:1}.tlist b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tlist small{color:var(--muted);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat{display:flex;flex-direction:column;height:min(560px,70vh);background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.chat .ch{padding:12px 14px;border-bottom:1px solid var(--line);display:flex;gap:10px;align-items:center}
.chat .msgs{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--bg)}
.bub{max-width:78%;padding:8px 12px;border-radius:14px;font-size:14.5px;background:var(--surface);border:1px solid var(--line);align-self:flex-end}
.bub.me{align-self:flex-start;background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}
.bub time{display:block;font-size:11px;opacity:.7}
.chat form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line)}
.chat input{flex:1;min-width:0}
.warnline{font-size:12px;color:var(--muted);text-align:center;padding:6px}

/* form */
.form{max-width:760px}
.f{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.f>label{font-weight:600;font-size:14px}
.hint{font-size:12px;color:var(--muted)}
input.in,select.in,textarea.in{border:1px solid var(--line);background:var(--surface);border-radius:11px;padding:10px 13px;width:100%}
textarea.in{min-height:110px;resize:vertical}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.check{display:flex;align-items:flex-start;gap:8px;font-size:14px}
.check input{margin-top:5px}
.drop{border:2px dashed var(--line);border-radius:12px;padding:20px;text-align:center;color:var(--muted);cursor:pointer}
.drop:hover{border-color:var(--brand);color:var(--brand)}
.previews{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.previews div{position:relative}
.previews img{width:90px;height:68px;object-fit:cover;border-radius:8px;display:block}
.previews button{position:absolute;top:-6px;inset-inline-start:-6px;width:22px;height:22px;border-radius:50%;border:0;background:var(--danger);color:#fff;font-size:12px;line-height:1}
.err{color:var(--danger);font-size:13px}
.rights{background:var(--brand-soft);border-radius:var(--r);padding:16px 18px}
.rights h3{color:var(--brand)}
.rights ul{margin:0;padding-inline-start:18px;display:flex;flex-direction:column;gap:6px;font-size:14px}
.steps{display:flex;flex-direction:column;gap:10px}
.step{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px}
.step .n{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:600;background:var(--sunk);flex:none}
.step.done .n{background:var(--brand);color:var(--brand-ink)}
.step .t{flex:1;min-width:0}
.radio{display:flex;flex-direction:column;gap:8px}
.radio label{display:flex;gap:8px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:10px 12px;cursor:pointer}

/* modal */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:60;display:flex;align-items:center;justify-content:center;padding:16px}
.modal .box{background:var(--surface);border-radius:18px;padding:22px;width:min(480px,100%);max-height:90vh;overflow:auto}
.modal h2{margin:0 0 6px;font-size:19px}
.modal p{margin:0 0 12px;color:var(--muted);font-size:14px}

footer{background:var(--footer);color:var(--footer-fg);padding-block:30px 100px}
footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px}
footer b{font-family:var(--display);font-size:17px;color:#fff}
footer p{margin:4px 0 0;font-size:13px;opacity:.85}

body.admin header{background:var(--admin);box-shadow:none}
body.admin .logo,body.admin .logo small{color:#fff}
body.admin .tnav button{color:#a9b6c4}
body.admin .tnav button:hover{background:rgba(255,255,255,.08);color:#fff}
body.admin .tnav button[aria-current="true"]{background:rgba(255,255,255,.14);color:#fff}
body.admin .roles{background:rgba(255,255,255,.1)}
body.admin .roles button{color:#a9b6c4}
body.admin .roles button[aria-pressed="true"]{background:#fff;color:var(--admin)}
body.admin .who{color:#a9b6c4}

.toast{position:fixed;bottom:calc(88px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);background:var(--fg);color:var(--bg);padding:10px 18px;border-radius:11px;font-weight:600;z-index:70;max-width:calc(100% - 32px);text-align:center}
.bottom{display:none}

@media (max-width:1020px){
  .grid{grid-template-columns:repeat(3,1fr)}
  .detail,.cols{grid-template-columns:1fr}
  aside.panel{position:static}
  .who{display:none}
  .trust{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:1280px){.who{display:none}}
@media (max-width:760px){
  .stack table{min-width:0}.stack thead{display:none}
  .stack tr{display:grid;grid-template-columns:64px 1fr;gap:4px 12px;padding:12px;border-bottom:1px solid var(--line)}
  .stack tr:last-child{border-bottom:0}
  .stack td{border:0;padding:0}
  .stack td:first-child{grid-row:span 3}
  .stack td:nth-child(4){display:none}
  .grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .top{flex-wrap:wrap;gap:10px}
  .tnav{display:none}
  .top .act{display:none}
  .roles{margin-inline-start:auto}
  .kpis{grid-template-columns:repeat(2,1fr)}
  .threads{grid-template-columns:1fr}
  .qi{grid-template-columns:90px 1fr}
  .qi img{width:90px;height:70px}
  .qi .ops{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}
  .bottom{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;background:var(--surface);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px))}
  .bottom button{flex:1;border:0;background:none;font-size:11.5px;display:flex;flex-direction:column;align-items:center;gap:1px;padding:4px 2px;color:var(--muted);min-width:0}
  .bottom button[aria-current="true"]{color:var(--brand);font-weight:600}
  .bottom .ic{font-size:19px;line-height:1.2}
  .bottom .add .ic{background:var(--brand);color:var(--brand-ink);width:46px;height:46px;border-radius:50%;display:grid;place-items:center;margin-top:-22px;font-size:24px;box-shadow:0 6px 16px rgba(30,107,92,.28)}
}
@media (max-width:520px){
  .wrap{padding-inline:16px}
  .logo,.logo small{font-size:18px}.logo .mark{width:30px;height:30px;font-size:15px}
  .roles button{padding:5px 8px;font-size:12.5px}
  .hero{padding-block:30px 84px}.hero p{font-size:15px}
  .search{flex-direction:column}.search input,.search select{width:100%;padding:11px}.search select{border-inline-start:0;border-top:1px solid var(--line)}
  .trust{gap:8px}.tile{flex-direction:column;align-items:flex-start;gap:6px;padding:10px 12px}.tile .ic{width:34px;height:34px;font-size:16px}
  .cats{grid-template-columns:repeat(4,1fr);gap:8px}.cat{padding:10px 2px;font-size:12px;border-radius:12px}.cat .ic{width:40px;height:40px;font-size:20px}.cat small{display:none}
  .card .b{padding:10px}.card h3{font-size:14px}.price{font-size:15px}
  .two{grid-template-columns:1fr}
  .kpi b{font-size:21px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}html{scroll-behavior:auto}}


/* v4 additions: language toggle, offers, sponsored banners, featured, campaign packages */
.lang{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:6px 10px;font-weight:600;font-size:13px}
body.admin .lang{background:rgba(255,255,255,.1);border-color:transparent;color:#fff}
.old{color:var(--muted);font-size:13px;font-weight:400;font-family:var(--body)}
.off{display:inline-block;background:var(--red);color:#fff;font-size:12px;font-weight:600;border-radius:7px;padding:0 7px;margin-inline-start:6px;vertical-align:2px;font-family:var(--body)}
.pricewrap{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px}
.ends{font-size:12px;color:var(--red);font-weight:600}
.card .ribbon{position:absolute;top:52px;inset-inline-end:10px;background:var(--red);color:#fff;font-weight:600;font-size:13px;border-radius:8px;padding:2px 8px}
.card.feat{border-color:var(--sand);box-shadow:0 0 0 1px var(--sand)}
.card .ftag{position:absolute;top:10px;inset-inline-start:10px;background:var(--sand);color:#fff;font-size:12px;font-weight:600;border-radius:8px;padding:2px 8px}
.banners{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(min(100%,520px),1fr);gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}
.banner{scroll-snap-align:start;border:0;text-align:start;border-radius:20px;padding:22px 24px;color:#fff;position:relative;overflow:hidden;display:flex;flex-direction:column;gap:6px;min-height:150px}
.banner::after{content:none}
.banner .sp{align-self:flex-start;background:rgba(0,0,0,.25);border-radius:7px;font-size:11.5px;padding:1px 8px}
.banner h3{margin:0;font-size:22px;line-height:1.3}
.banner p{margin:0;opacity:.92;font-size:14px}
.banner .cta{margin-top:auto;align-self:flex-start;background:#fff;color:#111;border-radius:10px;padding:6px 14px;font-weight:600;font-size:13px}
.banner .em{position:absolute;inset-inline-end:18px;bottom:6px;font-size:64px;opacity:.9}
.hscroll{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:14px;overflow-x:auto;padding-bottom:6px}
.sponsor{display:inline-flex;align-items:center;gap:6px;background:var(--sand-soft);color:var(--sand);border-radius:99px;padding:3px 12px;font-size:13px;font-weight:600}
.pkgs{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}
.pkg{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:6px;text-align:start}
.pkg .ic{font-size:26px}
.pkg b{font-family:var(--display);font-size:17px}
.pkg .meta{display:block}
.pkg .pp{font-family:var(--display);font-weight:600;color:var(--brand);font-size:18px;margin-top:auto}
.pkg[aria-pressed="true"]{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand)}
.total{display:flex;justify-content:space-between;align-items:center;background:var(--sunk);border-radius:12px;padding:12px 16px;margin-bottom:14px;flex-wrap:wrap;gap:8px}
.total b{font-family:var(--display);font-size:22px;color:var(--brand)}
.codeRow{display:flex;gap:8px}
.codeRow input{flex:1;min-width:0}
.ok{color:var(--brand);font-size:13px;font-weight:600}
.flow{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px;margin-bottom:16px}
.flow span{background:var(--surface);border:1px solid var(--line);border-radius:99px;padding:3px 12px}
.flow i{font-style:normal;color:var(--muted)}
.c-pending_review,.c-payment_review{background:var(--sand-soft);color:var(--sand)}
.c-awaiting_payment{background:var(--blue-soft);color:var(--blue)}
.c-ended,.c-off{background:var(--sunk);color:var(--muted)}
.kpis.six{grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){.pkgs{grid-template-columns:1fr}}
@media (max-width:760px){.kpis.six{grid-template-columns:repeat(2,1fr)}}
.navrow{border-top:1px solid var(--line)}
.navrow .tnav{padding-block:6px}
body.admin .navrow{border-color:rgba(255,255,255,.1)}
.who{display:inline!important}
@media (max-width:1020px){.who{display:none!important}}
@media (max-width:760px){.navrow{display:none}}

.sharebox{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.shares{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.shares .btn{flex:0 0 auto}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--muted);margin-inline-end:6px;vertical-align:1px}
.dot.on{background:#3a9d6e;box-shadow:0 0 0 3px rgba(58,157,110,.18)}
.dot.day{background:var(--sand)}
.filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.filters button{border:1px solid var(--line);background:var(--surface);border-radius:99px;padding:5px 12px;font-size:13px;font-weight:600}
.filters button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.ufile{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:start}
.ufile .avatar{width:64px;height:64px;font-size:26px}
.chatlog{display:flex;flex-direction:column;gap:6px;max-height:55vh;overflow:auto;background:var(--bg);padding:10px;border-radius:12px;margin-bottom:10px}
.chatlog .bub{max-width:85%}
.modal .box.wide{width:min(640px,100%)}
@media (max-width:760px){.ufile{grid-template-columns:1fr}}
/* v1.1 */
.trustbar{background:var(--brand-soft);color:var(--brand);font-size:12.5px;font-weight:600;text-align:center;padding:5px 16px}
.soon{display:inline-block;background:var(--sand);color:#fff;font-size:10.5px;font-weight:600;border-radius:99px;padding:0 7px;vertical-align:2px}
.soon.big{font-size:13px;padding:3px 12px;margin-bottom:8px}
.soonbox{max-width:760px;margin:0 auto}
.soonbox h1{margin:4px 0 6px}
.bell{position:relative;padding-inline:10px}
.bell .badge{position:absolute;top:-6px;inset-inline-end:-6px}
.acct-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:bottom}
.reviewed{color:var(--brand);font-weight:600;font-size:13px}
.strip{display:block;position:relative;border-radius:16px;overflow:hidden;aspect-ratio:4/1;background:var(--sunk)}
.strip img{width:100%;height:100%;object-fit:cover;display:block}
.strip .sp{position:absolute;top:8px;inset-inline-start:8px;background:rgba(0,0,0,.55);color:#fff;font-size:11.5px;border-radius:7px;padding:1px 8px}
.strip.side{aspect-ratio:2/1}
.gridstrip{grid-column:1/-1}
.storegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.storecard{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px 12px;text-decoration:none;color:inherit;min-width:0}
.storecard:hover{box-shadow:var(--shadow)}
.storecard .logo{width:64px;height:64px;border-radius:16px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-family:var(--display);font-size:26px;font-weight:600;overflow:hidden;margin-bottom:4px}
.storecard .logo img{width:100%;height:100%;object-fit:cover}
.storecard b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avatar{overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar.big{width:64px;height:64px;font-size:26px;border-radius:16px}
.storehead{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:18px}
.storehead.is-store{border-color:var(--brand);background:linear-gradient(180deg,var(--brand-soft),var(--surface) 70%)}
.catchips{display:flex;flex-wrap:wrap;gap:6px}
.catchips button{border:1px solid var(--line);background:var(--surface);border-radius:99px;padding:6px 12px;font-weight:600;font-size:13.5px}
.catchips button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.drop.big{padding:28px}
.codein{font-size:26px;letter-spacing:10px;text-align:center;font-family:var(--display)}
.hbars{display:flex;align-items:flex-end;gap:4px;height:140px;padding-top:10px;border-bottom:1px solid var(--line)}
.hbars .day{flex:1;display:flex;align-items:flex-end;gap:1px;height:100%;min-width:0}
.hbars .day i{flex:1;border-radius:3px 3px 0 0;min-height:2px}
.legend{display:flex;flex-wrap:wrap;gap:12px;font-size:12.5px;margin-top:8px;color:var(--muted)}
.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-inline-end:5px;vertical-align:-1px}
.permgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
@media (max-width:760px){.acct-name{display:none}.trustbar{font-size:11.5px}}
.navlink{text-decoration:none;padding:8px 12px;border-radius:9px;font-weight:600;color:var(--muted);white-space:nowrap}
.navlink[aria-current=true]{color:var(--brand);background:var(--brand-soft)}
.navlink:hover{background:var(--sunk);color:var(--fg)}
/* v1.2 security */
.checklist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;font-size:14px}
@media (max-width:640px){.checklist{grid-template-columns:1fr}}
.mfasteps{margin:0 0 14px;padding-inline-start:20px;display:grid;gap:10px;font-size:14px}
.qrwrap{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;width:max-content;margin:8px 0}
.qrwrap img{display:block;width:180px;height:180px}
.secret{font-size:12px;word-break:break-all;background:var(--soft,#f3f5f4);padding:2px 6px;border-radius:6px}
/* v1.3: on phones keep the full menu reachable as a scrollable row (bottom bar shows only 5) */
@media (max-width:760px){
  .navrow{display:block}
  .navrow .tnav{display:flex;padding-block:4px;-webkit-overflow-scrolling:touch}
  .navrow .navlink{font-size:13px;padding:6px 10px}
}
/* v1.4 */
.lblrow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.lblrow label{margin:0}
.btn.ghost{background:transparent}
.chatguard{font-size:12.5px;color:var(--muted);background:var(--sunk);border-bottom:1px solid var(--line);padding:7px 12px}
.extlink{display:inline;border:0;background:none;padding:0;color:var(--sand);text-decoration:underline;font:inherit;word-break:break-all;text-align:start}
.vf.owner{color:var(--brand)}.vf.agency{color:var(--sand)}
.guar{display:flex;flex-direction:column;gap:3px;margin-top:4px;min-width:130px}
.guar .bar{display:block;height:6px;border-radius:99px;background:var(--sunk);overflow:hidden}
.guar .bar i{display:block;height:100%;background:var(--brand)}
.tklist{display:flex;flex-direction:column;gap:8px}
.tkrow{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;color:inherit;text-decoration:none}
.tkrow .meta{grid-column:1}.tkrow .chip{grid-row:1/3;grid-column:2;align-self:center}
.tkmsgs{max-height:none;padding:0}
tr.overdue td{background:var(--red-soft)}
.aibox{margin-top:8px;padding:8px 10px;border-radius:10px;background:var(--sunk);display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:13.5px}
.aibox>div{flex-basis:100%}
.checklist.one{grid-template-columns:1fr}
/* ===== v1.5 NileCube: cleaner, calmer, one icon set ===== */
.authbox{max-width:440px;margin:0 auto}.authbox h2{margin:0 0 4px}
.linkbtn{background:none;border:0;color:var(--brand);font-weight:600;padding:0;text-decoration:underline}
.loading{padding:60px 16px;text-align:center;color:var(--muted)}
.empty .btn{margin-top:10px}
.i{width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.22em;flex:none}
body{font-size:15px;letter-spacing:0}
h1,h2,h3,.btn,.price{font-weight:600}
.btn{font-weight:600;border-radius:12px}
.btn.gold{background:var(--gold);border-color:var(--gold);color:var(--gold-ink)}
.btn.gold:hover{filter:brightness(1.05)}
.btn.primary{box-shadow:0 1px 0 rgba(0,0,0,.04)}
/* header */
header{box-shadow:0 1px 0 var(--line)}
.flag{height:3px}
.top{gap:14px;padding-block:10px;min-height:64px}
.logo{gap:10px;text-decoration:none}
.logo .mark{width:40px;height:40px;border-radius:12px;background:transparent;display:block}
.wm{display:flex;flex-direction:column;line-height:1.05}
.wm-en{font-family:var(--display);font-weight:600;font-size:23px;letter-spacing:-.6px;color:var(--brand);direction:ltr}
.wm-en b{color:var(--gold);font-weight:600}
.wm-ar{font-size:11.5px;color:var(--muted);font-weight:500;letter-spacing:.2px}
.top .tnav{flex:1;justify-content:center;padding:0;gap:2px}
.top .navlink{display:inline-flex;align-items:center;gap:6px;font-weight:500;font-size:14.5px;padding:8px 11px}
.hicons{display:flex;align-items:center;gap:6px}
.icbtn{position:relative;width:42px;height:42px;border-radius:12px;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;color:var(--fg);text-decoration:none}
.icbtn .i{width:21px;height:21px}
.icbtn:hover{background:var(--sunk)}
.icbtn .badge{position:absolute;top:-6px;inset-inline-end:-6px;margin:0}
.icbtn.me{width:auto;padding-inline:10px 12px;gap:6px;display:inline-flex;align-items:center;font-weight:600;font-size:14px}
body:not(.admin) .navrow,.trustbar,#trustbar{display:none!important}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .logo .mark,:root:not([data-theme="light"]) .fbrand img{background:#f4efe3;border-radius:10px;padding:2px}}
/* hero: shorter, one strong search */
.hero{padding-block:34px 38px;background:linear-gradient(165deg,var(--brand-deep) 0%,var(--brand) 100%)}
.hero::after{content:"";position:absolute;inset-inline:0;bottom:0;height:3px;background:linear-gradient(90deg,transparent,var(--gold),transparent);opacity:.7}
.hero h1{font-size:clamp(24px,4.2vw,36px);font-weight:600;margin:0 0 4px}
.hero p{font-size:15.5px;opacity:.85}
.search{max-width:760px;margin:20px auto 0;border-radius:16px;padding:6px;align-items:center;gap:4px}
.search .sic{display:grid;place-items:center;color:var(--muted);padding-inline:8px 2px}
.search input{padding:12px 6px}
.search .citysel{width:auto;max-width:150px;border:0;border-inline-start:1px solid var(--line);font-size:14px;color:var(--muted);padding:10px 8px;background:transparent}
.search .btn{padding:11px 22px;border-radius:12px}
.quick{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;max-width:760px;margin:12px auto 0;padding-bottom:2px}
.quick::-webkit-scrollbar{display:none}
.quick button{flex:none;font-size:13px;padding:5px 13px}
.wave{display:none}
/* quiet trust line */
.trustline{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;margin-top:36px;padding:14px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:13px;text-align:center}
.trustline .i{color:var(--brand)}
.trustline a{color:var(--brand);font-weight:600}
.trust{display:none}
/* categories with line icons */
.cats{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
.cat{padding:14px 6px 12px;font-weight:500;border-radius:16px}
.cat .ic{width:48px;height:48px;border-radius:14px;background:var(--brand-soft)!important;color:var(--brand)}
.cat .ic .i{width:24px;height:24px}
.cat[aria-pressed="true"] .ic{background:var(--brand)!important;color:#fff}
.catchips .i{margin-inline-end:2px}
.card{border-radius:16px}
.card .tag{display:inline-flex;align-items:center;gap:4px;background:rgba(15,25,50,.62);backdrop-filter:blur(4px)}
.card .tag .i{width:14px;height:14px}
.card h3{font-weight:500}
.price{color:var(--brand)}
.section{margin-top:36px}
.head h2{font-weight:600}
/* bottom bar */
.bottom button .ic .i{width:22px;height:22px}
.bottom .add .ic{background:var(--gold);color:var(--gold-ink);box-shadow:0 6px 16px rgba(200,150,46,.35)}
.bottom .add .ic .i{width:26px;height:26px;stroke-width:2.2}
/* footer */
footer{padding-block:32px 110px}
footer .wrap{flex-direction:column;gap:14px}
.fbrand{display:flex;gap:12px;align-items:flex-start}
.fbrand p{max-width:560px}
.flinks{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13.5px}
.flinks a{color:var(--footer-fg);text-decoration:none;opacity:.9}
.flinks a:hover{text-decoration:underline}
.fcopy{font-size:12.5px;opacity:.75;margin:0}
footer .linkbtn{color:inherit;font-weight:500}
/* menu page */
.menu{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.menu a,.menu button{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--fg);text-decoration:none;font-weight:500;text-align:start}
.menu a .i,.menu button .i{width:22px;height:22px;color:var(--brand)}
.menu a:hover,.menu button:hover{border-color:var(--brand)}
.menuhead{display:flex;align-items:center;gap:12px;margin-bottom:16px}
/* shops */
.shopcard{display:flex;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 14px;text-decoration:none;color:inherit;min-width:0}
.shopcard:hover{border-color:var(--brand);box-shadow:var(--shadow)}
.shopcard .lg{width:52px;height:52px;border-radius:14px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:600;font-size:22px;overflow:hidden;flex:none}
.shopcard .lg img{width:100%;height:100%;object-fit:cover}
.shopcard b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shopgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.hscroll.shops{grid-auto-columns:minmax(250px,1fr)}
.sfhead{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;background:linear-gradient(160deg,var(--brand-deep),var(--brand));color:#fff;border-radius:20px;padding:20px;margin-bottom:14px}
.sfhead .lg{width:76px;height:76px;border-radius:18px;background:#fff;color:var(--brand);display:grid;place-items:center;font-size:30px;font-weight:600;overflow:hidden}
.sfhead .lg img{width:100%;height:100%;object-fit:cover}
.sfhead h1{margin:0;font-size:24px}
.sfhead .meta{color:rgba(255,255,255,.85)}
.sfhead .stars{color:#f2c45a}
.sfhead .btn{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#fff}
.sfinfo{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.sfinfo span{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:99px;padding:5px 12px;font-size:13px}
.sftabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-bottom:12px;position:sticky;top:calc(68px + env(safe-area-inset-top,0px));background:var(--bg);padding-block:6px;z-index:5}
.sftabs button{flex:none;border:1px solid var(--line);background:var(--surface);border-radius:99px;padding:6px 14px;font-weight:500}
.sftabs button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:#fff}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.prod{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.prod img{width:100%;aspect-ratio:1;object-fit:cover;background:var(--sunk);display:block}
.prod .b{padding:10px 12px 12px;display:flex;flex-direction:column;gap:4px;flex:1}
.prod h3{margin:0;font-size:14.5px;font-weight:500}
.prod p{margin:0;font-size:12.5px;color:var(--muted)}
.prod .row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:auto;padding-top:6px}
.prod .price{font-size:16px}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.qty button{border:0;background:var(--sunk);width:30px;height:30px;font-weight:600}
.qty b{min-width:28px;text-align:center;font-size:14px}
.sfbrowse{display:flex;align-items:center;justify-content:center;gap:8px;margin:22px auto 0;max-width:420px}
.cartfab{position:fixed;inset-inline-end:16px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:31;background:var(--gold);color:var(--gold-ink);border-radius:99px;padding:12px 18px;font-weight:600;display:inline-flex;align-items:center;gap:8px;text-decoration:none;box-shadow:0 10px 26px rgba(16,30,60,.25)}
@media (min-width:761px){.cartfab{bottom:24px}}
.cartstore{margin-bottom:14px}
.cartline{display:grid;grid-template-columns:56px 1fr auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.cartline:last-child{border-bottom:0}
.cartline img{width:56px;height:56px;border-radius:10px;object-fit:cover;background:var(--sunk)}
.sumrow{display:flex;justify-content:space-between;font-size:14px;padding:3px 0}
.sumrow.total{font-weight:600;font-size:16px;border-top:1px solid var(--line);padding-top:8px;margin-top:4px;background:none;border-radius:0}
.order{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin-bottom:12px}
.order .oh{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.order .oh b{flex:1;min-width:0}
.order ul{margin:8px 0;padding-inline-start:18px;font-size:14px}
.order.new{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
.c-new{background:var(--sand-soft);color:var(--sand)}.c-accepted,.c-preparing,.c-out{background:var(--blue-soft);color:var(--blue)}
.c-delivered,.c-paid{background:var(--brand-soft);color:var(--brand)}.c-cancelled,.c-waived,.c-none{background:var(--sunk);color:var(--muted)}
.c-due{background:var(--red-soft);color:var(--danger)}.c-review,.c-suspended{background:var(--sand-soft);color:var(--sand)}
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px}
.tabs button{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:8px 14px;font-weight:500;display:inline-flex;align-items:center;gap:6px}
.tabs button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:#fff}
.linkbox{display:flex;gap:8px;align-items:center;background:var(--sunk);border-radius:12px;padding:8px 8px 8px 12px;flex-wrap:wrap}
.linkbox code{flex:1;min-width:0;direction:ltr;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.plist .prow{display:grid;grid-template-columns:52px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.plist .prow:last-child{border-bottom:0}
.plist img{width:52px;height:52px;border-radius:10px;object-fit:cover;background:var(--sunk)}
.plist .off{opacity:.5}
/* legal */
.legal{max-width:820px;margin:0 auto}
.legal h1{margin:0 0 4px;font-size:26px}
.legal section{margin-top:18px}
.legal h2{font-size:18px;margin:0 0 6px;color:var(--brand)}
.legal p{margin:0 0 6px;line-height:1.85}
.legal .toc{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.consentbar{background:var(--sand-soft);border:1px solid var(--gold);border-radius:14px;padding:10px 14px;margin-bottom:16px;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;font-size:14px}
.consentbar span{flex:1;min-width:200px}
@media (max-width:1020px){.top .tnav{display:none}}
@media (max-width:760px){
  .post-top{display:none}
  .wm-en{font-size:20px}.wm-ar{display:none}
  .logo .mark{width:34px;height:34px}
  .top{min-height:56px;padding-block:8px}
  .hero{padding-block:22px 24px}.hero p{font-size:14px}
  .search{flex-direction:row;flex-wrap:wrap}
  .search input{flex:1 1 60%}
  .search .citysel{max-width:none;flex:1 1 auto;border-inline-start:0;border-top:1px solid var(--line);order:3;width:auto}
  .search .btn{order:4;flex:0 0 auto}
  .search .sic{display:none}
  .sfhead{grid-template-columns:auto 1fr;padding:16px}.sfhead .lg{width:60px;height:60px}.sfhead h1{font-size:20px}
  .sfhead>.btn{grid-column:1/-1}
  .pgrid{grid-template-columns:repeat(2,1fr)}
  .sftabs{top:calc(58px + env(safe-area-inset-top,0px))}
}
@media (max-width:520px){.search .citysel{flex:1 1 55%}.cats{grid-template-columns:repeat(4,1fr)}.cat .ic{width:42px;height:42px}}
body.admin .logo .mark{background:#f4efe3;border-radius:11px;padding:3px}
body.admin .wm-en{color:#fff}body.admin .wm-en b{color:var(--gold)}body.admin .wm-ar{color:#a9b6c4}
.hscroll{grid-auto-columns:minmax(220px,260px)}
.hscroll.shops{grid-auto-columns:minmax(250px,300px)}
@media (max-width:520px){.hscroll{grid-auto-columns:minmax(200px,72%)}}
.hero{background:linear-gradient(165deg,#0c1d3f 0%,#1a3768 100%)}
.sfhead{background:linear-gradient(160deg,#0c1d3f,#1a3768)}
.hero .btn.primary{background:#1a3768;border-color:#1a3768;color:#fff}

/* ===== v1.6 ===== */
:root{--cat-l:95%;--cat-s:52%;--cat-b:88%;--ok:#1f7a4d;--ok-soft:#e3f3ea}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--cat-l:19%;--cat-s:28%;--cat-b:26%;--ok:#6fcf97;--ok-soft:#163324}}
:root[data-theme="dark"]{--cat-l:19%;--cat-s:28%;--cat-b:26%;--ok:#6fcf97;--ok-soft:#163324}
h1,h2,h3,b,strong,th{font-weight:600}
/* section heads */
.shead{align-items:center;gap:10px}
.shead .hic{width:34px;height:34px;border-radius:50%;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;flex:none}
.shead .hic .i{width:18px;height:18px}
.seeall{color:var(--brand);font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap;display:inline-flex;gap:4px;align-items:center}
.seeall:hover{text-decoration:underline}
/* category tiles */
.cat{background:hsl(var(--h,220) var(--cat-s) var(--cat-l));border-color:hsl(var(--h,220) 35% var(--cat-b));font-weight:500}
.cat .ic{background:var(--surface);border-radius:50%;color:hsl(var(--h,220) 45% 40%);box-shadow:0 1px 4px rgba(16,30,60,.1)}
.cat[aria-pressed="true"]{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand) inset;background:hsl(var(--h,220) var(--cat-s) var(--cat-l));color:var(--fg)}
/* badges */
.card .badges,.pimg .badges{position:absolute;top:44px;inset-inline-start:10px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.pimg .badges{top:8px;inset-inline-start:8px}
.bdg{font-size:11.5px;font-weight:600;border-radius:7px;padding:1px 8px;line-height:1.6}
.bdg.new{background:var(--blue-soft);color:var(--blue)}
.bdg.hot{background:var(--sand-soft);color:var(--sand)}
.save{font-size:12.5px;color:var(--ok);background:var(--ok-soft);border-radius:8px;padding:1px 8px;align-self:flex-start;font-weight:600}
/* compare buttons */
.cmpbtn{margin-inline-start:auto;width:30px;height:30px;border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--muted);display:grid;place-items:center;flex:none;padding:0}
.cmpbtn .i{width:17px;height:17px}
.cmpbtn.on,.btn.on{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.card .meta{align-items:center}
/* products */
.pimg{position:relative}
.pimg .pct{position:absolute;top:8px;inset-inline-end:8px;background:var(--red);color:#fff;font-weight:600;font-size:12.5px;border-radius:8px;padding:1px 8px}
.prod .pact{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:8px}
.prod .pact .cmpbtn{margin-inline-start:0;width:36px;height:36px}
.prod .pact .btn,.prod .pact .qty{flex:1}
.prod .pricewrap .old{margin-inline-start:6px}
/* compare tray + page */
.cmptray{position:fixed;inset-inline-start:16px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:31;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:8px 10px;display:flex;align-items:center;gap:10px;box-shadow:0 10px 26px rgba(16,30,60,.22);max-width:calc(100% - 32px)}
.cmptray[hidden]{display:none}
.cmptray .ci{color:var(--brand);display:grid}
.cmptray .thumbs{display:flex;gap:6px;align-items:center}
.cmptray .thumbs img{width:38px;height:38px;border-radius:9px;object-fit:cover;background:var(--sunk)}
.cmptray .slot{font-size:12px;color:var(--muted);padding:0 4px}
.cmptray .x{border:0;background:none;color:var(--muted);font-size:15px;padding:4px}
@media (min-width:761px){.cmptray{bottom:24px}}
.cmptable table{table-layout:fixed;width:100%}
.cmptable th[scope=row]{width:96px;text-align:start}
.cmptable thead th{vertical-align:top;background:var(--surface)}
.cmphead{position:relative;display:flex;flex-direction:column;gap:6px;font-weight:500;font-size:14px}
.cmphead img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;background:var(--sunk)}
.cmphead a{color:inherit}
.cmphead .x{position:absolute;top:6px;inset-inline-end:6px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:#222}
.price.best{color:var(--ok)}
.bestlbl{font-size:11.5px;color:var(--ok);font-weight:600}
/* banners carousel */
.banners{grid-auto-columns:100%;scrollbar-width:none}
.banners::-webkit-scrollbar{display:none}
.dots{display:flex;justify-content:center;gap:6px;margin-top:10px}
.dots button{width:8px;height:8px;border-radius:99px;border:0;background:var(--line);padding:0;transition:width .2s,background .2s}
.dots button[aria-selected="true"]{width:22px;background:var(--brand)}
@media (prefers-reduced-motion:reduce){.dots button{transition:none}}
/* featured shops */
.brands{display:grid;grid-auto-flow:column;grid-auto-columns:110px;gap:12px;overflow-x:auto;padding-bottom:6px}
.brandtile{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 8px}
.brandtile:hover{border-color:var(--gold)}
.brandtile .lg{width:64px;height:64px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font-size:24px;font-weight:600}
.brandtile .lg img{width:100%;height:100%;object-fit:cover}
.brandtile small{font-size:12.5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
/* signup kind */
.flbl{font-weight:600;font-size:14px}
.acctkind{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kind input{position:absolute;opacity:0;pointer-events:none}
.kind .kbox{display:flex;flex-direction:column;gap:2px;border:1.5px solid var(--line);border-radius:14px;padding:12px;cursor:pointer;height:100%}
.kind .kic{color:var(--brand);margin-bottom:4px}
.kind small{color:var(--muted);font-size:12.5px;line-height:1.5}
.kind input:checked+.kbox{border-color:var(--brand);background:var(--brand-soft)}
.kind input:focus-visible+.kbox{outline:2px solid var(--brand);outline-offset:2px}
.opencta{display:flex;align-items:center;gap:12px;background:var(--brand-soft);border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin-bottom:22px;text-decoration:none;color:inherit}
.opencta .i{color:var(--brand);width:26px;height:26px}
.opencta span:nth-child(2){flex:1;min-width:0}
.opencta small{display:block;color:var(--muted)}
/* Noor / Hoor / AI badge */
.noorwrap{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.btn.noor{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;border-color:transparent}
.btn.noor .i{color:var(--gold)}
.aibadge{display:inline-flex;align-items:center;gap:4px;font-size:11px;letter-spacing:.02em;color:var(--muted);border:1px solid var(--line);border-radius:99px;padding:1px 8px;white-space:nowrap;direction:ltr}
.aibadge .i{width:12px;height:12px;color:var(--gold)}
.hoor{display:inline-flex;align-items:center;gap:4px;font-weight:600;color:var(--brand)}

/* ===== v1.7: lighter home in the spirit of Hisham's reference ===== */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hero,:root .hero{background:transparent;color:var(--fg);padding-block:12px 4px}
.hero::after{content:none}
.hero .wrap{text-align:start;max-width:1100px}
.slides{display:grid;grid-auto-flow:column;grid-auto-columns:100%;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:18px;scrollbar-width:none;box-shadow:0 6px 22px rgba(11,45,91,.12)}
.slides::-webkit-scrollbar{display:none}
.slide{scroll-snap-align:start;display:block;aspect-ratio:1200/373;background:#0B2D5B;overflow:hidden}
.slide img{width:100%;height:100%;object-fit:cover;display:block}
.slide.cta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;color:#fff;text-decoration:none;background:linear-gradient(135deg,#0B2D5B 0%,#16407a 60%,#1E90FF 140%)}
.slide.cta b{display:block;font-size:clamp(17px,3.4vw,26px)}
.slide.cta small{display:block;opacity:.85;font-size:clamp(12px,2.2vw,15px);margin-top:2px}
.slide.cta em{display:inline-block;margin-top:10px;background:var(--gold);color:#1a1405;font-style:normal;font-weight:600;border-radius:99px;padding:5px 14px;font-size:13px}
.slide.cta .i{width:clamp(48px,10vw,84px);height:clamp(48px,10vw,84px);color:var(--gold);stroke-width:1.3;flex:none}
#sdots{margin-top:8px}
#sdots button{width:7px;height:7px;border-radius:9px;border:0;padding:0;background:var(--line)}
#sdots button[aria-selected="true"]{width:20px;background:var(--brand)}
.search{margin:12px auto 0;max-width:none;background:var(--surface);border:1px solid var(--line);box-shadow:0 4px 16px rgba(11,45,91,.07);border-radius:16px;padding:8px;display:flex;flex-direction:column;gap:8px}
.search .sin{display:flex;align-items:center;gap:8px;background:var(--bg);border-radius:12px;padding:0 10px}
.search .sin .sic{display:grid;color:var(--muted);padding:0}
.search .sin input{flex:1;padding:11px 0;font-size:15px}
.search .srow{display:flex;gap:8px}
.search .cityb{flex:1;display:flex;align-items:center;gap:6px;background:var(--brand-soft);border-radius:12px;padding:0 10px;color:var(--brand)}
.search .cityb .i{width:17px;height:17px;color:var(--blue)}
.search .cityb select{flex:1;border:0;background:transparent;color:inherit;padding:10px 0;font-size:14px;max-width:none;width:auto}
.search .btn{padding:10px 22px;border-radius:12px}
@media (min-width:761px){.search{flex-direction:row;align-items:center}.search .sin{flex:2}.search .srow{flex:1.2}}
.quick{justify-content:flex-start;margin:10px 0 0;max-width:none}
.quick button{display:inline-flex;align-items:center;gap:6px;background:var(--surface);color:var(--fg);border:1px solid var(--line);padding:6px 12px}
.quick button .i{width:16px;height:16px;color:var(--brand)}
/* categories as circles */
.catrow{display:grid;grid-auto-flow:column;grid-auto-columns:76px;gap:6px;overflow-x:auto;padding:12px 8px;background:var(--surface);border:1px solid var(--line);border-radius:16px;scrollbar-width:none}
.catrow::-webkit-scrollbar{display:none}
.catc{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:4px;padding:2px;color:var(--fg)}
.catc .cc{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,hsl(var(--h) 70% 93%),hsl(var(--h) 60% 84%));color:hsl(var(--h) 55% 32%)}
.catc .cc img{width:100%;height:100%;object-fit:cover}
.catc .cc .i{width:26px;height:26px}
.catc b{font-size:12px;font-weight:500;white-space:nowrap}
.catc small{font-size:10.5px;color:var(--muted)}
.catc[aria-pressed="true"] .cc{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--brand)}
@media (min-width:761px){.catrow{grid-auto-columns:1fr;grid-auto-flow:column}}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .catc .cc{background:hsl(var(--h) 25% 22%);color:hsl(var(--h) 60% 75%)}}
:root[data-theme="dark"] .catc .cc{background:hsl(var(--h) 25% 22%);color:hsl(var(--h) 60% 75%)}
/* deal cards (store products) */
.hscroll.deals{grid-auto-columns:minmax(168px,180px)}
.dcard{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.dcard .dimg{display:block;background:#fff;aspect-ratio:1}
.dcard .dimg img{width:100%;height:100%;object-fit:contain;padding:8px}
.dcard .pct{position:absolute;top:8px;inset-inline-end:8px;background:var(--red);color:#fff;font-weight:600;font-size:12px;border-radius:7px;padding:1px 7px}
.dcard .b{padding:8px 10px 10px;display:flex;flex-direction:column;gap:3px;flex:1}
.dcard .dn{color:var(--fg);text-decoration:none;font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dcard .st{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dcard .st em{color:#f2a900;font-style:normal}
.dcard .price{font-size:15px}
.dcard .addc{margin-top:auto;width:100%}
.pfav{position:absolute;top:8px;inset-inline-start:8px;width:30px;height:30px;border-radius:50%;border:0;background:rgba(255,255,255,.95);color:#334;font-size:16px;display:grid;place-items:center;box-shadow:0 1px 5px rgba(0,0,0,.12);z-index:2}
.pfav.on{color:var(--red)}
.pimg .badges{top:44px}
.pfavlist{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.pfrow{position:relative;display:flex;align-items:center;gap:10px;padding:8px 10px;border-top:1px solid var(--line);text-decoration:none;color:inherit}
.pfrow:first-child{border-top:0}
.pfrow img{width:48px;height:48px;border-radius:10px;object-fit:cover;background:var(--sunk)}
.pfrow span:nth-child(2){flex:1;min-width:0}.pfrow small{display:block;color:var(--muted)}
.pfrow .pfav{position:static;box-shadow:none;background:none}
/* trust bar */
.trustbar{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:28px;padding:12px 6px;background:var(--surface);border:1px solid var(--line);border-radius:16px;text-decoration:none;color:inherit}
.trustbar span{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;padding:0 4px}
.trustbar .i{width:24px;height:24px;color:var(--brand);margin-bottom:2px}
.trustbar b{font-size:12.5px;font-weight:600}.trustbar small{font-size:10.5px;color:var(--muted);line-height:1.35}
/* compact header & bottom bar */
.icbtn{width:36px;height:36px;border-radius:50%;background:var(--brand-soft);border:0;color:var(--brand)}
.icbtn .i{width:19px;height:19px}
.logo .mark{width:36px;height:36px}
@media (max-width:760px){.logo{font-size:19px}.logo .wm-ar{display:none}.top{min-height:54px;gap:8px}}
.bottom button[aria-current="true"]{background:var(--brand-soft);border-radius:12px}
/* grouped compact menu */
.menuhead{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.menuhead .avatar{width:42px;height:42px;font-size:17px}
.mgh{font-size:12.5px;color:var(--muted);font-weight:500;margin:16px 4px 6px}
.mlist{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.mlist a,.mlist button{display:flex;align-items:center;gap:12px;width:100%;padding:11px 14px;min-height:46px;border:0;border-top:1px solid var(--line);background:none;color:var(--fg);text-decoration:none;font-size:15px;text-align:start}
.mlist>:first-child{border-top:0}
.mlist .i{width:20px;height:20px;color:var(--brand);flex:none}
.mlist span{flex:1}
.mlist .cv{font-style:normal;color:var(--muted)}
.mlist .cnt{background:var(--red);color:#fff;border-radius:99px;font-size:11px;padding:0 7px}
.mlist .out span{color:var(--red)}
@media (min-width:761px){.mlist{max-width:560px}}
/* mobile type & spacing pass */
@media (max-width:760px){
  .head h2{font-size:18px}.section{margin-top:22px}
  .wrap{padding-inline:14px}
  h1{font-size:22px}
  .panel{padding:14px}
}
/* v1.7 admin overview */
.okpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin-bottom:16px}
.okpi{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;text-decoration:none;color:inherit}
a.okpi:hover{border-color:var(--brand)}
.okpi .kl{font-size:12.5px;color:var(--muted)}.okpi b{font-size:24px;font-weight:600;line-height:1.3}.okpi .ks{font-size:11.5px}
.ki{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:none;margin-bottom:4px}
.ki .i{width:18px;height:18px}
.ki.ok{background:var(--ok-soft);color:var(--ok)}.ki.warn{background:var(--sand-soft);color:var(--sand)}.ki.bad{background:var(--red-soft);color:var(--red)}.ki.info{background:var(--blue-soft);color:var(--blue)}
.up{color:var(--ok);font-weight:600}.down{color:var(--red);font-weight:600}.wa{color:var(--sand)}.bd{color:var(--red)}
.ph2{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.ph2 h3{margin:0}
.lchart{width:100%;height:150px;display:block;margin:10px 0 6px}
.lchart line{stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}
.cols.ov{grid-template-columns:1.6fr 1fr}
@media (max-width:900px){.cols.ov{grid-template-columns:1fr}}
.attlist{display:flex;flex-direction:column}
.attlist a{display:flex;align-items:center;gap:10px;padding:9px 2px;border-top:1px solid var(--line);color:inherit;text-decoration:none}
.attlist a:first-child{border-top:0}.attlist .ki{margin:0;width:30px;height:30px}.attlist span:nth-child(2){flex:1}
.pill{border-radius:99px;padding:1px 10px;font-size:12.5px}
.pill.warn{background:var(--sand-soft);color:var(--sand)}.pill.bad{background:var(--red-soft);color:var(--red)}.pill.info{background:var(--blue-soft);color:var(--blue)}.pill.ok{background:var(--ok-soft);color:var(--ok)}
.sev{display:inline-block;border-radius:7px;padding:0 7px;font-size:11.5px;margin-inline-end:6px}
.sev.s3{background:var(--red);color:#fff}.sev.s2{background:var(--sand-soft);color:var(--sand)}.sev.s1{background:var(--sunk);color:var(--muted)}
.slidelist{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.sl{display:grid;grid-template-columns:140px 1fr 1fr auto;gap:8px;align-items:center}
.sl img{width:140px;aspect-ratio:1200/373;object-fit:cover;border-radius:8px;background:var(--sunk)}
@media (max-width:760px){.sl{grid-template-columns:1fr}.sl img{width:100%}}
.catimgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}
.catimgs .ci{display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;font-size:12px}
.catimgs .cc{width:60px;height:60px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);border:1px dashed var(--line)}
.catimgs .cc img{width:100%;height:100%;object-fit:cover}
.search{align-items:stretch}
.search .sin,.search .srow{width:auto}
.mlist .cnt,.mlist .soon{flex:none}
.dcard .pct{top:8px;inset-inline-start:auto;inset-inline-end:8px;left:8px;right:auto}
[dir=rtl] .dcard .pct{left:8px;right:auto}
[dir=rtl] .dcard .pfav{right:8px;left:auto}
[dir=ltr] .dcard .pct{right:8px;left:auto}
[dir=ltr] .dcard .pfav{left:8px;right:auto}
/* v1.7 header tidy */
.top{align-items:center}
.logo{display:flex;align-items:center;gap:8px;line-height:1}
.logo .mark{width:34px;height:34px;flex:none;display:block}
.logo .wm{display:flex;flex-direction:column;justify-content:center;line-height:1.1}
.hicons{display:flex;align-items:center;gap:8px;margin-inline-start:auto}
.icbtn.lg-in .lbl{display:none}
@media (min-width:761px){.icbtn.lg-in{width:auto;border-radius:99px;padding:0 14px;gap:6px;display:inline-flex;align-items:center;background:var(--brand);color:#fff}.icbtn.lg-in .lbl{display:inline;font-size:14px;font-weight:600}}
@media (max-width:760px){.logo{font-size:20px}.logo .mark{width:32px;height:32px}}
/* ===== v1.8 ===== */
.splash{position:fixed;inset:0;z-index:100;background:radial-gradient(circle at 50% 42%,#ffffff 0%,#f3f6fb 70%);display:grid;place-items:center;transition:opacity .4s ease}
.splash.out{opacity:0;pointer-events:none}
.sp-in{display:flex;flex-direction:column;align-items:center;gap:6px}
.sp-logo{width:112px;height:auto;animation:spPop .7s cubic-bezier(.2,.8,.2,1.2) both}
.sp-wm{font-family:var(--display);font-weight:600;font-size:34px;color:#0B2D5B;letter-spacing:-.5px;animation:spUp .5s .35s ease both}
.sp-wm b{color:#D4AF37;font-weight:600}
.sp-tag{font-size:15px;color:#0B2D5B;opacity:.85;animation:spUp .5s .55s ease both}
.sp-line{display:block;height:3px;width:120px;border-radius:3px;background:linear-gradient(90deg,transparent,#1E90FF,#D4AF37,transparent);transform-origin:center;animation:spLine .7s .7s ease both}
@keyframes spPop{0%{opacity:0;transform:scale(.6) rotate(-8deg)}100%{opacity:1;transform:none}}
@keyframes spUp{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:none}}
@keyframes spLine{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}
@media (prefers-reduced-motion:reduce){.sp-logo,.sp-wm,.sp-tag,.sp-line{animation:none}}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .splash{background:#0d1220}:root:not([data-theme="light"]) .sp-wm,:root:not([data-theme="light"]) .sp-tag{color:#e7ebf4}}
.newic{font-size:10px;font-weight:700;letter-spacing:.5px;color:var(--blue)!important;background:var(--blue-soft)!important;border:1.5px dashed var(--blue)}
.dcard .pct.newb{background:var(--blue-soft);color:var(--blue)}
.brandrow .brandtile{border:1px solid var(--line);cursor:pointer;font:inherit}
.brandrow .lg{width:84px;height:44px;border-radius:10px;background:#fff;color:var(--fg);font-size:14px;padding:4px}
.brandrow .lg img{object-fit:contain}
.hsub{display:block;font-size:12.5px;color:var(--muted);font-weight:400}
.hscroll.recent{grid-auto-columns:132px}
.rcard{display:flex;flex-direction:column;gap:3px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:6px 6px 8px;text-decoration:none;color:inherit;min-width:0}
.rcard .ri{display:grid;place-items:center;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--sunk);color:var(--brand)}
.rcard .ri img{width:100%;height:100%;object-fit:cover}
.rcard b{font-size:12.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rcard .price{font-size:13px}.rcard small{font-size:11.5px;color:var(--muted)}
.brandlist{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.bl{display:grid;grid-template-columns:52px 1fr 1fr auto;gap:8px;align-items:center}
.bl .cc{width:52px;height:40px;border-radius:8px;border:1px dashed var(--line);display:grid;place-items:center;overflow:hidden;cursor:pointer;background:#fff;color:var(--muted)}
.bl .cc img{width:100%;height:100%;object-fit:contain}
.seeall{background:none;border:0;cursor:pointer;font:inherit;font-size:14px;font-weight:600;color:var(--brand)}
/* messages on phones: list first, then a full-height chat with the box always visible */
.chat .backbtn{display:none}
@media (max-width:760px){
  .threads .chat{display:none}
  .threads.open .tlist{display:none}
  .threads.open .chat{display:flex;position:fixed;top:calc(60px + env(safe-area-inset-top,0px));bottom:calc(72px + env(safe-area-inset-bottom,0px));left:0;right:0;height:auto;z-index:15;border-radius:0;border-inline:0}
  .chat .backbtn{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--brand-soft);color:var(--brand);text-decoration:none;font-size:20px;flex:none}
  .chat .chatguard{font-size:12px;padding:6px 10px}
  .chat form{padding:8px;background:var(--surface)}
}

/* ===== v1.8 polish: closer to Hisham's reference ===== */
.logo,.sp-wm{font-family:var(--brandfont)}
.logo{font-size:23px}.logo .mark{width:38px;height:38px}
@media (max-width:760px){.logo{font-size:21px}.logo .mark{width:36px;height:36px}}
.icbtn{background:var(--surface);border:1px solid var(--line);color:var(--fg)}
.icbtn:hover{background:var(--sunk)}
/* single search pill */
.hero .search{flex-direction:row;padding:0;border-radius:99px;box-shadow:none;background:var(--surface);border:1px solid var(--line);margin-top:10px}
.hero .search .sin{flex:1;background:transparent;border-radius:99px;padding:0 14px}
.hero .search .srow{display:none}
.hero .search .sin input{padding:12px 0}
.cityF{max-width:150px}
/* live hero slide */
.slide.live{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 20px;color:#fff;background:radial-gradient(circle at 85% 40%,rgba(30,144,255,.45),transparent 55%),linear-gradient(135deg,#071d3d 0%,#0B2D5B 55%,#123f80 100%)}
.slide.live .lt{display:flex;flex-direction:column;gap:4px;min-width:0}
.slide.live small{opacity:.85;font-size:clamp(11px,2.4vw,15px)}
.slide.live b{font-size:clamp(19px,4.6vw,38px);line-height:1.2;font-weight:700}
.slide.live em{font-style:normal;color:#f2c14e}
.slide.live .pts{font-size:clamp(10px,2.2vw,14px);opacity:.8}
.slide.live .shopnow{align-self:flex-start;margin-top:6px;background:#f2c14e;color:#1a1405;font-weight:600;border-radius:99px;padding:6px 14px;text-decoration:none;font-size:clamp(12px,2.6vw,15px);display:inline-flex;gap:6px;align-items:center}
.slide.live .shopnow i{font-style:normal}
.slide.live .la{width:clamp(80px,26vw,210px);height:auto;filter:drop-shadow(0 10px 18px rgba(0,0,0,.35));flex:none}
/* category pictures */
.catrow{grid-auto-columns:82px}
.catc .cc{width:64px;height:64px;background:linear-gradient(145deg,hsl(var(--h) 75% 96%),hsl(var(--h) 60% 88%))}
.catc .cc .cart{width:44px;height:44px}
.catc b{font-size:12.5px}
/* cards: white, clean */
.card{background:var(--surface)}
.card img{background:#f6f8fb}
.card h3{font-size:14.5px;font-weight:500;letter-spacing:0}
.card .price{font-size:16.5px;font-weight:700}
.card .meta{font-size:12px}
.dcard .dn{font-size:14px}
.dcard .price{font-weight:700}
body{letter-spacing:0;-webkit-font-smoothing:antialiased}
.slides .slide{aspect-ratio:auto;height:clamp(168px,31vw,340px)}

/* ---------- v1.9 ---------- */
/* share sheet */
.sharesheet h2{display:flex;align-items:center;gap:8px;margin:0 0 4px}
.sharesheet textarea{min-height:96px;margin-top:4px}
.shnoor{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 12px}
.shgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px}
.shgrid .btn{justify-content:center}
/* product ratings + deep link highlight */
.prod .prate{font-size:12.5px;margin:2px 0 4px}
.prod .prate .stars{font-size:13px}
.prod.flash{animation:ncflash 2.4s ease-out 1;outline:2px solid var(--gold);outline-offset:2px}
@keyframes ncflash{0%,30%{box-shadow:0 0 0 6px rgba(200,150,46,.35)}100%{box-shadow:none}}
@media (prefers-reduced-motion:reduce){.prod.flash{animation:none}}
.rate.sm{display:inline-flex;margin:0;vertical-align:-2px}
.rate.sm button{font-size:17px;padding:0 1px}
.order li .stars{font-size:13px}
/* ad history */
.histlist{list-style:none;margin:6px 0 0;padding:0;border-inline-start:2px solid var(--line)}
.histlist li{position:relative;padding:0 14px 12px;font-size:14px}
.histlist li::before{content:"";position:absolute;inset-inline-start:-6px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--brand);border:2px solid var(--surface)}
.histlist li .meta{display:block;font-size:12.5px;margin-top:2px}
.histlist b{font-weight:500}
/* help page */
.faq details{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 14px;margin-bottom:8px}
.faq summary{cursor:pointer;padding:12px 0;font-weight:600;list-style-position:inside}
.faq details[open] summary{color:var(--brand)}
.faq details p{margin:0 0 10px;line-height:1.75}
.faq details .btn{margin-bottom:12px}
.helpask h3{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hpchat{display:flex;flex-direction:column;gap:8px;max-height:420px;overflow:auto;margin:6px 0 10px}
.hpchat .bub{max-width:92%;white-space:normal;line-height:1.7}
.hpchat .bub .hoor{color:var(--brand);display:inline-flex;align-items:center;gap:4px;font-size:13px}
.hpchat .bub.me{white-space:pre-wrap}
.hprow{display:flex;gap:8px}
.hprow .in{flex:1}
.hplinks{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
/* admin: launch readiness, jobs, traffic */
.light{display:inline-block;width:12px;height:12px;border-radius:50%;flex:none;margin-top:5px;background:var(--muted)}
.light.ok{background:#1e8a50}.light.warn{background:#d39b1c}.light.bad{background:var(--danger)}
.rdsum{margin-bottom:16px}
.rdbar{height:10px;border-radius:99px;background:var(--sunk);overflow:hidden}
.rdbar i{display:block;height:100%;background:linear-gradient(90deg,#1e8a50,#3fb27a);border-radius:inherit}
.rdcounts{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin-top:10px;font-size:14px}
.rdcounts .light{margin:0;vertical-align:-1px}
.rdsec{margin-bottom:18px}
.rdsec h3{margin:0 0 8px;font-size:16px}
.rdi{display:flex;gap:12px;background:var(--surface);border:1px solid var(--line);border-inline-start-width:4px;border-radius:12px;padding:12px 14px;margin-bottom:8px}
.rdi.ok{border-inline-start-color:#1e8a50}.rdi.warn{border-inline-start-color:#d39b1c}.rdi.bad{border-inline-start-color:var(--danger)}
.rdi p{margin:2px 0 6px;display:block}
.rdi .check{margin-top:4px}
.rdsteps{margin:4px 0 6px;padding-inline-start:20px;font-size:13.5px;color:var(--muted)}
.jobbanner{display:block;text-decoration:none;color:var(--danger);font-weight:600}
.bar{display:inline-block;width:70px;height:7px;border-radius:99px;background:var(--sunk);overflow:hidden;vertical-align:middle}
.bar i{display:block;height:100%;background:var(--brand)}
