﻿:root {
  --bg: #0d1012;
  --bg-elevated: #14181b;
  --ink: #e8e6df;
  --muted: #8b9298;
  --volt: #d98e2b;
  --volt-hot: #e6a84a;
  --volt-dim: #b57522;
  --accent: #d98e2b;
  --accent-2: #e6a84a;
  --discord: #5865f2;
  --discord-hot: #6d78f7;
  --discord-deep: #4752c4;
  --magenta: #e0687a;
  --magenta-hot: #e88493;
  --gold: #d98e2b;
  --gold-soft: #f0d4a8;
  --cyan: #3f8f86;
  --card: #14181b;
  --card-top: #1a1f23;
  --line: #23292d;
  --line-bright: rgba(232, 230, 223, 0.14);
  --danger: #b0503f;
  --danger-soft: #e8a090;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --glow-volt: 0 0 36px rgba(217, 142, 43, 0.28);
  --glow-discord: 0 12px 40px rgba(88, 101, 242, 0.45);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Work Sans", system-ui, sans-serif;
  --display: "Rajdhani", "Work Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --stage-max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font);
  background:
    radial-gradient(1000px 560px at 12% -8%, rgba(217, 142, 43, 0.12) 0%, transparent 55%),
    radial-gradient(900px 520px at 100% 0%, rgba(63, 143, 134, 0.08) 0%, transparent 50%),
    radial-gradient(720px 420px at 70% 110%, rgba(88, 101, 242, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #101418 0%, #0d1012 48%, #0a0c0e 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  z-index: 1;
}

#app { position: relative; z-index: 2; min-height: 100vh; }

h1, h2, h3, .mark {
  font-family: var(--display);
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 700;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-size: 13px;
  color: var(--muted);
}

a { color: var(--volt); transition: color 0.15s ease; }
a:hover { color: var(--volt-hot); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes soft-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.45), 0 12px 40px rgba(88, 101, 242, 0.35); }
  50% { box-shadow: 0 0 0 14px rgba(88, 101, 242, 0), 0 16px 48px rgba(88, 101, 242, 0.5); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.08); }
}
@keyframes shine-sweep {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  35% { opacity: 0.55; }
  100% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
}

.anim-rise { animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-fade { animation: fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-float { animation: float-y 4.5s ease-in-out infinite; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.28s; }
.server-grid .server-card:nth-child(1) { animation-delay: 0.03s; }
.server-grid .server-card:nth-child(2) { animation-delay: 0.06s; }
.server-grid .server-card:nth-child(3) { animation-delay: 0.09s; }
.server-grid .server-card:nth-child(4) { animation-delay: 0.12s; }
.server-grid .server-card:nth-child(5) { animation-delay: 0.15s; }
.server-grid .server-card:nth-child(6) { animation-delay: 0.18s; }
.server-grid .server-card:nth-child(7) { animation-delay: 0.21s; }
.server-grid .server-card:nth-child(8) { animation-delay: 0.24s; }
.server-grid .server-card:nth-child(n+9) { animation-delay: 0.27s; }

/* Login — Yunite layout, DropSpot amber palette (subtle polish) */
.login-screen,
.yunite-hero {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.login-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.login-bg-scene {
  position: absolute;
  inset: -48px;
  background:
    radial-gradient(ellipse 85% 65% at 18% 28%, rgba(217, 142, 43, 0.55) 0%, transparent 58%),
    radial-gradient(ellipse 75% 55% at 82% 18%, rgba(63, 143, 134, 0.35) 0%, transparent 52%),
    radial-gradient(ellipse 60% 50% at 50% 78%, rgba(88, 101, 242, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 92% 72%, rgba(90, 58, 120, 0.3) 0%, transparent 50%),
    linear-gradient(165deg, #16110e 0%, #0d1012 42%, #10161c 100%);
  filter: blur(32px) saturate(1.12);
  transform: scale(1.1);
}
.login-bg-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  background: rgba(8, 10, 12, 0.22);
}
.login-bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(217, 142, 43, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(13, 16, 18, 0.78) 100%);
}

.yu-topbar {
  position: relative;
  z-index: 3;
  width: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.yu-topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 22px;
  height: 58px;
}
.yu-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.yu-brand:hover { opacity: 0.9; }
.yu-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(217, 142, 43, 0.45));
  transition: filter 0.25s ease, transform 0.25s ease;
}
.yu-brand:hover img {
  filter: drop-shadow(0 0 14px rgba(217, 142, 43, 0.65));
  transform: scale(1.04);
}
.yu-brand em,
.yu-brand span { color: #fff; font-style: normal; }
.yu-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
}
.yu-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.yu-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  border-radius: 1px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}
.yu-links a:hover { color: #fff; }
.yu-links a:hover::after { transform: scaleX(1); }
.yu-nav-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, #e6a84a, #d98e2b);
  color: #120b05 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(217, 142, 43, 0.28);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.yu-nav-cta:hover {
  filter: brightness(1.06);
  color: #120b05 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(217, 142, 43, 0.4);
}

.yu-hero-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 58px);
}
.yu-center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(460px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 64px;
}
.yu-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 24px;
  border-radius: 20px;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 36px rgba(217, 142, 43, 0.28));
  transition: filter 0.35s ease, transform 0.35s ease;
}
.yu-logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 44px rgba(217, 142, 43, 0.4));
}
.yu-title {
  font-family: var(--font);
  font-size: clamp(2.85rem, 7vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #fff;
  text-transform: none;
  margin: 0 0 14px;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(217, 142, 43, 0.12);
}
.yu-tagline {
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.08rem, 2.4vw, 1.22rem);
  font-weight: 500;
  line-height: 1.5;
  max-width: 28rem;
  text-transform: none;
  font-family: var(--font);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.yu-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}
.yu-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.yu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    filter 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}
.yu-btn:hover { filter: brightness(1.06); transform: translateY(-2px); }
.yu-btn:active { transform: translateY(0); }
.yu-btn-primary,
.yu-btn-cta {
  background: linear-gradient(180deg, #e6a84a 0%, #d98e2b 55%, #c47d24 100%);
  color: #120b05 !important;
  min-height: 56px;
  font-size: 17px;
  border-color: rgba(255, 220, 160, 0.28);
  box-shadow:
    0 10px 32px rgba(217, 142, 43, 0.45),
    0 0 0 1px rgba(217, 142, 43, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.yu-btn-primary:hover,
.yu-btn-cta:hover {
  color: #120b05 !important;
  box-shadow:
    0 14px 40px rgba(217, 142, 43, 0.58),
    0 0 0 1px rgba(217, 142, 43, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.yu-btn-blue {
  background: linear-gradient(180deg, #4f8ff7, #3b82f6 60%, #2563eb);
  color: #fff !important;
  border-color: rgba(180, 210, 255, 0.2);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.32);
}
.yu-btn-blue:hover {
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.45);
}
.yu-btn-discord {
  background: linear-gradient(180deg, #6d78f7, #5865f2 55%, #4752c4);
  color: #fff !important;
  border-color: rgba(180, 190, 255, 0.22);
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.35);
}
.yu-btn-discord:hover {
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(88, 101, 242, 0.48);
}
.yu-btn-help {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  min-height: 44px;
  font-size: 14px;
}
.yu-btn-help:hover {
  color: #fff !important;
  filter: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.discord-ico { width: 22px; height: 22px; flex-shrink: 0; }

/* Keep legacy discord-btn usable in app chrome */
.discord-btn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px !important;
  background: #5865f2 !important;
  color: #fff !important;
  border-radius: 4px !important;
  font-family: var(--font) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-decoration: none !important;
}
.discord-btn:hover { filter: brightness(1.08); color: #fff !important; }

.yu-features {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 40px));
  margin: 8px auto 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .yu-features { grid-template-columns: 1fr; gap: 12px; margin-bottom: 36px; }
  .yu-links { display: none; }
  .yu-btn-row { grid-template-columns: 1fr; }
}
.yu-feature {
  padding: 24px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
    rgba(14, 17, 20, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.yu-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 142, 43, 0.42);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(217, 142, 43, 0.1),
    0 0 32px rgba(217, 142, 43, 0.12);
  background:
    linear-gradient(165deg, rgba(217, 142, 43, 0.1) 0%, transparent 45%),
    rgba(16, 19, 22, 0.78);
}
.yu-feature h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
  text-transform: none;
  color: #fff;
  font-weight: 700;
}
.yu-feature p {
  margin: 0;
  color: rgba(232, 230, 223, 0.7);
  font-size: 14px;
  line-height: 1.55;
  text-transform: none;
  font-family: var(--font);
  font-weight: 400;
}
.yu-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 12px 20px 40px;
}
.yu-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.yu-footer a:hover { color: #fff; }

.bot-profile-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  padding-bottom: 16px;
}
.bot-profile-banner {
  height: 96px;
  background:
    linear-gradient(120deg, rgba(217, 142, 43, 0.35), rgba(88, 101, 242, 0.25)),
    #1a1f23;
  background-size: cover;
  background-position: center;
}
.bot-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--card);
  margin: -36px 0 0 16px;
  object-fit: cover;
  background: #0d1012;
  display: block;
}
.bot-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px 0;
}
.bot-profile-meta strong { font-size: 1.05rem; }

@media (prefers-reduced-motion: reduce) {
  .yu-brand img,
  .yu-logo,
  .yu-btn,
  .yu-nav-cta,
  .yu-feature,
  .yu-links a::after {
    transition: none !important;
  }
  .yu-btn:hover,
  .yu-nav-cta:hover,
  .yu-feature:hover,
  .yu-logo:hover {
    transform: none !important;
  }
}

/* Registration tab */
.reg-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
@media (max-width: 960px) {
  .reg-grid { grid-template-columns: 1fr; }
}
.reg-roster {
  max-height: 420px;
  overflow: auto;
}
.reg-roster table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.reg-roster th, .reg-roster td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.reg-roster th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.priority-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}

/* Crawler mirror: stays in the HTML source, not shown as a second login UI */
#vorynx-home[data-public-home] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.boot-splash-title {
  margin: 14px 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-family: var(--display);
}
.boot-splash-sub {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--volt);
  color: #120b05;
  padding: 10px 14px;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}
.noscript-banner {
  position: relative;
  z-index: 5;
  margin: 0 auto;
  max-width: 640px;
  padding: 16px 20px;
  color: var(--ink);
  background: rgba(18, 21, 29, 0.95);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.noscript-banner a { color: var(--volt); }

@media (max-width: 560px) {
  .yu-center { padding: 28px 0 36px; width: min(100%, calc(100% - 28px)); }
  .yu-logo { width: 88px; height: 88px; margin-bottom: 16px; }
  .yu-title { font-size: 2.15rem; }
  .yu-tagline { font-size: 0.98rem; margin-bottom: 26px; }
  .yu-topbar-inner { gap: 12px; padding: 0 14px; height: 54px; }
  .yu-nav-cta { padding: 8px 12px; font-size: 12.5px; }
  .yu-btn { min-height: 46px; }
  .yu-btn-primary { min-height: 50px; }
  .yu-features { width: min(100%, calc(100% - 28px)); margin-bottom: 24px; }
  .yu-feature { padding: 18px 16px; }
  .yu-hero-stage { min-height: calc(100vh - 54px); }
}

/* Electron desktop chrome */
body.electron-app .app-bar {
  padding-top: 14px;
  -webkit-app-region: drag;
}
body.electron-app .app-bar button,
body.electron-app .app-bar a,
body.electron-app .server-pill,
body.electron-app .user-chip {
  -webkit-app-region: no-drag;
}
body.electron-app .app-canvas {
  padding-top: 18px;
}
body.electron-app .app-stage {
  background:
    radial-gradient(720px 300px at 12% -8%, rgba(88, 101, 242, 0.12), transparent 55%),
    radial-gradient(520px 260px at 100% 0%, rgba(232, 255, 61, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(10, 12, 18, 0.4), transparent);
}

/* Picker */
.picker-screen {
  min-height: 100vh;
  padding: 56px 28px 88px;
  max-width: 1080px;
  margin: 0 auto;
}
.picker-head { text-align: center; margin-bottom: 36px; }
.picker-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(232, 255, 61, 0.3));
}
.picker-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--volt);
  font-weight: 600;
}
.picker-welcome {
  font-size: clamp(26px, 3.5vw, 34px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: #fff;
  margin-bottom: 8px;
}
.picker-sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 16px;
}
.picker-logout { margin-top: 8px; border-radius: 10px !important; }
.picker-section-label {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.picker-or {
  text-align: center;
  color: var(--muted);
  margin: 40px 0 24px;
  font-size: 14px;
}
.picker-or::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin-bottom: 24px;
}
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}
.server-card {
  background: linear-gradient(180deg, var(--card-top), var(--card));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 22px 16px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.server-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 255, 61, 0.28);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4), var(--glow-volt);
}
.server-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #0a0b0d;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.server-icon.ph {
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--volt);
  background: linear-gradient(145deg, #252830, #14161c);
}
.server-card h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}
.server-action {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  text-align: center;
  display: block;
  background: linear-gradient(180deg, var(--discord-hot), var(--discord));
  color: #fff;
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.server-action:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.server-action.invite {
  background: linear-gradient(180deg, #2a3040, #1a1e28);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-bright);
}
.server-action:disabled { opacity: 0.6; cursor: wait; }
.muted-center { text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* App shell */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 12, 18, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  position: sticky;
  top: 0;
  z-index: 30;
}
.app-bar-left, .app-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.app-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(232, 255, 61, 0.35));
  flex-shrink: 0;
}
.app-title-block { display: flex; flex-direction: column; line-height: 1.15; margin-right: 6px; }
.app-product { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; color: #fff; }
.app-product-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(300px, 42vw);
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.server-pill:hover {
  border-color: rgba(232, 255, 61, 0.35);
  background: rgba(232, 255, 61, 0.06);
  box-shadow: 0 0 24px rgba(232, 255, 61, 0.08);
}
.app-server-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #151820;
}
.app-server-ico.ph {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--volt);
}
.server-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.server-pill-chev {
  color: var(--volt);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.user-chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  padding: 11px 16px;
  background: linear-gradient(180deg, var(--volt-hot), var(--volt) 55%, var(--volt-dim));
  color: #101408;
  border-radius: 11px;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--glow-volt), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 0 32px rgba(232, 255, 61, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-bright);
}
.btn.ghost:hover {
  box-shadow: inset 0 0 0 1px var(--volt-dim);
  color: var(--volt-hot);
  background: rgba(232, 255, 61, 0.06);
}
.btn.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn.magenta {
  background: linear-gradient(180deg, var(--magenta-hot), var(--magenta) 55%, #d01870);
  color: white;
  box-shadow: 0 0 24px rgba(255, 61, 138, 0.28);
}
.btn.gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 60%, #c9a020);
  color: #1a1405;
  box-shadow: 0 0 24px rgba(240, 201, 58, 0.28);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.app-body {
  display: grid;
  grid-template-columns: 96px 1fr;
  flex: 1;
  min-height: 0;
}
.app-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(14, 16, 24, 0.98), rgba(8, 10, 14, 0.92)),
    radial-gradient(140px 200px at 50% 0%, rgba(232, 255, 61, 0.07), transparent 70%);
}
.rail-brand-mark {
  width: 28px;
  height: 3px;
  border-radius: 99px;
  margin: 0 auto 8px;
  background: linear-gradient(90deg, var(--volt), transparent);
  opacity: 0.7;
}
.rail-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 6px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.rail-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}
.rail-btn.active {
  color: #101408;
  background: linear-gradient(160deg, var(--volt-hot), var(--volt) 55%, var(--volt-dim));
  box-shadow: var(--glow-volt);
  font-weight: 700;
}
.rail-ico {
  font-size: 15px;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}
.rail-btn.active .rail-ico { background: rgba(16, 20, 8, 0.18); }
.rail-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(720px 300px at 12% -8%, rgba(88, 101, 242, 0.08), transparent 55%),
    radial-gradient(520px 260px at 100% 0%, rgba(232, 255, 61, 0.05), transparent 50%);
}
.app-subnav {
  padding: 18px 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(9, 11, 16, 0.45);
}
.subnav-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.subnav-section {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.subnav-blurb {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.subnav-active {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(232, 255, 61, 0.1);
  border: 1px solid rgba(232, 255, 61, 0.22);
  color: var(--volt-hot);
  font-size: 12px;
  font-weight: 600;
}
.subnav-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
}
.chip-group { display: flex; flex-direction: column; gap: 8px; }
.chip-group-label {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(139, 149, 168, 0.8);
  font-weight: 650;
}
.chip-group-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rail-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rail-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}
.rail-chip.active {
  color: #101408;
  border-color: transparent;
  background: linear-gradient(180deg, var(--volt-hot), var(--volt));
  box-shadow: 0 8px 22px rgba(232, 255, 61, 0.18);
  font-weight: 700;
}

.app-canvas {
  flex: 1;
  padding: 22px 28px 72px;
}
.main, .app-panel {
  max-width: var(--stage-max);
  margin: 0 auto;
  padding: 0;
  animation: fade-up 0.35s ease both;
}
.app-panel > h2,
.main > h2 {
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 6px;
}
.main > p { color: var(--muted); }

.page-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 20px 22px;
  margin-bottom: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(135deg, rgba(232, 255, 61, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(28, 32, 44, 0.95), rgba(14, 16, 24, 0.9));
  box-shadow: var(--shadow);
}
.page-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--volt);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 650;
}
.page-lead { margin: 6px 0 0; color: var(--muted); max-width: 44ch; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-pill {
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.stat-pill span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-pill strong { font-size: 13px; color: #fff; font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}
.card {
  background:
    linear-gradient(155deg, rgba(232, 255, 61, 0.045), transparent 40%),
    linear-gradient(180deg, var(--card-top), var(--card));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--volt), transparent 55%, var(--discord));
  opacity: 0.8;
}
.card:hover {
  border-color: rgba(232, 255, 61, 0.22);
  box-shadow: var(--shadow), 0 0 28px rgba(232, 255, 61, 0.05);
}
.card.card-accent-volt {
  border-color: rgba(232, 255, 61, 0.28);
  background:
    linear-gradient(155deg, rgba(232, 255, 61, 0.1), transparent 42%),
    linear-gradient(180deg, var(--card-top), var(--card));
}
.card.card-accent-volt::before {
  background: linear-gradient(90deg, var(--volt), var(--magenta));
  opacity: 1;
}
.role-select-wrap {
  display: grid;
  gap: 10px;
}
.role-select {
  font-weight: 600;
}
.role-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(232, 255, 61, 0.06);
  border: 1px solid rgba(232, 255, 61, 0.18);
  color: var(--ink);
  font-size: 14px;
}
.role-preview.muted {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--muted);
}
.role-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}
.card h3 {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 12px;
  font-weight: 700;
}
.card p, label { color: var(--muted); font-size: 14px; }
label { display: block; margin-top: 2px; font-weight: 500; }

input, select, textarea {
  width: 100%;
  margin: 6px 0 14px;
  padding: 11px 13px;
  background: #090b10;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
select { background-color: #000; color: #f3f5f8; color-scheme: dark; }
select option, select optgroup { background-color: #000; color: #f3f5f8; }
#scrim-mode, #scrim-mode option, #scrim-mode optgroup {
  background-color: #000 !important;
  color: #fff !important;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--volt-dim);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(232, 255, 61, 0.1);
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 11px 8px;
  border-bottom: 1px solid rgba(42, 49, 66, 0.85);
  font-size: 14px;
}
.table th {
  color: var(--volt);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rank-1 { color: var(--gold); text-shadow: 0 0 12px rgba(240, 201, 58, 0.3); }
.pill {
  display: inline-block;
  padding: 3px 10px;
  background: linear-gradient(180deg, rgba(232, 255, 61, 0.16), rgba(90, 110, 18, 0.3));
  color: var(--volt-hot);
  border: 1px solid rgba(232, 255, 61, 0.3);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.server-tile {
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  width: 100%;
  color: inherit;
}
.server-tile:hover { transform: translateY(-2px); }
.server-tile img, .ph {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(145deg, #2a3040, #151820);
}
.flash {
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(240, 201, 58, 0.14), rgba(35, 24, 10, 0.88));
  border: 1px solid var(--gold);
  border-radius: 12px;
  color: var(--gold-soft);
  margin-bottom: 16px;
}
.error {
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(255, 90, 54, 0.14), rgba(42, 16, 12, 0.88));
  border: 1px solid var(--danger);
  border-radius: 12px;
  color: var(--danger-soft);
  margin-bottom: 16px;
}
.points-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.stack-after { margin-top: 18px; }
.hint-line {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}
.scope-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(232, 255, 61, 0.28);
  background: linear-gradient(90deg, rgba(232, 255, 61, 0.1), rgba(18, 22, 32, 0.9));
  color: var(--ink);
  font-size: 14px;
}
.table-card { overflow-x: auto; }
.page-lead .pill { margin-right: 4px; }

@media (max-width: 860px) {
  .app-body { grid-template-columns: 1fr; }
  .app-rail {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px;
  }
  .rail-brand-mark { display: none; }
  .rail-btn { min-width: 72px; }
  .app-title-block { display: none; }
  .server-pill { max-width: 150px; }
  .app-canvas, .app-subnav { padding-left: 16px; padding-right: 16px; }
  .points-grid { grid-template-columns: repeat(2, 1fr); }
  .login-bg-dark { clip-path: none; opacity: 0.92; }
  .login-bg-glow { clip-path: none; opacity: 0.45; }
  .subnav-meta { flex-direction: column; }
}

.scrim-host-panel {
  background:
    linear-gradient(160deg, rgba(88, 101, 242, 0.1), transparent 35%),
    linear-gradient(180deg, #1a1e28, #12151c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.scrim-host-topbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
}
.scrim-host-topbar > div {
  background: linear-gradient(180deg, #1e222c, #16181f);
  padding: 10px 14px;
  font-size: 13px;
}
.scrim-host-topbar label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.scrim-host-status {
  background: linear-gradient(90deg, rgba(232, 255, 61, 0.1), rgba(28, 32, 40, 0.95));
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--volt-hot);
}
.scrim-host-body {
  padding: 28px 20px 24px;
  text-align: center;
}
.scrim-host-alert {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(61, 232, 255, 0.25), rgba(30, 58, 95, 0.9));
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-size: 32px;
  margin: 0 auto 16px;
  box-shadow: 0 0 28px rgba(61, 232, 255, 0.25);
}
.scrim-host-details {
  text-align: left;
  background: linear-gradient(180deg, #1e222c, #14161c);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px auto;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.8;
}
.scrim-host-details strong {
  color: var(--muted);
  font-weight: 500;
  min-width: 110px;
  display: inline-block;
}
.scrim-host-progress {
  max-width: 420px;
  margin: 24px auto 0;
}
.scrim-host-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--muted);
}
.scrim-host-progress-bar {
  height: 8px;
  background: #1a1e28;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.scrim-host-progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--volt-dim), var(--volt), var(--cyan));
  box-shadow: 0 0 12px rgba(232, 255, 61, 0.45);
  transition: width 0.3s;
}
.scrim-host-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
  margin: 20px auto 0;
}
.scrim-host-actions .btn {
  padding: 14px;
  font-size: 15px;
}
.btn.dispatch {
  background: linear-gradient(180deg, #5cf0ff, #2ec4d9 55%, #1a8fa3);
  color: #041218;
  box-shadow: 0 0 24px rgba(61, 232, 255, 0.35);
}
.btn.cancel-scrim {
  background: linear-gradient(180deg, #ff7a5c, var(--danger) 55%, #c43018);
  color: white;
  box-shadow: 0 0 24px rgba(255, 90, 54, 0.3);
}

/* Levels — premium ladder UI */
.levels-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(240, 201, 58, 0.14), transparent 42%),
    linear-gradient(180deg, var(--card-top), var(--card));
  border-color: rgba(240, 201, 58, 0.28);
}
.levels-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.levels-hero-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.levels-hero p { margin: 0; color: var(--muted); line-height: 1.5; }
.levels-curve {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.levels-curve-pill {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(240, 201, 58, 0.2);
}
.levels-curve-pill span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.levels-curve-pill strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 1rem;
}
.levels-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.levels-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.levels-board li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.levels-rank {
  grid-row: 1 / span 2;
  font-weight: 800;
  color: var(--gold);
}
.levels-name { color: #fff; font-weight: 600; }
.levels-meta { color: var(--muted); font-size: 12px; text-align: right; }
.levels-bar {
  grid-column: 2 / span 2;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.levels-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--volt));
  border-radius: inherit;
}
.levels-role-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.5fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(240, 201, 58, 0.04);
  border: 1px solid rgba(240, 201, 58, 0.12);
}
.levels-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.levels-rewards-card { margin-top: 16px; }

@media (max-width: 860px) {
  .levels-hero { grid-template-columns: 1fr; }
  .levels-fields { grid-template-columns: 1fr; }
  .levels-role-row { grid-template-columns: 1fr; }
  .levels-board li { grid-template-columns: 36px 1fr; }
  .levels-meta { grid-column: 2; text-align: left; }
}

/* Anti-stretch + layout safety */
.card h3, h1, h2, h3 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; }
body { text-rendering: optimizeLegibility; }
