/* =========================================================
   JARVIS: Arc HUD theme
   Loaded AFTER each page's own <style>, so it only restyles:
   no markup or JS depends on it. Remove the <link> to go back.
   ========================================================= */

:root {
  --bg: #02060c;
  --bg-soft: #04101a;
  --surface: rgba(0, 229, 255, 0.035);
  --surface2: rgba(0, 229, 255, 0.07);
  --card: rgba(4, 18, 30, 0.62);
  --border: rgba(0, 229, 255, 0.18);
  --border-active: rgba(0, 229, 255, 0.62);
  --accent: #00e5ff;
  --accent2: #7ff4ff;
  --accent-dim: rgba(0, 229, 255, 0.12);
  --amber: #ffb020;
  --amber-dim: rgba(255, 176, 32, 0.14);
  --text: #dff9ff;
  --text-muted: #6f97a8;
  --muted: #6f97a8;
  --text-sub: #9cc3cf;
  --danger: #ff3b5c;
  --danger-dim: rgba(255, 59, 92, 0.12);
  --success: #2dffb3;
  --success-dim: rgba(45, 255, 179, 0.12);
  --warn: #ffb020;
  --radius: 2px;
  --radius-sm: 2px;
  --font-display: 'Orbitron', 'Rajdhani', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', 'JetBrains Mono', Consolas, monospace;
  --font-body: 'Rajdhani', 'Inter', system-ui, sans-serif;
  --glow: 0 0 18px rgba(0, 229, 255, 0.45);
  --chamfer: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

body { font-size: 15.5px; font-weight: 500; letter-spacing: .01em; }

/* ── Backdrop: deep space + cyan/amber glow, perspective grid floor, scanlines ── */
body::before {
  background:
    radial-gradient(40% 35% at 12% 0%, rgba(0, 229, 255, 0.16), transparent 60%),
    radial-gradient(35% 35% at 95% 100%, rgba(255, 176, 32, 0.08), transparent 60%),
    radial-gradient(70% 70% at 50% 40%, #04121d 0%, #02070d 60%, #010306 100%);
  animation: none;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 229, 255, 0.03) 0 1px, transparent 1px 3px);
}
html::before {
  content: ""; position: fixed; left: -50%; right: -50%; bottom: 0; height: 80vh; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(55deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 80%);
          mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  animation: hudGrid 5s linear infinite;
}
@keyframes hudGrid { to { background-position: 0 64px, 0 0; } }

::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.28); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 229, 255, 0.5); }
::selection { background: rgba(0, 229, 255, 0.35); color: #fff; }

/* ── Top bar ── */
.topbar {
  background: rgba(2, 10, 18, 0.78);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 229, 255, 0.35), 0 10px 40px rgba(0, 0, 0, 0.5);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: hudSweepX 6s linear infinite; opacity: .8;
}
@keyframes hudSweepX { 0% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.topbar-logo {
  background: none; -webkit-text-fill-color: currentColor; color: var(--accent);
  font-weight: 900; letter-spacing: .18em; text-shadow: var(--glow);
}
.topbar-logo svg { animation: hudSpin 12s linear infinite; filter: drop-shadow(0 0 10px rgba(0, 229, 255, .8)); }
.topbar-logo svg [stop-color] { stop-color: var(--accent); }
@keyframes hudSpin { to { transform: rotate(360deg); } }
.topbar-status { font-family: var(--font-display); font-size: 10.5px; letter-spacing: .2em; color: var(--success); }
.dot { background: var(--success); box-shadow: 0 0 10px var(--success); }
.server-chip { background: rgba(0, 229, 255, .04); border-color: rgba(0, 229, 255, .22); box-shadow: inset 0 0 18px rgba(0, 229, 255, .05); }
.server-chip:hover { border-color: var(--accent); box-shadow: 0 0 14px rgba(0, 229, 255, .25), inset 0 0 18px rgba(0, 229, 255, .08); }
.server-chip-icon { box-shadow: 0 0 10px rgba(0, 229, 255, .35); font-family: var(--font-display); }
.server-chip-label { font-family: var(--font-mono); color: var(--accent); opacity: .7; }
.server-chip-name { font-family: var(--font-body); font-size: 15px; letter-spacing: .02em; }
#current-guild-name { font-family: var(--font-mono); color: var(--text-sub); }

.save-btn {
  background: var(--accent); color: #00141c; font-family: var(--font-display); font-weight: 900; letter-spacing: .14em;
  box-shadow: 0 0 22px rgba(0, 229, 255, .55);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.save-btn:hover { box-shadow: 0 0 32px rgba(0, 229, 255, .8); background: #5ff6ff; }

/* ── Sidebar ── */
.sidebar {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.05), rgba(2, 10, 18, 0.72) 30%);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 40px rgba(0, 229, 255, 0.04), 0 10px 40px rgba(0, 0, 0, .5);
}
.nav-section { font-family: var(--font-display); font-size: 9.5px; letter-spacing: .28em; color: var(--text-muted); }
.nav-section::before { content: "▸ "; color: var(--amber); opacity: 1; }
.nav-item { font-size: 15.5px; font-weight: 600; color: var(--text-sub); border-radius: 0; border-left: 2px solid transparent; }
.nav-item:hover { background: linear-gradient(90deg, rgba(0, 229, 255, .14), transparent); border-left-color: var(--accent); color: var(--text); }
.nav-item:hover svg { color: var(--accent); }
.nav-item.active {
  background: var(--accent); color: #00141c; font-weight: 700;
  box-shadow: 0 0 24px rgba(0, 229, 255, .45);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.nav-item.active svg { color: #00141c; }
.dev-link { border-color: var(--border-active); background: var(--accent-dim); font-family: var(--font-mono); border-radius: 0; }
.dev-link svg, .dev-link .dev-link-arrow { color: var(--accent); }
.dev-link:hover { background: rgba(0, 229, 255, .16); box-shadow: var(--glow); border-color: var(--accent); }

/* ── Page heading ── */
.page-title {
  font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: .06em;
  text-shadow: 0 0 22px rgba(0, 229, 255, .45);
}
.page-sub { font-size: 15px; color: var(--text-muted); }

/* ── Cards: HUD panels with corner brackets ── */
.card {
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.06), rgba(2, 12, 20, 0.6) 40%);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.03), 0 10px 40px rgba(0, 0, 0, .45);
}
.card::before, .card::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--accent);
  background: none; border-radius: 0; opacity: .9; pointer-events: none;
  transition: width .25s ease, height .25s ease;
}
.card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.card:hover { border-color: rgba(0, 229, 255, .4); box-shadow: inset 0 0 40px rgba(0, 229, 255, 0.06), 0 0 0 1px rgba(0, 229, 255, .12), 0 14px 44px rgba(0, 0, 0, .5); }
.card:hover::before, .card:hover::after { width: 26px; height: 26px; }
.card-title { font-family: var(--font-display); font-size: 11.5px; letter-spacing: .24em; color: var(--text); }
.card-title svg { color: var(--accent); filter: drop-shadow(0 0 6px rgba(0, 229, 255, .7)); }

/* ── Stat tiles ── */
.stat-card {
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.09), rgba(2, 12, 20, .6) 55%);
  border: 1px solid var(--border);
  clip-path: var(--chamfer);
}
.stat-card::after {
  width: auto; height: 50px; inset: auto 0 auto 0; top: -50px; border-radius: 0;
  background: linear-gradient(transparent, rgba(0, 229, 255, .12), transparent);
  animation: hudSweepY 4.5s linear infinite;
}
.stat-card:nth-child(2)::after { animation-delay: -1.5s; }
.stat-card:nth-child(3)::after { animation-delay: -3s; }
@keyframes hudSweepY { to { top: 120%; } }
.stat-num {
  font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: .04em;
  background: none; -webkit-text-fill-color: currentColor; color: var(--accent); text-shadow: var(--glow);
}
.stat-card:nth-child(2) .stat-num { color: var(--amber); text-shadow: 0 0 18px rgba(255, 176, 32, .55); }
.stat-label { font-family: var(--font-display); font-size: 9.5px; letter-spacing: .24em; }

/* ── Forms ── */
label { font-family: var(--font-display); font-size: 10px; letter-spacing: .2em; color: var(--text-sub); }
input[type="text"], input[type="number"], input[type="url"], select, textarea,
.premium-code-row input {
  background: rgba(0, 10, 18, .6); border: 1px solid var(--border); border-radius: 0;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 500; color: var(--text);
}
input[type="text"]:focus, input[type="number"]:focus, input[type="url"]:focus, select:focus, textarea:focus,
.premium-code-row input:focus {
  border-color: var(--accent); background: rgba(0, 229, 255, .06);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, .35), 0 0 18px rgba(0, 229, 255, .18);
}
select option { background: #03101a; }
input[type="file"] { border-radius: 0; border-color: var(--border); }
input[type="file"]::-webkit-file-upload-button { background: var(--accent); color: #00141c; border-radius: 0; font-family: var(--font-display); letter-spacing: .08em; }

/* ── Buttons ── */
.btn {
  border-radius: 0; font-family: var(--font-display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--border-active); background: rgba(0, 229, 255, .05); color: var(--accent);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn:hover { background: var(--accent); color: #00141c; box-shadow: 0 0 22px rgba(0, 229, 255, .5); }
.btn-danger { border-color: rgba(255, 59, 92, .5); color: var(--danger); background: rgba(255, 59, 92, .06); }
.btn-danger:hover { background: var(--danger); color: #1a0308; box-shadow: 0 0 22px rgba(255, 59, 92, .45); }
.btn-success { border-color: rgba(45, 255, 179, .5); color: var(--success); background: rgba(45, 255, 179, .06); }
.btn-success:hover { background: var(--success); color: #00170e; box-shadow: 0 0 22px rgba(45, 255, 179, .45); }
.log-batch-btn, .placeholder-chip { border-radius: 0; font-family: var(--font-mono); }
.log-batch-btn:hover, .placeholder-chip:hover { background: var(--accent); color: #00141c; }
.add-panel-btn { border-radius: 0; font-family: var(--font-display); letter-spacing: .14em; font-size: 11px; text-transform: uppercase; background: rgba(0, 229, 255, .03); }

/* ── Toggles ── */
.toggle-name { font-size: 15px; }
.toggle-desc { font-size: 13px; }
.toggle-slider { border-radius: 0; background: rgba(0, 10, 18, .8); }
.toggle-slider:before { border-radius: 0; }
.toggle input:checked + .toggle-slider { background: var(--accent); box-shadow: 0 0 14px rgba(0, 229, 255, .6); }
.toggle input:checked + .toggle-slider:before { background: #00141c; }

/* ── Choice cards (JARVIS brain, personality modes) ── */
.mode-card { border-radius: 0; background: rgba(0, 229, 255, .025); border: 1px solid var(--border); }
.mode-card:hover { border-color: var(--border-active); background: rgba(0, 229, 255, .06); }
.mode-card.selected {
  background: linear-gradient(135deg, rgba(0, 229, 255, .18), rgba(0, 229, 255, .04));
  border-color: var(--accent);
  box-shadow: inset 0 0 26px rgba(0, 229, 255, .16), 0 0 20px rgba(0, 229, 255, .25);
}
.mode-label { font-size: 15.5px; }
.mode-sub { font-size: 13px; }

/* ── Lists / panels / misc boxes ── */
.panel-item, .tracked-item, .guild-card, .team-card, .welcome-preview, .panel-preview-inline,
.upgrade-nudge, .premium-feature-list, .menu-toggle, #support-box { border-radius: 0; }
.panel-item.expanded { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(0, 229, 255, .2), 0 0 24px rgba(0, 229, 255, .1); }
.panel-header-title { font-size: 15.5px; }
.guild-card { background: rgba(0, 229, 255, .03); }
.guild-card:hover { background: rgba(0, 229, 255, .08); border-color: var(--accent); box-shadow: 0 0 26px rgba(0, 229, 255, .22); }
.guild-icon { background: rgba(0, 229, 255, .1); border-color: var(--border-active); color: var(--accent); }
.guild-name { font-size: 15px; }
.team-card { background: linear-gradient(160deg, rgba(0, 229, 255, .07), rgba(2, 12, 20, .6)); }
.team-card img, .team-card .team-avatar-placeholder { border-color: var(--accent); box-shadow: 0 0 18px rgba(0, 229, 255, .35); }
.team-role-pill { border-radius: 0; font-family: var(--font-display); letter-spacing: .1em; }
.team-role-pill.dev { background: var(--accent-dim); color: var(--accent); }
.team-role-pill.contrib { background: var(--amber-dim); color: var(--amber); }
#support-box { background: rgba(2, 10, 18, .85); }
#support-box:hover { border-color: var(--accent); box-shadow: 0 0 26px rgba(0, 229, 255, .3); }

/* ── Badges: premium tags in amber ── */
.badge { border-radius: 0; font-family: var(--font-display); letter-spacing: .1em; }
.premium-badge {
  border-radius: 0; font-family: var(--font-display); font-size: 9px; letter-spacing: .12em;
  background: var(--amber-dim); color: var(--amber); border-color: rgba(255, 176, 32, .55);
}
.upgrade-nudge { border-color: rgba(255, 176, 32, .45); background: var(--amber-dim); }
.upgrade-nudge-title, .upgrade-nudge-arrow { color: var(--amber); }

/* ── Login / server picker / loading ── */
.center-screen h1 {
  background: none; -webkit-text-fill-color: currentColor; color: var(--accent);
  font-weight: 900; letter-spacing: .2em; text-shadow: 0 0 28px rgba(0, 229, 255, .6);
}
.center-screen p { font-size: 15px; }
.discord-btn { border-radius: 0; font-family: var(--font-display); letter-spacing: .1em; font-size: 12.5px; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.spinner { border-radius: 50%; border-color: rgba(0, 229, 255, .15); border-top-color: var(--accent); box-shadow: 0 0 18px rgba(0, 229, 255, .3); }

/* ── Toast ── */
.toast {
  border-radius: 0; background: rgba(2, 12, 20, .92); border-color: var(--accent); color: var(--accent);
  font-family: var(--font-mono); box-shadow: 0 0 26px rgba(0, 229, 255, .25), 0 12px 40px rgba(0, 0, 0, .6);
}
.toast.error { border-color: var(--danger); color: var(--danger); box-shadow: 0 0 26px rgba(255, 59, 92, .25); }

/* ── Premium upgrade modal ── */
.premium-modal {
  border-radius: 0; border-color: var(--accent);
  background: linear-gradient(160deg, rgba(4, 22, 34, .97), rgba(2, 8, 14, .98));
  box-shadow: 0 0 60px rgba(0, 229, 255, .14), 0 30px 90px rgba(0, 0, 0, .7);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.premium-modal-title { font-family: var(--font-display); letter-spacing: .06em; }
.premium-modal-sub { font-size: 14.5px; }
.premium-checkout-btn {
  border-radius: 0; background: var(--amber); color: #1a0f00; font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; font-size: 13px;
  box-shadow: 0 0 26px rgba(255, 176, 32, .45);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.premium-checkout-btn:hover { box-shadow: 0 0 36px rgba(255, 176, 32, .7); }
.premium-code-btn { border-radius: 0; font-family: var(--font-display); letter-spacing: .1em; font-size: 11.5px; }
.premium-code-btn:hover { background: var(--accent); color: #00141c; }

/* ── Premium / pricing page (premium.html) ── */
:root { --gold: #ffb020; --gold2: #ff8a00; }
header { background: rgba(2, 10, 18, .8); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(0, 229, 255, .3); }
.brand { background: none; -webkit-text-fill-color: currentColor; color: var(--accent); font-weight: 900; letter-spacing: .18em; text-shadow: var(--glow); }
.brand-mark { animation: hudSpin 12s linear infinite; filter: drop-shadow(0 0 10px rgba(0, 229, 255, .8)); }
.brand-mark [stop-color] { stop-color: var(--accent); }
nav a:not(.nav-cta) { font-family: var(--font-display); font-size: 10px; letter-spacing: .2em; }
.nav-cta { background: var(--accent); color: #00141c; border-radius: 0; font-family: var(--font-display); letter-spacing: .14em; box-shadow: 0 0 22px rgba(0, 229, 255, .5); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.hero h1 { font-family: var(--font-display); letter-spacing: .02em; text-shadow: 0 0 30px rgba(0, 229, 255, .25); }
.hero h1 em { background: none; -webkit-text-fill-color: currentColor; color: var(--accent); text-shadow: var(--glow); }
.hero p, .section-head p { font-size: 16.5px; }
.btn-primary { background: var(--accent); color: #00141c; border-color: var(--accent); box-shadow: 0 0 22px rgba(0, 229, 255, .45); }
.btn-primary:hover { background: #5ff6ff; color: #00141c; }
.btn-secondary { background: rgba(0, 229, 255, .05); }
.embed-mock, .compare-wrap { border-radius: 0; border-color: var(--border); background: linear-gradient(160deg, rgba(0, 229, 255, .06), rgba(2, 12, 20, .65) 45%); }
.embed-mock::before, .compare-wrap::before { background: var(--accent); }
.embed-avatar { background: var(--accent); }
.embed-user-name .bot-tag { background: var(--accent); color: #00141c; border-radius: 0; }
.embed-card { border-radius: 0; }
.strip { border-color: var(--border); }
.strip b { color: var(--accent); text-shadow: var(--glow); }
.section-head .kicker { font-family: var(--font-display); font-size: 10px; letter-spacing: .3em; color: var(--accent); }
.section-head .kicker::before { content: "▸ "; color: var(--amber); }
.section-head h2 { font-family: var(--font-display); letter-spacing: .04em; }
table.compare th { font-family: var(--font-display); font-size: 10.5px; letter-spacing: .18em; }
table.compare td { font-size: 15px; }
table.compare tr:hover td { background: rgba(0, 229, 255, .05); }
table.compare td.gold { color: var(--amber); }
.interval-toggle, .interval-toggle button { border-radius: 0; font-family: var(--font-display); letter-spacing: .1em; }
.interval-toggle button.active { background: var(--accent); color: #00141c; box-shadow: 0 0 18px rgba(0, 229, 255, .45); }
.price-card {
  border-radius: 0; border-color: var(--border);
  background: linear-gradient(160deg, rgba(0, 229, 255, .07), rgba(2, 12, 20, .65) 50%);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.price-card::before { background: var(--accent); box-shadow: var(--glow); }
.price-card:hover { border-color: var(--accent); box-shadow: inset 0 0 40px rgba(0, 229, 255, .08); }
.price-card.featured { border-color: rgba(255, 176, 32, .55); background: linear-gradient(160deg, rgba(255, 176, 32, .1), rgba(2, 12, 20, .65) 50%); }
.price-card.featured::before { background: var(--amber); box-shadow: 0 0 18px rgba(255, 176, 32, .6); }
/* the card's clipped corners would cut off a badge sitting above the edge, so dock it inside */
.price-card.featured::after {
  top: 14px; left: auto; right: 26px; border-radius: 0; background: var(--amber); color: #1a0f00;
  font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; font-size: .58rem;
  box-shadow: 0 0 16px rgba(255, 176, 32, .5);
}
.price-card h3 { font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-size: 1rem; }
.price-card .member-limit { font-family: var(--font-mono); color: var(--accent); }
.price-card .amount { font-family: var(--font-display); background: none; -webkit-text-fill-color: currentColor; color: var(--accent); text-shadow: var(--glow); }
.price-card.featured .amount { background: none; color: var(--amber); text-shadow: 0 0 18px rgba(255, 176, 32, .55); }
.price-card.featured .btn-primary { background: var(--amber); border-color: var(--amber); color: #1a0f00; box-shadow: 0 0 22px rgba(255, 176, 32, .45); }
.price-card li { font-size: 15px; }
.price-card li::before { content: "▸"; color: var(--accent); }
.price-card.featured li::before { color: var(--amber); }
.server-select select { border-radius: 0; }
footer { border-top: 1px solid var(--border); }

/* ── Phones: Orbitron is wide, so tighten the top bar ── */
@media (max-width: 800px) {
  .topbar { gap: 6px; }
  .topbar-logo { font-size: 13px; letter-spacing: .1em; }
  .server-chip-name { font-size: 13px; }
  .save-btn { white-space: nowrap; font-size: 9.5px; letter-spacing: .06em; padding: 8px 12px; margin-left: auto; }
  .user-chip .btn { white-space: nowrap; font-size: 9.5px; letter-spacing: .04em; padding: 6px 8px; }
  .page-title { font-size: 21px; }
  .stat-num { font-size: 22px; }
}
/* ── Phones: compact content, and floating buttons that don't cover it ── */
@media (max-width: 800px) {
  .main { padding: 14px 12px 96px; }
  .page-title { margin-bottom: 4px; }
  .page-sub { font-size: 14.5px; margin-bottom: 16px; }
  .card { padding: 16px 14px; margin-bottom: 14px; }
  .card-title { font-size: 11px; letter-spacing: .18em; margin-bottom: 14px; }
  .stat-row { grid-template-columns: repeat(3, 1fr) !important; gap: 6px; margin-bottom: 14px; }
  .stat-card { padding: 10px 8px; min-width: 0; }
  .stat-num { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stat-label { font-size: 8.5px; letter-spacing: .12em; }
  .btn { font-size: 11px; letter-spacing: .08em; padding: 10px 12px; }
  input, select, textarea { font-size: 16px; } /* 16px stops iPhones zooming in on focus */
  .toggle-row { gap: 12px; }
  .card div.placeholder-chips { flex-direction: row; align-items: center; gap: 6px; } /* wrap like tags, not one per row */
  .placeholder-chip { padding: 5px 9px; }
  .toggle-desc { font-size: 13px; }

  /* support box shrinks to a round Discord button, with the voice button beside it */
  #support-box { right: 14px; bottom: 14px; width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; z-index: 140; }
  #support-box .sb-text { display: none; }
  #support-box svg { width: 22px; height: 22px; }
  body:has(#support-box) .jv { right: 66px !important; bottom: 17px !important; }
  body:has(#support-box) .jv-cap { max-width: calc(100vw - 150px); }
  .jv { z-index: 140 !important; } /* under the opened sidebar (200) */
  .toast { bottom: 74px; left: 12px; right: 12px; max-width: none; }
}
@media (max-width: 400px) {
  /* keep the logo icon, drop the word, so the server button still fits */
  .topbar-logo { font-size: 0; gap: 0; }
  .server-chip .server-chip-text { display: none; } /* icon + arrow only */
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  html::before, .topbar::after, .topbar-logo svg, .stat-card::after { animation: none; }
}
