/* سوق يوتير — the Mini App. White, one blue for actions, six soft tints for the categories.
   2.17.0: every colour is a variable, and the dark palette below redefines each one. Dark follows Telegram's own theme
   inside Telegram (core.js sets data-theme from Telegram.WebApp.colorScheme and takes its neutrals from themeParams),
   and the phone's setting outside it (prefers-color-scheme). A section's CSS uses these variables only.
   --acc / --ok / --bad are for text, icons and pills; a fill under white text (--on-acc) uses its -solid twin, which
   stays dark enough for white in both palettes (4.5:1 or more). */
:root {
  color-scheme: light;
  --bg:#f5f6f8; --card:#fff; --line:#eceef2; --line2:#dfe2e8; --text:#14161a; --text2:#3b4048; --mut:#7a808a;
  --acc:#2f6fed; --acc2:#1f57c9; --acc-bg:#eaf1fe; --acc-fg:#1f57c9; --acc-line:#b9cdf8; --on-acc:#fff;
  --acc-solid:#2f6fed; --acc-press:#1f57c9; --ok-solid:#16a34a; --bad-solid:#dc2626;
  --ok:#16a34a; --ok-bg:#e7f6ec; --ok-fg:#11743a; --ok-line:#cdeed8; --warn:#d97706; --warn-bg:#fef3e2; --warn-fg:#8a4b00;
  --bad:#dc2626; --bad-bg:#fdecec; --star:#f5a524; --star-off:#dfe2e8;
  --empty-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a808a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 13.5 6 5.5h12l2.5 8v5a1 1 0 0 1-1 1h-15a1 1 0 0 1-1-1z'/%3E%3Cpath d='M3.5 13.5h5l1 2.5h5l1-2.5h5'/%3E%3C/svg%3E");
  --chip:#eceef2; --win:#fff; --shadow:rgba(20,22,26,.08); --glass:rgba(255,255,255,.94); --cat-ic:rgba(255,255,255,.75);
  --toast-bg:#14161a; --toast-fg:#fff; --team-bg:#14161a; --team-fg:#fff; --team-name:#9fc0ff; --sk1:#eceef2; --sk2:#f5f6f8;
  --gold:#c58a00; --gold-bg:#fff3d6; --gold-fg:#8a5a00; --gold-line:#f6dfa3; --gold-mut:#8a6a2a; --gold-go:#b08a3a;
  --gold-card:linear-gradient(135deg, #fffaf0, #fff3d6);
  --d1:#efeafe; --i1:#6d4fd8; --d2:#ffefe4; --i2:#e46c1c; --d3:#e5f6ef; --i3:#13906a;
  --d4:#fdeaf1; --i4:#d23d75; --d5:#e6f2fd; --i5:#2a7cd0; --d6:#fff5da; --i6:#b98205;
  --scrim: rgba(12, 14, 18, .62);   /* 2.17.0: the dark veil behind sheets and full-screen viewers (both themes) */
  --pro-ink: #14161a; --pro-gold: #f2c14e;   /* «برو»: gold only for Pro, only on ink (brand guide; both themes) */
  --g1:linear-gradient(135deg, #efeafe, #dcd2fd); --g2:linear-gradient(135deg, #ffefe4, #ffd9bf); --g3:linear-gradient(135deg, #e5f6ef, #c5ecdc);
  --g4:linear-gradient(135deg, #fdeaf1, #f9cfe0); --g5:linear-gradient(135deg, #e6f2fd, #c9e2fa); --g6:linear-gradient(135deg, #fff5da, #ffe7a8);
  --pbanner:linear-gradient(120deg, #e8e2fe, #d7e6fd 60%, #dff4ea);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
/* the dark palette: twice on purpose — the phone's setting before the script runs (and outside Telegram), and
   Telegram's own choice once core.js has read it (data-theme wins either way) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    color-scheme: dark;
    --bg:#0e1014; --card:#181b21; --line:#252a32; --line2:#323843; --text:#eceef2; --text2:#c3c8d0; --mut:#8b929d;
    --acc:#4d8dff; --acc2:#3876ea; --acc-bg:#172338; --acc-fg:#9cbcff; --acc-line:#2f4a7a; --on-acc:#fff;
  --acc-solid:#2f6fed; --acc-press:#2559c8; --ok-solid:#1b8048; --bad-solid:#d63b3b;
  --empty-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b929d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 13.5 6 5.5h12l2.5 8v5a1 1 0 0 1-1 1h-15a1 1 0 0 1-1-1z'/%3E%3Cpath d='M3.5 13.5h5l1 2.5h5l1-2.5h5'/%3E%3C/svg%3E");
    --ok:#3cc47a; --ok-bg:#12291d; --ok-fg:#7fe0a8; --ok-line:#1f4a33; --warn:#f0a43c; --warn-bg:#2e2310; --warn-fg:#f6c27a;
    --bad:#f26464; --bad-bg:#341617; --star:#f7b733; --star-off:#3a404b;
    --chip:#232830; --win:#262b34; --shadow:rgba(0,0,0,.35); --glass:rgba(24,27,33,.92); --cat-ic:rgba(255,255,255,.08);
    --toast-bg:#eceef2; --toast-fg:#14161a; --team-bg:#263046; --team-fg:#eef2ff; --team-name:#9cbcff; --sk1:#1c2027; --sk2:#252a32;
    --gold:#f2b63c; --gold-bg:#33290f; --gold-fg:#f5c862; --gold-line:#4d3d14; --gold-mut:#c7a35a; --gold-go:#c7a35a;
    --gold-card:linear-gradient(135deg, #221d10, #2b2412);
    --d1:#221c38; --i1:#a68eff; --d2:#33200f; --i2:#ff9d5c; --d3:#0f2a23; --i3:#45c99d;
    --d4:#331725; --i4:#f27aa8; --d5:#12253a; --i5:#6caef2; --d6:#302610; --i6:#e8b84a;
    --g1:linear-gradient(135deg, #1f1a33, #2b2350); --g2:linear-gradient(135deg, #2b1c10, #3d2614); --g3:linear-gradient(135deg, #0f251f, #153a2f);
    --g4:linear-gradient(135deg, #2b1520, #3d1b2d); --g5:linear-gradient(135deg, #11223a, #173156); --g6:linear-gradient(135deg, #2a2110, #3d3014);
    --pbanner:linear-gradient(120deg, #231d3d, #16294a 60%, #123026);
  }
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg:#0e1014; --card:#181b21; --line:#252a32; --line2:#323843; --text:#eceef2; --text2:#c3c8d0; --mut:#8b929d;
  --acc:#4d8dff; --acc2:#3876ea; --acc-bg:#172338; --acc-fg:#9cbcff; --acc-line:#2f4a7a; --on-acc:#fff;
  --acc-solid:#2f6fed; --acc-press:#2559c8; --ok-solid:#1b8048; --bad-solid:#d63b3b;
  --empty-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b929d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 13.5 6 5.5h12l2.5 8v5a1 1 0 0 1-1 1h-15a1 1 0 0 1-1-1z'/%3E%3Cpath d='M3.5 13.5h5l1 2.5h5l1-2.5h5'/%3E%3C/svg%3E");
  --ok:#3cc47a; --ok-bg:#12291d; --ok-fg:#7fe0a8; --ok-line:#1f4a33; --warn:#f0a43c; --warn-bg:#2e2310; --warn-fg:#f6c27a;
  --bad:#f26464; --bad-bg:#341617; --star:#f7b733; --star-off:#3a404b;
  --chip:#232830; --win:#262b34; --shadow:rgba(0,0,0,.35); --glass:rgba(24,27,33,.92); --cat-ic:rgba(255,255,255,.08);
  --toast-bg:#eceef2; --toast-fg:#14161a; --team-bg:#263046; --team-fg:#eef2ff; --team-name:#9cbcff; --sk1:#1c2027; --sk2:#252a32;
  --gold:#f2b63c; --gold-bg:#33290f; --gold-fg:#f5c862; --gold-line:#4d3d14; --gold-mut:#c7a35a; --gold-go:#c7a35a;
  --gold-card:linear-gradient(135deg, #221d10, #2b2412);
  --d1:#221c38; --i1:#a68eff; --d2:#33200f; --i2:#ff9d5c; --d3:#0f2a23; --i3:#45c99d;
  --d4:#331725; --i4:#f27aa8; --d5:#12253a; --i5:#6caef2; --d6:#302610; --i6:#e8b84a;
  --g1:linear-gradient(135deg, #1f1a33, #2b2350); --g2:linear-gradient(135deg, #2b1c10, #3d2614); --g3:linear-gradient(135deg, #0f251f, #153a2f);
  --g4:linear-gradient(135deg, #2b1520, #3d1b2d); --g5:linear-gradient(135deg, #11223a, #173156); --g6:linear-gradient(135deg, #2a2110, #3d3014);
  --pbanner:linear-gradient(120deg, #231d3d, #16294a 60%, #123026);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); }
body { color: var(--text); font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; font-size: 14px; line-height: 1.65;
       -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
textarea, input { font: inherit; color: inherit; }
.hide { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.s { width: 15px; height: 15px; }
svg.i.f { fill: currentColor; stroke: none; }

main { padding: 14px 16px calc(84px + var(--safe-b)); }
main.bare { padding: 0 0 calc(84px + var(--safe-b)); }
.pad { padding: 14px 16px; }
.banner { background: var(--acc-bg); color: var(--acc-fg); font-size: 12.5px; padding: 9px 16px; display: flex; gap: 8px; align-items: center;
          flex-wrap: wrap; row-gap: 4px; }
.banner a { margin-inline-start: auto; font-weight: 600; white-space: nowrap; }
.banner span { flex: 1; min-width: 150px; }
/* outside Telegram every page but home carries the way home (core.js draws it) */
.banner .bn-home { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: var(--card);
                   color: var(--acc-fg); white-space: nowrap; }

/* tabs and the bottom action bar */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; height: calc(62px + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--card);
        border-top: 1px solid var(--line); display: flex; z-index: 10; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--mut); position: relative; }
.tabs a.on { color: var(--acc); font-weight: 600; }
.tabs a .n { position: absolute; top: 7px; left: calc(50% - 22px); background: var(--bad-solid); color: var(--on-acc); font-size: 10px; font-weight: 700;
             min-width: 17px; height: 17px; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line);
       padding: 12px 16px calc(14px + var(--safe-b)); display: flex; align-items: center; gap: 14px; z-index: 11; }
.bar .p b { display: block; font-size: 19px; font-weight: 700; line-height: 1.25; }
.bar .p small { color: var(--mut); font-size: 11px; }
.btn { flex: 1; height: 50px; border-radius: 14px; background: var(--acc-solid); color: var(--on-acc); display: flex; align-items: center; justify-content: center;
       gap: 8px; font-weight: 600; font-size: 15px; }
.btn:active { background: var(--acc-press); }
.btn.o { background: var(--card); color: var(--text); border: 1px solid var(--line2); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(96px + var(--safe-b)); background: var(--toast-bg); color: var(--toast-fg); border-radius: 12px;
         padding: 10px 14px; font-size: 13px; text-align: center; z-index: 20; }

/* home */
.hello .h { font-size: 13px; color: var(--mut); }
.hello .n { font-size: 20px; font-weight: 700; line-height: 1.4; }
.search { margin-top: 14px; height: 46px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center;
          gap: 9px; padding: 0 14px; color: var(--mut); }
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 14px; color: var(--text); min-width: 0; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 10px; }
.sec b { font-size: 15.5px; font-weight: 700; }
.sec a { color: var(--acc); font-size: 12.5px; font-weight: 600; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat { border-radius: 14px; padding: 12px 10px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; }
.cat .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--cat-ic); display: flex; align-items: center; justify-content: center; }
.cat span { color: var(--text); line-height: 1.4; }
.cat small { font-weight: 400; color: var(--mut); font-size: 11px; line-height: 1.2; }
.t1 { background: var(--d1); color: var(--i1); } .t2 { background: var(--d2); color: var(--i2); } .t3 { background: var(--d3); color: var(--i3); }
.t4 { background: var(--d4); color: var(--i4); } .t5 { background: var(--d5); color: var(--i5); } .t6 { background: var(--d6); color: var(--i6); }
.g1 { background: var(--g1); color: var(--i1); } .g2 { background: var(--g2); color: var(--i2); }
.g3 { background: var(--g3); color: var(--i3); } .g4 { background: var(--g4); color: var(--i4); }
.g5 { background: var(--g5); color: var(--i5); } .g6 { background: var(--g6); color: var(--i6); }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: block; }
.cover { position: relative; display: flex; align-items: center; justify-content: center; }
.win { width: 56%; aspect-ratio: 4 / 3; background: var(--win); border-radius: 10px; padding: 7%; display: flex; flex-direction: column; gap: 8%;
       box-shadow: 0 8px 20px var(--shadow); }
.win .bar_ { height: 5px; width: 36%; border-radius: 99px; background: currentColor; opacity: .55; }
.win .ban { flex: 1.3; border-radius: 6px; background: currentColor; opacity: .18; }
.win .sq { flex: 1; display: flex; gap: 6%; }
.win .sq i { flex: 1; border-radius: 5px; background: currentColor; opacity: .1; }
.cover .tag { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--card); color: var(--text); font-size: 11px; font-weight: 600;
              padding: 2px 10px; border-radius: 99px; box-shadow: 0 2px 6px var(--shadow); }
.feat .cover { height: 150px; }
.feat .in { padding: 12px 14px 13px; }
.t { font-weight: 600; font-size: 14.5px; line-height: 1.55; }
.by { display: flex; align-items: center; gap: 7px; color: var(--mut); font-size: 12.5px; margin-top: 3px; }
.av { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.av.xs { width: 22px; height: 22px; font-size: 11px; }
.av.m { width: 42px; height: 42px; font-size: 16px; }
.av.xl { width: 84px; height: 84px; font-size: 32px; }
.vf { color: var(--acc); display: inline-flex; }
.vf svg.i { color: var(--acc); fill: var(--acc); }
.meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.rate { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--mut); }
.rate b { color: var(--text); font-weight: 600; }
.rate svg { color: var(--star); }
.new { font-size: 11.5px; color: var(--acc); background: var(--acc-bg); border-radius: 99px; padding: 0 8px; font-weight: 600; }
.price { font-weight: 700; font-size: 16px; white-space: nowrap; }
.price small { color: var(--mut); font-weight: 500; font-size: 11px; margin-inline-start: 2px; }
.item { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; margin-bottom: 8px; }
.item .cover { width: 76px; height: 76px; border-radius: 12px; flex: none; }
.item .cover .win { width: 70%; padding: 9%; border-radius: 6px; }
.item .cover .win .bar_ { height: 3px; }
.item .mid { flex: 1; min-width: 0; }
.item .t { font-size: 13.5px; }
.seg { display: flex; background: var(--chip); border-radius: 12px; padding: 4px; margin-top: 12px; }
.seg button { flex: 1; text-align: center; font-size: 12.5px; padding: 6px 0; border-radius: 9px; color: var(--mut); }
.seg button.on { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px var(--shadow); }
.count { color: var(--mut); font-size: 12px; margin: 12px 2px 8px; }
.empty { text-align: center; color: var(--mut); padding: 40px 20px; font-size: 13.5px; line-height: 1.9; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.empty::before { content: ""; display: block; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 17px;
                 background: var(--chip) var(--empty-ic) center / 24px no-repeat; }
.join { display: flex; align-items: center; gap: 12px; margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.join .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.join b { display: block; font-weight: 600; font-size: 14px; }
.join small { color: var(--mut); font-size: 12px; }
.join .go { margin-inline-start: auto; color: var(--mut); }

/* service */
.hero { height: 240px; }
.hero .win { width: 50%; }
.chip-cat { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
h1 { font-size: 19px; font-weight: 700; line-height: 1.5; margin-top: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12.5px; color: var(--mut); }
.facts span { display: flex; align-items: center; gap: 4px; }
.facts b { color: var(--text); font-weight: 600; }
.facts .star { color: var(--star); }
.desc { margin-top: 14px; font-size: 13.5px; color: var(--text2); line-height: 1.95; white-space: pre-line; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-top: 14px; display: block; }
.who { display: flex; align-items: center; gap: 11px; }
.who .n { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 5px; }
.who .s { color: var(--mut); font-size: 12px; }
.who .go { margin-inline-start: auto; color: var(--mut); }
.h3 { font-weight: 700; font-size: 15px; margin: 18px 0 8px; }
.rev { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.8; color: var(--text2); margin-bottom: 8px; }
.rev .stars { color: var(--star); display: flex; gap: 1px; }
.rev small { color: var(--mut); display: block; font-size: 11.5px; }
.note { display: flex; gap: 9px; border-radius: 13px; padding: 11px 13px; font-size: 12.5px; line-height: 1.8; margin-top: 12px; }
.note.b { background: var(--acc-bg); color: var(--acc-fg); }
.note.g { background: var(--ok-bg); color: var(--ok-fg); }
.note.w { background: var(--warn-bg); color: var(--warn-fg); }
.note svg { margin-top: 3px; }

/* provider */
.pbanner { height: 110px; background: var(--pbanner); position: relative; }      /* «شارك» sits on it (core.js) */
.phead { text-align: center; margin-top: -44px; padding: 0 16px; position: relative; z-index: 1; }
.phead .av { border: 4px solid var(--bg); }
.phead .nm { font-size: 19px; font-weight: 700; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.badges { display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.bdg { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
.bdg.a { background: var(--acc-bg); color: var(--acc); } .bdg.g { background: var(--ok-bg); color: var(--ok); }
.stats { display: flex; margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 0; }
.stats div { flex: 1; text-align: center; font-size: 11.5px; color: var(--mut); border-inline-start: 1px solid var(--line); }
.stats div:first-child { border: 0; }
.stats b { display: block; font-size: 17px; color: var(--text); font-weight: 700; line-height: 1.5; }
.about { color: var(--text2); font-size: 13.5px; line-height: 1.9; margin-top: 12px; white-space: pre-line; }

/* order form */
.mini { display: flex; gap: 10px; align-items: center; }
.mini .cover { width: 52px; height: 52px; border-radius: 11px; flex: none; }
.mini .cover .win { width: 70%; padding: 9%; border-radius: 5px; }
.mini .cover .win .bar_ { height: 3px; }
.lbl { font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
.lbl small { color: var(--mut); font-weight: 400; }
textarea.field { width: 100%; min-height: 150px; resize: vertical; background: var(--card); border: 1px solid var(--line); border-radius: 13px;
                 padding: 11px 13px; font-size: 14px; line-height: 1.85; outline: 0; }
textarea.field:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-bg); }
.hint { color: var(--mut); font-size: 12px; margin-top: 6px; display: flex; justify-content: space-between; }

/* done */
.okc { width: 86px; height: 86px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center;
       margin: 30px auto 0; box-shadow: 0 0 0 10px rgba(22,163,74,.06); }
.okc svg { width: 40px; height: 40px; stroke-width: 2.4; }
.big { font-size: 22px; font-weight: 700; margin-top: 14px; text-align: center; }
.center { text-align: center; }
.next div { display: flex; gap: 11px; padding: 9px 0; font-size: 13px; color: var(--text2); align-items: flex-start; }
.next .k { width: 24px; height: 24px; border-radius: 50%; background: var(--acc-bg); color: var(--acc); font-size: 12px; font-weight: 700; display: flex;
           align-items: center; justify-content: center; flex: none; }
.next b { color: var(--text); font-weight: 600; display: block; }

/* orders */
.ord { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-top: 10px; display: block; }
.ord .top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--mut); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
.pill.b { background: var(--acc-bg); color: var(--acc); } .pill.w { background: var(--warn-bg); color: var(--warn); }
.pill.g { background: var(--ok-bg); color: var(--ok); } .pill.r { background: var(--bad-bg); color: var(--bad); } .pill.n { background: var(--chip); color: var(--text2); }
.ord .mini { margin-top: 8px; }

/* one order */
.otop { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--mut); }
a.mini { display: flex; }
.steps { display: flex; margin-top: 12px; position: relative; }
.steps::before { content: ""; position: absolute; top: 11px; inset-inline: 12%; height: 2px; background: var(--line); }
.stp { flex: 1; text-align: center; font-size: 11px; color: var(--mut); position: relative; }
.stp i { width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 2px solid var(--line2); margin: 0 auto 4px; display: flex;
         align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 600; }
.stp.done i { background: var(--acc-solid); border-color: var(--acc-solid); color: var(--on-acc); }
.stp.done svg { width: 12px; height: 12px; stroke-width: 2.8; }
.stp.now i { border-color: var(--acc); color: var(--acc); box-shadow: 0 0 0 4px var(--acc-bg); }
.stp.now { color: var(--text); font-weight: 600; }
.acts { display: flex; gap: 8px; margin-top: 12px; }
.btn.ok { background: var(--ok-solid); }
.rstars { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.rstars button, .rstars span { color: var(--star-off); }
.rstars svg { width: 34px; height: 34px; }
.rstars span.y, .rstars button:active { color: var(--star); }
details.box summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
details.box .desc { margin-top: 8px; }
textarea.field.sm { min-height: 84px; margin-top: 8px; }
.link { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--mut); font-size: 12.5px; width: 100%; margin-top: 14px; }
.chat { display: flex; flex-direction: column; gap: 7px; }
.sys { align-self: center; color: var(--mut); font-size: 11.5px; background: var(--chip); border-radius: 99px; padding: 2px 12px; margin: 2px 0; text-align: center; }
.bb { max-width: 80%; padding: 7px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.75; }
.bb p { white-space: pre-line; word-break: break-word; }
.bb b { display: block; font-size: 11.5px; font-weight: 600; color: var(--acc-fg); }
.bb small { display: block; font-size: 10.5px; opacity: .6; }
.bb .att { display: block; font-size: 12.5px; opacity: .85; }
.bb.o { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-start-start-radius: 5px; }
.bb.me { align-self: flex-end; background: var(--acc-solid); color: var(--on-acc); border-start-end-radius: 5px; }
.bb.team { align-self: center; background: var(--team-bg); color: var(--team-fg); }
.bb.team b { color: var(--team-name); }
.composer { display: flex; align-items: center; gap: 8px; width: 100%; }
.composer input { flex: 1; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); padding: 0 16px; font-size: 14px; outline: 0; min-width: 0; }
.composer input:focus { border-color: var(--acc); }
.composer .snd { width: 44px; height: 44px; border-radius: 50%; background: var(--acc-solid); color: var(--on-acc); display: flex; align-items: center; justify-content: center; flex: none; }

/* the chat (2.17.0): a date line per day, photos and files, a composer that grows, a photo full screen */
.dsep { align-self: center; margin: 8px 0 2px; }
.dsep span { display: inline-block; font-size: 11px; font-weight: 600; color: var(--mut); background: var(--card); border: 1px solid var(--line);
             border-radius: 99px; padding: 1px 12px; }
.bb.pic { padding: 4px 4px 6px; width: 252px; max-width: 80%; }
.bb.pic > b, .bb.pic > p, .bb.pic > small, .bb.pic > .att { padding: 0 8px; }
.bb.pic > b { padding-top: 3px; }
.bb .ph { display: block; width: 100%; border-radius: 12px; overflow: hidden; background: var(--bg); margin-bottom: 3px; }
.bb .ph img { display: block; width: 100%; height: auto; max-height: 320px; min-height: 80px; object-fit: cover; }
.bb .fcard { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 200px; text-align: right; padding: 8px 10px; margin: 3px 0 4px;
             border-radius: 12px; background: var(--bg); color: var(--text); }
.bb.me .fcard { background: var(--acc2); color: var(--card); }
.fcard .fi, .pend .fi { width: 38px; height: 38px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); display: flex; align-items: center;
                        justify-content: center; flex: none; }
.fcard .fn { flex: 1; min-width: 0; }
.fcard .fn b { display: block; font-size: 12.5px; font-weight: 600; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcard .fn small { display: block; font-size: 11px; opacity: .75; }
.bb .att svg { vertical-align: -3px; }
.cmpw { width: 100%; }
.composer { align-items: flex-end; gap: 6px; }
.composer textarea { flex: 1; min-width: 0; height: 44px; min-height: 44px; max-height: 132px; resize: none; overflow-y: auto; border-radius: 22px;
                     border: 1px solid var(--line); background: var(--bg); padding: 10px 16px; font-size: 14px; line-height: 1.6; outline: 0; }
.composer textarea:focus { border-color: var(--acc); }
.composer .att { width: 38px; height: 44px; color: var(--mut); display: flex; align-items: center; justify-content: center; flex: none; border-radius: 12px; }
.composer .att:active { color: var(--acc); }
.composer .att[disabled] { opacity: .45; }
.composer .snd svg { transform: scaleX(-1); }
.composer .snd[disabled] { opacity: .6; }
.pend { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 6px 8px; margin-bottom: 8px; }
.pend .pth { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; display: block; }
.pend .pnm { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.5; }
.pend .pnm b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pend .pnm small { display: block; color: var(--mut); font-size: 11px; }
.pend .unp { width: 34px; height: 34px; border-radius: 50%; color: var(--mut); display: flex; align-items: center; justify-content: center; flex: none; }
body.chatting main { padding-bottom: calc(var(--barh, 84px) + 16px); }
.chat > * { scroll-margin-bottom: calc(var(--barh, 84px) + 16px); }
.lbx { position: fixed; inset: 0; z-index: 40; background: var(--scrim); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
       display: flex; align-items: center; justify-content: center; padding: 16px; }
.lbx img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lbx .x { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; width: 42px; height: 42px; border-radius: 50%;
          background: var(--card); color: var(--text); display: flex; align-items: center; justify-content: center; }
.rstars button.y { color: var(--star); }
.rword { font-size: 12.5px; color: var(--mut); margin-top: 2px; min-height: 20px; }
.rnote { color: var(--mut); font-size: 11.5px; margin-top: 6px; }

/* the provider's own page and the verification of his Salla account (2.15.0) */
input.field { width: 100%; height: 48px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 0 13px;
              font-size: 14px; outline: 0; }
input.field:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-bg); }
input.field.ltr { text-align: left; }
textarea.field.md { min-height: 110px; }
.agree { display: flex; gap: 9px; align-items: center; font-size: 13px; margin-top: 14px; }
.agree input { width: 19px; height: 19px; accent-color: var(--acc); flex: none; }
.hero2 { text-align: center; padding: 6px 0 2px; }
.hero2 .ic { width: 64px; height: 64px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; }
.hero2 .ic svg.i { width: 30px; height: 30px; }
.sub { color: var(--mut); font-size: 13px; line-height: 1.9; margin-top: 6px; }
.me2 { display: flex; gap: 12px; align-items: center; margin-top: 0; }
.me2 .n { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.av.l { width: 56px; height: 56px; font-size: 22px; }
.vcard { display: flex; gap: 12px; align-items: center; }
.vcard .ic { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.vcard b { display: block; font-weight: 600; font-size: 14px; }
.vcard small { color: var(--mut); font-size: 12px; line-height: 1.7; display: block; }
.vcard .go { margin-inline-start: auto; color: var(--mut); }
.vcard.b .ic { background: var(--acc-bg); color: var(--acc); } .vcard.w .ic { background: var(--warn-bg); color: var(--warn); }
.vcard.g .ic { background: var(--ok-bg); color: var(--ok); } .vcard.g { border-color: var(--ok-line); } .vcard.w { border-color: var(--warn-bg); }
.menu { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-top: 14px; overflow: hidden; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-top: 1px solid var(--line); text-align: right; }
.menu > :first-child { border-top: 0; }
.menu span { flex: 1; font-size: 14px; }
.menu small { display: block; color: var(--mut); font-size: 11.5px; }
.menu .go { color: var(--mut); }
.menu .n { flex: none; background: var(--bad-solid); color: var(--on-acc); font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 99px;
           display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.codebox { background: var(--card); border: 1.5px dashed var(--acc-line); border-radius: 16px; padding: 14px; margin-top: 14px; text-align: center; }
.codebox small { color: var(--mut); font-size: 12px; display: block; }
.codebox b { display: block; font-size: 26px; font-weight: 700; letter-spacing: 2px; margin: 4px 0 10px; color: var(--acc-fg);
             user-select: all; -webkit-user-select: all; }
.codebox .btn { display: inline-flex; flex: none; height: 42px; padding: 0 22px; gap: 7px; font-size: 13.5px; }
.prof { display: flex; gap: 10px; align-items: center; }
.prof .t { font-weight: 600; font-size: 14px; }
.prof small { color: var(--mut); font-size: 12px; display: block; }
.prof .chg { margin-inline-start: auto; color: var(--acc); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.btn.sm { height: 40px; font-size: 13px; }

/* «برو», the providers' subscription (2.16.0) */
/* the chip is ink with gold: gold is only ever Pro, and only on ink (brand guide) — two small gold diamonds, then «برو» */
.prochip { display: inline-flex; align-items: center; gap: 3px; background: var(--pro-ink); color: var(--pro-gold); font-size: 10px; font-style: normal;
           font-weight: 700; line-height: 1; padding: 3px 6px 3px 5px; border-radius: 6px; margin-inline-start: 2px;
           box-shadow: 0 0 0 1px rgba(242, 193, 78, .28); }      /* the gold edge keeps the ink chip visible on a dark card */
.prochip::before { content: ""; width: 9px; height: 4px; flex: none; background: var(--pro-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 4'%3E%3Cpath d='M2 0 L4 2 L2 4 L0 2 Z M7 0 L9 2 L7 4 L5 2 Z'/%3E%3C/svg%3E") center / 9px 4px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 4'%3E%3Cpath d='M2 0 L4 2 L2 4 L0 2 Z M7 0 L9 2 L7 4 L5 2 Z'/%3E%3C/svg%3E") center / 9px 4px no-repeat; }
.bdg.pro { background: var(--gold-bg); color: var(--gold-fg); }
.procard { display: flex; gap: 12px; align-items: center; background: var(--gold-card); border-color: var(--gold-line); }
.procard .ic { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, #ffd666, #f5a524); color: #fff;
               display: flex; align-items: center; justify-content: center; flex: none; }
.procard b { display: block; font-weight: 700; font-size: 14px; }
.procard small { color: var(--gold-mut); font-size: 12px; line-height: 1.7; display: block; }
.procard .go { margin-inline-start: auto; color: var(--gold-go); }
.procard.on { background: var(--card); border-color: var(--gold-line); }
.vcard.lock .ic { background: var(--chip); color: var(--mut); }
.okc.lock { background: var(--gold-bg); color: var(--gold); box-shadow: 0 0 0 10px rgba(245,165,36,.08); }
.prohero { text-align: center; padding: 8px 0 2px; }
.prohero .ic { width: 70px; height: 70px; border-radius: 22px; background: linear-gradient(135deg, #ffd666, #f5a524); color: #fff;
               display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(245,165,36,.3); }
.prohero .ic svg.i { width: 34px; height: 34px; }
.seg em { font-style: normal; font-size: 10.5px; color: var(--ok); font-weight: 700; margin-inline-start: 3px; }
.pricebox { text-align: center; margin-top: 14px; }
.pricebox b { font-size: 34px; font-weight: 700; line-height: 1.2; }
.pricebox small { color: var(--mut); font-size: 13px; margin-inline-start: 4px; }
.pricebox .sub { margin-top: 0; }
.plist > div, .flist > div { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.plist > :first-child, .flist > :first-child { border-top: 0; }
.plist .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--gold-bg); color: var(--gold); display: flex; align-items: center;
             justify-content: center; flex: none; }
.plist b { display: block; font-size: 13.5px; font-weight: 600; }
.plist small { display: block; color: var(--mut); font-size: 12px; line-height: 1.7; }
.flist > div { font-size: 13px; color: var(--text2); align-items: center; }
.flist svg { color: var(--ok); }
.stats.in { margin-top: 6px; border: 0; padding: 4px 0; background: var(--bg); }
.srows { margin-top: 8px; }
.srows a { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.srows span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srows small { color: var(--mut); }
.srows i { font-style: normal; display: inline-flex; align-items: center; gap: 3px; color: var(--mut); font-size: 12px; min-width: 42px; }
.box .h3 { display: flex; align-items: center; gap: 6px; }

/* the top bar (2.17.0): the market's name, and the sections' buttons (the bell…) */
.appbar { position: sticky; top: 0; z-index: 9; height: 52px; background: var(--glass); backdrop-filter: blur(10px);
          -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center;
          justify-content: space-between; padding: 0 12px 0 16px; }
.ab-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.ab-brand img { height: 26px; width: auto; }
.ab-brand .ab-mark { display: block; width: 30px; height: 30px; }   /* the mark alone, quietly (brand guide §0) */
.ab-acts { display: flex; gap: 4px; }
.ab-acts .ab-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.ab-acts .ab-btn:active { background: var(--bg); }
.ab-acts .ab-btn .n { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--bad-solid); color: var(--on-acc);
                      font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--card); }
.tabs a .n { left: calc(50% - 22px); }

/* loading */
.sk { background: linear-gradient(90deg, var(--sk1) 25%, var(--sk2) 37%, var(--sk1) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 14px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
