@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

:root {
  --bg: #050812;
  --bg-2: #070b14;
  --surface: #0b1120;
  --surface-2: #101827;
  --line: rgba(148, 163, 184, .12);
  --line-2: rgba(96, 165, 250, .22);
  --text: #e8eef8;
  --muted: #8b95a8;
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --blue-dim: rgba(59, 130, 246, .14);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --mx: 50vw;
  --my: 30vh;
  --side: 245px;
  --top: 68px;
  --pub: 1180px;
  --r-sm: 6px;
  --r: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: Inter, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: -.01em;
}
body.is-public, body.is-gate, body.is-admin {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(59,130,246,.08), transparent 50%),
    var(--bg);
}
body.is-public::before, body.is-gate::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(50,110,255,.10), transparent 40%);
}
body > * { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: .82em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 0; cursor: pointer;
  border-radius: var(--r); font-weight: 600; font-size: 14px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn.primary, .btn.lime, .admin-btn-primary, .admin-btn-discord {
  background: var(--blue); color: #fff;
}
.btn.primary:hover, .btn.lime:hover { background: #2563eb; }
.btn.ghost, .admin-btn-secondary {
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
.btn.ghost:hover { background: rgba(255,255,255,.04); }
.btn.danger, .admin-btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(248,113,113,.28); }
.btn.tiny { height: 32px; padding: 0 10px; font-size: 12px; border-radius: var(--r-sm); }
.btn.block, .w-full { width: 100%; }
.admin-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border: 0; border-radius: var(--r); font-weight: 600; cursor: pointer; }

.ico {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.ico:hover { color: var(--text); border-color: var(--line-2); background: var(--blue-dim); }
.ico svg { width: 14px; height: 14px; }

.chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--line); color: var(--muted);
}
.chip.on { color: var(--ok); border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.08); }
.chip.off { color: var(--danger); border-color: rgba(248,113,113,.28); background: rgba(248,113,113,.08); }
.chip.warn { color: var(--warn); border-color: rgba(251,191,36,.28); background: rgba(251,191,36,.08); }
.chip.info { color: var(--blue-2); border-color: rgba(96,165,250,.28); background: var(--blue-dim); }
.muted { color: var(--muted); font-size: 14px; }
.flash, .err-box, .warn-box { border-radius: var(--r-md); padding: 10px 12px; margin: 0 0 16px; font-size: 13px; }
.flash.ok { background: rgba(52,211,153,.08); color: var(--ok); }
.flash.error, .err-box { background: rgba(248,113,113,.08); color: var(--danger); }
.warn-box { background: rgba(251,191,36,.08); color: var(--warn); }

/* ========== PUBLIC ========== */
.pub-nav-wrap { position: sticky; top: 18px; z-index: 50; display: flex; justify-content: center; padding: 0 20px; margin-bottom: 8px; }
.pub-nav {
  width: min(var(--pub), 100%);
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 10px 0 16px;
  border-radius: 999px;
  background: rgba(11, 17, 32, .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.pub-brand { display: flex; align-items: center; gap: 10px; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 800; font-size: 15px; }
.pub-brand img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.pub-nav nav { display: flex; justify-content: center; gap: 22px; }
.pub-nav nav a { color: var(--muted); font-size: 13px; font-weight: 500; }
.pub-nav nav a:hover, .pub-nav nav a.on { color: #fff; }
.pub-wrap { width: min(var(--pub), calc(100% - 40px)); margin: 0 auto; }

.hero { display: grid; grid-template-columns: 520px 1fr; gap: 36px; align-items: center; padding: 56px 0 28px; }
.hero-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}
.kicker { margin: 0 0 12px; color: var(--blue-2); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-copy h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(40px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 800;
}
.hero-copy .lead { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; }

.product {
  position: relative;
  height: 360px;
  border-radius: 18px;
  background: linear-gradient(180deg, #101827, #0b1120);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  padding: 22px;
  overflow: hidden;
}
.product-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.product-tile {
  height: 92px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #c9d4ea;
}
.product-tile b { display: block; color: var(--blue-2); font-size: 11px; margin-bottom: 4px; }
.float-ico {
  position: absolute; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 18px;
  background: var(--surface-2); border: 1px solid var(--line-2);
}
.float-ico.a { top: 18px; right: -12px; }
.float-ico.b { bottom: 34px; left: -14px; }
.float-ico.c { top: 48%; right: 18px; }
.float-ico.d { bottom: -8px; right: 28%; }

.section { padding: 56px 0; }
.section h2 {
  margin: 0 0 8px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 34px; letter-spacing: -.03em;
}
.section .sub { margin: 0 0 24px; color: var(--muted); max-width: 520px; }

.showcase {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.server-tile {
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.server-tile img.cover { width: 100%; height: 132px; object-fit: cover; display: block; }
.server-tile .body { padding: 14px; }
.server-tile .who { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.server-tile .who img, .mini-logo {
  width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--blue);
}
.server-tile h3 { margin: 0; font-size: 15px; }
.tile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.tile-stats span { display: block; color: var(--muted); font-size: 11px; }
.tile-stats b { font-size: 14px; }

.steps-3, .prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card, .price-card, .cmd-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px;
}
.step-card .num { color: var(--blue-2); font-weight: 800; font-size: 20px; }
.price-card { position: relative; }
.price-card.featured { border-color: var(--line-2); }
.price-card .amount { font-size: 32px; font-weight: 800; margin: 8px 0; }
.price-card ul { color: var(--muted); padding-left: 18px; line-height: 1.8; }
.badge { position: absolute; top: -10px; right: 14px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.plat { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; background: var(--surface); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.team-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px;
  min-height: 88px;
}
.team-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.team-card h3 { margin: 0; font-size: 15px; }
.team-card .handle { color: var(--muted); font-size: 12px; }
.team-card .role { font-size: 12px; color: var(--blue-2); margin-top: 2px; }
.team-card .socials { margin-top: 6px; display: flex; gap: 8px; font-size: 12px; color: var(--muted); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }
.cta-band {
  margin: 20px auto 48px; width: min(var(--pub), calc(100% - 40px));
  border-radius: 18px; padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.site-foot { width: min(var(--pub), calc(100% - 40px)); margin: 0 auto; padding: 24px 0 40px; color: var(--muted); display: flex; justify-content: space-between; font-size: 13px; }

.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.donate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.donate-card img, .donate-card .ph { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; display: block; background: var(--surface-2); }
.donate-card .tag { margin-top: 10px; font-size: 11px; color: var(--blue-2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.donate-card h3 { margin: 4px 0; font-size: 15px; }
.donate-card .price { font-size: 18px; font-weight: 800; }

.cmd-search, .filters, .search {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.cmd-search input, .filters input, .filters select, .field input, .field select, .field textarea,
.form-grid input, .form-grid select, .form-grid textarea, .admin-input, .search input {
  width: 100%; height: 40px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: #070b14; padding: 0 12px; outline: none;
}
.field textarea { height: auto; padding: 10px 12px; }
.cmd-search input:focus, .filters input:focus, .field input:focus, .admin-input:focus { border-color: var(--line-2); }
.cmd-grid { display: grid; gap: 12px; }
.cmd-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cmd-item code { color: var(--blue-2); }

@media (max-width: 980px) {
  .hero, .showcase-grid, .steps-3, .prices, .team-grid, .shop-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .pub-nav nav { display: none; }
  .pub-nav { grid-template-columns: auto auto; }
}

/* ========== GATE / PICKER ========== */
.gate {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 24px 48px;
}
.gate-head { text-align: center; max-width: 640px; margin-bottom: 22px; }
.gate-head h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 36px; letter-spacing: -.03em;
}
.gate-search {
  width: min(520px, 100%);
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 28px;
}
.gate-search input { flex: 1; border: 0; background: transparent; height: 36px; outline: none; }
.gate-grid { width: min(1180px, 100%); display: grid; grid-template-columns: repeat(3, 370px); justify-content: center; gap: 16px; }
.pick-card {
  width: 370px; height: 155px;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.pick-card .row { display: flex; gap: 12px; align-items: center; flex: 1; }
.pick-ava { position: relative; width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: #1d4ed8; display: grid; place-items: center; font-weight: 800; }
.pick-ava .online {
  position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%;
  background: #64748b; border: 2px solid var(--surface);
}
.pick-ava .online.on { background: var(--ok); }
.pick-card h3 { margin: 0; font-size: 15px; }
.pick-card .meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.pick-card .btn { height: 36px; border-radius: 8px; }

@media (max-width: 1180px) { .gate-grid { grid-template-columns: repeat(2, 370px); } }
@media (max-width: 800px) { .gate-grid, .pick-card { width: 100%; grid-template-columns: 1fr; } }

/* ========== ADMIN SHELL ========== */
.shell { min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side);
  background: #070b14; border-right: 1px solid var(--line);
  display: none; flex-direction: column; z-index: 40;
}
@media (min-width: 1024px) { .side { display: flex; } }
body.sidebar-open .side { display: flex; }
.side-brand { height: var(--top); display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); font-weight: 800; }
.side-brand img { width: 28px; height: 28px; border-radius: 8px; }
.side-nav { flex: 1; overflow: auto; padding: 12px 10px 18px; }
html, body, .side-nav, .workspace, .drawer, .chars-body {
  scrollbar-width: thin;
  scrollbar-color: #243044 transparent;
}
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #243044; border-radius: 99px; }
*::-webkit-scrollbar-thumb:hover { background: #334155; }
.side-label {
  display: block; padding: 14px 10px 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #64708a;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px; border-radius: 10px;
  font-size: 13px; color: #9aa6bb; margin-bottom: 2px;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .75; }
.nav-item:hover { background: rgba(255,255,255,.04); color: #fff; }
.nav-item.on {
  background: var(--blue-dim);
  border: 1px solid rgba(59,130,246,.35);
  color: #fff;
}
.nav-item.on svg { opacity: 1; color: var(--blue-2); }
.side-foot { padding: 12px; border-top: 1px solid var(--line); }
.logout-link { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font-size: 13px; }

.main { min-height: 100vh; }
@media (min-width: 1024px) { .main { margin-left: var(--side); } }
.top {
  height: var(--top);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(5,8,18,.86); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}
.crumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.crumb strong { color: var(--text); }
.menu-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: #fff; cursor: pointer; }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.who-btn {
  display: flex; align-items: center; gap: 8px; position: relative;
  background: transparent; border: 0; cursor: pointer; color: var(--text); font-weight: 600; font-size: 13px;
}
.who-btn img, .ava {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--blue); display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.drop {
  display: none; position: absolute; right: 0; top: 44px; width: 200px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px; z-index: 30;
}
.drop.open { display: block; }
.drop a, .drop button {
  display: flex; width: 100%; align-items: center; gap: 8px; height: 38px; padding: 0 10px;
  border: 0; background: none; color: var(--text); border-radius: 8px; cursor: pointer; text-align: left; font-size: 13px;
}
.drop a:hover, .drop button:hover { background: rgba(255,255,255,.05); }

.workspace {
  width: 100%;
  padding: 28px 32px 40px;
  position: relative;
}
.workspace::before {
  content: ""; pointer-events: none; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(50,110,255,.07), transparent 42%);
}
.page-kicker { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #64708a; font-weight: 700; }
.page-title { margin: 6px 0 0; font-size: 28px; letter-spacing: -.03em; font-weight: 700; }
.page-desc { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }

.card, .admin-card, .panel, .stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.card, .admin-card, .panel { padding: 16px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.metric { padding: 16px; }
.metric b { display: block; font-size: 24px; margin-top: 6px; }
.metric span { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.split { display: grid; grid-template-columns: 1.4fr .8fr; gap: 12px; }
.health-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; background: #64748b; }
.dot.on { background: var(--ok); }
.activity-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 8px 0; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--blue-2), var(--blue)); opacity: .85; }

.dt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dt-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dt-head h2 { margin: 0; font-size: 16px; }
.dt-tools { display: flex; gap: 8px; align-items: center; }
.dt-tools input { width: 280px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #070b14; padding: 0 12px; }
.dt-meta { padding: 8px 16px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.dt-stats { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.dt-stats div { padding: 14px 16px; border-right: 1px solid var(--line); }
.dt-stats div:last-child { border-right: 0; }
.dt-stats b { display: block; font-size: 22px; }
.dt-stats span { color: var(--muted); font-size: 12px; }
.table-wrap { overflow: auto; }
table.dt, table.ledger { width: 100%; border-collapse: collapse; font-size: 13px; }
table.dt th, table.dt td, table.ledger th, table.ledger td {
  text-align: left; padding: 0 12px; height: 48px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.dt th, table.ledger th { height: 40px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #64708a; background: rgba(255,255,255,.02); }
table.dt tbody tr:hover, table.ledger tbody tr:hover { background: rgba(59,130,246,.05); }
table.dt a, table.ledger a { color: var(--blue-2); font-weight: 600; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell img, .user-cell .ava { width: 28px; height: 28px; border-radius: 50%; }
.user-cell small { display: block; color: var(--muted); font-size: 11px; }
.acts { display: flex; gap: 4px; }

.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 180px; color: var(--muted); text-align: center;
}
.field { margin-bottom: 12px; }
.field label, .field-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #64708a; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .wide { grid-column: 1 / -1; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface); font-size: 13px; }
.steps { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.step { height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.step.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.color-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: middle; border: 1px solid rgba(255,255,255,.15); }
.grow { flex: 1; min-width: 160px; }
.filters { background: transparent; border: 0; padding: 0; }
.pager { color: var(--muted); font-size: 12px; margin-top: 10px; }

.live { height: calc(100vh - var(--top) - 56px); min-height: 560px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #070b14; }
.live-bar { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.live-bar h1 { margin: 0; font-size: 15px; }
.live-tools { display: flex; gap: 8px; align-items: center; }
.live-stage { position: relative; flex: 1; min-height: 0; }
.radar {
  position: absolute; inset: 0;
  background: #071018 center / cover no-repeat;
}
.radar-grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(59,130,246,.06) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(59,130,246,.06) 48px);
}
.blip {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 5px rgba(52,211,153,.2); cursor: pointer; z-index: 2;
}
.blip.mark { background: var(--blue-2); box-shadow: 0 0 0 4px rgba(96,165,250,.2); width: 8px; height: 8px; }
.blip.focus { box-shadow: 0 0 0 8px rgba(59,130,246,.35); z-index: 5; }
.blip .tip {
  display: none; position: absolute; left: 12px; top: -8px; background: #070b14; color: #fff;
  padding: 6px 8px; border-radius: 6px; white-space: nowrap; font-size: 12px; border: 1px solid var(--line);
}
.blip:hover .tip, .blip.focus .tip { display: block; }
.live-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: 320px;
  background: rgba(7,11,20,.94); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .2s ease; padding: 14px; overflow: auto;
}
.live-drawer.open { transform: translateX(0); }
.player-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.player-row:hover { color: #fff; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center;
  background: rgba(2,6,18,.62); backdrop-filter: blur(8px); padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(460px, 100%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; text-align: center;
  animation: pop .18s ease;
}
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-icon {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(248,113,113,.12); color: var(--danger); font-size: 22px; font-weight: 800;
}
.drawer { position: fixed; top: 0; right: 0; z-index: 71; height: 100vh; width: min(400px, 100%); background: #0b1120; border-left: 1px solid var(--line); padding: 18px; transform: translateX(100%); transition: transform .2s ease; overflow: auto; }
.drawer.open { transform: none; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; display: none; background: rgba(2,6,18,.4); }
.drawer-backdrop.open { display: block; }
.sidebar-scrim { display: none; position: fixed; inset: 0; z-index: 35; background: rgba(2,6,18,.5); }
body.sidebar-open .sidebar-scrim { display: block; }
@media (min-width: 1024px) { body.sidebar-open .sidebar-scrim { display: none; } }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-visual {
  padding: 36px; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(5,8,18,.2), rgba(5,8,18,.82)), url("/img/login-city.png") center / cover no-repeat;
}
.login-form-panel { display: grid; place-items: center; padding: 24px; min-height: 100vh; }
.login-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.login-kicker { color: var(--blue-2); letter-spacing: .16em; text-transform: uppercase; font-size: 11px; font-weight: 800; margin: 0; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; background: #070b14; padding: 2px 6px; border-radius: 6px; }
.grid, .grid-2, .grid-3, .grid-4 { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .metrics, .split, .grid-2, .grid-3, .grid-4, .login-shell, .dt-stats { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .workspace { padding: 18px 16px 32px; }
}

.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.module-card { display: block; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.stat-label, .meta-label { margin: 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #64708a; font-weight: 700; }
.stat-value, .meta-value { margin: 4px 0 0; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { padding: 14px; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #64708a; }
.server-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; font-weight: 800; }
.pill { height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.pill-on { color: #052e1c; background: var(--ok); border-color: var(--ok); }
.brand-serif { margin: 0; font-weight: 800; }
.brand-sub { margin: 2px 0 0; color: var(--blue-2); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; }
.admin-page-eyebrow { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #64708a; }
.admin-page-title { margin: 6px 0 0; font-size: 28px; }
.admin-page-desc { margin: 6px 0 0; color: var(--muted); }
.admin-shell { min-height: 100vh; }
.admin-sidebar { display: none; }
.admin-main { min-height: 100vh; }
.admin-content { padding: 0; }
.admin-topbar { display: none; }
.glow-card, .overview-banner, .preview-panel, .community-card, .hero-wrap { }
.row-actions { display: flex; gap: 4px; }

.chars-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.chars-head h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; font-weight: 700; }
.chars-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.chars-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.chars-bar {
  display: flex; gap: 8px; align-items: center; margin-bottom: 10px;
}
.chars-bar input {
  flex: 1; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: #070b14; padding: 0 12px 0 36px; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b95a8' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3 3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px 50%;
}
.chars-bar select {
  height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: #070b14; padding: 0 12px; min-width: 130px;
}
.chars-list { width: 100%; }
.chars-cols, .char-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) minmax(140px, .8fr) minmax(140px, .8fr) minmax(140px, .8fr) minmax(130px, .7fr) minmax(150px, .8fr) 56px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}
.chars-cols {
  height: 36px;
  color: #64708a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.char-row {
  height: 70px;
  background: transparent;
  border-bottom: 1px solid rgba(148, 163, 184, .08);
}
.char-row:hover { background: rgba(55, 110, 255, .035); }
.char-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.char-player img {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #1a2336;
}
.char-player strong { display: block; font-size: 14px; font-weight: 600; color: #e8ecf5; line-height: 1.2; }
.char-player small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); font-weight: 400; }
.char-name { font-size: 14px; font-weight: 500; color: #e8ecf5; }
.char-cid { font-size: 13px; color: #c9d4ea; font-family: ui-monospace, Consolas, monospace; }
.char-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #e8ecf5; }
.char-status .live { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.12); }
.char-status .dead { width: 7px; height: 7px; border-radius: 50%; background: #64748b; }
.char-phone { font-size: 13px; color: #e8ecf5; }
.char-view {
  width: 36px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.char-view:hover { color: #fff; border-color: var(--line-2); background: rgba(55,110,255,.08); }
.chars { width: 100%; position: relative; z-index: 1; }
body.chars-page .workspace { padding-top: 22px; padding-bottom: 24px; }
.chars-meta { margin: 0 8px 4px; font-size: 12px; color: var(--muted); }
.chars-cols > :last-child, .char-row > .char-view { justify-self: end; }
.char-player > div { min-width: 0; }
.char-player strong, .char-player small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-drawer { width: min(460px, 100%); }
.char-drawer[hidden] { display: none !important; }
.char-drawer-top { display: flex; justify-content: flex-end; }
.char-drawer .who { display: flex; gap: 12px; align-items: center; margin: 12px 0 18px; }
.char-drawer .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #1a2336; }
.char-drawer .who strong { display: block; font-size: 16px; }
.char-drawer .who small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.char-drawer h2 { margin: 0; font-size: 20px; font-weight: 650; color: #e8ecf5; }
.char-drawer .muted { margin: 6px 0 0; }
.char-kv b { font-weight: 600; color: #e8ecf5; }
.char-veh { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.char-veh li { padding: 8px 0; border-bottom: 1px solid rgba(148,163,184,.08); color: var(--muted); }
.char-veh b { color: #e8ecf5; margin-right: 6px; }
.char-more { margin-top: 18px; }
.char-more a { color: var(--blue-2); font-size: 13px; }
.char-kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 13px; padding: 12px 0; border-top: 1px solid var(--line); }
.char-kv span { color: var(--muted); }
.char-sec { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.char-sec h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #64708a; }
@media (max-width: 1100px) {
  .chars-cols { display: none; }
  .char-row { grid-template-columns: 1fr auto; height: auto; padding: 12px 8px; gap: 10px; }
  .char-row > :nth-child(n+2):not(.char-view) { display: none; }
}

