/* Montaj design system, built on the Higgsfield system:
   near-black #0F1113 page, #23262B tiles, black hero panels with hairlines, glossy lime #DBFF14 -> #F5FF15 buttons with a
   3D lip, hot pink #ED1E79 badges, Almarai (the brand's Arabic face) with Space Grotesk / Inter for Latin letters and digits. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/lib/inter/Inter-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/lib/inter/Inter-Bold.ttf"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/lib/inter/Inter-ExtraBold.ttf"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/lib/space-grotesk/SpaceGrotesk-Regular.ttf"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/lib/space-grotesk/SpaceGrotesk-Bold.ttf"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("/assets/fonts/Almarai-Light.ttf"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("/assets/fonts/Almarai-Regular.ttf"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("/assets/fonts/Almarai-Bold.ttf"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("/assets/fonts/Almarai-ExtraBold.ttf"); font-weight: 800 900; font-display: swap; }

:root {
  --bg: #0f1113; --bg-2: #131518; --bg-3: #17191c; --black: #000;
  --panel: #23262b; --panel-2: #2a2e33; --panel-3: #32363c; --field: #16181b;
  --glass: rgba(255,255,255,.05); --glass-2: rgba(255,255,255,.08); --glass-3: rgba(255,255,255,.12);
  --stroke: rgba(255,255,255,.06); --stroke-2: rgba(255,255,255,.1); --stroke-3: rgba(255,255,255,.2);
  /* muted/faint pass WCAG AA (4.5:1) on the #23262B tiles as well as on the page; dim is only for quiet nav links */
  --text: #f7f7f8; --muted: #a1a2a4; --faint: #92959a; --dim: rgba(255,255,255,.6);
  --lime: #dbff14; --lime-2: #f5ff15; --lime-ink: #1a1a1a; --lime-lip: #8ea70c;
  --pink: #ed1e79; --pink-2: #ff4f9a; --blue: #2f6bff;
  /* old names kept so every page keeps working */
  --sand: var(--lime); --sand-2: var(--lime-2); --ember: var(--pink); --ember-2: var(--pink-2); --red: var(--pink); --red-2: var(--pink-2); --graphite: var(--panel);
  --ok: #4ade80; --warn: #fbbf24; --danger: #ff5d5d; --info: #7cc7ff;
  --on-accent: var(--lime-ink);
  --sheen: radial-gradient(125% 90% at 50% -32%, rgba(255,255,255,.88) 0%, rgba(255,255,255,.48) 40%, rgba(255,255,255,.16) 54%, rgba(255,255,255,0) 55.5%),
    radial-gradient(70% 60% at 50% 135%, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 70%);
  --grad: var(--sheen), linear-gradient(180deg, rgba(219,255,20,.98) 0%, rgba(245,255,21,.98) 100%);
  --grad-text: linear-gradient(90deg, #dbff14, #f5ff15);
  --grad-line: linear-gradient(90deg, #dbff14, #f5ff15);
  --grad-soft: rgba(219,255,20,.08);
  --lip: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.38), inset 0 6px 10px -6px rgba(255,255,255,.6), inset 0 -3px 0 0 var(--lime-lip), 0 6px 4px rgba(0,0,0,.25), 0 32px 24px rgba(0,0,0,.15), 0 0 22px rgba(219,255,20,.18);
  --glow: var(--lip);
  --shadow: 0 24px 60px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.3);
  --r: 16px; --r-md: 12px; --r-sm: 10px; --r-xs: 8px;
  --sans: "Inter", "Almarai", system-ui, sans-serif;
  --display: "Space Grotesk", "Almarai", system-ui, sans-serif;
  --latin: "Inter", "Almarai", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1); --ease-io: cubic-bezier(.7, 0, .2, 1);
  --gutter: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); font-family: var(--sans); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video, canvas, svg { display: block; max-width: 100%; }
::selection { background: rgba(219,255,20,.3); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.latin { font-family: var(--latin); }
.display { font-family: var(--display); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.grad-text { color: var(--lime); }
.lime { color: var(--lime); } .pink { color: var(--pink); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* the old decorative backgrounds are retired: the page is flat near-black, like Higgsfield */
.aurora, .grain, .gridfloor { display: none !important; }

/* ---------- surfaces ---------- */
.glass { position: relative; background: var(--panel); border: 0; border-radius: var(--r-md); }
.glass.flat { background: var(--panel); }
.panel-black { background: #000; border: 1px solid var(--stroke); border-radius: 24px; }
.edge, .spot { position: relative; }
.spot { transition: background .2s, transform .3s var(--ease); }
a.glass:hover, button.glass:hover, .glass.spot:hover { background: var(--panel-2); }
.tile { background: var(--panel); border-radius: var(--r-md); padding: 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--stroke-2); background: var(--glass); color: var(--text); font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap;
  background-color: rgba(255,255,255,.07);
  background-image: radial-gradient(125% 90% at 50% -32%, rgba(255,255,255,.24) 0%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.02) 54%, rgba(255,255,255,0) 55.5%), radial-gradient(70% 60% at 50% 135%, rgba(255,255,255,.1), rgba(255,255,255,0) 70%);
  border-color: rgba(255,255,255,.14); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.05), 0 6px 18px rgba(0,0,0,.3); transition: background .15s, color .15s, transform .12s, filter .15s, box-shadow .15s; }
.btn:hover { background-color: rgba(255,255,255,.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn .i { width: 18px; height: 18px; }
.btn.primary { background: var(--grad); color: var(--lime-ink); border: 0; box-shadow: var(--lip); font-weight: 600; backdrop-filter: blur(10px) saturate(170%); -webkit-backdrop-filter: blur(10px) saturate(170%); }
.btn.primary:hover { filter: brightness(1.05); background: var(--grad); }
.btn.primary:active { box-shadow: inset 0 -1px 0 0 var(--lime-lip), 0 2px 3px rgba(0,0,0,.25); transform: translateY(2px); }
.btn.white { background: var(--sheen), linear-gradient(180deg, rgba(255,255,255,.98), rgba(236,236,236,.96)); color: var(--lime-ink); border: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.6), inset 0 -3px 0 0 rgba(0,0,0,.32), 0 6px 4px rgba(0,0,0,.25), 0 32px 24px rgba(0,0,0,.15); }
.btn.white:hover { filter: brightness(1.04); }
.btn.soft { background: rgba(219,255,20,.1); color: var(--lime); border: 0; box-shadow: none; }
.btn.soft:hover { background: rgba(219,255,20,.16); }
.btn.pink { background: var(--sheen), rgba(237,30,121,.97); color: #fff; border: 0; backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 0 0 1px rgba(255,255,255,.25), inset 0 -3px 0 0 #9c0f4d, 0 6px 4px rgba(0,0,0,.25); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: rgba(255,255,255,.6); }
.btn.ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn.danger { color: #ff8db8; }
.btn.danger:hover { background: rgba(237,30,121,.12); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.lg { height: 48px; padding: 0 20px; font-size: 16px; border-radius: 12px; letter-spacing: -.2px; }
.btn.xl { height: 56px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn.block { width: 100%; }

/* ---------- form controls ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.input, .select, .textarea { width: 100%; background: var(--field); border: 1px solid var(--stroke-2); border-radius: 10px; padding: 11px 13px; outline: none; color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--stroke-3); }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(219,255,20,.55); box-shadow: 0 0 0 3px rgba(219,255,20,.12); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: 18px 52%, 23px 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 36px; }
.hint { font-size: 12.5px; color: var(--faint); line-height: 1.6; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; min-height: 36px; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.06); background: var(--glass); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); backdrop-filter: blur(10px); color: rgba(255,255,255,.7); cursor: pointer;
  font-weight: 600; font-size: 13px; transition: .15s; }
.seg button:hover { color: #fff; background: var(--glass-2); }
.seg button.on { color: var(--lime); background: rgba(219,255,20,.1); border-color: rgba(219,255,20,.45); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; padding: 6px 0; }
.switch input { display: none; }
.switch i { width: 40px; height: 24px; border-radius: 24px; background: var(--panel-3); position: relative; flex: none; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--lime); }
.switch input:checked + i::after { transform: translateX(-16px); background: var(--lime-ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--glass); border: 0; font-size: 12px; color: rgba(255,255,255,.75); font-weight: 600; white-space: nowrap; }
.chip.hot { color: var(--lime-ink); background: var(--lime); }
.chip.ok { color: var(--ok); background: rgba(74,222,128,.1); }
.chip.warn { color: var(--warn); background: rgba(251,191,36,.1); }
.chip.bad { color: #ff7a9f; background: rgba(237,30,121,.12); }
.chip.new, .tag-new { color: var(--lime); background: transparent; padding: 0 4px; height: auto; font-size: 12px; font-weight: 600; position: relative; }
.chip.blue { color: #fff; background: var(--blue); height: 18px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-family: var(--display); }
.chip.pink, .badge-off { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-family: var(--display); font-weight: 700; font-size: 12px; color: #fff;
  background: #e0186f; transform: skewX(-10deg); font-style: italic; letter-spacing: -.3px; text-transform: uppercase;
  unicode-bidi: plaintext; }   /* a badge reads in its own direction: "−20%" stays "−20%" on an Arabic page, "40 هدية" stays Arabic */
.kbd { font-family: var(--mono); font-size: 11.5px; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--stroke-2); background: var(--glass); }

/* ---------- layout & type ---------- */
.wrap { width: calc(100% - 2 * var(--gutter)); max-width: 1408px; margin-inline: auto; }
.row { display: flex; gap: 12px; align-items: center; } .row.wrap-x { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.h1 { font-family: var(--display); font-size: clamp(36px, 5.4vw, 72px); line-height: 1.12; font-weight: 800; margin: 0; text-transform: uppercase; }
.h2 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.18; font-weight: 700; margin: 0; text-transform: uppercase; }
.h3 { font-family: var(--display); font-size: 18px; line-height: 1.4; font-weight: 700; margin: 0; }
.cap { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
.sec-head-l { display: grid; gap: 4px; margin-bottom: 18px; }
.sec-title-lime, .title-lime { font-family: var(--display); color: var(--lime); font-weight: 700; text-transform: uppercase; }
.sec-title-lime { font-size: 28px; line-height: 1.25; margin: 0; }
.sec-sub { color: var(--muted); font-size: 14px; margin: 0; }
.lead { font-size: clamp(15px, 1.4vw, 18px); color: rgba(255,255,255,.75); line-height: 1.75; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 5px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--text);
  border: 1px solid rgba(219,255,20,.5); background: linear-gradient(to left, rgba(255,255,255,.1), rgba(255,255,255,.05)); box-shadow: 6px 2px 20px rgba(0,0,0,.7); }
.eyebrow b { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); font-size: 11.5px; font-weight: 700; }
.eyebrow b:empty { width: 8px; height: 8px; padding: 0; margin-inline: 7px 2px; }
.sep { height: 1px; background: var(--stroke); border: 0; margin: 24px 0; }
.card { padding: 22px; }
.pill-glow { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 5px; border-radius: 99px; font-weight: 600; font-size: 13px;
  border: 1px solid rgba(219,255,20,.5); background: linear-gradient(to left, rgba(255,255,255,.1), rgba(255,255,255,.05)); }
.pill-glow .n { padding: 2px 8px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); font-size: 11.5px; }
.dot-new { position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--bg); }

/* entrance: a short rise when content appears (never leaves anything invisible) */
.reveal { animation: rise .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }
.skeleton { background: linear-gradient(90deg, #1a1c1f, #23262b, #1a1c1f); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- top banner bar ---------- */
.topbanner { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 8px 44px; font-size: 13.5px; font-weight: 600; color: #fff;
  background: var(--pink); text-align: center; }
.topbanner b { font-family: var(--display); text-transform: uppercase; }
.topbanner.glow { background: linear-gradient(90deg, #a3104f, var(--pink), #a3104f); }
.topbanner.dark { background: #000; border-bottom: 1px solid var(--stroke); }
.topbanner.light { background: #fff; color: var(--lime-ink); }
.topbanner a.cta { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 8px; background: var(--lime); color: var(--lime-ink); font-size: 12.5px; font-weight: 700; box-shadow: inset 0 -2px 0 var(--lime-lip); }
.topbanner .x { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; opacity: .7; color: inherit; }
.topbanner .count { font-family: var(--display); background: rgba(0,0,0,.25); padding: 1px 8px; border-radius: 6px; }

/* ---------- toast / modal ---------- */
#toasts { position: fixed; z-index: 220; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--stroke-2); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; animation: tin .3s var(--ease); pointer-events: auto; }
.toast.bad { border-color: rgba(237,30,121,.5); } .toast.ok .i { color: var(--lime); } .toast.bad .i { color: var(--pink); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.modal-bg { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { width: min(620px, 100%); max-height: 90vh; overflow: auto; padding: 24px; background: var(--bg-3); border: 1px solid var(--stroke-2); border-radius: 16px; box-shadow: var(--shadow); animation: pop .3s var(--ease); }
.modal.wide { width: min(980px, 100%); }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .i { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--faint); }
.progress { height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: inherit; transition: width .6s var(--ease); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: start; color: var(--muted); font-weight: 600; font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--stroke); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--stroke); vertical-align: middle; }
table.t tr:hover td { background: rgba(255,255,255,.02); }

/* ---------- shared nav (site + app): slim bar, quiet grey links, glass and lime buttons ---------- */
.hnav { position: sticky; top: 0; z-index: 60; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 var(--gutter); background: var(--bg); }
.hnav.solid { box-shadow: 0 1px 0 var(--stroke); }
.hnav .brandmark { flex: none; }
.hnav .links { display: flex; align-items: center; gap: 2px; margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.hnav .links::-webkit-scrollbar { display: none; }
.hnav .links a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--dim); white-space: nowrap; transition: color .15s, background .15s; }
.hnav .links a:hover { color: #fff; }
.hnav .links a.on { color: #fff; background: var(--glass); }
.hnav .end { display: flex; align-items: center; gap: 8px; flex: none; }
.brandmark { display: flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.2px; }
.brandmark .m { width: 28px; height: 28px; margin: 2px; display: block; flex: none; }
.price-btn { position: relative; }
.price-btn .badge-off { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%) skewX(-10deg); white-space: nowrap; font-size: 10.5px; height: 15px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: rgba(255,255,255,.6); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

/* a slow wall of real outputs behind black hero panels */
.wall { position: absolute; inset: -20% -10%; z-index: -2; display: grid; grid-template-columns: repeat(var(--wc, 8), minmax(0, 1fr)); gap: 14px; transform: rotate(-9deg); opacity: .55; pointer-events: none; }
.wall .col { display: grid; gap: 14px; align-content: start; animation: wall 60s linear infinite; }
.wall .col:nth-child(even) { animation-direction: reverse; animation-duration: 75s; }
.wall img { width: 100%; border-radius: 10px; }
@keyframes wall { to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall .col { animation: none; } }

/* mobile bottom bar with the lime centre action */
.bbar { display: none; }
@media (max-width: 900px) {
  .bbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--stroke); }
  .bbar a { display: grid; justify-items: center; gap: 3px; color: var(--dim); font-size: 11.5px; font-weight: 500; padding: 4px 0; }
  .bbar a .i { width: 23px; height: 23px; }
  .bbar a.on { color: #fff; }
  .bbar a.plus { align-self: center; }
  .bbar a.plus .i { width: 56px; height: 42px; padding: 10px 17px; border-radius: 12px; background: var(--grad); color: var(--lime-ink); box-shadow: var(--lip); stroke-width: 2.2; }
  .bbar a.plus > span:last-child { display: none; }
}
/* style memory: what we learned */
ul.learned { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
ul.learned li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: rgba(255,255,255,.85); }
ul.learned li .i { color: var(--lime); width: 16px; height: 16px; flex: none; margin-top: 2px; }
/* client review links (owner side) */
.rv-all { display: grid; gap: 10px; margin-top: 14px; }
.rv { padding: 14px; border-radius: 14px; background: var(--panel-2); }
.rv-list { display: grid; gap: 6px; margin-top: 10px; }
.rv-c { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.rv-c.me { margin-inline-start: 24px; background: rgba(219,255,20,.05); }
.rv-c > div { flex: 1; min-width: 0; } .rv-c b { font-size: 13px; } .rv-c p { margin: 2px 0 0; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; color: rgba(255,255,255,.85); }
.rv-c.done p { text-decoration: line-through; opacity: .5; }
.rv-c .at { flex: none; height: 24px; padding: 0 8px; border: 0; border-radius: 7px; background: rgba(219,255,20,.12); color: var(--lime); font-family: var(--mono, monospace); font-size: 12px; cursor: pointer; direction: ltr; }
/* the visual studio (carousels and covers) */
.modal.wide:has(.studio) { width: min(1180px, 100%); }
.studio { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 340px); gap: 16px; align-items: start; }
.studio:not(:has(.st-thumbs)) { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
@media (max-width: 860px) { .studio, .studio:not(:has(.st-thumbs)) { grid-template-columns: 1fr; } .st-thumbs { flex-direction: row !important; overflow-x: auto; max-height: none !important; } }
.st-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow: auto; padding-inline-end: 4px; }
.st-th { position: relative; flex: none; width: 88px; border-radius: 10px; overflow: hidden; cursor: pointer; outline: 2px solid transparent; outline-offset: -2px; background: var(--panel-2); }
.st-th.on { outline-color: var(--lime); }
.st-th img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.st-th > span { position: absolute; top: 4px; inset-inline-start: 4px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.6); border-radius: 6px; padding: 1px 6px; }
.st-mv { position: absolute; bottom: 4px; inset-inline-end: 4px; display: flex; gap: 3px; }
.st-mv button { width: 22px; height: 22px; border: 0; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 10px; cursor: pointer; }
.st-prev { position: relative; width: 100%; max-height: 72vh; border-radius: 14px; overflow: hidden; background: #000; display: grid; place-items: center; }
.st-prev img { width: 100%; height: 100%; object-fit: contain; display: block; }
.st-grab { position: absolute; inset: 0; cursor: ns-resize; }
.st-grab[data-dy]::after { content: attr(data-dy); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--lime); color: var(--lime-ink); font-weight: 800; padding: 8px 14px; border-radius: 99px; direction: ltr; }
.st-spin { position: absolute; top: 10px; inset-inline-start: 10px; display: none; background: rgba(0,0,0,.6); border-radius: 99px; padding: 6px; }
.st-prev.busy .st-spin { display: flex; } .st-prev.busy img { opacity: .75; transition: opacity .2s; }
.st-side { display: grid; gap: 4px; max-height: 72vh; overflow: auto; padding-inline-end: 4px; }
.st-photos, .st-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.st-tpls { max-height: 260px; overflow: auto; }
.st-photos button, .st-tpls button, .st-add { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--panel-2); cursor: pointer; aspect-ratio: 1; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.st-photos button.on, .st-tpls button.on { border-color: var(--lime); }
.st-photos img, .st-tpls img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-photos button span { position: absolute; bottom: 3px; inset-inline-start: 3px; font-size: 10.5px; background: rgba(0,0,0,.6); border-radius: 5px; padding: 0 5px; color: #fff; }
.st-add { gap: 4px; align-content: center; }
/* language toggle */
.lang-tg { font-family: "Almarai", "Inter", sans-serif; font-weight: 800; min-width: 38px; }
html[lang=en] .lang-tg { font-size: 15px; }

/* smart checks */
.smart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 14px; }
.smart-grid .sc { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); font-size: 13.5px; line-height: 1.6; }
.smart-grid .sc .i { width: 16px; height: 16px; flex: none; }
.smart-grid .sc.ok .i { color: var(--ok); } .smart-grid .sc.no .i { color: var(--warn); }
.sm-list { margin: 6px 0 0; padding-inline-start: 18px; line-height: 1.8; }
.sm-issues { display: grid; gap: 8px; margin-top: 14px; }
.sm-issues .si { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); font-size: 13.5px; line-height: 1.7; }
.sm-issues .at { flex: none; height: 26px; padding: 0 9px; border: 0; border-radius: 8px; background: rgba(219,255,20,.12); color: var(--lime); font-family: var(--mono, monospace); font-size: 12.5px; cursor: pointer; direction: ltr; }

/* optional add-ons in the new-video form */
.addons { display: grid; gap: 8px; }
.addon { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid transparent; cursor: pointer; transition: border-color .15s, background .15s; }
.addon.on { border-color: color-mix(in srgb, var(--lime) 60%, transparent); background: color-mix(in srgb, var(--lime) 7%, var(--panel-2)); }
.addon input { accent-color: var(--lime); width: 18px; height: 18px; flex: none; }
.addon .ad-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); flex: none; }
.addon .ad-ic .i { width: 18px; height: 18px; color: var(--lime); }
.addon .ad-tx { flex: 1; min-width: 0; display: grid; gap: 3px; } .addon .ad-tx b { font-size: 14px; } .addon .ad-tx span { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.addon .ad-pr { flex: none; text-align: center; font-weight: 800; color: var(--lime); font-size: 15px; display: grid; line-height: 1.3; }
.addon .ad-pr small { font-size: 10.5px; color: var(--muted); font-weight: 600; } .addon .ad-pr em { font-style: normal; color: var(--ok); font-size: 13px; }

/* ---------------------------------------------------------------- Arabic typography
   Arabic letters are taller than Latin ones and carry dots and marks above and below the line, so Arabic text needs
   more air between lines than the Latin defaults above; letter-spacing breaks the joins between Arabic letters. */
html[lang=ar] body { line-height: 1.8; }
html[lang=ar] body *:not(.latin):not(code):not(kbd) { letter-spacing: normal !important; }
html[lang=ar] .h1, html[lang=ar] .hero .h1 { line-height: 1.4; }
html[lang=ar] .h2, html[lang=ar] .hero-banner h2, html[lang=ar] .chrome, html[lang=ar] .offer .big { line-height: 1.42; }
html[lang=ar] .h3, html[lang=ar] .ph h1, html[lang=ar] .sec-title-lime, html[lang=ar] .pcard-l h3 { line-height: 1.55; }
html[lang=ar] .lead { line-height: 1.95; }
html[lang=ar] p, html[lang=ar] .hint, html[lang=ar] .desc, html[lang=ar] .note, html[lang=ar] .sec-sub, html[lang=ar] li { line-height: 1.85; }
html[lang=ar] .panel h3 { margin-bottom: 10px; line-height: 1.5; }
html[lang=ar] .panel .desc { margin: 0 0 18px; }
html[lang=ar] .ph p { margin-top: 8px; }
html[lang=ar] .field > label { display: block; margin-bottom: 8px; line-height: 1.6; }
html[lang=ar] .note { padding: 14px 16px; }
html[lang=ar] .note > div > b, html[lang=ar] .note > span > b { display: inline-block; margin-bottom: 2px; }
html[lang=ar] .sec-head-l .sec-sub, html[lang=ar] .sec-row .sec-sub { margin-top: 8px; }
html[lang=ar] .guard p, html[lang=ar] .tl span { line-height: 1.75; }
html[lang=ar] h4 { line-height: 1.55; }

/* ---------------------------------------------------------------- AI touches */
:is(.glass, .pcard-l, .tl, .guard, .plan, .addon, .facts .fact)[data-lit] {
  background-image: radial-gradient(380px circle at var(--mx) var(--my), rgba(219,255,20,.075), transparent 62%); }
.xray { margin-top: 18px; }
.xr { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 22px; }
@media (max-width: 860px) { .xr { grid-template-columns: 1fr; } }
.xr-stage { position: relative; aspect-ratio: 2 / 3; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06); }
.xr-stage img, .xr-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xr-stage img { transition: opacity .5s, filter .5s; } .xr-stage.dark img { opacity: 0; }
.xr-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(219,255,20,.05), transparent 30%, transparent 70%, rgba(0,0,0,.35)); }
.xr-hud { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; font: 600 11px "Space Grotesk", Inter, monospace; color: var(--lime); letter-spacing: .08em;
  background: rgba(0,0,0,.55); border: 1px solid rgba(219,255,20,.25); border-radius: 10px; padding: 7px 10px; backdrop-filter: blur(6px); }
.xr-modes { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: var(--panel); width: max-content; max-width: 100%; }
.xr-modes button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: .2s; }
.xr-modes button.on { background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 8px 24px rgba(219,255,20,.25); }
.xr-desc { margin: 18px 0 22px; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.9; min-height: 3.8em; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.facts .fact { padding: 16px 18px; border-radius: 16px; background: var(--panel); display: grid; gap: 6px; }
.facts .fact b { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; font-size: 34px; line-height: 1.1; color: #fff; direction: ltr; text-align: start;
  background: linear-gradient(180deg, #fff 30%, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts .fact span { color: var(--muted); font-size: 13.5px; line-height: 1.75; }
/* the AI log under the progress bar */
.ai-log { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #08090a; border: 1px solid rgba(219,255,20,.14);
  font: 500 12.5px "Space Grotesk", Inter, monospace; display: grid; gap: 6px; position: relative; overflow: hidden; }
.ai-log::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(219,255,20,.06), transparent); transform: translateX(-100%); animation: scanx 2.8s linear infinite; }
.ai-log > div { display: flex; gap: 12px; color: rgba(255,255,255,.5); line-height: 1.7; }
.ai-log > div.now { color: #fff; } .ai-log > div.now .t { color: var(--lime); }
.ai-log .t { direction: ltr; flex: none; color: rgba(255,255,255,.35); } .ai-log .m { font-family: var(--sans); font-size: 13.5px; }
.ai-log .cur { width: 8px; height: 15px; background: var(--lime); display: block; animation: blink 1s steps(2) infinite; }
@keyframes scanx { to { transform: translateX(100%); } }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ai-log::before, .ai-log .cur { animation: none; } }

/* ---------------------------------------------------------------- visual audit fixes (22 Nov)
   spacing, wrapping, direction and tap sizes only; nothing here changes what a control does */
/* the credit price next to a sentence: icon and number on one line (an svg is display:block site-wide) */
.cost { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; vertical-align: middle; font-weight: 600; color: rgba(255,255,255,.82); }
.cost .i { width: 14px; height: 14px; color: var(--lime); }
/* a label with a link in it ("كلمة المرور … نسيت كلمة المرور؟"): the link sits at the other end, not glued to the label */
html[lang=ar] .field > label:has(> a) { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
/* numbers, money and signs in tables keep their order on an Arabic page (+9 / −1, −30, −$0.12) */
html[dir=rtl] table.t td.latin { direction: ltr; text-align: right; }
html[dir=rtl] table.t td.latin > span { unicode-bidi: isolate; }
/* toasts: as wide as their sentence (not half the screen), and above the phone's bottom bar instead of on it */
#toasts { width: max-content; max-width: calc(100vw - 32px); }
.toast { line-height: 1.7; }
@media (max-width: 900px) { #toasts { bottom: calc(88px + env(safe-area-inset-bottom)); } }
/* the x-ray block on the landing page must not push the page wider than a phone */
@media (max-width: 860px) { .xr { grid-template-columns: minmax(0, 1fr); } .xr-modes { width: auto; } }
/* phones: every control at least 40px tall, so a thumb hits it the first time */
@media (max-width: 620px) {
  .btn.sm { height: 40px; padding: 0 14px; }
  .btn.sm.icon { width: 40px; }
  .seg button { min-height: 40px; }
  .switch { min-height: 44px; }
  .hnav .icon-btn, .hnav .avatar { width: 40px; height: 40px; }
  .hnav .credits { height: 40px; }
  .hnav .end { gap: 6px; }
  .rv-c .at, .sm-issues .at { height: 32px; min-width: 48px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }        /* numbers two by two, not six screen-wide tiles */
  .facts .fact { padding: 14px; } .facts .fact b { font-size: 28px; }
}
