:root {
  --bg: #060918;
  --panel: rgba(17, 25, 56, 0.72);
  --panel-solid: #0f1733;
  --panel-2: #18224a;
  --violet: #9b6bff;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef1ff;
  --mute: #8b93b8;
  --dim: #5c6590;
  --blue: #2f5bff;
  --blue-2: #4a70ff;
  --green: #23a55a;
  --red: #f23f43;
  --yellow: #f0b232;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); min-height: 100vh; color: var(--text); font: 15px/1.5 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--blue-2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--panel-2); color: var(--text); cursor: pointer; font-weight: 600; transition: background 0.15s, transform 0.05s; }
.btn:hover { background: #1c2752; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-2); }
.btn.danger { background: rgba(242, 63, 67, 0.15); color: #ff8a8d; }
.btn.danger:hover { background: rgba(242, 63, 67, 0.25); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.big { padding: 14px 22px; font-size: 16px; }

/* login */
.login { text-align: center; max-width: 420px; }
.login img { width: 96px; height: 96px; border-radius: 50%; }
.login h1 { margin: 18px 0 6px; font-size: 30px; letter-spacing: -0.5px; }
.login p { color: var(--mute); margin: 0 0 26px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(7, 11, 28, 0.9); backdrop-filter: blur(10px); z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.me { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 14px; }
.me img { width: 30px; height: 30px; border-radius: 50%; }

/* server picker */
.wrap { max-width: 1240px; margin: 0 auto; padding: 32px 24px 80px; }
.wrap h2 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.3px; }
.sub { color: var(--mute); margin: 0 0 24px; }
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.server { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color 0.15s, transform 0.1s; }
.server:hover { border-color: rgba(47, 91, 255, 0.6); }
.server .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server .meta { color: var(--mute); font-size: 13px; }
.server.off { opacity: 0.75; }
.icon { width: 46px; height: 46px; border-radius: 14px; flex: none; background: var(--panel-2); display: grid; place-items: center; font-weight: 800; color: var(--mute); overflow: hidden; }
.icon img { width: 100%; height: 100%; object-fit: cover; }

/* guild layout */
.layout { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 59px); }
.side { border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 59px; height: calc(100vh - 59px); overflow-y: auto; }
.side .guild { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; font-weight: 700; }
.side .guild .icon { width: 38px; height: 38px; border-radius: 12px; }
.side .label { color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; padding: 14px 10px 6px; }
.side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; color: var(--mute); font-weight: 600; font-size: 14px; }
.side a:hover { background: var(--panel); color: var(--text); }
.side a.active { background: rgba(47, 91, 255, 0.16); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.on { background: var(--green); }
.main { padding: 28px 36px 120px; max-width: 980px; width: 100%; margin: 0 auto; }
.main.wide { max-width: 1480px; }
.content { min-width: 0; }
.main h2 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.3px; }
.mobile-nav { display: none; }

/* overview */
.alert { background: rgba(240, 178, 50, 0.1); border: 1px solid rgba(240, 178, 50, 0.35); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; }
.alert b { color: var(--yellow); }
.alert ul { margin: 6px 0 0; padding-left: 20px; color: #f5d68a; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .k { color: var(--mute); font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; }
.stat .v { font-size: 28px; font-weight: 800; margin-top: 2px; }
.group-title { font-size: 13px; font-weight: 800; color: var(--dim); letter-spacing: 0.8px; text-transform: uppercase; margin: 22px 0 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.feature .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.feature h3 { margin: 0; font-size: 16px; }
.feature p { margin: 0; color: var(--mute); font-size: 13.5px; flex: 1; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); color: var(--mute); white-space: nowrap; }
.pill.on { background: rgba(35, 165, 90, 0.15); color: #5fd68e; }
code { background: var(--panel-2); padding: 2px 6px; border-radius: 6px; font-size: 13px; color: #c9d2ff; }

/* forms */
.form { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.field { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.field.inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.field label, .field .flabel { font-weight: 600; }
.field .help { color: var(--dim); font-size: 13px; margin-top: -4px; }
.field.child { margin-left: 22px; border-left: 3px solid rgba(47, 91, 255, 0.4); }
input[type=text], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { min-height: 90px; resize: vertical; }
input[type=color] { width: 54px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 3px; cursor: pointer; }
.toggle { position: relative; width: 46px; height: 26px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: var(--panel-2); border-radius: 999px; transition: background 0.15s; cursor: pointer; border: 1px solid var(--line); }
.toggle span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 2px; top: 2px; background: #c6cbe3; border-radius: 50%; transition: transform 0.15s, background 0.15s; }
.toggle input:checked + span { background: var(--blue); }
.toggle input:checked + span::after { transform: translateX(20px); background: #fff; }
.toggle input:focus-visible + span { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border-radius: 999px; padding: 4px 6px 4px 10px; font-size: 13px; }
.chip button { border: 0; background: transparent; color: var(--mute); cursor: pointer; padding: 0 4px; font-size: 15px; line-height: 1; }
.chip button:hover { color: var(--red); }
.chip .swatch { width: 9px; height: 9px; border-radius: 50%; }
.lr-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; }
.savebar { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 150%); background: #111a3a; border: 1px solid rgba(47, 91, 255, 0.45); border-radius: 14px; padding: 10px 10px 10px 18px; display: flex; gap: 14px; align-items: center; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); transition: transform 0.2s; z-index: 20; width: min(560px, calc(100vw - 32px)); justify-content: space-between; }
.savebar.show { transform: translate(-50%, 0); }
.savebar .btns { display: flex; gap: 8px; }

/* lists (alerts, schedule) */
.list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 28px; }
.item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .d { color: var(--mute); font-size: 13px; }
.badge { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.badge.yt { background: rgba(255, 0, 0, 0.15); color: #ff6b6b; }
.badge.tw { background: rgba(145, 70, 255, 0.18); color: #b98cff; }
.badge.sc { background: rgba(47, 91, 255, 0.18); color: #8ea6ff; }
.empty { color: var(--mute); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 12px; font-size: 17px; }

/* activity */
.chart { width: 100%; height: 240px; display: block; }
.tops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.tops ol { margin: 0; padding-left: 20px; color: var(--mute); }
.tops li { padding: 3px 0; }
.tops li b { color: var(--text); font-weight: 600; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--mute); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.seg button.on { background: var(--panel-2); color: var(--text); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }

#toast { position: fixed; top: 76px; left: 50%; transform: translate(-50%, -20px); opacity: 0; background: #111a3a; border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; transition: all 0.2s; pointer-events: none; z-index: 30; font-weight: 600; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { border-color: rgba(242, 63, 67, 0.6); color: #ff9ea0; }
#toast.ok { border-color: rgba(35, 165, 90, 0.6); }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-nav { display: block; padding: 12px 16px 0; }
  .main { padding: 18px 16px 120px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .tops, .grid2 { grid-template-columns: 1fr; }
  .top { padding: 12px 16px; }
  .wrap { padding: 24px 16px 60px; }
  .me span { display: none; }
}

/* ===== look & feel layer ===== */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(91, 140, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(155, 107, 255, 0.10), transparent 60%),
    radial-gradient(800px 600px at 60% 120%, rgba(47, 91, 255, 0.10), transparent 60%); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%); }
.ic { flex: none; }
.btn.primary { background: linear-gradient(135deg, #3d6bff, #7a5cff); box-shadow: 0 8px 24px rgba(61, 107, 255, 0.35); }
.btn.primary:hover { background: linear-gradient(135deg, #4f79ff, #8a6dff); }
.btn.ghost { background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.top { background: rgba(6, 9, 24, 0.7); }
.brand-tag { font-size: 11px; font-weight: 700; color: #b9c6ff; background: rgba(91, 140, 255, 0.14); border: 1px solid rgba(91, 140, 255, 0.3); padding: 2px 8px; border-radius: 999px; letter-spacing: 0.3px; }
.card, .stat, .feature, .field, .item, .server, .empty { backdrop-filter: blur(8px); }

/* login */
.login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; padding: 32px 16px; }
.logo-glow { position: relative; width: 112px; height: 112px; margin: 0 auto; }
.logo-glow::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 140, 255, 0.55), transparent 65%); filter: blur(8px); animation: pulse 4s ease-in-out infinite; }
.logo-glow img { position: relative; width: 112px; height: 112px; border-radius: 50%; animation: float 6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; transform: scale(0.92); } }
@keyframes float { 50% { transform: translateY(-6px); } }
.login h1 { font-size: 44px; letter-spacing: -1.2px; background: linear-gradient(180deg, #fff, #aab8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-err { color: #ff9ea0 !important; }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); gap: 14px; }
.perk { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.perk b { display: block; font-size: 14px; }
.perk span { color: var(--mute); font-size: 13px; }
.perk-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(91, 140, 255, 0.14); color: #8fb0ff; flex: none; }

/* server picker */
.page-head { margin-bottom: 22px; }
.page-head h2 { font-size: 30px !important; }
.servers { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.server { position: relative; overflow: hidden; flex-direction: column; align-items: flex-start; padding: 0 0 16px; gap: 0; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.server:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(91, 140, 255, 0.35); }
.server-art { width: 100%; height: 86px; background: linear-gradient(135deg, #2b3f9e, #5b3fae); overflow: hidden; }
.server-art img { width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.4); transform: scale(1.6); opacity: 0.85; }
.server > .icon { width: 58px; height: 58px; border-radius: 16px; margin: -30px 0 0 16px; border: 4px solid var(--panel-solid); background: var(--panel-2); position: relative; }
.server-info { padding: 8px 16px 0; min-width: 0; width: 100%; }
.server .name { font-size: 16px; }
.server .go { position: absolute; right: 14px; bottom: 16px; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #9fb6ff; }
.server .go.add { color: var(--mute); }
.server.off .server-art { filter: grayscale(0.8); }

/* sidebar */
.side { background: rgba(8, 12, 30, 0.55); backdrop-filter: blur(10px); }
.side .guild { padding: 6px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.side .gname { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .gmeta { color: var(--dim); font-size: 12px; font-weight: 600; }
.side a .lk { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.side a .ic { opacity: 0.75; }
.side a.active { background: linear-gradient(90deg, rgba(61, 107, 255, 0.28), rgba(61, 107, 255, 0.06)); box-shadow: inset 2px 0 0 #5b8cff; }
.side a.active .ic { opacity: 1; color: #8fb0ff; }
.side a.back { margin-top: 14px; }
.dot.on { box-shadow: 0 0 0 3px rgba(35, 165, 90, 0.18); }

/* hero */
.hero { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; background: linear-gradient(120deg, #1b2a78, #3a2a86 55%, #12193f); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero-bg img.blur { filter: blur(40px) saturate(1.5); transform: scale(1.5); opacity: 0.55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 9, 24, 0.85), rgba(6, 9, 24, 0.35) 70%, rgba(6, 9, 24, 0.6)); }
.hero-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; padding: 28px; }
.hero-icon { width: 84px; height: 84px; border-radius: 22px; overflow: hidden; flex: none; background: var(--panel-2); display: grid; place-items: center; font-size: 26px; font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.08); }
.hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { flex: 1; min-width: 0; }
.hero-text h2 { font-size: 30px !important; margin: 0 0 10px !important; letter-spacing: -0.6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; font-weight: 600; color: #dfe5ff; }
.hchip.boost { color: #f7a8ff; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.hero-progress { display: flex; align-items: center; gap: 14px; background: rgba(6, 9, 24, 0.55); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 10px 18px 10px 10px; }
.hero-progress b { display: block; font-size: 16px; }
.hero-progress span { color: var(--mute); font-size: 13px; }
.ring-wrap { position: relative; width: 76px; height: 76px; }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 16px; }

/* stat tiles */
.stats.four { grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; }
.stat { position: relative; overflow: hidden; }
.stat-top { display: flex; align-items: center; gap: 10px; }
.stat-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(91, 140, 255, 0.14); color: #8fb0ff; }
.stat .v { font-size: 30px; letter-spacing: -0.5px; margin-top: 8px; }
.stat-extra { color: var(--mute); font-size: 13px; margin-top: 2px; }
.stat-extra .spark { display: block; margin-top: 4px; }
.stat.up .v { color: #5fd68e; }
.stat.down .v { color: #ff9ea0; }

/* overview grid */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 80px; }
.card { background: var(--panel); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.card-head h3 { margin: 0; }
.link { font-size: 13px; font-weight: 700; }
.quick { display: flex; flex-direction: column; gap: 4px; }
.quick-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--text); transition: background 0.15s; }
.quick-row:hover { background: rgba(255, 255, 255, 0.05); }
.quick-row .grow { flex: 1; min-width: 0; }
.quick-row b { display: block; font-size: 14px; }
.quick-row span { color: var(--dim); font-size: 12px; }
.quick-row > .ic { color: var(--dim); }
.wbars { display: block; }
.mini-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; text-align: center; }
.mini-row b { display: block; font-size: 18px; }
.mini-row span { color: var(--dim); font-size: 12px; }
.card.tip { background: linear-gradient(135deg, rgba(61, 107, 255, 0.14), rgba(155, 107, 255, 0.08)); border-color: rgba(91, 140, 255, 0.25); }
.card.tip p { margin: 0; color: #c3cbef; font-size: 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.tb-title { margin: 0; font-size: 20px; }
.tb-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--dim); }
.search:focus-within { border-color: var(--blue); }
.search input { border: 0 !important; background: transparent !important; padding: 8px 0 !important; width: 170px; }

/* feature cards */
.group-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; }
.group-title .count { background: var(--panel-2); color: var(--mute); padding: 1px 8px; border-radius: 999px; font-size: 11px; }
.gdot { width: 8px; height: 8px; border-radius: 3px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.feature { --acc: 91, 140, 255; position: relative; overflow: hidden; color: var(--text); gap: 10px; padding: 18px; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, rgba(var(--acc), 0.9), transparent); opacity: 0; transition: opacity 0.15s; }
.feature.is-on::before { opacity: 1; }
a.feature:hover { transform: translateY(-3px); border-color: rgba(var(--acc), 0.5); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 30px rgba(var(--acc), 0.12); background: rgba(22, 32, 70, 0.8); }
.feature h3 { font-size: 16.5px; }
.f-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--acc), 0.14); color: rgb(var(--acc)); border: 1px solid rgba(var(--acc), 0.25); }
.f-ic.sm { width: 34px; height: 34px; border-radius: 10px; }
.f-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: rgb(var(--acc)); }
a.feature:hover .f-go .ic { transform: translateX(3px); }
.f-go .ic { transition: transform 0.15s; }
.f-cmd { display: flex; flex-direction: column; gap: 4px; }
.f-cmd span { font-size: 11px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--dim); }
.f-cmd code { align-self: flex-start; }
.g-safety { --acc: 255, 122, 89; }
.g-members { --acc: 91, 140, 255; }
.g-fun { --acc: 176, 107, 255; }
.g-posting { --acc: 34, 196, 181; }
.gdot.g-safety, .gdot.g-members, .gdot.g-fun { background: rgb(var(--acc)); }
.f-ic.sm.g-safety, .f-ic.sm.g-members, .f-ic.sm.g-fun { background: rgba(var(--acc), 0.14); color: rgb(var(--acc)); }

@media (max-width: 1200px) {
  .ov-grid { grid-template-columns: 1fr; }
  .aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 980px) {
  .stats.four { grid-template-columns: 1fr 1fr; }
  .hero-in { flex-wrap: wrap; }
  .hero-progress { width: 100%; }
}
@media (max-width: 820px) {
  .perks { grid-template-columns: 1fr; width: 100%; max-width: 420px; }
  .hero-in { padding: 20px; gap: 14px; }
  .hero-icon { width: 64px; height: 64px; border-radius: 18px; }
  .hero-text h2 { font-size: 24px !important; white-space: normal; }
  .search input { width: 120px; }
  .main.wide { padding: 16px 16px 120px; }
}

/* coming soon */
.pill.soon { background: rgba(155, 107, 255, 0.16); color: #c6a8ff; border: 1px solid rgba(155, 107, 255, 0.35); }
.soon-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: #c6a8ff; background: rgba(155, 107, 255, 0.16); padding: 2px 6px; border-radius: 6px; }
.feature.soon { border-style: dashed; border-color: rgba(155, 107, 255, 0.35); background: linear-gradient(135deg, rgba(155, 107, 255, 0.08), var(--panel)); --acc: 176, 140, 255; }
.soon-hero { text-align: center; padding: 30px 16px 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.soon-hero h2 { margin: 4px 0 0 !important; font-size: 30px !important; }
.soon-hero .sub { max-width: 560px; margin: 0; }
.soon-ic { width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; color: #c6a8ff; background: rgba(155, 107, 255, 0.14); border: 1px solid rgba(155, 107, 255, 0.35); box-shadow: 0 0 40px rgba(155, 107, 255, 0.25); }
.main .card + .card { margin-top: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step b { display: block; font-size: 14px; }
.step span { color: var(--mute); font-size: 13px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: linear-gradient(135deg, #3d6bff, #7a5cff); }
.login .pill.soon { display: inline-block; margin-top: 18px; }
.login .pill.soon + h1 { margin-top: 8px; }
.verify-card { max-width: 860px; width: 100%; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ===== tools pages ===== */
.dim { color: var(--dim); }
.seg a { color: var(--mute); padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.seg a.on { background: var(--panel-2); color: var(--text); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; }
.pager-btns { display: flex; align-items: center; gap: 10px; }
.btn[disabled] { opacity: 0.45; cursor: default; }
.item .t { white-space: normal; }
.item.case { align-items: flex-start; }
.item.case .d { overflow-wrap: anywhere; }
.badge { background: rgba(91, 140, 255, 0.14); color: #9fb6ff; }
.ctype { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: rgba(91, 140, 255, 0.15); color: #9fb6ff; vertical-align: 2px; }
.case-ban, .case-tempban, .case-quarantine { --cc: 240, 79, 90; }
.case-kick, .case-softban { --cc: 245, 165, 36; }
.case-warn, .case-timeout { --cc: 245, 197, 66; }
.case-unban, .case-untimeout { --cc: 52, 199, 123; }
.ctype[class*="case-"], .badge[class*="case-"] { background: rgba(var(--cc, 91, 140, 255), 0.15); color: rgb(var(--cc, 159, 182, 255)); }
.item.link { color: var(--text); transition: border-color 0.15s, transform 0.1s; }
.item.link:hover { border-color: rgba(91, 140, 255, 0.45); transform: translateY(-1px); }
.item.link > .ic { color: var(--dim); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
/* transcript */
.card.chat { padding: 10px 6px; }
.msg { display: flex; gap: 14px; padding: 6px 12px; border-radius: 8px; }
.msg:hover { background: rgba(255, 255, 255, 0.025); }
.msg:not(.cont) { margin-top: 10px; }
.msg-av { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.msg.cont .msg-av { height: 0; }
.msg-body { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.msg-head b.bot { color: #9fb6ff; }
.bot-tag { font-size: 10px; font-weight: 800; background: #4a70ff; color: #fff; padding: 1px 5px; border-radius: 4px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.msg-embed { border-left: 4px solid; background: rgba(255, 255, 255, 0.03); border-radius: 6px; padding: 8px 12px; margin-top: 6px; font-size: 14px; white-space: pre-wrap; max-width: 520px; }
.msg-img { display: block; max-width: min(360px, 100%); max-height: 260px; border-radius: 8px; margin-top: 6px; }
.msg-file { display: inline-block; margin-top: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
/* embed templates */
.tpl-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.tpl-layout > .tpl-preview { grid-column: 2; }
@media (min-width: 1700px) { .tpl-layout { grid-template-columns: 220px minmax(0, 1fr) 440px; } .tpl-layout > .tpl-preview { grid-column: 3; } }
.tpl-list { display: flex; flex-direction: column; gap: 6px; }
.tpl-item { text-align: left; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; }
.tpl-item span { color: var(--mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-item.on { border-color: #5b8cff; background: rgba(61, 107, 255, 0.12); }
.tpl-item.new { font-weight: 700; color: #9fb6ff; }
.tpl-name { font-weight: 800; padding: 10px 0; }
.tpl-editor .field { margin: 0 0 14px; padding: 0; background: none; border: 0; backdrop-filter: none; }
.tpl-editor .grid2 { gap: 14px; }
.tpl-editor input[type="color"] { height: 42px; padding: 4px; width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.sub-card { margin-top: 16px; background: rgba(255, 255, 255, 0.02); }
.post-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.post-row select, .post-row input { flex: 1; min-width: 160px; }
.tpl-preview { position: sticky; top: 80px; }
.dc-msg { display: flex; gap: 14px; background: #313338; border-radius: 12px; padding: 16px; margin-top: 8px; }
.dc-av { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.dc-body { min-width: 0; flex: 1; }
.dc-head { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.dc-head .dim { font-size: 12px; color: #949ba4; }
.dc-embed { display: flex; gap: 12px; margin-top: 6px; background: #2b2d31; border-left: 4px solid; border-radius: 4px; padding: 10px 14px 14px 12px; max-width: 432px; }
.dc-embed-main { min-width: 0; flex: 1; }
.dc-title { font-weight: 700; color: #fff; margin-bottom: 6px; overflow-wrap: anywhere; }
.dc-desc { white-space: pre-wrap; font-size: 14px; color: #dbdee1; overflow-wrap: anywhere; }
.dc-image { display: block; max-width: 100%; border-radius: 4px; margin-top: 12px; }
.dc-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; flex: none; }
.dc-foot { font-size: 12px; color: #b5bac1; margin-top: 8px; }
/* staff */
.item.staff { flex-wrap: wrap; }
.staff-av { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--panel-2); }
.sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.sdot.green { background: #3ddc84; } .sdot.yellow { background: #f5c542; } .sdot.red { background: #f04f5a; } .sdot.gray { background: var(--dim); }
.staff-stats { display: grid; grid-template-columns: repeat(4, 64px); gap: 6px; text-align: center; }
.staff-stats b { display: block; font-size: 17px; }
.staff-stats span { color: var(--dim); font-size: 11px; }
/* public leaderboard */
.lb-wrap { max-width: 880px; }
.lb-hero { margin-top: 20px; }
.lb-tabs { margin: 4px 0 18px; flex-wrap: wrap; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; margin-bottom: 16px; }
.pod { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.pod img, .pod-ph { width: 64px; height: 64px; border-radius: 50%; margin: 4px 0; background: var(--panel-2); }
.pod b { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod span { color: var(--mute); font-size: 13px; }
.pod .lvl { font-size: 11px; font-weight: 700; color: #9fb6ff; }
.pod-rank { font-weight: 900; font-size: 18px; }
.pod.gold { padding-top: 30px; border-color: rgba(245, 197, 66, 0.55); box-shadow: 0 0 40px rgba(245, 197, 66, 0.12); }
.pod.gold .pod-rank { color: #f5c542; } .pod.gold img { box-shadow: 0 0 0 3px #f5c542; width: 76px; height: 76px; }
.pod.silver .pod-rank { color: #cfd6e6; } .pod.silver img { box-shadow: 0 0 0 3px #cfd6e6; }
.pod.bronze .pod-rank { color: #e0975a; } .pod.bronze img { box-shadow: 0 0 0 3px #e0975a; }
.lb-list { margin-top: 0; }
.lb-rank { width: 44px; font-weight: 800; color: var(--mute); flex: none; }
.lb-val { font-weight: 700; white-space: nowrap; }
@media (max-width: 1200px) {
  .tpl-preview { position: static; }
}
@media (max-width: 820px) {
  .tpl-layout { grid-template-columns: 1fr; }
  .tpl-layout > .tpl-preview { grid-column: 1; }
  .staff-stats { grid-template-columns: repeat(4, 1fr); width: 100%; }
  .podium { gap: 8px; }
  .pod { padding: 12px 6px; }
  .pod img, .pod-ph { width: 48px; height: 48px; }
  .pod.gold img { width: 56px; height: 56px; }
}
.toolbar select { width: auto; min-width: 180px; }
.toolbar > .search { flex: 1; max-width: 460px; }
.toolbar > .search input { width: 100%; }

/* ===== premium ===== */
.premium-btn { background: linear-gradient(135deg, rgba(245, 197, 66, 0.2), rgba(255, 115, 250, 0.14)); color: #ffe08a; border: 1px solid rgba(245, 197, 66, 0.35); }
.premium-wrap { max-width: 980px; }
.premium-head { text-align: center; margin: 26px 0 20px; }
.premium-head h2 { font-size: 36px !important; margin: 14px 0 6px !important; letter-spacing: -0.8px; }
.logo-glow.small { width: 76px; height: 76px; }
.logo-glow.small img { width: 76px; height: 76px; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.tier.server { border-color: rgba(91, 140, 255, 0.4); box-shadow: 0 0 50px rgba(61, 107, 255, 0.12); }
.tier.user { border-color: rgba(245, 197, 66, 0.35); box-shadow: 0 0 50px rgba(245, 197, 66, 0.08); }
.tier h3 { margin: 8px 0 0; font-size: 22px; }
.tier .sub { margin: 0 0 6px; }
.tier-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(91, 140, 255, 0.15); color: #8fb0ff; }
.tier.user .tier-ic { background: rgba(245, 197, 66, 0.15); color: #f5c542; }
.tier-state { font-weight: 700; color: #5fd68e; }
.perks-list { margin: 8px 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.perks-list li { padding-left: 24px; position: relative; color: #d4daf5; font-size: 14.5px; }
.perks-list li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 6px; border-left: 2px solid #5fd68e; border-bottom: 2px solid #5fd68e; transform: rotate(-45deg); }
.plan-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-btns .btn { flex-direction: column; gap: 2px; padding: 12px; justify-content: center; }
.plan-btns .btn span { font-size: 12px; font-weight: 600; opacity: 0.85; }
.plan-btns .btn b { font-size: 18px; }
.alert.ok { border-color: rgba(52, 199, 123, 0.4); background: rgba(52, 199, 123, 0.1); }
.look-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.look-layout .card .field { margin: 0 0 14px; padding: 0; background: none; border: 0; backdrop-filter: none; }
.look-layout .grid2 { gap: 14px; }
.look-layout input[type="file"] { width: 100%; font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.look-layout input[type="color"] { height: 42px; padding: 4px; width: 100%; }
.look-preview { position: sticky; top: 80px; }
.look-card { position: relative; background: #232428; border-radius: 14px; overflow: hidden; margin-top: 8px; padding-bottom: 18px; }
.look-banner { height: 110px; background: linear-gradient(135deg, #2b3f9e, #5b3fae); }
.look-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.look-av { width: 84px; height: 84px; border-radius: 50%; border: 6px solid #232428; margin: -44px 0 0 14px; position: relative; background: #232428; object-fit: cover; }
.look-name { display: flex; align-items: center; gap: 8px; padding: 2px 18px 0; font-size: 19px; }
@media (max-width: 980px) { .tiers, .look-layout { grid-template-columns: 1fr; } .look-preview { position: static; } }
@media (max-width: 560px) { .me-name { display: none; } }

/* phones: keep the top bar on one line */
@media (max-width: 560px) {
  .top { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .brand-tag, .me-name, .me > img { display: none; }
  .premium-btn { padding-left: 10px; padding-right: 10px; }
  .me { gap: 6px; }
  .me .btn { white-space: nowrap; }
}

/* "Looks like #welcome fits here" suggestions */
.with-suggest { display: flex; flex-direction: column; gap: 8px; }
.suggest { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: 10px; background: rgba(91, 140, 255, 0.1); border: 1px dashed rgba(91, 140, 255, 0.4); color: #c9d4ff; font-size: 13.5px; }
.suggest > span { flex: 1; min-width: 180px; }
.suggest .ic { color: #8fb0ff; }

/* ===== owner panel ===== */
.owner-btn { background: rgba(255, 122, 89, 0.14); color: #ffb39e; border: 1px solid rgba(255, 122, 89, 0.35); }
.owner-ic { display: grid; place-items: center; color: #ffb39e; background: rgba(255, 122, 89, 0.14) !important; }
.o-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ov-grid.even { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.o-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.o-head .icon { width: 56px; height: 56px; border-radius: 16px; font-size: 18px; }
.o-av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.o-av.big { width: 88px; height: 88px; border: 5px solid var(--panel-solid); position: absolute; left: 16px; bottom: -36px; }
.o-profile { position: relative; height: 130px; border-radius: 12px; margin-bottom: 52px; background: linear-gradient(135deg, #2b3f9e, #5b3fae); }
.o-banner { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.o-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; }
.o-form .field, .card > .field { background: none; border: 0; padding: 0; margin: 0 0 12px; }
.o-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.o-actions.col { flex-direction: column; align-items: stretch; }
.codes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.codes code { font-size: 14px; padding: 6px 10px; }
.kv { display: flex; flex-direction: column; gap: 8px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv span { color: var(--mute); flex: none; }
.kv b { text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 60px; align-items: center; gap: 10px; font-size: 14px; }
.bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9d4ff; }
.bar { height: 10px; background: rgba(255, 255, 255, 0.06); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4a70ff, #9b6bff); }
.bar-row b { text-align: right; }
.o-ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: #d6dcf5; }
.o-errors details { border-top: 1px solid var(--line); padding: 8px 0; }
.o-errors summary { cursor: pointer; font-size: 14px; }
.o-errors pre { white-space: pre-wrap; font-size: 12px; background: rgba(0, 0, 0, 0.3); padding: 10px; border-radius: 8px; max-height: 300px; overflow: auto; }
.card textarea { width: 100%; }
/* server switcher in the sidebar */
.gswitch { width: 100%; font-weight: 800; padding: 4px 26px 4px 6px !important; margin-left: -6px; background-color: transparent !important; border-color: transparent !important; cursor: pointer; text-overflow: ellipsis; }
.gswitch:hover, .gswitch:focus { border-color: var(--line) !important; background-color: var(--panel) !important; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 90px 1fr 44px; } }
@media (max-width: 560px) { .top .btn-label { display: none; } .owner-btn, .premium-btn { padding-left: 9px !important; padding-right: 9px !important; } }

/* embed templates: tabs on top, editor + live preview */
.tpl-tabs { margin: 4px 0 16px; }
.tpl-tabrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tpl-tab { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 7px 14px; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; }
.tpl-tab:hover { border-color: rgba(91, 140, 255, 0.5); }
.tpl-tab.on { border-color: #5b8cff; background: rgba(61, 107, 255, 0.16); }
.tpl-tab.new { color: #9fb6ff; border-style: dashed; }
.tpl-dot { width: 10px; height: 10px; border-radius: 50%; }
.tpl-count { background: rgba(255, 255, 255, 0.08); color: var(--mute); font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.tpl-limit { color: var(--dim); font-size: 13px; margin-left: 4px; }
.tpl-layout { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px) !important; gap: 20px; align-items: start; }
.tpl-layout > .tpl-preview { grid-column: auto !important; position: sticky; top: 80px; display: flex; flex-direction: column; gap: 8px; }
.tpl-namerow { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 14px; }
.tpl-editor textarea { min-height: 180px; }
.tpl-editor .grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.tpl-post { margin-top: 6px; }
.tpl-post h3 { margin-top: 0; }
.dc-empty { color: #949ba4; font-size: 14px; font-style: italic; }
@media (max-width: 1100px) {
  .tpl-layout { grid-template-columns: 1fr !important; }
  .tpl-layout > .tpl-preview { position: static; }
}
@media (max-width: 560px) { .tpl-editor .grid2, .tpl-namerow { grid-template-columns: 1fr; } }

/* =====================================================================
   Plain look (final layer): solid surfaces, one accent, system font,
   no glows, gradients, blur, floating cards or all-caps labels.
   ===================================================================== */
:root {
  --bg: #1e1f22;
  --page: #26272b;
  --panel: #2d2f34;
  --panel-solid: #2d2f34;
  --panel-2: #383a40;
  --line: #3b3d43;
  --text: #e6e7ea;
  --mute: #a5a8b0;
  --dim: #80838b;
  --blue: #4a70ff;
  --blue-2: #5d7fff;
  --green: #3ba55d;
  --red: #e5484d;
  --yellow: #e0a526;
  --radius: 8px;
}
html, body { background: var(--page) !important; font: 15px/1.5 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif !important; }
body::before, body::after { display: none !important; }
*, *::before, *::after { backdrop-filter: none !important; }
h1, h2, h3, .main h2, .wrap h2, .hero-text h2, .page-head h2, .soon-hero h2, .premium-head h2 { letter-spacing: 0 !important; }
.main h2, .wrap h2, .page-head h2 { font-size: 22px !important; font-weight: 700; }
a { color: #7f9cff; }

/* top bar + sidebar: one darker surface */
.top { background: var(--bg) !important; border-bottom: 1px solid #111214 !important; box-shadow: none !important; }
.side { background: var(--bg) !important; border-right: 1px solid #111214 !important; }
.brand-tag { background: none !important; border: 0 !important; color: var(--dim) !important; padding: 0 !important; font-weight: 600 !important; font-size: 13px !important; letter-spacing: 0 !important; }
.side .label, .group-title, .stat .k, .f-cmd span, .soon-tag, .ctype { text-transform: none !important; letter-spacing: 0 !important; }
.side .label { font-size: 12px !important; font-weight: 700 !important; color: var(--dim) !important; padding: 16px 10px 4px !important; }
.side a { border-radius: 6px !important; }
.side a.active { background: var(--panel-2) !important; box-shadow: none !important; color: #fff; }
.side a.active .ic { color: #fff !important; }
.side a:hover:not(.active) { background: rgba(255, 255, 255, 0.04); }
.dot.on { box-shadow: none !important; }

/* buttons: solid, small corners */
.btn { border-radius: 6px !important; box-shadow: none !important; transform: none !important; }
.btn.primary, .btn.primary:hover { background: var(--blue) !important; }
.btn.primary:hover { filter: brightness(1.08); }
.btn:not(.primary):not(.danger) { background: var(--panel-2) !important; border: 0 !important; }
.btn.danger { background: rgba(229, 72, 77, 0.14) !important; color: #ff9a9d !important; }
.btn.ghost { background: transparent !important; border: 1px solid var(--line) !important; }
.premium-btn, .owner-btn { background: transparent !important; border: 1px solid var(--line) !important; color: var(--text) !important; }
.premium-btn .ic { color: var(--yellow); }
.owner-btn .ic { color: #ff9f80; }

/* surfaces: flat, no shadows, no lift */
.card, .stat, .feature, .field, .item, .server, .empty, .perk, .alert, .hero-progress, .search, .tpl-tab, .suggest, .dc-msg { border-radius: var(--radius) !important; box-shadow: none !important; }
.card, .stat, .feature, .item, .server, .empty, .perk { background: var(--panel) !important; border: 1px solid var(--line) !important; }
.field { background: var(--panel) !important; border: 1px solid var(--line) !important; }
.card.tip { background: var(--panel) !important; border-color: var(--line) !important; }
.feature, .server, a.feature:hover, .server:hover { transform: none !important; }
a.feature:hover, .server:hover, .item.link:hover, .quick-row:hover { background: #33353b !important; border-color: #4a4d55 !important; box-shadow: none !important; }
.feature::before { display: none !important; }
.feature.is-on { border-left: 3px solid var(--green) !important; }
.feature.soon { background: var(--panel) !important; border-style: dashed !important; }
.f-ic, .stat-ic, .perk-ic, .soon-ic { background: var(--panel-2) !important; border: 0 !important; box-shadow: none !important; border-radius: 6px !important; }
.f-ic { color: rgb(var(--acc)) !important; }
.stat-ic, .perk-ic { color: var(--mute) !important; }
.stat .v { font-size: 26px !important; font-weight: 700; }
.stat.up .v { color: #5bc27f !important; }
.stat.down .v { color: #ff8f92 !important; }
.f-go { color: var(--text) !important; font-weight: 600 !important; }
.f-go .ic { display: none; }
.pill { border-radius: 4px !important; }
.pill.soon, .soon-tag { background: var(--panel-2) !important; color: var(--mute) !important; border: 0 !important; }
.gdot { border-radius: 2px !important; }
.count { border-radius: 4px !important; }

/* inputs */
input, select, textarea { border-radius: 6px !important; }
.search { background: var(--bg) !important; }

/* server header: real banner, no colour wash */
.hero { background: var(--panel) !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; }
.hero::after { background: linear-gradient(90deg, rgba(30, 31, 34, 0.92), rgba(30, 31, 34, 0.6)) !important; }
.hero-bg img.blur { opacity: 0.25 !important; }
.hero-icon { border-radius: 16px !important; box-shadow: none !important; }
.hchip { background: rgba(0, 0, 0, 0.25) !important; border: 0 !important; border-radius: 4px !important; color: var(--text) !important; }
.hchip.boost { color: #f0a6ff !important; }
.live { animation: none !important; box-shadow: none !important; }
.hero-progress { background: rgba(0, 0, 0, 0.3) !important; border: 0 !important; }
.ring circle:last-child { stroke: var(--blue) !important; }

/* server picker */
.server-art { background: var(--panel-2) !important; height: 64px !important; }
.server-art img { opacity: 0.5 !important; }
.server > .icon { border-color: var(--panel) !important; border-radius: 12px !important; }
.server .go { color: var(--mute) !important; }

/* login: no glow, no float, plain title */
.logo-glow::before { display: none !important; }
.logo-glow img { animation: none !important; }
.login h1 { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: #fff !important; font-size: 34px !important; }

/* small bits */
.suggest { background: var(--bg) !important; border: 1px solid var(--line) !important; color: var(--text) !important; }
.suggest .ic { display: none; }
.tpl-tab { border-radius: 6px !important; }
.tpl-tab.on { background: var(--panel-2) !important; border-color: #5a5d66 !important; }
.tpl-tab.new { border-style: solid !important; color: var(--text) !important; }
.savebar { background: #111214 !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; box-shadow: none !important; }
.bar i { background: var(--blue) !important; }
.wbars rect { rx: 2px; }
.owner-ic { background: var(--panel-2) !important; color: #ff9f80 !important; }
.o-profile { background: var(--panel-2) !important; }
.premium-head .logo-glow::before { display: none !important; }
#toast { background: #111214 !important; border-radius: 6px !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.tpl-editor .field, .o-form .field, .card > .field, .card .field.inline { background: none !important; border: 0 !important; padding: 0 !important; }
.tpl-editor .field { margin: 0 0 14px !important; }
.flabel { font-weight: 600; }
.login .btn .ic { display: none; }

/* phones: tidy header and stat boxes */
@media (max-width: 640px) {
  .hero-in { display: grid !important; grid-template-columns: 56px minmax(0, 1fr); gap: 12px 14px !important; align-items: center; padding: 16px !important; }
  .hero-icon { width: 56px !important; height: 56px !important; border-radius: 14px !important; font-size: 18px !important; }
  .hero-text { min-width: 0; }
  .hero-text h2 { font-size: 20px !important; margin: 0 0 6px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
  .chips-row { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 6px !important; }
  .hchip { font-size: 12px !important; padding: 3px 8px !important; }
  .hero-progress { grid-column: 1 / -1; width: 100%; padding: 8px 12px 8px 8px !important; }
  .ring-wrap, .ring { width: 56px !important; height: 56px !important; }
  .ring-num { font-size: 13px !important; }
  .stats.four { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .stat { padding: 12px !important; }
  .stat-ic { display: none !important; }
  .stat .k { font-size: 12.5px !important; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stat .v { font-size: 22px !important; margin-top: 4px !important; }
  .stat-extra { font-size: 12px !important; }
  .main, .main.wide { padding: 14px 14px 110px !important; }
  .page-head h2, .main h2 { font-size: 20px !important; }
  .toolbar { gap: 8px; }
  .tb-right { width: 100%; }
  .tb-right .search { flex: 1; }
  .tb-right .search input { width: 100% !important; }
  .tpl-tabrow { gap: 6px; }
  .tpl-limit { flex-basis: 100%; margin: 2px 0 0; }
  .server-art { height: 44px !important; }
  .server > .icon { width: 48px !important; height: 48px !important; margin-top: -24px !important; }
  .field.inline { gap: 12px; }
}

/* settings pages: one panel, every row the same width (no boxes inside boxes) */
.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); gap: 0 !important; overflow: hidden; }
.form > .field { background: none !important; border: 0 !important; border-radius: 0 !important; border-top: 1px solid var(--line) !important; margin: 0 !important; padding: 16px 18px !important; }
.form > .field:first-child { border-top: 0 !important; }
.form > .field.child { margin-left: 0 !important; border-left: 0 !important; }
.form > .field:first-child.inline .flabel { font-size: 16px; }
.form > .field.inline { padding-top: 14px !important; padding-bottom: 14px !important; }
@media (max-width: 640px) { .form > .field { padding: 14px !important; } }

/* lore book + member map */
.item.lore { align-items: flex-start; }
.lore-n { font-weight: 700; color: var(--mute); min-width: 36px; }
.lore-text { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.map-card { padding: 0; overflow: hidden; }
.map-img { display: block; width: 100%; height: auto; }
.map-row .map-flag { font-size: 22px; width: 28px; text-align: center; }
.map-bar { height: 6px; border-radius: 3px; background: var(--panel-2); margin-top: 6px; overflow: hidden; }
.map-bar span { display: block; height: 100%; background: var(--blue-2); }

.legal { font-size: 13px; color: var(--mute); margin-top: 14px; }
.legal a { color: var(--blue-2); }

/* owner: delete user data */
label.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
label.check input { width: 16px; height: 16px; accent-color: var(--blue-2); }

/* per-role card styles */
.item.role-style { gap: 8px; flex-wrap: wrap; }
.item.role-style select, .item.role-style input[type=text] { min-width: 160px; flex: 1; }
.item.role-style input[type=color] { width: 44px; height: 36px; padding: 2px; }

/* My cards */
.mc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.mc-side { position: sticky; top: 16px; }
.mc-preview { width: 100%; border-radius: 12px; display: block; background: var(--panel); min-height: 120px; }
.mc-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mc-theme { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px; border-radius: 10px; border: 2px solid transparent; background: var(--panel-2, #232428); color: inherit; cursor: pointer; font: inherit; }
.mc-theme.on { border-color: var(--blue-2); }
.mc-theme b { font-size: 14px; }
.mc-theme span:last-child { font-size: 12px; color: var(--mute); }
.mc-swatch { width: 100%; height: 44px; border-radius: 6px; margin-bottom: 6px; }
.t-midnight { background: linear-gradient(135deg, #0b1020, #141b33 60%, #26325e); }
.t-carbon { background: repeating-linear-gradient(45deg, #18191c 0 10px, #202125 10px 20px); }
.t-sunset { background: linear-gradient(180deg, #2a1033, #5b1f3d 55%, #c2533a); }
.t-ocean { background: linear-gradient(180deg, #06222e, #0b3d52 60%, #136b80); }
.t-forest { background: linear-gradient(180deg, #0d1a14, #16301f 60%, #1f462c); }
.t-grid { background-color: #07080c; background-image: linear-gradient(rgba(74,112,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(74,112,255,.25) 1px, transparent 1px); background-size: 12px 12px; }
.t-aurora { background: linear-gradient(170deg, #050913 20%, #1f6f5a 45%, #3b2e7a 60%, #0b1224 80%); }
.t-ember { background: radial-gradient(circle at 15% 110%, #b5332b, #2a0d0f 60%, #14080a); }
@media (max-width: 860px) { .mc-layout { grid-template-columns: 1fr; } .mc-side { position: static; order: -1; } }

/* section titles inside a settings form */
.fheading { margin: 18px 0 2px; }
.form > .fheading:first-child { margin-top: 0; }
.fheading h3 { margin: 0 0 4px; font-size: 16px; }
.fheading p { margin: 0; color: var(--dim); font-size: 13px; }

/* soft tip about the bot's role order on the server overview */
.role-tip { color: var(--mute); font-size: 13px; margin: 8px 0 0; }

/* home page (logged out) */
.home { max-width: 1040px; }
.home-hero { margin: 36px auto 34px; }
.home-hero p { margin-bottom: 18px; }
.home-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.home-live { color: var(--mute); font-size: 13px; text-align: center; margin: 4px 0 8px; }
.home-live .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #80848e; margin-right: 6px; vertical-align: 1px; }
.home-live .dot.on { background: #23a55a; }
.home-h { font-size: 20px; margin: 38px 0 14px; }
.home-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-step { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.home-step b { display: block; font-size: 14px; }
.home-step span { color: var(--mute); font-size: 13px; }
.home-num { width: 28px; height: 28px; border-radius: 6px; background: var(--panel-2); display: grid; place-items: center; font-weight: 700; flex: none; }
.home-news { margin: 0; padding-left: 20px; color: #d4daf5; }
.home-news li { margin: 4px 0; }
.home-faq { display: grid; gap: 14px; }
.home-faq b { display: block; }
.home-faq span { color: var(--mute); font-size: 14px; }
.home-foot { color: var(--mute); font-size: 13px; text-align: center; margin: 46px 0 10px; }
.home-foot a { color: var(--mute); }
@media (max-width: 860px) { .home-features, .home-steps { grid-template-columns: 1fr; } .stats.four { grid-template-columns: 1fr 1fr; } }
.home .home-h { margin: 44px 0 14px !important; }
.home .stats.four { margin-bottom: 10px; }
/* home page: the top bar scrolls away (so it never covers the logo), smaller logo with more room above */
.home-top { position: static !important; }
.home .home-hero { margin: 56px auto 36px; }
.home-hero .logo-glow, .home-hero .logo-glow img { width: 88px !important; height: 88px !important; }
.home-hero h1 { margin-top: 14px; }


/* =====================================================================
   Black theme (matches the logo): neutral blacks and greys instead of
   Discord grey, one blue accent taken from the logo's glow.
   ===================================================================== */
:root {
  --bg: #0b0b0c;
  --page: #101012;
  --panel: #161618;
  --panel-solid: #161618;
  --panel-2: #202024;
  --line: #27272b;
  --text: #ececef;
  --mute: #9b9ba3;
  --dim: #6f6f77;
  --blue: #5577ff;
  --blue-2: #7390ff;
}
a { color: #8ea6ff; }
.top, .side { border-color: #1b1b1e !important; }
a.feature:hover, .server:hover, .item.link:hover, .quick-row:hover { background: #1c1c1f !important; border-color: #34343a !important; }
.side a:hover:not(.active) { background: rgba(255, 255, 255, 0.035); }
.savebar, #toast { background: #0e0e10 !important; }
.hero::after { background: linear-gradient(90deg, rgba(11, 11, 12, 0.94), rgba(11, 11, 12, 0.62)) !important; }
.home-news { color: #cfcfd6; }
.home-hero .logo-glow img { border-radius: 50%; }
.stat .v { font-variant-numeric: tabular-nums; }
.home-live .dot.on { background: #3ba55d; }

/* ticket types editor */
.tt-row{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line, #26262b);border-radius:10px}
.tt-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tt-top > input[type=text]{flex:1;min-width:160px}
.tt-top > select{flex:1;min-width:180px}
.tt-emoji{flex:0 0 64px !important;min-width:0 !important;text-align:center}
