/* ═══════════════════════════════════════════════════════════════
   PULSAR v3 — the one theme layer.
   Loaded last, after app.css and upgrade.css.
   It replaces dashboard-pro.css, theme-v2.css, motion-2026.css and ultra-2026.css.

   1. Tokens          4. Public sub-pages     7. Plugin pages
   2. Shared pieces   5. Server picker        8. Overlays
   3. Landing page    6. Dashboard shell      9. Small screens & motion
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────── 1. Tokens ───────────────────────── */
:root {
  --v-bg: #1a1d2e;
  --v-surface: #222540;
  --v-raised: #2a2d4a;
  --v-hover: #323558;
  --v-line: rgba(255, 255, 255, .06);
  --v-line-2: rgba(255, 255, 255, .11);
  --v-text: #eef0f6;
  --v-body: #c3c8d6;
  --v-muted: #a0a7b8;
  --v-faint: #6b7285;
  --v-blue: #3994ff;
  --v-signal: #67e8f9;
  --v-on: #34d399;
  --v-display: 'Sora', 'Inter', system-ui, sans-serif;
  --v-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --v-r: 14px;
  --v-r-sm: 10px;
  --v-ease: cubic-bezier(.22, 1, .36, 1);

  /* The base stylesheets read these, so re-pointing them re-themes everything they draw. */
  --bg: var(--v-bg);
  --bg-2: var(--v-bg);
  --panel: var(--v-surface);
  --panel-2: var(--v-raised);
  --panel-3: var(--v-hover);
  --border: var(--v-line);
  --border-strong: var(--v-line-2);
  --hairline: var(--v-line);
  --hairline-2: var(--v-line);
  --text: var(--v-text);
  --heading: var(--v-text);
  --label: var(--v-body);
  --muted: var(--v-muted);
  --faint: var(--v-faint);
  --primary: #3994ff;
  --primary-2: #2f7fe0;
  --primary-rgb: 57, 148, 255;
  --primary-light: #7db8ff;
  --primary-soft: rgba(57, 148, 255, .13);
  --primary-ring: rgba(57, 148, 255, .32);
  --primary-grad: linear-gradient(135deg, #3994ff, #22d3ee);
  --accent: #22d3ee;
  --success: #34d399;
  --radius: var(--v-r);
  --radius-sm: var(--v-r-sm);
  --sidebar: 380px;
  --topbar: 64px;
  --pro-line: var(--v-line);
  --pro-line-hover: var(--v-line-2);
  --pro-r-sm: 10px;
  --pro-r-md: 12px;
  --pro-r-lg: 14px;
  --pro-r-xl: 16px;
  --pro-sheen: 0 0 0 0 transparent;
  --pro-e1: 0 0 0 0 transparent;
  --pro-e2: 0 0 0 0 transparent;
  --pro-e3: 0 24px 60px -24px rgba(0, 0, 0, .8);
}

/* ───────────────────────── 2. Shared pieces ───────────────────────── */
body { background: var(--v-bg); color: var(--v-body); font-size: 14.5px; }
body:has(.site-nav) { background: var(--v-bg); }
body:has(.site-nav)::before, body:has(.site-nav)::after { content: none; }
h1, h2, h3 { font-family: var(--v-display); color: var(--v-text); letter-spacing: -.025em; }
code, kbd { font-family: var(--v-mono); }
::selection { background: rgba(57, 148, 255, .4); color: #fff; }

/* Buttons: flat, one radius, no sweep or lift */
.btn { border-radius: var(--v-r-sm); font-weight: 600; letter-spacing: -.005em; transition: background .16s, border-color .16s, color .16s; }
.btn-lg { height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15px; }
.btn-primary, .btn-primary:hover, .btn-primary:active { transform: none !important; filter: none; }
.btn-primary {
  background: var(--v-blue) !important; border: 1px solid transparent !important; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 3px rgba(0, 0, 0, .3) !important;
}
.btn-primary::after { content: none !important; }
.btn-primary:hover { background: #4da6ff !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 3px rgba(57, 148, 255, .14) !important; }
.btn-ghost, .site-nav ~ * .btn-ghost, .site-nav ~ .btn-ghost {
  background: rgba(255, 255, 255, .03) !important; border: 1px solid var(--v-line-2) !important; color: var(--v-text);
  -webkit-backdrop-filter: none; backdrop-filter: none; transform: none !important;
}
.btn-ghost:hover, .site-nav ~ * .btn-ghost:hover { background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .18) !important; }
.btn svg.icon { width: 18px; height: 18px; }

/* Scroll reveal: a short rise, no blur */
.reveal { filter: none; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--v-ease), transform .6s var(--v-ease); }
.reveal.in { opacity: 1; transform: none; }

/* The signal plot */
.pulsar-plot { display: block; overflow: visible; }
.pp-row { fill: var(--v-bg); stroke: url(#pp-stroke); stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linejoin: round;
  stroke-opacity: .5; animation: pp-pulse 6.4s ease-in-out infinite; animation-delay: calc(var(--i) * 95ms); }
@keyframes pp-pulse { 0%, 60%, 100% { stroke-opacity: .5; } 10% { stroke-opacity: 1; } }
.pulse-mark { width: 28px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Public nav */
.site-nav {
  height: 68px; padding: 0 clamp(16px, 4vw, 40px); gap: 8px;
  background: rgba(26, 29, 46, .82); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: none; border-image: none;
}
.site-nav .brand { font-family: var(--v-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; color: var(--v-text); margin-right: 18px; }
.site-nav .brand img, .side-brand img { width: 30px; height: 30px; filter: none; transition: none; border-radius: 9px; }
.site-nav .brand:hover img { transform: none; }
.mm-btn { height: 38px; padding: 0 12px; border-radius: 9px; color: var(--v-muted); font-weight: 500; font-size: 14.5px; }
.mm-btn:hover, .mm.open .mm-btn { color: var(--v-text); background: rgba(255, 255, 255, .05); }
.mm-panel, .mm-mobile { background: rgba(26, 29, 46, .97); border-bottom: 1px solid var(--v-line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.mm-title { font-family: var(--v-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--v-faint); }
.mm-item { border-radius: 12px; }
.mm-item:hover { background: rgba(255, 255, 255, .045); transform: none; }
.mm-item b { color: var(--v-text); font-weight: 600; }
.mm-item .mm-text > span { color: var(--v-muted); }
.mm-ic { background: rgba(57, 148, 255, .12); box-shadow: inset 0 0 0 1px rgba(57, 148, 255, .22); color: var(--primary-light); border-radius: 10px; }
.lang-btn { height: 38px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--v-muted); }
.lang-btn:hover { background: rgba(255, 255, 255, .05); color: var(--v-text); }
.site-user .user-btn { height: 40px; border-radius: 999px; padding: 0 12px 0 5px; border: 1px solid var(--v-line); background: rgba(255, 255, 255, .03); }
.site-user .user-btn:hover { border-color: var(--v-line-2); background: rgba(255, 255, 255, .06); }
.site-user .user-btn img { width: 30px; height: 30px; border-radius: 50%; }
.site-user .uname { font-weight: 600; color: var(--v-text); font-size: 14px; }

/* Footer */
.site-footer { background: none; border-top: 1px solid var(--v-line); padding: 48px clamp(20px, 5vw, 48px) 24px; }
.site-footer::before { content: none; }
.sf-top { max-width: 1200px; margin: 0 auto; }
.sf-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sf-brand .brand { font-family: var(--v-display); font-weight: 600; font-size: 18px; color: var(--v-text); }
.sf-brand p { margin: 0; max-width: 30ch; color: var(--v-muted); font-size: 14px; line-height: 1.6; }
.sf-col b { font-family: var(--v-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--v-faint); margin-bottom: 6px; }
.sf-col a { color: var(--v-muted); font-size: 14px; transform: none !important; }
.sf-col a:hover { color: var(--v-text); }
.sf-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--v-line); color: var(--v-faint); font-size: 13px; }

/* ───────────────────────── 3. Landing page ───────────────────────── */
.lp { overflow-x: clip; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-light); font-weight: 600; font-size: 14.5px; }
.lp-link svg { width: 16px; height: 16px; transition: transform .2s var(--v-ease); }
.lp-link:hover { color: #fff; }
.lp-link:hover svg { transform: translateX(3px); }

/* Hero */
.lp-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 8vh, 96px) clamp(20px, 5vw, 48px) clamp(64px, 9vh, 104px);
  background:
    radial-gradient(ellipse 60% 50% at 18% 55%, rgba(57, 148, 255, .11) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 78% 25%, rgba(34, 211, 238, .07) 0%, transparent 65%),
    radial-gradient(ellipse 70% 35% at 50% 105%, rgba(57, 148, 255, .05) 0%, transparent 55%),
    radial-gradient(ellipse 30% 40% at 55% 50%, rgba(103, 232, 249, .03) 0%, transparent 50%),
    linear-gradient(180deg, #0d1020 0%, #141729 30%, #1a1d2e 55%, #141729 80%, #0d1020 100%); }
.lp-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 5%, #000 35%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent 5%, #000 35%, #000 70%, transparent); }
.lp-hero-bg .pulsar-plot { position: absolute; left: 50%; bottom: 0; width: min(1200px, 100%); height: 100%; transform: translateX(-50%); }
.lp-hero-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lp-pill { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--v-line-2); background: rgba(255, 255, 255, .03);
  font-family: var(--v-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--v-body); }
.lp-pill i { width: 3px; height: 3px; border-radius: 50%; background: var(--v-faint); }
.lp-live { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--v-signal); box-shadow: 0 0 10px rgba(103, 232, 249, .8); }
.lp-live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--v-signal); opacity: 0; animation: lp-ping 2.4s ease-out infinite; }
@keyframes lp-ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.lp-hero h1 { margin: 22px 0 0; font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.lp-grad { background: linear-gradient(100deg, #3994ff 10%, #67e8f9 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.lp-lead { margin: 22px 0 0; max-width: 52ch; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; color: var(--v-muted); text-wrap: pretty; }
.lp-hero .lp-ctas { margin-top: 32px; }
.lp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; color: var(--v-muted); font-size: 13.5px; }
.lp-trust li { display: inline-flex; align-items: center; gap: 7px; }
.lp-trust svg { width: 15px; height: 15px; color: var(--v-signal); }

.lp-hero-show { position: relative; padding-bottom: 34px; }
.lp .sc-window { transform: none !important; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); }
.lp .sc-msg p { text-align: left; }
.lp-switch { position: absolute; left: clamp(-28px, -2vw, -10px); bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 14px; background: rgba(30, 33, 56, .96); border: 1px solid var(--v-line-2); box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .6); }
.lp-switch-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #34d399; background: rgba(52, 211, 153, .14); }
.lp-switch-ic svg { width: 19px; height: 19px; }
.lp-switch-txt { display: grid; gap: 1px; }
.lp-switch-txt b { color: var(--v-text); font-size: 13.5px; font-weight: 600; }
.lp-switch-txt small { color: var(--v-muted); font-size: 12px; }
.lp-switch-sw { position: relative; width: 38px; height: 22px; margin-left: 6px; border-radius: 999px; background: var(--v-blue); }
.lp-switch-sw::after { content: ''; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }

/* Readout strip */
.lp-readout { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-read { display: grid; gap: 6px; padding: 26px 0 26px 28px; border-top: 1px solid var(--v-line); border-bottom: 1px solid var(--v-line); border-left: 1px solid var(--v-line); }
.lp-read:first-child { border-left: 0; padding-left: 0; }
.lp-read + .lp-read { border-left: 1px solid var(--v-line); }
.lp-read b { font-family: var(--v-display); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1; letter-spacing: -.035em; color: var(--v-text); font-variant-numeric: tabular-nums; }
.lp-read span { font-family: var(--v-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--v-muted); }

/* Sections */
.lp-section { max-width: 1200px; margin: 0 auto; padding: clamp(72px, 10vh, 120px) clamp(20px, 5vw, 48px) 0; }
.lp-head { max-width: 640px; margin-bottom: 44px; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--v-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--v-signal); }
.lp-head h2 { margin-top: 14px; font-size: clamp(2.1rem, 3.8vw, 3.1rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.lp-head p { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--v-muted); text-wrap: pretty; }

/* What you get */
.lp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.lp-tile { grid-column: span 2; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--v-surface); border: 1px solid var(--v-line); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transition: border-color .25s, box-shadow .25s, transform .5s var(--v-ease), opacity .6s var(--v-ease); }
.lp-tile:hover { border-color: color-mix(in srgb, var(--c) 35%, transparent); box-shadow: 0 4px 20px rgba(0, 0, 0, .28); }
.lp-tile:nth-child(1), .lp-tile:nth-child(4) { grid-column: span 4; flex-direction: row; }
.lp-tile-mock { flex: 1 1 0; min-height: 200px; padding: 26px; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.2px) 0 0 / 18px 18px,
    #161936; }
.lp-tile-body { flex: 1 1 0; padding: 24px 24px 26px; display: flex; flex-direction: column; justify-content: center; }
.lp-tile h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.lp-tile-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.lp-tile-ic svg { width: 17px; height: 17px; }
.lp-tile p { margin-top: 10px; color: var(--v-muted); font-size: 14.5px; line-height: 1.6; }
.lp-tile .hl-banner { max-width: 380px; }
.lp-tile .hl-lb-row, .lp-tile .hl-feed > div, .lp-tile .hl-embed { background: rgba(255, 255, 255, .045); }

/* See it in action */




















.lp-demo-stage .sc-banner { max-width: 400px; }
.lp-demo-stage .sc-window { animation: lp-stage-in .45s var(--v-ease); }
@keyframes lp-stage-in { from { opacity: 0; transform: translateY(10px); } }

/* How it works */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.lp-steps li { position: relative; padding: 30px 32px 6px 0; border-top: 1px solid var(--v-line-2); }
.lp-steps li + li { padding-left: 32px; border-left: 1px solid var(--v-line); }
.lp-steps li::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--v-signal); box-shadow: 0 0 12px rgba(103, 232, 249, .7); }
.lp-steps li + li::before { left: 32px; }
.lp-step-n { display: block; font-family: var(--v-mono); font-size: 12px; letter-spacing: .1em; color: var(--v-faint); }
.lp-step-ic { margin-top: 18px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--primary-light); background: rgba(57, 148, 255, .12); box-shadow: inset 0 0 0 1px rgba(57, 148, 255, .22); }
.lp-step-ic svg { width: 21px; height: 21px; }
.lp-steps h3 { margin-top: 18px; font-size: 19px; font-weight: 600; }
.lp-steps p { margin-top: 8px; color: var(--v-muted); font-size: 14.5px; line-height: 1.6; max-width: 34ch; }

/* Plugins */
.lp-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-cat { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: 18px; background: var(--v-surface); border: 1px solid var(--v-line); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transition: border-color .2s, background .2s, box-shadow .2s, opacity .6s var(--v-ease), transform .6s var(--v-ease); }
.lp-cat:hover { border-color: rgba(57, 148, 255, .35); background: var(--v-raised); box-shadow: 0 4px 20px rgba(0, 0, 0, .28); }
.lp-cat-top { display: flex; align-items: center; gap: 12px; }
.lp-cat-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--primary-light); background: rgba(57, 148, 255, .12); box-shadow: inset 0 0 0 1px rgba(57, 148, 255, .2); }
.lp-cat-ic svg { width: 19px; height: 19px; }
.lp-cat-top b { flex: 1; font-family: var(--v-display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--v-text); }
.lp-cat-n { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; font-family: var(--v-mono); font-size: 12px; color: var(--v-body); background: rgba(255, 255, 255, .06); }
.lp-cat-blurb { margin: -4px 0 0; color: var(--v-muted); font-size: 14px; line-height: 1.55; }
.lp-cat-list { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; }
.lp-cat-list span { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: var(--v-body); background: rgba(255, 255, 255, .04); border: 1px solid var(--v-line); }
.lp-cat-list i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.lp-cat-list .more { color: var(--v-muted); background: none; border-style: dashed; }
.lp-cat-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--v-muted); transition: color .2s; }
.lp-cat-go svg { width: 15px; height: 15px; transition: transform .2s var(--v-ease); }
.lp-cat:hover .lp-cat-go { color: var(--primary-light); }
.lp-cat:hover .lp-cat-go svg { transform: translateX(3px); }
.lp-more { margin-top: 28px; }

/* Questions */
.lp-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.lp-faq-side .lp-head { margin-bottom: 20px; }
.lp-faq { border-top: 1px solid var(--v-line); }
.lp-q { border-bottom: 1px solid var(--v-line); }
.lp-q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--v-text); letter-spacing: -.01em; }
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary svg { width: 18px; height: 18px; flex: none; color: var(--v-muted); transition: transform .3s var(--v-ease), color .2s; }
.lp-q summary:hover svg { color: var(--v-text); }
.lp-q[open] summary svg { transform: rotate(45deg); color: var(--v-signal); }
.lp-q p { margin: -4px 0 22px; max-width: 62ch; color: var(--v-muted); font-size: 15px; line-height: 1.65; }

/* Closing call to action */
.lp-cta { position: relative; isolation: isolate; max-width: 1200px; margin: clamp(72px, 10vh, 120px) auto clamp(64px, 9vh, 104px); padding: 0 clamp(20px, 5vw, 48px); }
.lp-cta-in { position: relative; padding: clamp(44px, 7vw, 84px) clamp(24px, 5vw, 72px); border-radius: 24px; border: 1px solid var(--v-line-2); overflow: hidden;
  background: linear-gradient(90deg, var(--v-surface) 40%, rgba(26, 29, 46, .55)); box-shadow: 0 4px 24px rgba(0, 0, 0, .2); }
.lp-cta-bg { position: absolute; inset: 0 clamp(20px, 5vw, 48px); z-index: 0; border-radius: 24px; overflow: hidden; background: var(--v-bg); }
.lp-cta-bg .pulsar-plot { position: absolute; right: -6%; bottom: -6%; width: 70%; height: 112%; }
.lp-cta-in { z-index: 1; }
.lp-cta h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; max-width: 16ch; }
.lp-cta p { margin: 14px 0 28px; font-size: 17px; color: var(--v-muted); }

/* ───────────────────────── 4. Public sub-pages ───────────────────────── */
.page-hero { max-width: 1200px; margin: 0 auto; padding: clamp(48px, 8vh, 88px) clamp(20px, 5vw, 48px) 36px; text-align: left; }
.page-hero .eyebrow, .section-head .eyebrow { font-family: var(--v-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--v-signal); margin-bottom: 14px; }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; }
.page-hero::before, .page-hero::after { content: none; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.06; }
.page-hero > p { margin: 16px 0 0; max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--v-muted); }
.page-hero .ctas { margin-top: 26px; justify-content: flex-start; }
.section { max-width: 1200px; margin: 0 auto; padding: 12px clamp(20px, 5vw, 48px) 72px; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; justify-content: flex-start; }
.cat-tabs a { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--v-line); color: var(--v-muted); font-size: 13.5px; font-weight: 600; background: none; }
.cat-tabs a:hover { color: var(--v-text); border-color: var(--v-line-2); }
.cat-tabs a.active { color: #fff; background: var(--v-blue); border-color: transparent; }

.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 64px; }
.cat-card { padding: 20px; border-radius: 16px; background: var(--v-surface); border: 1px solid var(--v-line); box-shadow: none; }
.cat-card:hover { transform: none; border-color: rgba(57, 148, 255, .45); background: var(--v-raised); }
.cat-card b { font-family: var(--v-display); font-weight: 600; font-size: 16.5px; letter-spacing: -.02em; }
.cat-card > span:empty { display: none; }
.cat-count { font-family: var(--v-mono); font-size: 12px; font-weight: 500; color: var(--primary-light); }

.feature-cat { margin-top: 48px; text-transform: none; letter-spacing: normal; }
.feature-cat > h3 { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--v-line); font-size: 1.4rem; font-weight: 600; text-transform: none; letter-spacing: -.025em; color: var(--v-text); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; text-transform: none; letter-spacing: normal; font-weight: 400; }
.feature { padding: 18px; border-radius: 14px; background: var(--v-surface); border: 1px solid var(--v-line); box-shadow: none; transition: border-color .2s, background .2s; }
.feature:hover { transform: none; border-color: var(--v-line-2); background: var(--v-raised); }
.feature h4 { margin: 14px 0 6px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: var(--v-text); }
.feature p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--v-muted); font-weight: 400; }

.plugin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 16px; background: var(--v-surface); border: 1px solid var(--v-line); box-shadow: none; }
.pcard:hover { transform: none; border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.pcard-head { display: flex; align-items: center; gap: 13px; }
.pcard-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.pcard-icon svg { width: 21px; height: 21px; }
.pcard h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.pcard-sub { font-family: var(--v-mono); font-size: 11.5px; color: var(--v-muted); }
.pcard > p { margin: 0; flex: 1; color: var(--v-muted); font-size: 14px; line-height: 1.6; }
.pcard-cmds { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard-cmds code, .cmd-list code { padding: 4px 9px; border-radius: 7px; background: rgba(255, 255, 255, .05); border: 1px solid var(--v-line); color: var(--v-body); font-size: 12px; }
.pcard-more { font-size: 12.5px; font-weight: 600; color: var(--primary-light); align-self: center; }
.pcard-actions { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--v-line); }

.cmd-search { display: block; width: 100%; max-width: 460px; margin: 26px 0 0; height: 46px; border-radius: 12px; }
.cmd-groups { display: grid; gap: 14px; }
.cmd-group { padding: 0; border-radius: 16px; overflow: hidden; background: var(--v-surface); border: 1px solid var(--v-line); }
.cmd-group-head > .picon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; padding: 0; }
.cmd-group-head > .picon svg { width: 19px; height: 19px; }
.cmd-group-head > .btn { flex: none; }
.cmd-group-head { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--v-line); background: rgba(255, 255, 255, .02); }
.cmd-group-head > div:not(.picon) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cmd-group-head b { font-size: 15px; font-weight: 600; color: var(--v-text); }
.cmd-group-head span { font-size: 13px; font-weight: 400; color: var(--v-muted); }
.cmd-group .cmd-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 16px 18px 18px; }

.cta-band { max-width: 1104px; margin: 24px auto 88px; padding: 56px 32px; border-radius: 24px; text-align: center;
  background: radial-gradient(70% 120% at 50% 0%, rgba(57, 148, 255, .16), transparent 70%), var(--v-surface) !important;
  border: 1px solid var(--v-line-2); box-shadow: none; }
.cta-band::before { content: none; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; text-shadow: none; }
.cta-band p { color: var(--v-muted); }
.cta-band .btn:not(.btn-ghost-light) { background: var(--v-blue) !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22) !important; transform: none !important; }

.error-page h1 { font-size: 2rem; font-weight: 600; }

/* ───────────────────────── 5. Server picker ───────────────────────── */
.srv-page { max-width: 1120px; margin: 0 auto; padding: 36px clamp(20px, 5vw, 48px) 96px; }
.srv-title { margin: 28px 0 0; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -.035em; text-align: left; animation: none; }
.srv-tools { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin: 18px 0 28px; }
.srv-refresh { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--v-line-2); background: rgba(255, 255, 255, .03); color: var(--v-body); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.srv-refresh:hover { background: rgba(255, 255, 255, .07); color: var(--v-text); }
.srv-refresh svg { width: 15px; height: 15px; }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.srv-card { border-radius: 18px; overflow: hidden; background: var(--v-surface); border: 1px solid var(--v-line); box-shadow: none; transition: border-color .2s, background .2s; }
.srv-card:hover { transform: none; border-color: var(--v-line-2); background: var(--v-raised); box-shadow: none; }
.srv-card.is-added:hover { border-color: rgba(57, 148, 255, .5); }
.srv-banner { height: 112px; border-radius: 0; }
.srv-card:not(.is-added) .srv-banner { filter: saturate(.35) brightness(.8); }
.srv-icon .gicon { border-radius: 18px; border: 3px solid var(--v-surface); font-family: var(--v-display); font-weight: 600; }
.srv-foot { padding: 14px 16px 16px; }
.srv-name { font-weight: 600; color: var(--v-text); font-size: 15px; }
.srv-role { font-family: var(--v-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--v-faint); }
.srv-btn { height: 34px; padding: 0 16px; border-radius: 9px; font-weight: 600; font-size: 13.5px; }
.srv-btn.go { background: var(--v-blue); color: #fff; }
.srv-btn.go:hover { background: #55a4ff; }
.srv-btn.setup { background: rgba(255, 255, 255, .04); border: 1px solid var(--v-line-2); color: var(--v-text); }
.srv-btn.setup:hover { background: rgba(255, 255, 255, .08); }

/* Leaderboard */
.lb { max-width: 1040px; padding: 44px clamp(20px, 5vw, 48px) 96px; }
.lb-hero { gap: 18px; margin-bottom: 30px; }
.lb-hero .eyebrow { font-family: var(--v-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--v-signal); }
.lb-hero h1 { margin-top: 6px; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 600; letter-spacing: -.035em; }
.lb-hero .gicon.lg { border-radius: 20px; box-shadow: none; }
.lb-search { height: 44px; margin-bottom: 12px; }
.lb-list { display: grid; gap: 8px; }
.lb-row { margin: 0; padding: 12px 16px; border-radius: 14px !important; background: var(--v-surface); border: 1px solid var(--v-line); box-shadow: none; }
.lb-row:hover { background: var(--v-raised) !important; border-color: var(--v-line-2); }
.lb-row.me { border-color: rgba(57, 148, 255, .55); background: rgba(57, 148, 255, .06); }
.lb-rank { width: 34px; height: 34px; font-family: var(--v-mono); font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .06); color: var(--v-body); }
.lb-row .who b { color: var(--v-text); font-weight: 600; }
.lb-row .nums { font-family: var(--v-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.lb-row .nums b { font-family: Inter, system-ui, sans-serif; font-size: 14.5px; font-weight: 600; letter-spacing: 0; }
.lb-layout .card { padding: 18px; border-radius: 14px; background: var(--v-surface); border: 1px solid var(--v-line); box-shadow: none; }
.lb-layout .card + .card { margin-top: 12px; }
.lb-layout .card h2 { font-family: Inter, system-ui, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px; }
.lb-layout .card .desc { color: var(--v-muted); font-size: 13.5px; line-height: 1.6; }

/* ───────────────────────── 6. Dashboard shell ───────────────────────── */
.shell { background: #1a1d2e; }
/* The sidebar scrollbar keeps out of the way until it is wanted: on hover, or while the list is
   actually being scrolled (app.js adds .is-scrolling for a moment after each scroll). The gutter is
   reserved the whole time, so nothing shifts sideways when the thumb appears. */
.sidebar, .shell > .sidebar {
  background: transparent !important; border-right: none !important;
  scrollbar-width: thin; scrollbar-color: transparent transparent;
}
.sidebar:hover, .sidebar.is-scrolling { scrollbar-color: rgba(255, 255, 255, .22) transparent; }
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  background: transparent; border-radius: 999px; border: 2px solid transparent; background-clip: content-box;
  transition: background-color .18s ease;
}
.sidebar:hover::-webkit-scrollbar-thumb,
.sidebar.is-scrolling::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); background-clip: content-box; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .34); background-clip: content-box; }
.side-brand { height: var(--topbar); padding: 0 var(--side-gutter); gap: 10px; font-family: var(--v-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--v-text); border-bottom: none; }
.switcher { padding: 8px var(--side-gutter) 6px; }
.switcher-btn { height: 46px; padding: 0 12px; gap: 10px; border-radius: 11px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); transition: all .2s cubic-bezier(.4,0,.2,1); }
.switcher-btn:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.switcher-btn .n { font-size: 13.5px; font-weight: 600; color: var(--v-text); }
.switcher-btn > svg { width: 14px; height: 14px; color: var(--v-muted); }
.switcher .dropdown { left: 10px; right: 10px; }
.gicon { font-family: var(--v-display); font-weight: 600; background: rgba(57, 148, 255, .14); color: var(--primary-light); }
.gicon.sm { border-radius: 9px; }

.nav { padding: 2px 6px 40px 168px; display: flex; flex-direction: column; gap: 0px; }
.sidebar a, .nav a.nav-top, .nav a.nav-plugin { position: relative; min-height: 28px; padding: 3px 8px; gap: 6px !important; border-radius: 9px !important; background: none; color: var(--v-muted); transition: all .2s cubic-bezier(.22,1,.36,1) !important; }
.sidebar a:hover { background: rgba(255, 255, 255, .055) !important; }
.sidebar a.active, .nav a.active { background: rgba(57, 148, 255, .1) !important; box-shadow: inset 0 0 0 1px rgba(57,148,255,.12); }
.sidebar .nav a.active::before { content: ''; display: block; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #3994ff, #22d3ee); box-shadow: 0 0 10px rgba(57,148,255,.4); }
.nav .nav-name { font-size: 14px; font-weight: 500; color: #8b92a5; letter-spacing: -.005em; transition: color .2s; }
.nav .nav-hint { display: none !important; }
.nav .label { display: flex; flex-direction: row !important; align-items: center; }
.nav a:hover .nav-name { color: #d0d4e0; }
.nav a.active .nav-name { color: #f0f2f8; font-weight: 600; }
.nav a.nav-top > svg { width: 22px !important; height: 22px !important; border-radius: 0 !important; background: none !important; box-shadow: none; color: #5c6378; padding: 0; transition: color .2s; }
.nav-plugin .nicon { width: 28px !important; height: 28px !important; border-radius: 5px !important; background: none !important; box-shadow: none; color: #5c6378; display: grid; place-items: center; transition: all .2s cubic-bezier(.22,1,.36,1); }
.nav-plugin .nicon svg { width: 22px; height: 22px; }
.nav a:hover > svg { color: #a0a8bc; }
.nav a:hover .nicon { color: #a0a8bc; background: none !important; }
.nav a.active > svg { color: #3994ff !important; }
.nav a.active .nicon { background: none !important; box-shadow: none; color: #60a5fa; }
.nav-plugin .status { position: absolute !important; width: 4px !important; height: 4px !important; border: none !important; border-radius: 50%; background: rgba(100, 120, 170, .3); top: 50%; left: 1px; transform: translateY(-50%); z-index: 2; transition: all .3s; }
.nav-plugin .status.on { width: 5px !important; height: 5px !important; background: #3994ff; box-shadow: 0 0 6px rgba(57, 148, 255, .5); }
.nav-section { margin-top: 2px; }
.nav-section + .nav-section { padding-top: 2px; border-top: 1px solid rgba(255, 255, 255, .04); }
.nav-label { padding: 2px 8px 1px; font-family: var(--v-display); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .22); transition: color .2s; }
.nav-label:hover { color: rgba(255, 255, 255, .4); }
.nav-label .caret { width: 14px; height: 14px; }
.topbar, .shell > .topbar { height: var(--topbar); padding: 0 clamp(16px, 3vw, 36px) 0 clamp(32px, 6vw, 72px); gap: 10px; background: #1a1d2e !important; border-bottom: none !important; box-shadow: none !important; }
.topbar .btn-accent { display: none !important; }

.topbar .icon-btn { width: 38px; height: 38px; border-radius: 10px; color: var(--v-muted); }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, .06); color: var(--v-text); }
.topbar .lang-btn { display: none !important; }
.topbar .user-btn { height: 40px; padding: 0 8px 0 4px; border-radius: 999px; border: none; background: none; }
.topbar .user-btn img { width: 32px; height: 32px; border-radius: 50%; }
.topbar .user-btn svg { width: 15px; height: 15px; color: var(--v-muted); }
.topbar-search { display: none !important; }
.topbar-search:hover { border-color: var(--v-line-2); background: rgba(255, 255, 255, .06); }
.topbar-search svg { width: 16px; height: 16px; flex: none; }
.topbar-search > span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-search kbd { padding: 2px 6px; border-radius: 5px; border: 1px solid var(--v-line-2); background: rgba(255, 255, 255, .04); font-family: var(--v-mono); font-size: 11px; color: var(--v-faint); line-height: 1; }
@media (max-width: 768px) { .topbar-search { display: none; } }

.main { background: #1a1d2e; }
.main > .content, .content { max-width: 1180px; padding: 26px clamp(16px, 3vw, 36px) 80px; }
.page-title { margin: 0 !important; font-size: 22px !important; font-weight: 600 !important; letter-spacing: -.025em; }

/* Overview: server header — compact like MEE6 */
.ov-hero { position: relative; isolation: isolate; border-radius: 0; border: 0; background: none; overflow: visible; margin-bottom: 10px; }
.ov-hero-bg { display: none; }
.ov-hero-main { display: flex; align-items: center; gap: 16px; padding: 0 0 20px; flex-wrap: wrap; }
.gicon.ov-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; font-size: 18px; }
.gicon.ov-icon img { border-radius: inherit; }
.ov-hero-text { flex: 1 1 320px; min-width: 0; }
.ov-eyebrow { display: none; }
.ov-hero h1 { margin-top: 0; font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; letter-spacing: -.03em; overflow-wrap: anywhere; }
.ov-hero p { margin-top: 4px; color: var(--v-muted); font-size: 14px; max-width: 56ch; }
.ov-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ov-stats { display: none; }

/* Overview: plugin browser */
.ov-plugins-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 34px 0 14px; flex-wrap: wrap; }
.plugin-search-wrap { position: relative; display: flex; align-items: center; flex: 0 1 300px; min-width: 200px; padding: 0; border: 0; background: none; }
.plugin-search-wrap > svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--v-faint); pointer-events: none; }
.plugin-search-wrap .plugin-search { width: 100%; height: 40px; padding: 0 12px 0 36px !important; border-radius: 10px; background: var(--v-surface); border: 1px solid var(--v-line); font-size: 14px; }
.plugin-search-wrap .plugin-search:focus { border-color: var(--v-blue); box-shadow: 0 0 0 3px rgba(57, 148, 255, .16); outline: none; }
.tabbar { display: flex; align-items: center; gap: 0; padding: 0 !important; margin: 0 0 16px; background: none !important; border: 0 !important; border-bottom: 0 !important; border-radius: 0 !important; }
.tabs { gap: 0; }
.tabs .tab { position: relative; height: auto; padding: 0 16px 12px !important; border: 0; border-radius: 0 !important; background: none !important; color: #656a83 !important; font-size: 16px; font-weight: 500; box-shadow: none !important; }
.tabs .tab:hover { color: var(--v-text) !important; background: none !important; }
.tabs .tab.active { color: #f2f4fb !important; background: none !important; border-color: transparent; }
.tabs .tab.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: var(--v-blue); }
.tabs .tab .tab-count, .tab-count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .07) !important; color: var(--v-muted) !important; font-family: var(--v-mono); font-size: 11px; font-weight: 500; }
.tabs .tab.active .tab-count { background: rgba(57, 148, 255, .22) !important; color: var(--primary-light) !important; }
/* Pair tabs — polished pill navigation */
.pair-tabs { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 20px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06) !important; }
.pair-tabs .tab { height: 38px; padding: 0 18px !important; border-radius: 9px !important; font-size: 14.5px !important; font-weight: 600; gap: 10px; color: var(--v-muted) !important; transition: all .18s; }
.pair-tabs .tab:hover { color: var(--v-text) !important; background: rgba(255,255,255,.06) !important; }
.pair-tabs .tab.active { color: #fff !important; background: rgba(57,148,255,.14) !important; }
.pair-tabs .tab.active::after { display: none; }
.pair-tabs .pair-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--v-faint); transition: all .2s; }
.pair-tabs .pair-dot.on { background: var(--v-on); box-shadow: 0 0 8px rgba(52,211,153,.5); }
.tab-arrow { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--v-line); background: var(--v-surface); color: var(--v-muted); }
.tab-arrow:hover { color: var(--v-text); border-color: var(--v-line-2); }

.plugin-section { margin-top: 32px; }
.plugin-section:first-child { margin-top: 10px; }
.section-title { display: flex; align-items: center; gap: 10px; padding: 0 0 16px; border-bottom: 2px solid var(--v-line); margin-bottom: 16px; font-family: Inter, system-ui, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--v-text); }
.section-title::after { content: none !important; }
.section-count { display: none; }
.ov-none { color: var(--v-faint); font-size: 14px; padding: 4px 0 8px; }
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.plugin-card { position: relative; display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 20px;
  border-radius: 14px !important; background: var(--v-surface); border: 1px solid var(--v-line) !important; box-shadow: none !important; cursor: pointer;
  transition: border-color .16s, background .16s !important; }
.plugin-card:hover { transform: none !important; background: var(--v-raised); border-color: var(--v-line-2) !important; box-shadow: none !important; }
.plugin-card::before { content: none; }
.plugin-card:hover h3 { color: #fff; }
.plugin-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.plugin-card .top .picon { width: 48px; height: 48px; border-radius: 14px; box-shadow: none; transform: none !important; }
.plugin-card .top .picon svg { width: 24px; height: 24px; }
.plugin-card h3 { margin: 14px 0 6px; font-family: Inter, system-ui, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--v-text); }
.plugin-card > p { font-size: 13px; line-height: 1.5; color: var(--v-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.plugin-card .foot { display: flex; align-items: center; justify-content: flex-start; margin-top: 14px; padding-top: 0; border-top: 0; }
.plugin-card .foot .btn { height: 32px; padding: 0 14px; font-size: 13px; font-weight: 600; }
.plugin-card .foot .btn-ghost { padding: 0 !important; background: none !important; border-color: transparent !important; color: var(--v-muted); }
.plugin-card .foot .btn-ghost:hover { color: var(--primary-light); background: none !important; }
.plugin-card .foot .btn-enable { background: rgba(57, 148, 255, .12); border: 1px solid rgba(57, 148, 255, .28); color: var(--primary-light); border-radius: 9px; }
.plugin-card .foot .btn-enable:hover { background: rgba(57, 148, 255, .2); }
.plugin-card .foot .btn-active-link { padding: 0 !important; background: none !important; border-color: transparent !important; color: var(--v-on); font-weight: 600; gap: 6px; }
.plugin-card .foot .btn-active-link svg { width: 14px; height: 14px; }
.plugin-card .foot .btn-active-link:hover { color: #6ee7b7; }
.plugin-card.is-on::after { content: none; }
.plugin-card.is-on h3 { padding-right: 0; }

/* Switch — MEE6-style rounded pill toggle */
.switch { width: 52px; height: 28px; }
.switch span { background: rgba(255, 255, 255, .13); box-shadow: none !important; border-radius: 999px; }
.switch input:checked + span { background: var(--v-blue); box-shadow: none !important; }
.switch span::before { border-radius: 50%; }
.switch span::after { width: 20px; height: 20px; }

/* ───────────────────────── 7. Plugin pages ───────────────────────── */
.plugin-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0; padding: 0 0 20px !important; margin-bottom: 18px !important; border: 0 !important; border-bottom: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none; overflow: visible; animation: none; }
.plugin-head::before, .plugin-head::after { content: none; }
.plugin-head .head-icon { display: none !important; }
.plugin-head .info { flex: 1; min-width: 0; }
.plugin-head h1 { font-size: 24px !important; font-weight: 700 !important; letter-spacing: -.025em !important; line-height: 1.2 !important; color: var(--v-text) !important; }
.plugin-head .info p { margin-top: 6px; max-width: 70ch; color: var(--v-muted); font-size: 16px; line-height: 1.5; }
.plugin-head .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px !important; }
.plugin-head .chip, .chip { padding: 3px 9px; border-radius: 7px; background: rgba(255, 255, 255, .05); border: 1px solid var(--v-line); color: var(--v-body); font-family: var(--v-mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0; }
.plugin-head .chip:hover { background: rgba(255, 255, 255, .08); border-color: var(--v-line-2); }
.plugin-head .toggle-wrap { display: flex; align-items: center; gap: 8px; flex: none; height: 36px; padding: 0; border-radius: 0; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--v-text); margin-top: 4px; }
.plugin-head .toggle-wrap .switch input:checked ~ span { background: var(--v-blue); }
.plugin-head .toggle-wrap .toggle-status { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--v-text); }
.plugin-head .toggle-wrap.is-on .toggle-status { color: var(--v-text); }
.plugin-head .head-action { flex: none; }

.plugin-tools { top: calc(var(--topbar) + 8px); padding: 8px !important; border-radius: 12px !important; background: var(--v-bg) !important; border: 1px solid var(--v-line) !important; box-shadow: none; }
.pt-search { height: 36px; border-radius: 9px; background: var(--v-surface); border: 1px solid var(--v-line); }
.pt-jump button, .pt-chip { height: 36px; padding: 0 15px; border-radius: 10px !important; border: 1px solid var(--v-line) !important; background: none !important; color: var(--v-muted); font-size: 13.5px; font-weight: 500; transition: all .15s; }
.pt-jump button:hover, .pt-chip:hover { background: rgba(255, 255, 255, .06) !important; border-color: var(--v-line-2) !important; color: var(--v-text); }
.pt-chip.active, .pt-jump button.active { background: rgba(57,148,255,.12) !important; border-color: rgba(57,148,255,.25) !important; color: #3994ff !important; }

.plugin-layout { gap: 20px !important; }
.card.setting { border-radius: 12px; background: #222540; border: 1px solid rgba(255,255,255,.06); box-shadow: none; transition: border-color .16s; }
.card.setting:not(.closed) { background: #222540; box-shadow: none; }
.card.setting:hover, .card.setting:focus-within { border-color: rgba(255,255,255,.1); }
.card.setting::before { display: none !important; }
.setting-head { min-height: 62px; padding: 18px 24px; border-radius: 12px; }
.setting-head:hover { background: rgba(255, 255, 255, .02); }
.setting-head h2 { font-family: Inter, system-ui, sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.015em; color: var(--v-text); }
.card.setting:not(:has(.setting-head input:checked)) .setting-head h2 { color: var(--v-text); }
.card.setting.closed .setting-head h2 { color: var(--v-body); }
.setting-head .caret { width: 18px; height: 18px; color: var(--v-faint); transition: transform .2s; }
.card.setting.closed .setting-head .caret { transform: rotate(-180deg); }
.setting-body { padding: 0 24px 28px; border-top: 0; }
.setting-body .desc { margin-bottom: 20px; color: #8b90a5; font-size: 14.5px; line-height: 1.55; }
.new-badge, .prem-badge { background: rgba(103, 232, 249, .1) !important; border: 1px solid rgba(103, 232, 249, .25) !important; color: var(--v-signal) !important; font-family: var(--v-mono); font-size: 10px !important; font-weight: 500 !important; letter-spacing: .08em; padding: 2px 7px !important; border-radius: 6px !important; }

.field label, .field .flabel { font-size: 14.5px; font-weight: 500; letter-spacing: 0; color: #9ca0b4; margin-bottom: 8px; }
.field .fdesc, .field .hint { color: #6b7089; font-size: 12.5px; line-height: 1.55; }

/* Toggle rows — MEE6-style separated rows */
.field.toggle { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.05); gap: 16px; }
.fields > .field.toggle:last-child { border-bottom: 0; }
.field.toggle > label:first-child { font-size: 15px; font-weight: 500; color: #c4c9d8; margin-bottom: 0; flex: 1; }
.field.toggle > .switch { flex: none; }
.input, .textarea, .select,
.field input[type="text"], .field input[type="number"], .field input[type="url"], .field input[type="email"], .field input[type="password"],
.field select, .field textarea, .field .select-btn, input.inp, select.inp, textarea.inp, .cp-btn {
  background: #20233c !important; border: 1px solid #20233c !important; border-radius: 8px !important; color: var(--v-text); height: 50px; font-size: 16px; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover, .field .select-btn:hover, .cp-btn:hover { background: #20233c !important; border-color: rgba(255, 255, 255, .18) !important; }
.input:focus, .textarea:focus, .select:focus, .field input:focus, .field select:focus, .field textarea:focus, .cp-btn:focus-visible {
  background: #20233c !important; border-color: var(--v-blue) !important; box-shadow: 0 0 0 3px rgba(57, 148, 255, .18) !important; outline: none !important; }
.textarea, .field textarea, textarea.inp { height: auto; min-height: 50px; padding: 16px 24px 16px 16px; }
::placeholder { color: #80848e; }

/* Variable-tag highlights inside textareas */
.ta-hl { position: relative; }
.ta-backdrop {
  position: absolute; top: 1px; left: 1px; right: 1px; bottom: 1px;
  padding: 16px 24px 16px 16px;
  font-size: 16px; line-height: 1.45; font-family: inherit;
  white-space: pre-wrap; word-wrap: break-word;
  overflow: hidden; border-radius: 8px;
  color: var(--v-body); pointer-events: none;
  background: #20233c;
}
.field textarea.ta-clear, .ta-clear { color: transparent !important; caret-color: var(--v-text); background: transparent !important; position: relative; z-index: 1; }
.ta-clear::placeholder { color: #80848e !important; }
.ta-clear:placeholder-shown ~ .ta-backdrop { visibility: hidden; }
.var-tag { all: unset; background: rgba(57,148,255,.15); color: #7db8ff; border-radius: 3px; padding: 1px 2px; }
.setting-preview { border-radius: 8px; border: 0; box-shadow: none; }

/* Discord embed preview — MEE6-style */
.discord { background: #20233c !important; border-radius: 8px; padding: 16px 16px 16px 20px; font-size: 15px; color: #dbdee1; }
.mini-discord { max-width: 560px; }
.discord .ava { width: 40px; height: 40px; border-radius: 50%; }
.discord .who { font-weight: 600; color: #fff; font-size: 15px; }
.discord .bot-tag { background: var(--v-blue); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 4px; text-transform: uppercase; }
.discord .small.muted { color: var(--v-faint); font-size: 12px; }
.embed { background: #1e2138 !important; border-left: 4px solid var(--embed-color, var(--v-blue)); border-radius: 0 6px 6px 0 !important; padding: 12px 16px 16px; max-width: 520px; }
.embed .e-author { font-size: 13px; font-weight: 600; color: #fff; }
.embed .e-title { font-weight: 700; color: #fff; font-size: 16px; }
.embed .e-title.link { color: #00a8fc; }
.embed .e-desc { font-size: 14px; color: rgba(219, 222, 225, .8); line-height: 1.5; white-space: pre-wrap; }
.embed .e-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.embed .e-field b { color: #fff; font-size: 13px; font-weight: 600; }
.embed .e-field { font-size: 14px; color: rgba(219, 222, 225, .8); }
.embed .e-image { border-radius: 6px; margin-top: 8px; }
.embed .e-thumb { border-radius: 6px; }
.embed .e-footer { font-size: 12px; color: #8b8f9a; margin-top: 6px; }
.eb-item-stripe { width: 4px; border-radius: 4px; }
.eb-embed-box { border-radius: 0 6px 6px 0 !important; }

.list-item { background: #20233c !important; border: 1px solid #20233c !important; border-radius: 8px !important; }
.list-item:hover { background: #1e2138 !important; border-color: rgba(255, 255, 255, .1) !important; }
.disabled-note { border-radius: 8px !important; }

.savebar { border-radius: 14px !important; background: var(--v-raised) !important; border: 1px solid var(--v-line-2) !important; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9) !important; }
.savebar .msg { font-size: 13.5px; font-weight: 600; color: var(--v-text); }

/* ───────────────────────── 8. Overlays ───────────────────────── */
.dropdown, .select-menu, .cp-pop, .hovercard, .toast { background: var(--v-raised) !important; border: 1px solid var(--v-line-2) !important; border-radius: 12px !important; box-shadow: 0 16px 48px -16px rgba(0, 0, 0, .7) !important; }
.dropdown a, .dropdown button { border-radius: 8px; }
.dropdown a:hover, .dropdown button:hover, .cp-pop .cp-opt:hover, .cp-pop .cp-opt.sel { background: rgba(255, 255, 255, .06) !important; }
.modal { background: rgba(4, 5, 8, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-card, .gate-card, .enable-panel, .ep-card { background: var(--v-surface) !important; border: 1px solid var(--v-line-2) !important; border-radius: 20px !important; box-shadow: 0 32px 80px -24px rgba(0, 0, 0, .75) !important; }
.gate-card h2, .modal-card h2 { font-size: 1.35rem; font-weight: 600; }
.pick-grid .pick { border-radius: 12px !important; }
.pick-grid .pick.on { border-color: var(--v-blue) !important; background: rgba(57, 148, 255, .1) !important; box-shadow: none !important; }

/* ───────────────────────── 10. Behaviour carried over from the old dashboard layer ─────────────────────────
   dashboard-pro.css is no longer loaded. These are the parts of it that pages rely on
   (stacking, clipping, small components), restated in this theme. */
:focus-visible { outline: 2px solid rgba(57, 148, 255, .85); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .12) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .2); background-clip: content-box; }

/* Setting cards must never clip or transform: the channel and role pickers open outside them. */
.card.setting { position: relative; margin-bottom: 16px; }
.plugin-layout { padding-bottom: 92px; }
.pt-jump { overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent 100%); }
.pt-jump::-webkit-scrollbar { display: none; }
.pt-jump > * { flex: none; }
.cp-pop { z-index: 100 !important; width: min(100%, 380px) !important; overflow: hidden; }
.dropdown, .select-menu { overflow: hidden; }
.dropdown.lang-menu { overflow-y: auto; max-height: min(70vh, 480px); }
.setting-preview { overflow: hidden; }
/* The enable panel is centred with a transform, so its entrance has to keep that transform. */
@keyframes gate-pop-in { from { opacity: 0; transform: translate(-50%, -50%) translateY(8px) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
.gate-card:not(.in-modal) { animation-name: gate-pop-in; }

.field-heading { display: flex; align-items: center; gap: 10px; margin: 20px 0 8px; padding-top: 14px; border-top: 1px solid var(--v-line); }
.field-heading h3 { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--v-text); }
.field-badge { padding: 2px 8px; border-radius: 6px; background: rgba(251, 191, 36, .14); color: #fbbf24; font-family: var(--v-mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-info { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0; padding: 13px 15px; border-radius: 8px; background: rgba(57, 148, 255, .07); border: 1px solid rgba(57, 148, 255, .18); color: var(--v-body); font-size: 13.5px; line-height: 1.55; }
.field-info .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--primary-light); }
.field-info strong { font-weight: 600; color: var(--v-text); }
.swatch-wrap { position: relative; }
.swatch-dots { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sd { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s, border-color .15s, box-shadow .15s; }
.sd:hover { transform: scale(1.12); }
.sd.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(57, 148, 255, .5); }
.sd-gear { background: rgba(255, 255, 255, .08); color: var(--v-muted); }
.sd-gear .icon { width: 14px; height: 14px; }
.sd-gear:hover { background: rgba(255, 255, 255, .15); }
.swatch-custom { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.btn-danger, .btn.danger { background: rgba(248, 113, 113, .12); color: #f87171; border: 1px solid rgba(248, 113, 113, .28); border-radius: var(--v-r-sm); }
.btn-danger:hover, .btn.danger:hover { background: rgba(248, 113, 113, .2); }
.select { padding-right: 36px; }
.slider-val { min-width: 3em; text-align: right; font-family: var(--v-mono); font-size: 12.5px; color: var(--primary-light); font-variant-numeric: tabular-nums; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--v-muted); }
.empty-state .icon { width: 44px; height: 44px; margin: 0 auto 14px; opacity: .4; }
.var-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.var-chip { padding: 2px 8px; border-radius: 6px; background: rgba(57, 148, 255, .08); border: 1px solid rgba(57, 148, 255, .18); color: var(--primary-light); font-family: var(--v-mono); font-size: 11px; cursor: pointer; transition: background .15s, border-color .15s; }
.var-chip:hover { background: rgba(57, 148, 255, .16); border-color: rgba(57, 148, 255, .32); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px var(--v-bg); }
.skeleton { background: var(--v-muted); border-radius: 6px; opacity: .18; }

/* Toasts: bottom right, slide up */
.toast-stack, #toasts.toast-stack { position: fixed; top: auto; right: 24px; bottom: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 380px; padding: 12px 16px; border-left: 1px solid var(--v-line-2); font-size: 14px; font-weight: 500; color: var(--v-text); pointer-events: auto;
  opacity: 0; transform: translateY(10px); animation: none; transition: opacity .25s var(--v-ease), transform .25s var(--v-ease); }
.toast.show { opacity: 1; transform: none; }
.toast svg { width: 17px; height: 17px; flex: none; }
.toast.success svg { color: var(--v-on); }
.toast.error svg { color: #f87171; }
.toast.info svg { color: var(--primary-light); }
.toast.warning svg { color: #fbbf24; }
.toast.error { border-color: rgba(248, 113, 113, .35) !important; }

@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .setting-head { padding: 12px 16px; }
  .setting-body { padding: 0 16px 16px; }
  .plugin-layout { padding-bottom: 108px; }
}

/* Owner panel: the status message box leads the form */
.sm-message { margin-top: 0; padding: 14px 14px 12px; border-radius: 12px; border: 1px solid rgba(57, 148, 255, .28); background: rgba(57, 148, 255, .05); }
.sm-message > span { font-size: 13px; font-weight: 600; color: var(--v-text); }
.sm-message > small { font-size: 12px; line-height: 1.5; }
.sm-message .textarea { min-height: 76px; resize: vertical; }

/* ───────────────────────── 8b. Server Creator ───────────────────────── */
.sc-prompt { font-size: 14px; min-height: 96px; resize: vertical; }
.sc-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sc-presets .btn { font-size: 12px; }
.sc-gen-row { display: flex; justify-content: flex-end; margin-top: 8px; }
.sc-input { display: flex; flex-direction: column; }
.sc-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 0; color: var(--v-muted); }
.sc-spinner { width: 32px; height: 32px; border: 3px solid rgba(57,148,255,.2); border-top-color: var(--v-blue); border-radius: 50%; animation: sc-spin .7s linear infinite; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
.sc-plan { margin-top: 24px; }
.sc-plan-head { margin-bottom: 16px; }
.sc-plan-head h3 { font-family: var(--v-display); font-size: 18px; margin: 0 0 4px; }
.sc-plan-head .muted { font-size: 13px; }
.sc-plan-cols { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.sc-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--v-muted); margin: 0 0 12px; }
.sc-role { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.sc-role:last-child { border-bottom: none; }
.sc-role-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--v-muted); flex-shrink: 0; }
.sc-role-name { font-size: 14px; font-weight: 500; }
.sc-role-perms { font-size: 11px; margin-left: auto; }
.sc-category { margin-bottom: 12px; }
.sc-cat-head { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--v-muted); padding: 6px 0; }
.sc-cat-head .icon { width: 12px; height: 12px; }
.sc-private-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--v-muted); opacity: .7; text-transform: uppercase; }
.sc-private-badge .icon { width: 10px; height: 10px; }
.sc-channel { display: flex; align-items: center; gap: 6px; padding: 5px 8px 5px 20px; border-radius: 6px; font-size: 14px; }
.sc-channel:hover { background: rgba(255,255,255,.03); }
.sc-channel .icon { width: 16px; height: 16px; color: var(--v-muted); flex-shrink: 0; }
.sc-topic { margin-left: auto; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-apply { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); }
.sc-apply-row { display: flex; gap: 12px; align-items: center; }
.sc-apply-row .input { flex: 1; }
.sc-done { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 12px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.2); }
.sc-done .icon { width: 24px; height: 24px; color: var(--v-on); flex-shrink: 0; }
.sc-done b { display: block; margin-bottom: 2px; }
.sc-done .muted { font-size: 13px; }

/* ───────────────────────── 9. Small screens & motion ───────────────────────── */
@media (max-width: 1100px) {
  .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-tile, .lp-tile:nth-child(n) { grid-column: span 1; flex-direction: column; }
  .lp-tile-body { flex: none; }
  .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-stat:nth-child(3) { border-left: 0; }
  .ov-stat:nth-child(n + 3) { border-top: 1px solid var(--v-line); }
}
@media (max-width: 900px) {
  .lp-hero-in { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-show { max-width: 100%; }
  .lp-switch { left: 12px; }
  .lp-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-read:nth-child(3) { border-left: 0; padding-left: 0; }
  .lp-read:nth-child(n + 3) { border-top: 0; }
  .lp-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-demo-stage { min-height: 0; }
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lp-steps li, .lp-steps li + li { padding: 26px 0 0; border-left: 0; }
  .lp-steps li + li::before { left: 0; }
  .lp-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-cta-bg .pulsar-plot { width: 120%; opacity: .5; }
  .plugin-head { flex-wrap: wrap; }
  .ov-hero-bg { display: none; }
}
@media (max-width: 640px) {
  .lp-bento, .lp-cats { grid-template-columns: minmax(0, 1fr); }
  .lp-ctas .btn { flex: 1 1 100%; }
  .lp-demo-more > div { padding-left: 4px; }
  .lp-read { padding: 20px 0 20px 18px; }
  .ov-hero-main { padding: 20px 18px; }
  .plugin-head { gap: 14px; }
  .plugin-head .info { flex: 1 1 calc(100% - 72px); }
  .plugin-head .toggle-wrap, .plugin-head .head-action { margin-left: 68px; }
  .ov-stat { padding: 14px 16px; }
  .ov-actions, .ov-actions .btn { width: 100%; }
  .plugin-cards, .plugin-grid, .feature-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .sc-fields { grid-template-columns: repeat(2, auto); }
  .sc-plan-cols { grid-template-columns: 1fr; }
  .sc-apply-row { flex-direction: column; }
  .sc-apply-row .input { width: 100%; }
}
/* Touch targets: text links are only a line tall, which is fiddly on a phone */
@media (max-width: 900px) {
  .site-footer .sf-col a { padding-block: 9px; }
  .lp-link, .lp-cat-go { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-row, .lp-live::after, .lp-demo-stage .sc-window { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lp-demo-more { transition: none; }
}


/* ═══════════ Marketing sections: alternating rows, replaces strip, pricing ═══════════ */

.lp-rows { display: grid; gap: clamp(52px, 7vw, 104px); max-width: 1200px; margin: 0 auto; }
.lp-row { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lp-row.alt .lp-row-copy { order: 2; }
.lp-row.alt .lp-row-art { order: 1; }
.lp-row-tag { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); color: color-mix(in srgb, var(--c) 78%, white); font-size: 12.5px; font-weight: 650; letter-spacing: .005em; }
.lp-row-ic { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, transparent); }
.lp-row-ic svg { width: 14px; height: 14px; }
.lp-row-copy h3 { margin: 18px 0 11px; font-family: var(--v-display); font-size: clamp(25px, 3.1vw, 35px); line-height: 1.15; letter-spacing: -.022em; color: var(--v-text); }
.lp-row-copy > p { margin: 0 0 20px; color: var(--v-body); font-size: 15.5px; line-height: 1.65; max-width: 48ch; }
.lp-row-points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.lp-row-points li { display: flex; align-items: center; gap: 11px; color: var(--v-body); font-size: 14.5px; }
.lp-row-points li svg { width: 16px; height: 16px; flex: none; color: var(--c); }
.lp-row-art { position: relative; isolation: isolate; }
.lp-row-art::before { content: ''; position: absolute; inset: -14% -10%; z-index: -1; background: radial-gradient(58% 58% at 50% 45%, color-mix(in srgb, var(--c) 17%, transparent), transparent 70%); filter: blur(30px); }
.lp-row-art .sc-window { box-shadow: var(--pro-e3); }

.lp-replaces { padding: clamp(30px, 5vw, 56px) clamp(20px, 5vw, 48px); }
.lp-replaces-in { max-width: 1080px; margin: 0 auto; padding: clamp(24px, 3.5vw, 38px); border: 1px solid var(--v-line); border-radius: var(--pro-r-xl); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); }
.lp-replaces-lead { margin: 0 0 22px; text-align: center; font-family: var(--v-display); font-size: clamp(15px, 1.9vw, 19px); font-weight: 650; color: var(--v-muted); }
.lp-replaces-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: clamp(14px, 2.6vw, 28px); }
.lp-replaces-old { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.lp-replaces-old span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px dashed var(--v-line-2); color: var(--v-faint); font-size: 13px; font-weight: 500; }
.lp-replaces-old span svg { width: 14px; height: 14px; opacity: .55; }
.lp-replaces-eq { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--v-raised); border: 1px solid var(--v-line-2); color: var(--v-blue); flex: none; }
.lp-replaces-eq svg { width: 16px; height: 16px; }
.lp-replaces-new { display: inline-flex; align-items: center; gap: 11px; padding: 11px 20px; border-radius: 999px; background: var(--primary-soft); border: 1px solid var(--primary-ring); }
.lp-replaces-new img { width: 26px; height: 26px; }
.lp-replaces-new b { font-family: var(--v-display); font-size: 16px; color: var(--v-text); letter-spacing: -.01em; }
.lp-replaces-new small { color: var(--v-muted); font-size: 12.5px; }

.lp-free { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: center; padding: clamp(28px, 4vw, 46px); border: 1px solid var(--v-line-2); border-radius: var(--pro-r-xl); background: radial-gradient(90% 120% at 0% 0%, rgba(57,148,255,.10), transparent 60%), var(--v-surface); box-shadow: var(--pro-e3); }
.lp-free-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(52,211,153,.13); border: 1px solid rgba(52,211,153,.30); color: var(--v-on); font-size: 12px; font-weight: 650; }
.lp-free-price { display: flex; align-items: baseline; gap: 10px; margin: 17px 0 12px; }
.lp-free-price b { font-family: var(--v-display); font-size: clamp(42px, 6vw, 62px); line-height: 1; letter-spacing: -.035em; color: var(--v-text); }
.lp-free-price span { color: var(--v-muted); font-size: 15px; font-weight: 600; }
.lp-free-main > p { margin: 0 0 24px; color: var(--v-body); font-size: 15px; line-height: 1.62; }
.lp-free-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lp-free-list li { display: flex; align-items: center; gap: 11px; color: var(--v-body); font-size: 14.5px; }
.lp-free-list li svg { width: 17px; height: 17px; flex: none; color: var(--v-on); }

@media (max-width: 900px) {
  .lp-row { grid-template-columns: 1fr; gap: 30px; }
  .lp-row.alt .lp-row-copy, .lp-row.alt .lp-row-art { order: initial; }
  .lp-free { grid-template-columns: 1fr; }
  .lp-replaces-row { grid-template-columns: 1fr; justify-items: center; }
  .lp-replaces-old { justify-content: center; }
  .lp-replaces-eq { transform: rotate(90deg); }
}


/* ═══════════ Server picker: grouped sections ═══════════ */
.srv-sub { margin: -4px 0 22px; color: var(--v-muted); font-size: 14.5px; line-height: 1.55; max-width: 60ch; }
.srv-group + .srv-group { margin-top: clamp(30px, 4vw, 44px); }
.srv-group-head { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.srv-group-head h2 { margin: 0; font-family: var(--v-display); font-size: 15px; font-weight: 650; letter-spacing: .01em; color: var(--v-body); }
.srv-group-n { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--v-raised); border: 1px solid var(--v-line); color: var(--v-muted); font-size: 11.5px; font-weight: 650; }
.srv-group-hint { margin: 0 0 14px; color: var(--v-faint); font-size: 13px; }
.srv-group-head + .srv-grid { margin-top: 14px; }


/* sidebar brand: align with the nav column */
/* app.css also styles .side-brand and was winning over the plain rule above, so this one is
   scoped to .sidebar to outrank it. The logo used to sit at x=20 while the server switcher and
   nav items below start at x=52, leaving it jutting out to the left.
   Now all three share --side-gutter, set once at :root, so they cannot drift apart again. */
.sidebar .side-brand {
  padding-left: var(--side-gutter) !important;
  padding-right: var(--side-gutter) !important;
  color: #fff !important;
  border-bottom: none !important;
  text-transform: uppercase;
  letter-spacing: .06em !important;
  font-size: 22px !important;
}

/* The brand is an <a> in .sidebar, so the nav-link hover highlight was landing on it too. */
.sidebar .side-brand span { color: #fff !important; }

.sidebar .side-brand:hover {
  background: transparent !important;
}

/* The collapsed layout (under 1100px) swaps the sidebar brand for this one; keep the casing the same. */
.top-brand {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
}


/* ═════ Hero: depth, focus and legibility ═════ */

/* The plot ran straight through the body copy. Fade it out across the text column so it
   reads as atmosphere behind the mockup instead of noise over the words. */
.lp-hero-bg .pulsar-plot {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0,0,0,.5) 54%, #000 74%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0,0,0,.5) 54%, #000 74%);
  opacity: .8;
}

/* Directional lighting plus a vignette, so the eye lands on the headline. */
.lp-hero {
  background:
    radial-gradient(ellipse 55% 45% at 15% 42%, rgba(57,148,255,.17) 0%, transparent 68%),
    radial-gradient(ellipse 50% 55% at 82% 18%, rgba(34,211,238,.12) 0%, transparent 66%),
    radial-gradient(ellipse 85% 45% at 50% 108%, rgba(57,148,255,.09) 0%, transparent 60%),
    radial-gradient(ellipse 80% 80% at 50% 45%, transparent 48%, rgba(0,0,0,.42) 100%),
    linear-gradient(180deg, #0b0e1b 0%, #141729 32%, #1a1d2e 58%, #121527 82%, #0b0e1b 100%) !important;
}

.lp-grad {
  background: linear-gradient(100deg, #4aa3ff 5%, #67e8f9 55%, #a5f3fc 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 28px rgba(57,148,255,.38));
}

/* Brighter, since it sits over the busiest part of the background. */
.lp-lead { color: #bac3d5; }

.lp-pill { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.14); box-shadow: 0 2px 16px rgba(0,0,0,.35); }
.lp-live { filter: drop-shadow(0 0 7px currentColor); }

.lp-ctas .btn-primary {
  background: linear-gradient(135deg, #3994ff 0%, #2bb8e8 100%) !important;
  box-shadow: 0 10px 30px -8px rgba(57,148,255,.6), inset 0 1px 0 rgba(255,255,255,.28) !important;
  transition: transform .2s var(--v-ease), box-shadow .2s var(--v-ease);
}
.lp-ctas .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px -10px rgba(57,148,255,.78), inset 0 1px 0 rgba(255,255,255,.32) !important;
}
.lp-ctas .btn-ghost { transition: transform .2s var(--v-ease), border-color .2s var(--v-ease), background .2s var(--v-ease); }
.lp-ctas .btn-ghost:hover { transform: translateY(-2px); }

/* Let the mockup float rather than sit flat on the panel. */
.lp-hero-show .sc-window {
  box-shadow: 0 44px 84px -32px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.07), 0 0 80px -24px rgba(57,148,255,.32);
}

.lp-read b {
  background: linear-gradient(135deg, #ffffff 25%, #8fc4ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-read { transition: background .25s var(--v-ease); }
.lp-read:hover { background: rgba(255,255,255,.022); }

/* ===== Sidebar: readable rows, legible headings, room for the server name ===== */

/* The tripled padding left a dead gutter down the left and starved the server selector, which cut the
   server name off. Back to a normal inset at a normal width, where the content has room to breathe. */
:root { --sidebar: 312px; --side-gutter: 12px; }
.nav { padding: 4px var(--side-gutter) 40px var(--side-gutter) !important; }
.switcher { padding: 12px var(--side-gutter) 8px var(--side-gutter) !important; }

/* Rows were 28px tall, which is cramped for a list this long. */
.sidebar .nav-top {
  height: 38px;
  padding: 0 10px;
  gap: 11px;
  border-radius: 10px;
  font-size: 14px;
}

/* Headings sat at 22% white, which is barely readable on this background. */
.nav-label {
  font-size: 11px !important;
  letter-spacing: .09em !important;
  color: rgba(255, 255, 255, .42) !important;
  padding: 16px 10px 6px !important;
}
.nav-label:hover { color: rgba(255, 255, 255, .64) !important; }

/* The selector can use the full width now, so long server names stay whole. */
.switcher-btn { height: 48px; font-size: 14.5px; }

/* The sidebar sits off the window edge rather than flush against it. 344 = 32 gutter + 312 usable, */
/* so the nav keeps its width and the main content shifts across with it. */
:root { --sidebar: 344px; }
.sidebar { padding-left: 32px; }

/* The main content sits darker than the shell, so the sidebar and top bar read as the raised
   surface around it. Cards keep their own lighter --v-surface, so they still lift off this. */
.main { background: #121523; }

/* "N more modules": a long sidebar group shows the first few entries and keeps the rest behind
   this button. It lines up with the plugin links above it so the list still reads as one column,
   and the plus turns into a cross when the group is open. */
.nav-more {
  display: flex; align-items: center; width: 100%; min-height: 28px; padding: 3px 8px; gap: 6px;
  border: 0; border-radius: 9px; background: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 13px; font-weight: 500; color: #3994ff;
  transition: background .2s cubic-bezier(.22,1,.36,1), color .2s;
}
.nav-more:hover { background: rgba(57, 148, 255, .1); color: #60a5fa; }
.nav-more .nicon { width: 28px; height: 28px; flex: none; display: grid; place-items: center; }
.nav-more .nicon svg { width: 18px; height: 18px; transition: transform .2s cubic-bezier(.22,1,.36,1); }
.nav-more.open .nicon svg { transform: rotate(45deg); }


/* ───────────────────── Discord mockups: match the real client ─────────────────────
   The sc-* windows are meant to read as genuine screenshots of Discord, so every
   value below is taken from Discord's own dark theme rather than picked to suit
   this site. For reference: the chat and the channel header are both #313338 and
   are separated by three stacked shadows rather than a border or a darker bar;
   body text is #dbdee1 at 16px/1.375; usernames are weight 500, not bold;
   timestamps are 12px/500 #949ba4; mentions are #dee0fc on rgba(88,101,242,.3)
   with a 3px radius; the APP tag is 10px/500 white on #5865f2, 15px tall, 3px
   radius; embeds are #2b2d31 with a 4px accent edge.

   gg sans is Discord's own typeface and is not licensable, so this uses Discord's
   real fallback chain and loads Noto Sans — the first fallback the client itself
   names — to stand in for it.

   Everything is scoped to .sc-window on purpose: the dashboard's Server Creator
   reuses sc-prompt / sc-fields / sc-plan-cols outside any mockup, and those must
   not inherit Discord's styling. */
.sc-window {
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.375;
  color: #dbdee1;
}
.sc-window .sc-bar {
  background: #313338;
  box-shadow: 0 1px 0 rgba(4, 4, 5, .2), 0 1.5px 0 rgba(6, 6, 7, .05), 0 2px 0 rgba(4, 4, 5, .05);
}
.sc-window .sc-chan { font-size: 16px; font-weight: 600; color: #f2f3f5; }
.sc-window .sc-hash { color: #80848e; }
/* A 40px avatar in a 16px gutter, so the message body starts 56px in as it does in the client. */
.sc-window .sc-msg { gap: 16px; }
.sc-window .sc-body { gap: 17px; }
.sc-window .sc-msg p { font-size: 16px; line-height: 1.375; color: #dbdee1; }
.sc-window .sc-who b { font-size: 16px; font-weight: 500; }
.sc-window .sc-time { font-size: 12px; font-weight: 500; color: #949ba4; }
.sc-window .sc-bot {
  font-size: 10px; font-weight: 500; line-height: 15px; letter-spacing: 0;
  padding: 0 4px; border-radius: 3px; background: #5865f2; color: #fff;
  text-transform: uppercase;
}
.sc-window .sc-mention {
  font-size: 16px; font-weight: 500; color: #dee0fc;
  background: rgba(88, 101, 242, .3); border-radius: 3px; padding: 0 2px;
}
.sc-window .sc-embed { padding: 8px 16px 16px; }
/* A role mention is an inline pill tinted with the role's own colour, exactly like a
   user mention. This was display:flex — a block-level box — so the role was pushed
   onto a line of its own and the text after it stranded on a third. Tinting from
   currentColor means it stays right whatever colour the role is given. */
.sc-window .sc-role {
  display: inline;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 500;
  background: rgba(255, 255, 255, .08);
  background: color-mix(in srgb, currentColor 12%, transparent);
}

/* The mock window is far narrower than a real client, so below the point where the
   rows stack, Discord's 16px would wrap every line. This is the one place the
   mockups deliberately leave the real values behind. */
@media (max-width: 720px) {
  .sc-window, .sc-window .sc-msg p, .sc-window .sc-who b, .sc-window .sc-mention { font-size: 14px; }
  .sc-window .sc-chan { font-size: 14px; }
  .sc-window .sc-msg { gap: 12px; }
}

/* ───────────────────── Landing page polish ─────────────────────
   Typography and contrast only: no layout, colours or structure moved. */

/* The "bots you are replacing" chips are meant to look faded against the bright
   Pulsar pill beside them, but #6b7285 on this panel measures 3.6:1, under the
   4.5:1 needed to read 13px comfortably. This lifts them to about 5.6:1, which is
   still clearly dimmer than the Pulsar pill, so the contrast the section is built
   on survives while the words can actually be read. */
.lp-replaces-old > span { color: #8b93a8; border-color: rgba(255, 255, 255, .16); }

/* Let the browser pick the break points. "balance" evens out the lines of a short
   heading; "pretty" stops a paragraph ending on a single stranded word, which the
   hero copy was doing ("...no code / to write."). Both are progressive: a browser
   that doesn't support them simply wraps the way it does today. */
.lp h1, .lp h2, .lp-head h2, .lp-tile-body h3 { text-wrap: balance; }
.lp-lead, .lp-head p, .lp-tile-body p, .lp-replaces-lead { text-wrap: pretty; }

/* ───────────────────── Logging: audit-log event rows ─────────────────────
   The events are one card of grouped toggles. A toggle field normally spreads
   label and switch to opposite edges of the card, which reads fine for two or
   three settings but turns a 24-event audit log into rows of widely separated
   pairs with a gulf down the middle. Here the switch leads and the label sits
   beside it, so the list scans top to bottom like a checklist.

   row-reverse puts the switch first visually while leaving the DOM order
   (label, then switch) alone, so the label still points at its own input and
   clicking it still works. In row-reverse the main axis runs right to left,
   which is why packing to the left edge is flex-end rather than flex-start. */
.plugin-logging .field.toggle {
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 12px;
}
.plugin-logging .field.toggle > label:not(.switch) { flex: 0 1 auto; cursor: pointer; }
/* The first group heading sits right under the card's own description, where the
   divider rule it normally carries would read as a stray line. */
.plugin-logging .field-heading:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ───────────────────── Plugin section tabs, MEE6 style ─────────────────────
   Plain text with an underline under the current tab, instead of a row of pills.

   Two things worth knowing. The scroll-spy in app.js marks the current chip with
   .on, while the rules above style .active — a class the markup never sets — so
   until now no tab was ever highlighted. Both are matched here. And the bar was
   sticky with a panel background; MEE6's tabs scroll away with the page, so it is
   static, which also means it no longer needs a background to hide text behind it. */
.plugin-tools {
  position: static;
  margin: 0 0 22px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none;
}
.plugin-tools .pt-jump {
  gap: 26px;
  margin-top: 0;
  border-bottom: 1px solid var(--v-line);
  -webkit-mask-image: none;
  mask-image: none;
}
.pt-jump button, .pt-chip {
  height: auto !important;
  padding: 0 0 11px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--v-muted);
  font-size: 14px;
  font-weight: 500;
  /* Sits on the container's own 1px rule so the underline replaces it rather than stacking. */
  margin-bottom: -1px;
}
.pt-jump button:hover, .pt-chip:hover {
  background: none !important;
  color: var(--v-text);
  border-bottom-color: rgba(255, 255, 255, .18) !important;
}
.pt-chip.on, .pt-jump button.on,
.pt-chip.active, .pt-jump button.active {
  background: none !important;
  color: var(--v-text) !important;
  border-bottom-color: #fff !important;
}

/* The section tabs are links now, one per section page, so they need the anchor resets a
   button did not: no underline from the browser, and a box that can take vertical padding. */
.pt-jump a.pt-chip {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}
.pt-jump a.pt-chip:hover { text-decoration: none; }

/* The leaderboard's Levels / Economy switch borrows the plugin tab styling, but it sits inside a
   page rather than above one, so it needs its own spacing and must not inherit the section bar's
   bottom margin collapse. */
.lb .plugin-tools.lb-tabs { margin: 18px 0 6px; }
.lb .lb-tabs .pt-jump { gap: 22px; }

/* A custom currency emoji on the leaderboard, shown at text size beside the amount. The balance is
   kept on one line so it can never push the member's name out of the space they share. */
.lb-coin { width: 18px; height: 18px; vertical-align: -3px; }
.lb-coin-wrap { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.lb-row .nums { white-space: nowrap; }

/* ───────────────────── Leaderboard podium ─────────────────────
   The winner stands in the middle and taller, which is the shape people already read as first
   place; second and third flank it. The three are still in the list below for the search to find,
   so the podium only hides them rather than removing them. */
.lb-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.lb-pod {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 18px 12px 16px;
  border-radius: 16px;
  background: var(--v-surface);
  border: 1px solid var(--v-line);
  text-align: center;
  min-width: 0;
}
.lb-pod img { width: 56px; height: 56px; border-radius: 50%; background: var(--v-raised); }
.lb-pod.p1 { padding-top: 28px; }
.lb-pod.p1 img { width: 74px; height: 74px; }
.lb-pod-rank {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--v-mono); font-size: 12px; font-weight: 600;
}
.lb-pod.p1 .lb-pod-rank { background: #f5b301; color: #1a1300; }
.lb-pod.p2 .lb-pod-rank { background: #b8c2cc; color: #111; }
.lb-pod.p3 .lb-pod-rank { background: #c8773a; color: #1a0d00; }
.lb-pod.p1 { border-color: rgba(245, 179, 1, .45); }
.lb-pod.p2 { border-color: rgba(184, 194, 204, .32); }
.lb-pod.p3 { border-color: rgba(200, 119, 58, .32); }
.lb-pod-name {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--v-text); font-weight: 600;
}
.lb-pod-stat {
  font-family: var(--v-mono); font-size: 11px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--v-muted);
}
/* Higher specificity than .lb-row's own display, so hiding actually takes. */
.lb-list.has-podium .lb-row.lb-top { display: none; }
@media (max-width: 560px) {
  .lb-podium { gap: 8px; }
  .lb-pod { padding: 14px 6px 12px; }
  .lb-pod.p1 { padding-top: 20px; }
  .lb-pod img { width: 46px; height: 46px; }
  .lb-pod.p1 img { width: 58px; height: 58px; }
  .lb-pod-stat { font-size: 10px; }
}

/* Headline figures under the leaderboard title. They wrap on narrow screens rather than shrinking,
   because a squashed number is worse than a second row. */
.lb-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -14px 0 20px;
}
.lb-stat {
  flex: 1 1 140px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--v-surface);
  border: 1px solid var(--v-line);
}
.lb-stat b {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--v-text);
}
.lb-stat span {
  font-family: var(--v-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--v-muted);
}

/* Leaderboard pager. Previous/Next are links so the browser treats them as navigation; an
   out-of-range step renders as plain text rather than a dead link. */
.lb-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--v-line);
}
.lb-step {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--v-line);
  color: var(--v-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, border-color .15s;
}
.lb-step:hover { background: rgba(255, 255, 255, .06); border-color: var(--v-line-2); }
.lb-step.off { color: var(--v-muted); border-color: transparent; cursor: default; }
.lb-pageno {
  font-family: var(--v-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--v-muted);
}