:root { --bg: #0d0c16; --panel: #171528; --panel2: #1f1c34; --line: #2b2745; --text: #f5f3ff; --muted: #a7a2c4;
  --cyan: #19e3f5; --violet: #8b5cf6; --pink: #ff2e9a; --ok: #5ee36b; --bad: #ff5f6d;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 50%, var(--pink)); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 Onest, system-ui, -apple-system, Segoe UI, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; margin-top: 22px; }
small { color: var(--muted); font-weight: 400; }
code { background: var(--panel2); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(13, 12, 22, .94); backdrop-filter: blur(10px); z-index: 20; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 800; font-size: 21px; }
.brand:hover { text-decoration: none; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand em { font-style: normal; font-weight: 600; font-size: 13px; color: var(--muted); }
#nav { display: flex; align-items: center; gap: 16px; font-weight: 600; }
#nav a:not(.btn) { color: var(--muted); }
#nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.who { color: var(--muted); font-size: 13px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.view { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.card.narrow { max-width: 620px; margin: 0 auto; }
.kicker { color: var(--pink); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font: inherit; font-weight: 700; text-decoration: none; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.btn.ghost { background: var(--panel2); border: 1px solid var(--line); color: var(--text); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.big { height: 50px; padding: 0 28px; font-size: 16px; }
.btn.full { width: 100%; }

form label, .card > label { display: block; font-weight: 600; margin: 14px 0 0; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); }
input.code { font-size: 26px; letter-spacing: 10px; text-align: center; font-weight: 800; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; margin: 12px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--pink); }

/* landing */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 30px 0; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); }
.hero p { color: #d6d2ee; font-size: 17px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.how { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.how li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 58px; position: relative; }
.how li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; }
.how b { display: block; }
.how span { color: var(--muted); font-size: 14px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.cards3 > div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.cards3 h3 { margin-top: 0; }
.cards3 p { color: var(--muted); margin: 0; }

/* auth */
.auth { max-width: 440px; margin: 20px auto; }
.gbtn { display: flex; justify-content: center; min-height: 44px; margin-top: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth .btn.full { margin-top: 20px; }

/* dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.glist { display: grid; gap: 12px; }
.gitem { display: flex; align-items: center; gap: 16px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; color: var(--text); }
.gitem:hover { border-color: var(--violet); text-decoration: none; }
.gthumb { width: 160px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--panel2); display: grid; place-items: center; flex: none; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb span { color: var(--muted); font-size: 12px; }
.ginfo { flex: 1; min-width: 0; }
.ginfo b { display: block; font-size: 17px; }
.status { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: var(--panel2); white-space: nowrap; }
.s-draft { color: var(--muted); }
.s-review { color: #ffd23f; }
.s-live { color: var(--ok); }
.s-rejected { color: var(--bad); }
.empty { text-align: center; padding: 50px 20px; background: var(--panel); border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }

/* wizard */
.back { color: var(--muted); font-weight: 600; }
.wiz-head { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; flex-wrap: wrap; }
.wiz-head h1 { margin: 0; }
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.steps a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.steps a:hover { text-decoration: none; color: var(--text); }
.steps span { width: 26px; height: 26px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; flex: none; font-weight: 800; }
.steps li.on a { border-color: var(--violet); color: var(--text); }
.steps li.on span { background: var(--grad); color: #fff; }
.steps li.done span { background: var(--ok); color: #0d0c16; }
.banner { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; background: var(--panel2); border: 1px solid var(--line); }
.banner.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.banner.bad { border-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.banner.info { border-color: color-mix(in srgb, #ffd23f 50%, transparent); }
.locked input, .locked select, .locked textarea { opacity: .6; pointer-events: none; }
.drop, .card > label.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 34px 20px; margin: 16px 0; border: 2px dashed var(--line); border-radius: 16px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--violet); background: var(--panel2); }
.drop input { display: none; }
.drop b { font-size: 17px; }
.drop span { color: var(--muted); font-size: 14px; }
.small-drop { padding: 18px; }
.prog { margin: 8px 0 4px; }
.prog > div { height: 10px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.prog span { color: var(--muted); font-size: 13px; }
.preview { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); margin: 14px 0 6px; }
.preview iframe { width: 100%; height: 100%; border: 0; }
.qa fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.qa legend { font-weight: 600; padding: 0 6px; }
.qa label { display: inline-flex; align-items: center; gap: 6px; margin: 4px 18px 0 0; font-weight: 600; }
.covers { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 14px; align-items: start; }
.cover { position: relative; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; text-align: center; color: var(--muted); background: var(--panel2); margin: 0; }
.cover:hover { border-color: var(--violet); }
.cover input { display: none; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover em { position: absolute; bottom: 8px; right: 8px; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(13, 12, 22, .85); color: var(--text); }
.c-landscape { aspect-ratio: 16 / 9; }
.c-portrait { aspect-ratio: 2 / 3; }
.c-square { aspect-ratio: 1; }
.checks .check { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }

/* admin */
.tabs { display: flex; gap: 6px; }
.tab { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 99px; padding: 6px 14px; cursor: pointer; font: inherit; font-weight: 600; }
.tab.on { background: var(--grad); color: #fff; border-color: transparent; }
.review { margin-bottom: 16px; }
.rv-top { display: flex; gap: 18px; }
.rv-top img { width: 280px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; flex: none; }
.covers.mini { display: flex; gap: 10px; margin: 10px 0; }
.covers.mini img { height: 90px; border-radius: 8px; }
.review details { margin: 10px 0; }
.review pre { white-space: pre-wrap; color: var(--muted); }

/* legal */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { margin-top: 28px; font-size: 20px; }
.legal p, .legal li { color: #d6d2ee; }
.agreement { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin: 14px 0; background: var(--bg); font-size: 14px; }
.agreement h1 { display: none; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; padding: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99; background: var(--panel2); border: 1px solid var(--violet); padding: 12px 20px; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); max-width: min(560px, 92vw); }
.toast.bad { border-color: var(--bad); }
.loading-page { display: grid; place-items: center; padding: 60px; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--pink); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .hero, .cards3, .grid2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .covers { grid-template-columns: 1fr 1fr; }
  .c-landscape { grid-column: span 2; }
  .gthumb { width: 110px; }
  .rv-top { flex-direction: column; }
  .rv-top img { width: 100%; }
  .who { display: none; }
  .brand em { display: none; }
  .card { padding: 18px; }
}

/* reviewer portal */
.admin-box { margin-bottom: 16px; padding: 14px 20px; }
.admin-box summary { cursor: pointer; }
.linkbtn { background: none; border: 0; color: var(--bad); cursor: pointer; font: inherit; margin-left: 8px; }
.hist { padding-left: 18px; color: #d6d2ee; }
.hist li { margin: 4px 0; }
.rchecks { margin: 14px 0 4px; display: grid; gap: 4px; }
.rchecks .check { margin: 4px 0; }
.qa-table td, .qa-table th { text-align: left; padding: 3px 12px 3px 0; color: #d6d2ee; }
.covers.mini video { height: 90px; border-radius: 8px; }
.noimg { width: 280px; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--panel2); display: grid; place-items: center; color: var(--muted); flex: none; }
.btn.danger { color: var(--bad); }
.tab small { opacity: .75; margin-left: 4px; }
