/* Colours are tokens: dark is the default, light comes from the system or the nav toggle
   (<html data-theme>). Things that sit on video (the stage, the player) stay dark in both.
   The light palette is written twice (system preference, explicit choice); keep them equal. */
:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --bg-2: #0f0f16;
  --panel: #14141c;
  --panel-2: #1c1c27;
  --line: #2a2a38;
  --text: #f4f4f7;
  --muted: #9a9aae;
  --soft: #c3c3d2;
  --brand: #ff5a00;
  --brand-2: #ffb547;
  --accent-text: #ffb547;
  --grad-a: #ffb547;
  --tint: rgba(255, 90, 0, .14);
  --ok: #2fd27f;
  --ok-text: #5ff0a5;
  --bad: #ff5470;
  --bad-text: #ff8197;
  --header-bg: rgba(10, 10, 15, .82);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 16px;
  --phone-shadow: rgba(0, 0, 0, .45);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f6f3;
  --bg-2: #efede8;
  --panel: #ffffff;
  --panel-2: #f3f2ee;
  --line: #e2dfd8;
  --text: #17161d;
  --muted: #676675;
  --soft: #45444f;
  --brand: #f25500;
  --brand-2: #ffa62b;
  --accent-text: #c2410c;
  --grad-a: #ff8a00;
  --tint: rgba(242, 85, 0, .09);
  --ok: #18a862;
  --ok-text: #0f7f48;
  --bad: #e23b5a;
  --bad-text: #c8243f;
  --header-bg: rgba(247, 246, 243, .85);
  --shadow: 0 10px 30px rgba(40, 30, 10, .10);
  --phone-shadow: rgba(40, 30, 10, .22);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f6f3;
    --bg-2: #efede8;
    --panel: #ffffff;
    --panel-2: #f3f2ee;
    --line: #e2dfd8;
    --text: #17161d;
    --muted: #676675;
    --soft: #45444f;
    --brand: #f25500;
    --brand-2: #ffa62b;
    --accent-text: #c2410c;
    --grad-a: #ff8a00;
    --tint: rgba(242, 85, 0, .09);
    --ok: #18a862;
    --ok-text: #0f7f48;
    --bad: #e23b5a;
    --bad-text: #c8243f;
    --header-bg: rgba(247, 246, 243, .85);
    --shadow: 0 10px 30px rgba(40, 30, 10, .10);
  --phone-shadow: rgba(40, 30, 10, .22);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Cairo", system-ui, sans-serif; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; font-size: 15px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }

/* ---- top bar: links inline on desktop, a menu on phones ---- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: 60px;
       padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top)); background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; text-decoration: none; margin-inline-end: auto; }
.logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-size: 16px; }
#nav { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { text-decoration: none; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav-links a.on, .nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-tools { display: flex; align-items: center; gap: 6px; margin-inline-start: 6px; padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
.nav-tool { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-weight: 700; font-size: 13px; }
.nav-tool:hover { border-color: var(--muted); }
.nav-tool .globe { font-size: 13px; }
.nav-tools .icon-btn { width: 36px; height: 36px; }
.icon-btn.nav-menu { display: none; }
.balance { padding: 6px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; direction: ltr; text-decoration: none; white-space: nowrap; }
.balance small { color: var(--accent-text); font-weight: 600; }
@media (max-width: 880px) {
  .icon-btn.nav-menu { display: inline-grid; }
  .nav-links { position: absolute; top: 100%; inset-inline: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .top.open .nav-links { display: flex; animation: drop .18s ease-out; }
  .nav-links a { padding: 11px 12px; border-radius: 12px; font-size: 15px; }
  .nav-tools { justify-content: space-between; margin: 8px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); }
  .balance { padding: 5px 10px; font-size: 13px; }
}
@media (max-width: 380px) { .balance small { display: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

main { max-width: 1080px; margin: 0 auto; padding: 22px 16px 72px; }
main:has(> .home) { max-width: 1180px; padding-top: 0; padding-bottom: 0; }
h1 { font-size: clamp(24px, 5vw, 38px); line-height: 1.2; margin: 0 0 12px; font-weight: 900; }
h2 { font-size: 19px; line-height: 1.35; margin: 24px 0 12px; }
h3 { font-size: 16px; line-height: 1.4; }
p.lead { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
.muted { color: var(--muted); }
.grad { background: linear-gradient(90deg, var(--grad-a), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="ltr"] .flip { transform: scaleX(-1); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: repeat(3, 1fr); } }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 14px; }
.field small { color: var(--muted); font-size: 13px; }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); outline: none; font-size: 15px; }
input:focus, textarea:focus { border-color: var(--brand); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
textarea { min-height: 90px; resize: vertical; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer; font-size: 15px;
       background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800; text-decoration: none; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:not(:disabled):hover { filter: brightness(1.06); box-shadow: 0 6px 20px rgba(255, 90, 0, .28); }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:not(:disabled):hover { box-shadow: none; border-color: var(--muted); }
.btn.block { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-weight: 600; font-size: 14px; }
.chip.on { border-color: var(--brand); background: var(--tint); color: var(--text); }

.templates { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.tpl { border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel-2); cursor: pointer; text-align: start; padding: 0; }
.tpl.on { border-color: var(--brand); }
.tpl .frame { position: relative; aspect-ratio: 9 / 16; background: #000; }
.tpl iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.tpl .meta { padding: 9px 11px; font-size: 14px; }
.tpl .meta b { display: block; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--panel); color: var(--accent-text); margin-top: 4px; }
.tag.bonus { color: var(--ok-text); }

.summary { position: sticky; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; box-shadow: var(--shadow); }
.price { font-size: 20px; font-weight: 900; direction: ltr; }

@keyframes spin { to { transform: rotate(360deg); } }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn.danger { background: var(--bad); }
.danger-text { color: var(--bad-text) !important; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; font-size: 15px; }
.icon-btn:hover { border-color: var(--muted); }
:is(.btn, .chip, .icon-btn, .vstage, .nav-tool, .h-tpl):focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* my videos */
.vhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.vhead h1 { margin: 0; }
.vtabs { margin: 8px 0 18px; }
.vtabs .count { display: inline-block; min-width: 22px; padding: 0 6px; margin-inline-start: 4px; border-radius: 999px; background: var(--line); font-size: 12px; text-align: center; }
.vtabs .chip.on .count { background: var(--brand); color: #fff; }
.vgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
@media (min-width: 760px) { .vgrid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
.vcard { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vcard.is-failed { border-color: rgba(255, 84, 112, .35); }

/* The stage is the same shape for every card; .vframe inside keeps the video's real 9:16 / 1:1 / 16:9 shape. It stays dark in both themes. */
.vstage { --muted: #9a9aae; --line: #2a2a38; position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; overflow: hidden; color: #f4f4f7; font: inherit;
  background: radial-gradient(120% 80% at 80% 0%, rgba(255, 90, 0, .28), transparent 60%), linear-gradient(160deg, #23202e, #121219); }
button.vstage { cursor: pointer; }
.vstage::before { content: ""; position: absolute; inset: -20px; background: var(--poster, none) center / cover; filter: blur(18px) brightness(.45); }
.vframe { position: relative; display: block; max-width: 100%; max-height: 100%; overflow: hidden; background: rgba(0, 0, 0, .35); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
.vframe.tall { height: 100%; }
.vframe.wide { width: 100%; }
.vframe img, .vframe video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vplay { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: rgba(10, 10, 15, .6); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); transition: transform .15s, background .15s; }
.vplay::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
button.vstage:hover .vplay { transform: scale(1.08); background: var(--brand); }
.vbadge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; backdrop-filter: blur(6px); }
.vbadge.done { background: rgba(10, 40, 26, .82); color: #5ff0a5; border: 1px solid rgba(47, 210, 127, .45); }
.vbadge.busy { background: rgba(48, 22, 6, .85); color: #ffb547; border: 1px solid rgba(255, 181, 71, .45); }
.vbadge.busy::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffb547; animation: pulse 1.2s ease-in-out infinite; }
.vbadge.failed { background: rgba(50, 10, 18, .85); color: #ff8fa3; border: 1px solid rgba(255, 84, 112, .5); }
@keyframes pulse { 50% { opacity: .25; } }
.vdur { position: absolute; bottom: 10px; inset-inline-end: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); font-size: 12px; font-weight: 700; }
.vwhy { position: relative; display: grid; gap: 6px; justify-items: center; padding: 16px; text-align: center; font-size: 14px; line-height: 1.5; }
.vwhy > span { font-size: 30px; }
.vstage.failed { background: radial-gradient(100% 70% at 50% 30%, rgba(255, 84, 112, .18), transparent 70%), linear-gradient(160deg, #24161c, #121219); }

/* steps of a video in progress */
.vstage.busy { place-items: center start; padding: 40px 14px 12px; }
.vsteps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.vsteps li { position: relative; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.vsteps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; inset-inline-start: 9px; width: 2px; height: 8px; background: var(--line); }
.vsteps li.ok::after { background: rgba(47, 210, 127, .6); }
.vsteps .dot { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--line); font-size: 11px; font-weight: 900; }
.vsteps li.ok { color: #cfd0dc; }
.vsteps li.ok .dot { border-color: #2fd27f; background: #2fd27f; color: #06210f; }
.vsteps li.now { color: #fff; font-weight: 800; }
.vsteps li.now .dot { border-color: transparent; }
.vsteps .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 181, 71, .25); border-top-color: #ffb547; animation: spin .9s linear infinite; }

.vbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 12px 14px; flex: 1; align-content: start; }
.vact .btn { min-width: 0; }
.vtitle { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vtitle b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vprice { direction: ltr; font-weight: 800; color: var(--accent-text); font-size: 14px; }
s.vprice { color: var(--muted); font-weight: 600; }
.vmeta { color: var(--muted); font-size: 13px; line-height: 1.5; }
.vnote { margin: 4px 0 0; color: var(--soft); font-size: 13px; line-height: 1.5; }
.vrefund { margin: 2px 0 0; color: var(--ok-text); font-size: 13px; font-weight: 700; }
.vact { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.vact .btn { flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px; white-space: nowrap; }
@media (max-width: 480px) {
  .vtabs { flex-wrap: nowrap; gap: 6px; }
  .vtabs .chip { flex: 1; padding: 7px 6px; font-size: 13px; white-space: nowrap; }
  .vtabs .count { min-width: 18px; padding: 0 4px; margin-inline-start: 2px; }
  .vhead .btn { padding: 9px 15px; font-size: 14px; }
}
.vempty { text-align: center; padding: 44px 20px; }
.vempty h2 { margin: 8px 0; }
.vempty p { margin: 0 auto 22px; max-width: 420px; }
.vempty-art { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 24px; font-size: 38px; background: linear-gradient(135deg, rgba(255, 181, 71, .2), rgba(255, 90, 0, .2)); border: 1px solid rgba(255, 90, 0, .35); }
.vnone { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vnone p { margin: 0; }
.skel .vstage { background: var(--panel-2); animation: pulse 1.4s ease-in-out infinite; }
.skel i { display: block; height: 12px; border-radius: 6px; background: var(--panel-2); }
.skel i + i { width: 60%; }

/* player and confirm dialogs */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(5, 5, 9, .78); backdrop-filter: blur(4px); }
.player { --r: .5625; padding: 0; border: 0; background: transparent; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px);
  width: max(min(340px, calc(100vw - 32px)), min(calc(100vw - 32px), 880px, calc(62dvh * var(--r)))); }
.pbox { position: relative; display: grid; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pbox video { display: block; width: 100%; max-height: 62dvh; aspect-ratio: var(--r); background: #000; object-fit: contain; }
.pclose { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; background: rgba(10, 10, 15, .7); color: #fff; border-color: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.pinfo { display: grid; gap: 4px; padding: 14px 16px 16px; }
.pinfo .vtitle b { font-size: 16px; }
.pact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pact .btn { padding: 10px 8px; font-size: 13px; white-space: nowrap; }
.pact .btn:first-child { grid-column: 1 / -1; font-size: 15px; }
@media (min-width: 760px) { .player.wide .pact { grid-template-columns: none; grid-auto-flow: column; } .player.wide .pact .btn:first-child { grid-column: auto; font-size: 13px; } }
.confirm { width: min(400px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.cbox { padding: 22px; }
.cbox h3 { margin: 0 0 6px; font-size: 18px; }
.cbox p { margin: 0 0 18px; line-height: 1.6; }
.cact { display: flex; gap: 10px; }
.cact .btn { flex: 1; }
/* three choices: one per row, the main one on top */
.cact.stack { flex-direction: column-reverse; }

/* wallet */
.wallets { display: grid; gap: 14px; }
@media (min-width: 760px) { .wallets { grid-template-columns: repeat(3, 1fr); } }
.stat .num { font-size: 28px; font-weight: 900; direction: ltr; text-align: end; }
.topups { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.topup { text-align: center; cursor: pointer; border: 2px solid var(--line); color: var(--text); font: inherit; transition: border-color .15s, transform .15s; }
.topup:hover { border-color: var(--brand); transform: translateY(-2px); }
.topup .pay { font-size: 23px; font-weight: 900; direction: ltr; }
.topup .gift { color: var(--ok-text); font-weight: 700; font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; }
tr:last-child td { border-bottom: 0; }
td.amt { direction: ltr; text-align: end; font-weight: 700; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 18px; border-radius: 12px; z-index: 100; max-width: calc(100% - 32px); }
/* «install the app» (web/pwa.ts): a .toast with a button and ✕, clear of the iPhone home bar */
.pwa-toast { display: flex; align-items: center; gap: 10px; width: min(460px, calc(100% - 24px)); max-width: none; z-index: 99;
             bottom: calc(12px + env(safe-area-inset-bottom)); padding: 10px 12px; padding-inline-end: 10px; border-radius: 16px; }
.pwa-toast[hidden] { display: none; }
.pwa-toast .pwa-icon img { display: block; width: 28px; height: 28px; border-radius: 8px; }
.pwa-toast .pwa-msg { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.5; }
.pwa-toast .pwa-go { flex: none; }
.pwa-toast .pwa-x { width: 32px; height: 32px; font-size: 13px; }
.auth { max-width: 420px; margin: 32px auto; }
.auth h2 { margin-top: 0; font-size: 22px; }

/* music picker */
.mfree { margin: 0 0 10px; }
.mfree.mor { margin: 18px 0 10px; }
#music .kinds + .linkish, #music .kinds + small { display: inline-block; margin-top: 10px; }
.mbody { margin-top: 14px; display: grid; gap: 12px; }
.tracks { display: grid; gap: 8px; }
.track { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); cursor: pointer; }
.track.on { border-color: var(--brand); background: var(--tint); }
.track .play { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: var(--line); color: var(--text); font-size: 14px; cursor: pointer; }
.track .t-info { display: grid; flex: 1; min-width: 0; }
.track .t-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .t-info small { color: var(--muted); }
.track .t-pick { color: var(--brand); font-weight: 800; }
.upload { cursor: pointer; justify-self: start; }

/* font picker */
.fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fcard { display: grid; gap: 6px; justify-items: start; min-width: 0; overflow: hidden; text-align: start; padding: 14px 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); color: var(--text); cursor: pointer; font: inherit; }
.fcard.on { border-color: var(--brand); background: var(--tint); }
.fcard .fsample { font-size: clamp(16px, 4.6vw, 24px); line-height: 1.6; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: clip; }
.fcard small { color: var(--muted); }
.fcard .badge { font-size: 12px; font-weight: 700; color: var(--ok-text); border: 1px solid rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .08); border-radius: 999px; padding: 2px 12px; }

/* size and length */
.aspects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.acard, .dcard { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px 8px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel-2); color: var(--text); cursor: pointer; font: inherit; min-width: 0; }
.acard.on, .dcard.on { border-color: var(--brand); background: var(--tint); }
.acard:disabled, .dcard:disabled { opacity: .4; cursor: not-allowed; }
.acard .ashape { height: 50px; max-width: 90px; border: 2px solid currentColor; border-radius: 6px; margin-bottom: 6px; opacity: .8; }
.acard.on .ashape { border-color: var(--brand); background: rgba(255, 90, 0, .18); }
.acard small, .dcard small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.acard b small { color: var(--muted); font-weight: 600; }
.durations { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.dcard { padding: 10px 4px; }
.dcard b { font-size: 18px; }
@media (max-width: 480px) { .durations { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* video kind + project details */
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kcard { display: grid; gap: 4px; justify-items: start; text-align: start; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-2);
  color: var(--text); cursor: pointer; font: inherit; min-width: 0; }
.kcard:last-child:nth-child(odd) { grid-column: 1 / -1; }
.kcard.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.kcard .kicon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); font-size: 20px; margin-bottom: 6px; }
.kcard.on .kicon { background: var(--brand); border-color: var(--brand); }
.kcard small { color: var(--muted); }
.about .only { display: none; }
.about[data-kind="website"] .only.website, .about[data-kind="service"] .only.service, .about[data-kind="comparison"] .only.comparison,
.about[data-kind="ad"] .only.ad, .about[data-kind="custom"] .only.custom, .about[data-kind="product"] .only.product, .about[data-kind="event"] .only.event { display: block; }
.about[data-kind="website"] .not.website { display: none; }
/* the questions for videos without a link (web/guided.ts) */
.about .slot { display: none; }
.gf-help { display: grid; gap: 8px; margin-bottom: 18px; padding: 14px; border: 1px dashed var(--brand); border-radius: 16px; background: var(--tint); }
.gf-help small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.gf-help textarea { min-height: 84px; background: var(--panel); }
/* seven kinds on a phone: icon beside the name, so the choice fits about one screen */
@media (max-width: 480px) {
  .vkinds .kcard { grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; padding: 10px 12px; }
  .vkinds .kcard .kicon { grid-row: span 2; width: 36px; height: 36px; font-size: 18px; margin: 0; }
  .vkinds .kcard small { font-size: 12px; line-height: 1.35; }
}
.gf-help .btn { justify-self: start; }
.gf-qs { display: flex; flex-direction: column; }
.gf-q[hidden], .gf-sides[hidden], .gf-opt[hidden] { display: none; }
.gf-q textarea[rows="2"] { min-height: 64px; }
.gf-chips:empty { display: none; }
.gf-chips .chip { padding: 5px 11px; font-size: 13px; }
.field .gf-ai { display: none; margin-inline-start: 6px; color: var(--accent-text); font-weight: 600; }
.field.ai .gf-ai { display: inline; }
.field.ai :is(input, textarea) { border-color: var(--accent-text); }
.gf-outline { margin: 2px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); font-size: 14px; line-height: 1.6; }
.gf-outline:empty { display: none; }
.gf-outline ul { margin: 6px 0 8px; padding: 0; list-style: none; display: grid; gap: 2px; overflow-wrap: anywhere; }
.gf-outline p { margin: 0 0 4px; font-weight: 700; }
.gf-outline .gf-ok { color: var(--ok-text); }
.gf-outline .linkish { font-size: 13px; margin-inline-start: 6px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drop { display: flex; flex-wrap: wrap; gap: 8px; }
.drop .add { display: grid; place-items: center; width: 84px; height: 84px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); cursor: pointer; font-weight: 700; text-align: center; font-size: 13px; }
.drop .thumb { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.drop .thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop .thumb button { position: absolute; top: 4px; inset-inline-end: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* template tabs */
.tcats { margin-bottom: 12px; }
.tcats .sub { flex-basis: 100%; margin-top: 4px; }
.tcats .sub .chip { font-size: 13px; padding: 6px 12px; }

/* direct publishing (web/publish.ts): status on cards, "انشر" dialog, "حساباتي" */
.vsocial { display: grid; gap: 2px; margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--soft); }
.vsocial .ok { color: var(--ok-text); font-weight: 700; }
.vsocial .bad { color: var(--bad-text); }
.vsocial a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pfi { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; color: #fff; font-weight: 900; font-size: 14px;
  font-family: system-ui, sans-serif; background: var(--line); direction: ltr; }
.pfi.sm { width: 18px; height: 18px; border-radius: 5px; font-size: 9px; margin-inline-end: 4px; vertical-align: -3px; }
.pfi-instagram { background: linear-gradient(45deg, #f9a825, #e1306c 55%, #833ab4); }
.pfi-tiktok { background: #111; box-shadow: inset 0 0 0 1px #333; color: #25f4ee; text-shadow: 1px 1px 0 #fe2c55; }
.pfi-facebook { background: #1877f2; font-size: 18px; }
.pfi-youtube { background: #ff0033; font-size: 12px; }
.pfi-x, .pfi-threads { background: #000; box-shadow: inset 0 0 0 1px #333; }
.pfi-linkedin { background: #0a66c2; }

.confirm.pub { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.pubbox { padding: 18px 18px 20px; }
.pubhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pubhead h3 { margin: 0; font-size: 20px; }
.pubsec { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.pubsec legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.pubaccs { display: grid; gap: 8px; }
.pacc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); cursor: pointer; min-width: 0; }
.pacc.on { border-color: var(--brand); background: var(--tint); }
.pacc input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; margin: 0; }
.pacc img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.pacc img + .pfi { width: 18px; height: 18px; border-radius: 5px; font-size: 9px; margin-inline-start: -22px; align-self: flex-end; }
.pacc span:last-child { display: grid; min-width: 0; }
.pacc b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pacc small { color: var(--muted); font-size: 12px; }
.pubmore { display: inline-block; margin-top: 8px; color: var(--accent-text); font-size: 14px; font-weight: 700; text-decoration: none; }
.pubempty { text-align: center; padding: 18px 14px; margin-bottom: 16px; border: 1px dashed var(--line); border-radius: 14px; }
.pubempty p { margin: 6px 0 14px; line-height: 1.6; }
.pubbox .field { margin-bottom: 14px; }
.pubbox textarea { min-height: 130px; line-height: 1.6; }
.pubwhen { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; margin-top: 10px; }
@media (max-width: 480px) { .pubwhen { grid-template-columns: 1fr; } }
.pubwhen[hidden] { display: none; }
.pubwhen input, .pubwhen select { width: 100%; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); }
.pubhist { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.pubhist summary { cursor: pointer; font-weight: 700; }
.pubhist ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.pubhist li { display: grid; gap: 4px; justify-items: start; }
.pubres { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.pubres .ok { color: var(--ok-text); }
.pubres .bad { color: var(--bad-text); }

.acclead { margin: 0 0 18px; max-width: 620px; line-height: 1.7; }
.soclist { display: grid; gap: 12px; }
@media (min-width: 760px) { .soclist { grid-template-columns: repeat(2, 1fr); } }
.soc { padding: 14px; display: grid; gap: 10px; align-content: start; }
.soc.on { border-color: rgba(47, 210, 127, .35); }
.sochead { display: flex; align-items: center; gap: 12px; }
.sochead .pfi { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; }
.socname { display: grid; flex: 1; min-width: 0; }
.socname small { color: var(--muted); font-size: 13px; }
.socname small.ok { color: var(--ok-text); font-weight: 700; }
.socacc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--panel-2); }
.socacc img, .socacc .noav { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--line); font-weight: 800; }
.socacc span[dir] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.accnote { margin-top: 16px; font-size: 14px; line-height: 1.6; }
.pact.has-pub .btn:first-child { grid-column: auto; }
.vaccs { margin: 0 0 12px; }
@media (min-width: 481px) { .vaccs { display: none !important; } }

/* colours */
.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.pcard { display: grid; gap: 2px; justify-items: start; text-align: start; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); color: var(--text); cursor: pointer; font: inherit; min-width: 0; }
.pcard .sw { margin-bottom: 6px; }
.pcard b { font-size: 15px; line-height: 1.4; }
.pcard .sw i { width: 20px; height: 20px; }
.pcard .sw i + i { margin-inline-start: -7px; }
.pcard .sw.auto i { width: 34px; }
.pcard.on { border-color: var(--brand); background: var(--tint); }
.pcard small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.sw { display: flex; }
.sw i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--panel-2); box-shadow: 0 0 0 1px var(--line); }
.sw i + i { margin-inline-start: -8px; }
.sw.auto i { width: 40px; background: conic-gradient(from 90deg, #ff5a00, #ffd23f, #2fd27f, #3d9bff, #a855f7, #ff5a00); border-radius: 999px; }
.mycolors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cpick { display: grid; gap: 4px; justify-items: center; padding: 10px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); cursor: pointer; font-weight: 700; font-size: 14px; }
.cpick input { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.cpick input::-webkit-color-swatch-wrapper { padding: 0; }
.cpick input::-webkit-color-swatch { border: 2px solid var(--line); border-radius: 50%; }
.cpick input::-moz-color-swatch { border: 2px solid var(--line); border-radius: 50%; }
.cpick small { color: var(--muted); font-size: 12px; font-weight: 600; }

/* add-ons */
.addon { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); cursor: pointer; }
.addon + .addon { margin-top: 10px; }
.addon:has(input:checked) { border-color: var(--brand); background: var(--tint); }
.addon.off { opacity: .5; cursor: not-allowed; }
.addon input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.addon .ainfo { display: grid; gap: 2px; flex: 1; min-width: 0; }
.addon .ainfo small { color: var(--muted); line-height: 1.5; }
.addon .aprice { font-weight: 800; color: var(--accent-text); white-space: nowrap; }
.summary #breakdown, .summary #from { display: block; }

/* every output of a job, in the player */
.pouts { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pout { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pout .chip { flex: 1; text-align: start; font-size: 13px; }
.pout .chip small { color: var(--muted); }
.pout a.icon-btn { text-decoration: none; }
/* new-video form: preview + order buttons */
.sum-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sum-note { flex-basis: 100%; }
@media (max-width: 480px) {
  .sum-acts { width: 100%; } .sum-acts .btn { flex: 1; padding: 12px 10px; }
  .sum-note { display: none; } /* the sticky bar stays short on phones; the preview page says the same */
  /* With the previews tab there can be 5 filters: scroll them instead of widening the page. */
  .vtabs { overflow-x: auto; scrollbar-width: none; }
  .vtabs .chip { flex: none; }
}
.vbadge.preview { background: rgba(20, 24, 52, .85); color: #a9b8ff; border: 1px solid rgba(130, 150, 255, .45); }
.vprice.free { color: var(--ok-text); }
a.vstage { text-decoration: none; }

/* free preview / edit page */
.pv-head { margin-bottom: 14px; }
.pv-head p { margin: 0; max-width: 720px; line-height: 1.7; }
.pv-wait { max-width: 560px; margin: 24px auto; display: grid; gap: 12px; justify-items: start; }
.pv-wait h1 { font-size: clamp(24px, 5vw, 34px); margin: 0; }
.pv-wait p { margin: 0; line-height: 1.7; }
.pv { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .pv { grid-template-columns: minmax(300px, 380px) 1fr; } .pv-player { position: sticky; top: 76px; } }
.pv-player { display: grid; gap: 8px; min-width: 0; }
.pv-screen { --r: .5625; position: relative; width: min(100%, calc(60dvh * var(--r))); aspect-ratio: var(--r); margin: 0 auto; overflow: hidden;
  border-radius: 18px; background: #000; border: 1px solid var(--line); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pv-screen.wide { width: 100%; }
/* Drawn at half size and scaled up: a softer picture than the final video. */
.pv-frame { position: absolute; inset: 0; pointer-events: none; }
.pv-frame iframe { position: absolute; top: 0; left: 0; width: 50%; height: 50%; border: 0; transform: scale(2); transform-origin: 0 0; will-change: transform; pointer-events: none; }
.pv-mark { position: absolute; inset: 0; z-index: 2; background-repeat: repeat; background-size: 200px auto; }
.pv-bar { display: flex; align-items: center; gap: 10px; }
.pv-bar .btn { flex: none; white-space: nowrap; }
.pv-bar small { line-height: 1.5; }
.pv-note { margin: 0; font-size: 13px; color: var(--soft); }
.pv-form { display: grid; gap: 14px; min-width: 0; }
.pv-form h2 { font-size: 19px; }
.pv-form [hidden] { display: none !important; }
.pv-form select { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); }
.pv-scenes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pv-count { padding: 3px 10px; border-radius: 999px; background: var(--panel-2); font-size: 13px; font-weight: 700; color: var(--muted); }
.pv-count.over { color: #fff; background: var(--bad); }
.pv-hint { font-size: 13px; line-height: 1.6; margin: 8px 0 12px; }
.pv-scene { margin: 0 0 12px; padding: 12px 14px 0; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.pv-scene legend { padding: 0 6px; font-weight: 800; }
.pv-scene .field { margin-bottom: 12px; }
.pv-scene textarea { min-height: 64px; }
.pv-ai { font-size: 12px; font-weight: 700; color: var(--accent-text); }
.pv-sum { margin-top: 0; z-index: 3; }
.pv-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) { .pv-acts { width: 100%; } .pv-acts .btn { flex: 1; padding: 12px 10px; } }
/* brand kit ("هويتي", web/brand.ts) */
.newstore { margin: -4px 0 16px; font-size: 14px; }
.newstore a { color: var(--accent-text); font-weight: 700; text-decoration: none; }
select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); outline: none; }
select:focus { border-color: var(--brand); }
.blead { margin: 0 0 18px; max-width: 620px; line-height: 1.7; }
.blist { display: grid; gap: 10px; }
.bcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.bmark { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); font-weight: 900; font-size: 20px; color: #fff; }
.bmark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bmark.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.binfo { display: grid; flex: 1; min-width: 0; }
.binfo b, .binfo small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.binfo small { color: var(--muted); }
.bdots { display: flex; gap: 4px; }
.bdots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(128, 128, 128, .35); }
@media (max-width: 480px) { .bdots { display: none; } .bcard .btn.sm { padding: 8px 12px; } }
.bform .field { margin-bottom: 14px; }
.bcolors { display: flex; gap: 10px; flex-wrap: wrap; }
.bswatch { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.bswatch label { position: relative; display: block; width: 36px; height: 36px; cursor: pointer; }
.bswatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bswatch span { display: block; width: 100%; height: 100%; border-radius: 10px; border: 1px solid rgba(128, 128, 128, .3); }
.bswatch.empty span { background: repeating-linear-gradient(45deg, var(--line) 0 6px, transparent 6px 12px); }
.bswatch small { line-height: 1.3; }
.bswatch b { color: var(--text); font-size: 13px; }
.bclear { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; }
.bmore { margin: 4px 0 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.bmore summary { cursor: pointer; font-weight: 700; margin-bottom: 14px; }
.bact { display: flex; gap: 10px; justify-content: flex-end; }
.about-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.bfill { position: relative; }
.bmenu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 5; display: grid; min-width: 220px; padding: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.bmenu[hidden] { display: none; }
.bmenu button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: start; }
.bmenu button:hover, .bmenu button:focus-visible { background: var(--line); }
.bmanage { padding: 8px 10px; font-size: 13px; color: var(--muted); text-decoration: none; border-top: 1px solid var(--line); margin-top: 4px; }
.bsave { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.linkish { border: 0; background: none; padding: 4px 0; color: var(--accent-text); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* whole store (web/store.ts) */
#sres, #sbatches { scroll-margin-top: 90px; }
@media (max-width: 600px) { #sres, #sbatches { scroll-margin-top: 170px; } }
.sscan { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.sscan small { grid-column: 1 / -1; }
@media (max-width: 480px) { .sscan { grid-template-columns: 1fr; } }
.sloading p { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; }
.sloading .spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 181, 71, .25); border-top-color: var(--accent-text); animation: spin .9s linear infinite; }
.shead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.shead h2 { margin: 0; }
.sgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (max-width: 480px) { .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sgrid .pcard { position: relative; display: grid; gap: 4px; align-content: start; padding: 0 0 10px; overflow: hidden; text-align: start; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel); cursor: pointer; }
.sgrid .pcard.on { border-color: var(--brand); }
.sgrid .pcard:not(.on) .pimg img { opacity: .45; }
.pimg { display: block; aspect-ratio: 1; background: var(--panel-2); }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
.sgrid .pcard b { padding: 4px 10px 0; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sgrid .pcard small { padding: 0 10px; color: var(--accent-text); font-weight: 700; }
.pcheck { position: absolute; top: 8px; inset-inline-start: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .45); color: transparent; font-weight: 900; font-size: 14px; }
.sgrid .pcard.on .pcheck { background: var(--brand); border-color: var(--brand); color: #fff; }
.sgrid .pcard.skel { cursor: default; }
.sgrid .pcard.skel .pimg, .pcard.skel i { animation: pulse 1.4s ease-in-out infinite; }
.sgrid .pcard.skel i { display: block; height: 10px; margin: 6px 10px 0; border-radius: 6px; background: var(--panel-2); }
.sopts { margin-top: 18px; }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.snote { text-align: center; font-size: 13px; margin: 10px 0 0; }
.sbatches { display: grid; gap: 10px; }
.sbatch { display: grid; gap: 8px; padding: 16px; }
.sbtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sstate { font-size: 13px; color: var(--muted); font-weight: 700; }
.sstate.busy { color: var(--accent-text); }
.sstate.ok { color: var(--ok); }
.sstate.warn { color: var(--bad-text); }
.sbar { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.sbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: inherit; }
.sbatch .vact .btn { flex: none; }

/* ================= homepage ================= */
.home { overflow-x: clip; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--accent-text); font-size: 13px; font-weight: 700; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--tint); }
.h-sec { padding-top: 72px; scroll-margin-top: 70px; text-align: center; }
.h-sec > h2 { font-size: clamp(22px, 3.6vw, 32px); line-height: 1.25; margin: 12px auto 10px; max-width: 680px; font-weight: 900; }
.h-sec > .lead { max-width: 560px; margin: 0 auto 8px; }

/* hero */
.h-hero { position: relative; display: grid; gap: 28px; align-items: center; padding: 36px 0 8px; }
.h-glow { position: absolute; inset: -80px -20% auto; height: 620px; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 30% 40%, rgba(255, 90, 0, .22), transparent 70%), radial-gradient(35% 45% at 75% 30%, rgba(255, 181, 71, .14), transparent 70%); filter: blur(10px); }
.h-copy { text-align: center; }
.h-hero h1 { font-size: clamp(30px, 6.4vw, 52px); line-height: 1.15; margin: 16px 0 14px; }
.h-hero h1 .grad { display: inline-block; padding-bottom: .08em; }
.h-hero .lead { font-size: clamp(15px, 1.8vw, 17px); line-height: 1.75; max-width: 560px; margin: 0 auto 22px; }
.h-url { display: flex; align-items: center; gap: 6px; max-width: 540px; margin: 0 auto; padding: 6px; padding-inline-start: 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 6px 18px var(--phone-shadow); transition: border-color .15s, box-shadow .15s; }
.h-url:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--tint), var(--shadow); }
.h-url-ico { display: grid; color: var(--muted); }
.h-url input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 8px 4px !important; box-shadow: none; text-align: start; }
.h-url input:placeholder-shown { direction: inherit; }
.h-url .btn { flex: none; padding: 11px 18px; }
.h-alt { margin: 12px 0 0; font-size: 14px; }
.h-alt a { color: var(--accent-text); font-weight: 700; }
.h-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 500px; margin: 26px auto 0; padding: 0; }
.h-stats div { padding: 2px 6px; border-inline-start: 1px solid var(--line); }
.h-stats div:first-child { border-inline-start: 0; }
.h-stats dt { font-size: clamp(18px, 4.6vw, 24px); font-weight: 900; line-height: 1.2; }
.h-stats dd { margin: 0; color: var(--muted); font-size: 12px; }

.h-stage { position: relative; height: 400px; display: grid; place-items: center; }
.phone { position: absolute; width: 168px; padding: 7px; border-radius: 30px; background: #0d0d12; border: 1px solid #2c2c38;
  box-shadow: 0 24px 48px var(--phone-shadow), inset 0 0 0 1px rgba(255, 255, 255, .04); }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; z-index: 2; width: 46px; height: 12px; margin-left: -23px; border-radius: 999px; background: #0d0d12; }
.phone-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #000; }
.phone-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.phone.p0 { z-index: 2; width: 196px; animation: bob 7s ease-in-out infinite; }
.phone.p1 { transform: translateX(-118px) rotate(-8deg) scale(.86); opacity: .92; }
.phone.p2 { transform: translateX(118px) rotate(8deg) scale(.86); opacity: .92; }
.float { position: absolute; z-index: 3; padding: 7px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 700; white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.float.f1 { top: 14%; inset-inline-start: 0; }
.float.f2 { bottom: 16%; inset-inline-end: 0; animation-delay: -2s; color: var(--ok-text); }
.float.f3 { bottom: 4%; inset-inline-start: 8%; animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -8px; } }
@media (min-width: 920px) {
  .h-hero { grid-template-columns: 1.05fr 1fr; padding: 64px 0 24px; gap: 40px; }
  .h-copy { text-align: start; }
  .h-hero .lead, .h-url, .h-stats { margin-inline: 0; }
  .h-stats { margin-top: 30px; }
  .h-stage { height: 520px; }
  .phone { width: 200px; }
  .phone.p0 { width: 236px; }
  .phone.p1 { transform: translateX(-150px) rotate(-8deg) scale(.86); }
  .phone.p2 { transform: translateX(150px) rotate(8deg) scale(.86); }
}
@media (max-width: 420px) {
  .h-stage { height: 360px; }
  .phone { width: 148px; }
  .phone.p0 { width: 176px; }
  .phone.p1 { transform: translateX(-98px) rotate(-8deg) scale(.84); }
  .phone.p2 { transform: translateX(98px) rotate(8deg) scale(.84); }
  .h-url .btn { padding: 10px 14px; font-size: 14px; }
  .h-url .btn svg { display: none; }
  .float { font-size: 12px; padding: 6px 10px; }
}

.h-sources { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; font-size: 13px; }
.h-sources .src { padding: 4px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; color: var(--soft); }

/* how it works */
.h-steps { list-style: none; display: grid; gap: 14px; margin: 26px 0 0; padding: 0; text-align: start; counter-reset: s; }
.h-steps li { position: relative; padding: 22px 20px; }
.h-steps h3 { margin: 12px 0 4px; }
.h-steps p { margin: 0; font-size: 14px; line-height: 1.7; }
.h-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 6px 18px rgba(255, 90, 0, .3); }
@media (min-width: 760px) { .h-steps { grid-template-columns: repeat(3, 1fr); } }
.h-kinds { display: grid; gap: 10px; justify-items: center; margin-top: 22px; font-size: 14px; }
.h-kinds .chips { justify-content: center; }
.h-kinds .chip { cursor: default; }

/* features */
.h-feats { display: grid; gap: 14px; margin-top: 26px; text-align: start; }
.feat { position: relative; overflow: hidden; padding: 20px; transition: border-color .2s, transform .2s; }
.feat:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.feat h3 { margin: 12px 0 4px; }
.feat p { margin: 0; font-size: 14px; line-height: 1.7; }
.fi { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--brand); background: var(--tint); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.dialects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.dl { display: grid; padding: 9px 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); min-width: 0; }
.dl b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl small { color: var(--muted); font-size: 12px; }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; margin-top: 14px; }
.wave i { flex: 1; height: 30%; border-radius: 3px; background: linear-gradient(var(--brand-2), var(--brand)); opacity: .8; animation: wave 1.4s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.7s; } .wave i:nth-child(4n) { animation-delay: -1.1s; } .wave i:nth-child(5n) { animation-duration: 1.1s; }
@media (min-width: 480px) { .dialects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@keyframes wave { 50% { height: 100%; } }
.feat.tall { display: flex; flex-direction: column; }
.mini-phone { align-self: center; width: 128px; height: 210px; margin-top: 18px; padding: 6px; border-radius: 22px; background: #0d0d12; border: 1px solid #2c2c38; overflow: hidden; }
.mini-site { display: grid; gap: 6px; padding: 8px; border-radius: 16px; background: #fff; animation: scrollsite 9s ease-in-out infinite alternate; }
.mini-site i { display: block; height: 12px; border-radius: 4px; background: #e8e6e1; }
.mini-site i.nav { height: 10px; width: 50%; background: #ffd0b0; }
.mini-site i.hero { height: 56px; background: linear-gradient(135deg, #ffb547, #ff5a00); }
.mini-site i.s { width: 70%; }
.mini-site i.row { height: 34px; background: #f1efe9; }
@keyframes scrollsite { 0%, 15% { transform: translateY(0); } 85%, 100% { transform: translateY(-150px); } }
@media (min-width: 760px) {
  .h-feats { grid-template-columns: repeat(2, 1fr); }
  .feat.wide { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .h-feats { grid-template-columns: repeat(3, 1fr); }
  .feat.wide { grid-column: span 2; }
}

/* template strip */
.h-tabs { justify-content: center; margin: 22px 0 18px; }
.h-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; text-align: start;
  scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.h-tpl { position: relative; display: grid; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); cursor: pointer; scroll-snap-align: start; text-align: start; font: inherit; color: inherit; transition: transform .2s, border-color .2s; }
.h-tpl:hover { transform: translateY(-3px); border-color: var(--brand); }
.h-tpl-frame { position: relative; aspect-ratio: 9 / 16; background: #000; }
.h-tpl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.h-tpl-meta { display: grid; padding: 9px 11px 11px; font-size: 14px; }
.h-tpl-meta b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-tpl-meta .tag { justify-self: start; background: var(--panel-2); }
.h-tpl-use { position: absolute; top: 10px; inset-inline-end: 10px; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; opacity: 0; transform: translateY(-4px); transition: .2s; }
.h-tpl:hover .h-tpl-use, .h-tpl:focus-visible .h-tpl-use { opacity: 1; transform: none; }
@media (min-width: 760px) { .h-strip { grid-auto-columns: 180px; gap: 16px; } }

/* pricing */
.h-prices { display: grid; gap: 14px; margin-top: 28px; text-align: start; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; }
.price-card h3 { margin: 0; color: var(--muted); font-size: 15px; }
.price-card .amount { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 8px; }
.price-card .amount b { font-size: 36px; font-weight: 900; line-height: 1.1; }
.price-card ul { list-style: none; display: grid; gap: 9px; margin: 6px 0 20px; padding: 0; font-size: 14px; flex: 1; }
.price-card li { display: flex; gap: 8px; align-items: flex-start; }
.price-card li svg { flex: none; margin-top: 3px; color: var(--ok-text); }
.price-card.hot { border-color: var(--brand); background: linear-gradient(160deg, var(--tint), transparent 60%), var(--panel); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.price-card.hot .amount b { background: linear-gradient(90deg, var(--grad-a), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ribbon { position: absolute; top: -12px; inset-inline-start: 20px; padding: 3px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-size: 12px; font-weight: 800; }
.h-note { margin: 16px 0 0; font-size: 13px; }
@media (min-width: 860px) { .h-prices { grid-template-columns: repeat(3, 1fr); } .price-card.hot, .price-card.hot.rv.in { transform: translateY(-8px); } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; margin: 24px auto 0; text-align: start; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--panel-2); color: var(--brand); font-weight: 900; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 16px; font-size: 14px; line-height: 1.75; }

/* closing call to action + footer */
.h-cta { position: relative; overflow: hidden; margin-top: 80px; padding: 44px 22px; border-radius: 26px; text-align: center; color: #fff;
  background: radial-gradient(60% 120% at 85% 0%, rgba(255, 210, 120, .45), transparent 60%), linear-gradient(135deg, #ff7a1a, #e14d00); }
.h-cta h2 { margin: 0 0 6px; font-size: clamp(22px, 4vw, 32px); font-weight: 900; }
.h-cta p { margin: 0 0 22px; opacity: .92; }
.btn.light { background: #fff; color: #1a1208; }
.btn.light:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.h-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 44px 0 36px; margin-top: 56px; border-top: 1px solid var(--line); font-size: 14px; }
.h-foot-brand { grid-column: 1 / -1; }
.h-foot-brand p { margin: 8px 0 0; max-width: 320px; }
.h-foot nav { display: grid; gap: 8px; align-content: start; }
.h-foot nav a { color: var(--muted); text-decoration: none; }
.h-foot nav a:hover { color: var(--text); }
.h-copy-r { grid-column: 1 / -1; margin: 0; font-size: 13px; }
@media (min-width: 760px) { .h-foot { grid-template-columns: 2fr 1fr 1fr; } .h-foot-brand { grid-column: auto; } }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.h-steps .rv:nth-child(2), .h-feats .rv:nth-child(3n+2), .h-prices .rv:nth-child(2) { transition-delay: .08s; }
.h-steps .rv:nth-child(3), .h-feats .rv:nth-child(3n), .h-prices .rv:nth-child(3) { transition-delay: .16s; }
.price-card.hot.rv:not(.in) { transform: translateY(14px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ⭐ favourite templates (web/favs.ts): a round toggle in the corner of a template card */
.fav { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10, 10, 15, .62); color: #fff; font-size: 19px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); transition: transform .15s ease; }
.fav:hover { transform: scale(1.08); }
.fav.on { color: #ffc93c; background: rgba(10, 10, 15, .78); }
.fav:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* order form: the optional details fold away; balance notes; brand quick picks */
.more { margin: 4px 0 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.more > summary { cursor: pointer; font-weight: 700; margin-bottom: 4px; }
.more > summary small { font-weight: 400; color: var(--muted); }
.more[open] > summary { margin-bottom: 14px; }
.summary { z-index: 4; }
.sum-warn { flex-basis: 100%; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--tint); color: var(--text); font-size: 14px; line-height: 1.5; }
@media (max-width: 480px) { .sum-warn { padding: 6px 10px; font-size: 13px; } }
.sum-warn a { color: var(--accent-text); font-weight: 700; }
.addon-note { margin: 12px 0 0; font-size: 14px; }
.bquick { align-items: center; margin-bottom: 10px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 14px; }
.bquick small { flex-basis: 100%; }

/* brand kit: saved voices and music as removable chips */
.bpicks { margin-bottom: 8px; min-height: 24px; align-items: center; }
.bpick { display: inline-flex; align-items: center; gap: 6px; cursor: default; }
.bpick .bx, .bpick .bup { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 2px; font: inherit; line-height: 1; }
.bpick .bx:hover, .bpick .bup:hover { color: var(--text); }

/* preview editor: pick the opening of scene 1 */
.pv-hooks-head { display: grid; gap: 2px; margin-bottom: 8px; }
.pv-hooks-head small { line-height: 1.5; }
.pv-hooks { display: grid; gap: 8px; margin-bottom: 14px; }
@media (min-width: 560px) { .pv-hooks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pv-hook { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel-2); color: var(--text);
  text-align: start; font: inherit; cursor: pointer; }
.pv-hook small { color: var(--muted); font-size: 12px; font-weight: 700; }
.pv-hook b { line-height: 1.4; }
.pv-hook span { color: var(--soft); font-size: 13px; line-height: 1.4; }
.pv-hook.on { border-color: var(--brand); background: var(--tint); }
.pv-hook.on small { color: var(--accent-text); }

/* store: the balance covers only part of the picks */
#ssum { display: contents; }
.sfit { margin-top: 12px; border-color: var(--brand); background: var(--tint); }
.sfit p { margin: 4px 0 10px; }

/* wallet: the way back after a top-up, and the free-preview hint */
.wresume { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; border-color: var(--brand); background: var(--tint); }
.wtry a { color: var(--accent-text); font-weight: 700; }
.sfit .vact .btn { flex: none; }
.auth-next { margin: 0 0 14px; padding: 8px 12px; border-radius: 12px; background: var(--tint); font-size: 14px; }

/* order form: the "Best" length, the free review option, the refund rule under the order button */
.dcard { position: relative; }
.dcard.best { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.dbadge { position: absolute; top: -9px; inset-inline-end: 6px; padding: 1px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.6; white-space: nowrap; }
.durations { padding-top: 6px; }
.addon .aprice.free { color: var(--ok-text); }
.sum-refund { flex-basis: 100%; font-size: 12px; line-height: 1.5; }

/* review editor: auto-continue line, brand pronunciation, cancel note */
.pv-auto { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--tint); font-size: 14px; line-height: 1.6; max-width: 720px; }
.pv-say-row { display: flex; gap: 8px; align-items: center; }
.pv-say-row input { flex: 1; min-width: 0; }
.pv-say-row .btn { flex: none; white-space: nowrap; }
.pv-say small { display: block; margin-top: 6px; line-height: 1.5; }
.pv-cancel-note { font-size: 14px; }

/* wallet: how long the credit lasts */
.wvalid { margin: 12px 0 0; font-size: 15px; line-height: 1.6; }
@media (max-width: 480px) { .pv-sum small { display: none; } } /* the sticky bar stays short on phones */
/* the steps on a page panel (not on a dark card stage) */
.pv-wait .vsteps { font-size: 14px; }
.pv-wait .vsteps li.ok { color: var(--muted); }
.pv-wait .vsteps li.now { color: var(--text); }
.topup:disabled { opacity: .45; cursor: not-allowed; }
.wblocked { border-color: var(--bad); color: var(--bad-text); margin: 0 0 14px; }

/* brand name: spellings to try by ear */
.say-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.say-cands { display: grid; gap: 6px; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.say-cand { display: flex; align-items: center; gap: 10px; }
.say-cand span { flex: 1; min-width: 0; font-size: 17px; }
.say-cand .chip { flex: none; }
.say-saved { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.pv-say-left { display: block; margin-top: 4px; }
.say-cands[hidden] { display: none; }
.pv-cur { background: color-mix(in srgb, var(--accent-text) 12%, transparent); }
.pv-form .pv-price { border-color: var(--accent-text); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-text) 25%, transparent); }
.pv-price-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0 4px; }
.pv-price-row label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.pv-price-row input { width: 130px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.pv-warn { background: color-mix(in srgb, var(--bad) 12%, transparent); }

/* notifications (web/alerts.ts): a quiet toast with a link, and the "notify me?" bar after an order */
.alert-toast, .notify-ask { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 101; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px 14px; border-radius: 12px; width: max-content; max-width: calc(100% - 32px); }
.alert-toast span, .notify-ask span { flex: 1 1 200px; }
.notify-ask { bottom: 84px; margin: 0; }
/* season banner (web/season.ts) */
.season-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; border-color: var(--brand); background: var(--tint); }
.season-banner .season-ico { font-size: 22px; }
.season-banner .season-text { flex: 1 1 220px; }
/* settings (web/settings.ts) */
.settings .set-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
/* "السعر بالفيديو": the price card (web/price-ok.ts) */
.pok { margin-bottom: 14px; max-width: 760px; }
.pok.needed { border-color: var(--brand); background: var(--tint); }
.pok-row { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 6px 0; }
.pok-row b { font-size: 20px; }
.pok-src { margin: 6px 0 0; font-size: 14px; }
.pok-where { margin-top: 8px; font-size: 14px; }
.pok-where ul { margin: 6px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.pok-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pok-done { margin: 10px 0 0; font-weight: 700; color: var(--ok-text); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pok-only { max-width: 760px; }
.pok-order { display: grid; gap: 8px; margin: 10px 0; }
.pok-batch .cbox { max-width: 640px; }
.pok-list { margin: 10px 0; padding: 0; list-style: none; display: grid; gap: 10px; max-height: 50vh; overflow: auto; }
.pok-list li { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.pok-list li small { display: block; }
.pok-list input { width: 140px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
/* page facts (web/page-facts.ts): sold out, the offer's end, the WhatsApp contact choice */
.pf-note { max-width: 720px; }
.field .pf-note { margin-top: 8px; font-size: 13px; }
.pf-contact { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.pf-badge { position: absolute; top: 8px; inset-inline-end: 8px; padding: 2px 8px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 800; }

/* the owner's control panel (web/admin.ts). Warn is the amber of the brand (--brand-2). */
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-head h1 { margin: 0; }
.adm-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 18px; padding: 2px 16px 6px; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs .chip { flex: none; white-space: nowrap; }
.adm-body { display: grid; gap: 14px; min-width: 0; }
.adm-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.adm-loading .spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 181, 71, .25); border-top-color: var(--accent-text); animation: spin .9s linear infinite; }
.adm-error p { margin: 0 0 10px; }
.adm-h { font-size: 17px; margin: 10px 0 0; display: flex; align-items: center; gap: 8px; }
.adm-note { margin: 0; font-size: 13px; max-width: 760px; }
.adm-ok { color: var(--ok-text); font-weight: 700; margin: 0; }
.adm-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.adm-count { font-size: 13px; padding: 1px 9px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.adm-more { justify-self: center; }

.adm-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.adm-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.adm-tile small { color: var(--muted); font-size: 13px; font-weight: 600; }
.adm-tile b { font-size: 24px; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.adm-tile > span { font-size: 12px; }
.adm-tile.ok b { color: var(--ok-text); }
.adm-tile.bad b { color: var(--bad-text); }
.adm-tile.warn b, .adm-tile.brand b { color: var(--accent-text); }
.adm-tile.ok { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.adm-tile.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
@media (max-width: 400px) { .adm-tiles { grid-template-columns: 1fr 1fr; } .adm-tile b { font-size: 20px; } }

.adm-sparks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.adm-spark { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.adm-spark > div { display: grid; gap: 2px; min-width: 0; }
.adm-spark small { color: var(--muted); font-size: 13px; font-weight: 600; }
.adm-spark b { font-size: 20px; font-weight: 900; }
.adm-spark span { font-size: 12px; }
.spark { width: 120px; height: 34px; flex: none; overflow: visible; }
.spark .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { stroke: none; opacity: .14; }
.spark.brand .line { stroke: var(--brand); } .spark.brand .area { fill: var(--brand); }
.spark.ok .line { stroke: var(--ok); } .spark.ok .area { fill: var(--ok); }
.spark.bad .line { stroke: var(--bad); } .spark.bad .area { fill: var(--bad); }

.adm-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--soft); white-space: nowrap; vertical-align: middle; }
.adm-pill.ok { color: var(--ok-text); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.adm-pill.bad, .adm-pill.sev-high { color: var(--bad-text); border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.adm-pill.warn, .adm-pill.sev-medium { color: var(--accent-text); border-color: color-mix(in srgb, var(--brand-2) 50%, transparent); background: color-mix(in srgb, var(--brand-2) 14%, transparent); }
.adm-pill.sev-critical { background: var(--bad); border-color: var(--bad); color: #fff; }

.adm-alert { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.adm-alert b { font-size: 17px; }
.adm-alert.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); } .adm-alert.ok b { color: var(--ok-text); }
.adm-alert.warn { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 10%, var(--panel)); } .adm-alert.warn b { color: var(--accent-text); }
.adm-alert.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--panel)); } .adm-alert.bad b { color: var(--bad-text); }
.adm-remind { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 10%, var(--panel)); }
.adm-remind p { margin: 6px 0 0; font-size: 14px; }
.adm-acc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.adm-acc { display: grid; gap: 10px; }
.adm-acc.off { opacity: .7; }
.adm-acc h3 { margin: 0; font-size: 16px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.adm-acc-num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.adm-acc-num b { font-size: 26px; font-weight: 900; }
.adm-bar { height: 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.adm-bar span { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.adm-bar.warn span { background: var(--brand-2); }
.adm-bar.bad span { background: var(--bad); }
.adm-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.adm-dl dt { color: var(--muted); }
.adm-dl dd { margin: 0; }
.adm-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.adm-list li { padding: 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.adm-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
.adm-table th { text-align: start; font-size: 12px; color: var(--muted); font-weight: 700; padding: 10px 12px; background: var(--panel-2); }
.adm-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.adm-table tbody tr:first-child td { border-top: 0; }
.adm-table thead + tbody tr:first-child td { border-top: 1px solid var(--line); }
.adm-table .neg { color: var(--bad-text); } .adm-table .pos { color: var(--ok-text); }
.adm-click { cursor: pointer; }
.adm-click:hover td, .adm-click:focus-visible td { background: var(--tint); }
.adm-click:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
/* Phones: each row is a card, each cell labelled (data-l). */
@media (max-width: 640px) {
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table { background: none; border: 0; border-radius: 0; overflow: visible; }
  .adm-table thead { display: none; }
  .adm-table tr { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; padding: 6px 0; }
  .adm-table td, .adm-table thead + tbody tr:first-child td { border: 0; padding: 4px 12px; display: flex; gap: 10px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
  .adm-table td[data-l=""] { justify-content: flex-start; }
  .adm-table td[data-l]:not([data-l=""])::before { content: attr(data-l); color: var(--muted); font-size: 12px; font-weight: 700; }
  .adm-table td:first-child { justify-content: flex-start; font-weight: 700; }
  .adm-table td:first-child::before { display: none; }
}

.adm-month { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.adm-month input { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; color-scheme: inherit; }
.adm-parts { display: grid; gap: 12px; }
.adm-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--panel-2); }
.adm-stack span { min-width: 2px; }
.adm-parts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.adm-parts li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; }
.adm-parts li small { grid-column: 2 / 4; font-size: 12px; }
.adm-parts i { width: 10px; height: 10px; border-radius: 3px; }
.pt-claude { background: var(--brand); } .pt-haiku { background: var(--brand-2); } .pt-voice { background: var(--ok); } .pt-render { background: var(--muted); }
.pt-images { background: var(--soft); } .pt-apify { background: var(--bad); } .pt-stock { background: var(--ok-text); }

.adm-boxes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.adm-box { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.adm-box i { position: absolute; top: 14px; inset-inline-end: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.adm-box.running { border-color: var(--brand-2); } .adm-box.running i { background: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 25%, transparent); }
.adm-box.asleep i { background: var(--line); }
.adm-box.unknown i { background: var(--bad); }
.adm-box.unused { opacity: .6; }
.adm-box span { color: var(--soft); font-size: 14px; }

.adm-filter { margin-bottom: 2px; }
.adm-risks, .adm-jobs { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.adm-risk, .adm-job { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); border-inline-start-width: 4px; min-width: 0; }
.adm-risk.sev-high, .adm-risk.sev-critical, .adm-job.failed { border-inline-start-color: var(--bad); }
.adm-risk.sev-medium, .adm-job.voiceWait { border-inline-start-color: var(--brand-2); }
.adm-job.done { border-inline-start-color: var(--ok); }
.adm-risk-top, .adm-job-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-when { margin-inline-start: auto; }
.adm-job-meta { font-size: 13px; overflow-wrap: anywhere; }
.adm-risk .btn, .adm-job .btn { justify-self: start; }
.adm-detail { display: block; font-size: 12px; padding: 6px 8px; border-radius: 8px; background: var(--panel-2); color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 120px; overflow: auto; }
.adm-detail.bad { color: var(--bad-text); }
/* The watcher's auto-fix log and the ops agent's desk (admin "المشاكل"). */
.adm-fixes { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; overflow-wrap: anywhere; }
.adm-fixes li { padding: 4px 8px; border-radius: 8px; background: var(--panel-2); }
.adm-fixes li.bad { color: var(--bad-text); }

.adm-search input { max-width: 460px; }
.adm-user { display: grid; gap: 10px; }
.adm-user h2 { margin: 0; overflow-wrap: anywhere; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-user p { margin: 0; }
.adm-actions { display: grid; gap: 10px; }
.adm-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-inline input { flex: 1 1 160px; width: auto; min-width: 0; padding: 8px 12px; }
.adm-inline input[type=number] { flex: 0 1 130px; }
#userBack { justify-self: start; }

.adm-checklist { margin: 0; list-style: none; display: grid; gap: 0; padding: 4px 14px; }
.adm-checklist li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.adm-checklist li:last-child { border-bottom: 0; }
.adm-checklist li > small { grid-column: 2 / 4; }
.adm-check { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; background: var(--panel-2); }
.adm-checklist .ok .adm-check { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok-text); }
.adm-checklist .missing .adm-check { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad-text); }

/* «الدعم»: support tickets (web/support.ts; the owner's view reuses the thread, web/support-admin.ts) */
.nav-links a.has-dot { position: relative; }
.nav-links a.has-dot::after { content: ""; position: absolute; top: 6px; inset-inline-end: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--header-bg); }
.sup { max-width: 720px; margin: 0 auto; }
.sup h1 { margin: 0; font-size: 24px; }
.sup-lead { margin: 0 0 16px; }
.sup-loading { display: grid; place-items: center; padding: 30px; }
.sup .spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 181, 71, .25); border-top-color: var(--accent-text); animation: spin .9s linear infinite; }
.sup-back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.sup-back:hover { color: var(--text); }
.sup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sup-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.sup-row:hover { border-color: var(--muted); }
.sup-row.unread { border-color: var(--brand); background: linear-gradient(0deg, var(--tint), var(--tint)), var(--panel); }
.sup-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--panel-2); font-size: 20px; }
.sup-row-main { display: grid; min-width: 0; }
.sup-row-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-row-side { display: grid; justify-items: end; gap: 4px; }
.sup-unread { font-size: 12px; font-weight: 800; color: #fff; background: var(--brand); padding: 1px 8px; border-radius: 999px; }
.sup-st { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); background: var(--panel-2); color: var(--soft); }
.sup-st.st-working { color: var(--accent-text); border-color: color-mix(in srgb, var(--brand-2) 50%, transparent); background: color-mix(in srgb, var(--brand-2) 14%, transparent); }
.sup-st.st-solved { color: var(--ok-text); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.sup-form-page h1 { margin-bottom: 14px; }
.sup-form { display: grid; gap: 4px; }
.sup-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .sup-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sup-cat { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; text-align: start; font-size: 14px; color: var(--text); min-height: 48px; }
.sup-cat.on { box-shadow: inset 0 0 0 1px var(--brand); }
.sup-about { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding: 10px 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.sup-about .icon-btn { width: 30px; height: 30px; font-size: 13px; }
.sup-attach { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 14px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--soft); }
.sup-attach:hover { border-color: var(--muted); }
.sup-shot .thumb, .sup-compose .thumb { position: relative; display: inline-block; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); vertical-align: middle; }
.sup-compose .thumb.sm { width: 42px; height: 42px; border-radius: 10px; }
.sup-shot .thumb img, .sup-compose .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sup-shot .thumb button, .sup-compose .thumb button { position: absolute; top: 3px; inset-inline-end: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; font-size: 11px; }
.sup-promise { margin: 10px 0 0; font-size: 13px; text-align: center; }
.sup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sup-thread { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.sup-msg { display: grid; gap: 4px; max-width: 86%; justify-self: start; }
.sup-msg.me { justify-self: end; }
.sup-msg.sys { justify-self: center; max-width: 94%; }
.sup-who { font-size: 12px; color: var(--muted); padding-inline: 4px; }
.sup-msg.me .sup-who { text-align: end; }
.sup-bubble { padding: 10px 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); line-height: 1.7; overflow-wrap: anywhere; }
.sup-msg.them .sup-bubble { border-start-start-radius: 6px; }
.sup-msg.me .sup-bubble { border-start-end-radius: 6px; background: var(--tint); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.sup-msg.by-team .sup-bubble, .sup-msg.by-owner .sup-bubble, .sup-msg.by-ops .sup-bubble { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.sup-msg.sys .sup-bubble { background: var(--panel-2); font-size: 14px; text-align: center; }
.sup-img { display: block; margin-top: 8px; }
.sup-img img { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; }
.sup-typing .sup-bubble { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-text); animation: pulse 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .18s; }
.dots i:nth-child(3) { animation-delay: .36s; }
.sup-compose { display: grid; gap: 8px; padding: 10px; position: sticky; bottom: 10px; box-shadow: var(--shadow); }
.sup-compose textarea { min-height: 52px; }
.sup-compose-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sup-clip { cursor: pointer; }
.sup-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.sup-rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 14px; }
.sup-solved { display: grid; gap: 10px; margin-bottom: 12px; border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.sup-solved p { margin: 0; }
.sup-rated { margin: 0; color: var(--soft); font-size: 14px; }
.vhelp { justify-self: start; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.vhelp:hover { color: var(--text); }
.phelp { margin: 4px 0 0; text-align: center; }
.adm-tk-actions { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.adm-ticket-view { display: grid; gap: 12px; }
.adm-ticket-view > .btn { justify-self: start; }
.adm-ticket-view h3 { margin: 0 0 8px; }
.adm-tk-filter .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-inline-start: 4px; border-radius: 999px; background: var(--line); font-size: 12px; text-align: center; }
.adm-tk-filter .chip.on .count { background: var(--brand); color: #fff; }

/* The order form a visitor fills in before logging in (web/app.ts newVideo), and a field the server refused. */
.guest-lead { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--tint); font-size: 14px; }
.drop button.add { background: none; font: inherit; font-size: 12px; font-weight: 700; padding: 6px; width: auto; min-width: 84px; color: var(--accent-text); }
.panel.bad-field { box-shadow: 0 0 0 2px var(--bad); }
.field.bad-field :is(input, textarea, select) { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad); }

/* «الدعم»: «تواصل معنا» (a general ticket, about anything). */
.sup-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.sup-contact p { margin: 0; flex: 1 1 200px; }
.sup-general { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: var(--tint); font-size: 14px; }
