/* OWL9 onboarding — brand: ink background, pink→purple→cyan gradient, glass cards (matches creators.owl9.com) */
:root {
  --pink: #e91e8c; --purple: #9d50dd; --cyan: #22d3ee;
  --ink: #0a0a0f; --ink-2: #111118;
  --card: rgba(20, 20, 28, .78); --card-solid: #15151d;
  --line: rgba(255, 255, 255, .10); --line-2: rgba(255, 255, 255, .16);
  --text: #f2f2f7; --muted: #a3a3b8; --dim: #7f7f93;
  --ok: #34d399; --warn: #fbbf24; --bad: #ff7a8a;
  --grad: linear-gradient(100deg, var(--pink), var(--purple), var(--cyan));
  --grad-2: linear-gradient(100deg, var(--pink), var(--purple));
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { -webkit-text-size-adjust: 100% }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--ink); line-height: 1.55; min-height: 100vh;
}
.bg { position: fixed; inset: 0; z-index: -2; background: url("/brand/bg.jpg") center/cover no-repeat }
.bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 10%, rgba(10,10,15,.55), rgba(10,10,15,.93) 65%) }
.bg.calm::after { background: linear-gradient(rgba(10,10,15,.88), rgba(10,10,15,.96)) }
a { color: var(--cyan) }
b, strong { color: #fff; font-weight: 700 }
[hidden] { display: none !important }
.mt { margin-top: 1rem }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px);
  background: rgba(10,10,15,.72); border-bottom: 1px solid var(--line) }
.top .in { max-width: 1120px; margin: 0 auto; padding: .7rem clamp(1rem, 3vw, 1.6rem);
  display: flex; align-items: center; gap: .9rem }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; min-width: 0 }
.brand img.owl { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(157,80,221,.5)) }
.brand .word { font-weight: 900; letter-spacing: .08em; font-size: 1.05rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent }
.brand .portal { font-size: .78rem; color: var(--muted); border-left: 1px solid var(--line-2); padding-left: .6rem; font-weight: 600 }
.brand .x { color: var(--dim); font-weight: 300; font-size: 1.1rem }
.brand .client-logo { height: 32px; max-width: 120px; object-fit: contain; border-radius: 6px; background: rgba(255,255,255,.92); padding: 3px 6px }
.top .sp { flex: 1 }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; background: rgba(255,255,255,.04) }
.lang-switch button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .75rem; font-weight: 800;
  letter-spacing: .06em; padding: .3rem .65rem; border-radius: 999px; cursor: pointer }
.lang-switch button.on { background: var(--grad-2); color: #fff }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); font: inherit; font-size: .82rem;
  font-weight: 600; padding: .42rem .85rem; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08) }
@media (max-width: 560px) { .brand .portal { display: none } .top .who { display: none } }
.who { font-size: .78rem; color: var(--dim); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: clamp(1.2rem, 4vw, 2.4rem) clamp(1rem, 3vw, 1.6rem) 4rem }
.narrow { max-width: 860px }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.2rem, 3.5vw, 2rem); backdrop-filter: blur(14px); box-shadow: var(--shadow) }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em }
h2 { font-size: 1.3rem; line-height: 1.25 }
h3 { font-size: 1.05rem }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent }
.muted { color: var(--muted) }
.dim { color: var(--dim); font-size: .85rem }
.eyebrow { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); font-weight: 800 }

/* ---------- forms ---------- */
label.lbl { display: block; font-size: .8rem; color: #b9b9c8; margin: 1rem 0 .35rem; font-weight: 600 }
input[type=text], input[type=email], input[type=search], textarea, select {
  width: 100%; padding: .75rem 1rem; background: rgba(0,0,0,.35); border: 1px solid #33333f; border-radius: 11px;
  color: #fff; font: inherit; font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s }
textarea { resize: vertical; min-height: 90px; line-height: 1.45 }
input:focus, textarea:focus, select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(233,30,140,.18) }
select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23b9b9c8'><path d='M3 5l4 4 4-4z'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center }
select option { background: #15141c }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 12px;
  padding: .85rem 1.4rem; background: var(--grad); background-size: 200% 100%; color: #fff; font: inherit; font-size: 1rem;
  font-weight: 800; cursor: pointer; text-decoration: none; transition: filter .2s, transform .1s, background-position .4s }
.btn:hover { filter: brightness(1.08); background-position: 100% 0 }
.btn:active { transform: translateY(1px) }
.btn:disabled { filter: grayscale(.6) brightness(.7); cursor: not-allowed }
.btn.block { width: 100% }
.btn.sm { padding: .5rem .9rem; font-size: .85rem; border-radius: 10px }
.btn.secondary { background: rgba(255,255,255,.07); border: 1px solid var(--line-2) }
.btn.secondary:hover { background: rgba(255,255,255,.12) }
.btn.danger { background: rgba(255,122,138,.12); border: 1px solid rgba(255,122,138,.35); color: var(--bad) }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px }
.linkbtn:hover { color: #fff }
.err { color: var(--bad); font-size: .88rem; margin-top: .8rem; min-height: 1.2em }
.check { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(0,0,0,.2); cursor: pointer; margin-top: .5rem }
.check input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--pink); flex: 0 0 auto }
.check b { display: block; font-size: .93rem }
.check span { font-size: .8rem; color: var(--muted) }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column }
.auth main { flex: 1; display: grid; place-items: center; padding: 2rem 1rem 3rem }
.auth .card { width: 100%; max-width: 440px }
.auth .hero { text-align: center; margin-bottom: 1.4rem }
.auth .hero img { width: 104px; height: 104px; filter: drop-shadow(0 8px 28px rgba(157,80,221,.55)) }
.auth .hero .word { font-weight: 900; letter-spacing: .08em; font-size: 1.7rem; margin-top: .2rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent }
.auth h2 { margin-bottom: .35rem }
.auth .btn.block { margin-top: 1.3rem }
.code-input { text-align: center; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.7rem !important;
  letter-spacing: .5em; padding-left: 1.4rem !important }
.auth .row { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap }
.auth .help { margin-top: 1.4rem; font-size: .82rem; color: var(--dim); text-align: center }
.foot { text-align: center; padding: 1.6rem 1rem; color: var(--dim); font-size: .78rem }

/* ---------- client home ---------- */
.welcome { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.8rem; flex-wrap: wrap }
.welcome .logo-tile { width: 76px; height: 76px; border-radius: 18px; background: rgba(255,255,255,.95); display: grid; place-items: center;
  padding: 10px; box-shadow: var(--shadow) }
.welcome .logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain }
.welcome p { max-width: 640px; margin-top: .35rem }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem }
.fcard { position: relative; display: flex; flex-direction: column; gap: .6rem; text-align: left; color: inherit; font: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; backdrop-filter: blur(14px);
  transition: transform .15s, border-color .2s, box-shadow .2s; overflow: hidden }
.fcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); opacity: .7 }
.fcard:hover { transform: translateY(-2px); border-color: rgba(233,30,140,.45); box-shadow: 0 18px 44px rgba(157,80,221,.18) }
.fcard .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900;
  background: rgba(157,80,221,.18); border: 1px solid rgba(157,80,221,.4); color: #e6d4ff }
.fcard .ic { font-size: 1.3rem }
.fcard p { color: var(--muted); font-size: .92rem; flex: 1 }
.fcard .foot-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem }
.fcard .go { font-weight: 800; font-size: .88rem; color: #fff }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,.04); white-space: nowrap }
.pill.ok { color: var(--ok); border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08) }
.pill.warn { color: var(--warn); border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.07) }
.pill.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor }
.preview-bar { background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35); color: var(--warn); border-radius: 12px;
  padding: .55rem .9rem; font-size: .85rem; font-weight: 600; margin-bottom: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center }
.back { margin-bottom: 1rem }

/* ---------- wizard / carousel ---------- */
.wizard { padding: 0; overflow: hidden; scroll-margin-top: 76px }
.wiz-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(1.1rem, 3vw, 1.8rem);
  border-bottom: 1px solid var(--line) }
.wiz-count { font-size: .8rem; color: var(--muted); font-weight: 700 }
.dots { display: flex; gap: .4rem }
.dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: rgba(255,255,255,.18); cursor: pointer; padding: 0;
  transition: width .25s, background .25s }
.dots button.on { width: 26px; background: var(--grad-2) }
.dots button.seen { background: rgba(233,30,140,.55) }
.bar { height: 3px; background: rgba(255,255,255,.06) }
.bar i { display: block; height: 100%; background: var(--grad); transition: width .35s ease }
.viewport { overflow: hidden; touch-action: pan-y; transition: height .35s ease }
.track { display: flex; align-items: flex-start; transition: transform .45s cubic-bezier(.2,.8,.2,1) }
.slide { flex: 0 0 100%; min-width: 0; padding: clamp(1.3rem, 3.5vw, 2.2rem) clamp(1.1rem, 3.5vw, 2.2rem) }
.slide .eyebrow { margin-bottom: .4rem }
.slide h2 { font-size: clamp(1.3rem, 3.4vw, 1.75rem); margin-bottom: .8rem }
.slide .body { color: #d4d4e0; font-size: 1rem }
.slide ol { padding-left: 1.3rem; display: grid; gap: .45rem }
.slide p.body { margin-top: 1rem }
.slide li::marker { color: var(--pink); font-weight: 800 }
.callout { margin-top: 1.1rem; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(157,80,221,.10);
  border: 1px solid rgba(157,80,221,.35); border-left: 4px solid var(--pink); color: #ddd6ee; font-size: .95rem }
.callout.soft { background: rgba(255,255,255,.04); border-color: var(--line); border-left-color: var(--cyan); color: var(--muted) }
.copy-email { display: flex; align-items: center; gap: .5rem; margin: .8rem 0 0 1.3rem; flex-wrap: wrap }
.copy-email code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.05rem; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.4); border: 1px solid var(--line-2); padding: .45rem .8rem; border-radius: 10px }
.shot { margin-top: 1.3rem }
.shot button { display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; cursor: zoom-in;
  background: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.4) }
.shot img { display: block; width: 100%; height: auto }
.shot figcaption { font-size: .84rem; color: var(--dim); font-style: italic; margin-top: .6rem; text-align: center }
.intro-hero { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; margin-bottom: 1rem }
.intro-hero .tiktok { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: #000;
  border: 1px solid var(--line-2); box-shadow: -3px -3px 0 rgba(37,244,238,.55), 3px 3px 0 rgba(254,44,85,.55) }
.intro-hero .tiktok svg { width: 34px; height: 34px }
.steps-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 1.3rem }
.steps-preview div { border: 1px solid var(--line); border-radius: 12px; padding: .7rem; font-size: .82rem; color: var(--muted); background: rgba(0,0,0,.2) }
.steps-preview b { display: block; font-size: .7rem; letter-spacing: .1em; color: var(--pink) }
@media (max-width: 640px) { .steps-preview { grid-template-columns: 1fr 1fr } }
.wiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1.1rem, 3vw, 1.8rem);
  border-top: 1px solid var(--line); background: rgba(0,0,0,.18) }
.wiz-foot .btn { min-width: 130px }
.complete { text-align: center; padding: clamp(2rem, 6vw, 3.5rem) 1.5rem }
.complete .big { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad);
  box-shadow: 0 12px 40px rgba(233,30,140,.35) }
.complete .big svg { width: 38px; height: 38px }
.complete p { max-width: 460px; margin: .6rem auto 1.4rem; color: var(--muted) }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5,5,8,.92); display: grid; place-items: center; padding: 1rem; cursor: zoom-out }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: var(--shadow) }

/* ---------- documents ---------- */
.drop { margin-top: 1.2rem; border: 2px dashed rgba(255,255,255,.18); border-radius: 16px; padding: 2rem 1rem; text-align: center; cursor: pointer;
  background: rgba(0,0,0,.18); transition: border-color .2s, background .2s }
.drop:hover, .drop.over { border-color: var(--pink); background: rgba(233,30,140,.06) }
.drop .ic { font-size: 1.8rem; margin-bottom: .3rem }
.drop .dim { margin-top: .3rem }
.queue { display: grid; gap: .7rem; margin-top: 1rem }
.qitem { display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding: .9rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.22) }
.qitem .name { font-weight: 700; font-size: .92rem; word-break: break-all }
.qitem .meta { font-size: .78rem; color: var(--dim) }
.qitem textarea { grid-column: 1 / -1; min-height: 60px; font-size: .92rem }
.qitem .prog { grid-column: 1 / -1; height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden }
.qitem .prog i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s }
.qitem.done { border-color: rgba(52,211,153,.4) }
.qitem.failed { border-color: rgba(255,122,138,.45) }
.queue-actions { display: flex; justify-content: flex-end; margin-top: 1rem }
.doclist { display: grid; gap: .6rem; margin-top: 1rem }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--line);
  border-radius: 14px; background: rgba(0,0,0,.2) }
.doc .ficon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: .66rem; font-weight: 900; letter-spacing: .04em;
  background: rgba(34,211,238,.10); border: 1px solid rgba(34,211,238,.35); color: var(--cyan); text-transform: uppercase }
.doc .name { font-weight: 700; font-size: .93rem; word-break: break-all }
.doc .desc { font-size: .88rem; color: #cfcfdc; margin-top: .1rem; white-space: pre-wrap }
.doc .meta { font-size: .76rem; color: var(--dim); margin-top: .15rem }
.doc .acts { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end }
@media (max-width: 560px) { .doc { grid-template-columns: auto 1fr } .doc .acts { grid-column: 1 / -1; justify-content: flex-start } }
.empty { text-align: center; padding: 1.6rem; color: var(--dim); border: 1px dashed var(--line); border-radius: 14px; margin-top: 1rem }

/* ---------- admin ---------- */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center }
.toolbar input { width: 240px; padding: .6rem .9rem; font-size: .92rem }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1.2rem }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem }
.stat b { font-size: 1.6rem; display: block; line-height: 1.1 }
.stat span { font-size: .78rem; color: var(--muted) }
.table { width: 100%; border-collapse: collapse }
.table th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: .7rem .8rem;
  border-bottom: 1px solid var(--line) }
.table td { padding: .85rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .9rem }
.table tr.click { cursor: pointer }
.table tr.click:hover td { background: rgba(255,255,255,.03) }
.cl { display: flex; align-items: center; gap: .75rem }
.mini-logo { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.94); display: grid; place-items: center; padding: 4px; flex: 0 0 auto }
.mini-logo img { max-width: 100%; max-height: 100%; object-fit: contain }
.mini-logo.ph { background: var(--grad-2); color: #fff; font-weight: 900 }
.pills { display: flex; gap: .3rem; flex-wrap: wrap }
@media (max-width: 760px) { .table .hide-sm { display: none } }
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; align-items: start }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr } }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .8rem }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: .45rem .8rem; font-size: .9rem }
.kv dt { color: var(--dim) }
.users { display: grid; gap: .5rem }
.user { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(0,0,0,.2); font-size: .88rem; flex-wrap: wrap }
.user .em { font-weight: 700; word-break: break-all }
.user .meta { font-size: .76rem; color: var(--dim) }
.prog-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .9rem }
.prog-row:last-child { border-bottom: 0 }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 40; background: rgba(5,5,8,.75); backdrop-filter: blur(4px); display: grid; place-items: start center;
  padding: clamp(1rem, 5vh, 3rem) 1rem; overflow-y: auto }
.modal { width: 100%; max-width: 620px; background: var(--card-solid); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow) }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line) }
.modal .content { padding: .4rem 1.4rem 1.4rem }
.modal footer { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line) }
.x-btn { background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1 }
.logo-pick { display: flex; align-items: center; gap: 1rem }
.logo-pick .mini-logo { width: 64px; height: 64px; border-radius: 14px }
.hint { font-size: .78rem; color: var(--dim); margin-top: .35rem }

/* toasts */
.toasts { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: .5rem; width: min(92vw, 420px) }
.toast { padding: .8rem 1rem; border-radius: 12px; background: #1c1c26; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: .9rem;
  font-weight: 600; transition: opacity .4s, transform .4s }
.toast.ok { border-left: 4px solid var(--ok) }
.toast.bad { border-left: 4px solid var(--bad) }
.toast.out { opacity: 0; transform: translateY(8px) }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--pink); border-radius: 50%; animation: spin .8s linear infinite; margin: 2rem auto }
@keyframes spin { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .track, .viewport, .bar i, .fcard { transition: none } }
