/* «خلها تطبيق» — one dark design system for the whole owner journey (his
   concept-B pick, 2026-09-27): near-black ground, one blue, thin headline with
   a bold second line, glass cards, a phone tab bar, a sticky bottom action.
   Phone-first: most visitors arrive from TikTok's in-app browser.
   CSP: no inline styles anywhere — dynamic values go through element.style. */
@font-face { font-family: Alex; src: url("/assets/alexandria-300-arabic.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: Alex; src: url("/assets/alexandria-400-arabic.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Alex; src: url("/assets/alexandria-500-arabic.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Alex; src: url("/assets/alexandria-600-arabic.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Alex; src: url("/assets/alexandria-300-latin.woff2") format("woff2"); font-weight: 300; unicode-range: U+0000-024F; font-display: swap; }
@font-face { font-family: Alex; src: url("/assets/alexandria-400-latin.woff2") format("woff2"); font-weight: 400; unicode-range: U+0000-024F; font-display: swap; }
@font-face { font-family: Alex; src: url("/assets/alexandria-500-latin.woff2") format("woff2"); font-weight: 500; unicode-range: U+0000-024F; font-display: swap; }
@font-face { font-family: Alex; src: url("/assets/alexandria-600-latin.woff2") format("woff2"); font-weight: 600; unicode-range: U+0000-024F; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #071430; --bg2: #0b1f45; --card: rgba(255, 255, 255, 0.05); --card2: rgba(255, 255, 255, 0.08);
  --edge: rgba(143, 178, 255, 0.16); --edge2: rgba(143, 178, 255, 0.28);
  --ink: #f2f3f7; --mute: #b8c4da; --dim: #9aa8c1; --sky: #8fb2ff; --blue: #2f6ae0; --blue2: #1f4fb0;
  --ok: #5fd4a8; --warn: #f3b25b; --bad: #ff8f8f;
  --ok-bg: rgba(95, 212, 168, 0.12); --warn-bg: rgba(243, 178, 91, 0.12); --bad-bg: rgba(255, 143, 143, 0.1); --sky-bg: rgba(143, 178, 255, 0.1);
  --r: 22px; --font: Alex, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --tabs: 0px; --safe-b: env(safe-area-inset-bottom, 0px);
  /* aliases the landing film already uses */
  --lx-bg: var(--bg); --lx-ink: var(--ink); --lx-mute: var(--mute); --lx-dim: var(--dim); --lx-glass: var(--card);
  --lx-edge: var(--edge); --lx-sky: var(--sky); --lx-blue: var(--blue);
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink); font: 400 16px/1.8 var(--font); -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 620px at 85% -12%, rgba(47, 106, 224, 0.32), transparent 64%), radial-gradient(760px 560px at 0% 70%, rgba(61, 139, 255, 0.1), transparent 64%), var(--bg);
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--sky); text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--mute); }
.dim { color: var(--dim); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }
.num.date { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------------- shell ---------------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: calc(env(safe-area-inset-top, 0px) + 12px) max(20px, calc((100% - 1200px) / 2)) 12px; }
/* The blur exists only while the page is scrolled under it (a blur is costly to repaint on phones). */
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 20, 48, 0.86); border-bottom: 1px solid var(--edge); opacity: 0; transition: opacity 0.25s; }
body.scrolled .topbar::before { opacity: 1; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* The step pages (idea → payment) scroll long cards under the bars: both bars are solid from the first pixel, never a
   see-through moment while the blur fades in (live test 2026-10-22 #23: the looks notice ran under the logo). */
body.flow .topbar::before { opacity: 1; transition: none; background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); }
.brand-mark { display: block; width: 30px; height: 30px; border-radius: 8px; }
.brand-ar { font-weight: 600; font-size: 17px; }
.brand-en { font-size: 10px; letter-spacing: 0.14em; color: var(--dim); direction: ltr; }
.topnav { display: flex; gap: 6px; align-items: center; }
.topnav a, .topnav button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: none; color: var(--mute); font-size: 14.5px; transition: color 0.2s, background-color 0.2s; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--ink); background: var(--card2); }
.topnav .cta, body.lx .topnav a.cta { background: var(--ink); color: var(--bg); font-weight: 600; }
.topnav .cta:hover { background: #fff; color: var(--bg); }
.view { max-width: 1120px; margin: 0 auto; padding: 8px 20px 72px; }
.view:focus { outline: none; }
.footer { max-width: 1120px; margin: 0 auto; padding: 18px 20px calc(28px + var(--safe-b)); color: var(--dim); font-size: 13px; text-align: center; }
.footer a { color: var(--mute); }
/* Journey steps slide in; a tab only fades in quickly; a redraw from fresher data does not move at all. */
.page { animation: enter 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.page.tab { animation: fadein 0.14s ease-out both; }
.page.quiet { animation: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes ring { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2.8); opacity: 0; } }

/* phone tab bar — the app, in the browser */
.tabbar { display: none; }
@media (max-width: 760px) {
  /* Flush like a native iOS tab bar (his feedback 2026-09-28): a 54px row of tabs, then only
     the home-indicator inset below it (less 10px: the indicator sits in the lowest few pixels). */
  :root { --tabs: 54px; --tab-b: max(0px, calc(var(--safe-b) - 10px)); }
  .tabbar { position: fixed; z-index: 40; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: calc(var(--tabs) + var(--tab-b)); padding: 0 6px var(--tab-b); background: rgba(7, 20, 48, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 0.5px solid rgba(255, 255, 255, 0.12); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tabs); color: var(--dim); font-size: 10.5px; font-weight: 500; line-height: 1.3; -webkit-touch-callout: none; }
  .tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--sky); }
  .tabbar a:active svg { transform: scale(0.9); }
  .tabbar .badge { position: absolute; top: 5px; margin-inline-start: 24px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #ff5a4f; color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; }
  body.flow .tabbar, body.flow .topnav { display: none; }
  body:not(.flow) .view { padding-bottom: calc(var(--tabs) + var(--tab-b) + 28px); }
  body:not(.flow) .footer { display: none; }
  .topnav a:not(.cta), .topnav button { display: none; }
  .brand-en { display: none; }
}

/* ---------------- type ---------------- */
.kicker { margin: 0 0 8px; color: var(--sky); font-size: 13.5px; font-weight: 500; }
.h1 { margin: 0 0 10px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.2; font-weight: 300; text-wrap: balance; }
.h1 b { font-weight: 600; }
.lede { margin: 0 0 26px; color: var(--mute); font-size: 16.5px; font-weight: 300; max-width: 60ch; }
.h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.h2 small { color: var(--dim); font-size: 13px; font-weight: 400; margin-inline-start: 6px; }

/* ---------------- building blocks ---------------- */
.card { position: relative; border-radius: var(--r); background: #111f3b; border: 1px solid var(--edge); padding: 24px; margin-bottom: 18px; }
.card.hl { border-color: rgba(143, 178, 255, 0.35); background: radial-gradient(420px 220px at 90% 0%, rgba(47, 106, 224, 0.24), transparent 70%), linear-gradient(180deg, var(--card2), var(--card)); }
.card.good { border-color: rgba(95, 212, 168, 0.3); background: radial-gradient(420px 220px at 90% 0%, rgba(95, 212, 168, 0.16), transparent 70%), linear-gradient(180deg, var(--card2), var(--card)); }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; min-width: 0; }
/* «نطاقك الخاص» in the app's settings */
.group.domain-card h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 16px; color: var(--ink); font-size: 17px; font-weight: 600; }
.group.domain-card h2 small { padding: 2px 10px; border-radius: 999px; background: var(--sky-bg); color: var(--sky); font-size: 12px; font-weight: 500; }
.domain-in { display: grid; gap: 12px; padding: 4px 16px 16px; }
.domain-in p { margin: 0; }
.domain-in form { display: grid; gap: 10px; }
.domain-in .lbl { margin: 0; }
.domain-in .os-tabs { margin-bottom: 0; }
.domain-in bdi { overflow-wrap: anywhere; }
.domain-input { direction: ltr; text-align: left; }
.domain-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.domain-msg { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 196, 92, 0.35); background: rgba(255, 196, 92, 0.08); font-size: 14px; }
.domain-note { display: block; margin-top: 8px; color: var(--mute); font-size: 13px; }
.how.domain-steps li { align-items: flex-start; }
.how.domain-steps li > span { flex: 1; min-width: 0; padding-top: 3px; }
.domain-rec { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--edge); background: rgba(0, 0, 0, 0.2); }
.domain-rec-t { color: var(--sky); font-size: 13px; }
.domain-rec p { font-size: 13px; }
.domain-rec div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 2px; }
.domain-rec span { grid-column: 1 / -1; color: var(--mute); font-size: 12.5px; }
.domain-rec bdi { min-width: 0; font-weight: 600; }
.domain-rec bdi:last-child { grid-column: 1 / -1; }
.domain-rec span bdi { font-weight: 400; }
.domain-rec div.long > bdi { font-size: 13px; font-weight: 500; }
.domain-rec .btn { min-height: 44px; padding: 0 14px; }
.domain-buy summary { cursor: pointer; color: var(--sky); font-size: 15px; }
.domain-buy[open] summary { margin-bottom: 10px; }
.domain-buy > * + * { margin-top: 10px; }
.domain-off { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--edge); display: grid; gap: 10px; justify-items: start; }
.domain-off #domain-off-confirm { display: grid; gap: 10px; }
.domain-off #domain-off-confirm[hidden] { display: none; }
.btn { min-height: 34px; padding: 0 12px; }
.domain-buy summary { cursor: pointer; color: var(--sky); font-size: 15px; }
.domain-buy[open] summary { margin-bottom: 10px; }
.domain-buy > * + * { margin-top: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--edge2); background: var(--card2); color: var(--ink); font-weight: 600; font-size: 15.5px; text-align: center; transition: transform 0.15s, background-color 0.2s, box-shadow 0.2s, opacity 0.2s; }
.btn:active { transform: scale(0.97); }
.btn.primary { border: 0; background: var(--blue); color: #fff; box-shadow: 0 12px 28px rgba(47, 106, 224, 0.35); }
.btn.primary:hover { background: #3a74ea; }
.btn.light { border: 0; background: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; }
.btn.big { min-height: 56px; font-size: 17px; padding: 0 30px; border-radius: 16px; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--bad); }
.btn[disabled], .btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--edge2); background: transparent; color: var(--mute); font-size: 14px; white-space: nowrap; transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.chip:hover { color: var(--ink); border-color: rgba(143, 178, 255, 0.5); }
button.chip, a.chip { min-height: 44px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; }
.link { border: 0; background: none; color: var(--sky); padding: 8px 0; min-height: 40px; font-size: 14.5px; }
button.link, a.link { min-height: 44px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--card2); color: var(--mute); white-space: nowrap; vertical-align: middle; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.run { background: var(--sky-bg); color: var(--sky); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
/* The live dot pulses with transform/opacity only (compositor-cheap), never an animated shadow. */
.pill.live { position: relative; }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.live::after { content: ""; position: absolute; inset-inline-start: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: currentColor; animation: ring 1.8s ease-out infinite; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--sky-bg); color: var(--sky); font-size: 14px; line-height: 1.7; margin: 0 0 14px; }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.ok { background: var(--ok-bg); color: var(--ok); }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note b { color: inherit; }
.note .row { margin-top: 10px; }
.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: currentColor; animation: spin 0.8s linear infinite; vertical-align: middle; }
.spinner.big { width: 40px; height: 40px; border-width: 3px; }
.skel { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #13254f 20%, #1e3566 50%, #13254f 80%); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; }

/* fields — 16px+ everywhere so iPhones never zoom in */
.field, .card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .card textarea, .card select, .sheet input, .sheet textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--edge); background: rgba(0, 0, 0, 0.28); color: var(--ink); font-size: 16px; line-height: 1.6; transition: border-color 0.2s, box-shadow 0.2s;
}
textarea.field, .card textarea { resize: none; min-height: 52px; overflow: hidden; }
#idea { overflow: auto; }
.field:focus, .card input:focus, .card textarea:focus, .card select:focus { outline: none; border-color: rgba(143, 178, 255, 0.6); box-shadow: 0 0 0 4px rgba(47, 106, 224, 0.16); }
.field::placeholder, .card input::placeholder, .card textarea::placeholder, .sheet input::placeholder, .sheet textarea::placeholder { color: #a6b4ce; opacity: 1; }
.card select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: 18px 50%, 12px 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 14px; padding-inline-start: 36px; }
label.lbl { display: grid; gap: 6px; color: var(--mute); font-size: 14px; margin-bottom: 12px; }
label.lbl > span { color: var(--mute); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; font-size: 14.5px; line-height: 1.7; cursor: pointer; }
.check input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; accent-color: var(--blue); }

/* choice chips (radio/checkbox styled) */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
/* An answer changes the moment it is tapped (his report 2026-10-01: «takes time to change»): no fade on the
   chosen state, a check mark so the choice reads at once, and the pressed look on touch-down. */
.opt, .opt input { touch-action: manipulation; }
.opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--edge2); background: transparent; font-size: 15px; line-height: 1.5; transition: transform 0.08s; }
.opt input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
/* the check mark always holds its place (hidden until chosen), so choosing never moves or re-wraps the chips */
.opt > span::before { content: ""; flex-shrink: 0; width: 6px; height: 11px; margin: -3px 2px 0; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); visibility: hidden; }
.opt input:checked + span::before { visibility: visible; }
.opt input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.opt:active span { transform: scale(0.97); }
/* «أخرى»: its text box appears only while «أخرى» is the chosen chip (his comment 2026-10-16). */
.q .other-text { display: none; margin-top: 10px; width: 100%; }
.q:has(input[value="__other"]:checked) .other-text { display: block; }
/* night test 2026-10-23 #59: a growing box for a long answer, and a quiet counter that turns red over the limit. */
.q .other-text textarea { display: block; width: 100%; min-height: 76px; }
.other-count { display: block; margin-top: 6px; color: var(--mute); font-size: 13px; }
.other-count.over { color: var(--bad); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.opt .sug { font-size: 11px; padding: 1px 7px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); }
.opt input:checked + span .sug { background: rgba(255, 255, 255, 0.2); color: #fff; }
.q { border: 0; padding: 0; margin: 0 0 22px; }
.q legend { padding: 0; margin-bottom: 10px; font-size: 16.5px; font-weight: 500; }
.q legend b { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline-end: 8px; border-radius: 8px; background: var(--sky-bg); color: var(--sky); font-size: 13px; }
.q .why { margin: -4px 0 10px; color: var(--dim); font-size: 13.5px; }

/* toggles and segmented */
.tog { position: relative; flex-shrink: 0; width: 46px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); transition: background-color 0.25s; }
.tog::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform 0.3s cubic-bezier(0.2, 1.3, 0.4, 1); }
.x { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--edge); cursor: pointer; transition: border-color 0.25s, background-color 0.25s; }
.x input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.x .grow b { display: block; font-size: 15px; font-weight: 500; }
.x .grow small { display: block; color: var(--mute); font-size: 13px; line-height: 1.55; }
.x .price { color: var(--mute); font-size: 14px; white-space: nowrap; }
.x.on { border-color: rgba(143, 178, 255, 0.5); background: rgba(143, 178, 255, 0.07); }
.x input:checked ~ .tog { background: var(--blue); }
.x input:checked ~ .tog::after { transform: translateX(-18px); }
.x input:checked ~ .price { color: var(--ink); }
.x input:focus-visible ~ .tog { outline: 2px solid var(--sky); outline-offset: 2px; }
.x .sug { display: inline-block; margin-inline-start: 6px; padding: 0 7px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); font-size: 11px; font-weight: 500; vertical-align: middle; }
.xlist { display: grid; gap: 10px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 5px; border-radius: 18px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--edge); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; gap: 2px; place-items: center; min-height: 56px; padding: 8px 6px; border-radius: 14px; color: var(--mute); text-align: center; line-height: 1.35; transition: background-color 0.25s, color 0.25s; }
.seg span b { font-size: 15px; font-weight: 500; color: inherit; }
.seg span small { font-size: 12.5px; }
.seg input:checked + span { background: var(--card2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge2); }
.seg input:focus-visible + span { outline: 2px solid var(--sky); }

/* ---------------- the purchase flow ---------------- */
.jhead { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 20; display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 10px 0; background: var(--bg); }
/* Solid bar (#23); the soft edge sits BELOW it, so nothing scrolls visibly under the progress line. */
.jhead::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 14px; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
.jhead .back { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--card2); color: var(--ink); font-size: 20px; }
.jbar { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; }
.jbar i { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.jbar i::after { content: ""; position: absolute; inset: 0; background: var(--sky); transform: scaleX(0); transform-origin: right; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.jbar i.on::after { transform: scaleX(1); }
.jhead .lbl { color: var(--mute); font-size: 13px; white-space: nowrap; }
.flowgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.flowgrid.solo { grid-template-columns: minmax(0, 720px); justify-content: center; }
.side { position: sticky; top: 140px; display: grid; gap: 14px; }
@media (min-width: 901px) {
  .review-grid > .side { grid-column: 2; grid-row: 1; }
  .review-grid > div { grid-column: 1; grid-row: 1; }
}
.dock { position: sticky; bottom: calc(12px + var(--safe-b)); z-index: 25; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 18px; padding: 12px 12px 12px 18px; border-radius: 22px; background: rgba(20, 24, 36, 0.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--edge2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.dock .tot small { display: block; color: var(--mute); font-size: 12.5px; }
.dock .tot strong { font-size: 28px; font-weight: 600; line-height: 1.1; }
.dock .tot span { color: var(--mute); font-size: 14px; }
.dock .mo { color: var(--mute); font-size: 13.5px; }
.dock .mo b { color: var(--ink); font-weight: 500; }
.dock .mo .first { display: block; font-size: 12.5px; margin-top: 2px; }
.dock .btn { margin-inline-start: auto; }
.dock details { flex-basis: 100%; }
/* Open price lines: an opaque sheet that fits the screen — at 0.9 the page's own text ghosted through the lines (customer walk 2026-10-10). */
.dock:has(details[open]) { background: rgb(20, 24, 36); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
.dock summary { cursor: pointer; color: var(--sky); font-size: 13.5px; list-style: none; }
.dock summary::-webkit-details-marker { display: none; }
@media (max-width: 900px) {
  .flowgrid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: static; }
}
@media (max-width: 560px) {
  .dock { border-radius: 20px 20px 0 0; margin: 18px -20px 0; bottom: 0; padding: 12px 16px calc(12px + var(--safe-b)); border-inline: 0; border-bottom: 0; }
  .dock .btn { flex-basis: 100%; min-height: 54px; }
  .rv-dock .mo { flex-basis: 100%; }
  .rv-dock .btn.ghost { flex: 0 0 auto; margin: 0; }
  .rv-dock .btn.ghost:not([hidden]) + .btn { flex: 1 1 0; }
  .jhead .lbl { display: none; }
}

/* the quote */
.quote h3 { margin: 0 0 10px; font-size: 15px; }
.pricelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pricelist li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--mute); }
.pricelist li b { color: var(--ink); font-weight: 500; }
.pricelist .discount b, .pricelist .discount { color: var(--ok); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 4px; padding-top: 12px; border-top: 1px solid var(--edge); }
.total b { font-size: 22px; }
.monthly { display: flex; justify-content: space-between; color: var(--mute); font-size: 14px; margin: 0; }

/* understanding + rows editor */
.reading { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 40px 22px; }
/* The idea as written: its own lines and bullets (live test 2026-10-22 #1), in a box that scrolls when long. */
.reading .idea { width: min(100%, 560px); max-height: 42vh; overflow-y: auto; margin: 0; padding: 14px 18px; border-radius: 18px; background: var(--sky-bg); color: var(--ink); font-size: 15px; line-height: 1.8; text-align: start; white-space: pre-line; overflow-wrap: anywhere; }
.reading .elapsed { font-variant-numeric: tabular-nums; }
.reading .scan { position: relative; width: min(100%, 420px); display: grid; gap: 10px; padding: 18px; border-radius: 20px; border: 1px solid var(--edge); background: rgba(0, 0, 0, 0.25); overflow: hidden; }
.reading .scan::after { content: ""; position: absolute; inset-inline: 0; top: -40%; height: 40%; background: linear-gradient(to bottom, transparent, rgba(143, 178, 255, 0.28), transparent); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { to { top: 100%; } }
.reading .line { font-size: 19px; font-weight: 500; min-height: 34px; }
.reading .line.swap { animation: enter 0.45s both; }
.rows { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.rows { counter-reset: ri; }
/* One card per user / feature: a numbered header, then the NAME and, below it, what it means — each with its
   own label so the second box never reads as a second name (his report 2026-10-01). */
.row-item { counter-increment: ri; position: relative; display: grid; gap: 12px; padding: 14px; border-radius: 18px; border: 1px solid var(--edge); background: rgba(0, 0, 0, 0.2); animation: enter 0.35s both; }
.ri-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ri-n { display: inline-flex; align-items: center; gap: 8px; color: var(--sky); font-size: 13.5px; font-weight: 600; }
.ri-n::before { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--sky-bg); content: counter(ri); font-size: 13px; }
.ri-head .icon-x { position: static; flex-shrink: 0; }
.ri-f { display: grid; gap: 6px; }
.ri-f > span { color: var(--mute); font-size: 13.5px; font-weight: 500; }
.row-item .ri-f input { font-weight: 600; font-size: 17px; }
.row-item textarea { min-height: 70px; }

/* the review, one subject per page */
.rv-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.rv-steps button { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 8px 4px; border: 0; border-radius: 12px; background: transparent; color: var(--dim); font-size: 13px; touch-action: manipulation; }
.rv-steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--edge2); font-size: 13px; font-weight: 600; }
.rv-steps button.done { color: var(--mute); }
.rv-steps button.done b { border-color: transparent; background: var(--sky-bg); color: var(--sky); }
.rv-steps button[aria-current] { color: var(--ink); font-weight: 600; }
.rv-steps button[aria-current] b { border-color: var(--blue); background: var(--blue); color: #fff; }
.rv-pane[hidden] { display: none; }
.rv-pane h1:focus { outline: none; }
.rv-dock .btn.ghost { margin-inline-start: auto; }
.rv-dock .btn.ghost + .btn { margin-inline-start: 0; }
.rv-dock .btn.ghost[hidden] + .btn { margin-inline-start: auto; }
.icon-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--card2); color: var(--mute); font-size: 18px; line-height: 1; }
.icon-x:hover { color: var(--bad); }
.namefield { font-size: 22px !important; font-weight: 600; }

/* included list */
.inc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.inc li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; }
.inc li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center / 11px no-repeat; }
.inc.tick li { opacity: 0; animation: enter 0.4s both; }
.inc li.todo::before { background: none; border: 1.5px solid rgba(143, 178, 255, 0.5); }
/* A 44px thumb target that keeps the list's rhythm (the negative margin gives the height back). */
.inc:has(.link) { row-gap: 20px; }
.inc li .link { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; padding: 0; text-align: start; }
details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold[open] > summary { margin-bottom: 10px; }
/* What the price buys (his comment 2026-10-16: «make the user feel the money is really worth it»): each benefit a
   green-checked row with its plain meaning under it, then the features the base also covers as chips. */
.inc.value { gap: 14px 22px; }
.inc.value li { font-size: 15px; }
.inc.value li::before { width: 22px; height: 22px; margin-top: 1px; background-color: var(--ok, #1f9d61); background-size: 14px; background-position: center; background-repeat: no-repeat; }
.inc.value li b { display: block; font-weight: 700; }
.inc.value li .d { display: block; color: var(--mute); font-size: 13.5px; line-height: 1.6; }
.alsoinc { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--edge2); }
.alsoinc b { display: block; font-size: 14px; margin-bottom: 8px; }
.alsoinc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.alsoinc li { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.x .grow .xnote { display: block; margin-top: 4px; color: var(--warn, #b26a00); }
.pricelist .firstmo small { display: block; font-size: 12px; color: var(--ok); }
.pricelist .firstmo del { color: var(--mute); font-weight: 400; margin-inline-end: 4px; }
.baseprice { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.baseprice strong { font-size: 50px; font-weight: 300; line-height: 1; }
.baseprice div b { display: block; font-size: 16px; }
.baseprice div span { color: var(--mute); font-size: 13.5px; }
@media (max-width: 560px) { .inc { grid-template-columns: minmax(0, 1fr); } .baseprice { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* app lists editor (non-AI path) */
.entity { padding: 16px; border-radius: 18px; border: 1px solid var(--edge); background: rgba(0, 0, 0, 0.2); margin-bottom: 12px; }
.entity-head { display: grid; gap: 8px; margin-bottom: 10px; }
.entity-name { font-weight: 600; }
.share { display: flex; gap: 8px; align-items: center; color: var(--mute); font-size: 14px; }
.share input { width: 20px; height: 20px; accent-color: var(--blue); }
.fields { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.field-row { display: flex; gap: 8px; align-items: center; }
.field-row input { flex: 1; }
.field-row .icon-x { position: static; flex-shrink: 0; }
.add-field { display: flex; gap: 8px; }
.add-field input { flex: 1; }

/* the look (its carousel, accents and questions live in taste.css) */
.ref-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ref-thumb { margin: 10px 0 0; }
.ref-thumb img { display: block; width: 100%; max-width: 280px; max-height: 200px; object-fit: cover; border-radius: 16px; border: 1px solid var(--edge); }
.ref-thumb figcaption { color: var(--dim); font-size: 12.5px; margin-top: 6px; }
.upload-btn { cursor: pointer; }

/* pay */
.cardwrap { perspective: 1200px; display: flex; justify-content: center; margin: 4px 0 18px; }
.pcard { position: relative; width: 330px; max-width: 100%; aspect-ratio: 1.586; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.3, 0.8, 0.3, 1); }
.pcard.flip { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 18px; padding: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; color: #fff; direction: ltr; overflow: hidden; background: radial-gradient(260px 160px at 90% 0%, rgba(255, 255, 255, 0.28), transparent 60%), linear-gradient(135deg, #2f6ae0, #5b3fd9 55%, #2a1b6e); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.face .chip { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f3d38a, #c9a24b); }
.face .no { position: absolute; left: 20px; bottom: 56px; font-size: 20px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.face .nm { position: absolute; left: 20px; bottom: 20px; font-size: 12px; letter-spacing: 0.12em; opacity: 0.9; text-transform: uppercase; max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.face .ex { position: absolute; right: 20px; bottom: 20px; font-size: 12px; opacity: 0.9; }
.face.back { transform: rotateY(180deg); padding: 0; }
.face.back .stripe { height: 42px; margin-top: 26px; background: #071430; }
.face.back .cv { margin: 18px 20px 0 auto; width: 120px; height: 34px; border-radius: 6px; background: #fff; color: #1a1a1a; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; font-weight: 600; letter-spacing: 0.1em; }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cgrid .full { grid-column: 1 / -1; }
.cgrid .lbl { margin: 0; }
.cgrid input { direction: ltr; text-align: left; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.card-form.disabled { opacity: 0.5; pointer-events: none; }
.otp { direction: ltr; text-align: center !important; font-size: 30px !important; font-weight: 600; letter-spacing: 0.6em; padding-inline-start: 0.6em !important; font-variant-numeric: tabular-nums; }
.tel { direction: ltr; text-align: left !important; font-size: 19px !important; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.signin .row .field, .signin .row input { flex: 1; min-width: 180px; }
.after { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.after li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.7; }
.after li i { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 10px; background: var(--sky-bg); color: var(--sky); font-style: normal; font-size: 13px; font-weight: 600; }
.test { margin: 0 0 14px; padding: 9px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 13.5px; }
.paybtn { width: 100%; margin-top: 8px; min-height: 58px; font-size: 17px; }

/* ---------------- your app ---------------- */
.apphead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.appicon { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: 17px; background: var(--ic, #2f6ae0); color: #fff; font-size: 24px; font-weight: 600; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.appicon img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #fff; }
.appicon.sm { width: 48px; height: 48px; border-radius: 15px; font-size: 20px; }
.apphead h1 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.3; }
.apphead p { margin: 0; color: var(--mute); font-size: 14px; }
.build { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 26px; align-items: center; }
.ring { position: relative; width: 180px; height: 180px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .bgc { stroke: rgba(255, 255, 255, 0.08); }
.ring .fg { stroke: var(--sky); stroke-linecap: round; transition: stroke-dashoffset 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ring .c { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.ring .c strong { font-size: 36px; font-weight: 300; line-height: 1; }
.ring .c small { color: var(--mute); font-size: 12.5px; max-width: 120px; line-height: 1.5; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--dim); font-size: 15px; transition: color 0.3s; }
.timeline li::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--edge2); transition: all 0.3s; }
.timeline li.on { color: var(--ink); font-weight: 500; }
.timeline li.on::before { border-color: var(--sky); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.timeline li.wait { color: var(--warn); }
.timeline li.wait::before { border-color: var(--warn); animation: none; background: var(--warn-bg); }
.timeline li.stop { color: var(--warn); font-weight: 500; }
.timeline li.stop::before { border-color: var(--warn); animation: none; background: var(--warn-bg) linear-gradient(var(--warn), var(--warn)) center / 8px 8px no-repeat; }
.timeline li small { color: var(--mute); font-weight: 400; }
.timeline li.done { color: var(--mute); }
.timeline li.done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%230b0d13' stroke-width='3'/%3E%3C/svg%3E") center / 11px no-repeat; }
.eta { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: var(--sky-bg); color: var(--sky); font-size: 14px; }
.eta b { font-size: 16px; color: var(--ink); }
.eta.wait { background: var(--warn-bg); color: var(--warn); }
@media (max-width: 620px) { .build { grid-template-columns: minmax(0, 1fr); justify-items: center; } .build > div:last-child { width: 100%; } }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.bento > .card, .bento > .glance { margin: 0; }
.b6 { grid-column: span 6; } .b4 { grid-column: span 4; } .b3 { grid-column: span 3; } .b2 { grid-column: span 2; }
@media (max-width: 900px) { .b4, .b3, .b2 { grid-column: span 6; } }
.urlbox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--edge); direction: ltr; }
.urlbox a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sky); font-size: 15px; }
.urlbox .btn { direction: rtl; }
.live-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.live-actions .btn { min-height: 52px; padding: 0 6px; font-size: 14.5px; white-space: nowrap; }
.os-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); }
.os-tabs button { border: 0; background: none; color: var(--mute); padding: 7px 16px; border-radius: 9px; font-size: 14px; }
.os-tabs button[aria-selected="true"], .os-tabs button[aria-pressed="true"] { background: var(--card2); color: var(--ink); }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.how li { display: flex; gap: 12px; align-items: center; font-size: 15px; counter-increment: s; }
.how li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 9px; background: var(--sky-bg); color: var(--sky); font-size: 13px; font-weight: 600; }
.usage { margin-bottom: 12px; }
.usage .lab { display: flex; justify-content: space-between; color: var(--mute); font-size: 14px; }
.usage .lab b { color: var(--ink); font-weight: 500; }
.meter { height: 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(270deg, #2f6ae0, #8fb2ff); transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.meter.hi span { background: linear-gradient(270deg, #d98a1e, #f3b25b); }
.meter.full span { background: linear-gradient(270deg, #d9534f, #ff8f8f); }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.kinds button { padding: 12px 8px; border-radius: 14px; border: 1px solid var(--edge); background: transparent; color: var(--ink); text-align: center; font-size: 14.5px; line-height: 1.5; transition: border-color 0.2s, background-color 0.2s; }
.kinds button small { display: block; color: var(--mute); font-size: 12px; }
.kinds button[aria-selected="true"] { border-color: rgba(143, 178, 255, 0.55); background: rgba(143, 178, 255, 0.08); }
@media (max-width: 520px) { .kinds { grid-template-columns: minmax(0, 1fr); } .kinds button { display: flex; justify-content: space-between; align-items: center; text-align: start; } }
.freec { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--mute); font-size: 14px; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--sky); }
.dots i.used { background: rgba(255, 255, 255, 0.14); }
.notices { list-style: none; margin: 0; padding: 0; }
.notices li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--edge); font-size: 14.5px; line-height: 1.6; }
.notices li:last-child { border-bottom: 0; }
.notices li::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; margin-top: 8px; border-radius: 50%; background: var(--sky); }
.notices small { display: block; color: var(--dim); font-size: 12px; }
.notice-preview { max-height: 320px; overflow: auto; margin-top: 12px; padding: 16px; border-radius: 16px; background: #f6f4ef; color: #23202a; font-size: 14px; line-height: 1.8; }
.notice-preview h4 { margin: 12px 0 4px; font-size: 14.5px; }
.notice-preview h4:first-child { margin-top: 0; }
.notice-preview p, .notice-preview ul { margin: 0 0 8px; }
details.notice-preview { max-height: none; }
details.notice-preview summary { cursor: pointer; font-weight: 600; color: #2f6ae0; }
details.notice-preview[open] { max-height: 360px; overflow: auto; }
.inapp { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--warn-bg); color: var(--warn); font-size: 14.5px; line-height: 1.7; margin-bottom: 14px; }
.inapp b { color: var(--ink); }
.inapp .btn { margin-top: 10px; }
.stack-form .actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* my apps */
.applist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.applist a.appcard { display: block; color: var(--ink); height: 100%; margin: 0; transition: border-color 0.2s, transform 0.2s; }
.applist a.appcard:hover { border-color: var(--edge2); transform: translateY(-2px); }
.appcard .row { flex-wrap: nowrap; }
.appcard b { display: block; font-size: 16.5px; }
.appcard .meta { display: block; color: var(--mute); font-size: 13px; direction: ltr; text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.newcard { display: grid; place-items: center; min-height: 96px; border-style: dashed; color: var(--sky); font-weight: 500; }
@media (max-width: 700px) { .applist { grid-template-columns: minmax(0, 1fr); } }
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 20px; }
.empty .big { font-size: 48px; line-height: 1; }

/* account */
.prof { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.avatar { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #2f6ae0, #8fb2ff); font-size: 24px; font-weight: 600; }
.group { margin: 0 0 14px; border-radius: 20px; border: 1px solid var(--edge); background: var(--card); overflow: hidden; }
.group h2 { margin: 0; padding: 14px 16px 4px; color: var(--dim); font-size: 13px; font-weight: 500; }
.li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border-top: 1px solid var(--edge); color: var(--ink); font-size: 15.5px; }
.group h2 + .li { border-top: 0; }
.li svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--sky); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.li .v { margin-inline-start: auto; color: var(--mute); font-size: 14px; }
.li .chev { margin-inline-start: auto; color: var(--dim); }
.li .v + .chev { margin-inline-start: 6px; }
button.li { width: 100%; border: 0; border-top: 1px solid var(--edge); background: none; text-align: start; }

/* sign in */
.narrow { max-width: 520px; margin: 24px auto; }

/* toast */
.toast { position: fixed; z-index: 90; left: 16px; right: 16px; width: auto; bottom: calc(var(--tabs) + var(--tab-b, var(--safe-b)) + 14px); max-width: 460px; margin: 0 auto; padding: 13px 18px; border-radius: 16px; background: #f5f4f0; color: #15131b; font-weight: 500; font-size: 15px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); opacity: 0; transform: translateY(12px); transition: opacity 0.25s, transform 0.3s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.toast.err { background: #ffd9d6; color: #5c1712; }
body.flow .toast { bottom: calc(110px + var(--safe-b)); }
canvas.burst { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.error { padding: 20px; color: var(--bad); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---- public launch (2026-09-27): launch list, legal pages, account deletion ---- */
.pill.soon { background: var(--sky-bg); color: var(--sky); margin-bottom: 10px; }
.launch .inc { margin: 14px 0 18px; }
.launch #launch-actions .pill.ok { font-size: 14px; padding: 5px 14px; }
.launch #launch-actions .row { margin-top: 12px; }
.consent { margin: 14px 0 0; }
.consent a, .legal a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.li.danger-text { width: 100%; color: var(--bad); background: none; border-inline: 0; border-bottom: 0; font: inherit; text-align: start; cursor: pointer; }
.li.danger-text svg { stroke: var(--bad); }
.confirm-del { flex-direction: column; align-items: stretch; background: var(--bad-bg); }
.confirm-del p { margin: 0 0 12px; line-height: 1.8; color: var(--ink); }
.confirm-del .row { gap: 10px; flex-wrap: wrap; }
.legal .card { margin-bottom: 14px; }
.legal .card p { line-height: 1.95; margin: 0 0 10px; }
.legal .lead { font-size: 16.5px; line-height: 1.9; color: var(--ink); margin: 6px 0 20px; }
.footer .links a { margin-inline: 6px; }
.launch #launch-actions > .muted { margin: 10px 0 0; }
.lx-soon { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 14px auto 0; color: var(--mute); font-size: 14px; line-height: 1.8; text-align: center; }
.lx-soon .pill.soon { margin: 0; }

/* ---- a build paused for the owner is impossible to miss (his feedback 2026-09-28) ---- */
.card.need { border-color: rgba(243, 178, 91, 0.55); background: linear-gradient(180deg, rgba(243, 178, 91, 0.13), rgba(243, 178, 91, 0.04)); scroll-margin-top: 84px; }
.card.need .h2 { margin-top: 10px; }
.card.need.soft { border-color: rgba(143, 178, 255, 0.4); background: linear-gradient(180deg, rgba(143, 178, 255, 0.1), rgba(143, 178, 255, 0.03)); }
.pill.pulse { position: relative; padding-inline-start: 22px; }
.pill.pulse::before { content: ""; position: absolute; inset-inline-start: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: currentColor; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.eta.wait { flex-direction: column; align-items: flex-start; gap: 2px; }
.eta.wait span { color: var(--mute); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .pill.pulse::before { animation: none; } }

/* ==== the owner's tabs, redone (his feedback 2026-09-28): one idea per screen, one obvious action ==== */
.ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn .ic { width: 19px; height: 19px; }
.btn.sq { width: 48px; padding: 0; }
.h3 { margin: 18px 0 10px; font-size: 15px; font-weight: 600; color: var(--mute); }
.trunc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.help { margin: -4px 0 14px; color: var(--mute); font-size: 13.5px; line-height: 1.75; }
.lbl-strong { color: var(--ink) !important; font-weight: 600; font-size: 15px; }
.admin-field { padding: 14px 14px 2px; margin: 0 0 14px; border-radius: 16px; border: 1px solid rgba(143, 178, 255, 0.3); background: var(--sky-bg); }
.admin-field .lbl { margin-bottom: 8px; }
.tab-head { margin: 6px 0 16px; }
.tab-head .h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.sec-h { margin: 22px 4px 10px; color: var(--mute); font-size: 14px; font-weight: 500; }
.chev { color: var(--dim); font-size: 18px; line-height: 1; }
/* Drawn arrows (never ‹ ›, which Arabic text mirrors). */
.arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.chev { display: inline-flex; }
.jhead .back .arr { width: 20px; height: 20px; }
.crumb .arr { width: 16px; height: 16px; margin-inline-end: 4px; }
.skel-page { display: grid; gap: 12px; margin-top: 8px; }
.skel.sk-h { width: 46%; height: 30px; border-radius: 10px; }
.skel.sk-card { height: 112px; border-radius: 20px; }
.crumb { display: inline-flex; align-items: center; min-height: 36px; color: var(--mute); font-size: 14px; }

/* the app header */
.app-top { margin-bottom: 6px; }
.app-id { display: flex; align-items: center; gap: 14px; margin: 2px 0 14px; }
.app-id h1 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.app-sub { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--mute); font-size: 13px; min-width: 0; }
.app-sub .host { flex: 1; min-width: 0; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-acts { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 48px; gap: 8px; }
.app-acts .btn { min-height: 50px; padding: 0 12px; }
/* sub-tabs: one row, scrolls sideways if it must, sticks under the top bar */
/* sub-tabs: five equal segments (icon over label) that always fit a phone, stuck under the top bar */
.subtabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 62px); z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin: 16px -20px 16px; padding: 6px 14px 8px; background: rgba(7, 20, 48, 0.97); border-bottom: 1px solid var(--edge); }
.subtabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 54px; padding: 4px 2px; border-radius: 14px; color: var(--mute); font-size: 12px; font-weight: 500; line-height: 1.3; text-align: center; transition: background-color 0.15s, color 0.15s; }
.subtabs a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subtabs a .ic { width: 21px; height: 21px; }
.subtabs a[aria-current="page"] { background: var(--card2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge2); }
.subtabs a[aria-current="page"] .ic { color: var(--sky); }
.subtabs .sdot { position: absolute; top: 6px; inset-inline-start: calc(50% + 8px); }
@media (min-width: 761px) { .subtabs { margin-inline: 0; border-radius: 18px; border: 1px solid var(--edge); } .subtabs a { flex-direction: row; gap: 8px; font-size: 14px; min-height: 46px; } }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); flex-shrink: 0; }
.sdot.ok { background: var(--ok); } .sdot.warn { background: var(--warn); } .sdot.run { background: var(--sky); } .sdot.bad { background: var(--bad); }
.pane > .card:last-child, .pane > .group:last-child { margin-bottom: 0; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink); padding: 14px 16px; }
.banner b { font-weight: 600; }
.banner .chev { margin-inline-start: auto; }
/* the owner's admin area inside their app */
.admin-card .admin-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.admin-card .admin-head .h2 { margin-bottom: 2px; }
.admin-card .admin-head p { margin: 0; }
.admin-ic { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: var(--ok-bg); color: var(--ok); }
.admin-ic .ic { width: 24px; height: 24px; }
.admin-mail { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); font-size: 14px; }
.admin-mail span { color: var(--mute); }
.admin-mail bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.admin-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; padding: 0; }
.admin-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); text-align: center; font-size: 12.5px; line-height: 1.5; }
.admin-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: var(--bg); font-size: 12px; }
.admin-more { margin: 10px 0 0; }
.admin-more a { text-decoration: underline; text-underline-offset: 3px; }
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gl { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 12px; border-radius: 18px; border: 1px solid var(--edge); background: var(--card); color: var(--ink); }
.gl .ic { color: var(--sky); margin-bottom: 6px; }
.gl small { color: var(--mute); font-size: 11.5px; line-height: 1.4; }
.gl b { font-size: 16px; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl span { color: var(--dim); font-size: 11.5px; }
.gl.warn { border-color: rgba(243, 178, 91, 0.5); } .gl.warn .ic { color: var(--warn); }
/* plan */
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan-head small { color: var(--mute); font-size: 13px; }
.plan-head h2 { margin: 0; font-size: 26px; font-weight: 600; }
.tier-opts { display: grid; gap: 8px; margin-bottom: 14px; }
.tier-opt { position: relative; }
.tier-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tier-opt > span { display: grid; gap: 2px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--edge); transition: border-color 0.15s, background-color 0.15s; }
.tier-opt .t-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tier-opt b { font-size: 16px; }
.tier-opt strong { font-size: 20px; font-weight: 600; }
.tier-opt strong small { color: var(--mute); font-size: 13px; font-weight: 400; }
.tier-opt em { color: var(--mute); font-size: 12.5px; font-style: normal; }
.tier-opt .cur { padding: 1px 9px; border-radius: 999px; background: var(--card2); color: var(--mute); font-size: 11.5px; font-style: normal; }
.tier-opt input:checked + span { border-color: var(--sky); background: rgba(143, 178, 255, 0.08); box-shadow: inset 0 0 0 1px var(--sky); }
.tier-opt input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
/* edits: 1 what, 2 describe, 3 confirm */
.ch-step { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 15px; font-weight: 600; }
.ch-step b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sky-bg); color: var(--sky); font-size: 12.5px; }
#changes .kinds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; }
#changes .kinds button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 18px; border: 1px solid var(--edge); background: transparent; color: var(--ink); text-align: start; }
#changes .kinds button[aria-checked="true"] { border-color: var(--sky); background: rgba(143, 178, 255, 0.08); box-shadow: inset 0 0 0 1px var(--sky); }
.k-ic { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; background: var(--sky-bg); color: var(--sky); }
.k-ic .ic { width: 22px; height: 22px; }
.k-txt { flex: 1; min-width: 0; }
.k-txt b { display: block; font-size: 15.5px; font-weight: 600; }
.k-txt small { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.6; }
.k-price { display: inline-block; margin-inline-start: 8px; padding: 1px 8px; border-radius: 999px; background: var(--card2); color: var(--mute); font-size: 11px; font-weight: 500; vertical-align: 2px; }
[data-k="bug"] .k-price { background: var(--ok-bg); color: var(--ok); }
#changes .freec { margin: 0 0 4px; }
.empty-li { color: var(--mute); }
.empty-li::before { display: none; }
.notices li.empty-li::before { display: none; }

/* manage: every app, its status and its ONE next action */
.sumrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.sum { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--edge); color: var(--mute); font-size: 13px; }
.sum b { color: var(--ink); font-size: 22px; font-weight: 600; line-height: 1.3; }
.sum.warn { border-color: rgba(243, 178, 91, 0.45); } .sum.warn b { color: var(--warn); }
.mgr-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; padding: 0; }
.mgr { border-radius: var(--r); border: 1px solid var(--edge); background: linear-gradient(180deg, var(--card2), var(--card)); overflow: hidden; }
.mgr.k-warn { border-color: rgba(243, 178, 91, 0.5); }
.mgr-main { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink); }
.mgr-main b { display: block; font-size: 16.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgr-main .meta { display: block; color: var(--mute); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgr-main .meta.ltr { text-align: right; }
.mgr-next { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--edge); background: rgba(0, 0, 0, 0.18); }
.mgr-why { color: var(--mute); font-size: 13.5px; line-height: 1.6; }
.mgr.k-warn .mgr-next { background: var(--warn-bg); } .mgr.k-warn .mgr-why { color: var(--warn); }
.mgr.k-ok .mgr-why::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 50%; background: var(--ok); vertical-align: middle; }
.mgr-next .btn { flex-shrink: 0; }
a.card.newcard { display: grid; place-items: center; min-height: 64px; margin-top: 4px; border-style: dashed; color: var(--sky); font-weight: 500; }
@media (max-width: 760px) { .mgr-list { grid-template-columns: minmax(0, 1fr); } }

/* my apps: a home screen of the owner's apps */
.home { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 22px 10px; margin: 8px 0 22px; padding: 0; }
.home-app { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); text-align: center; }
.home-app b { max-width: 100%; margin-top: 4px; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-app small { color: var(--mute); font-size: 12px; }
.appicon.lg { position: relative; width: 72px; height: 72px; border-radius: 20px; font-size: 30px; }
.appicon.lg .sdot { position: absolute; top: -3px; inset-inline-end: -3px; width: 14px; height: 14px; border: 3px solid var(--bg); }
.appicon.draft { opacity: 0.55; filter: saturate(0.5); }
.appicon.plus { background: transparent; border: 1.5px dashed rgba(143, 178, 255, 0.5); color: var(--sky); box-shadow: none; font-weight: 300; }
.home-app:active .appicon { transform: scale(0.94); }
.appicon { transition: transform 0.12s; }
.hint-card { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.hint-card b { display: block; }
.hint-card .muted { display: block; }

/* account */
.acct-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; padding: 16px; border-radius: var(--r); border: 1px solid var(--edge); background: radial-gradient(360px 180px at 90% 0%, rgba(47, 106, 224, 0.22), transparent 70%), linear-gradient(180deg, var(--card2), var(--card)); }
.acct-name { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.3; }
.li .grow small, .li-sub { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.6; }
.li .ic { color: var(--sky); }
.li.danger-text .ic { color: var(--bad); }
.li > .grow { min-width: 0; }
.group .notices { padding: 0 16px; }
.group .notices li.read { color: var(--mute); }
.group .notices li.read::before { background: var(--edge2); }
button.li.link { color: var(--sky); font-size: 14.5px; min-height: 48px; }
@media (max-width: 380px) { .glance .gl b { font-size: 14px; } .app-id h1 { font-size: 23px; } }
#owner-fields .row select.grow { flex: 2 1 0; min-width: 0; }
#owner-fields .row input.grow { min-width: 0; }

/* Saved = unmistakable (his report 2026-09-29): green, with a tick and what was kept. */
.ok-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.saved-card { border-color: rgba(95, 212, 168, 0.45); background: linear-gradient(180deg, var(--ok-bg), transparent 80%), var(--card); }
.saved-card .h2 { display: flex; align-items: center; gap: 10px; color: var(--ok); }
.saved-card .h2 .ok-ic { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--ok); color: #0b1a14; }
.saved-list { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; }
.saved-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); }
.saved-list li span { color: var(--mute); }
.saved-list li b { color: var(--ok); font-weight: 600; }
.saved-card.pop { animation: saved-pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes saved-pop { 0% { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(95, 212, 168, 0.5); } 60% { box-shadow: 0 0 0 10px rgba(95, 212, 168, 0); } 100% { transform: none; } }
.saved-note { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.btn.done, .btn.primary.done { background: var(--ok); color: #0b1a14; box-shadow: none; opacity: 1; }
/* The email field turns green the moment it holds a real address. */
.admin-field input:not(:placeholder-shown):valid { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) inset; }
.ret .seg { margin-top: 4px; }
.ret .seg span { min-height: 46px; }
.ret .ret-n { margin-top: 12px; }
.ret .ret-say { margin: 8px 2px 0; }
@media (max-width: 520px) { .ret .seg { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .saved-card.pop { animation: none; } }

/* «أسئلة تطبيقك»: what was asked and which answer was used (2026-09-29). */
.qa-sum > summary .h2 { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.qa-sum > summary .h2::after { content: "+"; color: var(--mute); font-weight: 400; }
.qa-sum[open] > summary .h2::after { content: "−"; }
.qa-list { margin: 4px 0 0; padding: 0; padding-inline-start: 20px; display: grid; gap: 12px; }
.qa-list li { line-height: 1.7; }
.qa-list b { display: block; font-weight: 500; color: var(--mute); font-size: 14px; }
.qa-list span { color: var(--ink); }

/* The edits chat (his ruling 2026-10-11): two toggles, the counter, the conversation, one box at the bottom. */
.chat { display: flex; flex-direction: column; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--edge); }
.seg button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--mute); font-size: 15px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.seg button .ic { width: 20px; height: 20px; flex-shrink: 0; }
.seg button > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.seg button small { font-size: 11.5px; font-weight: 400; opacity: 0.85; }
.seg button[aria-checked="true"] { background: var(--blue); color: #fff; }
.chat-quota { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 24px; color: var(--mute); font-size: 14px; }
.chat-quota b { color: var(--ink); font-weight: 500; }
.chat-quota .meter { flex: 0 0 72px; margin: 0; }
.thread { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 4px 2px; max-height: min(56vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.7; overflow-wrap: anywhere; }
.msg p { margin: 0; }
.msg p + p { margin-top: 4px; color: var(--mute); font-size: 13.5px; }
.msg small { display: block; margin-top: 4px; color: var(--dim); font-size: 11.5px; }
.msg .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg.me { align-self: flex-start; background: var(--blue); color: #fff; border-end-start-radius: 6px; }
.msg.me small { color: rgba(255, 255, 255, 0.7); }
.msg.them { align-self: flex-end; background: var(--card2); border: 1px solid var(--edge); border-end-end-radius: 6px; }
.msg.them.open { border-color: rgba(143, 178, 255, 0.45); }
.msg.them.warn { border-color: rgba(243, 178, 91, 0.4); }
.msg.them.done { opacity: 0.7; }
.msg.typing p { display: flex; align-items: center; gap: 8px; color: var(--mute); }
.composer { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--edge); }
.composer-note { margin: 0; color: var(--mute); font-size: 13px; }
.composer-note.warn { color: var(--warn); }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer-row textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 160px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--edge2); background: rgba(255, 255, 255, 0.04); font-size: 16px; line-height: 1.6; resize: none; }
.composer-row textarea:focus { border-color: var(--sky); outline: none; }
.composer .send { flex-shrink: 0; min-height: 48px; padding: 0 20px; }

/* The app icon step (2026-10-01): the logo shown as it sits on a home screen. */
.icon-row { display: flex; align-items: flex-start; gap: 14px; }
.logo-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin: 18px 0; }
.logo-choice { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 12px; border: 2px solid var(--edge); border-radius: 14px; background: var(--bg); color: inherit; cursor: pointer; font: inherit; font-size: 13px; }
.logo-choice.selected { border-color: var(--sky); }
.logo-choice img { width: 80px; height: 80px; max-width: 100%; object-fit: contain; background: #fff; border-radius: 8px; }
.logo-upload { margin-top: 16px; }
.icon-prev { flex: none; width: 72px; height: 72px; border-radius: 18px; object-fit: contain; background: #fff; border: 1px solid var(--edge); }
.icon-empty { display: grid; place-items: center; background: var(--sky-bg); color: var(--sky); font-size: 28px; font-weight: 700; }
.icon-txt { flex: 1; min-width: 0; }
.icon-wait { animation: icon-wait 1.4s ease-in-out infinite; }
@keyframes icon-wait { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .icon-wait { animation: none; } }
.icon-txt .muted { margin: 0 0 8px; }
.group .icon-row { padding: 6px 0; }
/* The signed-in «تطبيق جديد» page: one roomy box that scrolls instead of clipping (his report 2026-10-02). */
.newidea textarea#idea { height: 176px; min-height: 176px; overflow-y: auto; font-size: 17px; line-height: 1.75; }
.newidea .examples { margin: 0 0 6px; }
@media (max-width: 560px) {
  .jhead { margin-bottom: 16px; padding-block: 6px; }
  .newidea { padding: 18px; }
  .newidea textarea#idea { height: 144px; min-height: 144px; }
}
/* WhatsApp, like SAB1's landing (his ask 2026-10-02): the public number only (house rule 12), never the
   personal one. Above the phone tab bar; hidden inside the purchase journey so it never covers «تابع». */
.wa { position: fixed; z-index: 45; inset-inline-end: 18px; bottom: calc(18px + var(--tabs) + var(--tab-b, var(--safe-b))); display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; border-radius: 999px; background: #087b3a; color: #fff; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.wa:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }
.wa:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wa svg { width: 23px; height: 23px; flex: none; fill: #fff; }
body.lx .view a.wa, .wa { color: #fff; }
body.flow .wa { display: none; }
/* The edits chat has its own box at the bottom: the help button would sit on «أرسل». */
body:has(#changes.chat) .wa { display: none; }
@media (max-width: 520px) { .wa { padding: 13px; gap: 0; } .wa span { display: none; } }
@media (max-width: 960px) {
  body.lx .topbar { gap: 8px; }
  body.lx .wa { position: static; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; gap: 0; box-shadow: none; }
  body.lx .wa span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wa { transition: none; } .wa:hover { transform: none; } }
/* Extras that do not fit this idea, folded away (his report 2026-10-02). */
.othercard { margin-top: 12px; border-top: 1px solid var(--edge); padding-top: 10px; }
.othercard > summary { cursor: pointer; color: var(--sky); font-size: 14.5px; padding: 6px 0; list-style-position: inside; }
.othercard[open] > summary { margin-bottom: 10px; }
.xmore { margin-top: 12px; border-top: 1px solid var(--edge); padding-top: 10px; }
.xmore > summary { cursor: pointer; color: var(--mute); font-size: 14px; padding: 6px 0; list-style-position: inside; }
.xmore[open] > summary { margin-bottom: 8px; }
/* A core extra — the idea's main job — is included and locked (his ruling 2026-10-02). */
.sug.core { background: var(--sky-bg); color: var(--sky); }
.x.core { cursor: default; }
.x .price.incl { color: var(--ok); font-weight: 600; }
/* The monthly plans compared side by side (his ask 2026-10-02): a label column, then one column per plan whose
   rows line up through subgrid; the chosen plan is outlined, the recommended one carries «نوصي بها». */
.plans { display: grid; grid-template-columns: minmax(96px, 1.25fr) repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(4, auto); column-gap: 6px; margin-bottom: 10px; }
.plan-lbls, .plan { grid-row: 1 / span 5; display: grid; grid-template-rows: subgrid; }
.plan-lbls > span { display: flex; align-items: center; padding: 10px 0; color: var(--mute); font-size: 13px; line-height: 1.4; border-top: 1px solid var(--edge); }
.plan-lbls > .pl-h { border-top: 0; }
.plan { position: relative; border-radius: 16px; border: 1px solid var(--edge); background: rgba(0, 0, 0, 0.18); cursor: pointer; touch-action: manipulation; }
.plan input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.plan > span { display: flex; align-items: center; justify-content: center; padding: 10px 4px; border-top: 1px solid var(--edge); text-align: center; font-size: 14px; }
.plan > .pl-h { flex-direction: column; gap: 2px; padding: 12px 4px 10px; border-top: 0; }
.pl-h b { font-size: 15px; font-weight: 600; }
.pl-h .num { font-size: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pl-h small { color: var(--mute); font-size: 12px; }
.pl-h em { margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 11px; font-style: normal; font-weight: 600; }
.plan input:checked + .pl-h { color: #fff; }
.plan:has(input:checked) { border-color: var(--blue); background: rgba(47, 106, 224, 0.12); box-shadow: 0 0 0 2px rgba(47, 106, 224, 0.35); }
.plan input:focus-visible + .pl-h { outline: 2px solid var(--sky); outline-offset: -4px; border-radius: 12px; }
@media (max-width: 420px) { .plans { grid-template-columns: minmax(78px, 1fr) repeat(3, minmax(0, 1fr)); column-gap: 4px; } .plan > span { font-size: 12.5px; } .plan-lbls > span { font-size: 12px; } .pl-h .num { font-size: 14.5px; } }
/* With AI or phone sign-in in the app the plans table gains rows (his ask 2026-10-02): the subgrid spans them all. */
.plans.rows-6 { grid-template-rows: auto repeat(5, auto); }
.plans.rows-6 > .plan-lbls, .plans.rows-6 > .plan { grid-row: 1 / span 6; }
.plans.rows-7 { grid-template-rows: auto repeat(6, auto); }
.plans.rows-7 > .plan-lbls, .plans.rows-7 > .plan { grid-row: 1 / span 7; }
.plans.rows-8 { grid-template-rows: auto repeat(7, auto); }
.plans.rows-8 > .plan-lbls, .plans.rows-8 > .plan { grid-row: 1 / span 8; }
.pl-h em.cur { background: var(--sky-bg); color: var(--sky); }
.pl-h small.free1 { margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 11px; font-weight: 600; }
.tier-form .plans { margin-bottom: 14px; }
/* Balances (his ruling 2026-10-11): one row each — what is left, «اشحن» — and how it is counted folded away. */
.bal { list-style: none; margin: 0; padding: 0; }
.bal-row { padding: 14px 0; border-top: 1px solid var(--edge); }
.bal-row:first-child { border-top: 0; padding-top: 4px; }
.bal-main { display: flex; align-items: center; gap: 12px; }
.bal-main .grow { flex: 1; min-width: 0; }
.bal-main .grow b { display: block; font-weight: 500; }
.bal-v { font-size: 18px; font-weight: 600; }
.bal-row .meter { margin-top: 10px; }
.bal-row .note { margin-top: 10px; }
.pack-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pack-chips[hidden] { display: none; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--sky); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
details.how { margin-top: 6px; border-top: 1px solid var(--edge); padding-top: 10px; color: var(--mute); font-size: 13.5px; line-height: 1.7; }
details.how summary { cursor: pointer; color: var(--sky); font-size: 14px; }
details.how ul { margin: 8px 0 0; padding-inline-start: 18px; }
details.how li + li { margin-top: 6px; }
details.how b { color: var(--ink); font-weight: 500; }
/* The AI quality chooser: «سريع» or «ذكي», each with what 100% of the chosen plan gives. */
.aiq { padding: 14px; border-radius: 18px; border: 1px solid rgba(143, 178, 255, 0.3); background: rgba(143, 178, 255, 0.05); }
.aiq[hidden], form[hidden] { display: none; }
.aiq-h { margin: 0 0 10px; line-height: 1.5; }
.aiq-h b { display: block; font-size: 15px; font-weight: 600; }
.aiq-h small { color: var(--mute); font-size: 13px; }
.aiq-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aiq-o { position: relative; cursor: pointer; touch-action: manipulation; }
.aiq-o input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.aiq-o > span { display: grid; align-content: start; gap: 4px; min-height: 44px; height: 100%; padding: 12px; border-radius: 14px; border: 1px solid var(--edge); background: rgba(0, 0, 0, 0.18); transition: border-color 0.15s, background-color 0.15s; }
.aiq-o b { font-size: 16px; font-weight: 600; }
.aiq-o small { color: var(--mute); font-size: 12.5px; line-height: 1.55; }
.aiq-o em { margin-top: 2px; color: var(--sky); font-size: 13px; font-style: normal; font-weight: 500; line-height: 1.5; }
.aiq-o:has(input:checked) > span { border-color: var(--blue); background: rgba(47, 106, 224, 0.12); box-shadow: 0 0 0 2px rgba(47, 106, 224, 0.35); }
.aiq-o input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.aiq-note { margin: 8px 0 0; color: var(--dim); font-size: 12px; line-height: 1.5; }
/* The live app's AI meter and SMS codes. */
.meters .usage { margin-bottom: 6px; }
.meter.thin { height: 5px; }
.meters .qrow { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--edge); }
.meters .qrow b { font-weight: 600; }
.meters .qrow .big { font-size: 22px; }
.meters .qrow .btn { min-height: 44px; }
.meters form[data-form="aiq"] { margin: 4px 0 10px; }
.meters > .btn.block { margin-top: 8px; min-height: 44px; }
/* The launch price against its list price (his ruling 2026-10-03). */
.fprice { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.fprice del.list { color: var(--mute); font-size: 20px; font-weight: 400; line-height: 1.2; text-decoration-thickness: 2px; margin-bottom: 2px; }

.plans.rows-8 { grid-template-rows: auto repeat(7, auto); }
.plans.rows-8 > .plan-lbls, .plans.rows-8 > .plan { grid-row: 1 / span 8; }

/* The edits chat, clearer (his ask 2026-10-14): a big status on every reply, four steps, and the price before it starts. */
.msg.them { max-width: 92%; }
.msg.them.ok { border-color: rgba(95, 212, 168, 0.45); }
.stage { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--mute); font-size: 13px; font-weight: 600; }
.stage.ok { background: var(--ok-bg); color: var(--ok); }
.stage.run { background: var(--sky-bg); color: var(--sky); }
.stage.open { background: rgba(47, 106, 224, 0.18); color: #fff; }
.stage.warn { background: var(--warn-bg); color: var(--warn); }
.stage.pulse::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: stagePulse 1.4s ease-in-out infinite; }
@keyframes stagePulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .stage.pulse::before { animation: none; } }
.track { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 4px; padding: 0; }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--dim); font-size: 11.5px; text-align: center; line-height: 1.3; }
.track li::before { content: ""; position: absolute; top: 8px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--edge2); z-index: 0; }
.track li:last-child::before { display: none; }
.track li.done::before { background: var(--ok); }
.track i { position: relative; z-index: 1; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--edge2); background: var(--bg2); }
.track li.done { color: var(--ok); }
.track li.done i { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%230b0d13' stroke-width='3'/%3E%3C/svg%3E") center / 10px no-repeat; }
.track li.now { color: var(--ink); font-weight: 600; }
.track li.now i { border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-bg); }
.msg .plan-note { margin-top: 8px; color: var(--mute); font-size: 13.5px; }
.quote { margin-top: 12px; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(143, 178, 255, 0.35); }
.quote-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.quote-top span { color: var(--mute); font-size: 13px; }
.quote-top b { font-size: 26px; font-weight: 600; color: var(--ink); }
.quote-top b.free { color: var(--ok); }
.quote p { margin: 4px 0 0; color: var(--mute); font-size: 13px; }
.quote .row { margin-top: 12px; }
.quote .btn.primary { flex: 1 1 auto; }
/* The plans' «!» (his ask 2026-10-14): one tap explains the line; the answer opens under the table. */
.plan-lbls > span { gap: 6px; }
.tip { position: relative; flex-shrink: 0; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid var(--edge2); background: transparent; color: var(--sky); font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer; }
.tip[aria-expanded="true"] { background: var(--sky); border-color: var(--sky); color: var(--bg); }
.tip:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.tip-out { margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--sky-bg); border: 1px solid rgba(143, 178, 255, 0.3); font-size: 13.5px; line-height: 1.7; }
.tip-out > b { display: block; margin-bottom: 2px; }
.tip-out p { margin: 4px 0 0; color: var(--ink); }
.tip-table { width: 100%; margin: 10px 0 6px; border-collapse: collapse; font-size: 13px; }
.tip-table th, .tip-table td { padding: 7px 6px; border-top: 1px solid var(--edge); text-align: center; }
.tip-table thead th { border-top: 0; color: var(--ink); font-weight: 600; }
.tip-table tbody th { text-align: start; color: var(--mute); font-weight: 400; }
.tip-table td { color: var(--ink); font-weight: 600; }
/* Codex review 2026-10-14: a 44px tap area around the small «!», the chosen line marked, a sheet on phones. */
.tip::after { content: ""; position: absolute; inset: -11px; }
.plan-lbls > span.tip-on { color: var(--sky); }
.tip-close { margin-top: 10px; }
@media (max-width: 560px) {
  .tip-out:not([hidden]) { position: fixed; inset-inline: 12px; bottom: calc(var(--tabs) + 12px + var(--tab-b, var(--safe-b))); z-index: 90; max-height: 62vh; overflow-y: auto; margin: 0; background: var(--bg2); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.55); }
}
/* The chosen chat tab reads clearly (an older .seg span rule greyed its label). */
.seg button[aria-checked="true"] span, .seg button[aria-checked="true"] small { color: #fff; }
/* Seller policies: what the app sells (web/app.js policiesForm). */
.pol-sells { border: 0; padding: 0; margin: 14px 0; min-width: 0; }
.pol-sells legend { padding: 0; margin-bottom: 4px; font-size: 14px; color: var(--mute); }
.pol-sells .check { margin: 8px 0; }

/* The design step's «these are concepts» note sits ABOVE the phones (his comment 2026-10-16). */
.tconcept { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(243, 178, 91, 0.35); background: var(--warn-bg); }
.tconcept b { color: var(--warn); font-size: 14px; }
.tconcept span { font-size: 13.5px; line-height: 1.7; }
.tchosen .inc.value { grid-template-columns: minmax(0, 1fr); }
.tedit { margin: 14px 0 0; font-size: 14px; }
.lx-tag .lx-store { display: block; margin-top: 6px; font-size: 12.5px; color: var(--mute); }
/* From the idea (ticked) vs the AI's suggestions (unticked, below) — his ruling 2026-10-17. */
.xsub { margin: 18px 0 8px; font-size: 15px; font-weight: 700; }
.xsub small { font-weight: 400; color: var(--mute); font-size: 12.5px; margin-inline-start: 6px; }
.sug.soft { background: transparent; border: 1px solid var(--edge2); color: var(--mute); }
.editnotes { margin: 0; padding-inline-start: 18px; font-size: 13.5px; line-height: 1.7; }
/* The bill's small print as icon rows (his report 2026-10-18). */
.qnotes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.qnotes li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--mute); }
.qnotes li::before { content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%235fd4a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.qnotes li.tip::before { background: var(--sky-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8v5M12 16h.01' fill='none' stroke='%238fb2ff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.logo-confirm { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
/* The request ledger (live test 2026-10-22): one ask per row, its one tag, and how / what to switch on. */
.lglist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--edge); background: var(--card2); }
.lg-said { font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.lg-tag { font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 6px; white-space: nowrap; background: var(--ok-bg); color: var(--ok); }
.lg-how { grid-column: 1 / -1; color: var(--mute); font-size: 13px; line-height: 1.5; }
.lg-other_way .lg-tag { background: var(--sky-bg); color: var(--sky); }
.lg-not_yet .lg-tag, .lg-off .lg-tag, .lg-removed .lg-tag { background: var(--warn-bg); color: var(--warn); }
.lg-not_offered .lg-tag { background: var(--bad-bg); color: var(--bad); }
.alsoinc.notin li .d { display: block; color: var(--mute); font-size: 12.5px; }
/* The price dialog before any saved-card charge (confirmCharge in app.js; live test 2026-10-22, #36). */
.pay-confirm { width: min(380px, calc(100vw - 32px)); padding: 22px; border-radius: var(--r); border: 1px solid var(--edge2); background: var(--bg2); color: var(--ink); text-align: center; direction: rtl; font-family: var(--font); }
.pay-confirm::backdrop { background: rgba(3, 8, 22, 0.72); }
.pay-confirm .amt { font-size: 34px; font-weight: 700; margin: 6px 0 4px; }
.pay-confirm p { margin: 0 0 8px; }
.pay-confirm .row { display: flex; gap: 10px; margin-top: 16px; }
.pay-confirm .row .btn { flex: 1 1 0; }
.later-note { margin-top: 10px; }

/* ---- post-payment pages (live test 2026-10-22: #29 #33 #38 #42 #43 #48) ---- */
/* «بعد الدفع»: a numbered sequence, one short line each (#29). */
.steps-n { list-style: none; counter-reset: sn; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps-n li { counter-increment: sn; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 15px; line-height: 1.6; }
.steps-n li::before { content: counter(sn); display: inline-grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 9px; background: var(--sky-bg); color: var(--sky); font-size: 14px; font-weight: 700; }
.steps-n li b { font-weight: 700; }
.steps-n li span { color: var(--mute); font-size: 13.5px; }
/* The saved card of another app (#42). */
.card-pick { display: grid; gap: 8px; margin: 0 0 6px; padding: 0; border: 0; }
.card-new[hidden] { display: none; }
/* The build page's one status (#43): three plain facts. */
.status-card .h2 { margin-top: 10px; }
.facts { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.facts li::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%230b0d13' stroke-width='3'/%3E%3C/svg%3E") center / 12px no-repeat; }
.facts li.todo { color: var(--warn); }
.facts li.todo::before { background: var(--warn-bg); border: 1.5px solid var(--warn); }
/* A build stopped on our side (#66): the step it stopped at, marked as stopped — never a spinner. */
.facts li.stop { color: var(--warn); }
.facts li.stop::before { background: var(--warn-bg) linear-gradient(var(--warn), var(--warn)) center / 8px 8px no-repeat; border: 1.5px solid var(--warn); }
/* A step past its usual time says so (#48). */
.eta.late { flex-direction: column; align-items: flex-start; gap: 2px; background: var(--warn-bg); color: var(--warn); }
.eta.late b { color: var(--warn); font-size: 15px; }
.eta.late span { color: var(--mute); font-size: 13px; }
/* Autosave line under the owner's details (#43). */
.save-state { min-height: 22px; margin: 4px 0 10px; color: var(--mute); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.save-state.ok { color: var(--ok); }
.save-state.warn { color: var(--warn); }
.save-state .ok-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; }
/* The logo being designed (#33): moving placeholders, never an empty box. */
.logo-skels { grid-column: 1 / -1; display: flex; gap: 10px; }
.logo-skel { display: block; width: 84px; height: 84px; border-radius: 14px; background: linear-gradient(90deg, #13254f 20%, #1e3566 50%, #13254f 80%); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; }
.icon-empty .spinner { width: 26px; height: 26px; border-width: 3px; }
.logo-choice.chosen { border-color: var(--ok); }
@media (prefers-reduced-motion: reduce) { .logo-skel { animation: none; } }
