/* ---------- Plair design tokens ---------- */
:root {
  --bg: #0f172a;
  --bg-2: #111c33;
  --card: #15213b;
  --card-2: #1b2a48;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(56, 189, 248, 0.28);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --faint: #8291a7;
  --accent: #6366f1;
  --accent-2: #38bdf8;
  --accent-3: #8b5cf6; /* violet */
  --violet-soft: rgba(139, 92, 246, 0.14);
  --grad: linear-gradient(135deg, #38bdf8 0%, #6366f1 55%, #8b5cf6 100%);
  --accent-glow: rgba(99, 102, 241, 0.34);
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    radial-gradient(900px 500px at 15% -10%, rgba(56, 189, 248, 0.13), transparent 60%),
    radial-gradient(800px 460px at 100% 6%, rgba(139, 92, 246, 0.17), transparent 62%);
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: #fff; box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 10px 40px -6px var(--accent-glow); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-small { padding: 8px 16px; font-size: 14px; border-radius: 999px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(15, 23, 42, .72); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a.link { color: var(--muted); font-size: 15px; }
.nav a.link:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--accent-2); font-size: 13px; font-weight: 600; background: rgba(56,189,248,.08);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -.035em; margin: 20px 0 18px; }
.grad { background: linear-gradient(120deg, #7dd3fc, #818cf8 50%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--faint); }

/* fake Discord sidebar in the hero */
.mock {
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 20px; padding: 18px;
  box-shadow: 0 30px 80px -30px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.04);
  font-size: 14px; position: relative;
}
.mock::before {
  content: ""; position: absolute; inset: -1px; border-radius: 20px; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(56,189,248,.55), transparent 40%, transparent 70%, rgba(139,92,246,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.mock-head strong { font-size: 15px; }
.pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(52,211,153,.12); color: var(--good); font-weight: 600; }
.mock-cat { color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 12px 6px 4px; }
.mock-ch { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; color: var(--muted); opacity: 0; animation: pop .4s ease forwards; }
.mock-ch .hash { color: var(--faint); font-family: var(--mono); width: 14px; text-align: center; }
.mock-ch .lock { margin-left: auto; font-size: 11px; color: var(--faint); }
.mock-ch:hover { background: rgba(255,255,255,.04); color: var(--text); }
@keyframes pop { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { margin: 14px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: rgba(56,189,248,.12); border: 1px solid var(--line-strong);
}

.tpl-card .tpl-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--line); }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 24px; top: 24px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--grad); color: #fff;
}
.step h3 { margin-top: 0; }

.cta-band {
  text-align: center; padding: 56px 24px; border-radius: 24px; border: 1px solid var(--line-strong);
  background: radial-gradient(600px 220px at 50% 0%, rgba(139,92,246,.24), transparent 70%), var(--bg-2);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -.03em; }
.cta-band p { color: var(--muted); margin: 0 0 28px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--faint); font-size: 14px; margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- dashboard ---------- */
.dash { padding: 40px 0 80px; min-height: calc(100vh - 160px); }
.dash h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 6px; }
.dash .sub { color: var(--muted); margin: 0 0 32px; }

.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-weight: 600; font-size: 15px; }

.login-box { max-width: 460px; margin: 60px auto; text-align: center; padding: 44px 32px; }
.login-box img { width: 64px; height: 64px; margin: 0 auto 18px; }
.login-box h1 { font-size: 30px; }
.login-box p { color: var(--muted); margin: 8px 0 28px; }

.list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.list-head .refresh-btn { margin-top: 8px; flex-shrink: 0; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.server-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; cursor: default; }
.server-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.server-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 700; font-size: 18px; overflow: hidden; flex-shrink: 0; }
.server-icon img { width: 100%; height: 100%; object-fit: cover; }
.server-name { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status-dot.on { background: var(--good); box-shadow: 0 0 8px var(--good); }
.server-card .btn { justify-content: center; }

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 20px; font-size: 15px; background: none; border: 0; cursor: pointer; padding: 0; font-family: var(--font); }
.back:hover { color: var(--text); }
.panel-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.panel-head .server-icon { width: 64px; height: 64px; font-size: 22px; }

.notice { padding: 14px 18px; border-radius: 12px; font-size: 15px; margin-bottom: 20px; border: 1px solid; }
.notice.warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.3); color: #fde68a; }
.notice.bad { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.3); color: #fecaca; }
.notice.good { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.3); color: #a7f3d0; }

.layout-2 { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: start; }
.tpl-pick { display: grid; gap: 12px; }
.tpl-option {
  text-align: left; width: 100%; font-family: var(--font); color: var(--text); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  transition: border-color .15s, background .15s;
}
.tpl-option:hover { border-color: var(--line-strong); }
.tpl-option.selected { border-color: var(--accent-3); background: var(--violet-soft); box-shadow: 0 0 0 3px rgba(139,92,246,.18); }
.tpl-option strong { display: block; font-size: 16px; }
.tpl-option span { color: var(--muted); font-size: 14px; }

.preview h3 { margin: 0 0 4px; }
.preview .muted { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.role-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.role { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.role i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.preview-cat { color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 14px 0 4px; }
.preview-ch { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; padding: 3px 0; }
.preview-ch .hash { width: 14px; text-align: center; color: var(--faint); font-family: var(--mono); }
.preview-ch .flag { margin-left: auto; font-size: 11px; color: var(--faint); }
.preview-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.preview-actions small { color: var(--faint); max-width: 300px; }

/* tabs */
.tabs { display: flex; gap: 6px; margin: 8px 0 20px; border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); font: 600 15px/1 var(--font); padding: 12px 14px; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent-2); }

/* danger button */
.btn-danger { background: #dc2626; color: #fff; box-shadow: 0 8px 26px -10px rgba(220, 38, 38, .6); }
.btn-danger:hover { background: #ef4444; }

/* clean up */
.clean-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  position: sticky; top: 76px; z-index: 5;
}
.clean-bar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clean-count { color: var(--muted); font-size: 14px; margin-left: 6px; }
.clean-card h3 { margin: 0 0 10px; font-size: 17px; }
.clean-card .muted { color: var(--muted); font-size: 14px; }
.check-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px;
  color: var(--muted); font-size: 14px; cursor: pointer; min-width: 0;
}
.check-row:hover { background: rgba(255,255,255,.04); color: var(--text); }
.check-row input { width: 16px; height: 16px; accent-color: #dc2626; flex-shrink: 0; cursor: pointer; }
.check-row .hash { width: 18px; text-align: center; color: var(--faint); font-family: var(--mono); flex-shrink: 0; }
.check-row .check-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-row .flag { margin-left: auto; font-size: 11px; color: var(--faint); text-align: right; padding-left: 8px; }
.check-row.disabled { cursor: not-allowed; opacity: .55; }
.check-row.disabled input { cursor: not-allowed; }
.cat-row { margin-top: 10px; color: var(--text); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.child-row { padding-left: 30px; }
.role-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; margin: 0 4px; }
.confirm-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.confirm-label strong { color: var(--text); }
.confirm-input {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: 15px var(--font); margin-bottom: 20px;
}
.confirm-input:focus { outline: none; border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.2); }

/* backups */
.backup-list { display: grid; gap: 10px; }
.backup-row {
  width: 100%; text-align: left; font-family: var(--font); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px;
}
.backup-row:hover { border-color: var(--accent-2); }
.backup-title { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.backup-meta { color: var(--muted); font-size: 14px; }
.backup-counts { color: var(--faint); font-size: 13px; }
.tag-deleted {
  margin-left: auto; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 6px; background: rgba(248,113,113,.14); color: var(--bad); border: 1px solid rgba(248,113,113,.3);
}
.preview-cat .tag-deleted { margin-left: 10px; }
.preview-cat { display: flex; align-items: center; }
.is-deleted > span:not(.tag-deleted):not(.hash) { text-decoration: line-through; text-decoration-color: rgba(248,113,113,.6); }
.is-deleted { color: var(--faint); }
.preview-ch .role-dot { margin: 0 4px 0 2px; }

/* protection & logs */
.stack { display: grid; gap: 20px; align-content: start; }
.stack > div:empty { display: none; }
.card > .stack + .btn { margin-top: 14px; }
/* Even spacing between the big blocks of a dashboard page (margins collapse, so this never doubles up). */
.side-content > div > :is(.card, .notice, .currency-row, .plan-grid, .layout-2, .stack) + :is(.card, .notice, .currency-row, .plan-grid, .layout-2, .stack) { margin-top: 20px; }
.side-content > div > .currency-row + .plan-grid { margin-top: 12px; }
.form-card h3 { margin: 0 0 14px; font-size: 17px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; display: block; }
.field .field-label { margin-bottom: 0; }
.field-help { font-size: 13px; color: var(--faint); margin: 0; }
.input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: 14px var(--font);
}
.input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(56,189,248,.22); }
.input:disabled { opacity: .6; cursor: not-allowed; }
.input.invalid { border-color: var(--bad); }
.input-small { width: 110px; }
select.input { cursor: pointer; }
.inline-fields { display: flex; gap: 16px; flex-wrap: wrap; }
.switch {
  appearance: none; -webkit-appearance: none; width: 44px; height: 24px; border-radius: 999px; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--line-strong); position: relative; transition: background .2s; flex-shrink: 0;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted); transition: transform .2s, background .2s;
}
.switch:checked { background: var(--grad); border-color: var(--accent); }
.switch:checked::after { transform: translateX(20px); background: #fff; }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.trusted-list { display: grid; gap: 6px; margin-bottom: 12px; }
.trusted-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14px; }
.trusted-row code { color: var(--faint); font-family: var(--mono); font-size: 12px; }
.trusted-row .btn { margin-left: auto; }
.add-row { display: flex; gap: 8px; margin-bottom: 8px; }
.save-bar { display: flex; justify-content: flex-end; margin-top: 18px; }
.incident { display: grid; gap: 8px; }
.incident-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.incident-details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.incident-details .role-list { margin: 10px 0 0; }
.pill-good { background: rgba(52,211,153,.12); color: var(--good); }
.pill-warn { background: rgba(251,191,36,.12); color: var(--warn); }
.pill-bad { background: rgba(248,113,113,.12); color: var(--bad); }

/* restore */
.check-row.restorable input { accent-color: var(--accent-2); }
.check-row.exists { cursor: default; opacity: .6; }
.check-row.exists:hover { background: none; color: var(--muted); }
.check-spacer { width: 16px; flex-shrink: 0; }
.check-row .tag-deleted { margin-left: auto; }

.result-list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(2,6,23,.72); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { max-width: 440px; width: 100%; padding: 28px; }
.modal h3 { margin: 0 0 8px; font-size: 20px; }
.modal p { color: var(--muted); margin: 0 0 24px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; justify-content: center; padding: 80px 0; }
.loading .spinner { width: 32px; height: 32px; border-color: var(--line-strong); border-top-color: var(--accent-2); }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .layout-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav a.link { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .lead { font-size: 17px; }
  section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .mock-ch { opacity: 1; }
}

.card p.field-help { font-size: 13px; color: var(--faint); margin: 0 0 12px; }

/* tickets */
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); flex-wrap: wrap; }
.seg-btn { background: none; border: 0; color: var(--muted); padding: 7px 14px; font-size: 14px; border-radius: 999px; }
.seg-btn:hover { color: var(--text); background: rgba(255,255,255,.04); }
.seg-btn.active { color: #fff; background: var(--grad); box-shadow: none; }
.textarea { resize: vertical; min-height: 70px; line-height: 1.5; font-family: var(--font); }
.faq-list { display: grid; gap: 14px; margin: 16px 0; }
.faq-entry { padding: 18px 20px; }
.faq-entry .field:last-child { margin-bottom: 0; }
.faq-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--muted); }
.test-result .notice { white-space: pre-wrap; margin: 12px 0 0; }
.transcript { display: grid; gap: 4px; padding: 16px; }
.msg { padding: 10px 12px; border-radius: 12px; }
.msg-bot { background: rgba(139,92,246,.07); border: 1px solid rgba(139,92,246,.2); }
.msg-staff { background: rgba(52,211,153,.06); border: 1px solid rgba(52,211,153,.18); }
.msg-head { display: flex; align-items: baseline; gap: 8px; font-size: 14px; margin-bottom: 2px; }
.msg-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.msg-time { margin-left: auto; font-size: 12px; color: var(--faint); }
.msg-body { color: var(--muted); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 600px) { .clean-bar { position: static; } }

/* server page sidebar */
.server-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
.side-nav {
  position: sticky; top: 92px; display: grid; gap: 18px; padding: 16px 12px;
  background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius);
}
.side-group { display: grid; gap: 2px; }
.side-title { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding: 0 10px 6px; }
.side-link {
  text-align: left; background: none; border: 0; border-radius: 10px; padding: 9px 12px; cursor: pointer;
  color: var(--muted); font: 500 15px/1.2 var(--font); position: relative; transition: background .15s, color .15s;
}
.side-link:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side-link.active { background: var(--violet-soft); color: var(--text); font-weight: 600; }
.side-link.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-3));
}
.side-content { min-width: 0; }
.side-content > div > .layout-2:first-child, .side-content .notice:first-child { margin-top: 0; }
.bar-title { font-size: 16px; }
.server-layout .clean-bar { top: 84px; }

.side-toggle { display: none; }
@media (max-width: 900px) {
  .server-layout { grid-template-columns: 1fr; gap: 16px; }
  .side-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left;
  }
  .side-toggle .side-toggle-hint { color: var(--muted); font-weight: 500; font-size: 13px; }
  .side-toggle .caret { margin-left: auto; color: var(--muted); transition: transform .2s; }
  .server-layout.menu-open .side-toggle .caret { transform: rotate(180deg); }
  .side-nav { position: static; display: none; }
  .server-layout.menu-open .side-nav { display: grid; }
}

/* build add-ons */
.addon-box { padding: 18px 20px; margin-top: 6px; }
.addon-box h3 { margin: 0 0 4px; font-size: 16px; }
.addon-box > .field-help { margin-bottom: 10px; }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.addon-row strong { display: block; font-size: 15px; }
.addon-row span { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.addon-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #c4b5fd; background: var(--violet-soft); border: 1px solid rgba(139,92,246,.3); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.preview-ch.is-addon > span:nth-child(2) { color: var(--text); }
.preview-cat.is-addon { color: #c4b5fd; }
.role.is-addon { border-color: rgba(139,92,246,.4); }

/* "#" channel picker */
.picker-wrap { position: relative; }
.picker-wrap .textarea { width: 100%; }
.picker {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 280px; overflow-y: auto;
  background: var(--card-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6);
}
.picker-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--muted); }
.picker-item .hash { width: 16px; text-align: center; color: var(--faint); font-family: var(--mono); }
.picker-item.active, .picker-item:hover { background: var(--violet-soft); color: var(--text); }
.picker-name { font-weight: 600; }
.picker-cat { margin-left: auto; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }

/* ---------- landing demo ---------- */
.demo { display: grid; gap: 14px; }
.demo .mock { height: 548px; display: flex; flex-direction: column; overflow: hidden; }
#demo-stage { position: relative; flex: 1; }
#demo-stage.fade-in { animation: demoFade .35s ease; }
@keyframes demoFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pill-info { background: var(--violet-soft); color: #c4b5fd; }
.mock-ch .nm { transition: color .3s; }
.mock-ch.gone { opacity: 1; animation: none; color: var(--bad); }
.mock-ch.gone .nm { text-decoration: line-through; color: var(--bad); }
.mock-ch.gone { animation: shake .3s ease, fadeOut .5s .25s ease forwards; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes fadeOut { to { opacity: .25; } }
.mock-ch.returned { opacity: 1; animation: pop .35s ease forwards; }
.mock-ch.returned .nm { color: #a7f3d0; }
.toast { position: absolute; left: 0; right: 0; bottom: 4px; z-index: 2; font-size: 13px; padding: 9px 12px; border-radius: 10px; border: 1px solid; animation: demoFade .3s ease; backdrop-filter: blur(6px); }
.toast-bad { background: rgba(60,20,30,.92); border-color: rgba(248,113,113,.35); color: #fecaca; }
.toast-info { background: rgba(40,28,80,.92); border-color: rgba(139,92,246,.35); color: #ddd6fe; }
.toast-good { background: rgba(14,48,40,.92); border-color: rgba(52,211,153,.35); color: #a7f3d0; }

.chat { display: grid; gap: 14px; padding: 8px 4px; }
.chat-msg { display: flex; gap: 12px; animation: demoFade .35s ease; }
.chat-av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; background: #334155; color: #fff; }
.chat-av-plair { background: #0d1224 url(/favicon.svg) center/62% no-repeat; border: 1px solid var(--line-strong); }
.chat-body { min-width: 0; }
.chat-name { font-weight: 600; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.chat-tag { font-size: 10px; background: #5865f2; color: #fff; border-radius: 4px; padding: 1px 4px; }
.chat-text { font-size: 14px; color: var(--muted); line-height: 1.5; }
.chat-embed { margin-top: 4px; background: #0b1124; border-left: 3px solid var(--accent-3); border-radius: 6px; padding: 10px 12px; }
.chat-embed-title { font-weight: 600; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.chat-foot { font-size: 11px; color: var(--faint); margin-top: 6px; }
.chan { background: rgba(88,101,242,.22); color: #c9cdfb; border-radius: 4px; padding: 0 3px; }
.dots { color: var(--faint); letter-spacing: 2px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.bk { padding: 6px 2px; }
.bk-label { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.bk-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; margin-bottom: 18px; }
.bk-fill { height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width 1.4s cubic-bezier(.4,0,.2,1); }
.bk-list { display: grid; gap: 8px; }
.bk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.bk-new { border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.07); animation: demoFade .4s ease; }
.bk-title { font-weight: 600; font-size: 14px; color: var(--text); }
.bk-meta { font-size: 12px; color: var(--faint); }
.bk-count { font-size: 12px; color: var(--faint); white-space: nowrap; }

.demo-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.demo-tab { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); font: 600 13px var(--font); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.demo-tab:hover { color: var(--text); }
.demo-tab.active { color: #fff; border-color: transparent; background: var(--grad); }
@media (max-width: 600px) { .demo .mock { height: 548px; } .bk-count { display: none; } }
#demo-stage { min-height: 0; overflow: hidden; }
.demo .mock-ch { padding: 3px 8px; }
.demo .mock-cat { margin-top: 9px; }

/* longer ticket conversation: newest at the bottom, older ones scroll up */
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 4px 2px 6px; overflow: hidden; }
.chat-msg { flex-shrink: 0; }
.chat-av { width: 32px; height: 32px; font-size: 14px; }
.chat-av-staff { background: #059669; }
.chat-tag-staff { background: #059669; }
.chat-embed { padding: 8px 11px; }
.chat-embed-warn { border-left-color: var(--warn); }
.ping { background: rgba(251,191,36,.18); color: #fde68a; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.chat-text { font-size: 13.5px; }
.chat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(var(--bg-2), transparent); z-index: 1; pointer-events: none; }

/* ---------- giveaways ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { padding-right: 4px; }
.chip-x { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; border-radius: 6px; }
.chip-x:hover { color: var(--bad); background: rgba(248,113,113,.1); }
.input-chip { width: auto; min-width: 150px; padding: 6px 10px; font-size: 13px; border-radius: 999px; }
.input-auto { width: auto; display: inline-block; padding: 4px 8px; margin: 0 4px; font-size: 13px; }
.field > .input-auto { padding: 10px 12px; margin: 0; font-size: 14px; }
.form-card .chips + .field { margin-top: 14px; }
.form-card > .chips { margin: -6px 0 16px; }
.bonus-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.bonus-row { display: grid; grid-template-columns: 1fr 86px auto; gap: 8px; align-items: center; }
.input-mult { font-weight: 700; color: #f9a8d4; }
.gw-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.gw-side { position: sticky; top: 170px; }
.gw-card { gap: 10px; }
.gw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gw-stat { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.gw-stat strong { display: block; font-size: 18px; }
.gw-stat span { font-size: 12px; color: var(--faint); }
.pill-info { background: var(--violet-soft); color: #c4b5fd; }

/* Discord-like preview */
.gw-preview { background: #313338; border-radius: 14px; padding: 14px; }
.dc-embed { background: #2b2d31; border-left: 4px solid #f472b6; border-radius: 4px; padding: 10px 14px 12px 12px; color: #dbdee1; font-family: "gg sans", "Segoe UI", system-ui, sans-serif; }
.dc-author { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #fff; }
.dc-author img { width: 22px; height: 22px; border-radius: 50%; background: #0d1224; padding: 3px; }
.dc-title { font-weight: 700; color: #fff; margin: 8px 0 6px; font-size: 16px; word-break: break-word; }
.dc-text { font-size: 13.5px; line-height: 1.45; word-break: break-word; }
.dc-text strong { color: #fff; }
.dc-field { margin-top: 10px; }
.dc-fname { font-weight: 700; color: #fff; font-size: 13.5px; margin-bottom: 2px; }
.dc-banner { width: 100%; border-radius: 4px; margin-top: 12px; display: block; }
.dc-foot { font-size: 11px; color: #949ba4; margin-top: 8px; }
.dc-button { display: inline-flex; margin-top: 8px; background: #5865f2; color: #fff; font: 600 13.5px "gg sans", system-ui, sans-serif; padding: 7px 16px; border-radius: 4px; }
.gw-odds { margin-top: 10px !important; }
@media (max-width: 900px) { .gw-layout { grid-template-columns: 1fr; } .gw-side { position: static; } .gw-stats { grid-template-columns: repeat(2, 1fr); } }
.bonus-rows + .btn { margin-bottom: 16px; }

/* ---------- landing demo: giveaways ---------- */
.gw-card { background: #0b1124; border-left: 3px solid var(--accent-3); border-radius: 8px; overflow: hidden; animation: demoFade .35s ease; transition: border-color .4s; }
.gw-card.gw-ended { border-left-color: var(--good); }
.gw-banner { display: block; width: 100%; height: 74px; object-fit: cover; }
.gw-body { padding: 10px 12px 12px; display: grid; gap: 8px; }
.gw-title { font-weight: 700; color: var(--text); font-size: 15px; }
.gw-info { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.gw-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.gw-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(52,211,153,.1); color: #a7f3d0; }
.gw-tag-bonus { background: var(--violet-soft); color: #c4b5fd; }
.gw-btn { justify-self: start; font-size: 13px; font-weight: 600; color: #fff; background: #5865f2; border-radius: 6px; padding: 6px 14px; transition: transform .12s, filter .12s; }
.gw-btn.gw-press { transform: scale(.94); filter: brightness(1.2); }
.gw-winner { font-size: 13.5px; color: var(--text); animation: demoFade .4s ease; }
.gw-feed { display: grid; gap: 6px; margin-top: 12px; }
.gw-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 11px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 13px; animation: pop .3s ease; transition: background .1s, border-color .1s; }
.gw-name { font-weight: 600; color: var(--text); }
.gw-n { color: var(--faint); }
.gw-blocked { border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.06); }
.gw-blocked .gw-name { color: var(--faint); text-decoration: line-through; }
.gw-why { color: #fca5a5; font-size: 12px; }
.gw-hot { border-color: rgba(139,92,246,.6); background: var(--violet-soft); }
.gw-win { border-color: rgba(52,211,153,.6); background: rgba(52,211,153,.12); }
.gw-win .gw-n { color: #a7f3d0; }

/* ---------- members & security pages ---------- */
.save-bar { gap: 10px; flex-wrap: wrap; }
.btn-tiny { padding: 4px 10px; font-size: 12.5px; border-radius: 999px; }
.status-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; border-left: 4px solid var(--faint); }
.status-good { border-left-color: var(--good); background: linear-gradient(90deg, rgba(52,211,153,.08), transparent 60%), var(--card); }
.status-warn { border-left-color: var(--warn); background: linear-gradient(90deg, rgba(251,191,36,.08), transparent 60%), var(--card); }
.status-bad { border-left-color: var(--bad); background: linear-gradient(90deg, rgba(248,113,113,.12), transparent 60%), var(--card); }
.status-off { border-left-color: var(--accent-3); }
.status-title { font-weight: 700; font-size: 16px; }
.status-text { font-size: 14px; color: var(--muted); max-width: 640px; margin-top: 2px; }
.status-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-actions .input { width: auto; }

.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.choice { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.choice strong { font-size: 14.5px; }
.choice span { font-size: 12.5px; color: var(--faint); line-height: 1.45; }
.choice:hover { border-color: var(--line-strong); }
.choice.active { border-color: var(--accent-3); background: var(--violet-soft); box-shadow: 0 0 0 1px var(--accent-3) inset; }
.field .choice-cards { margin-bottom: 0; }

.toggle-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.mini-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.ph-bar { margin: -8px 0 14px; align-items: center; }
.ph-bar .btn-tiny { font-family: var(--mono); font-size: 12px; }

.event-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.event-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); cursor: pointer; }
.event-tile strong { display: block; font-size: 14px; }
.event-tile span { font-size: 12.5px; color: var(--faint); }

.sr-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.sr-row { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.sr-line { display: flex; gap: 6px; align-items: center; }
.sr-line .input { min-width: 0; }
.sr-line select.input:not(.input-auto) { flex: 1; }
.sr-line input.input { flex: 1; }
.input-emoji { flex: 0 0 64px !important; text-align: center; }
.sr-line .input-auto { margin: 0; padding: 8px; }
.role.is-bad { border-color: rgba(248,113,113,.5); color: #fca5a5; }

/* Discord look-alike previews */
.dc-embed.v2 { position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; border-left: 4px solid #8b5cf6; }
.dc-embed.v2 > .dc-body { min-width: 0; }
.dc-embed.v2 > .dc-banner, .dc-embed.v2 > .dc-foot { grid-column: 1 / -1; }
.dc-embed.dim { opacity: .45; }
.dc-thumb { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: 24px; color: #fff; margin-top: 4px; }
.dc-sub { font-size: 11.5px; color: #949ba4; }
.dc-text > div { min-height: 1em; }
.dc-mention { background: rgba(88,101,242,.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dc-plain { color: #dbdee1; font-size: 14px; font-family: "gg sans", "Segoe UI", system-ui, sans-serif; }
.dc-dm { background: #2b2d31; border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; }
.dc-ephemeral { background: #2b2d31; border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; justify-items: start; color: #dbdee1; }
.dc-captcha { width: 100%; max-width: 300px; border-radius: 6px; display: block; }
.dc-components { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-components .dc-button { margin-top: 0; }
.dc-button.dc-secondary { background: #4e5058; }
.dc-button.dc-success { background: #248046; }
.dc-button.dc-danger { background: #da373c; }
.dc-button.dc-primary { background: #5865f2; }
.dc-select { display: flex; justify-content: space-between; width: 100%; max-width: 400px; background: #1e1f22; color: #949ba4; border-radius: 4px; padding: 9px 12px; font: 14px "gg sans", system-ui, sans-serif; }
@media (max-width: 600px) { .sr-line { flex-wrap: wrap; } .status-actions { width: 100%; } }

/* ---------- premium ---------- */
.meter { height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; margin: 6px 0 10px; }
.meter-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width .6s ease; }
.meter-warn .meter-fill { background: linear-gradient(90deg, var(--warn), var(--bad)); }
.meter-label { font-size: 13.5px; color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.plan-card.featured { border-color: var(--accent-3); box-shadow: 0 0 0 1px var(--accent-3) inset, 0 20px 50px -25px var(--accent-glow); }
.plan-card.current { background: linear-gradient(180deg, rgba(139,92,246,.10), transparent 70%), var(--card); }
.plan-badge { position: absolute; top: -11px; right: 16px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; }
.plan-name { font-size: 18px; font-weight: 700; }
.plan-price { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.plan-perks { list-style: none; padding: 0; margin: 0 0 6px; display: grid; align-content: start; gap: 6px; font-size: 14px; color: var(--muted); flex: 1; }
.plan-perks li { position: relative; padding-left: 20px; }
.plan-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.plan-current { font-weight: 600; color: var(--good); }
.plan-card .btn { align-self: stretch; }
.secure-note { display: grid; gap: 4px; border-left: 4px solid var(--good); margin-bottom: 20px; }
.secure-note p { margin: 0; color: var(--muted); font-size: 14px; }
.form-card h3 .pill { font-size: 11px; vertical-align: middle; }
.notice .btn { margin-left: 8px; }

/* ---------- legal pages ---------- */
.legal { max-width: 780px; padding-top: 40px; padding-bottom: 40px; }
.legal section { padding: 0; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin: 4px 0 6px; letter-spacing: -.02em; }
.legal .legal-kicker { color: #a78bfa; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; margin: 0; }
.legal-updated { color: var(--faint); margin: 0 0 28px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal h3 { font-size: 16px; margin: 20px 0 6px; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal a { color: #c4b5fd; }
.legal section { scroll-margin-top: 90px; }
.legal-summary { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent-3); border-radius: var(--radius); padding: 6px 24px 14px; }
.legal-summary h2 { margin-top: 18px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.legal-toc a { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--text); border-color: var(--line-strong); }
.site-footer a { color: var(--muted); }
@media (max-width: 640px) { .site-footer a { display: inline-block; padding: 8px 2px; } }
.legal-note { margin: -8px 0 16px; }
.legal-note a { color: #c4b5fd; }

/* ---------- server designer ---------- */
.dz-layout { align-items: start; }
.dz-tpls { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.dz-tpl { text-align: left; display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.dz-tpl strong { font-size: 14.5px; }
.dz-tpl span { font-size: 12.5px; color: var(--faint); line-height: 1.4; }
.dz-tpl:hover, .dz-preset:hover { border-color: var(--line-strong); }
.dz-tpl.active, .dz-preset.active { border-color: var(--accent-3); background: var(--violet-soft); box-shadow: 0 0 0 1px var(--accent-3) inset; }
.dz-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.dz-preset { text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.dz-preset strong { font-size: 14.5px; }
.dz-preset-desc { font-size: 12px; color: var(--faint); line-height: 1.4; }
.dz-mini { background: #2b2d31; border-radius: 8px; padding: 8px 8px 6px; font-family: "gg sans", "Segoe UI", system-ui, sans-serif; min-width: 0; }
.dz-mini-cat { font-size: 11px; font-weight: 700; color: #949ba4; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-mini-ch { display: flex; gap: 6px; font-size: 13px; color: #949ba4; padding: 1px 4px; white-space: nowrap; overflow: hidden; }
.dz-mini-ch span:last-child { overflow: hidden; text-overflow: ellipsis; }
.dz-custom-tag { grid-column: 1 / -1; font-size: 13px; color: #c4b5fd; background: var(--violet-soft); border-radius: 10px; padding: 8px 12px; }
.dz-details > summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; align-items: center; gap: 8px; }
.dz-details > summary::-webkit-details-marker { display: none; }
.dz-details > summary::after { content: "▾"; margin-left: auto; color: var(--faint); transition: transform .2s; }
.dz-details[open] > summary { margin-bottom: 14px; }
.dz-details[open] > summary::after { transform: rotate(180deg); }
.dz-tune-group { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.dz-tune-group:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.dz-tune-group h4, .dz-edit h4 { margin: 0 0 10px; font-size: 14.5px; }
.dz-tune-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; }
.dz-note { margin-top: 12px !important; }
.dz-edit { display: grid; gap: 10px; }
.dz-edit > h4 { margin-top: 10px; }
.dz-edit-head { display: grid; gap: 2px; margin-top: 10px; }
.dz-edit-head h4 { margin: 0; }
.dz-addons .addon-row { margin-bottom: 6px; }
.dz-cat { border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 6px; background: rgba(255,255,255,.02); }
.dz-cat.off { opacity: .55; }
.dz-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dz-row .input { flex: 1; min-width: 0; padding: 7px 10px; }
.dz-row-cat .input { font-weight: 700; }
.dz-row-ch { padding-left: 18px; }
.dz-row-ch.off .input { text-decoration: line-through; }
.dz-row .switch { flex-shrink: 0; transform: scale(.85); }
.dz-flags { font-size: 12px; color: var(--faint); white-space: nowrap; }
.dz-adds { display: flex; gap: 6px; padding-left: 18px; flex-wrap: wrap; }
.dz-reset { justify-self: start; }
.dz-color { width: 34px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; flex-shrink: 0; }
.dz-emoji-wrap { position: relative; flex-shrink: 0; }
.dz-emoji-btn { width: 38px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: 17px; cursor: pointer; color: var(--muted); }
.dz-emoji-btn:hover { border-color: var(--line-strong); }
.dz-emoji-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: 290px; background: var(--card-2); border: 1px solid var(--line-strong); border-radius: 14px; padding: 10px; display: grid; gap: 8px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); }
.dz-emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.dz-emoji-grid button { background: none; border: 0; font-size: 19px; padding: 4px 0; border-radius: 8px; cursor: pointer; }
.dz-emoji-grid button:hover { background: var(--violet-soft); }
.dz-emoji-pop .input { padding: 7px 10px; font-size: 13px; }

/* Discord look-alike sidebar */
.dz-side { background: #2b2d31; border-radius: 12px; overflow: hidden; font-family: "gg sans", "Segoe UI", system-ui, sans-serif; border: 1px solid rgba(0,0,0,.3); }
.dz-server { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 700; color: #f2f3f5; box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.dz-list { padding: 6px 8px 12px; max-height: 560px; overflow-y: auto; }
.dz-cat-name { display: flex; align-items: center; gap: 4px; margin: 14px 0 4px; font-size: 12px; font-weight: 700; color: #949ba4; text-transform: uppercase; letter-spacing: .02em; }
.dz-cat-name:first-child { margin-top: 4px; }
.dz-cat-name .addon-tag { text-transform: none; margin-left: auto; }
.dz-caret { font-size: 11px; color: #949ba4; }
.dz-ch { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 4px; color: #949ba4; font-size: 15px; }
.dz-ch:hover { background: rgba(78,80,88,.3); color: #dbdee1; }
.dz-hash { width: 18px; text-align: center; color: #80848e; font-size: 17px; flex-shrink: 0; }
.dz-ch .dz-hash { font-size: 16px; }
.dz-ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-lock { margin-left: auto; font-size: 11px; opacity: .7; }
.dz-roles { background: #2b2d31; border-radius: 12px; padding: 10px 14px; display: grid; gap: 4px; font-family: "gg sans", "Segoe UI", system-ui, sans-serif; }
.dz-roles-title { font-size: 12px; font-weight: 700; color: #949ba4; margin-bottom: 2px; }
.dz-role { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: #dbdee1; }
.dz-role i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dz-preview { display: grid; gap: 12px; }
.dz-preview .preview-actions { display: grid; gap: 10px; }
.dz-preview .preview-actions .btn { width: 100%; }
@media (max-width: 900px) { .dz-list { max-height: none; } }

/* ---------- ticket panel editor ---------- */
.dc-quote { border-left: 4px solid #4e5058; padding-left: 10px; margin: 2px 0; }
.tp-list { display: grid; gap: 10px; margin-bottom: 12px; }
.tp-row { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.tp-grid .field { margin-bottom: 0; }
.tp-grid .field-label { font-size: 12.5px; }
@media (max-width: 600px) { .tp-grid { grid-template-columns: 1fr; } }
.btn-block { width: 100%; justify-content: center; }
.faq-sugg { margin-bottom: 16px; }
.faq-sugg-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.faq-sugg-head h3 { margin: 0; }
.faq-sugg-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.faq-sugg-tabs .chip { cursor: pointer; border: 1px solid var(--border, #333); background: transparent; color: inherit; padding: 5px 11px; border-radius: 999px; font: inherit; font-size: 13px; }
.faq-sugg-tabs .chip.on { background: var(--accent, #5865f2); border-color: transparent; color: #fff; }
.faq-sugg-grid { display: grid; gap: 8px; margin-bottom: 12px; }
.faq-sugg-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.faq-sugg-item.added { opacity: .55; }
.faq-sugg-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.faq-sugg-text span { font-size: 13px; opacity: .75; }
.faq-sugg-note { font-size: 12px; color: #f0b232; }
.faq-sugg-item .btn { flex-shrink: 0; }
.dz-only-you { margin-left: 8px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: rgba(245, 197, 66, .15); color: #f5c542; vertical-align: middle; }
.sup-roles { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: 14px; }
.sup-roles li.bad { color: #f0b232; }
.dz-perm-btn { flex-shrink: 0; min-width: 52px; }
.dz-perms { margin: -2px 0 12px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.dz-perm-group { margin-top: 12px; }
.dz-perm-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.dz-risk { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.dz-risk.moderator { background: rgba(56,189,248,.14); color: #7dd3fc; }
.dz-risk.admin { background: rgba(240,178,50,.15); color: #f0b232; }
.dz-perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
.dz-perm { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; cursor: pointer; }
.dz-perm input { accent-color: var(--accent); }
.dz-perm-foot { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
/* ---- announcements ---- */
.ann-starters { display: flex; flex-wrap: wrap; gap: 8px; }
.ann-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.ann-tool { min-width: 32px; justify-content: center; font-weight: 700; }
.ann-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ann-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.ann-swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.ann-btn-row { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 8px; align-items: center; }
.seg { display: inline-flex; gap: 6px; }
.ann-preview { background: #313338; border-radius: 10px; padding: 14px 16px; }
.dc-msg { font-family: "gg sans", "Segoe UI", system-ui, sans-serif; color: #dbdee1; }
.dc-msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dc-msg-head strong { color: #fff; font-size: 15px; }
.dc-avatar { width: 32px; height: 32px; border-radius: 50%; background: #1e1f22; padding: 4px; }
.dc-app { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }
.dc-time { color: #949ba4; font-size: 12px; }
.dc-ping { display: inline-block; background: rgba(88,101,242,.3); color: #c9cdfb; border-radius: 3px; padding: 0 3px; margin-bottom: 6px; font-weight: 500; }
.dc-msg .dc-embed { max-width: 520px; }
.dc-msg .dc-components { margin-top: 8px; }
.ann-md .dc-h1 { font-size: 22px; font-weight: 700; color: #fff; margin: 6px 0 2px; }
.ann-md .dc-h2 { font-size: 18px; font-weight: 700; color: #fff; margin: 6px 0 2px; }
.ann-md .dc-h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 4px 0 2px; }
.dc-list { margin: 2px 0; padding-left: 20px; }
.dc-code { background: #1e1f22; border-radius: 3px; padding: 0 4px; font-size: 85%; }
.dc-link { color: #00a8fc; }
.ann-img-ph { grid-column: 1 / -1; margin-top: 10px; padding: 26px 12px; border-radius: 6px; background: repeating-linear-gradient(45deg, #2b2d31, #2b2d31 10px, #26282c 10px, #26282c 20px); color: #949ba4; font-size: 13px; text-align: center; word-break: break-all; }
.ann-group { margin: 18px 0 8px; font-size: 15px; }
.ann-item { display: flex; gap: 14px; align-items: center; justify-content: space-between; border-left: 4px solid var(--accent); margin-bottom: 8px; padding: 14px 16px; }
.ann-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ann-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-err { color: #f87171; font-size: 13px; }
.ann-acts { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.btn-danger-text { color: #f87171; }
@media (max-width: 640px) { .ann-item { flex-direction: column; align-items: stretch; } .ann-btn-row { grid-template-columns: 1fr auto; } .ann-btn-row input:nth-child(2) { grid-row: 2; } .ann-btn-row .btn { grid-row: 1; grid-column: 2; } }
/* ---- automod & mod cases ---- */
.am-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.am-preset { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: inherit; font: inherit; cursor: pointer; }
.am-preset:hover { border-color: var(--accent); }
.am-preset span { font-size: 12px; opacity: .7; }
.am-rules { display: grid; gap: 8px; }
.am-rule { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.02); }
.am-rule.on { border-color: rgba(99,102,241,.45); background: rgba(99,102,241,.06); }
.am-rule-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.am-rule-head > div { display: flex; flex-direction: column; gap: 2px; }
.am-rule-head span { font-size: 13px; opacity: .7; }
.am-rule-body { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 10px; }
.am-rule-body > .field { flex-basis: 100%; margin: 0; }
.am-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.am-inline .input-small { width: 72px; }
.mc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.mc-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.mc-num { font-size: 26px; font-weight: 700; }
.mc-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.mc-filters .input[type=search] { flex: 1 1 220px; }
.mc-list { display: grid; gap: 6px; margin-bottom: 10px; }
.mc-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.mc-row.removed { opacity: .5; }
.mc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mc-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mc-id { font-family: ui-monospace, monospace; opacity: .6; font-size: 13px; }
.mc-user { opacity: .85; }
.mc-acts { display: flex; gap: 6px; flex-shrink: 0; }
.mc-step { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.mc-step .input-small { width: 72px; }
.mc-cmds { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.mc-cmds code { background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 640px) { .mc-stats { grid-template-columns: repeat(2, 1fr); } .mc-row { flex-direction: column; align-items: stretch; } }
/* ---- getting started ---- */
.gs-head { display: flex; gap: 20px; align-items: center; margin-bottom: 16px; padding: 20px 22px; }
.gs-head h2 { margin: 0 0 4px; font-size: 20px; }
.gs-ring { --p: 0; flex-shrink: 0; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); }
.gs-ring span { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--card, #111827); font-weight: 700; }
.gs-list { display: grid; gap: 8px; }
.gs-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); }
.gs-item.done { opacity: .7; }
.gs-item.done .gs-text strong { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.gs-check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
.gs-item.done .gs-check { background: #22c55e; border-color: #22c55e; }
.gs-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.gs-text span { font-size: 13px; opacity: .7; }
.gs-tip { flex-shrink: 0; }
.gs-item .btn { flex-shrink: 0; }
@media (max-width: 640px) { .gs-item { flex-wrap: wrap; } .gs-text { flex-basis: calc(100% - 40px); } .gs-item .btn, .gs-item .gs-tip { margin-left: 36px; } }
@media (min-width: 1000px) { .layout-2.mc-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.mc-step .input-small { width: 76px; }
.mc-step .input-auto { width: auto; }
/* ---- languages ---- */
html.i18n-wait body { visibility: hidden; }
.lang-pick { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.05); color: inherit; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; line-height: 1; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: rgba(255,255,255,.25); }
.lang-caret { font-size: 11px; opacity: .7; }
.lang-flag { display: inline-block; width: 21px; height: 15px; border-radius: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.lang-flag svg { display: block; width: 100%; height: 100%; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 170px; background: #15213b; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.45); display: grid; gap: 2px; }
.lang-menu[hidden] { display: none; }
.lang-item { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; color: #e2e8f0; font: inherit; font-size: 14px; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.lang-item:hover, .lang-item:focus-visible { background: rgba(255,255,255,.07); outline: none; }
.lang-item.active { background: rgba(124,92,255,.2); }
.legal-lang { margin-bottom: 18px; }
@media (max-width: 640px) { .lang-btn .lang-name { display: none; } .lang-btn { padding: 7px 9px; } .site-header .user-name { display: none; } }

/* ---------- Community: levels, voice rooms, suggestions, member count, streams, insights ---------- */
.cm-ph { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; color: var(--muted); margin: -4px 0 14px; }
.cm-ph code { background: rgba(255,255,255,.06); border-radius: 6px; padding: 2px 6px; color: #c4b5fd; }
.cm-ph span { margin-right: 6px; }
.cm-curve { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cm-curve-step { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 13px; }
.cm-rew { display: grid; grid-template-columns: auto 72px auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.cm-rew .input-small { width: 72px; min-width: 0; }
.cm-rew select { min-width: 0; }
.cm-xp .input-small { width: 80px; }
.cm-lb { display: grid; gap: 4px; max-height: 560px; overflow-y: auto; }
.cm-lb-row { display: grid; grid-template-columns: 40px 30px 1fr auto auto auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.cm-lb-rank { font-weight: 700; color: var(--muted); text-align: center; }
.cm-av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--violet-soft); font-weight: 700; font-size: 13px; }
.cm-av img { width: 100%; height: 100%; object-fit: cover; }
.cm-lb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-lb-xp { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cm-vc { background: #2b2d31; border-radius: 10px; padding: 12px 10px; display: grid; gap: 2px; font-size: 14px; color: #949ba4; }
.cm-vc-cat { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 8px 6px 4px; }
.cm-vc-ch { padding: 6px 8px; border-radius: 6px; }
.cm-vc-ch.new { background: rgba(255,255,255,.06); color: #f2f3f5; }
.cm-vc-ch.locked { color: #dbdee1; font-weight: 600; }
.cm-vc-user { padding: 2px 8px 4px 32px; font-size: 13px; color: #dbdee1; }
.cm-room { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.cm-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-sug { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.cm-sug-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-votes { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cm-sug-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cm-sug-acts .input:not(.input-auto) { flex: 1; min-width: 140px; }
.cm-upsell { border-color: rgba(139,92,246,.45); background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(56,189,248,.08)); display: grid; gap: 8px; justify-items: start; margin-bottom: 16px; }
.cm-upsell h3 { margin: 0; }
.cm-upsell p { margin: 0; color: var(--muted); max-width: 60ch; }
.cm-upsell-badge { font-size: 12px; font-weight: 700; color: #c4b5fd; background: var(--violet-soft); padding: 3px 10px; border-radius: 999px; }
.cm-streamer { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.cm-streamer-info { display: grid; flex: 1; min-width: 0; }
.cm-streamer-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-plat { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; color: #fff; flex: none; }
.cm-plat.twitch { background: #9146ff; }
.cm-plat.youtube { background: #e00; }
.pill.cm-live { background: rgba(248,113,113,.14); color: var(--bad); }
.cm-add { margin-top: 10px; }
.cm-add .input:not(.input-auto) { flex: 1; min-width: 160px; }
.cm-range { display: flex; gap: 6px; margin-bottom: 14px; }
.cm-range .btn.active { border-color: var(--accent-3); background: var(--violet-soft); }
.cm-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.cm-tile { display: grid; gap: 4px; padding: 14px 16px; }
.cm-tile-label { color: var(--muted); font-size: 13px; }
.cm-tile-num { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cm-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cm-chart-card { display: grid; gap: 8px; }
.cm-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cm-chart-head h3 { margin: 0; font-size: 15px; }
.cm-chart { width: 100%; height: auto; display: block; overflow: visible; }
.cm-grid { stroke: rgba(148,163,184,.12); stroke-width: 1; }
.cm-axis { stroke: rgba(148,163,184,.3); stroke-width: 1; }
.cm-tick { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.cm-hit { fill: transparent; }
.cm-col:hover .cm-hit { fill: rgba(255,255,255,.04); }
.cm-col:hover .cm-bar { filter: brightness(1.2); }
.cm-legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.cm-key { display: inline-flex; align-items: center; gap: 6px; }
.cm-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.cm-table summary { cursor: pointer; font-weight: 600; }
.cm-table table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.cm-table th, .cm-table td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.cm-table th:first-child, .cm-table td:first-child { text-align: left; }
.cm-table th { color: var(--muted); font-weight: 600; }
@media (max-width: 1000px) { .cm-tiles { grid-template-columns: repeat(3, 1fr); } .cm-charts { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .cm-tiles { grid-template-columns: repeat(2, 1fr); }
  .cm-curve { grid-template-columns: repeat(2, 1fr); }
  .cm-lb-row { grid-template-columns: 34px 28px 1fr auto; }
  .cm-lb-xp, .cm-lb-row .btn { display: none; }
  .cm-table { overflow-x: auto; }
}
.layout-2 > .stack { min-width: 0; }
.cm-curve-step { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .layout-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .form-card .btn { white-space: normal; text-align: center; } .cm-rew select { width: 100%; } }

.cm-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-tier { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.cm-tier.on { border-color: rgba(139,92,246,.5); background: var(--violet-soft); }
.cm-tier-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; }
.cm-tier ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 3px; }
@media (max-width: 640px) { .cm-tiers { grid-template-columns: 1fr; } }

.currency-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; font-size: 14px; }
.currency-row .input { width: auto; padding: 6px 10px; }
.plan-local { color: var(--muted); font-size: 14px; margin-top: -6px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.cta-buttons { justify-content: center; flex-wrap: wrap; }

.ticket-stars { font-size: 12px; letter-spacing: 1px; margin-left: 4px; }
.ticket-stars.big { font-size: 16px; margin: 0; }
.rating-summary { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; }
.rating-big { font-size: 26px; font-weight: 700; }
.ticket-feedback { padding: 14px 18px; margin-bottom: 14px; display: grid; gap: 6px; }
.ticket-feedback p { margin: 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- account menu in the top bar (public pages) ---------- */
.acct { position: relative; }
.acct-btn {
  display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.acct-btn:hover { border-color: var(--accent-2); }
.acct-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(56,189,248,.3); }
.acct-avatar { position: relative; width: 30px; height: 30px; font-size: 13px; overflow: visible; }
.acct-avatar img { border-radius: 50%; }
.acct-online { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--good); border: 2px solid var(--card); }
.acct-name { font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-caret { color: var(--muted); font-size: 11px; }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 210px; padding: 6px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.6);
}
.acct-head { display: grid; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-head strong { font-size: 14px; }
.acct-head span { font-size: 12.5px; color: var(--faint); }
.acct-item {
  display: block; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: none; color: var(--text);
  font: inherit; font-size: 14px; text-align: left; cursor: pointer; text-decoration: none;
}
.acct-item:hover, .acct-item:focus-visible { background: rgba(255,255,255,.06); outline: none; }
.acct-out { color: #fca5a5; }
@media (max-width: 640px) { .acct-btn { padding: 3px 8px 3px 3px; } }

/* ---------- "add a name" pop-over (builder) ---------- */
.ask-pop {
  position: absolute; z-index: 70; padding: 14px; border-radius: 14px; background: var(--card-2);
  border: 1px solid rgba(56,189,248,.35); box-shadow: 0 24px 50px -12px rgba(0,0,0,.7); display: grid; gap: 10px;
}
.ask-pop::before {
  content: ""; position: absolute; top: -7px; left: calc(var(--arrow, 24px) - 6px); width: 12px; height: 12px;
  background: var(--card-2); border-left: 1px solid rgba(56,189,248,.35); border-top: 1px solid rgba(56,189,248,.35); transform: rotate(45deg);
}
.ask-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ask-head strong { font-size: 14px; }
.ask-where { font-size: 12.5px; color: var(--faint); }
.ask-where-in { font-size: 12.5px; color: var(--faint); margin-right: -4px; }
.ask-field {
  display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 10px; background: var(--bg);
  border: 1px solid var(--line-strong);
}
.ask-field:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(56,189,248,.22); }
.ask-icon { color: var(--faint); font-weight: 700; flex: none; }
.ask-field input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 14px var(--font); padding: 10px 0; outline: none; }
.ask-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-idea { border: 0; border-radius: 999px; padding: 4px 10px; font: 12.5px var(--font); color: #cbd5e1; background: rgba(255,255,255,.07); cursor: pointer; }
.ask-idea:hover, .ask-idea:focus-visible { background: var(--violet-soft); color: var(--text); outline: none; }
.ask-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ask-note { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- builder: restyle existing channels ---------- */
.dz-restyle { display: grid; gap: 10px; }
.dz-restyle .addon-row { margin: 0; padding-top: 0; border-top: 0; }
.dz-restyle-count { font-size: 12.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.dz-restyle-list { display: grid; gap: 4px; background: #2b2d31; border-radius: 10px; padding: 8px; font-family: "gg sans", "Segoe UI", system-ui, sans-serif; transition: opacity .2s; }
.dz-restyle-list.off { opacity: .55; }
.dz-restyle-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; font-size: 13.5px; padding: 3px 4px; }
.dz-restyle-icon { color: #80848e; text-align: center; }
.dz-restyle-from { color: #949ba4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-restyle-arrow { color: #a78bfa; font-weight: 700; }
.dz-restyle-to { color: #f2f3f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-restyle > .btn { justify-self: start; }
.ask-small { font-size: 12.5px; min-height: 0; }
.ask-small:empty { display: none; }

/* ---------- Plair confirm windows (ui.js) ---------- */
.btn-warn { background: #f59e0b; color: #1f1300; box-shadow: 0 8px 26px -10px rgba(245, 158, 11, .6); }
.btn-warn:hover { background: #fbbf24; }
body.pc-open { overflow: hidden; }
.pc-bg {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(2, 6, 23, .7); backdrop-filter: blur(5px); animation: pc-fade .16s ease-out;
}
.pc-dlg {
  width: min(440px, 100%); background: var(--card); border: 1px solid rgba(148, 163, 184, .2); border-radius: 18px;
  padding: 22px; box-shadow: 0 30px 70px -10px rgba(0, 0, 0, .8); animation: pc-pop .18s ease-out;
}
.pc-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; margin-bottom: 12px; }
.pc-danger .pc-icon { background: rgba(248, 113, 113, .15); }
.pc-warn .pc-icon { background: rgba(251, 191, 36, .15); }
.pc-info .pc-icon { background: rgba(139, 92, 246, .18); }
.pc-title { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.pc-body p { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.pc-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 7px; }
.pc-list li { position: relative; padding-left: 24px; font-size: 14px; color: #cbd5e1; line-height: 1.45; }
.pc-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 800; }
.pc-type { display: grid; gap: 6px; margin-top: 12px; }
.pc-type-hint { font-size: 13px; color: var(--muted); }
.pc-type-hint strong { color: var(--text); letter-spacing: .04em; }
.pc-skip { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.pc-skip input { width: 16px; height: 16px; accent-color: var(--accent-3); }
.pc-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.pc-out { animation: pc-fade .16s ease-in reverse forwards; }
@keyframes pc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pc-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pc-up { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 640px) {
  .pc-bg { place-items: end stretch; padding: 0; }
  .pc-dlg { width: 100%; border-radius: 20px 20px 0 0; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); animation: pc-up .22s ease-out; }
  .pc-dlg::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 9px; background: #475569; margin: 0 auto 14px; }
  .pc-actions { flex-direction: column-reverse; }
  .pc-actions .btn { width: 100%; justify-content: center; padding: 13px; }
}

/* confirm inside a row */
.rc-host { position: relative; }
.rc-asking > :not(.rc-box) { visibility: hidden; }
.rc-box {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: inherit;
  background: #2a1820; border: 1px solid rgba(248, 113, 113, .5); animation: pc-fade .15s ease-out;
}
.rc-text { flex: 1; min-width: 0; display: grid; }
.rc-text strong { color: #fecaca; font-size: 14px; }
.rc-text span { color: #fca5a5; font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* undo toast */
.pc-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 110; overflow: hidden;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 12px 14px 12px 16px;
  background: var(--card-2); border: 1px solid rgba(148, 163, 184, .25); border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); font-size: 14px; animation: pc-pop .18s ease-out;
}
.pc-undo { background: none; border: 0; color: var(--accent-2); font: inherit; font-weight: 800; padding: 4px 6px; cursor: pointer; border-radius: 6px; }
.pc-undo:hover, .pc-undo:focus-visible { background: rgba(56, 189, 248, .12); outline: none; }
.pc-toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent-2); transform-origin: left; animation: pc-shrink linear forwards; }
@keyframes pc-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* hold to confirm */
.hold-btn { position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold-btn .hold-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(239, 68, 68, .45); pointer-events: none; }
.hold-btn .hold-label { position: relative; }
.hold-btn.holding { border-color: #f87171; }

/* problem shown at the field */
.invalid { border-color: var(--bad) !important; box-shadow: 0 0 0 3px rgba(248, 113, 113, .2) !important; }
.field-error { color: #fca5a5; font-size: 13px; margin-top: 6px; }

/* "Early access" badge next to the logo (dashboard) */
.brand-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.early-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #e9d5ff;
  background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(139,92,246,.28)); border: 1px solid rgba(167,139,250,.45);
  cursor: default;
}
@media (max-width: 640px) { .brand-wrap { gap: 8px; flex-shrink: 0; } .early-badge { font-size: 11px; padding: 3px 8px; } }
/* Phones: the logo icon alone is enough, so the badge fits next to the menu buttons */
@media (max-width: 480px) {
  .brand-wrap .logo { font-size: 0; gap: 0; }
  .site-header .wrap { gap: 10px; }
  #user-area.nav { gap: 10px; }
  #user-area .btn-small { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 340px) { .early-badge { display: none; } }

