:root {
  --bg: #050608;
  --card: #0b0d10;
  --card-2: #0f1217;
  --elev: #11151b;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);
  --cyan: #8bb8c8;
  --cyan-2: #9ad1e3;
  --blurple: #5865F2;
  --blurple-2: #4752c4;
  --green: #2ecc71;
  --red: #e74c3c;
  --amber: #f1c40f;
  --text: #f3f5f8;
  --muted: #8b939e;
  --dim: #5a626e;
  --radius: 16px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body { overflow-x: hidden; }
a { color: inherit; }
button { font-family: inherit; }
code { font-family: var(--mono); font-size: .92em; color: var(--cyan-2); }
::selection { background: rgba(139, 184, 200, .3); }
:focus-visible { outline: 2px solid var(--cyan-2); outline-offset: 2px; }

.cosmos-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 78% 36%, rgba(120, 175, 195, .11) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 18% 28%, rgba(110, 165, 185, .07) 0%, transparent 65%),
    radial-gradient(circle at 50% 12%, rgba(139, 184, 200, .06), transparent 55%), var(--bg);
}
.cosmos-stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .9;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.45) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 28% 42%, rgba(255,255,255,.28) 50%, transparent 100%),
    radial-gradient(1px 1px at 46% 15%, rgba(255,255,255,.35) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 67% 25%, rgba(154,209,227,.45) 50%, transparent 100%),
    radial-gradient(1px 1px at 83% 54%, rgba(255,255,255,.3) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 74%, rgba(255,255,255,.25) 50%, transparent 100%),
    radial-gradient(1px 1px at 74% 82%, rgba(255,255,255,.35) 50%, transparent 100%);
  background-size: 550px 550px;
}

.view { position: relative; z-index: 1; display: none; }
.view.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 10px 20px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s, opacity .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--blurple); color: #fff; box-shadow: 0 6px 24px rgba(88,101,242,.38); }
.btn-primary:hover { background: var(--blurple-2); }
.btn-glass {
  background: rgba(16,20,26,.78); color: var(--text); border-color: rgba(154,209,227,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 24px rgba(139,184,200,.08);
}
.btn-glass:hover { border-color: var(--cyan-2); background: rgba(24,31,40,.9); }
.btn-lg { padding: 14px 26px; font-size: 14.5px; }
.btn-subtle {
  background: var(--card); color: #d6dde6; border-color: var(--line); border-radius: 10px; padding: 9px 14px; font-weight: 500; font-size: 13px;
}
.btn-subtle:hover { background: var(--card-2); border-color: var(--line-2); transform: none; }
.btn-danger { background: rgba(231,76,60,.12); color: #ff8a7d; border-color: rgba(231,76,60,.3); border-radius: 10px; }

/* ---------- Top nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5,6,8,.85), rgba(5,6,8,.4));
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 28px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px; overflow: hidden;
  background: rgba(139,184,200,.08); border: 1px solid rgba(139,184,200,.22);
  display: flex; align-items: center; justify-content: center; color: var(--cyan-2);
  transition: transform .2s, border-color .2s; flex-shrink: 0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand:hover .brand-logo { transform: scale(1.04); border-color: var(--cyan-2); }
.nav-pill {
  background: rgba(13,16,21,.85); border: 1px solid var(--line);
  padding: 5px; border-radius: 999px; display: flex; gap: 4px;
}
.nav-pill a {
  color: #c8cfd8; text-decoration: none; font-size: 13.5px; font-weight: 500;
  padding: 8px 18px; border-radius: 999px; transition: color .18s, background .18s;
}
.nav-pill a:hover, .nav-pill a.active { color: #fff; background: rgba(255,255,255,.06); }
.topbar-right { justify-self: end; display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1140px; margin: 70px auto 50px; padding: 0 28px;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--cyan-2);
  background: rgba(139,184,200,.08); border: 1px solid rgba(139,184,200,.2); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); display: inline-block; }
.dot.off { background: var(--dim); box-shadow: none; }
.hero h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 22px; }
.cyan { color: var(--cyan); }
.hero p { color: var(--muted); font-size: 15.5px; line-height: 1.7; max-width: 520px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stage { position: relative; height: 310px; }
.chip {
  position: absolute; background: rgba(13,17,22,.82); border: 1px solid rgba(154,209,227,.2);
  backdrop-filter: blur(16px); padding: 12px 20px 12px 14px; border-radius: 14px;
  display: inline-flex; align-items: center; gap: 11px; font-family: var(--mono); font-size: 13px; color: #d6dee7;
  box-shadow: 0 18px 40px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.08);
  animation: bob 5s ease-in-out infinite;
}
.chip i {
  font-style: normal; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(139,184,200,.12); border: 1px solid rgba(139,184,200,.25); font-size: 13px;
}
.chip.c1 { top: 18px; left: 36px; }
.chip.c2 { top: 118px; right: 18px; animation-delay: 1.4s; }
.chip.c3 { top: 118px; left: 0; animation-delay: 2.6s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .view.active { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Community strip ---------- */
.community { max-width: 1060px; margin: 30px auto 110px; padding: 0 28px; text-align: center; }
.community-heading { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.community-heading strong { color: #fff; font-weight: 600; }
.community-row { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.comm { display: flex; align-items: center; gap: 12px; text-align: left; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #1b2430, #0e131a); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--cyan-2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.comm-name { font-size: 14px; font-weight: 600; color: #e6ebf0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-members { font-size: 12px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { max-width: 1060px; margin: 0 auto 120px; padding: 0 28px; }
.section-icon {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 22px; color: var(--cyan-2);
  background: radial-gradient(circle at 50% 30%, rgba(139,184,200,.22), rgba(13,17,23,.9));
  border: 1px solid rgba(139,184,200,.25); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 35px rgba(139,184,200,.12); font-size: 22px;
}
.section-title { text-align: center; font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.025em; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted); font-size: 14.5px; margin-bottom: 44px; }

.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bento-card {
  background: linear-gradient(180deg, rgba(13,16,20,.92), rgba(8,10,13,.96));
  border: 1px solid var(--line); border-radius: 24px; padding: 34px; position: relative; overflow: hidden;
  min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .25s;
}
.bento-card:hover { border-color: rgba(139,184,200,.28); }
.bento-card h3 { font-size: 19px; font-weight: 600; color: var(--cyan); margin-bottom: 10px; }
.bento-card p { font-size: 13.8px; color: var(--muted); line-height: 1.6; max-width: 400px; }
.tree { position: relative; height: 210px; margin-top: 18px; }
.tree svg { width: 100%; height: 100%; }
.tree-pill {
  position: absolute; background: rgba(18,25,32,.9); border: 1px solid rgba(139,184,200,.28);
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; color: #e4ebf1; box-shadow: 0 8px 20px rgba(0,0,0,.45);
}
.stage { height: 220px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.shield-box { width: 200px; height: 200px; border: 1px dashed rgba(139,184,200,.16); display: flex; align-items: center; justify-content: center; }
.radar { margin: -34px -34px 16px; height: 230px; }
.radar-circle { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(139,184,200,.14); }
.radar-blip { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #ff4757; box-shadow: 0 0 0 6px rgba(255,71,87,.22), 0 0 18px #ff4757; top: 125px; left: 24%; animation: pulse 2.4s infinite; }
.radar-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; box-shadow: 0 0 10px #fff; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.scan { width: 156px; height: 184px; border: 2px dashed rgba(139,184,200,.22); border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.id-card {
  width: 118px; height: 146px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(139,184,200,.32), rgba(45,70,82,.45)); border: 1px solid rgba(154,209,227,.45);
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 40px rgba(139,184,200,.16);
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: rgba(11,13,17,.9); border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: transform .2s, border-color .2s; }
.feat:hover { transform: translateY(-3px); border-color: rgba(139,184,200,.28); }
.feat-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(139,184,200,.1); border: 1px solid rgba(139,184,200,.24); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feat h4 { font-size: 16px; font-weight: 700; margin-bottom: 9px; }
.feat p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- Commands ---------- */
.cmd-toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.cmd-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-btn {
  background: var(--card); border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.cat-btn:hover { color: #fff; border-color: var(--line-2); }
.cat-btn.active { background: rgba(88,101,242,.16); color: #fff; border-color: rgba(88,101,242,.4); }
.cat-btn .n { color: var(--dim); margin-left: 4px; font-weight: 500; }
.search {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px;
  display: flex; align-items: center; gap: 9px; min-width: 260px; transition: border-color .15s;
}
.search:focus-within { border-color: var(--cyan); }
.search input { background: transparent; border: none; outline: none; color: #fff; font-size: 13px; width: 100%; font-family: inherit; }
.search svg { flex-shrink: 0; color: var(--muted); }
.cmd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cmd {
  background: rgba(11,13,17,.9); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px;
  display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; transition: border-color .15s;
}
.cmd:hover { border-color: rgba(139,184,200,.28); }
.cmd code { font-size: 13px; font-weight: 600; }
.cmd p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.cmd .tag { flex-shrink: 0; }
.empty { color: var(--muted); font-size: 13px; padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; grid-column: 1 / -1; }

.footer { border-top: 1px solid var(--line); padding: 30px 28px; text-align: center; color: var(--dim); font-size: 12.5px; position: relative; z-index: 1; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- Tags ---------- */
.tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: rgba(46,204,113,.1); color: #4cd987; border-color: rgba(46,204,113,.25); }
.tag.warn { background: rgba(241,196,15,.1); color: #f5d453; border-color: rgba(241,196,15,.25); }
.tag.bad { background: rgba(231,76,60,.1); color: #ff8a7d; border-color: rgba(231,76,60,.25); }
.tag.blue { background: rgba(88,101,242,.14); color: #a5b0ff; border-color: rgba(88,101,242,.3); }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; background: rgba(4,5,7,.92); z-index: 100; display: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 22px;
}
#loader.active { display: flex; }
.ring { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(139,184,200,.22); position: relative; background: radial-gradient(circle, rgba(139,184,200,.09), transparent 70%); }
.ring::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--cyan-2); animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-caption { font-size: 11px; letter-spacing: .16em; color: var(--muted); font-weight: 600; text-transform: uppercase; }

/* ---------- Servers ---------- */
.wrap { max-width: 1000px; margin: 0 auto; padding: 40px 28px 80px; }
.servers-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.servers-head h1 { font-size: 32px; font-weight: 700; margin: 4px 0 6px; letter-spacing: -.02em; }
.small-muted { font-size: 13px; color: var(--muted); }
.user-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; display: flex; align-items: center; gap: 12px; min-width: 230px; }
.user-card .avatar { width: 36px; height: 36px; border-radius: 10px; }
.user-card .name { font-size: 13.5px; font-weight: 600; }
.user-card .sub { font-size: 11.5px; color: var(--muted); }
.icon-btn { background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 6px 8px; border-radius: 8px; text-decoration: none; display: inline-flex; margin-left: auto; }
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.06); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.group-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.badge { background: rgba(139,184,200,.14); color: var(--cyan-2); padding: 2px 8px; border-radius: 999px; font-size: 10.5px; }
.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.srv {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px 18px;
  text-align: center; display: flex; flex-direction: column; align-items: center; transition: border-color .2s, transform .2s;
}
.srv:hover { border-color: rgba(139,184,200,.28); transform: translateY(-2px); }
.srv .avatar { width: 56px; height: 56px; border-radius: 15px; margin-bottom: 14px; font-size: 18px; }
.srv-name { font-size: 15px; font-weight: 700; margin-bottom: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-tags { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; justify-content: center; }
.srv-btn {
  width: 100%; background: #10141a; border: 1px solid rgba(139,184,200,.2); color: #fff; padding: 10px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; transition: all .15s;
}
.srv-btn:hover { background: #161c24; border-color: var(--cyan-2); }
.srv-btn.primary { background: var(--blurple); border-color: var(--blurple); }
.srv-btn.primary:hover { background: var(--blurple-2); }
.notice { background: rgba(241,196,15,.06); border: 1px solid rgba(241,196,15,.22); color: #f0d88a; padding: 13px 16px; border-radius: 12px; font-size: 13px; line-height: 1.55; margin-bottom: 22px; }
.notice.info { background: rgba(88,101,242,.07); border-color: rgba(88,101,242,.25); color: #c3c9ff; }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side {
  background: #080a0d; border-right: 1px solid var(--line); padding: 18px 14px;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side .brand { padding: 4px 6px 16px; font-size: 15px; }
.side .brand-logo { width: 30px; height: 30px; border-radius: 8px; }
.switcher {
  background: #0d1015; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 12px; color: inherit; width: 100%; text-align: left;
}
.switcher:hover { border-color: var(--line-2); }
.switcher .avatar { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }
.sw-label { font-size: 9.5px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.sw-name { font-size: 13px; font-weight: 700; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { flex: 1; overflow-y: auto; padding-right: 2px; }
.nav-cat { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; margin: 14px 8px 6px; }
.nav-item {
  width: 100%; background: transparent; border: 1px solid transparent; color: var(--muted); padding: 9px 11px; border-radius: 9px;
  font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; transition: all .14s; text-decoration: none;
}
.nav-item:hover { color: #e2e8f0; background: rgba(255,255,255,.03); }
.nav-item.active { background: rgba(88,101,242,.16); color: #fff; border-color: rgba(88,101,242,.32); }
.main { padding: 28px 40px 80px; max-width: 1180px; width: 100%; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs .cur { color: #e2e8f0; font-weight: 500; }
.page-head { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.page-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(88,101,242,.12); border: 1px solid rgba(88,101,242,.28); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.page-head h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.01em; }
.page-head p { font-size: 13.5px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.stat-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.stat-val { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.stat-sub { font-size: 12px; color: var(--muted); }
.cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.panel h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.panel .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; line-height: 1.55; }
.row {
  display: flex; align-items: center; justify-content: space-between; padding: 13px 6px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .15s; border-radius: 8px; text-decoration: none; gap: 12px;
}
.row:last-child { border-bottom: none; }
.row:hover { background: rgba(255,255,255,.02); }
.row-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.row-ico { width: 36px; height: 36px; border-radius: 10px; background: #11151c; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.row-title { font-size: 13.5px; font-weight: 600; }
.row-desc { font-size: 12px; color: var(--muted); }
.kv { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; gap: 12px; }
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 600; font-family: var(--mono); font-size: 12.5px; text-align: right; overflow: hidden; text-overflow: ellipsis; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; color: #c8d0da; }
.field .hint { font-size: 11.5px; color: var(--dim); }
.input, .select, .textarea {
  background: #0e1218; border: 1px solid var(--line); color: #fff; padding: 10px 13px; border-radius: 10px;
  font-size: 13px; font-family: inherit; outline: none; width: 100%; transition: border-color .15s;
}
.textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b939e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--cyan); }
/* File pickers: the browser's white "Choose file" button, restyled as a normal Kryll button. */
input[type="file"] { color: var(--muted); font-family: inherit; font-size: 12.5px; max-width: 100%; cursor: pointer; }
input[type="file"].input { background: none; border: 0; padding: 0; }
input[type="file"]::file-selector-button {
  margin-right: 10px; background: var(--card-2); color: #d6dde6; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 8px 14px; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s;
}
input[type="file"]:hover::file-selector-button { background: #171b22; border-color: var(--cyan); }
input[type="file"]:focus-visible { outline: none; }
input[type="file"]:focus-visible::file-selector-button { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(139,184,200,.25); }
.input:disabled, .select:disabled { opacity: .55; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 13px; background: none; border: none; color: inherit; text-align: left; }
.toggle:disabled { cursor: not-allowed; opacity: .55; }
.track { width: 42px; height: 24px; border-radius: 999px; background: #1b222c; border: 1px solid var(--line); position: relative; transition: background .2s; flex-shrink: 0; }
.track::after { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #fff; position: absolute; top: 2px; left: 3px; transition: transform .2s; }
.toggle[aria-checked="true"] .track { background: var(--green); }
.toggle[aria-checked="true"] .track::after { transform: translateX(17px); }

.table-wrap { overflow-x: auto; margin: 0 -6px; }
.table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.table th { text-align: left; padding: 10px 12px; color: var(--muted); border-bottom: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.04); color: #dce3ec; vertical-align: top; }
.table td.wrap-text { max-width: 320px; word-break: break-word; }
.table tr:last-child td { border-bottom: none; }

.id-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; min-height: 30px; }
.id-chip { display: inline-flex; align-items: center; gap: 8px; background: #10141b; border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 12px; font-family: var(--mono); font-size: 12px; }
.id-chip button { background: rgba(255,255,255,.06); border: none; color: var(--muted); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; }
.id-chip button:hover { color: #fff; background: rgba(231,76,60,.4); }
.inline-add { display: flex; gap: 8px; }

.toast {
  position: fixed; bottom: 24px; right: 24px; background: #10161f; border: 1px solid var(--cyan); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-size: 13px; font-weight: 600; box-shadow: 0 14px 35px rgba(0,0,0,.65);
  z-index: 200; transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .25s; max-width: 380px;
}
.toast.show { transform: none; opacity: 1; }
.toast.error { border-color: var(--red); }
.toast.success { border-color: var(--green); }

.mobile-only { display: none; }

@media (max-width: 920px) {
  .hero, .bento, .features, .srv-grid, .cols, .stats, .form, .cmd-grid { grid-template-columns: 1fr; }
  .hero { margin-top: 40px; }
  .hero-stage { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .topbar-inner { grid-template-columns: auto 1fr; }
  .nav-pill { justify-self: end; }
  .topbar-right { grid-column: 1 / -1; justify-self: stretch; }
  .topbar-right .btn { flex: 1; }
  .dash { grid-template-columns: 1fr; }
  .side { position: relative; height: auto; }
  .side-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .side-nav .nav-cat { display: none; }
  .side-nav .nav-group, .side-nav .nav-group.closed { display: contents; }
  .side-nav .nav-item { width: auto; }
  .main { padding: 22px 18px 60px; }
  .search { min-width: 0; flex: 1; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .stats { grid-template-columns: 1fr; }
  .servers-head h1 { font-size: 26px; }
}
/* ---------- Kryll v4 Additions: Modals, Embed Preview, Dropzone, Analytics ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(8px); z-index: 150;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-backdrop[hidden] { display: none !important; }
.modal-card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 18px;
  max-width: 820px; width: 100%; max-height: 86vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75); overflow: hidden;
}
.modal-head {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.discord-log {
  padding: 18px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  background: #111318; font-size: 13.5px; line-height: 1.5;
}
.d-msg { display: flex; gap: 12px; align-items: flex-start; }
.d-av {
  width: 36px; height: 36px; border-radius: 50%; background: var(--card-2);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--cyan-2); flex-shrink: 0; overflow: hidden;
}
.d-av img { width: 100%; height: 100%; object-fit: cover; }
.d-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.d-author { font-weight: 700; color: #fff; font-size: 13.5px; }
.d-time { font-size: 11px; color: var(--dim); font-family: var(--mono); }
.d-text { color: #dbdee1; word-break: break-word; white-space: pre-wrap; }
.d-text a { color: var(--cyan-2); text-decoration: underline; }

/* Player Lookup Card */
.player-card {
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 20px; display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center;
  margin-top: 16px;
}
.player-av {
  width: 88px; height: 88px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.player-av img { width: 100%; height: 100%; object-fit: cover; }

/* Drag & Drop Uploader */
.dropzone {
  border: 2px dashed rgba(139, 184, 200, 0.3); border-radius: 16px;
  padding: 32px 20px; text-align: center; background: rgba(14, 18, 24, 0.65);
  cursor: pointer; transition: border-color .2s, background .2s; margin-bottom: 16px;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--cyan-2); background: rgba(139, 184, 200, 0.07);
}

/* Discord Live Embed Preview */
.discord-preview-box {
  background: #313338; border-radius: 14px; padding: 18px; color: #dbdee1;
  font-family: 'Plus Jakarta Sans', sans-serif; border: 1px solid rgba(255,255,255,0.08);
}
.discord-embed {
  background: #2b2d31; border-left: 4px solid #8bb8c8; border-radius: 4px;
  padding: 12px 16px; max-width: 520px; margin-top: 8px;
}
.discord-embed-title { font-weight: 700; color: #fff; font-size: 15px; margin-bottom: 6px; }
.discord-embed-desc { font-size: 13.5px; color: #dbdee1; white-space: pre-wrap; line-height: 1.45; }
.discord-embed-footer { font-size: 11.5px; color: #949ba4; margin-top: 10px; }

/* Analytics Bars */
.bar-row { margin-bottom: 12px; }
.bar-label { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.bar-track { height: 9px; background: #0e1218; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--blurple), var(--cyan-2)); border-radius: 999px; }

/* Command Syntax Copy Pill */
.cmd-syntax {
  display: inline-block; margin-top: 6px; background: #0d1016; border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 7px; font-family: var(--mono); font-size: 11.5px;
  color: var(--cyan-2); cursor: pointer;
}
.cmd-syntax:hover { border-color: var(--cyan-2); }
/* ---------- Kryll additions ---------- */
body[data-view="servers"] #topbar, body[data-view="dashboard"] #topbar, body[data-view="admin"] #topbar { display: none; }
.nav-pill a.active { color: var(--text); }
.page-section { margin-top: 60px; margin-bottom: 80px; }
.apply-section { max-width: 860px; }

/* Commands page */
.perm-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -10px 0 26px; }
.perm { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); white-space: nowrap; }
.perm::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: currentColor; }
.perm.everyone { color: #9ad1e3; }
.perm.whitelist { color: #c9a7ff; }
.perm.manager { color: #f4c06a; }
.perm.admin { color: #ff9a76; }
.perm.owner { color: #ff6b6b; }
.cmd .cmd-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.cmd-syntax.copied { border-color: var(--green); color: var(--green); }

/* Status */
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.status-hero { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46,204,113,.15); margin-right: 8px; }
.live-dot.off { background: var(--red); box-shadow: 0 0 0 4px rgba(231,76,60,.15); }
.live-dot.unknown { background: var(--dim); box-shadow: none; }

/* Forms / misc */
.btn-sm { padding: 7px 13px; font-size: 12.5px; }
.btn-danger-solid { background: var(--red); color: #fff; border: 1px solid var(--red); }
.btn-danger-solid:hover { filter: brightness(1.1); }
.btn-success { background: var(--green); color: #06110a; border: 1px solid var(--green); }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.seg { display: inline-flex; background: #0d1016; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg button.active { background: var(--elev); color: var(--text); }
.player-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin-top: 10px; }
.player-meta div span { display: block; font-size: 11px; color: var(--muted); }
.player-meta div strong { font-size: 13.5px; }
.embed-builder { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.discord-embed-image { margin-top: 10px; max-width: 100%; border-radius: 4px; }
.d-embed { background: #2b2d31; border-left: 4px solid var(--blurple); border-radius: 4px; padding: 8px 12px; margin-top: 6px; max-width: 520px; }
.d-embed b { color: #fff; }
.d-bot { background: var(--blurple); color: #fff; font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 3px; margin-left: 2px; }
.app-card { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.app-card details summary { cursor: pointer; font-size: 13px; color: var(--cyan-2); margin-top: 10px; }
.qa { margin-top: 10px; }
.qa dt { font-size: 12px; color: var(--muted); margin-top: 10px; }
.qa dd { font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.attach-card { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.attach-card .panel { margin-bottom: 0; }
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.kind-pick button { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--text); cursor: pointer; }
.kind-pick button.active, .kind-pick button:hover { border-color: var(--cyan-2); }
.kind-pick button h4 { font-size: 15px; margin-bottom: 4px; }
.kind-pick button p { font-size: 12.5px; color: var(--muted); }

/* Charts */
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbar-row { display: grid; grid-template-columns: 170px 1fr 70px; gap: 12px; align-items: center; padding: 6px 0; }
.hbar-name { display: flex; align-items: center; gap: 8px; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hbar-name img { width: 22px; height: 22px; border-radius: 50%; }
.hbar-track { display: flex; gap: 2px; height: 14px; }
.hbar-seg { height: 100%; border-radius: 0 4px 4px 0; min-width: 0; cursor: default; }
.hbar-seg:first-child { border-radius: 0 4px 4px 0; }
.hbar-val { font-size: 12.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.col-chart svg { width: 100%; height: auto; display: block; }
.col-chart .gridline { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.col-chart .axis-label { fill: var(--muted); font-size: 10.5px; font-family: var(--mono); }
.chart-tip { position: fixed; z-index: 300; pointer-events: none; background: #10161f; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 11px; font-size: 12px; color: var(--text); box-shadow: 0 10px 25px rgba(0,0,0,.6); }
.chart-tip[hidden] { display: none; }
.chart-tip .row-tip { display: flex; gap: 8px; align-items: center; justify-content: space-between; }

@media (max-width: 920px) {
  .status-grid, .embed-builder, .attach-card, .kind-pick, .player-meta { grid-template-columns: 1fr 1fr; }
  .embed-builder, .attach-card { grid-template-columns: 1fr; }
  .hbar-row { grid-template-columns: 110px 1fr 56px; }
}
@media (max-width: 520px) {
  .status-grid, .kind-pick, .player-meta { grid-template-columns: 1fr; }
}
label.dropzone { display: block; }
.field[hidden], [data-only][hidden] { display: none !important; }

/* ---------- Kryll v6: landing redesign, motion, dark emojis, mobile nav ---------- */
/* Top bar blends into the page: no background, blur or bottom border. */
.topbar, .topbar.scrolled { position: relative; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }

/* First screen: hero + "Powering…" fill exactly one viewport. */
.hero-screen { min-height: calc(100vh - var(--topbar-h, 74px)); min-height: calc(100svh - var(--topbar-h, 74px)); display: flex; flex-direction: column; justify-content: space-between; }
.hero-screen .hero { margin: auto; padding-top: 30px; padding-bottom: 30px; width: 100%; }
.hero-screen .community { margin: 0 auto; padding-bottom: 46px; max-width: none; width: 100%; }
.community-heading { font-size: 21px; margin-bottom: 30px; }
.community-heading strong { font-weight: 700; }

/* Server marquee */
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee var(--marquee-duration, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .comm { display: flex; align-items: center; gap: 16px; flex-shrink: 0; text-align: left; }
.marquee .comm .avatar { width: 64px; height: 64px; border-radius: 50%; font-size: 22px; }
.marquee .comm-name { font-size: 19px; font-weight: 700; white-space: nowrap; }
.marquee .comm-members { font-size: 14px; color: var(--muted); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Entrance + scroll reveal */
.hero-copy > * { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-copy > *:nth-child(2) { animation-delay: .12s; }
.hero-copy > *:nth-child(3) { animation-delay: .24s; }
.hero-stage .chip { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards, bob 6s ease-in-out infinite; }
.hero-stage .chip.c1 { animation-delay: .35s, 1.2s; }
.hero-stage .chip.c2 { animation-delay: .5s, 1.6s; }
.hero-stage .chip.c3 { animation-delay: .65s, 2s; }
.community { opacity: 0; animation: rise 1s .5s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.btn { transition: transform .18s ease, box-shadow .25s ease, background .18s, border-color .18s; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 30px rgba(88,101,242,.45); }
.bento-card, .feat, .cmd, .srv, .stat, .panel { transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .3s; }
.bento-card:hover, .feat:hover, .srv:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.stat:hover { transform: translateY(-2px); }
#tab-content > * { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
#tab-content > *:nth-child(2) { animation-delay: .05s; }
#tab-content > *:nth-child(3) { animation-delay: .1s; }
#tab-content > *:nth-child(4) { animation-delay: .15s; }
.nav-pill a { position: relative; }
.cosmos-bg { animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-2%, 1.5%, 0) scale(1.06); } }

/* Emojis are drawn dark and muted so they sit on the background. */
.emo { filter: grayscale(1) brightness(.62) contrast(1.15); opacity: .9; font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .community, #tab-content > * { animation: none !important; opacity: 1 !important; }

}

/* Dashboard extras */
.tag.gold { background: rgba(241,196,15,.1); color: #f0d88a; border-color: rgba(241,196,15,.25); }
.q-row { display: grid; grid-template-columns: 1fr 130px 110px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.q-row label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.link-pill { display: inline-flex; align-items: center; gap: 8px; background: #0d1016; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-family: var(--mono); font-size: 12px; color: var(--cyan-2); cursor: pointer; text-decoration: none; }
.link-pill:hover { border-color: var(--cyan-2); }
.bar-cols svg { width: 100%; height: auto; display: block; }
.coin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }

/* Mobile dashboard: the sidebar becomes a bottom nav bar. */
@media (max-width: 920px) {
  .dash { padding-bottom: 76px; }
  .side { position: static; height: auto; border-right: 0; padding: 14px 16px 0; background: transparent; }
  .side > .user-card { display: none; }
  .side .brand { padding-bottom: 10px; }
  .side-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-wrap: nowrap; gap: 2px;
    overflow-x: auto; overflow-y: hidden; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(8,10,13,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); scrollbar-width: none;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav .nav-cat, .side-nav .notice { display: none; }
  .side-nav .nav-group, .side-nav .nav-group.closed { display: contents; }
  .side-nav .nav-item { flex: 0 0 auto; width: auto; min-width: 72px; flex-direction: column; gap: 3px; padding: 6px 8px; font-size: 10.5px; text-align: center; justify-content: center; }
  .side-nav .nav-item .nav-ico { font-size: 18px; }
  .coin-grid { grid-template-columns: 1fr 1fr; }
  .q-row { grid-template-columns: 1fr 1fr; }
  .hero-screen .community { padding-bottom: 28px; }
  .community-heading { font-size: 17px; }
  .marquee .comm .avatar { width: 52px; height: 52px; }
  .marquee .comm-name { font-size: 16px; }
}

/* ---------- Moving background: drifting glows + two slow star layers ---------- */
.cosmos-bg::before, .cosmos-bg::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform;
}
.cosmos-bg::before {
  width: 46vw; height: 46vw; left: 52%; top: 8%;
  background: radial-gradient(circle, rgba(120, 175, 195, .16), transparent 68%);
  animation: glow-a 34s ease-in-out infinite alternate;
}
.cosmos-bg::after {
  width: 38vw; height: 38vw; left: 4%; top: 40%;
  background: radial-gradient(circle, rgba(88, 101, 242, .10), transparent 68%);
  animation: glow-b 42s ease-in-out infinite alternate;
}
@keyframes glow-a { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-12vw, 8vh, 0) scale(1.15); } 100% { transform: translate3d(-4vw, 18vh, 0) scale(.95); } }
@keyframes glow-b { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(14vw, -10vh, 0) scale(1.1); } 100% { transform: translate3d(22vw, 6vh, 0) scale(1); } }

/* The star tile is 550px, so moving a taller layer by exactly 550px loops without a jump. */
.cosmos-stars { inset: -550px 0 0 0; animation: stars-drift 120s linear infinite, twinkle 7s ease-in-out infinite; will-change: transform, opacity; }
.cosmos-stars::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 8% 62%, rgba(255,255,255,.35) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 22% 8%, rgba(154,209,227,.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 57% 48%, rgba(255,255,255,.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 91% 12%, rgba(255,255,255,.4) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 62% 91%, rgba(255,255,255,.22) 50%, transparent 100%);
  background-size: 370px 370px;
  animation: twinkle 11s ease-in-out infinite reverse;
}
@keyframes stars-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 550px, 0); } }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .55; } }

/* The moving background is always on, also with reduce motion (owner's choice); it moves slowly. */

/* Roblox key guide + setup checklist */
.guide-section { max-width: 900px; }
.guide-section .panel h4 { margin-bottom: 10px; }
.guide-steps { padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: #d4d9e0; line-height: 1.6; }
.guide-steps a { color: var(--cyan-2); }
.checklist { display: grid; gap: 8px; margin-top: 6px; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); text-decoration: none; transition: border-color .15s; }
.check-item:hover { border-color: var(--line-2); }
.check-mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; color: transparent; }
.check-item.done .check-mark { background: var(--green); border-color: var(--green); color: #06110a; }
.check-item.done .check-title { color: var(--muted); text-decoration: line-through; }
.check-title { font-size: 13.5px; font-weight: 600; }
.check-desc { font-size: 12px; color: var(--muted); }
.check-progress { height: 8px; border-radius: 999px; background: #0e1218; border: 1px solid var(--line); overflow: hidden; margin: 6px 0 14px; }
.check-progress > div { height: 100%; background: linear-gradient(90deg, var(--blurple), var(--cyan-2)); border-radius: 999px; transition: width .6s cubic-bezier(.2,.7,.2,1); }

/* Admin panel */
.admin-wrap { max-width: 1180px; }
.admin-srv { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-srv .avatar { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; flex-shrink: 0; }
.admin-srv .name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.js-admin-link[hidden] { display: none !important; }
@media (max-width: 920px) { .admin-grid { grid-template-columns: 1fr; } }

/* Admin panel: names, server detail, bot profile */
.chip-av { width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; margin-right: 4px; }
.user-cell { display: inline-flex; align-items: center; gap: 8px; }
.user-cell img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.link-btn:hover { color: var(--cyan-2); text-decoration: underline; }
.admin-modal { padding: 18px 22px; overflow-y: auto; }
.profile-card { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card-2); margin-bottom: 18px; max-width: 520px; }
.profile-banner { height: 120px; background: linear-gradient(120deg, #1d2a3a, #2b2f6b); background-size: cover; background-position: center; }
.profile-av { position: absolute; left: 18px; top: 72px; width: 84px; height: 84px; border-radius: 50%; border: 5px solid var(--card-2); background: var(--elev); overflow: hidden; }
.profile-av img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { padding: 44px 18px 16px; font-size: 16px; }

/* Antinuke */
.an-master.live { border-color: rgba(46, 204, 113, .25); box-shadow: 0 0 0 1px rgba(46, 204, 113, .08) inset; }
.an-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.an-title { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.an-badge { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line-2); }
.an-badge.burst { color: #9ad1e3; background: rgba(154, 209, 227, .08); border-color: rgba(154, 209, 227, .25); }
.an-badge.instant { color: #f4c06a; background: rgba(244, 192, 106, .08); border-color: rgba(244, 192, 106, .3); }
.an-badge.live { color: var(--green); background: rgba(46, 204, 113, .1); border-color: rgba(46, 204, 113, .3); }
.an-badge.off { color: var(--muted); }
.an-switch { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.an-state { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.an-module.on .an-state { color: var(--text); }
.an-master-switch { display: flex; align-items: center; gap: 18px; padding: 10px 14px; }
.an-cat { padding: 0; overflow: hidden; }
.an-cat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.an-count { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--dim); white-space: nowrap; }
.an-module { margin: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); transition: border-color .2s, box-shadow .2s; }
.an-module.on { border-left: 3px solid var(--cyan-2); }
.an-grid { display: grid; grid-template-columns: 1fr 1.6fr 1.5fr 1.3fr; gap: 10px; margin-top: 12px; }
.an-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(5, 6, 8, .35); }
.an-box > label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.an-wide { grid-column: span 2; }
.an-row { display: flex; gap: 8px; align-items: center; }
.an-row .input, .an-row .select { min-width: 0; }
.an-note { font-size: 12.5px; color: #c8cfd8; }
.an-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.an-role { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); cursor: pointer; }
.an-savebar { position: sticky; bottom: 16px; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; margin-top: 16px; border-radius: 14px; background: #10161f; border: 1px solid var(--cyan); box-shadow: 0 14px 35px rgba(0, 0, 0, .6); font-size: 13px; font-weight: 600; }
.an-savebar[hidden] { display: none; }
@media (max-width: 920px) {
  .an-grid { grid-template-columns: 1fr 1fr; }
  .an-wide { grid-column: span 2; }
  .an-savebar { bottom: 84px; }
}

/* Dashboard search (Ctrl+K) */
.search-trigger { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: #0d1015; color: var(--muted); font-size: 13px; cursor: pointer; }
.search-trigger:hover { border-color: var(--line-2); color: var(--text); }
kbd { font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,.03); }
.cmdk { align-items: flex-start; padding-top: 12vh; }
.cmdk-card { width: 100%; max-width: 620px; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.75); }
.cmdk-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmdk-input-row input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 15px; }
.cmdk-results { max-height: 52vh; overflow-y: auto; padding: 6px; }
.cmdk-group { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; padding: 10px 10px 4px; }
.cmdk-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; font-size: 13.5px; }
.cmdk-item .hint { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.cmdk-item.active, .cmdk-item:hover { background: rgba(88, 101, 242, .16); }
.cmdk-empty { padding: 22px; text-align: center; color: var(--muted); font-size: 13px; }
.an-row .input[type="number"] { flex: 0 0 64px; width: 64px; }
.an-row .select { flex: 1; }

/* Verify page */
body[data-view="verify"] #topbar .nav-pill, body[data-view="verify"] #topbar .topbar-right { visibility: hidden; }
.verify-wrap { max-width: 480px; margin: 6vh auto 60px; padding: 0 20px; }
.verify-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; padding: 32px 28px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.verify-card h2 { font-size: 22px; margin: 14px 0 4px; }
.verify-guild { width: 76px; height: 76px; margin: 0 auto; border-radius: 22px; overflow: hidden; background: var(--elev); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: var(--cyan-2); border: 1px solid var(--line-2); }
.verify-guild img { width: 100%; height: 100%; object-fit: cover; }
.verify-desc { color: #c8cfd8; font-size: 14px; line-height: 1.6; margin: 10px 0 18px; white-space: pre-wrap; }
.verify-me { display: flex; align-items: center; gap: 12px; justify-content: center; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); margin-bottom: 12px; }
.verify-me img { width: 40px; height: 40px; border-radius: 50%; }
.verify-btn { width: 100%; margin-top: 8px; }
.verify-captcha { display: flex; justify-content: center; margin: 12px 0; min-height: 65px; }
.verify-icon { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; }
.verify-icon.ok { background: rgba(46, 204, 113, .15); color: var(--green); border: 2px solid rgba(46, 204, 113, .4); animation: pop .45s cubic-bezier(.2,1.4,.4,1) both; }
.verify-icon.bad { background: rgba(231, 76, 60, .12); color: var(--red); border: 2px solid rgba(231, 76, 60, .35); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.verify-legal { font-size: 11.5px; color: var(--dim); text-align: center; line-height: 1.6; margin-top: 16px; }
.vl-table td { vertical-align: top; }
.vl-ip { cursor: pointer; }
.vl-ip:hover { text-decoration: underline; }

/* ---- Member restore */
.verify-restore-note { margin: 12px 0 4px; line-height: 1.5; }
.rs-sources { display: grid; gap: 8px; }
.rs-source { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.rs-source:hover { background: rgba(255,255,255,.03); }
.rs-source:has(input:checked) { border-color: #3987e5; background: rgba(57,135,229,.08); }
.rs-source input { accent-color: #3987e5; }
.rs-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.rs-icon img { width: 100%; height: 100%; object-fit: cover; }
.rs-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rs-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin: 12px 0 10px; }
.rs-bar span { display: block; height: 100%; background: #3987e5; border-radius: inherit; transition: width .6s ease; }
.rs-counts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }

/* ---- Setup checklist close button */
.setup-panel { position: relative; }
.panel-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: inherit; cursor: pointer; opacity: .7; transition: opacity .15s, background .15s; }
.panel-close:hover { opacity: 1; background: rgba(255,255,255,.08); }

/* ---- Automod / Honeypot / Greetings / Giveaways / Booster roles */
.an-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.an-top .an-box > label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.an-modules.am-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0; margin: 0 -12px; }
.am-body { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.am-action { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.am-action .select { max-width: 200px; }
.am-nums { display: flex; flex-wrap: wrap; gap: 10px; }
.am-num { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.am-num .input { width: 110px; }
.an-module:not(.on) .am-body { opacity: .55; }
.hp-steps { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; color: var(--text); font-size: 13.5px; }
.gr-kinds { margin-bottom: 16px; flex-wrap: wrap; }
.gr-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green, #2ecc71); margin-left: 4px; vertical-align: middle; }
.gr-vars { display: flex; flex-wrap: wrap; gap: 6px; }
.gr-chip { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font: 12px var(--mono, monospace); padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.gr-chip:hover { border-color: #3987e5; background: rgba(57,135,229,.12); }
.gr-row2 { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.gr-row2 > div > label { display: block; margin-bottom: 7px; }
.gr-preview-panel { position: sticky; top: 16px; align-self: start; }
.gr-preview .d-content { color: #dbdee1; font-size: 14px; line-height: 1.45; margin-bottom: 6px; word-break: break-word; }
.gr-embed { display: flex; flex-wrap: wrap; gap: 0 14px; max-width: 460px; }
.gr-embed-full { flex-basis: 100%; min-width: 0; }
.gr-embed-main { flex: 1; min-width: 0; }
.gr-embed .discord-embed-desc { word-break: break-word; }
.gr-thumb { width: 72px; height: 72px; border-radius: 6px; overflow: hidden; flex: none; background: rgba(255,255,255,.06); }
.gr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gr-embed-image { display: block; max-width: 100%; border-radius: 6px; margin-top: 10px; }
.d-mention { background: rgba(88,101,242,.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.d-link { color: #00a8fc; }
.gw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gw-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--card-2); }
.gw-card.active { border-color: rgba(57,135,229,.45); box-shadow: 0 0 0 1px rgba(57,135,229,.12) inset; }
.gw-card.cancelled { opacity: .6; }
.gw-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.gw-prize { font-weight: 700; font-size: 15px; }
.gw-desc { margin-top: 8px; font-size: 13px; color: var(--muted); white-space: pre-wrap; }
.gw-meta { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.gw-winners { margin-top: 8px; font-size: 13px; }
.br-cmds { display: grid; gap: 8px; }
.br-cmds > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.br-cmds span { font-size: 12px; color: var(--muted); }
.br-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; margin-right: 4px; border: 1px solid rgba(255,255,255,.2); }
@media (max-width: 900px) { .gr-preview-panel { position: static; } }

/* ==================================================================
   Dashboard theme: neutral near-black, thin line icons, slim scrollbar
   ================================================================== */
#view-dashboard {
  --bg: #09090a;
  --card: #0e0e10;
  --card-2: #111113;
  --elev: #18181b;
  --line: #1f1f23;
  --line-2: #2c2c32;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --green: #34d399;
  --accent: #8b9cff;
  --accent-bg: #1a1c2b;
  --accent-line: #262a44;
  background: var(--bg);
  position: relative; z-index: 1;
}
#view-dashboard .dash { background: var(--bg); }
#view-dashboard .side { background: var(--bg); border-right: 1px solid var(--line); padding: 16px 12px; }
#view-dashboard .side .brand { padding: 4px 6px 14px; font-size: 15px; letter-spacing: .02em; }

/* Content sits in one rounded, bordered frame like the reference */
#view-dashboard .main {
  margin: 14px 14px 14px 12px; padding: 30px 64px 80px; max-width: none; width: auto;
  background: #0b0b0c; border: 1px solid var(--line); border-radius: 16px; min-height: calc(100vh - 28px);
}
@media (max-width: 900px) { #view-dashboard .main { margin: 0; border: 0; border-radius: 0; padding: 22px 16px 90px; } }
#view-dashboard .page-head { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
#view-dashboard .page-ico { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; }
#view-dashboard .panel, #view-dashboard .stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
#view-dashboard .stat:hover { border-color: var(--line-2); }
#view-dashboard .input, #view-dashboard .select, #view-dashboard .textarea { background: #0c0c0e; border-color: var(--line-2); }
#view-dashboard .input:focus, #view-dashboard .select:focus, #view-dashboard .textarea:focus { border-color: #3f3f46; box-shadow: 0 0 0 3px rgba(139, 156, 255, .12); }
#view-dashboard .crumbs { color: var(--dim); font-size: 12px; }
#view-dashboard .crumbs .cur { color: var(--text); }
#view-dashboard .tag.ok { color: var(--green); }

/* Server switcher + dropdown */
.srv-switch { position: relative; margin-bottom: 12px; }
#view-dashboard .switcher {
  margin: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; gap: 11px;
  transition: border-color .15s, background .15s;
}
#view-dashboard .switcher:hover { border-color: #3a3a41; background: #121214; }
#view-dashboard .switcher .avatar { width: 34px; height: 34px; border-radius: 8px; overflow: hidden; flex: none; }
#view-dashboard .sw-label { font-size: 10px; letter-spacing: .12em; color: var(--dim); font-weight: 600; }
#view-dashboard .sw-name { font-size: 13.5px; font-weight: 700; color: var(--text); max-width: 140px; }
.sw-chev { margin-left: auto; color: var(--muted); flex: none; transition: transform .18s; }
.srv-switch.open .sw-chev { transform: rotate(180deg); }
.srv-switch.open .switcher { border-color: #3a3a41; }
.srv-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  background: #0e0e10; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55); animation: srvMenuIn .14s ease-out;
}
@keyframes srvMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.srv-menu-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.srv-menu-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; text-decoration: none; color: var(--text); font-size: 13.5px; }
.srv-menu-item:hover { background: #17171a; }
.srv-menu-item.current { background: var(--accent-bg, #1a1c2b); }
.srv-menu-item .avatar { width: 30px; height: 30px; border-radius: 7px; overflow: hidden; flex: none; font-size: 12px; display: grid; place-items: center; background: #1c1c20; }
.srv-menu-item .avatar img { width: 100%; height: 100%; object-fit: cover; }
.srv-menu-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-menu-sep { height: 1px; background: var(--line-2); margin: 6px 2px; }
.srv-menu-all { display: block; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 13px; text-decoration: none; }
.srv-menu-all:hover { background: #17171a; color: var(--text); }

/* Search box */
#view-dashboard .search-trigger {
  justify-content: flex-start; gap: 9px; margin-bottom: 14px; padding: 9px 12px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line-2); color: var(--dim); font-size: 13px;
}
#view-dashboard .search-trigger:hover { border-color: #3a3a41; color: var(--muted); }
#view-dashboard .search-trigger svg { flex: none; }

/* Sidebar nav */
#view-dashboard .side-nav { padding-right: 6px; margin-right: -4px; }
#view-dashboard .nav-cat { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; color: var(--dim); margin: 16px 8px 6px; }
#view-dashboard .nav-cat:first-child { margin-top: 4px; }
#view-dashboard .nav-item {
  padding: 8px 10px; border-radius: 8px; border: 0; color: var(--muted); font-size: 13.5px; font-weight: 500; gap: 11px; margin-bottom: 1px;
}
#view-dashboard .nav-item:hover { color: var(--text); background: #141416; }
#view-dashboard .nav-item.active { background: var(--accent-bg); color: #fff; border: 0; }
.nav-ico { width: 17px; height: 17px; display: inline-grid; place-items: center; flex: none; font-size: 15px; }
.nav-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#view-dashboard .nav-item.active .nav-ico { color: var(--accent); }

/* Slim scrollbars (sidebar, dropdown, tables) with small arrow buttons like Windows */
#view-dashboard .side-nav, .srv-menu-list { scrollbar-width: thin; scrollbar-color: #2e2e34 transparent; }
#view-dashboard .side-nav::-webkit-scrollbar, .srv-menu-list::-webkit-scrollbar { width: 6px; }
#view-dashboard .side-nav::-webkit-scrollbar-track, .srv-menu-list::-webkit-scrollbar-track { background: transparent; }
#view-dashboard .side-nav::-webkit-scrollbar-thumb, .srv-menu-list::-webkit-scrollbar-thumb { background: #2e2e34; border-radius: 6px; }
#view-dashboard .side-nav::-webkit-scrollbar-thumb:hover { background: #3f3f46; }
#view-dashboard .side-nav::-webkit-scrollbar-button:single-button { display: block; height: 10px; background-repeat: no-repeat; background-position: center; background-size: 6px; }
#view-dashboard .side-nav::-webkit-scrollbar-button:single-button:vertical:decrement { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Cpath d='M3 0 6 4H0z' fill='%2352525b'/%3E%3C/svg%3E"); }
#view-dashboard .side-nav::-webkit-scrollbar-button:single-button:vertical:increment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Cpath d='M0 0h6L3 4z' fill='%2352525b'/%3E%3C/svg%3E"); }

/* User card at the bottom */
#view-dashboard .user-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; }
.line-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stat-top > .line-ico { color: var(--dim); display: inline-grid; }
.stat-top > .line-ico svg { width: 16px; height: 16px; }
#view-dashboard .page-ico.line-ico { color: var(--accent, #8b9cff); }
#view-dashboard .row-ico.line-ico { color: var(--muted); background: var(--card-2); border: 1px solid var(--line-2); }

/* ---- Landing: line icons, floating feature chips, straight server row */
.line-ico { display: inline-grid; place-items: center; vertical-align: middle; line-height: 0; }
.line-ico svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.section-icon .line-ico { font-size: 22px; color: var(--cyan-2); }
.feat-icon .line-ico { font-size: 20px; color: var(--cyan-2); }
.tree-pill .line-ico { font-size: 13px; margin-right: 4px; color: var(--cyan-2); }
.chip i .line-ico { font-size: 14px; }
.cmd-cat-tag { display: inline-flex; align-items: center; gap: 5px; }
.cmd-cat-tag .line-ico svg { width: 13px; height: 13px; }
.chip.c4 { top: 64%; right: 4px; }
.chip.c5 { bottom: 0; left: 60px; }
.hero-stage .chip { animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards, float 7s ease-in-out infinite; }
.hero-stage .chip.c1 { animation-delay: .35s, 1.2s; }
.hero-stage .chip.c2 { animation-delay: .5s, 2.4s; }
.hero-stage .chip.c3 { animation-delay: .65s, .6s; }
.hero-stage .chip.c4 { opacity: 0; animation-delay: .8s, 3.1s; }
.hero-stage .chip.c5 { opacity: 0; animation-delay: .95s, 1.8s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(6px, -10px); } 50% { transform: translate(0, -16px); } 75% { transform: translate(-6px, -8px); } }
.marquee-track { animation: marquee var(--marquee-duration, 40s) linear infinite !important; }
/* Even spacing per item (not flex gap) so the -50% loop lands exactly on the second copy: no jump */
.marquee-track { gap: 0 !important; }
.marquee .comm { padding-right: 56px; }

/* ---- Public status page */
.status-overall { max-width: 900px; margin: 0 auto 18px; }
.status-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; border: 1px solid #1f1f23; background: #0e0e10; }
.status-banner .small-muted { margin-left: auto; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.status-banner.ok { color: #34d399; } .status-banner.warn { color: #f5b14c; } .status-banner.bad { color: #f87171; }
.status-banner b { color: var(--text); font-weight: 600; }
.shard-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.shard-card { border: 1px solid #1f1f23; background: #0e0e10; border-radius: 14px; padding: 16px 18px; }
.shard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.shard-name { font-weight: 700; font-family: var(--mono); }
.shard-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.shard-state.ok { color: #34d399; } .shard-state.warn { color: #f5b14c; } .shard-state.bad { color: #f87171; }
.shard-rows { display: grid; gap: 8px; }
.shard-rows > div { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); padding-top: 8px; border-top: 1px solid #1a1a1d; }
.shard-rows b { color: var(--text); font-weight: 600; }

/* ---- Same slim scrollbar everywhere (page, lists, tables, code) as the dashboard sidebar */
html, body, * { scrollbar-width: thin; scrollbar-color: #2e2e34 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2e2e34; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button:single-button { display: block; height: 10px; width: 8px; background-repeat: no-repeat; background-position: center; background-size: 6px; }
::-webkit-scrollbar-button:single-button:vertical:decrement { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Cpath d='M3 0 6 4H0z' fill='%2352525b'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:single-button:vertical:increment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Cpath d='M0 0h6L3 4z' fill='%2352525b'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:horizontal { display: none; }
/* Emojis turned into line icons: full brightness, not the muted emoji look */
.emo.line-ico { filter: none; opacity: 1; }

/* ---- Homepage audience switch */
.audience-switch { display: flex; justify-content: center; gap: 6px; margin: 40px auto 28px; padding: 5px; width: max-content; max-width: 100%; border: 1px solid #1f1f23; border-radius: 999px; background: #0e0e10; position: relative; z-index: 2; }
.audience-switch button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.audience-switch button.active { background: #1a1c2b; color: #fff; }
.audience-switch button .line-ico { font-size: 16px; }
.audience-switch button.active .line-ico { color: #8b9cff; }

/* ---- Logging, role menus, VoiceMaster, ticket types */
.lg-list { display: grid; gap: 4px; }
.lg-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lg-row:last-child { border-bottom: 0; }
.lg-name { font-weight: 600; font-size: 14px; }
@media (max-width: 700px) { .lg-row { grid-template-columns: 1fr; } }
.rm-item { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.rm-item .select { max-width: 200px; }
.rm-item .input { flex: 1; min-width: 90px; }
.rm-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rm-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 4px; font-size: 13px; font-weight: 500; color: #fff; }
.rm-grey { background: #4e5058; } .rm-blurple { background: #5865f2; } .rm-green { background: #248046; } .rm-red { background: #da373c; }
.rm-select { display: flex; justify-content: space-between; margin-top: 8px; padding: 9px 12px; border-radius: 4px; background: #1e1f22; color: #949ba4; font-size: 13px; max-width: 420px; }
.rm-options { margin-top: 6px; display: grid; gap: 4px; font-size: 12.5px; max-width: 420px; padding: 6px 10px; background: #2b2d31; border-radius: 4px; }
.rm-reactions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.rm-reaction { padding: 2px 8px; border-radius: 8px; background: #2b2d31; border: 1px solid #3b3d44; font-size: 13px; color: #dbdee1; }
.rm-custom-emo { font-size: 11px; color: #949ba4; }
.vm-setup { border-color: #262a44; background: #11131f; }
.vm-grid { display: grid; grid-template-columns: repeat(5, 40px); gap: 6px; margin-top: 8px; }
.vm-btn { width: 40px; height: 32px; border-radius: 4px; background: #4e5058; display: grid; place-items: center; font-size: 15px; }
.vm-lb { display: grid; gap: 4px; }
.vm-lb > div { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.vm-lb > div:last-child { border-bottom: 0; }
.vm-lb b { margin-left: auto; }
.vm-rank { width: 22px; height: 22px; border-radius: 6px; background: #1a1c2b; color: #c3c9ff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.tt-h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin: 4px 0 8px; }
.tt-row { display: grid; grid-template-columns: auto 64px minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; padding: 6px 0; }
.tt-custom { border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px 10px; margin-bottom: 8px; }
.tt-extra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 760px) {
  /* Toggle, emoji, name and remove on one line; the description gets its own full-width line. */
  .tt-row { grid-template-columns: auto 64px minmax(0, 1fr) auto; }
  .tt-row > :last-child { grid-column: 4; grid-row: 1; }
  .tt-row > [data-f="description"] { grid-column: 1 / -1; grid-row: 2; }
  .tt-extra { grid-template-columns: 1fr; }
}
.perm.discord { color: #8b9cff; }
.perm.discord::before { background: #8b9cff; }
/* VoiceMaster interface preview (matches the posted embed) */
.vm-embed { display: flex; gap: 14px; max-width: 460px; background: #2b2d31; }
.vm-embed-main { flex: 1; min-width: 0; }
.vm-usage-title { font-weight: 700; color: #f2f3f5; margin: 12px 0 2px; font-size: 13.5px; }
.vm-usage { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #dbdee1; line-height: 1.55; }
.vm-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; color: #fff; }
.vm-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vm-word { background: #1e1f22; border: 1px solid #3a3c43; color: #00a8fc; padding: 0 4px; border-radius: 4px; font-size: 12px; }
.vm-thumb { width: 56px; height: 56px; border-radius: 8px; background: #1a1c2b; color: #8b9cff; display: grid; place-items: center; font-weight: 800; font-size: 20px; float: right; margin: 0 0 6px 10px; }
.vm-grid { grid-template-columns: repeat(5, 54px) !important; }
.vm-btn { width: 54px !important; height: 34px !important; background: #4e5058 !important; border-radius: 6px !important; }
.vm-btn .vm-ico svg { width: 17px; height: 17px; }
.vm-usage { display: block; }
.vm-usage .vm-ico { display: inline-grid; vertical-align: -3px; }
.vm-embed-main { overflow: hidden; }
/* Auto-save indicator (replaces save buttons) */
.autosave-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dim); padding: 6px 2px; }
.autosave-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3f3f46; }
.autosave-pill[data-state="saving"]::before { background: #f5b14c; }
.autosave-pill[data-state="saved"] { color: #34d399; }
.autosave-pill[data-state="saved"]::before { background: #34d399; }
.autosave-pill[data-state="error"] { color: #f87171; }
.autosave-pill[data-state="error"]::before { background: #f87171; }

/* Anti-raid status bar */
.ar-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #0f0f12; }
.ar-status.on { border-color: rgba(237, 66, 69, .55); background: rgba(237, 66, 69, .08); }
.ar-status b { display: block; margin-bottom: 2px; }

/* Suggestions */
.sg-list { display: flex; flex-direction: column; gap: 10px; }
.sg-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: #0f0f12; }
.sg-head { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.sg-head img, .sg-av { width: 22px; height: 22px; border-radius: 50%; background: #1c1c20; object-fit: cover; }
.sg-link { margin-left: auto; text-decoration: none; }
.sg-link:hover { color: var(--text); }
.sg-text { margin: 8px 0 10px; white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.sg-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sg-votes { font-size: 13px; color: var(--muted); }
.sg-note { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--line-2); color: var(--muted); font-size: 13px; }
.sg-denied summary { cursor: pointer; list-style: none; }
.sg-denied summary::-webkit-details-marker { display: none; }
.sg-denied summary h4::after { content: ' ▾'; color: var(--dim); }

/* Stats channels */
.ss-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.ss-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #0f0f12; }
.ss-ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #17171a; flex: none; }
.ss-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

/* Server analytics: busiest hours */
.sa-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 150px; align-items: end; }
.sa-hour { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.sa-hour-bar { width: 100%; border-radius: 4px 4px 1px 1px; background: #3987e5; min-height: 2px; }
.sa-hour span { font-size: 10px; color: var(--dim); height: 12px; }

/* Greeting image card preview (matches welcomecard.js) */
.gr-card { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 1000 / 360; border-radius: 8px; overflow: hidden; background-size: cover; background-position: center; margin-top: 8px; display: flex; align-items: center; }
.gr-card-shade { position: absolute; inset: 0; }
.gr-card-av { position: relative; margin-left: 5.8%; width: 18.4%; aspect-ratio: 1; border-radius: 50%; border: 0.7cqw solid; overflow: hidden; background: #1c1c20; flex: none; }
.gr-card-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-card-text { position: relative; margin-left: 4.6%; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.gr-card-text b { font-size: 5.4cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-card-text span { font-size: 3cqw; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Custom dropdowns (same look as the server switcher) */
.kdd { position: relative; width: 100%; }
.kdd-btn { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; background: #0d1015; border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; min-height: 38px; }
.kdd-btn:hover { border-color: var(--line-2); }
.kdd.open .kdd-btn { border-color: #3a3a41; }
.kdd-btn:disabled { opacity: .55; cursor: not-allowed; }
.kdd-btn:focus-visible { outline: 2px solid #3987e5; outline-offset: 1px; }
.kdd-ico { display: grid; place-items: center; width: 16px; color: var(--muted); flex: none; }
.kdd-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kdd.kdd-empty .kdd-label { color: var(--dim); }
.kdd-chev { color: var(--muted); flex: none; transition: transform .15s; }
.kdd.open .kdd-chev { transform: rotate(180deg); }
.kdd-menu { position: fixed; z-index: 1000; background: #0e0e10; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); animation: srvMenuIn .14s ease-out; }
.kdd-search { width: 100%; margin: 0 0 6px; padding: 7px 10px; border-radius: 8px; background: #17171a; border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 13px; outline: none; }
.kdd-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.kdd-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; border: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; width: 100%; }
.kdd-item svg { color: var(--muted); flex: none; }
.kdd-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kdd-item:hover, .kdd-item:focus { background: #17171a; outline: none; }
.kdd-item.current { background: var(--accent-bg, #1a1c2b); }
.kdd-item.none { color: var(--muted); }
.kdd-group { padding: 8px 8px 3px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.kdd-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.kdd-ico[hidden] { display: none; }

/* Embed builder templates */
.eb-templates { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.eb-templates[hidden] { display: none; }
.eb-tpl { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: #0f0f12; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.eb-tpl:hover { color: var(--text); border-color: #3a3a41; }

/* Verify page: steps, progress, VPN help */
.verify-steps { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 10px 0 16px; flex-wrap: wrap; }
.verify-steps li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dim); }
.verify-steps li + li::before { content: ''; width: 18px; height: 1px; background: var(--line-2); margin-right: 2px; }
.verify-steps li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 1px solid var(--line-2); }
.verify-steps li.active { color: var(--text); }
.verify-steps li.active span { border-color: #3987e5; background: #3987e5; color: #fff; }
.verify-steps li.done { color: var(--muted); }
.verify-steps li.done span { border-color: #2ecc71; color: #2ecc71; }
.verify-progress { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.verify-bar { height: 6px; border-radius: 99px; background: #17171a; overflow: hidden; }
.verify-bar span { display: block; height: 100%; background: #3987e5; border-radius: 99px; transition: width .6s ease; }
.verify-vpn { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px solid rgba(237, 66, 69, .5); background: rgba(237, 66, 69, .07); text-align: left; }
.verify-vpn-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.verify-vpn ol { margin: 6px 0 12px 18px; padding: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.faq-item { border: 1px solid var(--line-2); border-radius: 12px; background: #0f0f12; padding: 0 16px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 18px; line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-a { padding: 0 0 14px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.faq-a a { color: var(--text); }

/* Changelog */
.changelog { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.cl-entry { border: 1px solid var(--line-2); border-radius: 12px; background: #0f0f12; padding: 16px 18px; }
.cl-date { font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.cl-entry h3 { margin: 6px 0 8px; font-size: 17px; }
.cl-entry ul { margin: 0 0 0 18px; padding: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.new-badge { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 999px; background: #3987e5; color: #fff; margin-left: auto; }
.new-badge[hidden] { display: none; }

/* Autorole role picker */
.ar2-picker { display: flex; flex-direction: column; gap: 8px; }
.ar2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ar2-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #0f0f12; font-size: 13px; }
.ar2-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.ar2-chip button:hover { color: var(--text); }

/* Search: jump to a setting and flash it */
@keyframes searchFlash { 0%, 60% { box-shadow: 0 0 0 2px #3987e5, 0 0 0 6px rgba(57, 135, 229, .25); } 100% { box-shadow: 0 0 0 0 transparent; } }
.search-flash { animation: searchFlash 2.2s ease-out; border-radius: 10px; }

/* Type-to-confirm dialog for dangerous actions */
.tc-backdrop { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; animation: srvMenuIn .14s ease-out; }
.tc-card { width: min(440px, 100%); background: #0e0e10; border: 1px solid rgba(237, 66, 69, .45); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.tc-card h4 { margin: 0; font-size: 16px; }
.tc-card p { margin: 0 0 4px; line-height: 1.5; }
.tc-word { color: var(--text); user-select: all; }
.tc-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* Automod (polished) */
.am2-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.am2-master, .am2-field { border: 1px solid var(--line-2); border-radius: 12px; background: #0f0f12; padding: 14px; }
.am2-master { display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: border-color .15s, background .15s; }
.am2-master.on { border-color: rgba(57, 135, 229, .55); background: rgba(57, 135, 229, .07); }
.am2-field { display: flex; flex-direction: column; gap: 6px; }
.am2-field label { font-size: 12.5px; color: var(--muted); }
.am2-group { margin-bottom: 18px; }
.am2-gh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.am2-gh h4 { margin: 0; font-size: 15px; }
.am2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.am2-rule { border: 1px solid var(--line-2); border-radius: 12px; background: #0f0f12; padding: 12px 14px; transition: border-color .15s; }
.am2-rule.on { border-color: #2c3a52; }
.am2-head { display: flex; align-items: flex-start; gap: 10px; }
.am2-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #17171a; flex: none; }
.am2-rule.on .am2-ico { background: rgba(57, 135, 229, .14); color: #8fbaf0; }
.am2-txt { flex: 1; min-width: 0; }
.am2-name { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.am2-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.am2-badge { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; background: #5865f2; color: #fff; }
.am2-body { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); flex-direction: column; gap: 10px; }
.am2-rule.on .am2-body { display: flex; }
.am2-body:empty { display: none !important; }
.am2-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.am2-act { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.am2-act:hover { color: var(--text); }
.am2-act.active { background: #3987e5; border-color: #3987e5; color: #fff; }
.am-extra { display: flex; flex-direction: column; gap: 6px; }
.am-checks { flex-direction: row; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.chip-picker .select { max-width: 280px; }

/* Custom commands */
.cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.cc-list { display: flex; flex-direction: column; gap: 8px; }
.cc-card { border: 1px solid var(--line-2); border-radius: 12px; background: #0f0f12; overflow: hidden; }
.cc-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.cc-head code { font-size: 13.5px; }
.cc-preview { flex: 1; min-width: 0; color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-chev { color: var(--muted); transition: transform .15s; }
.cc-card.open .cc-chev { transform: rotate(180deg); }
.cc-body { display: none; padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.cc-card.open .cc-body { display: block; }
/* Channel types */
.ct-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.ct-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #0f0f12; }
.ct-name { font-weight: 650; min-width: 150px; display: flex; align-items: center; gap: 6px; }
.ct-opt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ct-opt .select { min-width: 150px; }

/* Ticket inbox */
.ib { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; height: min(72vh, 720px); background: #0c0c0e; }
.ib-list { border-right: 1px solid var(--line-2); overflow-y: auto; }
.ib-list-head { padding: 12px 14px; font-weight: 650; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #0c0c0e; }
.ib-item { width: 100%; display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.ib-item:hover { background: #121215; }
.ib-item.active { background: var(--accent-bg, #1a1c2b); }
.ib-item-top { display: flex; align-items: center; gap: 6px; }
.ib-when { margin-left: auto; font-size: 11px; }
.ib-dot { width: 8px; height: 8px; border-radius: 50%; background: #f0b232; }
.ib-convo { display: flex; flex-direction: column; min-width: 0; }
.ib-convo-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ib-msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.ib-msg { display: flex; gap: 10px; }
.ib-msg > img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.ib-msg-body { min-width: 0; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.ib-text { white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.ib-embed { border-left: 3px solid #4e5058; background: #17171a; border-radius: 4px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.ib-img { max-width: 260px; max-height: 200px; border-radius: 6px; }
.ib-notes { border-top: 1px dashed var(--line-2); padding: 8px 14px; display: flex; flex-direction: column; gap: 4px; background: rgba(240, 178, 50, .05); font-size: 12.5px; max-height: 120px; overflow-y: auto; }
.ib-compose { border-top: 1px solid var(--line); padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.ib-compose-btns { display: flex; justify-content: flex-end; gap: 6px; }
.ib-qr-list { display: flex; flex-direction: column; gap: 8px; }
.ib-qr-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; align-items: start; }
@media (max-width: 860px) { .ib { grid-template-columns: 1fr; height: auto; } .ib-list { max-height: 240px; border-right: 0; border-bottom: 1px solid var(--line-2); } .ib-msgs { max-height: 50vh; } }

/* Click-to-copy IDs */
code[data-copy] { cursor: copy; }
code[data-copy]:hover { color: var(--text); text-decoration: underline dotted; }
/* Members */
.mm-list { display: flex; flex-direction: column; gap: 6px; }
.cs-pick { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cs-pick:hover b { text-decoration: underline; }
.cs-table td { vertical-align: top; }
.cs-table td.wrap-text { min-width: 220px; }
.cs-table td:first-child, .cs-table td:nth-child(6) { white-space: nowrap; }
.mm-row { border: 1px solid var(--line-2); border-radius: 12px; background: #0f0f12; overflow: hidden; }
.mm-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; flex-wrap: wrap; }
.mm-head img { width: 32px; height: 32px; border-radius: 50%; }
.mm-name { display: flex; align-items: center; gap: 6px; min-width: 180px; font-size: 13.5px; }
.mm-roles { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.mm-roles .ar2-chip { padding: 2px 8px; font-size: 11.5px; }
.mm-body { display: none; padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.mm-row.open .mm-body { display: block; }
.mm-info { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; margin-top: 10px; }
.mm-info div { display: flex; flex-direction: column; gap: 2px; }
.mm-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mm-actions .input { max-width: 260px; }
/* Audit log */
.al-list { display: flex; flex-direction: column; gap: 6px; }
.al-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #0f0f12; font-size: 13.5px; }
.al-row > img { width: 28px; height: 28px; border-radius: 50%; }
.al-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.al-target { color: #8fbaf0; }
.al-changes { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.al-when { font-size: 12px; white-space: nowrap; }
/* Bot profile preview */
.bp-card { position: relative; border-radius: 12px; overflow: hidden; background: #111214; border: 1px solid var(--line-2); max-width: 340px; }
.bp-banner { height: 110px; background: #5865f2; background-size: cover; background-position: center; }
.bp-av { position: absolute; top: 66px; left: 16px; width: 84px; height: 84px; border-radius: 50%; border: 6px solid #111214; background: #1c1c20; object-fit: cover; }
.bp-text { padding: 50px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.bp-text b { font-size: 18px; }
.bp-bio { white-space: pre-wrap; }
.eb-hook-fields { display: contents; }
.eb-hook-fields[hidden] { display: none; }

/* Collapsible sidebar categories */
.nav-cat-btn { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 16px); background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.nav-cat-btn:hover { color: var(--muted); }
.nav-cat-btn svg { transition: transform .15s; opacity: .7; }
.nav-cat-btn.closed svg { transform: rotate(-90deg); }
.nav-cat-n { margin-left: auto; margin-right: 6px; font-weight: 600; letter-spacing: 0; opacity: .55; }
.nav-group { display: flex; flex-direction: column; }
.nav-group.closed { display: none; }

.gw-winner { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; }
.gw-reroll-one { border: 0; background: none; cursor: pointer; font-size: 12px; opacity: .55; padding: 0 2px; }
.gw-reroll-one:hover { opacity: 1; }

/* Stats goal */
.ss-inputs { display: grid; grid-template-columns: 1fr 140px; gap: 8px; }
/* Boosts */
.bo-perks { display: flex; flex-direction: column; gap: 6px; }
.bo-perk { display: flex; gap: 6px; }
.bo-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.bo-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.bo-row img { width: 28px; height: 28px; border-radius: 50%; }
/* Welcome card preview: layouts, fonts, goal bar */
.gr-card.font-serif .gr-card-text { font-family: Georgia, 'Noto Serif', serif; }
.gr-card.font-mono .gr-card-text { font-family: ui-monospace, 'Noto Sans Mono', monospace; }
.gr-card.font-rounded .gr-card-text { font-family: Nunito, 'Varela Round', ui-rounded, system-ui, sans-serif; }
.gr-card.layout-centered { flex-direction: column; justify-content: center; text-align: center; gap: 3cqw; }
.gr-card.layout-centered .gr-card-av { margin: 0; width: 13cqw; }
.gr-card.layout-centered .gr-card-text { margin: 0; align-items: center; }
.gr-card.layout-banner { align-items: flex-end; padding-bottom: 4cqw; }
.gr-card.layout-banner .gr-card-shade { background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,.75)) !important; }
.gr-card.layout-banner .gr-card-av { width: 12.4cqw; margin-left: 4cqw; }
.gr-card-bar { margin-top: 1.4cqw; display: flex; flex-direction: column; gap: .6cqw; width: 46cqw; max-width: 100%; }
.gr-card-bar-track { height: 1.4cqw; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.gr-card-bar-track span { display: block; height: 100%; border-radius: 99px; }
.gr-card-bar small { font-size: 1.8cqw; opacity: .85; }

/* Verify logs world map */
.wm-wrap { display: grid; grid-template-columns: 1fr 220px; gap: 16px; align-items: center; }
.wm { width: 100%; height: auto; display: block; }
.wm-land circle { fill: #26262c; }
.wm-hit { fill: rgba(57, 135, 229, .55); stroke: #3987e5; stroke-width: 1.5; }
.wm-hit:hover { fill: rgba(57, 135, 229, .85); }
.wm-top { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.wm-row { display: flex; gap: 8px; align-items: center; }
.wm-row b { margin-left: auto; }
@media (max-width: 760px) { .wm-wrap { grid-template-columns: 1fr; } }
/* The main column may shrink below its widest content (wide tables scroll inside their own box instead). */
.dash > .main { min-width: 0; }
.embed-builder > * { min-width: 0; }
/* Grid and flex children may shrink: a long channel name or a wide control no longer pushes the page wider than a phone. */
.form > *, .cols > *, .field, .panel { min-width: 0; }
/* Rows of buttons wrap instead of running out of their panel. */
.an-row:has(> .btn) { flex-wrap: wrap; }
@media (max-width: 920px) {
  /* Search boxes keep a usable width and wrap onto their own line instead of shrinking to a sliver. */
  .toolbar .search { flex: 1 1 220px; }
}
@media (max-width: 600px) {
  /* Two-column forms set inline become one column on phones. */
  .form[style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
  .vm-grid { grid-template-columns: repeat(5, minmax(0, 54px)) !important; }
  .vm-btn { width: 100% !important; }
  /* Public pages: the menu pill fits next to the logo. */
  .topbar-inner { padding: 12px 16px; gap: 10px; }
  .nav-pill { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .nav-pill::-webkit-scrollbar { display: none; }
  .nav-pill a { padding: 8px 11px; font-size: 13px; white-space: nowrap; }
}
.an-grid > *, .an-row > .input { min-width: 0; }
@media (max-width: 520px) {
  /* Phones: stack what sat side by side and got squeezed. */
  .an-grid { grid-template-columns: 1fr; }
  .an-wide { grid-column: auto; }
  .an-head { flex-direction: column; align-items: stretch; }
  .cmd { flex-direction: column; }
  .cmd .cmd-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .stats, .stats[style] { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 920px) {
  /* Phone dashboard header: "Admin panel" and "What's new" share one line, so settings start higher up. */
  .side { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; align-items: center; }
  .side > :not(a.nav-item) { grid-column: 1 / -1; }
  .side > a.nav-item { min-width: 0; margin-bottom: 0 !important; }
}
@media (pointer: coarse) {
  /* Touch screens: the × on picked chips is big enough to hit with a finger. */
  .ar2-chip button { min-width: 26px; min-height: 26px; }
}
