/* ════════════════════════════════════════════════════════════════════
   FurrChat — Dark Vista / Aero Glass theme
   Glassy translucent panels, glossy top sheen, soft glows, deep dark bg
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg-deep: #07090f;
  --bg-grad-1: #0b1020;
  --bg-grad-2: #101726;
  --bg-grad-3: #0a1a2e;
  --glass: rgba(20, 28, 44, 0.55);
  --glass-strong: rgba(16, 22, 36, 0.82);
  --glass-border: rgba(140, 180, 255, 0.22);
  --glass-sheen: linear-gradient(180deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.045) 48%, rgba(255,255,255,0) 52%, rgba(255,255,255,0.02) 100%);
  --text: #dfe6f2;
  --text-dim: #8b95a9;
  --accent: #4fa3ff;
  --accent-glow: rgba(79, 163, 255, 0.45);
  --accent-2: #7cd6ff;
  --danger: #ff5f6b;
  --ok: #4fd28a;
  --warn: #ffcc66;
  --radius: 10px;
  --font: 'Segoe UI', 'Segoe UI Variable', system-ui, sans-serif;
}

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

/* Aero background: deep gradient + soft color orbs */
.auth-bg, .app-bg, .admin-bg {
  background:
    radial-gradient(1000px 600px at 15% -10%, rgba(38, 90, 180, 0.35), transparent 60%),
    radial-gradient(800px 500px at 110% 20%, rgba(90, 40, 160, 0.28), transparent 60%),
    radial-gradient(700px 700px at 50% 120%, rgba(20, 130, 150, 0.22), transparent 60%),
    linear-gradient(160deg, var(--bg-grad-1), var(--bg-grad-2) 55%, var(--bg-grad-3));
  background-attachment: fixed;
}
.auth-bg { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }

/* ── Glass panels ─────────────────────────────────────────────── */
.glass, .glass-card, .glass-strong {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.14);
}
.glass-strong { background: var(--glass-strong); }
.glass-card {
  border-radius: 14px;
  padding: 32px;
  width: 100%;
  max-width: 460px;
}
.glass-card::before, .modal::before, .profile-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--glass-sheen);
  pointer-events: none;
}
.install-card { max-width: 560px; }

/* ── Typography / brand ───────────────────────────────────────── */
.brand {
  font-size: 30px; font-weight: 300; letter-spacing: 0.5px;
  margin-bottom: 18px;
  text-shadow: 0 0 24px var(--accent-glow);
}
.brand span { color: var(--accent-2); font-weight: 600; }
.brand small { font-size: 13px; color: var(--text-dim); margin-left: 8px; }
h2 { font-weight: 400; margin-bottom: 12px; font-size: 20px; }
.muted { color: var(--text-dim); font-size: 13px; }
.center { text-align: center; margin-top: 12px; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-shadow: 0 0 12px var(--accent-glow); }
.mt8 { margin-top: 8px; }

/* ── Forms ────────────────────────────────────────────────────── */
label { display: block; font-size: 12.5px; color: var(--text-dim); margin: 14px 0 5px; text-transform: uppercase; letter-spacing: 0.6px; }
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(5, 8, 16, 0.6);
  border: 1px solid rgba(140, 180, 255, 0.18);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 163, 255, 0.18), 0 0 18px rgba(79, 163, 255, 0.12);
}
input[type=color] { width: 100%; height: 38px; border: 1px solid var(--glass-border); border-radius: 7px; background: transparent; cursor: pointer; }
select option { background: #101726; }
.code-input { letter-spacing: 6px; font-size: 20px; text-align: center; font-family: Consolas, monospace; }
.check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--text); margin-top: 14px; }
.check input { width: auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 18px;
  margin-top: 14px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03) 50%, rgba(0,0,0,0.12));
  color: var(--text);
  font-size: 14px; font-family: var(--font);
  cursor: pointer;
  text-align: center;
  transition: box-shadow .15s, transform .05s;
}
.btn:hover { box-shadow: 0 0 18px rgba(140, 180, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  border-color: rgba(79, 163, 255, 0.6);
  background: linear-gradient(180deg, rgba(120, 190, 255, 0.35), rgba(50, 120, 220, 0.35) 50%, rgba(20, 70, 160, 0.4));
  box-shadow: 0 0 20px rgba(79, 163, 255, 0.2), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn.primary:hover { box-shadow: 0 0 28px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn.danger {
  border-color: rgba(255, 95, 107, 0.55);
  background: linear-gradient(180deg, rgba(255, 120, 130, 0.3), rgba(200, 50, 65, 0.35) 50%, rgba(140, 20, 35, 0.4));
}
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn.small { padding: 5px 10px; font-size: 12.5px; margin-top: 0; }

/* ── Notices ──────────────────────────────────────────────────── */
.notice { padding: 12px 14px; border-radius: 8px; margin: 10px 0; font-size: 13.5px; border: 1px solid; }
.notice.err  { background: rgba(255, 95, 107, 0.12); border-color: rgba(255, 95, 107, 0.4); color: #ffb3b9; }
.notice.ok   { background: rgba(79, 210, 138, 0.1);  border-color: rgba(79, 210, 138, 0.35); color: #a9edc9; }
.notice.warn { background: rgba(255, 204, 102, 0.1); border-color: rgba(255, 204, 102, 0.35); color: #ffe3a3; }

/* ── Registration steps ───────────────────────────────────────── */
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.step { flex: 1; font-size: 11px; color: var(--text-dim); padding: 7px 6px; border-radius: 6px; border: 1px solid transparent; background: rgba(255,255,255,0.04); text-align: center; }
.step b { display: inline-block; width: 16px; height: 16px; line-height: 16px; border-radius: 50%; background: rgba(255,255,255,0.1); font-size: 10px; margin-right: 3px; }
.step.active { border-color: var(--accent); color: var(--text); box-shadow: 0 0 14px rgba(79,163,255,0.2); }
.step.active b { background: var(--accent); color: #04101f; }
.step.done { color: var(--ok); }
.step.done b { background: var(--ok); color: #04150c; }

.qr-wrap { display: flex; justify-content: center; margin: 14px 0; }
#qrcode { padding: 12px; background: #e8ecf4; border-radius: 10px; box-shadow: 0 0 30px rgba(79,163,255,0.25); }
.secret { display: inline-block; padding: 8px 12px; background: rgba(5,8,16,0.7); border: 1px solid var(--glass-border); border-radius: 6px; font-family: Consolas, monospace; letter-spacing: 1px; margin-top: 6px; word-break: break-all; }
.secret.big { font-size: 22px; letter-spacing: 4px; display: block; text-align: center; margin: 14px 0; }
.codes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.codes-grid code { padding: 8px; text-align: center; background: rgba(5,8,16,0.7); border: 1px solid var(--glass-border); border-radius: 6px; font-family: Consolas, monospace; }

/* ════════════════════════════════════════════════════════════════
   APP SHELL
   ════════════════════════════════════════════════════════════════ */
.app-shell { display: flex; height: 100vh; padding: 10px; gap: 10px; }
.app-shell > * { border-radius: 12px; overflow: hidden; }

/* Server rail */
.server-rail { width: 68px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 8px; overflow-y: auto; }
.rail-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 55%, rgba(0,0,0,0.15));
  color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-radius .18s, box-shadow .18s;
  font-weight: 600;
}
.rail-btn:hover, .rail-btn.active { border-radius: 14px; box-shadow: 0 0 18px var(--accent-glow); border-color: var(--accent); }
.rail-btn.add { color: var(--ok); font-size: 24px; }
.rail-sep { width: 32px; height: 1px; background: var(--glass-border); margin: 2px 0; }
#serverRail { display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* Sidebar */
.sidebar { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar-head { padding: 14px 16px; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--glass-border); text-shadow: 0 0 14px rgba(79,163,255,0.3); flex-shrink: 0; }
.sidebar-body { flex: 1; overflow-y: auto; padding: 8px; }
.side-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 7px; cursor: pointer;
  color: var(--text-dim); font-size: 14px;
  border: 1px solid transparent;
}
.side-item:hover { background: rgba(140,180,255,0.08); color: var(--text); }
.side-item.active { background: rgba(79,163,255,0.16); color: var(--text); border-color: rgba(79,163,255,0.3); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
.side-item .avatar { width: 26px; height: 26px; font-size: 11px; }
.side-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); padding: 12px 9px 4px; display: flex; justify-content: space-between; align-items: center; }
.side-label .icon-btn { font-size: 14px; }
.badge { background: var(--danger); color: #fff; font-size: 10.5px; border-radius: 9px; padding: 1px 6px; margin-left: auto; }

/* User panel */
.user-panel { display: flex; align-items: center; gap: 8px; padding: 10px; border-top: 1px solid var(--glass-border); background: rgba(5,8,16,0.35); flex-shrink: 0; }
.user-panel-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.user-panel-info b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-panel-info small { font-size: 11px; }
.icon-btn { background: none; border: none; color: var(--text-dim); font-size: 16px; cursor: pointer; padding: 5px; border-radius: 6px; text-decoration: none; }
.icon-btn:hover { color: var(--text); background: rgba(140,180,255,0.12); text-shadow: 0 0 10px var(--accent-glow); }

/* Avatars */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff;
  background: var(--accent);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 6px rgba(0,0,0,0.4);
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.big { width: 64px; height: 64px; font-size: 22px; }
.avatar .presence-dot { position: absolute; bottom: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #0c1220; z-index: 2; }

/* Upload controls (settings) */
.upload-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.banner-preview { height: 84px; border-radius: 8px; border: 1px solid var(--glass-border); margin-top: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }

/* Image cropper */
.crop-viewport {
  position: relative; margin: 12px auto 0;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #0a0e18;
  touch-action: none; cursor: grab;
  box-shadow: inset 0 0 24px rgba(0,0,0,0.5);
}
.crop-viewport:active { cursor: grabbing; }
.crop-viewport canvas { display: block; }
.crop-mask {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(4, 6, 12, 0.68);
  border: 1px dashed rgba(140, 180, 255, 0.4);
  pointer-events: none;
}
input[type=range] { width: 100%; accent-color: var(--accent); margin-top: 4px; }
.presence-online { background: var(--ok); } .presence-idle { background: var(--warn); }
.presence-dnd { background: var(--danger); } .presence-offline { background: #555e70; }

/* Main chat */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.main-head { padding: 13px 18px; border-bottom: 1px solid var(--glass-border); font-weight: 600; flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.messages { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.msg { display: flex; gap: 12px; padding: 5px 8px; border-radius: 8px; }
.msg:hover { background: rgba(140,180,255,0.05); }
.msg.grouped { margin-top: -2px; }
.msg .avatar { cursor: pointer; margin-top: 2px; }
.msg-body { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: baseline; gap: 8px; }
.msg-head b { font-size: 14px; cursor: pointer; }
.msg-head b:hover { text-decoration: underline; }
.msg-time { font-size: 11px; color: var(--text-dim); }
.msg-text { font-size: 14px; line-height: 1.45; word-wrap: break-word; white-space: pre-wrap; }
.msg-text.deleted { color: var(--text-dim); font-style: italic; }
.msg-tools { margin-left: auto; opacity: 0; display: flex; gap: 4px; }
.msg:hover .msg-tools { opacity: 1; }
.empty-state { margin: auto; text-align: center; }
.empty-state h2 { font-size: 24px; font-weight: 300; text-shadow: 0 0 24px var(--accent-glow); }

/* Composer */
.composer { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--glass-border); flex-shrink: 0; align-items: flex-end; }
.composer textarea { resize: none; max-height: 140px; }
.composer .btn { margin-top: 0; }

/* Member rail */
.member-rail { width: 200px; flex-shrink: 0; overflow-y: auto; }
#memberList { padding: 8px; }
.member-item { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 7px; cursor: pointer; font-size: 13.5px; color: var(--text-dim); }
.member-item:hover { background: rgba(140,180,255,0.08); color: var(--text); }
.member-item .avatar { width: 28px; height: 28px; font-size: 11px; }
.role-tag { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid var(--glass-border); border-radius: 4px; padding: 1px 4px; margin-left: auto; color: var(--accent-2); }

/* Profile card — Discord-style with banner + pfp */
.profile-card { position: fixed; width: 340px; border-radius: 14px; z-index: 300; overflow: hidden; }
.pc-banner { height: 110px; background-size: cover; background-position: center; }
.pc-avatar-ring {
  width: 88px; height: 88px; border-radius: 50%;
  margin: -46px 0 0 18px; position: relative; z-index: 2;
  border: 3px solid var(--accent);
  background: rgba(10,14,24,0.95);
  padding: 3px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.55);
}
.pc-avatar {
  width: 100%; height: 100%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  overflow: hidden;
}
.pc-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.pc-body { padding: 8px 14px 14px; }
.pc-inner {
  background: rgba(5, 8, 16, 0.55);
  border: 1px solid rgba(140, 180, 255, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.pc-inner h3 { font-size: 19px; }
.pc-sub { display: flex; align-items: center; gap: 8px; margin-top: 1px; }
.pc-sub small { color: var(--text-dim); font-size: 12.5px; }
.pc-pronouns {
  border: 1px solid var(--glass-border); border-radius: 5px;
  padding: 1px 6px; color: var(--accent-2) !important;
  background: rgba(79,163,255,0.08); font-size: 11px !important;
}
.pc-status { font-size: 13px; margin: 8px 0 0; }
.pc-section { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(140,180,255,0.12); }
.pc-label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 3px; }
.pc-bio { font-size: 13px; color: var(--text); white-space: pre-wrap; max-height: 110px; overflow-y: auto; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(3, 5, 10, 0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 500; padding: 20px; }
.modal { width: 100%; max-width: 440px; border-radius: 14px; padding: 26px; max-height: 88vh; overflow-y: auto; }
.tabbar { display: flex; gap: 6px; margin: 10px 0 14px; border-bottom: 1px solid var(--glass-border); padding-bottom: 8px; }
.tab { background: none; border: 1px solid transparent; border-radius: 6px; color: var(--text-dim); padding: 6px 12px; cursor: pointer; font-size: 13.5px; font-family: var(--font); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); background: rgba(79,163,255,0.15); border-color: rgba(79,163,255,0.35); }
.blocked-list { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: rgba(5,8,16,0.4); border-radius: 7px; border: 1px solid var(--glass-border); }
.blocked-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.blocked-row .btn { margin-left: auto; }

/* Pinned servers */
.rail-btn.pinned { border-color: var(--warn); box-shadow: 0 0 14px rgba(255, 204, 102, 0.3); }
.rail-btn.pinned:hover, .rail-btn.pinned.active { box-shadow: 0 0 20px rgba(255, 204, 102, 0.5); }

/* Server settings modal */
.modal.wide-modal { max-width: 560px; }
.ss-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.ss-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(5, 8, 16, 0.4);
  border: 1px solid rgba(140, 180, 255, 0.12);
  font-size: 13.5px;
}
.ss-row.wrap { flex-wrap: wrap; }
.ss-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.ss-tools select { width: auto; padding: 5px 8px; font-size: 12.5px; }
.ss-h { font-size: 15px; font-weight: 600; margin-top: 14px; border-top: 1px solid var(--glass-border); padding-top: 12px; }
.role-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 8px currentColor; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.role-chip {
  display: inline-flex; align-items: center; gap: 3px;
  border: 1px solid; border-radius: 5px;
  padding: 1px 6px; font-size: 11px;
  background: rgba(5, 8, 16, 0.5);
}
.chip-x { background: none; border: none; color: inherit; cursor: pointer; font-size: 13px; padding: 0 1px; line-height: 1; }
.chip-x:hover { text-shadow: 0 0 8px currentColor; }

/* Toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); padding: 12px 22px; border-radius: 9px; z-index: 900; font-size: 14px; }
.toast.err { border-color: rgba(255,95,107,0.5); color: #ffb3b9; }

/* ════════ Admin dashboards ════════ */
.admin-shell { display: flex; min-height: 100vh; padding: 10px; gap: 10px; }
.admin-nav { width: 220px; flex-shrink: 0; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--text-dim); font-size: 14px; border: 1px solid transparent; }
.admin-nav a:hover { background: rgba(140,180,255,0.08); color: var(--text); text-shadow: none; }
.admin-nav a.active { background: rgba(79,163,255,0.16); color: var(--text); border-color: rgba(79,163,255,0.3); }
.admin-main { flex: 1; border-radius: 12px; padding: 22px; overflow-x: auto; }
.admin-main h1 { font-weight: 300; margin-bottom: 16px; text-shadow: 0 0 20px var(--accent-glow); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 10px; }
table.data th { text-align: left; padding: 9px 10px; color: var(--text-dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.8px; border-bottom: 1px solid var(--glass-border); }
table.data td { padding: 9px 10px; border-bottom: 1px solid rgba(140,180,255,0.08); vertical-align: top; }
table.data tr:hover td { background: rgba(140,180,255,0.04); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11.5px; border: 1px solid; }
.pill.open, .pill.ban { border-color: rgba(255,95,107,0.5); color: #ffb3b9; background: rgba(255,95,107,0.1); }
.pill.resolved, .pill.ok-pill { border-color: rgba(79,210,138,0.4); color: #a9edc9; background: rgba(79,210,138,0.08); }
.pill.dismissed, .pill.mute { border-color: rgba(255,204,102,0.4); color: #ffe3a3; background: rgba(255,204,102,0.08); }
.pill.warn-pill { border-color: rgba(140,180,255,0.4); color: var(--accent-2); background: rgba(79,163,255,0.08); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-tile { padding: 16px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(5,8,16,0.4); }
.stat-tile b { display: block; font-size: 26px; font-weight: 300; color: var(--accent-2); text-shadow: 0 0 16px var(--accent-glow); }
.stat-tile span { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.8px; }
form.inline { display: inline-flex; gap: 6px; align-items: center; }
form.inline input, form.inline select { width: auto; padding: 5px 8px; font-size: 12.5px; }

/* Scrollbars */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(140,180,255,0.18); border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(140,180,255,0.35); background-clip: content-box; }

/* Responsive */
@media (max-width: 900px) {
  .member-rail { display: none; }
  .sidebar { width: 200px; }
}
@media (max-width: 640px) {
  .app-shell { padding: 4px; gap: 4px; }
  .sidebar { position: fixed; left: 74px; top: 4px; bottom: 4px; z-index: 100; display: none; }
  .sidebar.open { display: flex; }
}
