/* ==========================================================================
   CreatorOS — "Signal" design system
   Deep-space ground, neon cyan/violet signal colors, glass surfaces, HUD details.
   ========================================================================== */
:root {
  --bg: #06080f;
  --bg-2: #0a0e1a;
  --bg-3: #0f1526;
  --surface: rgba(16, 22, 40, 0.72);
  --surface-2: rgba(22, 30, 54, 0.78);
  --line: rgba(122, 143, 199, 0.16);
  --line-2: rgba(122, 143, 199, 0.32);
  --text: #e6ecff;
  --text-2: #9aa7c7;
  --text-3: #66739a;
  --cyan: #38f2ff;
  --cyan-2: #0fc8e8;
  --violet: #8b5cf6;
  --violet-2: #6d3ff0;
  --magenta: #ff3da6;
  --lime: #a3ff12;
  --amber: #ffb02e;
  --red: #ff4d6d;
  --green: #22e39a;
  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--violet) 55%, var(--magenta) 100%);
  --grad-soft: linear-gradient(120deg, rgba(56,242,255,.22), rgba(139,92,246,.22) 55%, rgba(255,61,166,.18));
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.7), 0 0 0 1px var(--line);
  --glow-cyan: 0 0 24px rgba(56,242,255,.35), 0 0 2px rgba(56,242,255,.9);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 64px;
  --sidebar-w: 256px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text);
  background: var(--bg); min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { /* grid */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(122,143,199,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(122,143,199,.06) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}
body::after { /* glow */
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(56,242,255,.14), transparent 60%),
    radial-gradient(800px 500px at 85% 0%, rgba(139,92,246,.18), transparent 60%),
    radial-gradient(600px 400px at 50% 110%, rgba(255,61,166,.10), transparent 60%);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono, code, kbd, pre { font-family: var(--font-mono); font-size: .85em; }
code { background: rgba(56,242,255,.08); border: 1px solid var(--line); border-radius: 5px; padding: .1em .4em; color: var(--cyan); }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow: auto; font-size: .82rem; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
img { max-width: 100%; }
::selection { background: rgba(56,242,255,.35); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--cyan); box-shadow: var(--glow-cyan); }

/* Layout */
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.container-narrow { width: min(720px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 72px 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.stack > * + * { margin-top: 16px; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:40px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.text-center{text-align:center}.right{text-align:right}.small{font-size:.86rem}.tiny{font-size:.75rem}
.w-full{width:100%}.hide{display:none!important}
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 48px 0; } }

/* Top nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); backdrop-filter: blur(18px) saturate(140%); background: rgba(6,8,15,.68); border-bottom: 1px solid var(--line); }
.nav .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); position: relative; box-shadow: 0 0 26px rgba(139,92,246,.55); }
.brand-mark::after { content: ""; position: absolute; inset: 8px; border-radius: 4px; background: var(--bg); }
.brand-mark::before { content: ""; position: absolute; inset: 12px; border-radius: 2px; background: var(--cyan); z-index: 1; box-shadow: var(--glow-cyan); }
.nav-links { display: flex; gap: 6px; margin-left: 8px; }
.nav-links a { color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(122,143,199,.10); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: rgba(6,8,15,.96); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-block; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(22,30,54,.6); color: #fff; font-weight: 600; font-size: .92rem; cursor: pointer; transition: .18s ease; font-family: var(--font); line-height: 1.2; white-space: nowrap; }
.btn:hover { border-color: rgba(56,242,255,.5); transform: translateY(-1px); color: #fff; }
.btn-primary { background: var(--grad); border: 0; color: #050710; box-shadow: 0 8px 30px -8px rgba(139,92,246,.7); position: relative; }
.btn-primary:hover { box-shadow: 0 10px 34px -6px rgba(56,242,255,.6); color: #050710; }
.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(255,77,109,.5); color: var(--red); }
.btn-danger:hover { background: rgba(255,77,109,.12); border-color: var(--red); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 12px; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }

/* Cards / panels */
.card { background: var(--surface); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.card-hover { transition: .2s ease; }
.card-hover:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-glow { box-shadow: var(--shadow); }
.card-glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-title h3 { margin: 0; }
.hud { position: relative; }
.hud::before, .hud::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--cyan); border-style: solid; opacity: .8; }
.hud::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
.hud::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 3px 0; }
.stat { padding: 18px 20px; }
.stat .label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.stat .value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.stat .delta { font-size: .8rem; color: var(--green); }
.stat .delta.down { color: var(--red); }

/* Badges / status */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-mono); border: 1px solid var(--line-2); color: var(--text-2); background: rgba(22,30,54,.6); }
.badge-cyan { color: var(--cyan); border-color: rgba(56,242,255,.4); background: rgba(56,242,255,.08); }
.badge-violet { color: #c4b5fd; border-color: rgba(139,92,246,.5); background: rgba(139,92,246,.12); }
.badge-green { color: var(--green); border-color: rgba(34,227,154,.4); background: rgba(34,227,154,.08); }
.badge-red { color: var(--red); border-color: rgba(255,77,109,.4); background: rgba(255,77,109,.08); }
.badge-amber { color: var(--amber); border-color: rgba(255,176,46,.4); background: rgba(255,176,46,.08); }
.badge-magenta { color: var(--magenta); border-color: rgba(255,61,166,.45); background: rgba(255,61,166,.1); }
.badge-live { color: #050710; background: var(--lime); border-color: var(--lime); box-shadow: 0 0 18px rgba(163,255,18,.5); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); display: inline-block; }
.dot-live { background: var(--lime); box-shadow: 0 0 0 0 rgba(163,255,18,.7); animation: pulse 1.6s infinite; }
.dot-online { background: var(--green); }
.dot-off { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(163,255,18,.6);} 70% { box-shadow: 0 0 0 9px rgba(163,255,18,0);} 100% { box-shadow: 0 0 0 0 rgba(163,255,18,0);} }

/* Forms */
.field { margin-bottom: 16px; }
.field label, label.lbl { display: block; font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; letter-spacing: .02em; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=datetime-local], input[type=date], input[type=time], select, textarea {
  width: 100%; background: rgba(6,8,15,.6); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; color: var(--text); font: inherit; font-size: .94rem; outline: none; transition: .15s;
}
input:focus, select:focus, textarea:focus, .input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56,242,255,.15); }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select option { background: var(--bg-2); }
.help { font-size: .78rem; color: var(--text-3); margin-top: 5px; }
.error-text { font-size: .8rem; color: var(--red); margin-top: 5px; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.checkbox input { width: auto; margin-top: 3px; accent-color: var(--cyan); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 40px; height: 22px; border-radius: 999px; background: rgba(122,143,199,.25); border: 1px solid var(--line-2); position: relative; transition: .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + .track { background: rgba(56,242,255,.35); border-color: var(--cyan); }
.switch input:checked + .track::after { left: 21px; background: var(--cyan); box-shadow: var(--glow-cyan); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.input-group { display: flex; }
.input-group .prefix { padding: 11px 12px; background: rgba(22,30,54,.8); border: 1px solid var(--line-2); border-right: 0; border-radius: 10px 0 0 10px; color: var(--text-3); font-family: var(--font-mono); font-size: .85rem; }
.input-group input { border-radius: 0 10px 10px 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(122,143,199,.05); }
.empty { padding: 40px 20px; text-align: center; color: var(--text-3); }
.empty .icon { font-size: 2rem; opacity: .5; margin-bottom: 8px; }

/* Flash / alerts */
.flash-stack { position: fixed; top: calc(var(--nav-h) + 12px); right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.alert { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(10,14,26,.95); backdrop-filter: blur(10px); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--shadow); animation: slidein .25s ease; }
.alert-success { border-color: rgba(34,227,154,.5); }
.alert-success::before { content: "✓"; color: var(--green); font-weight: 700; }
.alert-error { border-color: rgba(255,77,109,.6); }
.alert-error::before { content: "!"; color: var(--red); font-weight: 700; }
.alert-info { border-color: rgba(56,242,255,.5); }
.alert-info::before { content: "i"; color: var(--cyan); font-weight: 700; font-family: var(--font-mono); }
.alert-warning { border-color: rgba(255,176,46,.6); }
.alert-warning::before { content: "▲"; color: var(--amber); font-size: .7rem; margin-top: 3px; }
.alert .close { margin-left: auto; background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 1rem; line-height: 1; }
.alert-inline { position: static; animation: none; margin-bottom: 16px; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; }
.hero h1 { max-width: 820px; }
.hero .lead { font-size: 1.15rem; color: var(--text-2); max-width: 620px; }
.hero-visual { margin-top: 56px; }
.terminal { background: rgba(6,8,15,.85); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font-family: var(--font-mono); font-size: .82rem; }
.terminal-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(22,30,54,.5); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); opacity: .5; }
.terminal-bar span:nth-child(1) { background: var(--red); opacity: .9; } .terminal-bar span:nth-child(2) { background: var(--amber); opacity: .9; } .terminal-bar span:nth-child(3) { background: var(--green); opacity: .9; }
.terminal-body { padding: 16px 18px; color: var(--text-2); line-height: 1.7; }
.terminal-body .ok { color: var(--green); } .terminal-body .k { color: var(--cyan); } .terminal-body .v { color: var(--magenta); } .terminal-body .c { color: var(--text-3); }
.cursor { display: inline-block; width: 8px; height: 14px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.marquee-track { display: inline-block; animation: marquee 40s linear infinite; }
.marquee-track span { margin: 0 28px; }
.marquee-track span::before { content: "◆"; color: var(--violet); margin-right: 12px; font-size: .6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.feature { padding: 26px; }
.feature .icon { width: 44px; height: 44px; border-radius: 11px; background: var(--grad-soft); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 16px; }
.feature .index { position: absolute; top: 18px; right: 20px; font-family: var(--font-mono); font-size: .68rem; color: var(--text-3); letter-spacing: .1em; }

/* Profile page */
.profile-banner { height: 260px; border-radius: 0 0 24px 24px; background: var(--grad-soft); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.profile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--bg) 100%); }
.profile-head { display: flex; gap: 22px; align-items: flex-end; margin-top: -64px; position: relative; z-index: 1; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 16px; background: var(--grad-soft); border: 2px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; overflow: hidden; flex: none; object-fit: cover; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xl { width: 128px; height: 128px; border-radius: 28px; font-size: 2.2rem; border-width: 4px; border-color: var(--bg); box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px -12px rgba(0,0,0,.7); }
.avatar-sm { width: 36px; height: 36px; border-radius: 10px; font-size: .8rem; }
.avatar-xs { width: 26px; height: 26px; border-radius: 7px; font-size: .65rem; }
.links-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(22,30,54,.6); font-size: .82rem; color: var(--text-2); }
.chip:hover { border-color: var(--cyan); color: #fff; }
.product-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.product-card .thumb { aspect-ratio: 16/9; background: var(--grad-soft); display: grid; place-items: center; font-size: 2.2rem; border-bottom: 1px solid var(--line); background-size: cover; background-position: center; }
.product-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.price small { font-size: .75rem; color: var(--text-3); font-weight: 500; font-family: var(--font-mono); }
.stream-card .thumb { aspect-ratio: 16/9; background: var(--bg-3); border-radius: 10px; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.stream-card .thumb .badge { position: absolute; top: 8px; left: 8px; }
.stream-card .viewers { position: absolute; bottom: 8px; right: 8px; font-family: var(--font-mono); font-size: .7rem; background: rgba(0,0,0,.6); padding: 2px 7px; border-radius: 6px; }

/* Dashboard shell */
.dash { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); background: rgba(6,8,15,.6); backdrop-filter: blur(16px); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.sidebar .brand { padding: 4px 8px 14px; }
.sidebar .group { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); padding: 14px 10px 6px; }
.sidebar a.item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text-2); font-size: .9rem; font-weight: 500; position: relative; }
.sidebar a.item:hover { color: #fff; background: rgba(122,143,199,.08); }
.sidebar a.item.active { color: #fff; background: rgba(56,242,255,.08); }
.sidebar a.item.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; background: var(--cyan); border-radius: 0 3px 3px 0; box-shadow: var(--glow-cyan); }
.sidebar a.item .ico { width: 18px; text-align: center; opacity: .8; font-size: .95rem; }
.sidebar .spacer { flex: 1; }
.tenant-switch { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: rgba(22,30,54,.5); font-size: .85rem; }
.tenant-switch select { padding: 6px 30px 6px 8px; font-size: .82rem; margin-top: 6px; }
.dash-main { min-width: 0; }
.topbar { height: var(--nav-h); display: flex; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px); background: rgba(6,8,15,.6); }
.topbar .crumbs { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.topbar .crumbs b { color: var(--text); font-weight: 600; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.dash-content { padding: 28px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 1.8rem; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.sidebar-toggle { display: none; }
@media (max-width: 960px) {
  .dash { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); z-index: 60; transform: translateX(-100%); transition: .2s; }
  .sidebar.open { transform: none; }
  .sidebar-toggle { display: inline-flex; }
  .dash-content { padding: 18px; }
  .topbar { padding: 0 18px; }
}
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--text-2); font-size: .9rem; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active, .tabs a:hover { color: #fff; border-color: var(--cyan); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: .9rem; }
.kv dt { color: var(--text-3); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.kv dd { margin: 0; }
.progress { height: 6px; border-radius: 999px; background: rgba(122,143,199,.15); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.timeline li:last-child { border: 0; }
.timeline time { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); flex: none; width: 76px; padding-top: 2px; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: rgba(10,14,26,.98); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px; display: none; z-index: 70; box-shadow: var(--shadow); }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 7px; color: var(--text-2); background: none; border: 0; font: inherit; font-size: .88rem; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: rgba(122,143,199,.1); color: #fff; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; }
.footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 60px; color: var(--text-3); font-size: .85rem; }
.footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--text-2); margin-right: 16px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar .day { min-height: 92px; border: 1px solid var(--line); border-radius: 9px; padding: 6px; background: rgba(6,8,15,.4); font-size: .78rem; }
.calendar .day.today { border-color: var(--cyan); }
.calendar .day.other { opacity: .35; }
.calendar .day .n { font-family: var(--font-mono); color: var(--text-3); font-size: .7rem; }
.calendar .post { display: block; margin-top: 4px; padding: 3px 6px; border-radius: 5px; background: rgba(139,92,246,.25); border: 1px solid rgba(139,92,246,.5); color: #fff; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: grab; }
.calendar .post.published { background: rgba(34,227,154,.2); border-color: rgba(34,227,154,.5); }
.calendar .post.failed { background: rgba(255,77,109,.2); border-color: rgba(255,77,109,.5); }
.calendar .day.over { background: rgba(56,242,255,.08); }
.zone-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.zone { border: 1px solid var(--line); border-radius: 9px; padding: 10px; background: rgba(6,8,15,.5); font-size: .8rem; }
.zone b { font-family: var(--font-display); font-size: 1.2rem; display: block; }
.zone.hot { border-color: rgba(255,61,166,.6); background: rgba(255,61,166,.08); }
.zone.warm { border-color: rgba(139,92,246,.6); background: rgba(139,92,246,.08); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 40px; }
.spark span { flex: 1; background: linear-gradient(180deg, var(--cyan), var(--violet)); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .8; }
.copy-box { display: flex; gap: 8px; align-items: center; background: rgba(6,8,15,.6); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 8px 8px 12px; font-family: var(--font-mono); font-size: .82rem; word-break: break-all; }
.scanline { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.reveal { opacity: 0; transform: translateY(14px); transition: .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.ai-box { border: 1px solid rgba(139,92,246,.5); background: linear-gradient(160deg, rgba(139,92,246,.10), rgba(56,242,255,.06)); }
.ai-box textarea { min-height: 70px; }
.msg { padding: 12px 14px; border-radius: 12px; font-size: .9rem; max-width: 90%; white-space: pre-wrap; }
.msg-user { background: rgba(56,242,255,.1); border: 1px solid rgba(56,242,255,.3); margin-left: auto; }
.msg-ai { background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.4); }
.provider-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: .8rem; color: #fff; }
.p-twitch{background:#9146ff}.p-youtube{background:#ff0033}.p-kick{background:#53fc18;color:#000}.p-discord{background:#5865f2}.p-x{background:#111;border:1px solid var(--line-2)}.p-facebook{background:#1877f2}.p-instagram{background:linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7)}.p-tiktok{background:#111;border:1px solid var(--line-2)}.p-reddit{background:#ff4500}.p-linkedin{background:#0a66c2}
.pagination { display: flex; gap: 6px; margin-top: 16px; }
.pagination a, .pagination span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; color: var(--text-2); }
.pagination .active { border-color: var(--cyan); color: #fff; }
