:root {
  --bg: #07070b;
  --panel: rgba(15, 13, 21, 0.78);
  --panel-solid: #0d0c13;
  --border: rgba(225, 29, 72, 0.15);
  --text: #f3f4f6;
  --muted: #9496a8;
  --accent: #e11d48;
  --accent2: #f43f5e;
  --ok: #34d399;
  --bad: #fb7185;
  --warn: #fbbf24;
  --radius: 14px;
  --mono: ui-monospace, 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.5 Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.center { text-align: center; }
.mt { margin-top: 22px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 22px; } h3 { font-size: 14px; font-weight: 600; }

/* background */
.bg-orbs { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg-orbs i { position: absolute; width: 560px; height: 560px; border-radius: 50%; filter: blur(120px); opacity: .26; animation: float 22s ease-in-out infinite; }
.bg-orbs i:nth-child(1) { background: #9f1239; top: -180px; left: -140px; }
.bg-orbs i:nth-child(2) { background: #4c0519; bottom: -240px; right: -140px; animation-delay: -8s; opacity: .22; }
.bg-orbs i:nth-child(3) { background: #2e0854; top: 40%; left: 50%; width: 440px; height: 440px; animation-delay: -14s; opacity: .18; }
@keyframes float { 50% { transform: translate(60px, 40px) scale(1.1); } }

.glass { background: var(--panel); border: 1px solid var(--border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 10px 40px rgba(0,0,0,.45); }

/* form controls */
input, select, button { font: inherit; color: inherit; }
input, select {
  background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
select option { background: #14121a; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(225,29,72,.22); background: rgba(255,255,255,.06); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
label.check input { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); }

.btn {
  background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px;
  cursor: pointer; font-weight: 500; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(135deg, #e11d48, #9f1239); border-color: rgba(255,75,110,.35); box-shadow: 0 6px 20px rgba(225,29,72,.38); }
.btn.primary:hover { box-shadow: 0 8px 26px rgba(225,29,72,.58); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: rgba(251,113,133,.14); border-color: rgba(251,113,133,.3); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 9px; font-size: 12px; border-radius: 8px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* gothic login */
.login {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  overflow: hidden;
}
.login-glow-aura {
  position: absolute;
  width: 520px;
  height: 580px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.24) 0%, rgba(159, 18, 57, 0.12) 42%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: auraGlow 7s ease-in-out infinite alternate;
}
@keyframes auraGlow {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.08); opacity: 0.95; }
}

.login-card.gothic-panel {
  position: relative;
  z-index: 1;
  width: 410px;
  max-width: 100%;
  border-radius: 24px;
  padding: 42px 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(11, 9, 15, 0.88);
  border: 1px solid rgba(225, 29, 72, 0.32);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85),
              0 0 40px rgba(225, 29, 72, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: rise .6s cubic-bezier(.2,.8,.2,1);
}
.login-card.gothic-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 99, 132, 0.8), transparent);
}

.login-brand-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2px;
}
.login-brand-logo {
  max-width: 135px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(225, 29, 72, 0.7)) drop-shadow(0 0 35px rgba(159, 18, 57, 0.45));
  animation: logoFloat 4s ease-in-out infinite alternate;
  user-select: none;
}
@keyframes logoFloat {
  0% { transform: translateY(0); filter: drop-shadow(0 0 14px rgba(225, 29, 72, 0.6)); }
  100% { transform: translateY(-5px); filter: drop-shadow(0 0 26px rgba(225, 29, 72, 0.85)); }
}

.login-title {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 34px;
  letter-spacing: 0.04em;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(225, 29, 72, 0.85), 0 0 32px rgba(159, 18, 57, 0.5);
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}
.login-subtitle {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 63, 94, 0.85);
  text-align: center;
  margin: -6px 0 6px;
  font-weight: 700;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(88, 101, 242, 0.38);
  color: #f1f2ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.22);
}
.btn-discord:hover {
  background: #5865F2;
  color: #fff;
  border-color: #5865F2;
  box-shadow: 0 6px 26px rgba(88, 101, 242, 0.55);
  transform: translateY(-1px);
}
.btn-discord svg {
  flex: none;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.gothic-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 6px;
}
.gothic-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.35), transparent);
}
.gothic-divider p {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(225, 29, 72, 0.85);
  margin: 0;
  text-transform: uppercase;
}

.login-card input {
  background: rgba(18, 14, 23, 0.72);
  border: 1px solid rgba(225, 29, 72, 0.25);
  color: #ffffff;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13.5px;
}
.login-card input::placeholder {
  color: rgba(148, 150, 168, 0.5);
}
.login-card input:focus {
  border-color: #e11d48;
  background: rgba(25, 18, 30, 0.85);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.28), 0 0 20px rgba(225, 29, 72, 0.25);
}

.btn-gothic {
  background: var(--accent) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 4px 14px rgba(var(--accent-rgb), .28) !important;
  cursor: pointer;
  margin-top: 6px;
}
.btn-gothic:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-0.5px) !important;
}

.login-footer-text {
  font-size: 11px !important;
  letter-spacing: 0 !important;
  color: var(--muted) !important;
  margin: 6px 0 0 !important;
  text-transform: none !important;
}

.logo.big { display: grid; place-items: center; }
.logo-mark {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(135deg, #e11d48, #9f1239); box-shadow: 0 8px 24px rgba(225, 29, 72, 0.45);
}
.big .logo-mark { width: 62px; height: 62px; font-size: 24px; border-radius: 18px; }
.form-error { color: var(--bad); min-height: 18px; font-size: 13px; text-align: center; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }

/* shell */
.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; flex: none; padding: 18px 12px; display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 0; height: 100vh; border-radius: 0; border-width: 0 1px 0 0;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 6px; }
.brand b { display: block; font-size: 17px; } .brand small { color: var(--muted); font-size: 12px; }
.sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--muted);
  text-transform: uppercase; padding: 10px 10px 3px; margin-top: 4px; user-select: none;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 9px 12px; border-radius: 9px; cursor: pointer;
  color: var(--muted); font-size: 13.5px; font-weight: 500; text-align: left; position: relative; transition: all .15s;
}
.nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(109,94,252,.28), rgba(109,94,252,.06)); box-shadow: inset 2px 0 0 var(--accent); }
.nav-item.highlight-cyan { color: #5eead4; }
.nav-item.highlight-cyan.active { color: #fff; background: linear-gradient(90deg, rgba(45,212,191,.24), rgba(45,212,191,.05)); box-shadow: inset 2px 0 0 #2dd4bf; }
.nav-item.highlight-amber { color: #fbbf24; }
.nav-item.highlight-amber.active { color: #fff; background: linear-gradient(90deg, rgba(245,158,11,.24), rgba(245,158,11,.05)); box-shadow: inset 2px 0 0 #f59e0b; }
.nav-item.highlight-purple { color: #c4bdff; }
.nav-item.highlight-purple.active { color: #fff; background: linear-gradient(90deg, rgba(109,94,252,.3), rgba(109,94,252,.08)); box-shadow: inset 2px 0 0 #8b5cf6; }
.live-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-dot.on { background: var(--ok); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.side-foot { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.enc-badge { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.2); margin-bottom: 2px; }
.enc-badge svg { width: 20px; height: 20px; fill: none; stroke: var(--ok); stroke-width: 2; flex: none; }
.enc-badge b { display: block; font-size: 11px; color: var(--ok); } .enc-badge small { color: var(--muted); font-size: 10px; }

.content { flex: 1; min-width: 0; padding: 28px 34px 50px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.topbar p { margin: 2px 0 0; }
.app-select { min-width: 220px; }
.page { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { border-radius: var(--radius); padding: 16px 18px; background: var(--panel); border: 1px solid var(--border); position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.stat:hover { transform: translateY(-3px); border-color: rgba(109,94,252,.4); }
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--c, var(--accent)); opacity: .14; filter: blur(8px); }
.stat small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat b { display: block; font-size: 28px; margin-top: 4px; letter-spacing: -.02em; }

.card { border-radius: var(--radius); padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.card + .card, .mon-grid + .card { margin-top: 16px; }
.mon-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 1025px) and (max-width: 1180px) { .mon-grid { grid-template-columns: 1fr; } .sidebar { width: 76px; } .sidebar span:not(.logo-mark):not(.live-dot), .brand div, .enc-badge div, .nav-item { font-size: 0; } .nav-item svg { margin: auto; } .side-foot .btn { font-size: 11px; padding: 6px; } }
@media (max-width: 1024px) { .mon-grid { grid-template-columns: 1fr; } }
canvas { width: 100%; display: block; }
.legend { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.legend i.ok { background: var(--ok); } .legend i.bad { background: var(--bad); }
.bars { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; font-size: 12px; }
.bar-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }
.bar-row .track { height: 7px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .6s; }
.bar-row b { text-align: right; }

/* tabs & toolbar */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; }
.tab { background: none; border: 0; padding: 8px 18px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 500; transition: all .15s; }
.tab:hover { color: var(--text); }
.tab.active { background: rgba(109,94,252,.25); color: #fff; box-shadow: 0 2px 10px rgba(109,94,252,.25); }

/* category pill tabs */
.category-tabs { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 9px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .16s ease; user-select: none;
}
.cat-pill:hover { color: var(--text); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); transform: translateY(-1px); }
.cat-pill.active {
  color: #fff; background: rgba(109,94,252,.22); border-color: var(--accent);
  box-shadow: 0 0 14px rgba(109,94,252,.3);
}
.cat-pill.highlight-steam.active { background: rgba(42,71,94,.4); border-color: #66c0f4; color: #66c0f4; box-shadow: 0 0 14px rgba(102,192,244,.3); }
.cat-pill.highlight-rust.active { background: rgba(205,65,43,.3); border-color: #ff5e45; color: #ff9282; box-shadow: 0 0 14px rgba(255,94,69,.3); }
.cat-pill.highlight-fivem.active { background: rgba(245,158,11,.25); border-color: #f59e0b; color: #fde68a; box-shadow: 0 0 14px rgba(245,158,11,.3); }
.cat-pill.highlight-discord.active { background: rgba(88,101,242,.3); border-color: #5865F2; color: #c7d2fe; box-shadow: 0 0 14px rgba(88,101,242,.3); }
.cat-pill.highlight-dayz.active { background: rgba(16,185,129,.25); border-color: #10b981; color: #6ee7b7; box-shadow: 0 0 14px rgba(16,185,129,.3); }
.pill-badge {
  font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.08);
  color: var(--muted); font-weight: 700;
}
.cat-pill.active .pill-badge { background: rgba(255,255,255,.18); color: #fff; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar.tight { margin: 0; }
.toolbar .search { min-width: 240px; flex: 0 1 300px; }
.spacer { flex: 1; }

/* tables */
.table-wrap { overflow: auto; padding: 0; }
.card.table-wrap { padding: 4px 6px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 12px 12px; font-weight: 600; position: sticky; top: 0; white-space: nowrap; background: #16192a; z-index: 3; border-bottom: 1px solid var(--border); }
td { padding: 11px 12px; border-top: 1px solid var(--border); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(255,255,255,.035); }
td.mono, .mono { font-family: var(--mono); font-size: 12px; }
td.empty { text-align: center; color: var(--muted); padding: 40px; }
td.actions { display: flex; gap: 6px; max-width: none; }
.copy { cursor: pointer; transition: color .15s; } .copy:hover { color: var(--accent2); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.unused { color: #93c5fd; background: rgba(147,197,253,.12); }
.badge.active, .badge.ok { color: var(--ok); background: rgba(52,211,153,.12); }
.badge.expired { color: var(--warn); background: rgba(251,191,36,.12); }
.badge.blacklisted, .badge.banned, .badge.fail, .badge.danger, .badge.revoked { color: var(--bad); background: rgba(251,113,133,.12); }
.tag { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(109,94,252,.18); color: #c4bdff; }

/* apps */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.app-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.app-card header { display: flex; justify-content: space-between; align-items: center; }
.app-card h3 { font-size: 17px; }
.kv { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.kv code { font-family: var(--mono); background: rgba(0,0,0,.3); padding: 7px 10px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--border); }
.toggles { display: flex; gap: 14px; flex-wrap: wrap; }
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: rgba(255,255,255,.12); border-radius: 20px; transition: .2s; cursor: pointer; }
.switch i::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: var(--accent); } .switch input:checked + i::before { transform: translateX(16px); }
.toggle { flex-direction: row; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; }

/* logs */
tr.log-row { cursor: pointer; }
tr.log-new { animation: flash 1.4s ease; }
@keyframes flash { from { background: rgba(109,94,252,.35); } }
tr.log-detail td { background: rgba(0,0,0,.28); white-space: normal; max-width: none; padding: 16px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-grid h4 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
pre { margin: 0; font: 12px/1.55 var(--mono); background: rgba(0,0,0,.35); border: 1px solid var(--border); padding: 12px; border-radius: 10px; overflow: auto; max-height: 260px; white-space: pre-wrap; word-break: break-all; }
.j-k { color: #93c5fd; } .j-s { color: #86efac; } .j-n { color: #fcd34d; } .j-b { color: #f0abfc; }

/* modal */
.overlay { position: fixed; inset: 0; background: rgba(4,5,10,.7); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .2s; }
.modal { width: 480px; max-width: 100%; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; max-height: 90vh; overflow: auto; animation: rise .3s cubic-bezier(.2,.8,.2,1); background: #12141f; }
.modal.wide { width: 640px; }
.modal h3 { font-size: 18px; }
.modal .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
textarea.keys-out { width: 100%; height: 220px; font: 13px var(--mono); background: rgba(0,0,0,.35); border: 1px solid var(--border); color: var(--ok); border-radius: 10px; padding: 12px; resize: vertical; outline: none; }

#toasts { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast { background: #181b2c; border: 1px solid var(--border); border-left: 3px solid var(--ok); padding: 12px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: rise .3s; max-width: 340px; }
.toast.err { border-left-color: var(--bad); }

::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; } ::-webkit-scrollbar-track { background: transparent; }

/* Owner Command Center Additions */
.sys-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sys-pill span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.sys-pill b { font-size: 15px; color: var(--text); font-weight: 600; }

.tool-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tool-box h4 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--text); }

.btn.warn {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde047;
}
.btn.warn:hover {
  background: rgba(251, 191, 36, 0.28);
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.3);
}

.tg-cheat-grid {
  display: grid;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 6px;
}
.tg-cheat-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.tg-cheat-item code {
  color: var(--accent2);
  font-family: var(--mono);
  font-size: 13px;
  display: inline-block;
  margin-bottom: 4px;
}

/* TERMINAL & DOCS */
.terminal-card {
  background: #080a10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-dots .dot.red { background: #ef4444; }
.terminal-dots .dot.yellow { background: #f59e0b; }
.terminal-dots .dot.green { background: #10b981; }
.terminal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: #cbd5e1;
}
.terminal-controls {
  display: flex;
  gap: 8px;
}
.terminal-filter-bar {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-filter-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--mono);
}
.terminal-filter-bar select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
}
.terminal-console {
  height: 520px;
  overflow-y: auto;
  padding: 14px 16px;
  font-family: 'Consolas', 'Fira Code', monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: #e2e8f0;
  background: #06080e;
}
.terminal-footer {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.term-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.term-line:hover {
  background: rgba(255, 255, 255, 0.02);
}
.term-time {
  color: #64748b;
  flex-shrink: 0;
  font-size: 11px;
}
.term-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.term-tag.term-key { background: rgba(0, 229, 180, 0.15); color: #00e5b4; border: 1px solid rgba(0, 229, 180, 0.3); }
.term-tag.term-security { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.term-tag.term-auth { background: rgba(88, 101, 242, 0.18); color: #818cf8; border: 1px solid rgba(88, 101, 242, 0.35); }
.term-tag.term-system { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.term-tag.term-fail { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.term-status {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  margin-right: 6px;
  display: inline-block;
  flex-shrink: 0;
}
.term-status.status-200 { background: rgba(0, 229, 180, 0.15); color: #00e5b4; border: 1px solid rgba(0, 229, 180, 0.3); }
.term-status.status-400 { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.term-status.status-401 { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.term-status.status-403 { background: rgba(225, 29, 72, 0.2); color: #fb7185; border: 1px solid rgba(225, 29, 72, 0.4); }
.term-status.status-429 { background: rgba(249, 115, 22, 0.2); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.4); }
.term-status.status-500 { background: rgba(220, 38, 38, 0.3); color: #fca5a5; border: 1px solid #ef4444; }

.term-msg {
  word-break: break-all;
  flex: 1;
}

/* DISCORD BUILDER & GIVEAWAY STUDIO */
.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 1024px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }
}

.builder-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(13, 12, 19, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.builder-modes {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
}
.builder-mode-btn {
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #9496a8;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.builder-mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.builder-mode-btn.active {
  background: #6d5efc;
  color: #fff;
  box-shadow: 0 2px 10px rgba(109, 94, 252, 0.35);
}

.font-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  align-items: center;
}
.font-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}
.font-btn:hover {
  background: rgba(109, 94, 252, 0.3);
  border-color: #6d5efc;
  color: #fff;
}
.font-btn-font {
  background: rgba(0, 229, 180, 0.1);
  border-color: rgba(0, 229, 180, 0.25);
  color: #00e5b4;
}
.font-btn-font:hover {
  background: rgba(0, 229, 180, 0.25);
  border-color: #00e5b4;
  color: #fff;
}

.color-presets {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.color-dot:hover {
  transform: scale(1.15);
  border-color: #fff;
}

/* Discord Mock Container */
.discord-preview-wrap {
  position: sticky;
  top: 20px;
}
.discord-msg-box {
  background: #313338;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #dbdee1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.discord-msg-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.discord-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #2b2d31;
}
.discord-msg-meta {
  flex: 1;
}
.discord-bot-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #f2f3f5;
  cursor: pointer;
}
.discord-app-tag {
  background: #5865f2;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 5px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1.2;
}
.discord-timestamp {
  font-size: 11px;
  color: #949ba4;
  margin-left: 6px;
}
.discord-content-text {
  font-size: 14px;
  line-height: 1.35;
  color: #dbdee1;
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Discord Embed Container */
.discord-embed-card {
  background: #2b2d31;
  border-left: 4px solid #5865f2;
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: 8px;
  position: relative;
  max-width: 520px;
}
.discord-embed-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #f2f3f5;
  margin-bottom: 6px;
}
.discord-author-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.discord-embed-title {
  font-size: 16px;
  font-weight: 700;
  color: #f2f3f5;
  margin-bottom: 8px;
  line-height: 1.3;
}
.discord-embed-title a {
  color: #00a8fc;
  text-decoration: none;
}
.discord-embed-title a:hover {
  text-decoration: underline;
}
.discord-embed-thumb {
  position: absolute;
  top: 14px;
  right: 14px;
  max-width: 80px;
  max-height: 80px;
  border-radius: 6px;
  object-fit: cover;
}
.discord-embed-desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: #dbdee1;
  white-space: pre-wrap;
  word-break: break-word;
}
.discord-embed-desc h1 { font-size: 17px; font-weight: 700; color: #f2f3f5; margin: 10px 0 4px; }
.discord-embed-desc h2 { font-size: 15px; font-weight: 700; color: #f2f3f5; margin: 8px 0 4px; }
.discord-embed-desc h3 { font-size: 14px; font-weight: 700; color: #f2f3f5; margin: 6px 0 2px; }
.discord-embed-desc ul { margin: 4px 0 4px 18px; padding: 0; }
.discord-embed-desc li { margin: 2px 0; }
.discord-embed-desc strong { color: #f2f3f5; }
.discord-embed-desc blockquote {
  border-left: 4px solid #4e5058;
  margin: 6px 0;
  padding-left: 10px;
  color: #949ba4;
}
.discord-embed-desc code {
  background: #1e1f22;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
  color: #f2f3f5;
}

.discord-embed-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
}
.discord-field-item {
  flex: 1 1 100%;
}
.discord-field-item.inline {
  flex: 1 1 calc(33.333% - 14px);
  min-width: 110px;
}
.discord-field-name {
  font-size: 12px;
  font-weight: 700;
  color: #f2f3f5;
  margin-bottom: 2px;
}
.discord-field-val {
  font-size: 12.5px;
  color: #dbdee1;
  word-break: break-word;
}

.discord-embed-banner {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 12px;
  display: block;
}

.discord-embed-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #949ba4;
  margin-top: 12px;
}
.discord-footer-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.field-row-card {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}

