/* FB Internet account panel (app.fbinternets.com, 2026-11-09). The look of the owner's MyCense reseller panel (dark glassy
   cards, a colour per section, counters, toolbar, service cards with tiles; owner: «طراحی ظاهری رو از … پنل نمایندگی تیم
   اسپیک الهام بگیر») in FB Internet's lilac and green, with IRANYekan (the owner's licensed webfonts, the same files as
   the site's) and the menu of the design he picked («طرح ۱»: on the side; a floating bar at the bottom on phones).
   Colours are bare "r g b" so they take an alpha: rgb(var(--c) / .13). Dark by default, light with the top bar's toggle. */
@font-face { font-family: IRANYekan; src: url(fonts/iranyekan-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: IRANYekan; src: url(fonts/iranyekan-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: IRANYekan; src: url(fonts/iranyekan-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: IRANYekan; src: url(fonts/iranyekan-extrabold.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root { color-scheme: dark;
  --bg: #09080d; --card: #12111a; --raise: #1a1824; --raise2: #23212f; --field: #0c0b12; --pop: #181620;
  --glass: rgb(255 255 255 / .025); --dotc: rgb(255 255 255 / .055);
  --line: rgb(255 255 255 / .075); --line2: rgb(255 255 255 / .14);
  --ink: #f1eff7; --ink2: #cdc9da; --muted: #948fa7; --faint: #75708a;
  --okc: 74 222 128; --warnc: 251 191 36; --badc: 248 113 113; --infoc: 96 165 250;
  --ok: rgb(var(--okc)); --warn: rgb(var(--warnc)); --bad: rgb(var(--badc)); --info: rgb(var(--infoc));
  --sky: 56 189 248; --pink: 232 121 249; --red: 248 113 113; --blue: 96 165 250; --green: 74 222 128; --amber: 251 191 36;
  --violet: 167 139 250; --teal: 45 212 191; --orange: 251 146 60; --indigo: 129 140 248; --gray: 148 143 167;
  --a: 139 112 230; --a2: 98 72 190; --a3: 204 190 255; --a-ink: rgb(var(--a3)); /* FB lilac: selection, focus, tabs */
  --g: 34 197 94; --g2: 21 128 61; /* FB green: buy, the main button of a page */
  --c: var(--violet); --c-ink: rgb(var(--c));
  --sh-1: 0 1px 2px rgb(0 0 0 / .35), inset 0 1px 0 rgb(255 255 255 / .035);
  --sh-2: 0 22px 48px -26px rgb(0 0 0 / .95), inset 0 1px 0 rgb(255 255 255 / .05);
  --sh-3: 0 28px 70px -18px rgb(0 0 0 / .85);
  --ease: cubic-bezier(.23, 1, .32, 1); --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --side: 268px; --w: 1240px; }
:root[data-theme="light"] { color-scheme: light;
  --bg: #f4f2f9; --card: #fff; --raise: #f4f2f9; --raise2: #ebe8f3; --field: #fff; --pop: #fff;
  --glass: rgb(255 255 255 / .7); --dotc: rgb(28 20 50 / .06);
  --line: rgb(28 20 50 / .08); --line2: rgb(28 20 50 / .16);
  --ink: #17141f; --ink2: #3d3850; --muted: #645e75; --faint: #7f7992;
  --okc: 22 163 74; --warnc: 180 110 4; --badc: 220 38 38; --infoc: 37 99 235;
  --sky: 2 132 199; --pink: 192 38 211; --red: 220 38 38; --blue: 37 99 235; --green: 22 163 74; --amber: 202 120 4;
  --violet: 108 85 184; --teal: 13 148 136; --orange: 234 88 12; --indigo: 79 70 229; --gray: 120 113 140;
  --a: 108 85 184; --a2: 78 58 147; --a-ink: rgb(var(--a2)); --c-ink: color-mix(in srgb, rgb(var(--c)) 86%, #000);
  --g: 30 169 90; --g2: 11 107 53;
  --sh-1: 0 1px 2px rgb(28 20 50 / .06); --sh-2: 0 18px 38px -22px rgb(28 20 50 / .28); --sh-3: 0 24px 60px -18px rgb(28 20 50 / .3); }

/* a colour per section (menu chip, page header, dialogs) and per service kind (avatar, badge) */
:root[data-sec="services"], [data-tab="services"] { --c: var(--green); }
:root[data-sec="buy"], [data-tab="buy"], [data-tab="pay"] { --c: var(--violet); }
:root[data-sec="apps"], [data-tab="apps"] { --c: var(--sky); }
:root[data-sec="account"], [data-tab="account"] { --c: var(--amber); }
:root[data-sec="wallet"], [data-tab="wallet"] { --c: var(--teal); }
:root[data-sec="admin"], [data-tab="admin"] { --c: var(--orange); }
.k-violet { --k: var(--violet); } .k-green { --k: var(--green); } .k-sky { --k: var(--sky); } .k-amber { --k: var(--amber); }
.k-red { --k: var(--red); } .k-pink { --k: var(--pink); } .k-orange { --k: var(--orange); } .k-blue { --k: var(--blue); }
.k-teal { --k: var(--teal); } .k-indigo { --k: var(--indigo); } .k-gray { --k: var(--gray); }

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink); font: 14.5px/1.8 IRANYekan, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(1000px 440px at 92% -12%, rgb(var(--a) / .16), transparent 66%),
    radial-gradient(760px 380px at 0% -8%, rgb(var(--c) / .08), transparent 62%);
  background-repeat: no-repeat; }
[hidden] { display: none !important; }
a { color: var(--a-ink); text-decoration: none; }
@media (hover: hover) { a:hover { text-decoration: underline; } .btn:hover, .ibtn:hover, .nav a:hover, .tabbar a:hover, .chip-btn:hover, .me-btn:hover { text-decoration: none; } }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
img { display: block; max-width: 100%; }
.i { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i .f { fill: currentColor; stroke: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--mono); font-size: .93em; }
.sub { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid rgb(var(--a)); outline-offset: 2px; }
::selection { background: rgb(var(--a) / .35); }
.mark { flex: none; width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 6px 12px rgb(var(--g) / .3)); } /* logo.svg: the sprout, no box */

/* ---------------------------------------------------------------- buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding-inline: 16px;
  color: var(--ink); background: var(--raise); border: 1px solid var(--line); border-radius: 13px; cursor: pointer;
  white-space: nowrap; font-weight: 500; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn .i { width: 16px; height: 16px; }
.btn.primary { color: #fff; font-weight: 700; background: linear-gradient(135deg, rgb(var(--g)), rgb(var(--g2))); border-color: transparent;
  box-shadow: 0 10px 22px -12px rgb(var(--g)), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn.lilac { color: #fff; font-weight: 700; background: linear-gradient(135deg, rgb(var(--a)), rgb(var(--a2))); border-color: transparent;
  box-shadow: 0 10px 22px -12px rgb(var(--a)), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn.tint { color: var(--a-ink); background: rgb(var(--a) / .13); border-color: rgb(var(--a) / .22); }
.btn.warn { color: #fff; font-weight: 700; background: linear-gradient(135deg, rgb(var(--orange)), color-mix(in srgb, rgb(var(--orange)) 70%, #000)); border-color: transparent; }
.btn.danger { color: var(--bad); background: rgb(var(--badc) / .1); border-color: rgb(var(--badc) / .25); }
.btn.small { min-height: 36px; padding-inline: 12px; font-size: 13px; border-radius: 11px; }
.btn.icon-only { width: 42px; padding: 0; }
.btn.lg { min-height: 50px; font-size: 15px; border-radius: 15px; }
.btn.block { width: 100%; }
.ibtn { display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; color: var(--ink2); background: var(--card);
  border: 1px solid var(--line); border-radius: 13px; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .12s var(--ease); }
.ibtn:active { transform: scale(.95); }
.ibtn.sm { width: 34px; height: 34px; border-radius: 10px; background: none; border-color: transparent; color: var(--muted); }
.link { padding: 0; color: var(--a-ink); font-weight: 500; background: none; border: 0; cursor: pointer; }
.link.danger { color: var(--bad); }
@media (hover: hover) {
  .btn:hover { background: var(--raise2); border-color: var(--line2); }
  .btn.primary:hover { background: linear-gradient(135deg, rgb(var(--g)), rgb(var(--g2))); filter: brightness(1.08); border-color: transparent; }
  .btn.lilac:hover { background: linear-gradient(135deg, rgb(var(--a)), rgb(var(--a2))); filter: brightness(1.08); border-color: transparent; }
  .btn.warn:hover { background: linear-gradient(135deg, rgb(var(--orange)), color-mix(in srgb, rgb(var(--orange)) 70%, #000)); filter: brightness(1.08); }
  .btn.tint:hover { background: rgb(var(--a) / .2); border-color: rgb(var(--a) / .35); }
  .btn.danger:hover { background: rgb(var(--badc) / .17); border-color: rgb(var(--badc) / .45); }
  .btn:disabled:hover { background: var(--raise); filter: none; }
  .ibtn:hover { color: var(--ink); background: var(--raise); border-color: var(--line2); }
  .link:hover { text-decoration: underline; }
}
input, select, textarea { width: 100%; min-height: 44px; padding: 9px 14px; background-color: var(--field); border: 1px solid var(--line2);
  border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: rgb(var(--a)); box-shadow: 0 0 0 3px rgb(var(--a) / .22); }
input.ltr { text-align: left; }
input.ltr:placeholder-shown { text-align: right; }
select { appearance: none; -webkit-appearance: none; padding-inline-end: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23948fa7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 16px; background-position: left 12px center; }
input[type=checkbox], input[type=radio] { appearance: none; -webkit-appearance: none; display: inline-grid; place-content: center; flex: none;
  width: 19px; height: 19px; min-height: 0; margin: 0; padding: 0; background: var(--field); border: 1.5px solid var(--line2); border-radius: 6px; cursor: pointer; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:checked, input[type=radio]:checked { background: rgb(var(--a)); border-color: rgb(var(--a)); }
input[type=checkbox]:checked::after { content: ""; width: 11px; height: 11px; background: #fff; clip-path: polygon(14% 50%, 0 64%, 38% 100%, 100% 26%, 86% 12%, 37% 72%); }
input[type=radio]:checked::after { content: ""; width: 7px; height: 7px; background: #fff; border-radius: 50%; }
.field { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.field > span { line-height: 1.6; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 13.5px; line-height: 1.8; cursor: pointer; }
.check input { margin-top: 3px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row > .grow { flex: 1 1 0; }
.form { display: grid; gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.err { color: var(--bad); font-size: 13.5px; line-height: 1.8; }
.err:empty { display: none; }
.okmsg { color: var(--ok); font-size: 13.5px; }
.okmsg:empty { display: none; }
.note { color: var(--muted); font-size: 13px; line-height: 1.95; }
.spin { display: inline-block; flex: none; width: 16px; height: 16px; border: 2px solid rgb(var(--a) / .3); border-top-color: rgb(var(--a)); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy .i { animation: spin .7s linear infinite; }

/* ---------------------------------------------------------------- shell: side menu, top bar */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 6px; height: 100vh; height: 100dvh; padding: calc(18px + env(safe-area-inset-top)) 14px 14px;
  background: color-mix(in srgb, var(--card) 72%, transparent); border-inline-end: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--ink); text-decoration: none; }
.side .brand { padding: 4px 6px 18px; }
.brand b { display: block; font-size: 16px; font-weight: 800; line-height: 1.35; }
.brand small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.nav { display: grid; gap: 3px; }
.nav a, .nav-x { display: flex; align-items: center; gap: 11px; height: 46px; padding-inline: 7px 12px; color: var(--muted); font-weight: 500;
  border-radius: 13px; transition: background-color .15s, color .15s; }
.ti { flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: rgb(var(--c)); background: rgb(var(--c) / .13); border-radius: 10px; transition: background-color .15s; }
.ti .i { width: 17px; height: 17px; }
.nav a.on { color: var(--c-ink); background: rgb(var(--c) / .13); box-shadow: 9px 0 0 -6px rgb(var(--c)); }
.nav a.on .ti { background: rgb(var(--c) / .24); }
.nav .cnt, .tabbar .cnt { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 6px; color: #fff; font-size: 12px; font-weight: 700;
  line-height: 22px; text-align: center; background: rgb(var(--orange)); border-radius: 99px; }
.nav-x { --c: var(--blue); }
@media (hover: hover) { .nav a:not(.on):hover, .nav-x:hover { color: var(--ink); background: var(--raise); } }
.side-foot { display: grid; gap: 8px; margin-top: auto; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--raise); border: 1px solid var(--line); border-radius: 16px; }
.me-card > div { flex: 1 1 0; min-width: 0; line-height: 1.5; }
.me-card b { display: block; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.uav { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; color: #fff; font-size: 15px; font-weight: 700;
  line-height: 1; background: linear-gradient(140deg, rgb(var(--a)), rgb(var(--a2))); border-radius: 50%; }
.uav::after { content: ""; position: absolute; bottom: -1px; left: -1px; width: 11px; height: 11px; background: var(--ok); border: 2px solid var(--raise); border-radius: 50%; }
.uav.lg { width: 56px; height: 56px; font-size: 22px; }
.uav.lg::after { width: 14px; height: 14px; border-color: var(--card); }

.main { min-width: 0; }
/* on an iPhone's home screen (viewport-fit=cover, see-through status bar) the page starts under the status bar and beside
   the notch: what sits at an edge keeps clear of them (env() is 0 everywhere else) */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 28px 12px;
  background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line); }
.top .brand b { font-size: 15px; }
[data-theme="light"] .top { box-shadow: inset 0 env(safe-area-inset-top) 0 #15121c; } /* the status bar's text is white */
.hello { min-width: 0; line-height: 1.5; }
.hello b { display: block; font-size: 15px; font-weight: 700; }
.hello small { color: var(--muted); font-size: 12.5px; }
.tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: 6px 14px; color: var(--ink); white-space: nowrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px; transition: background-color .15s, border-color .15s; }
.chip-btn .wi { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: linear-gradient(140deg, rgb(var(--teal)), color-mix(in srgb, rgb(var(--teal)) 58%, #000)); border-radius: 10px; }
.chip-btn .wi .i { width: 16px; height: 16px; }
.chip-btn small { color: var(--muted); font-size: 12px; }
.me-btn { display: grid; place-items: center; }
.me-btn .uav { width: 36px; height: 36px; font-size: 14px; }
.me-btn .uav::after { border-color: var(--bg); }
@media (hover: hover) { .chip-btn:hover { background: var(--raise); border-color: var(--line2); } }
.phone-only { display: none !important; }

#view { max-width: calc(var(--w) + 56px); margin: 0 auto; padding: 22px 28px 48px; outline: 0; }
.tabbar { display: none; }

/* ---------------------------------------------------------------- page header (hero), counters */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 18px; margin-bottom: 16px; padding: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(620px 280px at 100% -20%, rgb(var(--c) / .26), transparent 70%),
  radial-gradient(560px 280px at 0% 125%, rgb(var(--a) / .2), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dotc) 1px, transparent 1.2px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 60%); mask-image: linear-gradient(to left, #000, transparent 60%); }
.hero-main { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 16px; }
.hero-ic, .dlg-ic, .e-ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; color: #fff; background: rgb(var(--c));
  background: linear-gradient(140deg, rgb(var(--c)), color-mix(in srgb, rgb(var(--c)) 58%, #000)); border-radius: 17px;
  box-shadow: 0 14px 28px -14px rgb(var(--c)), inset 0 1px 0 rgb(255 255 255 / .28); }
.hero-ic .i { width: 26px; height: 26px; }
.hero-t { flex: 1 1 360px; min-width: 0; }
h1 { font-size: 23px; font-weight: 800; line-height: 1.5; letter-spacing: -.1px; }
.intro { max-width: 860px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 10px; }
.stat { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 12px; color: inherit; text-align: start; background: var(--glass);
  border: 1px solid var(--line); border-radius: 16px; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .12s var(--ease); }
button.stat { cursor: pointer; }
button.stat:active { transform: scale(.98); }
.stat > i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; color: rgb(var(--k)); background: rgb(var(--k) / .14); border-radius: 11px; }
.stat > div { min-width: 0; }
.stat b { display: block; overflow: hidden; font-size: 19px; font-weight: 700; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.stat b small { font-size: 12px; font-weight: 500; color: var(--muted); }
.stat span { display: block; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
.stat.on { background: rgb(var(--k) / .1); border-color: rgb(var(--k) / .6); box-shadow: inset 0 0 0 1px rgb(var(--k) / .4); }
@media (hover: hover) { button.stat:hover { border-color: rgb(var(--k) / .45); } }

/* notices under the header */
.alert { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 12px; padding: 11px 14px; color: var(--ink2); font-size: 13.5px; line-height: 1.9;
  background: rgb(var(--k) / .08); border: 1px solid rgb(var(--k) / .3); border-radius: 15px; }
.alert > .i { color: rgb(var(--k)); }
.alert > span { flex: 1 1 260px; min-width: 0; }
.alert.warn { --k: var(--warnc); } .alert.bad { --k: var(--badc); } .alert.ok { --k: var(--okc); } .alert.info { --k: var(--infoc); }
.card .alert, .dlg-b .alert, .sum .alert { margin-bottom: 0; }

/* toolbar over a list */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 260px; min-width: 0; }
.search > .i { position: absolute; inset-inline-start: 13px; top: 13px; color: var(--faint); pointer-events: none; }
.search input { padding-right: 41px; /* physical: the icon is on the right also in a dir=ltr box */ background-color: var(--card); border-color: var(--line); }
.toolbar select { width: auto; min-width: 170px; background-color: var(--card); border-color: var(--line); }
.count { padding-inline: 4px; color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------------------------------------------------------------- service cards */
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.svc { container-type: inline-size; position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .2s; }
@media (hover: hover) { .svc:hover { border-color: var(--line2); box-shadow: var(--sh-2); } }
.svc.is-soon { border-color: rgb(var(--warnc) / .45); }
.svc-h { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.av { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: #fff; font-size: 17px; font-weight: 700; line-height: 1;
  background: rgb(var(--k)); background: linear-gradient(140deg, rgb(var(--k)), color-mix(in srgb, rgb(var(--k)) 58%, #000)); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25); }
.av .i { width: 22px; height: 22px; }
.av > em { position: absolute; bottom: -2px; left: -2px; width: 13px; height: 13px; background: var(--faint); border: 2.5px solid var(--card); border-radius: 50%; }
.av > em.on { background: var(--ok); }
.is-off .av { filter: saturate(.3) brightness(.85); }
.svc-t { flex: 1 1 0; min-width: 0; }
.svc-t h3 { font-size: 15.5px; font-weight: 700; line-height: 1.55; }
.svc-t h3 .ltr { display: block; overflow: hidden; text-align: right; white-space: nowrap; text-overflow: ellipsis; cursor: copy; }
.svc-t .sub { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.svc-label { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 4px; padding: 1px 9px 1px 10px; color: var(--ink2); font-size: 12.5px;
  background: var(--raise); border-radius: 99px; }
.svc-label .i { width: 13px; height: 13px; color: var(--muted); }
.svc-label span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.svc-chips { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 46%; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; color: rgb(var(--k, var(--gray))); font-size: 12px; font-weight: 500;
  line-height: 1.5; white-space: nowrap; background: rgb(var(--k, var(--gray)) / .13); border-radius: 99px; }
.badge.ok { --k: var(--okc); } .badge.warn { --k: var(--warnc); } .badge.bad { --k: var(--badc); } .badge.info { --k: var(--infoc); }
.dot { flex: none; width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.badge.ok .dot { box-shadow: 0 0 0 3px rgb(var(--okc) / .2); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 11px; background: var(--raise); border-radius: 14px; }
.tile > i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; color: rgb(var(--k)); background: rgb(var(--k) / .14); border-radius: 10px; }
.tile > i .i { width: 16px; height: 16px; }
.tile > div { flex: 1 1 0; min-width: 0; }
.tl { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.tv { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.6; }
.tv .sub { display: block; font-size: 12px; line-height: 1.6; }
.bar { height: 5px; margin-top: 5px; overflow: hidden; background: rgb(var(--k, var(--okc)) / .16); border-radius: 99px; }
.bar > i { display: block; height: 100%; background: rgb(var(--k, var(--okc))); border-radius: 99px; }
.svc-note { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; color: var(--info); font-size: 12.5px; line-height: 1.8; background: rgb(var(--infoc) / .09); border-radius: 12px; }
.svc-note .i { width: 15px; height: 15px; margin-top: 3px; }
.svc-note.stop { color: var(--ink2); background: rgb(var(--gray) / .12); }
.svc-owner { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; margin-top: 5px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.svc-owner > .i { width: 14px; height: 14px; }
.svc-owner .badge { min-height: 20px; padding: 0 7px; font-size: 11px; }
.copyrow { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px; padding-inline-start: 12px; background: var(--field); border: 1px solid var(--line); border-radius: 13px; }
.copyrow .v { flex: 1 1 0; min-width: 0; overflow: hidden; color: var(--ink2); font-family: var(--mono); font-size: 12.5px; direction: ltr; text-align: left;
  white-space: nowrap; text-overflow: ellipsis; }
.copyrow .v.wrap { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.copyrow.big .v { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.svc-a { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.ra { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
@container (max-width: 420px) {
  .svc-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; }
  .av { grid-row: 1 / span 2; }
  .svc-chips { justify-content: flex-start; max-width: none; margin-top: 6px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.empty { grid-column: 1 / -1; padding: 54px 20px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line2); border-radius: 22px; }
.e-ic { display: inline-grid; width: 60px; height: 60px; margin-bottom: 12px; border-radius: 18px; }
.e-ic .i { width: 27px; height: 27px; }
.empty h3 { color: var(--ink); font-size: 16px; font-weight: 700; }
.empty p { margin: 2px 0 16px; font-size: 13.5px; }
.empty .row { justify-content: center; }
.skel { height: 230px; background: linear-gradient(100deg, var(--card) 30%, var(--raise) 50%, var(--card) 70%) 0 0 / 300% 100%; border: 1px solid var(--line);
  border-radius: 20px; animation: sk 1.2s linear infinite; }
.skel.hero-sk { height: 150px; margin-bottom: 16px; border-radius: 24px; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------------------------------------------------------------- content cards (account, admin, apps, payment) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.card { min-width: 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-1); }
.card.grid { display: grid; gap: 12px; align-content: start; }
.card.grid > .card-h { margin: 0; }
.card.grid > * { min-width: 0; } /* a grid item is as wide as its content otherwise: a wide table widened the page on phones */
.card.hot { border-color: rgb(var(--warnc) / .45); }
.card.live { border-color: rgb(var(--okc) / .35); }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack > * + * { margin-top: 14px; }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-h > i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; color: rgb(var(--k, var(--c))); background: rgb(var(--k, var(--c)) / .14); border-radius: 12px; }
.card-h h2 { flex: 1 1 0; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.5; }
.card-h .sub { display: block; }
.card .form + .note, .card .note + .form, .card .note + .copyrow, .card .copyrow + .note, .card .copyrow + .row, .card .note + .row { margin-top: 12px; }
.card > .note:first-of-type { margin-bottom: 0; }
.wide-card { grid-column: 1 / -1; }
.steps { display: grid; gap: 6px; padding-inline-start: 22px; color: var(--ink2); font-size: 13.5px; line-height: 1.95; }
ol.steps { list-style-type: persian; }
.steps li::marker { color: var(--a-ink); font-weight: 700; }
.kv-list { display: grid; gap: 8px; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 12px; text-align: right; vertical-align: top; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-size: 12px; font-weight: 500; background: var(--raise); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.ok { color: var(--ok); } .tbl td.bad { color: var(--bad); }
.sec-t { display: flex; align-items: center; gap: 8px; margin: 22px 2px 10px; color: var(--ink2); font-size: 14.5px; font-weight: 700; }
.sec-t:first-child { margin-top: 0; }
.sec-t .sub { margin-inline-start: auto; }

/* ---------------------------------------------------------------- buying: kind, plan, summary */
.buy { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.buy-side { position: sticky; top: 84px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.opt { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 11px 12px; color: inherit; text-align: start; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .12s var(--ease); }
.opt:active { transform: scale(.98); }
.opt > i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; color: rgb(var(--k)); background: rgb(var(--k) / .14); border-radius: 12px; }
.opt > span { min-width: 0; line-height: 1.55; }
.opt b { display: block; font-size: 14px; }
.opt small { display: block; color: var(--muted); font-size: 12px; }
.opt[aria-checked="true"] { background: rgb(var(--k) / .1); border-color: rgb(var(--k) / .65); box-shadow: inset 0 0 0 1px rgb(var(--k) / .45); }
@media (hover: hover) { .opt:hover { border-color: rgb(var(--k) / .45); } }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); gap: 10px; }
.plan { position: relative; display: grid; gap: 2px; padding: 16px 14px 14px; color: inherit; text-align: start; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .12s var(--ease); }
.plan:active { transform: scale(.98); }
.plan .pg b { font-size: 30px; font-weight: 800; line-height: 1.2; }
.plan .pg { color: var(--muted); font-size: 13px; }
.plan .pd { color: var(--muted); font-size: 12.5px; }
.plan .pp { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.plan .pp b { color: var(--ink); font-size: 16px; }
.plan .tick { position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 22px; height: 22px; color: #fff; background: var(--raise2); border-radius: 50%; }
.plan .tick .i { width: 13px; height: 13px; stroke-width: 3; opacity: 0; }
.plan[aria-checked="true"] { background: rgb(var(--g) / .08); border-color: rgb(var(--g) / .7); box-shadow: inset 0 0 0 1px rgb(var(--g) / .5), 0 16px 34px -24px rgb(var(--g)); }
.plan[aria-checked="true"] .tick { background: rgb(var(--g)); }
.plan[aria-checked="true"] .tick .i { opacity: 1; }
@media (hover: hover) { .plan:hover { border-color: rgb(var(--g) / .45); } }
.sum { display: grid; gap: 14px; }
.sum h3 { font-size: 16px; font-weight: 700; line-height: 1.6; }
.sum-price { display: flex; align-items: baseline; gap: 6px; }
.sum-price b { font-size: 28px; font-weight: 800; }
.sum-price span { color: var(--muted); }
.feats { display: grid; gap: 6px; list-style: none; font-size: 13.5px; color: var(--ink2); }
.feats li { display: flex; align-items: center; gap: 8px; }
.feats .i { width: 15px; height: 15px; color: var(--ok); stroke-width: 2.6; }
.feats.special .i { color: var(--warn); }
.ref { display: grid; gap: 8px; }

/* ---------------------------------------------------------------- payment */
.narrow { max-width: 720px; margin-inline: auto; }
.pay-h { display: flex; align-items: center; gap: 12px; margin: -18px -20px 16px; padding: 16px 20px; background: linear-gradient(90deg, transparent, rgb(var(--c) / .1));
  border-bottom: 1px solid var(--line); border-radius: 22px 22px 0 0; }
.pay-h .dlg-ic { width: 42px; height: 42px; border-radius: 13px; }
.pay-h h2 { font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.pay-h > div { flex: 1 1 0; min-width: 0; }
.pay-body { display: grid; gap: 12px; }
.amount { display: flex; align-items: baseline; gap: 6px; }
.amount b { font-size: 26px; font-weight: 800; }
.amt2 { display: grid; gap: 8px; } /* the amount in toman and in rial, each copied on its own */
.amt2 .note { margin: 0 2px; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: rgb(var(--warnc) / .09); border: 1px solid rgb(var(--warnc) / .3); border-radius: 14px; }
.timer b { color: var(--warn); font-size: 18px; font-variant-numeric: tabular-nums; }
.waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.done { display: grid; justify-items: center; gap: 6px; padding: 8px 0 4px; text-align: center; }
.done .ok-ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; color: #fff; background: linear-gradient(140deg, rgb(var(--g)), rgb(var(--g2)));
  border-radius: 20px; box-shadow: 0 16px 30px -16px rgb(var(--g)); }
.done .ok-ic .i { width: 30px; height: 30px; stroke-width: 2.6; }
.done h2 { font-size: 19px; font-weight: 800; }
.vpn { display: grid; gap: 10px; }
.vpn + .vpn { padding-top: 12px; border-top: 1px solid var(--line); }
.rc-box { max-height: 72vh; overflow: auto; overscroll-behavior: contain; border-radius: 12px; } /* a receipt in the dialog */
.rc-full { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; cursor: zoom-in; }
.rc-full.zoom { max-width: none; max-height: none; cursor: zoom-out; }

/* ---------------------------------------------------------------- apps */
.app-card { display: flex; flex-direction: column; gap: 10px; }
.app-card .card-h { margin-bottom: 0; }
.app-card .note { flex: 1 1 auto; }

/* ---------------------------------------------------------------- admin tabs */
.adm-tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; overflow-x: auto; scrollbar-width: none; background: var(--card); border: 1px solid var(--line); border-radius: 17px; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs a { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 42px; padding-inline: 6px 13px; color: var(--muted); font-weight: 500; white-space: nowrap; border-radius: 13px; }
.adm-tabs a .ti { width: 30px; height: 30px; color: rgb(var(--k)); background: rgb(var(--k) / .13); }
.adm-tabs a.on { color: var(--ink); background: rgb(var(--k) / .13); }
.adm-tabs a.on .ti { background: rgb(var(--k) / .24); }
.adm-tabs .cnt { min-width: 20px; height: 20px; padding: 0 6px; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; background: rgb(var(--orange)); border-radius: 99px; }
@media (hover: hover) { .adm-tabs a:not(.on):hover { color: var(--ink); background: var(--raise); text-decoration: none; } }
/* sale settings (2026-11-09): switches, the gateway's two choices, one card per kind with plan chips, the save bar */
input[type=checkbox].switch { position: relative; display: block; width: 44px; height: 26px; background: var(--raise2); border: 1px solid var(--line2);
  border-radius: 99px; transition: background-color .2s, border-color .2s; }
input[type=checkbox].switch::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 20px; height: 20px; clip-path: none; background: #fff;
  border-radius: 50%; box-shadow: 0 1px 3px rgb(0 0 0 / .35); transition: transform .2s var(--ease); }
input[type=checkbox].switch:checked { background: rgb(var(--g)); border-color: transparent; }
input[type=checkbox].switch:checked::after { transform: translateX(-18px); } /* right to left: on = the knob on the left */
.sw-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--raise); border-radius: 14px; cursor: pointer; }
.sw-row > span { flex: 1 1 0; min-width: 0; display: grid; gap: 1px; line-height: 1.6; }
.sw-row b { font-size: 14px; }
.sw-row small, .field small { color: var(--faint); font-size: 12px; line-height: 1.8; }
.opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt.on { background: rgb(var(--k) / .1); border-color: rgb(var(--k) / .65); box-shadow: inset 0 0 0 1px rgb(var(--k) / .45); }
.opt { position: relative; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; align-items: start; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.kcard { display: grid; gap: 12px; align-content: start; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-1);
  transition: border-color .15s; }
.kcard:not(.off) { border-color: rgb(var(--k) / .3); }
.kc-h { display: flex; align-items: center; gap: 10px; }
.kc-h > i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: linear-gradient(140deg, rgb(var(--k)), color-mix(in srgb, rgb(var(--k)) 58%, #000));
  border-radius: 13px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25); transition: filter .15s; }
.kc-h > div { flex: 1 1 0; min-width: 0; display: grid; justify-items: start; gap: 2px; }
.kc-h b { font-size: 14.5px; }
.kc-h .badge { min-height: 22px; padding: 0 8px; font-size: 11.5px; }
.kc-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; transition: opacity .15s; }
.pchip { position: relative; }
.pchip span { display: grid; padding: 7px 4px 6px; color: var(--faint); text-align: center; line-height: 1.55; border: 1px dashed var(--line2); border-radius: 12px; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; }
.pchip b { font-size: 13px; font-weight: 700; }
.pchip small { font-size: 11px; }
.pchip input:checked + span { color: var(--ink); background: rgb(var(--k) / .12); border: 1px solid rgb(var(--k) / .5); }
.pchip input:checked + span small { color: var(--muted); }
.pchip input:focus-visible + span { outline: 2px solid rgb(var(--a)); outline-offset: 2px; }
.kcard.off .kc-h > i { filter: grayscale(.85) brightness(.75); }
.kcard.off .kc-plans { opacity: .45; }
.kc-note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.kc-note .i { width: 15px; height: 15px; color: rgb(var(--k)); }
/* a colleague's own size (2026-11-09): the box with − / +, quick sizes */
.gbox { display: grid; gap: 12px; }
.gb-in { display: flex; align-items: center; gap: 10px; }
.gb-in label { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 14px; background: var(--field); border: 1px solid var(--line2);
  border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.gb-in label:focus-within { border-color: rgb(var(--a)); box-shadow: 0 0 0 3px rgb(var(--a) / .22); }
.gb-in input, .gb-in input:focus { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0; font-size: 28px; font-weight: 800; text-align: center; background: none;
  border: 0; box-shadow: none; }
.gb-in label span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.gb-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-btn { min-height: 34px; padding: 0 14px; color: var(--ink2); font-size: 13px; background: var(--raise); border: 1px solid var(--line); border-radius: 99px; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; }
.pill-btn.on { color: var(--ink); background: rgb(var(--g) / .14); border-color: rgb(var(--g) / .55); }
@media (hover: hover) { .pill-btn:not(.on):hover { color: var(--ink); border-color: var(--line2); } }
/* colleague prices: a row per plan, its normal price, the colleague price box and what it means */
.prows { display: grid; gap: 6px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--raise); border-radius: 12px; cursor: text; }
.pr-t { flex: 1 1 0; min-width: 0; display: grid; line-height: 1.5; }
.pr-t b { font-size: 13.5px; }
.pr-t small { color: var(--faint); font-size: 11.5px; }
.pr-v { flex: none; display: grid; justify-items: end; gap: 4px; }
.pr-v input { width: 132px; min-height: 36px; padding: 5px 10px; font-size: 13.5px; border-radius: 10px; }
.pr-v input:placeholder-shown { text-align: left; }
.pr-v .badge { min-height: 20px; padding: 0 7px; font-size: 11px; }
.savebar { position: static; bottom: 16px; z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; padding: 10px 12px;
  padding-inline-start: 16px; background: color-mix(in srgb, var(--pop) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--sh-3); }
.savebar .sb-t { flex: 1 1 auto; color: var(--muted); font-size: 13.5px; }
.savebar.dirty { position: sticky; border-color: rgb(var(--warnc) / .55); }
.savebar.dirty .sb-t { color: var(--warn); }
.savebar:not(.dirty) [data-undo] { display: none; } /* «انصراف»: back to what is saved, only while something changed */
.found .card + .card { margin-top: 12px; }
.mini-list { display: grid; gap: 6px; list-style: none; font-size: 13px; color: var(--ink2); }
.mini-list li { padding: 7px 10px; background: var(--raise); border-radius: 10px; }
/* an account's services in its card: counts, then small tiles (admin.js userSvcs) */
.ssum { display: flex; flex-wrap: wrap; gap: 6px; }
.ssum .badge { min-height: 22px; padding: 0 9px; font-size: 11.5px; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.stile { display: grid; gap: 6px; min-width: 0; padding: 10px 12px 9px; background: var(--raise); border-radius: 12px; }
.stile[hidden] { display: none; }
.stile .bar { margin-top: 0; }
.st-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-h .dot { color: rgb(var(--k)); }
.st-h b { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 13.5px; font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.st-h .badge { flex: none; min-height: 20px; padding: 0 7px; font-size: 11px; }
.st-f { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.st-l { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--faint); font-size: 12px; }
.st-l .i { flex: none; width: 13px; height: 13px; }
.st-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stile.is-off b, .stile.is-stop b { color: var(--muted); }
.user-link { padding: 0; color: var(--a-ink); font-weight: 600; background: none; border: 0; cursor: pointer; direction: ltr; unicode-bidi: isolate; }
@media (hover: hover) { .user-link:hover { text-decoration: underline; } }
.test-out { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.test-out.ok { color: var(--ok); } .test-out.err { color: var(--bad); }
details.more { border-top: 1px solid var(--line); padding-top: 10px; }
details.more > summary { color: var(--a-ink); font-size: 13.5px; font-weight: 500; cursor: pointer; }
details.more[open] > summary { margin-bottom: 12px; }
/* lists a page at a time (2026-11-09): filter chips, pages, the admin's users and orders */
.fchips { display: flex; gap: 6px; margin: -4px 0 14px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 8px 0 13px; color: var(--muted); font-size: 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.fchip .dot { color: rgb(var(--k, var(--gray))); }
.fchip b { min-width: 22px; padding: 0 6px; color: var(--ink2); font-size: 11.5px; font-weight: 700; line-height: 21px; text-align: center; background: var(--raise2); border-radius: 99px; }
.fchip:not(:has(b)) { padding: 0 13px; }
.fchip.on { color: var(--ink); background: rgb(var(--k, var(--a)) / .13); border-color: rgb(var(--k, var(--a)) / .55); }
.fchip.on b { color: #fff; background: rgb(var(--k, var(--a))); }
@media (hover: hover) { .fchip:not(.on):hover { color: var(--ink); border-color: var(--line2); } }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.pager > span { display: grid; justify-items: center; color: var(--ink2); font-size: 13px; line-height: 1.6; }
.pager > span small { color: var(--faint); font-size: 11.5px; }
.pager .btn:last-child .i { transform: scaleX(-1); }
.pager-t { margin-top: 14px; color: var(--faint); font-size: 12.5px; text-align: center; }
.dim { opacity: .5; pointer-events: none; transition: opacity .15s; }
.ulist { display: grid; gap: 8px; }
.urow { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 10px 12px; color: inherit; text-align: start; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .15s, background-color .15s, transform .12s var(--ease); }
.urow:active { transform: scale(.99); }
.urow .av, .uhead .av, .orow .av { width: 40px; height: 40px; font-size: 16px; border-radius: 13px; }
.urow .av .i, .orow .av .i { width: 19px; height: 19px; }
.ur-t { flex: 1 1 0; min-width: 0; display: grid; line-height: 1.55; }
.ur-t b { overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.ur-t b[dir="ltr"], .uhead b[dir="ltr"] { text-align: right; }
.ur-t small, .uhead small { color: var(--muted); font-size: 12px; }
.ur-c { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 55%; }
.ur-c .badge, .or-b .badge, .or-t b .badge { min-height: 22px; padding: 0 8px; font-size: 11.5px; }
.urow > .i { flex: none; color: var(--faint); transform: scaleX(-1); }
@media (hover: hover) { .urow:hover { background: var(--raise); border-color: var(--line2); } }
.uhead { display: flex; align-items: center; gap: 12px; }
.uhead .av { width: 48px; height: 48px; font-size: 19px; border-radius: 15px; }
.uhead > div { flex: 1 1 0; min-width: 0; display: grid; line-height: 1.6; }
.uhead b { font-size: 16px; }
.sw-list { display: grid; gap: 8px; }
.sw-row.static { cursor: default; }
.sw-row.static > .i { color: var(--ok); }
.user-link.fa { direction: rtl; }
.olist { display: grid; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.orow { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 14px; }
.orow + .orow { border-top: 1px solid var(--line); }
.or-t { flex: 1 1 0; min-width: 0; display: grid; gap: 1px; line-height: 1.6; }
.or-t b { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.or-m { display: flex; flex-wrap: wrap; gap: 0 12px; color: var(--muted); font-size: 12px; }
.or-v { flex: none; display: grid; justify-items: end; gap: 4px; }
.or-v > b { font-size: 14px; white-space: nowrap; }
.or-v > b small { color: var(--muted); font-size: 11.5px; font-weight: 400; }
.or-b { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }

/* ---------------------------------------------------------------- menu, dialog, toast */
#menu { position: fixed; z-index: 60; width: 230px; padding: 6px; background: var(--pop); border: 1px solid var(--line2); border-radius: 15px; box-shadow: var(--sh-3); animation: pop .14s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.mitem { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding-inline: 10px; color: var(--ink2); text-align: start; background: none; border: 0;
  border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.mitem .i { width: 17px; height: 17px; color: var(--muted); }
.mitem.danger, .mitem.danger .i { color: var(--bad); }
@media (hover: hover) { .mitem:hover { color: var(--ink); background: var(--raise2); } .mitem.danger:hover { color: var(--bad); background: rgb(var(--badc) / .12); } }
dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; color: var(--ink); background: var(--card);
  border: 1px solid var(--line2); border-radius: 24px; box-shadow: var(--sh-3); }
dialog[open] { display: flex; flex-direction: column; animation: dlg .2s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(8px) scale(.98); } }
dialog::backdrop { background: rgb(4 3 9 / .62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
dialog.wide { width: min(760px, calc(100% - 32px)); }
.dlg-h { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px; padding-inline-end: 60px; background: linear-gradient(90deg, transparent, rgb(var(--c) / .08));
  border-bottom: 1px solid var(--line); }
.dlg-ic { width: 38px; height: 38px; border-radius: 12px; }
.dlg-ic .i { width: 19px; height: 19px; }
.dlg-h h3 { flex: 1 1 0; min-width: 0; font-size: 16.5px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.dlg-x { position: absolute; top: 18px; left: 16px; }
.dlg-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; gap: 14px; padding: 18px 20px; overscroll-behavior: contain; }
.dlg-f { flex: none; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.dlg-f .row { justify-content: flex-start; }
#toast { position: fixed; z-index: 80; bottom: 24px; left: 50%; max-width: calc(100% - 32px); padding: 10px 16px; color: var(--ink); font-size: 13.5px; background: var(--pop);
  border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--sh-3); opacity: 0; transform: translate(-50%, 10px); pointer-events: none;
  transition: opacity .18s, transform .18s var(--ease); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { color: var(--bad); border-color: rgb(var(--badc) / .45); }

/* ---------------------------------------------------------------- sign-in page */
.login { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; overflow: hidden;
  padding: calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom)); }
.login::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--dotc) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent); }
.login-box { position: relative; width: min(410px, 100%); display: grid; gap: 12px; padding: 32px 26px 24px; background: linear-gradient(180deg, rgb(var(--a) / .14), transparent 150px), var(--card);
  border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 30px 90px -40px rgb(var(--a) / .75); }
.login-box .mark { width: 76px; height: 76px; margin: 0 auto 2px; filter: drop-shadow(0 12px 26px rgb(var(--g) / .45)); }
.login-box h1 { font-size: 21px; font-weight: 800; text-align: center; }
.login-box h1 span { color: var(--a-ink); }
.login-box .hint { margin-top: -6px; color: var(--muted); font-size: 13.5px; text-align: center; line-height: 1.9; }
.login-box .btn.lg { margin-top: 2px; }
.login-box .foot { color: var(--muted); font-size: 13px; text-align: center; line-height: 2; }
.login .theme-x { position: absolute; z-index: 2; top: calc(16px + env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); }
.seg2 { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 3px; padding: 3px; background: var(--field); border: 1px solid var(--line); border-radius: 13px; }
.seg2 button { min-height: 38px; color: var(--muted); font-weight: 500; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.seg2 button[aria-selected="true"] { color: var(--a-ink); font-weight: 700; background: rgb(var(--a) / .16); }

/* ---------------------------------------------------------------- narrower screens: the menu is a floating bar at the bottom */
@media (max-width: 1100px) { .buy { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side, .desk-only { display: none !important; }
  .phone-only { display: flex !important; }
  .top { padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
  .tabbar { position: fixed; z-index: 40; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 1px; padding: 5px;
    background: color-mix(in srgb, var(--pop) 93%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--line2); border-radius: 22px; box-shadow: var(--sh-3); }
  .tabbar a { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 56px;
    color: var(--muted); font-size: 11px; line-height: 1.5; border-radius: 17px; }
  .tabbar a span:last-of-type { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .tabbar .ti { width: 28px; height: 26px; background: none; }
  .tabbar .ti .i { width: 20px; height: 20px; }
  .tabbar a.on { color: var(--c-ink); background: rgb(var(--c) / .13); }
  .tabbar .cnt { position: absolute; top: 4px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; margin: 0; padding: 0 5px; font-size: 11px; line-height: 18px; }
  #view { padding: 16px max(16px, env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  #toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .savebar { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .buy { grid-template-columns: minmax(0, 1fr); }
  .buy-side { position: static; }
}
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px; } /* smaller, and iPhones zoom the page on every field */
  input[type=checkbox], input[type=radio] { font-size: inherit; }
  .top .brand b { display: none; }
  .chip-btn { gap: 6px; height: 40px; padding-inline: 5px 10px; font-size: 13.5px; }
  .chip-btn small { display: none; }
  .chip-btn .wi { width: 28px; height: 28px; }
  .ibtn { width: 40px; height: 40px; }
  .hero { gap: 14px; padding: 16px; border-radius: 22px; }
  .hero-main { gap: 12px; }
  .hero-ic { width: 46px; height: 46px; border-radius: 14px; }
  .hero-ic .i { width: 22px; height: 22px; }
  .hero-t { flex: 1 1 0; min-width: 190px; }
  h1 { font-size: 19px; }
  .intro { font-size: 13px; }
  .hero-cta { flex: 1 1 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-cta .btn.icon-only { flex: none; width: 42px; padding: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .stats.odd > :last-child { grid-column: 1 / -1; }
  .stat { gap: 8px; padding: 8px; border-radius: 14px; }
  .stat > i { width: 30px; height: 30px; border-radius: 9px; }
  .stat > i .i { width: 16px; height: 16px; }
  .stat b { font-size: 16px; line-height: 1.3; }
  .stat span { font-size: 11.5px; }
  .search { flex-basis: 100%; }
  .toolbar select { flex: 1 1 0; min-width: 0; }
  .svc { padding: 14px; gap: 12px; border-radius: 18px; }
  .card { padding: 16px; border-radius: 20px; }
  .pay-h { margin: -16px -16px 14px; padding: 14px 16px; border-radius: 20px 20px 0 0; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .sec-t { flex-wrap: wrap; row-gap: 0; }
  .sec-t .sub { flex-basis: 100%; margin-inline-start: 0; }
  .savebar { flex-wrap: nowrap; padding-inline-start: 12px; }
  .urow { flex-wrap: wrap; row-gap: 6px; }
  .ur-c { order: 3; flex-basis: 100%; max-width: none; justify-content: flex-start; padding-inline-start: 52px; }
  .urow > .i { display: none; }
  .orow { flex-wrap: wrap; row-gap: 6px; }
  .or-v { display: flex; flex-basis: 100%; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding-inline-start: 52px; }
  .savebar .sb-t { min-width: 0; font-size: 12.5px; line-height: 1.6; }
  .savebar .btn { flex: none; }
  .savebar.dirty { flex-wrap: wrap; } /* the warning on its own line above «انصراف» and the save button */
  .savebar.dirty .sb-t { flex-basis: 100%; }
  .plans, .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts { gap: 8px; }
  .opts > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .opt { align-items: flex-start; gap: 8px; padding: 10px; }
  .opt > i { width: 32px; height: 32px; border-radius: 10px; }
  .opt b { font-size: 13.5px; }
  .opt small { font-size: 11.5px; }
  .plan .pg b { font-size: 26px; }
  dialog, dialog.wide { width: 100%; max-width: none; max-height: calc(100dvh - 24px - env(safe-area-inset-top)); margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0; }
  dialog[open] { animation: sheet .24s var(--ease); }
  .dlg-b { padding: 14px 16px; gap: 12px; }
  .dlg-f { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
  .dlg-f .btn { flex: 1 1 auto; }
  .login { padding-top: calc(72px + env(safe-area-inset-top)); } /* the theme button's row */
  .login-box { padding: 28px 18px 20px; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
