/* CZ7 Host — painel. Filosofia visual em /app/DESIGN.md */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0c0b10;
  --surface: #131218;
  --surface-2: #19171f;
  --raised: #201d28;
  --hover: #24212d;
  --line: #2a2733;
  --line-soft: #1f1d26;
  --text: #eeecf4;
  --muted: #a19db0;
  --dim: #6f6b7d;
  --accent: #8b5cf6;
  --accent-hi: #b69dff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --accent-line: rgba(139, 92, 246, 0.38);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.12);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 7px;
  --side: 248px;
  --font-display: "Archivo", "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --ink: #f6f5f9;
  --surface: #ffffff;
  --surface-2: #faf9fc;
  --raised: #f1eff6;
  --hover: #ebe8f2;
  --line: #e3e0ea;
  --line-soft: #eeecf3;
  --text: #17151d;
  --muted: #5f5a6e;
  --dim: #8d88a0;
  --accent: #7c3aed;
  --accent-hi: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.09);
  --accent-line: rgba(124, 58, 237, 0.35);
  --ok: #059669; --ok-soft: rgba(5, 150, 105, 0.1);
  --warn: #b45309; --warn-soft: rgba(180, 83, 9, 0.1);
  --bad: #dc2626; --bad-soft: rgba(220, 38, 38, 0.08);
  --info: #2563eb; --info-soft: rgba(37, 99, 235, 0.08);
  --shadow: 0 18px 50px rgba(30, 20, 60, 0.14);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font: 400 14.5px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 8px; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 15px; height: 15px; }
.ico.lg { width: 22px; height: 22px; }

/* ── Shell ─────────────────────────────────────────────────────────── */

.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.shell.collapsed { --side: 72px; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line-soft); padding: 14px 12px; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.brand-name { font: 800 18px/1 var(--font-display); letter-spacing: .2px; white-space: nowrap; }
.brand-short { display: none; font: 800 15px/1 var(--font-display); }
.shell.collapsed .brand-short { display: inline; }
.collapse-btn {
  margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2);
  display: grid; place-items: center; cursor: pointer; color: var(--muted);
}
.collapse-btn:hover { color: var(--text); background: var(--hover); }
.nav { flex: 1; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.nav-label { font: 500 10.5px/1 var(--font-mono); letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); padding: 16px 12px 8px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 1px 0; border-radius: 9px;
  color: var(--muted); font-weight: 500; text-decoration: none; position: relative; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent-hi); }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav .count { margin-left: auto; font: 500 11px/1 var(--font-mono); background: var(--accent); color: #fff; padding: 3px 7px; border-radius: 99px; }
.side-foot { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.side-foot .user { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; padding: 6px; border-radius: 9px; color: var(--text); text-decoration: none; }
.side-foot .user:hover { background: var(--hover); text-decoration: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; font: 700 12px/1 var(--font-display); color: var(--accent-hi); flex: none; }
.user-meta { min-width: 0; }
.user-meta b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: var(--dim); font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell.collapsed .brand-name, .shell.collapsed .nav-label, .shell.collapsed .nav a span, .shell.collapsed .nav .count,
.shell.collapsed .user-meta { display: none; }
.shell.collapsed .nav a { justify-content: center; padding: 10px; }
.shell.collapsed .brand { justify-content: center; flex-direction: column; }
.shell.collapsed .collapse-btn { margin: 8px 0 0; transform: rotate(180deg); }
.shell.collapsed .side-foot { flex-direction: column; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 12px;
  padding: 0 32px; background: color-mix(in srgb, var(--ink) 86%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; min-width: 0; }
.crumbs a { color: var(--muted); }
.crumbs b { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--muted); position: relative; transition: background .15s, color .15s;
}
.icon-btn:hover { color: var(--text); background: var(--hover); }
.icon-btn .dot {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--accent); color: #fff; font: 600 10.5px/18px var(--font-mono); text-align: center; border: 2px solid var(--ink);
}
.menu-btn { display: none; }
.content { padding: 28px 32px 64px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; font: 700 26px/1.15 var(--font-display); letter-spacing: -.2px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
h2.section { font: 600 17px/1.2 var(--font-display); margin: 30px 0 12px; }
h2.section:first-child { margin-top: 0; }

/* ── Components ───────────────────────────────────────────────────── */

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 20px; }
.card.pad-lg { padding: 26px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; font: 600 15px/1.2 var(--font-display); }
.card-head .actions { margin-left: auto; display: flex; gap: 8px; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side-panel { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

.stat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 18px 20px; min-width: 0; }
.label { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: 1.3px; text-transform: uppercase; color: var(--dim); }
.stat .value { font: 700 25px/1.15 var(--font-display); margin-top: 10px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.meter { height: 6px; background: var(--raised); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s ease; }
.meter.warn > i { background: var(--warn); }
.meter.bad > i { background: var(--bad); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: var(--hover); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 6px 18px rgba(139,92,246,.25); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 20%, transparent); }
.btn.danger-solid { background: var(--bad); color: #fff; border-color: transparent; }
.btn.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-soft); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn.pill { border-radius: 99px; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px;
  font: 500 11.5px/1 var(--font-body); white-space: nowrap; background: var(--raised); color: var(--muted); border: 1px solid var(--line);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.accent { background: var(--accent-soft); color: var(--accent-hi); border-color: transparent; }
.badge.pulse::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 7px; background: var(--raised); font: 500 12px/1.4 var(--font-mono); color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field small { color: var(--dim); font-size: 12px; }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 110px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--dim); }
.input.mono { font-family: var(--font-mono); font-size: 13px; }
.input-group { display: flex; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: var(--muted); font-size: 13.5px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-error { color: var(--bad); font-size: 13px; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font: 500 10.5px/1 var(--font-mono); letter-spacing: 1.3px; text-transform: uppercase; color: var(--dim); padding: 14px 18px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.table td { padding: 13px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr.link { cursor: pointer; }
.table tbody tr.link:hover { background: var(--surface-2); }
.table .strong { font-weight: 600; }
.table .sub { color: var(--dim); font-size: 12px; margin-top: 2px; }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 52px 20px; gap: 4px; }
.empty .ring { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-hi); margin-bottom: 14px; }
.empty .ring .ico { width: 26px; height: 26px; }
.empty b { font: 600 16px/1.3 var(--font-display); }
.empty p { margin: 2px 0 0; color: var(--muted); max-width: 380px; }
.empty .btn { margin-top: 16px; }

.skel { background: linear-gradient(90deg, var(--raised) 25%, var(--hover) 37%, var(--raised) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skel.line { height: 14px; margin: 8px 0; }
.skel.block { height: 92px; border-radius: var(--r-lg); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-soft); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; margin-bottom: -1px;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs button.active .ico { color: var(--accent-hi); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: 12.5px; cursor: pointer; }
.seg button.active { background: var(--raised); color: var(--text); }

.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.list-row:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: 13.5px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.copy { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: var(--font-mono); font-size: 13px; background: var(--raised); padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line); color: var(--text); }
.copy:hover { border-color: var(--accent-line); }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--info-soft); color: var(--text); font-size: 13.5px; align-items: flex-start; }
.callout .ico { color: var(--info); margin-top: 1px; }
.callout.warn { background: var(--warn-soft); } .callout.warn .ico { color: var(--warn); }
.callout.bad { background: var(--bad-soft); } .callout.bad .ico { color: var(--bad); }
.callout.ok { background: var(--ok-soft); } .callout.ok .ico { color: var(--ok); }
.divider { height: 1px; background: var(--line-soft); margin: 18px 0; border: 0; }

/* Game tag */
.game { display: inline-flex; align-items: center; gap: 8px; }
.game-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--raised); color: var(--accent-hi); flex: none; }
.game-ico.minecraft { background: rgba(121,217,74,.12); color: #79d94a; }
.game-ico.fivem { background: rgba(255,138,61,.12); color: #ff8a3d; }
.game-ico.mta { background: rgba(96,165,250,.12); color: #60a5fa; }
.game-ico.vps { background: var(--accent-soft); color: var(--accent-hi); }

/* Server cards */
.server-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.server-card:hover { border-color: var(--accent-line); text-decoration: none; }
.server-card .title { font: 600 15.5px/1.25 var(--font-display); }
.server-card .addr { font: 400 12.5px/1 var(--font-mono); color: var(--dim); margin-top: 4px; }

/* Console */
.console {
  background: #08070b; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
}
:root[data-theme="light"] .console { background: #111016; }
.console-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #1d1b24; color: #a19db0; font-size: 12.5px; }
.console-body {
  height: 460px; overflow-y: auto; padding: 14px 16px; font: 12.5px/1.6 var(--font-mono); color: #d9d6e3; white-space: pre-wrap; overflow-wrap: anywhere;
  scrollbar-color: #2a2733 transparent;
}
.console-body .sys { color: #b69dff; }
.console-body .err { color: #f87171; }
.console-input { display: flex; align-items: center; gap: 10px; border-top: 1px solid #1d1b24; padding: 8px 12px; }
.console-input span { color: #8b5cf6; font: 600 13px var(--font-mono); }
.console-input input { flex: 1; background: none; border: 0; outline: none; color: #eeecf4; font: 13px var(--font-mono); height: 34px; }
.ansi-b { font-weight: 700; } .ansi-i { font-style: italic; } .ansi-u { text-decoration: underline; }

/* Files */
.crumb-path { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font: 13px var(--font-mono); }
.crumb-path button { background: none; border: 0; color: var(--accent-hi); cursor: pointer; padding: 2px 4px; border-radius: 5px; font: inherit; }
.crumb-path button:hover { background: var(--accent-soft); }
.file-name { display: flex; align-items: center; gap: 10px; }
.file-name .ico { color: var(--dim); }
.file-name.dir .ico { color: var(--accent-hi); }
.editor { width: 100%; min-height: 60vh; background: #08070b; color: #e6e3ee; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; font: 12.5px/1.6 var(--font-mono); resize: vertical; outline: none; tab-size: 4; }

/* Overlays */
.overlay { position: fixed; inset: 0; background: rgba(6, 5, 10, .62); backdrop-filter: blur(3px); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); animation: rise .18s ease; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.modal.wide { max-width: 760px; }
.modal.xwide { max-width: 1040px; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.modal-head h3 { margin: 0; font: 600 17px/1.3 var(--font-display); }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; }
.modal-head .icon-btn { margin-left: auto; width: 32px; height: 32px; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 20px; }
.modal-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-hi); }
.modal-icon.bad { background: var(--bad-soft); color: var(--bad); }

.drawer-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(6,5,10,.45); animation: fade .15s ease; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: var(--shadow); display: flex; flex-direction: column; animation: slide .2s ease;
}
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.drawer-head h3 { margin: 0; font: 600 16px/1 var(--font-display); }
.drawer-body { overflow-y: auto; flex: 1; }
.notif { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--text); cursor: pointer; }
.notif:hover { background: var(--surface-2); text-decoration: none; }
.notif .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--raised); display: grid; place-items: center; color: var(--muted); flex: none; }
.notif.unread .ic { background: var(--accent-soft); color: var(--accent-hi); }
.notif b { font-size: 13.5px; font-weight: 600; display: block; }
.notif p { margin: 2px 0 4px; color: var(--muted); font-size: 13px; }
.notif time { font: 11px var(--font-mono); color: var(--dim); }
.notif.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 11px; min-width: 280px; max-width: 400px; padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; box-shadow: var(--shadow);
  animation: rise .2s ease; font-size: 13.5px;
}
.toast.ok { border-left-color: var(--ok); } .toast.ok .ico { color: var(--ok); }
.toast.bad { border-left-color: var(--bad); } .toast.bad .ico { color: var(--bad); }
.toast.warn { border-left-color: var(--warn); } .toast.warn .ico { color: var(--warn); }
.toast .ico { color: var(--accent-hi); margin-top: 1px; }
.toast.leaving { opacity: 0; transform: translateY(6px); transition: all .2s; }

/* Auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art {
  position: relative; overflow: hidden; padding: 44px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(900px 600px at 15% 10%, rgba(139,92,246,.28), transparent 60%), radial-gradient(700px 500px at 90% 100%, rgba(76,29,149,.35), transparent 60%), #0a0910;
  border-right: 1px solid var(--line-soft); color: #eeecf4;
}
.auth-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.auth-art > * { position: relative; z-index: 1; }
.auth-art h2 { font: 800 44px/1.02 var(--font-display); letter-spacing: -1px; margin: 0 0 16px; max-width: 520px; }
.auth-art p { color: #a19db0; max-width: 460px; font-size: 15px; }
.auth-feats { display: grid; gap: 12px; margin-top: 28px; }
.auth-feats div { display: flex; gap: 12px; align-items: center; color: #d9d6e3; font-size: 14px; }
.auth-feats .ico { color: #b69dff; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font: 700 27px/1.15 var(--font-display); margin: 0 0 6px; }
.auth-box > p { color: var(--muted); margin: 0 0 26px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 20px; }
.otp { letter-spacing: 10px; text-align: center; font: 600 22px var(--font-mono) !important; height: 54px !important; }
.auth-small { font: 12px/1 var(--font-mono); color: #6f6a80; letter-spacing: .5px; }

/* Payment */
.pix-box { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; }
.pix-box img { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 10px; }
.qr { background: #fff; border-radius: 12px; padding: 12px; display: inline-block; }
.qr svg { display: block; width: 180px; height: 180px; }
.method-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.method-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; text-align: left; color: var(--text); }
.method-card.active { border-color: var(--accent); background: var(--accent-soft); }
.method-card b { display: block; font-size: 14px; }
.method-card small { color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.plan-opt { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; text-align: left; color: var(--text); }
.plan-opt.active { border-color: var(--accent); background: var(--accent-soft); }
.plan-opt b { font: 700 18px/1 var(--font-display); display: block; }
.plan-opt span { font: 500 12.5px var(--font-mono); color: var(--muted); }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; }
.summary-line.total { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 14px; font-weight: 700; font-size: 16px; }

/* Ticket thread */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 12px; max-width: 88%; }
.msg .bubble { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 4px 14px 14px 14px; padding: 12px 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg.me .bubble { background: var(--accent-soft); border-color: var(--accent-line); border-radius: 14px 4px 14px 14px; }
.msg.note .bubble { background: var(--warn-soft); border-color: transparent; }
.msg .meta { font: 11px var(--font-mono); color: var(--dim); margin-bottom: 5px; }

/* Docs */
.doc h3 { font: 600 15px var(--font-display); margin: 24px 0 8px; }
.doc pre { background: #08070b; color: #e6e3ee; border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; font: 12.5px/1.6 var(--font-mono); }
.doc code { font-family: var(--font-mono); font-size: 12.5px; background: var(--raised); padding: 2px 6px; border-radius: 5px; }
.doc pre code { background: none; padding: 0; }
.method { font: 600 11px var(--font-mono); padding: 3px 7px; border-radius: 5px; background: var(--ok-soft); color: var(--ok); }
.method.post { background: var(--accent-soft); color: var(--accent-hi); }
.method.put, .method.patch { background: var(--warn-soft); color: var(--warn); }
.method.delete { background: var(--bad-soft); color: var(--bad); }

.loader-screen { min-height: 100vh; display: grid; place-items: center; }
.loader-screen .brand-name { animation: pulse 1.2s ease-in-out infinite; color: var(--muted); }

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.side-panel { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 860px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; --side: 272px; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .shell.nav-open .side { transform: none; }
  .shell.collapsed .brand-name, .shell.collapsed .nav-label, .shell.collapsed .nav a span, .shell.collapsed .user-meta { display: revert; }
  .shell.collapsed .brand-short { display: none; }
  .shell.collapsed .nav a { justify-content: flex-start; padding: 9px 12px; }
  .collapse-btn { display: none; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 56px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 22px; }
  .pix-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .method-cards { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .msg { max-width: 100%; }
  .table th, .table td { padding: 12px 14px; }
  .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .grid.cols-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat .value { font-size: 20px; }
  .toasts { left: 12px; right: 12px; }
  .toast { min-width: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── Seções, barras de uso e listas de admin ─────────────────────── */
.section-title { font: 500 11px/1 var(--font-mono); letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }
.usage { display: grid; gap: 4px; }
.usage .top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.usage .top b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.bar.warn i { background: var(--warn); } .bar.bad i { background: var(--bad); }
.node-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.node-card .head .game-ico { flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; cursor: pointer; }
.chip-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hi); }
.chip-check input { accent-color: var(--accent); }
.code-box { font: 12px/1.6 var(--font-mono); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; max-height: 340px; overflow: auto; white-space: pre; color: var(--text); }
.port-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.port { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: 8px; font: 12.5px/1 var(--font-mono); }
.port.used { color: var(--dim); background: var(--raised); }
.port button { border: 0; background: none; color: var(--dim); cursor: pointer; padding: 0; display: grid; }
.port button:hover { color: var(--bad); }
.drawer-pad { padding: 18px 20px; }

/* ── Automações por jogo ──────────────────────────────────────────── */
.quick-cmds { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid #1d1b24; background: #0c0b10; }
.quick { border: 1px solid #2a2733; background: #15131b; color: #c9c5d6; font: 500 12px/1 var(--font-body); padding: 7px 10px; border-radius: 99px; cursor: pointer; }
.quick:hover { border-color: #8b5cf6; color: #fff; }
.steps { display: grid; gap: 2px; }
.step { display: flex; align-items: center; gap: 12px; padding: 9px 4px; color: var(--dim); font-size: 13.5px; }
.step b { font-weight: 500; }
.step.running { color: var(--text); } .step.running .ico { color: var(--info); animation: spin 1.2s linear infinite; }
.step.done { color: var(--text); } .step.done .ico { color: var(--ok); }
.step.warn .ico { color: var(--warn); } .step.error { color: var(--bad); } .step.skip { opacity: .55; }
@keyframes spin { to { transform: rotate(360deg); } }
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.plugin-card { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 14px; background: var(--surface-2); display: flex; flex-direction: column; }
.plugin-card a.strong { color: var(--text); text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plugin-card a.strong:hover { color: var(--accent-hi); }
.plugin-desc { font-size: 12.5px; margin: 10px 0 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.plugin-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--raised); display: grid; place-items: center; flex: none; overflow: hidden; color: var(--dim); }
.plugin-ico img { width: 100%; height: 100%; object-fit: cover; }
.switch { position: relative; display: inline-block; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--raised); border: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--dim); transition: transform .15s, background .15s; }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); background: #fff; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line b { font-size: 14px; }
.cart-line .game-ico { width: 36px; height: 36px; }
.announce { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: var(--r-md); margin-bottom: 16px; font-size: 13.5px; background: var(--info-soft); }
.announce.promo { background: var(--accent-soft); } .announce.warn { background: var(--warn-soft); } .announce.critical { background: var(--bad-soft); }
.announce .ico { flex: none; }
.announce.promo .ico { color: var(--accent-hi); } .announce.warn .ico { color: var(--warn); } .announce.critical .ico { color: var(--bad); } .announce.info .ico { color: var(--info); }
.announce b { font-weight: 600; }
.announce .code { font: 600 12px var(--font-mono); padding: 3px 8px; border-radius: 6px; background: var(--surface); border: 1px dashed var(--line); }
.plan-change { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.plan-change .plan-opt.current { opacity: .6; cursor: default; }
.when-opts { display: grid; gap: 8px; margin-top: 14px; }
.when-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.when-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.when-opt input { margin-top: 3px; accent-color: var(--accent); }
.when-opt.disabled { opacity: .5; cursor: not-allowed; }
.announce-wrap { padding: 20px 32px 0; max-width: 1320px; width: 100%; }
.announce-wrap:empty { display: none; }
.announce-wrap .announce:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .announce-wrap { padding: 16px 16px 0; } }

/* Planos e preços */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 16px; margin-top: 16px; }
.catalog-grid .table td { vertical-align: middle; }
@media (max-width: 560px) { .catalog-grid { grid-template-columns: 1fr; } }
.btn.pulse { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.cycle-toggle { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; margin-left: auto; }
.cycle-toggle.hidden { display: none; }
.cycle-opt { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.cycle-opt small { color: var(--ok); font-weight: 600; }
.cycle-opt.active { background: var(--accent); color: var(--accent-ink); }
.cycle-opt.active small { color: inherit; }
.cycle-note { font-size: 11.5px; margin-top: 2px; font-family: var(--font-body); }
.btn.danger-text { color: var(--bad); }
.btn.danger-text:hover { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.plain-list { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.plain-list li { margin: 2px 0; }

/* Financeiro: barras simples */
.bars { display: flex; align-items: stretch; gap: 6px; height: 190px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bar-stack { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid var(--line); }
.fbar { display: inline-block; width: 42%; max-width: 18px; min-height: 1px; border-radius: 3px 3px 0 0; background: var(--accent); }
.fbar.ok { background: var(--ok); } .fbar.bad { background: var(--bad); } .fbar.warn { background: var(--warn); } .fbar.accent { background: var(--accent); }
.bar-label { font-size: 10.5px; color: var(--dim); text-align: center; margin-top: 4px; white-space: nowrap; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-left: auto; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .fbar { width: 10px; height: 10px; border-radius: 2px; }
.sub.quote { font-style: italic; max-width: 380px; white-space: normal; }
@media (max-width: 560px) { .bar-label { font-size: 9px; } .bars { gap: 3px; } }
.input-addon { display: inline-flex; align-items: center; padding: 0 10px; color: var(--muted); font-family: var(--font-mono, monospace); font-size: 13px; white-space: nowrap; }
@media (max-width: 560px) { .input-group:has(.input-addon) { flex-wrap: wrap; } }
.canned-list { max-height: 50vh; overflow: auto; display: grid; gap: 4px; }
.canned-row { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line-soft); border-radius: 10px; padding: 4px 6px; }
.canned-pick { text-align: left; background: transparent; border: 0; color: inherit; font: inherit; padding: 6px; cursor: pointer; border-radius: 8px; min-width: 0; }
.canned-pick:hover { background: var(--surface-2, rgba(255,255,255,.04)); }
.canned-pick b { display: flex; gap: 8px; align-items: center; }
.imp-banner { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--warn-soft); color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); font-size: 13.5px; position: sticky; top: 0; z-index: 30; }
.imp-banner .ico { color: var(--warn); }
/* Minecraft: tipo de servidor, jogadores, envio */
.flavor-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.flavor-opt { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 10px; padding: 10px; cursor: pointer; text-align: left; font: inherit; display: grid; gap: 2px; }
.flavor-opt small { color: var(--muted); font-size: 11.5px; }
.flavor-opt.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
@media (max-width: 560px) { .flavor-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.player-list { margin-top: 12px; display: grid; gap: 4px; max-height: 280px; overflow: auto; }
.player-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: var(--line-soft); }
.upload-bar { height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.upload-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.steps-text { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.table th.right { text-align: right; }
.app-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 18px 28px 26px; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line-soft); margin-top: 24px; }
.app-foot a { color: var(--muted); }
.app-foot-links { display: inline-flex; gap: 14px; }
.auth .app-foot { border: 0; padding: 18px 0 0; margin-top: 12px; }
@media (max-width: 560px) { .app-foot { padding: 16px; } }
@media (max-width: 900px) { .form-grid.cols-3 { grid-template-columns: 1fr; } }
.conn-check { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 16px; max-width: 360px; }
.conn-check p { margin: 0; color: var(--muted); font-size: 14px; }
.conn-bar { display: block; width: 160px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 200% 100%; animation: connbar 1.1s linear infinite; }
@keyframes connbar { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .conn-bar { animation: none; background: var(--accent); } }
