/* مقطع — ليمون (Lime)
   White, black, a faint grid, and acid lime only for the moment of action or "now".
   One typeface: Noto Kufi Arabic. Hairlines, no shadows, 8/12/16 corners. */

@font-face { font-family: 'Noto Kufi Arabic'; src: url('type/noto-kufi-arabic-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Noto Kufi Arabic'; src: url('type/noto-kufi-arabic-arabic-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Noto Kufi Arabic'; src: url('type/noto-kufi-arabic-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Noto Kufi Arabic'; src: url('type/noto-kufi-arabic-arabic-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Noto Kufi Arabic'; src: url('type/noto-kufi-arabic-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF; }
@font-face { font-family: 'Noto Kufi Arabic'; src: url('type/noto-kufi-arabic-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF; }
@font-face { font-family: 'Noto Kufi Arabic'; src: url('type/noto-kufi-arabic-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF; }
@font-face { font-family: 'Noto Kufi Arabic'; src: url('type/noto-kufi-arabic-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF; }

:root {
  --bg: #FFFFFF;
  --grid: #F2F2F2;
  --surface: #FFFFFF;
  --soft: #F4F4F4;
  --line: #E6E6E6;
  --ink: #0A0A0A;
  --ink-2: #262626;
  --muted: #6B6B6B;
  --panel: #0A0A0A;
  --panel-line: #2A2A2A;
  --on-panel-muted: #A3A3A3;
  --lime: #CFF24A;
  --lime-deep: #B8DD2E;
  --seg: #EDEDED;
  --good: #15803D;
  --warn: #8A5300;
  --warn-soft: #FFF4DC;
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --font: 'Noto Kufi Arabic', Tahoma, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body {
  color: var(--ink); font: 400 14px/1.75 var(--font); -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.num { font-feature-settings: 'tnum'; direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.aurora :focus-visible, .dock :focus-visible, .job:focus-visible { outline-color: var(--lime); }
h1, h2, h3 { font-weight: 800; margin: 0; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: 28px; line-height: 1.45; }
h2 { font-size: 20px; line-height: 1.5; }
h3 { font-size: 16px; line-height: 1.5; }
.sub { color: var(--muted); margin-top: 2px; }

/* ============ shell ============ */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; border-inline-end: 1px solid var(--line); background: var(--surface); }
.logo-row { display: flex; align-items: center; gap: 10px; padding: 2px 10px 22px; font-weight: 800; font-size: 22px; line-height: 1; }
.logo-row img { width: 32px; height: 32px; }
.side .label { font-size: 11px; font-weight: 500; color: var(--muted); padding: 16px 12px 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-2); border: 0; background: none; text-align: start; color: var(--ink-2); font-weight: 500; }
.nav-item svg { width: 18px; height: 18px; opacity: .7; }
.nav-item:hover { background: var(--soft); }
.nav-item.on { background: var(--ink); color: #fff; font-weight: 700; }
.nav-item.on svg { opacity: 1; color: var(--lime); }
.nav-item .count { margin-inline-start: auto; font-size: 11px; font-weight: 800; background: var(--lime); color: var(--ink); border-radius: var(--r-1); padding: 0 6px; }
.side .spacer { flex: 1; }
.biz-card { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: 10px; text-align: start; width: 100%; }
.avatar { width: 36px; height: 36px; border-radius: var(--r-2); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 800; }
.avatar img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.biz-card small { display: block; color: var(--muted); font-size: 11px; }
.mode { font-size: 12px; line-height: 1.6; padding: 8px 10px; border-radius: var(--r-2); background: var(--warn-soft); color: var(--warn); margin: 0 0 6px; }

.main { padding: 32px 36px 120px; max-width: 1180px; width: 100%; min-width: 0; }
.topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.mtop, .dock, .mjobs { display: none; }

/* ============ controls ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--r-3); padding: 10px 20px; font-weight: 700; background: var(--surface); color: var(--ink); white-space: nowrap; transition: background .12s, transform .12s; }
.btn:hover { background: var(--soft); }
.btn:active { transform: translateY(1px); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-2); }
.btn.dark:disabled { background: #D4D4D4; border-color: #D4D4D4; color: #fff; cursor: not-allowed; }
.btn.big { padding: 13px 26px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
/* the lime "now" square inside the main action */
.btn .orb { width: 9px; height: 9px; border-radius: 2px; background: var(--lime); flex: none; }
.btn.dark:disabled .orb { background: #fff; }
.aurora .btn.dark, .dock .btn.dark { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.aurora .btn.dark .orb, .dock .btn.dark .orb { background: var(--ink); }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }

.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: var(--r-2); padding: 7px 16px; color: var(--muted); font-weight: 500; }
.seg button.on { background: var(--ink); color: #fff; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-2); padding: 7px 14px; font-weight: 500; font-size: 13px; }
.chip:hover { border-color: #BDBDBD; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-3); padding: 12px 14px; font-size: 15px; outline: none; transition: border-color .12s; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime); }
textarea.input { resize: vertical; min-height: 84px; }
.search { position: relative; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; opacity: .5; }
.search .input { padding-inline-start: 44px; }

/* ============ surfaces ============ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-4); padding: 20px; }
/* panels: black (default), lime, grey, white, and black with a grid for "surprise" */
.aurora { position: relative; border-radius: var(--r-4); padding: 24px; overflow: hidden; background: var(--panel); color: #fff; }
.aurora small, .aurora .muted { color: var(--on-panel-muted); }
.au-violet, .au-ink { background: var(--panel); color: #fff; }
.au-coral { background: var(--lime); color: var(--ink); }
.au-coral small, .au-coral .muted { color: #3A4A10; }
.au-sky { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.au-sky small, .au-sky .muted { color: var(--muted); }
.au-mint { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.au-mint small, .au-mint .muted { color: var(--muted); }
.au-ink { background-color: var(--panel); background-image: linear-gradient(#1C1C1C 1px, transparent 1px), linear-gradient(90deg, #1C1C1C 1px, transparent 1px); background-size: 24px 24px; }
.aurora .corner { position: absolute; top: 14px; inset-inline-end: 14px; width: 32px; height: 32px; border-radius: var(--r-2); border: 1px solid var(--panel-line); display: grid; place-items: center; }
.au-coral .corner, .au-mint .corner, .au-sky .corner { border-color: rgba(10,10,10,.2); }
.brand-banner { color: #fff; }

/* the motif: segments, like frames on a strip */
.sg { display: grid; gap: 4px; width: 100%; direction: rtl; }
.sg-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.sg-row span { height: 14px; border-radius: 3px; background: var(--seg); }
.sg-row:first-child span { height: 20px; }
.sg-row span.on { background: var(--ink); }
.sg-row span.hd { background: var(--lime); }
.aurora .sg-row span { background: #262626; }
.aurora .sg-row span.on { background: #fff; }
.aurora .sg-row span.hd { background: var(--lime); }
.au-coral .sg-row span { background: rgba(10,10,10,.12); }
.au-coral .sg-row span.on { background: var(--ink); }
.au-coral .sg-row span.hd { background: #fff; }
.au-sky .sg-row span, .au-mint .sg-row span { background: var(--seg); }
.au-sky .sg-row span.on, .au-mint .sg-row span.on { background: var(--ink); }

/* ============ onboarding ============ */
.onb { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; max-width: 760px; margin: 0 auto; padding: 24px 20px 28px; }
.onb-top { display: flex; align-items: center; justify-content: space-between; }
.steps-dots { display: flex; gap: 4px; direction: rtl; }
.steps-dots i { width: 22px; height: 6px; border-radius: 2px; background: var(--seg); transition: .25s; }
.steps-dots i.on { width: 40px; background: var(--ink); box-shadow: inset -10px 0 0 var(--lime); }
.steps-dots i.done { background: var(--ink); }
.onb-body { padding: 36px 0 20px; display: grid; align-content: start; gap: 22px; animation: rise .35s ease; }
.onb-body h1 { font-size: 32px; }
.onb-foot { display: flex; gap: 10px; justify-content: space-between; align-items: center; position: sticky; bottom: 0; padding-top: 12px; background: linear-gradient(transparent, var(--bg) 30%); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cat { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: 11px; font-weight: 500; text-align: start; transition: border-color .12s; }
.cat .em { font-size: 19px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-2); background: var(--soft); flex: none; }
.cat:hover { border-color: var(--ink); }
.cat.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.cat.on .em { background: var(--lime); }

.logo-zone { display: grid; place-items: center; gap: 10px; min-height: 220px; text-align: center; cursor: pointer; border: 1.5px dashed #3A3A3A; }
.logo-zone .plus { width: 54px; height: 54px; border-radius: var(--r-3); background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 28px; }
.brand-split { display: grid; grid-template-columns: 1fr 240px; gap: 18px; align-items: stretch; }
.logo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-4); display: grid; place-items: center; padding: 24px; min-height: 160px; background-image: repeating-conic-gradient(#F4F4F4 0 25%, #fff 0 50%); background-size: 16px 16px; }
.logo-card img { max-width: 100%; max-height: 120px; object-fit: contain; }
.swatches { display: flex; gap: 10px; }
.swatch { position: relative; flex: 1; border-radius: var(--r-3); height: 84px; border: 1px solid rgba(0,0,0,.08); display: flex; align-items: flex-end; padding: 10px 12px; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.swatch .hex { direction: ltr; font-size: 11px; opacity: .85; display: block; }
.palettes { display: flex; flex-wrap: wrap; gap: 10px; }
.palette { display: flex; border-radius: var(--r-2); overflow: hidden; border: 2px solid transparent; padding: 0; background: none; outline: 1px solid var(--line); }
.palette.on { border-color: var(--ink); }
.palette span { width: 30px; height: 30px; }
.from-logo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: 3px 10px; }
.from-logo i { width: 8px; height: 8px; border-radius: 2px; background: var(--good); }

/* live mini reel preview in the CUSTOMER's colours (not مقطع's) */
.phone { aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; position: relative; border: 6px solid var(--ink); background: var(--b1); max-width: 100%; }
.phone .stripe { position: absolute; left: -30%; width: 160%; transform: rotate(-14deg); }
.phone .s1 { top: 14%; height: 4%; background: var(--b2); }
.phone .s2 { top: 30%; height: 9%; background: rgba(255,255,255,.06); }
.phone .s3 { top: 58%; height: 3.5%; background: var(--b2); }
.phone .s4 { top: 86%; height: 3%; background: var(--b2); }
.phone .plogo { position: absolute; top: 4%; right: 6%; z-index: 2; }
.phone .plogo img { display: block; height: auto; width: auto; max-height: 40px; max-width: 128px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.phone .plogo.ls-white img { filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.phone .plogo.ls-card { background: #fff; padding: 6px 11px; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
.phone .plogo.ls-card img { max-height: 30px; max-width: 104px; filter: none; }
.seg-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.phone .ppill { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-6deg); background: var(--b2); color: #fff; font-weight: 700; padding: 6px 16px; clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); white-space: nowrap; font-size: 14px; }
.phone .phead { position: absolute; top: 50%; width: 100%; text-align: center; color: #fff; font-weight: 800; font-size: 17px; line-height: 1.5; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.phone .phead b { color: var(--b3); }
.phone .ptag { position: absolute; top: 70%; left: 50%; transform: translateX(-50%); background: var(--b2); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; direction: ltr; white-space: nowrap; }

.reading { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.reading i { width: 8px; height: 8px; border-radius: 2px; background: var(--ink); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .2; } }

/* ============ new reel ============ */
.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.grid-2 > * { min-width: 0; }
.drop { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; cursor: pointer; transition: transform .15s; }
.drop:hover { transform: translateY(-1px); }
.drop.over { outline: 3px solid var(--lime); outline-offset: -3px; }
.drop .big { font-weight: 800; font-size: 30px; line-height: 1.45; }
.drop .big br + * , .drop .big { }
.clip-rows { display: grid; gap: 6px; margin-top: 12px; }
.clip-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: 8px 12px; }
.clip-row .ic { width: 34px; height: 34px; border-radius: var(--r-2); background: var(--soft); display: grid; place-items: center; flex: none; }
.clip-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.clip-row button { border: 0; background: none; color: var(--muted); font-size: 18px; width: 32px; height: 32px; border-radius: var(--r-2); }
.side-cards { display: grid; gap: 16px; align-content: start; }
.mini-stat { min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; }
.mini-stat .val { font-weight: 800; font-size: 44px; line-height: 1; }
.tips { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tips li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.tips li i { width: 22px; height: 22px; border-radius: var(--r-1); background: var(--ink); color: var(--lime); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; flex: none; margin-top: 2px; }
.mode-pick { display: grid; gap: 8px; margin-top: 14px; justify-items: start; }
.mode-hint { font-size: 13px; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.thumb { border-radius: var(--r-3); overflow: hidden; background: var(--ink); aspect-ratio: 9 / 16; position: relative; border: 0; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb span { position: absolute; bottom: 0; left: 0; right: 0; padding: 26px 10px 10px; color: #fff; font-size: 12px; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.75)); text-align: start; line-height: 1.6; }
.thumb.empty { display: grid; place-items: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); font-size: 12px; }
.thumb-pct { position: absolute; top: 10px; inset-inline-start: 10px; color: var(--ink); background: var(--lime); border-radius: var(--r-1); padding: 0 6px; font-weight: 800; font-size: 14px; }

/* ============ project ============ */
.progress-hero { min-height: 250px; display: grid; align-content: space-between; gap: 24px; }
.progress-hero .msg { font-weight: 800; font-size: 28px; line-height: 1.45; }
.progress-hero .pct { font-weight: 800; font-size: 56px; line-height: 1; color: var(--lime); }
.progress-hero > div:last-child { display: flex; align-items: flex-end; gap: 20px; }
.progress-hero .sg { flex: 1; }
.track { display: flex; flex-wrap: wrap; gap: 6px; }
.track span { font-size: 12px; padding: 4px 10px; border-radius: var(--r-1); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.track span.done { color: var(--ink); }
.track span.on { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 800; }
.review-list { display: grid; gap: 12px; }
.review-item { display: flex; gap: 12px; align-items: flex-start; }
.review-item .st { width: 26px; height: 26px; border-radius: var(--r-1); display: grid; place-items: center; flex: none; color: #fff; font-size: 13px; font-weight: 800; }
.review-item ul { margin: 6px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: 13px; }

.footage-card { display: flex; gap: 14px; align-items: flex-start; }
.footage-card .st { width: 38px; height: 38px; border-radius: var(--r-2); display: grid; place-items: center; flex: none; color: #fff; font-size: 18px; }
.concepts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 14px; }
.concept { text-align: start; min-height: 290px; display: flex; flex-direction: column; gap: 12px; transition: transform .15s; }
.concept.aurora:not(.au-sky):not(.au-mint) { border: 0; }
.concept:hover { transform: translateY(-2px); }
.concept .tag { align-self: flex-start; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: var(--r-1); background: #262626; color: #fff; }
.au-coral .tag { background: var(--ink); color: var(--lime); }
.au-sky .tag, .au-mint .tag { background: var(--ink); color: #fff; }
.au-ink .tag { background: var(--lime); color: var(--ink); }
.concept h3 { font-size: 22px; line-height: 1.45; }
.concept .idea { font-size: 13px; }
.concept .hook { font-size: 13px; border-inline-start: 3px solid var(--lime); padding: 2px 10px; }
.au-coral .hook, .au-sky .hook, .au-mint .hook { border-color: var(--ink); }
.concept ol { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; counter-reset: b; }
.concept ol li { display: flex; gap: 8px; }
.concept ol li::before { counter-increment: b; content: counter(b); width: 18px; height: 18px; border-radius: 3px; background: #262626; display: grid; place-items: center; font-size: 10px; flex: none; margin-top: 3px; }
.au-coral ol li::before, .au-sky ol li::before, .au-mint ol li::before { background: rgba(10,10,10,.1); }
.concept .pick { align-self: flex-start; background: var(--lime); color: var(--ink); border-radius: var(--r-2); padding: 7px 16px; font-weight: 800; font-size: 13px; }
.au-coral .pick, .au-sky .pick, .au-mint .pick { background: var(--ink); color: #fff; }

.result { display: grid; grid-template-columns: 360px 1fr; gap: 22px; align-items: start; }
.result > * { min-width: 0; }
.player { border-radius: 18px; overflow: hidden; background: #000; border: 8px solid var(--ink); }
.player video { width: 100%; aspect-ratio: 9 / 16; display: block; background: #000; }
.stack { display: grid; gap: 14px; }
.caption-box { white-space: pre-wrap; background: var(--soft); border-radius: var(--r-3); padding: 14px 16px; font-size: 13px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.change { display: flex; gap: 8px; margin-top: 10px; }
.change .input { padding: 10px 14px; font-size: 14px; }
.error-card { background: #FFF1F0; border-color: #F5C2BE; color: #8A1C14; }

.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.lesson { display: flex; gap: 12px; align-items: center; }
.lesson p { flex: 1; margin: 0; unicode-bidi: plaintext; }
.pill-st { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-1); background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill-st.ok { background: var(--lime); color: var(--ink); }

.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r-3); font-size: 13px; z-index: 50; animation: rise .25s ease; display: flex; align-items: center; gap: 10px; }
.toast::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--lime); flex: none; }

/* running reels, visible from every page */
.jobs { display: grid; gap: 8px; margin-bottom: 8px; }
.jobs:empty, .mjobs:empty { display: none; }
.job { display: grid; gap: 6px; text-align: start; border: 0; border-radius: var(--r-3); padding: 12px 14px; color: #fff; background: var(--panel); }
.job.ready { background: var(--lime); color: var(--ink); }
.job-top { display: flex; justify-content: space-between; font-weight: 800; font-size: 13px; }
.job-msg { font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-bar { height: 6px; border-radius: 2px; background: #262626; overflow: hidden; }
.job-bar i { display: block; height: 100%; background: var(--lime); transition: width .5s; }
@media (prefers-reduced-motion: no-preference) { .job.ready { animation: nudge 1.6s ease-in-out infinite; } }
@keyframes nudge { 50% { transform: translateY(-2px); } }

/* ============ phone ============ */
@media (max-width: 860px) {
  .shell { display: block; }
  .side { display: none; }
  .mtop { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
  .mtop .logo-row { padding: 0; font-size: 20px; }
  .main { padding: 18px 16px 140px; }
  h1 { font-size: 24px; }
  .topline { flex-direction: column; align-items: stretch; }
  .topline.row-keep { flex-direction: row; align-items: center; }
  .grid-2, .result, .brand-split { grid-template-columns: 1fr; }
  .brand-split .phone { max-width: 220px; justify-self: center; width: 100%; }
  .drop { min-height: 240px; }
  .drop .big { font-size: 25px; }
  .progress-hero .msg { font-size: 22px; }
  .progress-hero .pct { font-size: 44px; }
  .player { max-width: 360px; justify-self: center; width: 100%; }
  .dock { display: grid; grid-template-columns: 44px 1fr 44px 44px; align-items: center; gap: 6px; position: fixed; left: 12px; right: 12px; bottom: 14px; background: var(--panel); padding: 6px; border-radius: var(--r-4); z-index: 20; }
  .dock .icon-btn { border: 0; background: transparent; color: #fff; }
  .dock .icon-btn.on { background: #262626; color: var(--lime); }
  .dock .btn { padding: 10px 14px; border-radius: var(--r-3); }
  .mjobs { display: grid; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 19; }
  .onb-body h1 { font-size: 26px; }
  .cats { grid-template-columns: 1fr 1fr; }
  .mode-pick .seg { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .mode-pick .seg button { flex: 1; padding: 7px 6px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* manual editor */
.ed-h { margin: 18px 0 8px; font-size: 15px; }
.ed-caps { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; padding-inline-end: 4px; }
.ed-cap { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; }
.ed-cap .input { padding: 8px 12px; font-size: 14px; }
.ed-scenes { display: grid; gap: 8px; }
.ed-scene { display: grid; grid-template-columns: 64px 1fr; gap: 12px; border: 1px solid var(--line); border-radius: var(--r-3); padding: 8px; }
.ed-thumb { position: relative; width: 64px; aspect-ratio: 9 / 16; border-radius: var(--r-2); overflow: hidden; background: var(--ink); }
.ed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ed-thumb span { position: absolute; top: 4px; inset-inline-start: 4px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; border-radius: 3px; padding: 0 5px; }
.ed-body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.ed-top { display: flex; align-items: center; gap: 10px; }
.ed-top strong { font-size: 13px; }
.ed-del { margin-inline-start: auto; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.ed-trim { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.ed-trim select { margin-inline-start: 4px; border: 1px solid var(--line); border-radius: var(--r-1); padding: 2px 4px; background: var(--surface); }
.ed-text { padding: 7px 12px; font-size: 13px; }
.btn > svg { width: 16px; height: 16px; flex: none; }

/* reel font picker */
.fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.font-opt { display: grid; gap: 2px; justify-items: center; padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); cursor: pointer; text-align: center; }
.font-opt b { font-size: 17px; line-height: 1.6; font-weight: 400; white-space: nowrap; }
.font-opt small { font-size: 11px; color: var(--muted); }
.font-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.font-opt.on small { color: var(--ink); font-weight: 700; }

/* accounts, billing, admin */
.auth { min-height: 100vh; display: grid; place-content: center; padding: 24px 16px; }
.auth-card { width: min(420px, calc(100vw - 32px)); padding: 28px; }
.auth-card h1 { font-size: 26px; }
.credit-pill { margin-inline-start: auto; font-size: 11px; font-weight: 800; background: var(--lime); color: var(--ink); border-radius: var(--r-1); padding: 0 6px; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pack { display: grid; gap: 4px; justify-items: start; text-align: start; cursor: pointer; transition: border-color .12s, transform .12s; }
.pack:hover { border-color: var(--ink); transform: translateY(-1px); }
.pack .big-n { font-size: 40px; font-weight: 800; line-height: 1.1; }
.pack .price { margin-top: 6px; font-weight: 800; background: var(--ink); color: #fff; border-radius: var(--r-2); padding: 2px 10px; }
.tag-sm { font-size: 11px; font-weight: 800; background: var(--lime); border-radius: var(--r-1); padding: 0 8px; }
.ledger { display: grid; gap: 8px; }
.lg { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.lg:last-child { border-bottom: 0; }
.lg b.plus { color: var(--good); }
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats4 .val { font-size: 30px; font-weight: 800; line-height: 1.3; }
.table-wrap { overflow-x: auto; padding: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: start; color: var(--muted); font-weight: 500; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
@media (max-width: 860px) { .stats4 { grid-template-columns: 1fr 1fr; } }
.mobile-only { display: none; } @media (max-width: 860px) { .mobile-only { display: block; } .mobile-only .nav-item { width: 100%; } }

/* publishing */
.pub-form { display: grid; gap: 12px; margin-top: 14px; }
.pub-plat { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pub-plat input { accent-color: var(--ink); }
.posts { display: grid; gap: 8px; margin-top: 14px; }
.post { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 8px; }

/* legal + help */
.legal { font-size: 12px; text-align: center; margin-top: 10px; }
.legal a, .legal-links a { color: var(--ink); }
.legal-links { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.help-link { font-size: 13px; color: var(--muted); text-decoration: none; }

/* ---- always moving while a reel is being made, so it never looks frozen ---- */
.working { --sync: 0s; }
.working .sg-row span.hd { animation: hd-breathe 1.4s ease-in-out infinite !important; animation-delay: var(--sync) !important; }
@keyframes hd-breathe { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(207,242,74,0); } 50% { opacity: .55; box-shadow: 0 0 14px 2px rgba(207,242,74,.55); } }
/* a light wave running along the segments still to come */
.working .sg-row span:not(.on):not(.hd) { animation: seg-wave 2.4s ease-in-out infinite; }
@keyframes seg-wave { 0%, 100% { background: #262626; } 50% { background: #3a3a3a; } }
.working .sg-row span:nth-child(1) { animation-delay: calc(var(--sync) - 2.3s); }
.working .sg-row span:nth-child(2) { animation-delay: calc(var(--sync) - 2.2s); }
.working .sg-row span:nth-child(3) { animation-delay: calc(var(--sync) - 2.1s); }
.working .sg-row span:nth-child(4) { animation-delay: calc(var(--sync) - 2.0s); }
.working .sg-row span:nth-child(5) { animation-delay: calc(var(--sync) - 1.9s); }
.working .sg-row span:nth-child(6) { animation-delay: calc(var(--sync) - 1.8s); }
.working .sg-row span:nth-child(7) { animation-delay: calc(var(--sync) - 1.7s); }
.working .sg-row span:nth-child(8) { animation-delay: calc(var(--sync) - 1.6s); }
.working .sg-row span:nth-child(9) { animation-delay: calc(var(--sync) - 1.5s); }
.working .sg-row span:nth-child(10) { animation-delay: calc(var(--sync) - 1.4s); }
.working .sg-row span:nth-child(11) { animation-delay: calc(var(--sync) - 1.3s); }
.working .sg-row span:nth-child(12) { animation-delay: calc(var(--sync) - 1.2s); }
.working .sg-row span:nth-child(13) { animation-delay: calc(var(--sync) - 1.1s); }
.working .sg-row span:nth-child(14) { animation-delay: calc(var(--sync) - 1.0s); }
.working .sg-row span:nth-child(15) { animation-delay: calc(var(--sync) - 0.9s); }
.working .sg-row span:nth-child(16) { animation-delay: calc(var(--sync) - 0.8s); }
.working .sg-row span:nth-child(17) { animation-delay: calc(var(--sync) - 0.7s); }
.working .sg-row span:nth-child(18) { animation-delay: calc(var(--sync) - 0.6s); }
.working .sg-row span:nth-child(19) { animation-delay: calc(var(--sync) - 0.5s); }
.working .sg-row span:nth-child(20) { animation-delay: calc(var(--sync) - 0.4s); }
.working .sg-row span:nth-child(21) { animation-delay: calc(var(--sync) - 0.3s); }
.working .sg-row span:nth-child(22) { animation-delay: calc(var(--sync) - 0.2s); }
.working .sg-row span:nth-child(23) { animation-delay: calc(var(--sync) - 0.1s); }
.working .sg-row span:nth-child(24) { animation-delay: calc(var(--sync) - 0.0s); }
.working .corner.spin svg { animation: spark-spin 6s linear infinite; animation-delay: var(--sync); }
@keyframes spark-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.working .ell i { font-style: normal; animation: ell 1.2s infinite; opacity: .15; }
.working .ell i:nth-child(2) { animation-delay: .2s; }
.working .ell i:nth-child(3) { animation-delay: .4s; }
@keyframes ell { 0%, 100% { opacity: .15; } 40% { opacity: 1; } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-inline-end: 8px; vertical-align: middle; animation: live 1.6s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(207,242,74,.7); } 100% { box-shadow: 0 0 0 9px rgba(207,242,74,0); } }
.job-bar.working i { position: relative; overflow: hidden; }
.job-bar.working i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); transform: translateX(-100%); animation: sheen 1.6s ease-in-out infinite; animation-delay: var(--sync); }
@keyframes sheen { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .working *, .working *::after, .live-dot { animation-duration: 6s !important; } }

.idea-box { margin-top: 14px; }
.idea-box textarea, .own-idea textarea { resize: vertical; min-height: 84px; line-height: 1.7; font: inherit; }
.own-idea { margin-top: 16px; display: grid; gap: 10px; }
.own-idea .btn { justify-self: start; }

.brand-style { display: grid; gap: 12px; }
.brand-style .bs-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.brand-style .bs-dot { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); display: inline-block; }
.brand-style .btn.dark { justify-self: start; }

/* ---- packages ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan { position: relative; display: grid; gap: 8px; align-content: start; }
.plan.popular { border: 2px solid var(--ink); }
.plan-badge { position: absolute; top: -12px; inset-inline-start: 16px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.plan-name { font-size: 22px; font-weight: 800; }
.plan-price { font-size: 34px; font-weight: 800; line-height: 1.1; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-blurb { font-size: 13px; line-height: 1.7; }
.plan-feats { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 6px; font-size: 13px; }
.plan-feats li { display: flex; gap: 8px; align-items: baseline; }
.plan-feats li i { font-style: normal; font-weight: 800; width: 14px; }
.plan-feats li.no { color: var(--muted); }
.plan .btn.block { width: 100%; justify-content: center; }
.sub-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pay-card { margin-top: 16px; }
.sel-sm { padding: 4px 8px; font-size: 12px; min-width: 0; }
.plans-ed td { padding: 6px 4px; }
.plan > .tag-sm { justify-self: start; }
.plans { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.sel-sm { width: auto !important; display: inline-block; }
.plans-ed .sel-sm[data-k=name] { width: 130px !important; }
.stats5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.plans-ed input.num { width: 82px !important; }
.plans-ed th { white-space: normal; }
.table-wrap { overflow-x: auto; }
