:root {
  --bg: #080809;
  --bg2: #0c0c0e;
  --card: #111113;
  --line: #222226;
  --red: #e10600;
  --red2: #ff2a33;
  --red-dim: #3a0707;
  --text: #ececee;
  --muted: #7d7d85;
  --ok: #3dd68c;
  --warn: #f5c542;
  --mono: "Share Tech Mono", ui-monospace, monospace;
  --sans: "Manrope", system-ui, sans-serif;
  --display: "Bebas Neue", Impact, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body.site {
  background: #060607;
  overflow-x: hidden;
}

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-clouds i {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  background: radial-gradient(circle, rgba(225, 6, 0, 0.38) 0%, rgba(225, 6, 0, 0.12) 42%, transparent 70%);
  animation: cloud-drift 32s ease-in-out infinite alternate;
  will-change: transform;
}
.bg-clouds i:nth-child(1) { width: 56vw; height: 38vw; top: -16%; left: -12%; opacity: 0.55; }
.bg-clouds i:nth-child(2) { width: 44vw; height: 32vw; top: 8%; right: -14%; opacity: 0.42; animation-delay: -7s; animation-duration: 38s; }
.bg-clouds i:nth-child(3) { width: 38vw; height: 28vw; bottom: -12%; left: 18%; opacity: 0.34; animation-delay: -14s; animation-duration: 42s; }
.bg-clouds i:nth-child(4) { width: 28vw; height: 22vw; top: 42%; left: -8%; opacity: 0.28; animation-delay: -20s; }
.bg-clouds i:nth-child(5) { width: 32vw; height: 24vw; bottom: 8%; right: 4%; opacity: 0.3; animation-delay: -3s; animation-duration: 36s; }
.bg-clouds i:nth-child(6) { width: 22vw; height: 18vw; top: 22%; left: 38%; opacity: 0.22; animation-delay: -11s; }
.bg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes cloud-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3.5%, 5%, 0) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-clouds i, .dot { animation: none; }
}

#app { position: relative; z-index: 1; }
#app[hidden] { display: none !important; }
a { color: var(--red2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.announce {
  display: block;
  width: 100%;
  border: 0;
  background: linear-gradient(90deg, #c40500, var(--red) 40%, #ff2030 70%, var(--red));
  color: #fff;
  text-align: center;
  font-weight: 650;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}
.announce:hover { filter: brightness(1.06); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* shield */
#shield {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(10px);
}
.shield-card { text-align: center; width: min(380px, 92vw); }
.logo-mark {
  width: 52px; height: 52px; margin: 0 auto 10px;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  font-family: var(--display); font-size: 34px; line-height: 1;
  box-shadow: 0 8px 24px rgba(225, 6, 0, 0.35);
}
.logo-mark.sm { width: 42px; height: 42px; font-size: 27px; margin: 0; border-radius: 6px; }
.logo-word {
  font-family: var(--display); letter-spacing: 0.34em;
  font-size: 36px; color: #fff;
}
.shield-title { margin-top: 20px; font-weight: 600; font-size: 14px; }
.shield-sub { color: var(--muted); margin-top: 6px; font-size: 12px; }
.bar {
  height: 2px; background: #1c1c1f;
  margin: 16px auto 0; overflow: hidden; width: 180px;
}
.bar i {
  display: block; height: 100%; width: 0%;
  background: var(--red);
  transition: width 0.2s linear;
}

/* header */
.top {
  padding: 18px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.top-right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(17,17,19,0.72);
}
.lang button {
  background: none; border: 0; padding: 6px 9px; cursor: pointer;
  color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.lang button.on { color: #fff; background: var(--red); }

.btn {
  border: 1px solid var(--line); background: rgba(17,17,19,0.85); color: #fff;
  padding: 9px 14px; cursor: pointer; font-weight: 650; font-size: 13px;
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { border-color: #3a3a42; }
.btn.primary {
  background: var(--red); border-color: var(--red);
  box-shadow: 0 8px 22px rgba(225, 6, 0, 0.28);
}
.btn.primary:hover { background: var(--red2); border-color: var(--red2); }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.auth-box { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.userchip {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  padding: 5px 12px 5px 5px;
  border-radius: 10px;
  background: rgba(17,17,19,0.72);
}
.userchip img { width: 34px; height: 34px; border-radius: 50%; }
.userchip span { font-size: 15px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.userchip button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.user-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.role-badge {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c, #99aab5);
  background: color-mix(in srgb, var(--c, #99aab5) 14%, #111113);
  border: 1px solid color-mix(in srgb, var(--c, #99aab5) 40%, #222226);
  padding: 4px 9px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
}

main { padding: 28px 0 64px; }
.online {
  margin: 0;
  color: #b4b4bc;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex: 1;
  font-weight: 600;
}
.dot {
  display: inline-block; width: 8px; height: 8px; background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(61, 214, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 auto;
}
.svc-grid.focused {
  grid-template-columns: 1fr;
  max-width: 460px;
}
.svc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: linear-gradient(180deg, rgba(24,24,28,0.92), rgba(14,14,16,0.88));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px 16px 16px;
  cursor: pointer;
  text-align: center;
  color: #eee;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(225, 6, 0, 0.2);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  transition: border-color 0.16s, transform 0.16s, box-shadow 0.16s;
}
.svc-card > * { pointer-events: none; }
.svc-card.on {
  border-color: var(--red);
  box-shadow: 0 14px 36px rgba(225, 6, 0, 0.18);
}
.svc-kicker {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.svc-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}
.svc-qty {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 3px 7px;
  line-height: 1;
}
.svc-card .svc-go {
  width: 100%;
  height: 40px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(225, 6, 0, 0.28);
}
.svc-card.on .svc-go { background: var(--red2); }
@media (hover: hover) {
  .svc-card:hover { border-color: rgba(225, 6, 0, 0.45); transform: translateY(-2px); }
  .svc-card:hover .svc-go { background: var(--red2); }
  .svc-card.on:hover { border-color: var(--red); }
}
.svc-card .svc-go svg { width: 20px; height: 20px; }
.svc-tag {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: #c8c8ce;
  background: rgba(28,28,32,0.8);
  border: 1px solid #2e2e34;
  padding: 5px 9px;
  border-radius: 6px;
  max-width: 100%;
}
.svc-card.on .svc-tag {
  color: #fff;
  background: var(--red-dim);
  border-color: #5a1010;
}
.svc-top { display: flex; align-items: center; gap: 10px; }
.svc-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #18181b; color: var(--red2);
}
.svc-icon svg { width: 18px; height: 18px; }
.svc-head { flex: 1; min-width: 0; }
.svc-head strong { display: block; font-size: 15px; color: #fff; font-weight: 650; }
.svc-desc {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.plan-grid { display: grid; gap: 8px; margin: 14px 0; }
.plan-card {
  display: block; width: 100%;
  background: var(--card); border: 1px solid var(--line);
  padding: 12px; cursor: pointer; text-align: left;
  border-radius: 10px;
}
.plan-card.on, .plan-card:hover { border-color: var(--red); }
.plan-card .svc-head strong { font-size: 14px; }
.plan-card .svc-desc { margin-top: 6px; }
.plan-card .svc-go {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.modal-card.wide { width: min(440px, 100%); }

.panel {
  max-width: 460px;
  margin: 14px auto 0;
  background: linear-gradient(180deg, rgba(20,20,22,0.94), rgba(12,12,14,0.92));
  border: 1px solid rgba(255,255,255,0.07);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.32);
  backdrop-filter: blur(12px);
}
.svc-grid.focused + .panel,
main:has(.svc-grid.focused) .panel { border-top-color: rgba(255,255,255,0.07); }
.panel h2 { font-size: 16px; margin-bottom: 4px; }
.muted { color: var(--muted); font-size: 12px; }
.lbl {
  display: block; font-size: 11px; color: var(--muted);
  margin: 0 0 6px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase;
}
.hint { color: #5c5c64; font-size: 11px; margin-top: 6px; line-height: 1.4; }
input, select, textarea {
  width: 100%; background: rgba(8,8,10,0.9); border: 1px solid var(--line);
  padding: 11px 12px; outline: none; border-radius: 8px;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,6,0,0.12); }
.row { display: flex; gap: 8px; }
#cid-wrap, #user-wrap, #text-wrap { margin-top: 12px; }
#text-wrap { margin-top: 14px; }
.chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px; min-height: 0;
}
.chip {
  display: inline-flex; align-items: center;
  background: var(--red-dim); color: #fff;
  border: 1px solid #5a1010;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 650;
  max-width: 100%;
  word-break: break-word;
}
#btn-search { margin-top: 14px; }

.video {
  display: flex; gap: 10px; margin: 14px 0 12px; align-items: center;
  background: rgba(8,8,10,0.9); border: 1px solid var(--line); padding: 8px;
  border-radius: 10px;
}
.video img { width: 52px; height: 66px; object-fit: cover; background: #111; border-radius: 6px; }
.video strong { display: block; font-size: 13px; }
.video span { display: block; font-size: 12px; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 11px !important; }

.timer {
  margin-top: 14px; text-align: center;
}
.timer-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.timer-val {
  display: block;
  font-family: var(--mono); font-size: 34px; color: var(--red2);
  letter-spacing: 0.12em;
}
.err { color: var(--red2); font-size: 12px; margin-top: 10px; }
.ok { color: var(--ok); font-size: 12px; margin-top: 10px; }
.tiny { font-size: 12px; color: var(--muted); margin-top: 12px; }

footer {
  padding: 0 0 32px;
  display: flex; justify-content: space-between;
  color: #55555c; font-size: 11px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}

.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,0.72); display: grid; place-items: center; padding: 16px;
  backdrop-filter: blur(8px);
}
.modal[hidden], #shield[hidden], #captcha-modal[hidden] { display: none !important; }
.modal-card {
  width: min(420px, 100%); background: var(--bg2);
  border: 1px solid var(--line); padding: 22px; position: relative;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.modal-card h3 { margin-bottom: 6px; font-size: 16px; }
.x {
  position: absolute; top: 8px; right: 10px;
  background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer;
  line-height: 1;
}
.perks { margin: 12px 0 18px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.perks li { margin: 6px 0; }
.pay-grid { display: grid; gap: 8px; }
.pay {
  text-align: left; background: var(--card); border: 1px solid var(--line);
  padding: 12px; cursor: pointer;
  border-radius: 10px;
}
.pay:hover { border-color: var(--red); }
.pay strong { display: block; font-size: 13px; }
.pay span { color: var(--muted); font-size: 12px; }
#hcaptcha-box { display: flex; justify-content: center; margin: 16px 0; min-height: 78px; }

.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: #111113; border: 1px solid var(--line); color: #fff;
  padding: 9px 16px; z-index: 90; font-size: 13px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.toast.bad { border-color: var(--red); }
.toast.good { border-color: var(--ok); }

.setup { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.setup .panel { width: min(480px, 100%); }
.setup label { display: block; margin: 12px 0 6px; font-size: 12px; color: var(--muted); }
.setup .logo-mark { margin-bottom: 6px; }
.setup h2 { margin: 10px 0; }

/* admin */
.admin-body { display: block; }
.gate { min-height: 100vh; display: grid; place-items: center; }
#admin:not([hidden]) { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
aside {
  background: #0b0b0d; border-right: 1px solid var(--line);
  padding: 18px 12px; display: flex; flex-direction: column; gap: 18px;
}
aside nav { display: flex; flex-direction: column; gap: 4px; }
aside nav button {
  background: transparent; border: 0; text-align: left; padding: 9px 12px;
  border-radius: 8px; color: var(--muted); cursor: pointer;
}
aside nav button.on, aside nav button:hover { background: var(--red-dim); color: #fff; }
.aside-user { margin-top: auto; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.aside-user img { width: 28px; height: 28px; border-radius: 50%; }
.admin-main { padding: 0 0 40px; min-width: 0; }
.admin-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.admin-top h1 { font-size: 20px; }
.tab-body { padding: 22px 24px; overflow-x: auto; }
.admin-top { gap: 10px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px;
}
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
.table th { color: var(--muted); font-weight: 600; }
.card-block { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }

body.bot-page #app,
body.bot-page #app[hidden] { display: block !important; min-height: 100vh; }
body.bot-page #shield { display: none !important; }
body.bot-page .wrap {
  max-width: 1280px;
  width: 100%;
  padding: 0 18px 24px;
}
body.bot-page .bot-main { display: block; width: 100%; }
body.bot-page .panel {
  max-width: none;
  width: 100%;
  margin: 0;
}
.bot-wide-card {
  max-width: 720px !important;
  width: 100%;
  min-height: 0;
  margin: 24px auto !important;
}
.bot-wide-card h2 { font-size: 28px; margin-bottom: 8px; }
.bot-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.bot-slot-title {
  margin: 16px 0 8px;
  font-size: 14px;
}
.bot-slot {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
}
.bot-slot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}
.bot-slot-head .bot-pill {
  margin-left: auto;
}
.bot-slot textarea {
  width: 100%;
  min-height: 72px;
  margin-bottom: 8px;
}
.bot-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bot-slot-actions .btn {
  flex: 1 1 auto;
  min-width: 88px;
}
#slot-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
}
#slot-modal-bg[hidden] { display: none; }
.slot-modal {
  width: min(560px, 100%);
  max-height: 80vh;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.slot-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
#slot-modal-body {
  padding: 12px 14px 16px;
  overflow: auto;
  min-height: 220px;
}
#slot-modal-body .bot-log {
  min-height: 240px;
  max-height: 52vh;
}
.bot-plan {
  min-height: 140px;
  padding: 18px;
}
.bot-plan em {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  font-style: normal;
  font-weight: 800;
  color: #fff;
}
.bot-qty-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: left;
  cursor: default;
}
.bot-qty-card .bot-step { margin: 4px 0; }
.bot-qty-card em { margin-top: 2px; }
.bot-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.bot-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(20,20,22,0.94), rgba(12,12,14,0.92));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 14px 16px;
}
.bot-toolbar h2 { font-size: 22px; }
.bot-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bot-pill {
  background: rgba(8,8,10,0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: #c8c8ce;
}
.bot-pill.on { border-color: var(--red); color: #fff; }
.bot-pill.on i, .live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #555;
  margin-right: 6px;
}
.bot-pill.on i, .live-dot.on {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: live-pulse 1.2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.bot-dash {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(240px, 300px);
  gap: 12px;
  min-height: 0;
  align-items: start;
}
.bot-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.bot-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.bot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bot-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  background: rgba(8,8,10,0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.bot-step button {
  background: var(--red-dim);
  border: 1px solid #5a1010;
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.bot-step span { font-size: 13px; color: #ddd; }
.bot-log-card, .bot-comments-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}
.bot-log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.bot-log {
  flex: 1;
  min-height: 200px;
  max-height: 480px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: #d4d4da;
  background: rgba(6,6,8,0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.log-line {
  display: grid;
  grid-template-columns: 78px 72px 1fr;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.log-line time { color: #6d6d74; }
.log-line b { color: var(--red2); font-weight: 700; }
.log-line.ok b { color: var(--ok); }
.log-line.error b, .log-line.bad b { color: var(--red2); }
.log-line.warn b { color: var(--warn); }
#cookie-box { min-height: 110px; resize: vertical; margin-bottom: 8px; }
#btn-cookie, #btn-ban { margin-top: 10px; }
#bot-comments { display: flex; flex-direction: column; gap: 8px; overflow: auto; min-height: 0; max-height: 420px; }
.comment-row {
  display: flex;
  gap: 10px;
  text-align: left;
  background: rgba(8,8,10,0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.comment-row:hover { border-color: var(--red); }
.comment-row em { font-style: normal; color: #ddd; font-size: 13px; }
@media (max-width: 1100px) {
  .bot-dash { grid-template-columns: 1fr; min-height: 0; }
  .bot-log { min-height: 200px; max-height: 360px; }
  .bot-plans { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .log-line { grid-template-columns: 62px 54px 1fr; font-size: 11px; }
  .bot-toolbar { align-items: flex-start; }
}

@media (max-width: 800px) {
  #admin:not([hidden]) { grid-template-columns: 1fr; }
  aside { flex-direction: row; flex-wrap: wrap; align-items: center; }
  aside nav { flex-direction: row; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; }
  .online { order: 3; flex: 1 1 100%; justify-content: flex-start; font-size: 15px; }
  .svc-grid { grid-template-columns: 1fr; }
  .lang button { padding: 5px 6px; }
  .btn.ghost { padding: 7px 10px; }
}
