/* Generated from styles.css with the Ember palette (pink -> ember, cyan -> gold). Edit styles.css + rebuild, or edit ember.css. */
/* ========== NEXUS — Cfx.re × GTA6 Neon ========== */
:root {
  --bg: #07070c;
  --bg-elevated: #0e0e16;
  --bg-card: #12121c;
  --bg-card-hover: #171724;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);

  --text: #f0f0f5;
  --text-muted: #9898a8;
  --text-dim: #5c5c6e;

  /* GTA6 neon palette */
  --pink: #ff6a3d;
  --pink-soft: #ff8a5c;
  --cyan: #ffc94d;
  --cyan-dim: #e0a92e;
  --orange: #ffc94d;
  --purple: #c9c9d4;
  --magenta: #e5501f;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;

  --glow-pink: 0 0 40px rgba(255, 106, 61, 0.25);
  --glow-cyan: 0 0 40px rgba(255, 201, 77, 0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
/* content above ambient */
.header, .section, .footer, .flash, .mobile-nav, .dm-widget, .toast-wrap {
  position: relative;
  z-index: 1;
}
.header { z-index: 100; }
.mobile-nav { z-index: 99; }
.dm-widget { z-index: 250; }
.toast-wrap { z-index: 300; }

/* Ambient — original look, slightly tighter */
.bg-grid {
  display: none;
}
.city-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  width: 600px; height: 600px;
  background: var(--pink);
  top: -200px; left: -100px;
  opacity: 0.15;
}
.bg-glow-2 {
  width: 500px; height: 500px;
  background: var(--cyan);
  top: 40%; right: -150px;
  opacity: 0.1;
}
.bg-glow-3 {
  width: 400px; height: 400px;
  background: var(--purple);
  bottom: 10%; left: 20%;
  opacity: 0.08;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 12, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #000;
}
.logo-mark-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.logo-lockup {
  position: relative;
  display: inline-block;
  padding-right: 28px;
  padding-bottom: 4px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
}
.logo-beta {
  position: absolute;
  right: 0;
  bottom: -6px;
  font-family: "Great Vibes", cursive;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #ff7ad9;
  text-shadow: 0 0 10px rgba(255, 106, 61,.45);
  pointer-events: none;
  transform: rotate(-8deg);
}

.nav {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-link.active {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.header-actions .btn-sm {
  padding: 6px 10px;
  font-size: 13px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 106, 61, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(255, 106, 61, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-vote {
  background: linear-gradient(135deg, var(--cyan), #00a8cc);
  color: #000;
  font-weight: 700;
}
.btn-vote:hover {
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

/* ========== Hero ========== */
.hero {
  padding: 36px 0 28px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.hero-aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 420px;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 106, 61,.28), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(255, 201, 77,.22), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(201, 201, 212,.16), transparent 45%);
  filter: blur(8px);
  animation: hero-aurora 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hero-aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); opacity: .7; }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); opacity: 1; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { text-align: left; }
.hero-stage {
  position: relative;
  height: 280px;
}
.hero-orbit {
  position: absolute;
  left: 50%; top: 50%;
  width: 210px; height: 210px;
  margin: -105px 0 0 -105px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 50%;
  animation: hero-spin 22s linear infinite;
}
.hero-orbit-2 {
  width: 280px; height: 280px;
  margin: -140px 0 0 -140px;
  animation-duration: 34s;
  animation-direction: reverse;
  opacity: .6;
}
.hero-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 132px; height: 132px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: linear-gradient(160deg, #1a1224, #0c1218);
  border: 1px solid rgba(255, 201, 77,.28);
  box-shadow: 0 0 40px rgba(255, 106, 61,.2);
}
.hero-core strong {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
}
.hero-core span { font-size: 11px; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; }
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 160px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16,16,24,.86);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: hero-float 4.4s ease-in-out infinite;
}
.hero-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #555; flex-shrink: 0; }
.hero-chip-dot.is-on { background: #34d399; box-shadow: 0 0 8px #34d399; }
.hero-chip-1 { left: 6%; top: 18%; animation-delay: 0s; }
.hero-chip-2 { right: 4%; top: 28%; animation-delay: .6s; }
.hero-chip-3 { left: 0; bottom: 28%; animation-delay: 1.1s; }
.hero-chip-4 { right: 8%; bottom: 16%; animation-delay: 1.7s; }
.hero-chip-5 { left: 28%; top: 6%; animation-delay: .3s; }
@keyframes hero-spin { to { transform: rotate(360deg); } }
@keyframes hero-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero .hero-stats,
.hero .hero-stats-wrap { grid-column: 1 / -1; width: 100%; }
.hero .game-toggle {
  grid-column: 1 / -1;
  width: auto;
  justify-self: center;
}
.hero .hero-cta { margin: 0 0 0; justify-content: flex-start; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 220px; }
  .hero-copy { text-align: center; }
  .hero .hero-cta { justify-content: center; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 106, 61, 0.1);
  border: 1px solid rgba(255, 106, 61, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pink-soft);
  margin-bottom: 24px;
}

.pulse {
  width: 8px; height: 8px;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255, 106, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--pink) 0%, var(--cyan) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 440px;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 8px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}

.hero-stats .stat {
  text-align: center;
  padding: 14px 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  border: 1px solid var(--border);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========== Sections ========== */
.section {
  padding: 64px 0;
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(18, 18, 28, 0.6), transparent);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 14px;
}

.view-toggle {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.view-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.view-btn.active {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

/* ========== Filters ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  align-items: center;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-dim);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: rgba(255, 201, 77, 0.4);
}
.search-input::placeholder { color: var(--text-dim); }

.filter-select {
  padding: 10px 32px 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c5c6e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  outline: none;
}
.filter-select:focus { border-color: rgba(255, 201, 77, 0.4); }
.filter-select option { background: #12121c; }

/* ========== Server List ========== */
.server-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 168px 56px 72px auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
}
.server-votes-col {
  text-align: right;
  min-width: 56px;
}
.server-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  flex-shrink: 0;
}
.server-row {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.server-row:hover {
  background: var(--bg-card-hover);
  border-color: color-mix(in srgb, var(--pink) 55%, var(--border));
  box-shadow:
    inset 3px 0 0 var(--pink),
    0 12px 30px rgba(0,0,0,.38),
    0 0 24px color-mix(in srgb, var(--pink) 20%, transparent);
}
.server-row:hover::before {
  opacity: .58;
  filter: saturate(1.25) brightness(1.1);
}
.server-row::after {
  transition: background .25s ease;
}
.server-row:hover::after {
  background:
    linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--cyan) 14%, transparent) 48%, transparent 62%),
    linear-gradient(90deg, rgba(18,18,28,.96) 0%, rgba(18,18,28,.88) 38%, rgba(18,18,28,.55) 70%, rgba(18,18,28,.28) 100%);
}
.server-row:hover .server-list-icon {
  transform: translateY(-1px) scale(1.06);
}
.server-list-icon { transition: transform .25s ease; }
.server-row:hover .btn {
  border-color: color-mix(in srgb, var(--cyan) 55%, var(--border));
}

.server-rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dim);
  text-align: center;
}
.server-rank.top1,
.server-rank.top2,
.server-rank.top3 {
  color: inherit;
  text-shadow: none;
}
.server-rank .rank-num {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .02em;
}
.server-rank.top1 .rank-num,
.server-rank.top2 .rank-num,
.server-rank.top3 .rank-num {
  font-size: 20px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.12));
}
.server-rank.top1 .rank-num {
  background-image: linear-gradient(115deg, #fff6c2 0%, #ffe36a 18%, #ffb800 36%, #fff 48%, #ffd24a 62%, #f5a700 100%);
  background-size: 220% 100%;
  animation: rank-sheen 2.8s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255,196,40,.65)) drop-shadow(0 0 18px rgba(255, 106, 61,.25));
}
.server-rank.top2 .rank-num {
  background-image: linear-gradient(115deg, #fff 0%, #d9e4f2 22%, #8ea0b8 40%, #fff 52%, #cfd8e6 70%, #9aa8ba 100%);
  background-size: 220% 100%;
  animation: rank-sheen 3.2s linear infinite;
  filter: drop-shadow(0 0 10px rgba(180,210,255,.4));
}
.server-rank.top3 .rank-num {
  background-image: linear-gradient(115deg, #ffd7b0 0%, #ff9a4a 22%, #c45a12 40%, #ffe1c2 52%, #e07a28 72%, #9a3d0c 100%);
  background-size: 220% 100%;
  animation: rank-sheen 3.6s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255,122,40,.45));
}
@keyframes rank-sheen {
  0% { background-position: 0 50%; }
  100% { background-position: 220% 50%; }
}

.server-info { min-width: 0; }
.server-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.server-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}
.tag.rp { background: rgba(201, 201, 212, 0.15); color: #d6d6de; }
.tag.wl { background: rgba(34, 197, 94, 0.12); color: #9be7b4; }
.tag.public { background: rgba(255, 201, 77, 0.1); color: var(--cyan); }

.region-flag-slot {
  width: 28px;
  height: 20px;
  flex-shrink: 0;
}
.region-flag-img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}
.server-players {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  align-items: center;
  width: 168px;
  min-width: 168px;
  justify-self: start;
  text-align: left;
}
.players-nums { min-width: 0; }
.players-count {
  font-weight: 600;
  font-size: 15px;
}
.players-count span { color: var(--text-dim); font-weight: 400; }
.players-avg {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.server-uptime {
  min-width: 70px;
  text-align: center;
}
.uptime-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.uptime-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--success), var(--cyan));
}
.uptime-text {
  font-size: 11px;
  color: var(--text-dim);
}

.server-actions {
  display: flex;
  gap: 8px;
}
.btn-join {
  padding: 8px 16px;
  background: rgba(255, 201, 77, 0.12);
  border: 1px solid rgba(255, 201, 77, 0.3);
  color: var(--cyan);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.btn-join:hover {
  background: rgba(255, 201, 77, 0.2);
  box-shadow: 0 0 16px rgba(255, 201, 77, 0.25);
}

.list-footer {
  text-align: center;
  margin-top: 28px;
}

/* Cards view */
.server-list.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.server-list.cards .server-row {
  grid-template-columns: 1fr;
  gap: 12px;
}
.server-list.cards .server-rank { text-align: left; }
.server-list.cards .server-players { text-align: left; }
.server-list.cards .server-actions { justify-content: stretch; }
.server-list.cards .btn-join { flex: 1; text-align: center; }

/* ========== Jobs ========== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.job-card {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.job-card:hover {
  border-color: rgba(255, 106, 61, 0.25);
  background: var(--bg-card-hover);
}

.job-role {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.job-server {
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 10px;
}
.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.job-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* ========== Reviews ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.review-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.review-server {
  font-weight: 600;
  font-size: 14px;
}
.review-stars {
  color: #ffd700;
  font-size: 13px;
  letter-spacing: 1px;
}
.review-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.review-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

/* ========== Vote + Spotlight ========== */
.vote-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.vote-card {
  margin-top: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vote-server-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.vote-desc {
  color: var(--text-muted);
  font-size: 14px;
}
.vote-stats-row {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-dim);
}
.vote-stats-row strong { color: var(--text); }

.spotlight {
  padding: 24px;
  background: linear-gradient(145deg, rgba(255, 106, 61, 0.12), rgba(255, 201, 77, 0.08));
  border: 1px solid rgba(255, 106, 61, 0.25);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.spotlight::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255, 106, 61,0.08) 0%, transparent 50%);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spotlight-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink-soft);
  margin-bottom: 16px;
  position: relative;
}
.spotlight-card {
  position: relative;
}
.spotlight-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.spotlight-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.spotlight-players {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Status ========== */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.status-icon {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-icon.online {
  background: var(--success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}
.status-icon.degraded {
  background: var(--warning);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.status-title { font-weight: 600; font-size: 14px; }
.status-desc { font-size: 12px; color: var(--text-dim); }

.uptime-chart {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.chart-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.chart-peak { color: var(--cyan); }
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--pink), var(--cyan));
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  min-height: 4px;
  transition: opacity 0.2s;
}
.chart-bar:hover { opacity: 1; }

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 48px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-brand p {
  margin-top: 0;
  font-size: 13px;
  color: var(--text-dim);
  max-width: 260px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-links h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-links a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  font-size: 12px;
  color: var(--text-dim);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .nav { display: none; }
  .vote-layout { grid-template-columns: 1fr; }
  .server-row {
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }
  .server-players,
  .server-votes-col,
  .server-uptime,
  .server-actions {
    grid-column: 2;
  }
  .server-actions { margin-top: 4px; }
}

@media (max-width: 640px) {
  .header-actions .btn-ghost { display: none; }
  .hero-stats { gap: 28px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-select { width: 100%; }
}

/* ========== Mobile Nav ========== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: rgba(7, 7, 12, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  padding: 12px 14px;
  font-size: 15px;
}
.mobile-nav .btn { width: 100%; margin-top: 4px; }

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-toggle span { transition: all 0.2s; }

/* ========== Empty state ========== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.empty-state p { margin-bottom: 16px; }

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.modal-overlay[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), var(--glow-pink);
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}
.modal-close:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-right: 32px;
}
.modal-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-field {
  margin-bottom: 14px;
}
.modal-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.modal-field input,
.modal-field select,
.modal-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
  border-color: rgba(255, 201, 77, 0.45);
}
.modal-field textarea { min-height: 90px; resize: vertical; }
.modal-field select { appearance: none; cursor: pointer; }

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.modal-actions .btn { flex: 1; min-width: 120px; }

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.modal-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.modal-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.modal-stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
}
.modal-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.join-code-box {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.join-code-box input {
  flex: 1;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

/* ========== Toast ========== */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  pointer-events: auto;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.success { border-color: rgba(34, 197, 94, 0.4); }
.toast.success::before { content: '✓'; color: var(--success); font-weight: 700; }
.toast.info { border-color: rgba(255, 201, 77, 0.35); }
.toast.info::before { content: 'i'; color: var(--cyan); font-weight: 700; }
.toast.error { border-color: rgba(239, 68, 68, 0.4); }
.toast.error::before { content: '!'; color: var(--danger); font-weight: 700; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .mobile-toggle { display: flex; }
  .nav { display: none; }
}

/* ========== Flash messages ========== */
.flash {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.flash-success { background: rgba(34, 197, 94, 0.12); color: #9be7b4; }
.flash-error { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }
.flash-info { background: rgba(255, 201, 77, 0.08); color: var(--cyan); }

/* ========== Forms ========== */
.card-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card-heading {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}
@media (max-width: 800px) {
  .profile-grid { grid-template-columns: 1fr; }
}
.simple-list {
  list-style: none;
  padding: 0;
}
.simple-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.simple-list a { color: var(--cyan); text-decoration: none; }
.simple-list span { color: var(--text-dim); font-size: 12px; white-space: nowrap; }

.server-row { text-decoration: none; color: inherit; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; }
.page-info { font-size: 13px; color: var(--text-dim); }

a.btn { text-decoration: none; }

/* ========== DM floating widget ========== */
.dm-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 250;
  font-family: var(--font);
}
.dm-widget.minimized .dm-panel { display: none; }

.dm-launcher {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(160deg, #1a1a28, #12121c);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
  transition: transform 0.15s, border-color 0.15s;
}
.dm-launcher:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 201, 77, 0.35);
}
.dm-launcher.has-unread {
  border-color: rgba(255, 106, 61, 0.45);
  box-shadow: 0 10px 28px rgba(255, 106, 61, 0.18);
}

.dm-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--cyan);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 420px;
  max-width: calc(100vw - 24px);
  height: min(680px, calc(100vh - 110px));
  max-height: calc(100vh - 110px);
  background: rgba(14, 14, 22, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dm-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(255, 106, 61,0.08), rgba(255, 201, 77,0.05));
}
.dm-panel-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
}
.dm-panel-actions { display: flex; gap: 4px; }

.dm-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dm-icon-btn:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text);
}

.dm-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dm-view[hidden] { display: none !important; }

.dm-search-wrap {
  position: relative;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.dm-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dm-search {
  flex: 1;
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}
.dm-search:focus { border-color: rgba(255, 201, 77, 0.4); }

.dm-search-results {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% - 4px);
  background: #161622;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 5;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.dm-search-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 13px;
}
.dm-search-item:last-child { border-bottom: none; }
.dm-search-item:hover { background: rgba(255, 201, 77,0.08); }
.dm-search-item span { color: var(--text-dim); font-size: 11px; }
.dm-search-item.muted { color: var(--text-dim); cursor: default; }

.dm-thread-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.dm-thread {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  color: inherit;
  cursor: pointer;
  font-family: var(--font);
}
.dm-thread:hover { background: rgba(255,255,255,0.04); }
.dm-thread-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.dm-thread-unread {
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.dm-thread-preview {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-thread-time {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.dm-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

.dm-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
}
.dm-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dm-msg { max-width: 82%; align-self: flex-start; }
.dm-msg.mine { align-self: flex-end; }
.dm-msg-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 8px 11px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.dm-msg.mine .dm-msg-bubble {
  background: linear-gradient(135deg, rgba(255, 106, 61,0.28), rgba(255, 201, 77,0.18));
  border-color: rgba(255, 201, 77,0.2);
  border-radius: 12px 12px 4px 12px;
}
.dm-msg-meta {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 3px;
}
.dm-msg.mine .dm-msg-meta { text-align: right; }

.dm-compose {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
}
.dm-compose input {
  flex: 1;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}
.dm-compose input:focus { border-color: rgba(255, 201, 77,0.4); }
.dm-send {
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  height: 38px;
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
}
.dm-send:hover { filter: brightness(1.08); }

@media (max-width: 480px) {
  .dm-panel { width: calc(100vw - 16px); right: -4px; height: 70vh; }
}

/* Header notification badge */
.header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}


/* iOS-style Online only toggle */
.ios-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  position: relative;
  padding: 4px 0;
}
.ios-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
}
.ios-toggle-track {
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: #39393d;
  border: none;
  transition: background 0.25s ease;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.ios-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.28s cubic-bezier(0.25, 1.2, 0.5, 1);
}
.ios-toggle input:checked + .ios-toggle-track,
.ios-toggle.is-on .ios-toggle-track {
  background: #30d158;
  box-shadow: none;
}
.ios-toggle input:checked + .ios-toggle-track .ios-toggle-knob,
.ios-toggle.is-on .ios-toggle-knob {
  transform: translateX(20px);
}
.ios-toggle input:focus-visible + .ios-toggle-track {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.ios-toggle:hover .ios-toggle-label {
  color: var(--text);
}
.ios-toggle-label {
  transition: color 0.15s ease;
  font-weight: 500;
}

/* Header List Server — never looks like active primary tab */
.header-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.15s, background 0.15s;
}
.header-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.header-link.is-active {
  color: var(--cyan);
  background: rgba(255, 201, 77, 0.08);
  border-color: rgba(255, 201, 77, 0.2);
}


/* Trending votes strip */
.trending-heading {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trending-flame-icon { filter: drop-shadow(0 0 8px rgba(255, 120, 40, 0.7)); }
.trending-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.trending-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background:
    radial-gradient(120% 80% at 0% 120%, rgba(255, 80, 40, 0.12), transparent 55%),
    var(--bg-card);
  border: 1px solid rgba(255, 90, 50, 0.18);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.trending-card::after {
  content: "";
  position: absolute;
  left: -8px;
  bottom: -18px;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 40% 60%, rgba(255, 110, 40, 0.35), rgba(255, 60, 20, 0.08) 55%, transparent 70%);
  pointer-events: none;
}
.trending-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 120, 50, 0.45);
  box-shadow: 0 10px 28px rgba(255, 80, 30, 0.12);
}
.trending-card.heat-1 {
  border-color: rgba(255, 90, 30, 0.5);
  box-shadow: 0 0 24px rgba(255, 70, 20, 0.18);
  background:
    radial-gradient(120% 90% at 10% 120%, rgba(255, 70, 20, 0.28), transparent 55%),
    var(--bg-card);
}
.trending-card.heat-2 {
  border-color: rgba(255, 140, 40, 0.35);
}
.trending-rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  color: #ffb070;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.trending-card.heat-1 .trending-rank { color: #ff7a3a; }
.trending-rank .flame {
  color: #ff6a2a;
  filter: drop-shadow(0 0 6px rgba(255, 90, 20, 0.8));
  animation: flame-pulse 1.4s ease-in-out infinite;
}
@keyframes flame-pulse {
  0%, 100% { transform: scale(1) translateY(0); opacity: 1; }
  50% { transform: scale(1.15) translateY(-1px); opacity: 0.85; }
}
.trending-name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}
.trending-meta {
  font-size: 12px;
  color: var(--text-dim);
  position: relative;
}


/* Server page CFX media */
.server-hero {
  position: relative;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 22px;
  background: #0b0b14;
  border: 1px solid var(--border);
}
.server-hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.server-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,12,0.85), transparent 55%);
  pointer-events: none;
}
.server-hero-icon {
  position: absolute;
  left: 18px;
  bottom: 16px;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.18);
  background: #0a0a12;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.server-inline-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .server-hero { height: 160px; }
  .server-hero-icon { width: 56px; height: 56px; }
}


.verified-badge {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #04140a;
  background: linear-gradient(110deg, #9be7b4, #ffc94d, #9be7b4);
  background-size: 200% 100%;
  animation: verified-wash 3.2s linear infinite;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.3;
  box-shadow: 0 0 12px rgba(255, 201, 77,.28);
}
.verified-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #04140a;
  box-shadow: inset 0 0 0 1.5px #04140a, 0 0 0 1.5px rgba(4,20,10,.15);
  flex-shrink: 0;
  position: relative;
}
.verified-badge i::after {
  content: "";
  position: absolute;
  left: 2px; top: 1px;
  width: 3px; height: 5px;
  border: solid #9be7b4;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.verified-badge b {
  display: inline-block;
  animation: verified-slide 2.4s ease-in-out infinite;
}
.verified-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%);
  animation: verified-gleam 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes verified-wash {
  0% { background-position: 0 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes verified-slide {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}
@keyframes verified-gleam {
  0% { transform: translateX(-120%); }
  55%,100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .verified-badge, .verified-badge b, .verified-badge::after { animation: none; }
}
.server-name .verified-badge { transform: translateY(-1px); }



.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.job-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.job-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
}
.job-post-card {
  margin-bottom: 20px;
  min-height: 0;
}
.job-post-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.job-post-form .job-post-desc,
.job-post-form .job-post-actions {
  grid-column: 1 / -1;
}
.job-post-form .modal-field { margin-bottom: 0; }
.job-post-form input,
.job-post-form select,
.job-post-form textarea {
  width: 100%;
  min-height: 42px;
}
.job-post-form textarea { min-height: 88px; resize: vertical; }
@media (max-width: 900px) {
  .jobs-grid { grid-template-columns: 1fr; }
  .job-post-form { grid-template-columns: 1fr; }
}
.partner-rules {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  line-height: 1.7;
}
.partner-rules li { margin-bottom: 6px; }
.partner-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8be0d4;
  border: 1px solid rgba(255, 201, 77, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
}
.partner-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.partner-strip-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 201, 77, 0.12);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
}
.partner-strip-card img {
  max-height: 28px;
  max-width: 100%;
  object-fit: contain;
}
.partner-strip-name { font-weight: 650; font-size: 13px; }
.partner-launch-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.partner-launch-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 201, 77, 0.16);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
}
.partner-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.partner-dir-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}
.partner-dir-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

/* ========== 2026 toplist polish ========== */
.container { max-width: 1240px; }
.hero-cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:-12px 0 36px; }
.hdr-menu { position:relative; }
.hdr-menu > summary { list-style:none; }
.hdr-menu > summary::-webkit-details-marker { display:none; }
.hdr-menu-btn {
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:36px;
  padding:0 12px 0 6px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(255,255,255,.03);
  color:#e8e8ef;
  cursor:pointer;
  font:600 13px/1 Inter,system-ui,sans-serif;
}
.hdr-menu[open] .hdr-menu-btn {
  border-color:rgba(255, 201, 77,.4);
  background:rgba(255, 201, 77,.08);
  color:#ffc94d;
}
.hdr-avatar {
  width:24px; height:24px; border-radius:8px;
  display:grid; place-items:center;
  background:linear-gradient(135deg,var(--pink),var(--cyan));
  color:#07070c; font-size:12px; font-weight:800;
}
.hdr-drop {
  position:absolute; top:calc(100% + 8px); right:0;
  min-width:220px;
  padding:8px;
  background:#0c0c14;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  box-shadow:0 18px 50px rgba(0,0,0,.55);
  z-index:200;
  display:flex; flex-direction:column; gap:2px;
}
.hdr-drop-link {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px; border-radius:8px;
  color:#9aa0b4; text-decoration:none; font-size:14px; font-weight:500;
}
.hdr-drop-link:hover { background:rgba(255,255,255,.05); color:#fff; }
.hdr-drop-link.is-active { color:#ffc94d; background:rgba(255, 201, 77,.08); }
.hdr-drop-danger { color:#ff8a9a; }

.server-list-head {
  display:grid;
  grid-template-columns: 48px minmax(0, 1fr) 168px 56px 72px auto;
  gap:14px;
  padding:0 18px 8px;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-dim);
}
.server-row {
  grid-template-columns: 48px minmax(0, 1fr) 168px 56px 72px auto;
}
.server-title-row { display:flex; align-items:center; gap:12px; min-width:0; }
.server-title-copy { min-width:0; flex:1; }
.server-list-icon {
  width:36px; height:36px; border-radius:10px; object-fit:cover;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  flex-shrink:0;
}
.server-list-icon.fallback {
  display:grid; place-items:center;
  font-size:14px; font-weight:800; color:var(--cyan);
}
.occ-bar {
  height:3px; background:rgba(255,255,255,.08); border-radius:99px; margin:4px 0 2px; overflow:hidden;
}
.occ-bar span {
  display:block; height:100%;
  background:linear-gradient(90deg,var(--cyan),var(--pink));
}
.btn-join-ghost {
  background:transparent;
  border-color:var(--border-strong);
  color:var(--text-muted);
}
.server-stat-row { grid-template-columns:repeat(5,minmax(0,1fr)); max-width:100%; margin-bottom:24px; }
.stat-soft { color:var(--text-dim); font-size:.7em; font-weight:500; }
.pop-bars { height:88px; }
.chart-bar.is-off { opacity:.28; }
.similar-row { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.similar-card {
  display:flex; flex-direction:column; gap:4px;
  padding:14px 16px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  text-decoration:none; color:inherit;
}
.similar-card:hover { border-color:rgba(255, 201, 77,.3); }
.similar-card span { font-size:12px; color:var(--text-dim); }
.footer-bottom-inner { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.footer-note { color:var(--text-dim); }

@media (max-width: 900px) {
  .server-list-head { display:none; }
  .nav { display:none; }
  .mobile-toggle { display:flex; }
  .hdr-menu-label { display:none; }
  .server-stat-row { grid-template-columns:1fr 1fr; }
}
@media (min-width: 901px) {
  .mobile-toggle { display:none; }
  .mobile-nav { display:none !important; }
}

.partner-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 20px;
}
.partner-toggles .ios-toggle {
  display: flex;
  white-space: normal;
}

.partner-strip-section { padding-top: 8px; padding-bottom: 8px; }
.partner-strip-head { margin-bottom: 12px; align-items: center; }
.partner-strip-title { font-size: 16px; }
.partner-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.partner-strip-card {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(18,18,28,.95), rgba(12,12,20,.95));
  border: 1px solid rgba(255, 201, 77, 0.16);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  min-height: 56px;
}
.partner-strip-card:hover {
  border-color: rgba(255, 201, 77, 0.4);
  background: var(--bg-card-hover);
}
.partner-strip-card img {
  width: 32px;
  height: 32px;
  max-height: 32px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.partner-strip-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 201, 77,.12);
  color: var(--cyan);
  font-weight: 800;
  flex-shrink: 0;
}
.partner-strip-name {
  font-weight: 650;
  font-size: 13px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partner-strip-empty {
  border-style: dashed;
  opacity: .85;
}
.partner-launch-section { padding-top: 12px; padding-bottom: 24px; }

.leave-site-modal { max-width: 420px; }
.leave-site-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--cyan);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  word-break: break-all;
  margin: 0 0 8px;
}

/* sponsor name wrap fix */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.partner-strip-card {
  flex: 0 1 auto;
  min-width: 220px;
  max-width: 100%;
  align-items: flex-start;
}
.partner-strip-name {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  line-height: 1.3;
}
.partner-strip-card .partner-label {
  margin-left: auto;
  flex-shrink: 0;
}

.partner-strip-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.partner-strip-card .partner-label { margin-left: 0; }

/* sponsor strip — final spacing + adaptive width */
.partner-strip-section {
  padding-top: 4px;
  padding-bottom: 20px;
}
.partner-strip-head {
  margin-bottom: 14px;
}
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.partner-strip-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(100%, 420px);
  min-width: 0;
  padding: 12px 14px;
  box-sizing: border-box;
}
.partner-strip-card img,
.partner-strip-mark {
  width: 36px;
  height: 36px;
  max-height: 36px;
  flex: 0 0 36px;
}
.partner-strip-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.partner-strip-name {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.partner-strip-card .partner-label {
  margin: 0;
  flex-shrink: 0;
}
@media (max-width: 520px) {
  .partner-strip-card {
    width: 100%;
    max-width: 100%;
  }
}

/* aligned ranking columns */
.server-list-head,
.server-row {
  display: grid;
  grid-template-columns: 56px minmax(180px, 1fr) 56px 120px 72px 80px 136px;
  column-gap: 12px;
  align-items: center;
}
.server-list-head {
  padding: 0 18px 8px;
  margin: 0;
  width: 100%;
}
.server-row {
  padding: 14px 18px;
}
.server-list-head > span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.server-list-head .col-rank,
.server-rank { text-align: center; }
.server-list-head .col-server { text-align: left; }
.server-list-head .col-region,
.server-region { text-align: center; justify-self: center; }
.server-list-head .col-players,
.server-players { text-align: left; justify-self: stretch; }
.server-list-head .col-votes,
.server-votes-col { text-align: right; }
.server-list-head .col-uptime,
.server-uptime { text-align: center; }
.server-list-head .col-actions { text-align: right; }
.server-region {
  display: flex;
  align-items: center;
  justify-content: center;
}
.server-players {
  display: block;
  width: auto;
  min-width: 0;
  grid-template-columns: none;
}
.server-players .players-nums { width: 100%; }
.server-actions { justify-content: flex-end; }

@media (max-width: 900px) {
  .server-list-head { display: none; }
  .server-row {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 10px;
  }
  .server-region,
  .server-players,
  .server-votes-col,
  .server-uptime,
  .server-actions {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
}

.server-row {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.server-row-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  opacity: .42;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 28%, rgba(0,0,0,.35) 52%, rgba(0,0,0,.85) 100%);
  mask-image: linear-gradient(90deg, transparent 0 28%, rgba(0,0,0,.35) 52%, rgba(0,0,0,.85) 100%);
}
.server-row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(18,18,28,.96) 0%, rgba(18,18,28,.88) 38%, rgba(18,18,28,.55) 70%, rgba(18,18,28,.28) 100%);
}
.server-row > *:not(.server-row-bg) {
  position: relative;
  z-index: 1;
}

/* lock list columns — banner must not be a grid child */
.server-list-head,
.server-row {
  display: grid !important;
  grid-template-columns: 56px minmax(220px, 1.5fr) 48px 118px 64px 72px 132px !important;
  grid-template-rows: auto !important;
  grid-auto-flow: column !important;
  align-items: center;
  column-gap: 12px;
}
.server-row > .server-rank { grid-column: 1; grid-row: 1; }
.server-row > .server-info { grid-column: 2; grid-row: 1; min-width: 0; }
.server-row > .server-region { grid-column: 3; grid-row: 1; }
.server-row > .server-players { grid-column: 4; grid-row: 1; width: auto; min-width: 0; }
.server-row > .server-votes-col { grid-column: 5; grid-row: 1; }
.server-row > .server-uptime { grid-column: 6; grid-row: 1; }
.server-row > .server-actions { grid-column: 7; grid-row: 1; }
.server-row-bg { display: none !important; }

.server-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--row-banner);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  opacity: .38;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 26%, rgba(0,0,0,.4) 50%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0 26%, rgba(0,0,0,.4) 50%, #000 100%);
}
.players-count { white-space: nowrap; }

@media (max-width: 900px) {
  .server-list-head,
  .server-row {
    grid-auto-flow: row !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
  }
  .server-row > .server-rank { grid-column: 1; grid-row: 1; }
  .server-row > .server-info { grid-column: 2; grid-row: 1; }
  .server-row > .server-region,
  .server-row > .server-players,
  .server-row > .server-votes-col,
  .server-row > .server-uptime,
  .server-row > .server-actions {
    grid-column: 2;
    grid-row: auto;
  }
}

.game-toggle {
  display: inline-flex;
  margin: 0 auto 8px;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(12,12,20,.7);
}
.game-toggle-btn {
  min-width: 88px;
  padding: 8px 16px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.game-toggle-btn.is-on {
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  color: #fff;
}
.embed-box input { width: 100%; }

.claim-nudge {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 106, 61,.1);
  border: 1px solid rgba(255, 106, 61,.28);
  color: var(--text);
  font-size: 12px;
}
.claim-nudge a { color: var(--cyan); }

.server-list-head,
.server-row {
  grid-template-columns: 52px minmax(160px, 1fr) 44px 108px 52px 68px minmax(196px, auto) !important;
}
.server-row > .server-uptime {
  min-width: 68px;
  overflow: visible;
}
.server-row > .server-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.server-actions .btn-join {
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.legal-page { max-width: 820px; }
.legal-kicker {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 18px;
}
.legal-page h3 {
  margin: 16px 0 8px;
  font-size: 15px;
}
.legal-page p, .legal-page li {
  color: var(--text-muted);
  line-height: 1.65;
}
.legal-page ul { padding-left: 1.2rem; margin: 0 0 12px; }
.legal-page a { color: var(--cyan); }
.legal-foot { margin-top: 28px; font-size: 13px; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.fav-popular {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.fav-popular-label {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.fav-popular-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fav-popular-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}
.fav-popular-item:hover {
  border-color: rgba(255, 201, 77,.28);
}
.fav-popular-n {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
}
.fav-popular-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
  font-weight: 600;
}
.fav-popular-count {
  color: var(--text-dim);
  font-size: 11px;
}
.fav-popular-count::after { content: " ★"; font-size: 10px; }

.tf-verified {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0 6px 0 0;
  vertical-align: -3px;
  color: #7ee7ff;
  filter: drop-shadow(0 0 6px rgba(255, 201, 77,.45));
  cursor: help;
}
.tf-verified svg { display: block; }
.tf-verified-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 5px 8px;
  border-radius: 8px;
  background: #0b0b12;
  border: 1px solid rgba(255, 201, 77,.35);
  color: #f0f0f5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 5;
}
.tf-verified:hover .tf-verified-tip,
.tf-verified:focus .tf-verified-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.game-toggle-btn.is-soon {
  color: #5c5c6a;
  background: rgba(255,255,255,.03);
  cursor: not-allowed;
  opacity: .55;
  pointer-events: none;
}

.btn-vote {
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  color: #fff;
}
.btn-vote:hover { box-shadow: 0 0 22px rgba(255, 106, 61,.4); }

.server-list-head,
.server-row {
  display: grid !important;
  grid-template-columns: 52px minmax(160px, 1.4fr) minmax(120px, 0.6fr) 118px 64px 76px !important;
  grid-auto-flow: row !important;
  column-gap: 14px;
  align-items: center;
}
.server-row > .server-rank { grid-column: 1; }
.server-row > .server-info { grid-column: 2; min-width: 0; }
.server-row > .server-mid { grid-column: 3; }
.server-list-head > .col-rank { grid-column: 1; }
.server-list-head > .col-server { grid-column: 2; }
.server-list-head > .col-players { grid-column: 3; }
.server-list-head > .col-spark { grid-column: 4; text-align: center; justify-self: center; }
.server-list-head > .col-votes { grid-column: 5; }
.server-list-head > .col-actions { grid-column: 6; }
.server-row > .server-spark { grid-column: 4; justify-self: center; text-align: center; }
.server-row > .server-votes-col { grid-column: 5; text-align: right; }
.server-row > .server-actions { grid-column: 6; justify-content: flex-end; }
.server-spark {
  color: var(--cyan);
  opacity: .9;
  line-height: 0;
}
.server-spark svg { display: block; }
.server-row > .server-region,
.server-row > .server-players,
.server-row > .server-uptime { display: none; }

.server-mid {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.players-count-lg { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.server-row .btn-join {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  box-shadow: none;
}
.server-row .btn-join:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
  box-shadow: none;
}
.server-row.is-offline {
  opacity: .72;
}
.server-row.is-offline .server-list-icon,
.server-row.is-offline .server-row::before {
  filter: grayscale(.25);
}
.server-row.is-offline .tag {
  opacity: 1;
  filter: none;
}
.server-name .dot-online {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(255, 201, 77,.7);
}

@media (max-width: 800px) {
  .server-list-head { display: none !important; }
  .server-row {
    grid-template-columns: 40px minmax(0, 1fr) !important;
  }
  .server-row > .server-mid,
  .server-row > .server-votes-col,
  .server-row > .server-actions {
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
  }
}

.hero { padding: 36px 0 28px; }
.hero-sub { margin-bottom: 22px; font-size: 15px; }
.hero-stats { gap: 28px; }
.stat-value { font-size: 22px; }
.home-spotlight { padding: 8px 0 20px; }
.home-spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.home-sponsors .partner-strip-section {
  padding: 0;
}
.home-sponsors .partner-strip-section > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}
.home-sponsors .section-header { margin-bottom: 12px; }
.trending-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trending-card {
  flex: 1 1 220px;
  max-width: 320px;
}
.section#servers { padding-top: 12px; }
.server-list-head {
  padding: 0 18px 8px !important;
}
.server-list-head .col-players { text-align: left; }
.server-list-head .col-votes { text-align: right; }

@media (max-width: 900px) {
  .home-spotlight-grid { grid-template-columns: 1fr; }
}

.home-rail { padding: 6px 0 18px; }
.home-rail .section-header { margin-bottom: 12px; }
.trending-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 6px;
  mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
}
.trending-card {
  flex: 0 0 230px;
  max-width: 230px;
  width: 230px;
}
.partner-strip-section { padding: 4px 0 18px; }
.partner-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 6px;
}
.partner-strip-card {
  flex: 0 0 auto;
  width: max-content;
  max-width: 280px;
}
@media (max-width: 700px) {
  .trending-card { flex-basis: 200px; width: 200px; max-width: 200px; }
}

.tools-hero { padding-top: 36px; }
.tools-note {
  margin: 18px 0 22px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(12,18,32,.7);
  color: var(--text-muted);
  font-size: 14px;
}
.tools-note strong { color: var(--text); }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(20,20,30,.92), rgba(10,10,16,.92));
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tool) 45%, transparent);
  box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 0 1px color-mix(in srgb, var(--tool) 20%, transparent);
}
.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #fff;
  background: var(--tool);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--tool) 35%, transparent);
}
.tool-card h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.tool-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}
.tool-launch {
  margin-top: 16px;
  color: var(--tool);
  font-size: 13px;
  font-weight: 700;
}
.tool-stage { max-width: 760px; }
.tool-panel label { display: block; margin-bottom: 10px; color: var(--text-dim); font-size: 12px; }
.tool-panel input, .tool-panel select { width: 100%; margin-top: 6px; }
.tool-out {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #0b0b12;
  border: 1px solid var(--border);
  color: #d6d6e2;
  font-size: 13px;
  overflow: auto;
  white-space: pre-wrap;
}
.tool-grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-check { color: var(--text-muted); line-height: 1.7; padding-left: 1.1rem; }
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(12,12,20,.94);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 50px rgba(0,0,0,.45);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p { margin: 0; color: var(--text-muted); font-size: 13px; max-width: 720px; }
.cookie-banner a { color: var(--cyan); }
@media (max-width: 900px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tool-grid-form { grid-template-columns: 1fr; }
}

.tool-panel,
.tool-stage .card-form {
  background: rgba(14,14,22,.92);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}
.tool-panel label,
.tool-stage label {
  display: block;
  margin: 0 0 12px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tool-panel input,
.tool-panel select,
.tool-panel textarea,
.tool-stage input,
.tool-stage select,
.tool-stage textarea {
  width: 100%;
  margin-top: 7px;
  padding: 11px 13px;
  background: #0b0b12 !important;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #f0f0f5 !important;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
}
.tool-panel input::placeholder,
.tool-stage input::placeholder {
  color: #6b6b7a;
}
.tool-panel input:focus,
.tool-panel select:focus,
.tool-panel textarea:focus,
.tool-stage input:focus,
.tool-stage select:focus,
.tool-stage textarea:focus {
  border-color: rgba(255, 106, 61,.45);
  box-shadow: 0 0 0 3px rgba(255, 106, 61,.12);
}
.tool-panel select,
.tool-stage select {
  background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.tool-out {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #07070c;
  border: 1px solid rgba(255,255,255,.08);
  color: #d5d5e2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  min-height: 88px;
}
.tool-grid-form label { margin-bottom: 0; }

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
}
.cookie-overlay[hidden] { display: none !important; }
.cookie-modal {
  width: min(420px, 100%);
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: #12121c;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.cookie-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.cookie-modal p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.cookie-modal a { color: var(--cyan); }
.cookie-modal .btn { width: 100%; }
.cookie-banner { display: none !important; }

.tools-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 22px 0 26px;
  padding: 18px 20px;
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 106, 61,.18), transparent 42%),
    radial-gradient(90% 120% at 100% 100%, rgba(255, 201, 77,.1), transparent 40%),
    #12121c;
  border: 1px solid rgba(255, 106, 61,.22);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.tools-note-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(255, 106, 61,.35);
}
.tools-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 16px;
}
.tools-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.hex-pick { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.hex-pick input[type="color"] {
  width: 56px; height: 44px; padding: 4px; cursor: pointer;
  background: #0b0b12;
}
.hex-pick input[type="text"] { flex: 1; margin-top: 0; }
.hex-swatch {
  height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  margin-bottom: 12px;
}
.rp-chips { display:flex; flex-wrap:wrap; gap:8px; margin: 12px 0 14px; }
.rp-chips .btn.is-on {
  border-color: rgba(255, 106, 61,.5);
  color: #fff;
  background: rgba(255, 106, 61,.16);
}
.rp-glossary { display: grid; gap: 10px; margin-top: 8px; }
.rp-term {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(8,8,14,.6);
}
.rp-term h3 { margin: 0 0 4px; font-size: 15px; }
.rp-term p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.partner-clicks {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: .04em;
}

.trending-card {
  --mx: 50%;
  --my: 50%;
}
.trending-card::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  left: var(--mx);
  top: var(--my);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, rgba(255,150,70,.55) 0%, rgba(255, 106, 61,.22) 32%, transparent 70%);
  filter: blur(2px);
  transition: opacity .2s ease;
}
.trending-card:hover::before { opacity: 1; }
.trending-card > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .trending-card::before { display: none; }
}

.trending-row {
  overflow: visible !important;
  mask-image: none !important;
  padding: 10px 6px 14px;
}
.trending-card {
  overflow: visible !important;
}
.trending-card::before {
  opacity: .4;
}
.trending-card:hover::before {
  opacity: 1;
}
.trending-card::after {
  width: 90px;
  height: 90px;
  left: -16px;
  bottom: -22px;
  filter: blur(1px);
}

.trending-row,
.trending-card {
  overflow: visible !important;
  mask-image: none !important;
  clip-path: none !important;
}
.trending-card::after {
  display: none !important;
}
.trending-card {
  box-shadow: -10px 14px 26px rgba(255, 70, 20, .22);
}
.trending-card.heat-1 {
  box-shadow: -12px 16px 30px rgba(255, 70, 20, .3), 0 0 24px rgba(255, 70, 20, .12);
}
.trending-card::before {
  opacity: 0 !important;
}
.trending-card:hover::before {
  opacity: 1 !important;
}

.tf-verified { filter: none; }
.tf-verified svg { filter: drop-shadow(0 0 6px rgba(255, 201, 77,.45)); }
.server-list .tf-verified-tip {
  left: calc(100% + 8px);
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: none;
  filter: none;
  z-index: 20;
}
.server-list .tf-verified:hover .tf-verified-tip,
.server-list .tf-verified:focus .tf-verified-tip {
  transform: translateY(-50%);
}
.tf-select {
  min-width: 140px;
  padding: 8px 32px 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0b0b12 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239898a8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #f0f0f5;
  font-size: 13px;
  font-family: var(--font);
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
}
.tf-select:focus {
  outline: none;
  border-color: rgba(255, 106, 61,.45);
}
.tf-select option { background: #12121c; color: #f0f0f5; }
.inq-sort { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-reason {
  min-width: 220px;
  height: 40px;
}
.admin-chart-card {
  margin-top: 8px;
  padding: 16px 18px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(12,12,20,.8);
}
.admin-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-chart { width: 100%; height: auto; display: block; }
.admin-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.admin-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  margin-right: 6px;
}
.pub-profile { padding-top: 24px; }
.pub-banner {
  height: 160px;
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, #000), #12121c);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.08);
  border-bottom: 0;
}
.pub-card {
  padding: 0 22px 22px;
  border: 1px solid rgba(255,255,255,.08);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(12,12,20,.9);
}
.pub-top { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-top: -36px; }
.pub-avatar {
  width: 92px; height: 92px; border-radius: 22px; object-fit: cover;
  border: 3px solid #12121c; background: #1a1a28;
}
.pub-fallback { display:grid; place-items:center; font-size:32px; font-weight:800; color:#fff;
  background: var(--accent); }
.pub-id { flex: 1; min-width: 180px; }
.pub-tagline { margin: 6px 0 0; color: var(--accent); font-weight: 700; }
.pub-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pub-stats { display: flex; gap: 22px; margin: 18px 0; }
.pub-stats strong { display:block; font-size:18px; }
.pub-stats span { color: var(--text-dim); font-size: 12px; }
.pub-bio { color: var(--text-muted); line-height: 1.6; white-space: pre-wrap; }
.pub-support {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  text-decoration: none; color: inherit;
}
.pub-servers { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-servers a {
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border);
  color: inherit; text-decoration: none; font-size: 13px;
}
.inbox-card { padding: 16px 14px; }
.inbox-list { display: flex; flex-direction: column; gap: 6px; }
.inbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  background: rgba(255,255,255,.02);
}
.inbox-row:hover { background: rgba(255,255,255,.05); }
.inbox-row.is-on {
  border-color: rgba(255, 106, 61,.35);
  background: rgba(255, 106, 61,.08);
}
.inbox-av {
  width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: 0 0 40px;
}
.inbox-av-fallback {
  display: grid; place-items: center;
  background: #1b1b28; color: #fff; font-weight: 800;
}
.inbox-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inbox-copy strong { font-size: 14px; }
.inbox-copy small {
  color: var(--text-dim);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}
.imsg-thread, .dm-panel {
  background: #000;
}
.imsg-thread {
  margin: 12px 0 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.imsg-head {
  text-align: center;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.imsg-log { min-height: 240px; max-height: 420px; background: #000; }
.dm-messages { background: #000; }
.dm-msg { max-width: 75%; }
.dm-msg-bubble {
  background: #3a3a3c;
  border: 0;
  color: #fff;
  border-radius: 18px 18px 18px 5px;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.35;
}
.dm-msg.mine .dm-msg-bubble {
  background: #0a84ff;
  border: 0;
  color: #fff;
  border-radius: 18px 18px 5px 18px;
}
.dm-compose {
  background: #000;
  border-top: 1px solid rgba(255,255,255,.08);
}
.dm-compose input {
  border-radius: 20px;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
}
.dm-send {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: #0a84ff;
}
.dm-widget .dm-launcher {
  background: #0a84ff;
}
.dm-quote {
  font-size: 11px;
  opacity: .85;
  border-left: 2px solid rgba(255,255,255,.45);
  padding: 2px 0 4px 8px;
  margin-bottom: 4px;
  max-height: 3.2em;
  overflow: hidden;
}
.dm-quote b { display: block; font-size: 10px; }
.dm-reply-btn {
  display: block;
  margin-top: 4px;
  background: none;
  border: 0;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  font-family: inherit;
}
.dm-msg.mine .dm-reply-btn { color: rgba(255,255,255,.8); }
.dm-reply-bar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #111;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
}
.dm-reply-bar p { margin: 2px 0 0; color: var(--text-muted); }
.dm-msg-meta { opacity: .7; font-size: 10px; margin-top: 3px; }
.dm-msg {
  width: fit-content;
  max-width: 72%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dm-msg.mine { align-items: flex-end; }
.dm-msg:not(.mine) { align-items: flex-start; }
.dm-msg-bubble {
  display: block;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}
.dm-msg.mine .dm-msg-bubble { text-align: left; }
.dm-reply-btn {
  opacity: 0;
  align-self: inherit;
}
.dm-msg:hover .dm-reply-btn { opacity: 1; }
.dm-msg-meta {
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: #8e8e93;
  margin: 6px 0 2px;
}
.dm-messages::-webkit-scrollbar,
.imsg-log::-webkit-scrollbar,
.dm-thread-list::-webkit-scrollbar {
  width: 6px;
}
.dm-messages::-webkit-scrollbar-track,
.imsg-log::-webkit-scrollbar-track,
.dm-thread-list::-webkit-scrollbar-track {
  background: transparent;
}
.dm-messages::-webkit-scrollbar-thumb,
.imsg-log::-webkit-scrollbar-thumb,
.dm-thread-list::-webkit-scrollbar-thumb {
  background: #3a3a3c;
  border-radius: 99px;
}
.dm-messages { scrollbar-width: thin; scrollbar-color: #3a3a3c transparent; }

.dm-messages,
.imsg-log {
  align-items: flex-start !important;
}
.dm-msg {
  align-self: flex-start !important;
  width: auto !important;
  max-width: min(260px, 78%) !important;
}
.dm-msg.mine {
  align-self: flex-end !important;
}
.dm-msg-bubble {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
  padding: 7px 12px !important;
  line-height: 1.3;
}
.dm-msg-bubble {
  white-space: normal !important;
  text-align: left !important;
}
.dm-text {
  display: inline;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}
.dm-quote { display: block; width: 100%; text-align: left; }
.dm-earlier {
  display: block;
  margin: 4px auto 10px;
  background: none;
  border: 0;
  color: #8e8e93;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.imsg-thread { display: flex; flex-direction: column; max-height: min(70vh, 640px); }
.imsg-log {
  overflow-y: auto !important;
  overflow-x: hidden;
  flex: 1;
  min-height: 240px;
  overscroll-behavior: contain;
}
html, body { scroll-padding-top: 0; }
.imsg-head, .dm-chat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}
.imsg-profile {
  position: absolute;
  right: 12px;
  font-size: 12px;
  color: #0a84ff;
  text-decoration: none;
  font-weight: 600;
}
.imsg-profile:hover { text-decoration: underline; }
.hdr-drop-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hdr-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: .85;
}
.dm-msg[data-time]:hover .dm-msg-bubble::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  top: -26px;
  transform: translateX(-50%);
  background: #2c2c2e;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}
.dm-msg { position: relative; }
.dm-msg-bubble { position: relative; }
.dm-msg.mine[data-time]:hover .dm-msg-bubble::after {
  left: auto;
  right: 0;
  transform: none;
}

.nav {
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  width: max-content;
  flex: 0 1 auto;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .01em;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.nav-link.active {
  color: #061018;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(255, 201, 77,.28);
}
.nav-link.active:hover {
  color: #061018;
  background: var(--cyan);
}
.pub-support {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  text-decoration: none;
  color: inherit;
}
.pub-support-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .18; pointer-events: none;
}
.pub-support-icon {
  position: relative;
  width: 52px; height: 52px; border-radius: 14px;
  object-fit: cover; flex: 0 0 52px;
  background: #1a1a28;
}
.pub-support-fallback {
  display: grid; place-items: center;
  font-weight: 800; color: #fff;
  background: var(--accent, #ff6a3d);
}
.pub-support-copy { position: relative; min-width: 0; flex: 1; }
.pub-support-kicker {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 2px;
}
.pub-support-copy strong { display: block; font-size: 16px; }
.pub-support-meta { color: var(--text-dim); font-size: 12px; }
.pub-support-meta .is-live { color: var(--cyan); font-weight: 700; }
.pub-support-go {
  position: relative;
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.08);
  border-radius: 999px; padding: 6px 10px;
}
.pub-support:hover { border-color: rgba(255, 201, 77,.35); }


/* ========== Featured gallery hover ========== */
.featured-section { padding-top: 28px; padding-bottom: 10px; }
.featured-heading {
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.featured-carousel { padding: 8px 0 12px; }
.featured-gallery {
  position: relative;
  --feat-h: 240px;
  height: var(--feat-h);
}
.feat-wrap {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity .4s ease, transform .4s ease;
}
.feat-wrap.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  z-index: 2;
}
.feat-image {
  position: absolute;
  inset: 0;
  background: #0b1520;
}
.feat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform .45s ease;
}
.feat-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,10,16,.1), rgba(4,10,16,.22));
  pointer-events: none;
}
.feat-idle,
.feat-hover {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 24px 32px;
}
.feat-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity .28s ease, transform .28s ease;
}
.feat-hover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  background: rgba(5,8,14,.58);
  backdrop-filter: blur(10px);
  transition: opacity .28s ease, transform .28s ease;
}
.feat-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.feat-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: min(820px, 86%);
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-shadow: 0 12px 28px rgba(0,0,0,.55);
}
.feat-title-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-mini-icon {
  width: 42px; height: 42px; border-radius: 10px;
  object-fit: cover; flex: 0 0 42px;
  box-shadow: 0 8px 18px rgba(0,0,0,.4);
}
.feat-hover-copy { min-width: 0; flex: 1; }
.feat-detail-name {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}
.feat-desc {
  margin: 0 0 10px;
  max-width: 720px;
  color: #d5dae8;
  font-size: 14px;
  line-height: 1.5;
}
.feat-detail-meta {
  color: #cfd3e4;
  font-size: 13px;
  line-height: 1.5;
}
.feat-detail-meta a { color: var(--cyan); text-decoration: none; }
.feat-detail-meta a:hover { text-decoration: underline; }
.feat-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.feat-detail-tags span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.12);
}
.feat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.feat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
}
.feat-btn:hover { background: rgba(255,255,255,.18); }
.feat-btn-join {
  color: #041016;
  background: linear-gradient(135deg, var(--cyan), #7cf6ff);
  border-color: transparent;
}
.feat-btn-join:hover { filter: brightness(1.08); }
.feat-btn-ghost { background: transparent; }
.feat-dots {
  position: relative;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  pointer-events: auto;
}
.feat-dot {
  position: relative;
  z-index: 41;
  width: 32px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.feat-dot::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 5px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.feat-dot.is-on::after {
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}
.feat-dot.is-on {
  background: transparent;
}
.feat-wrap:hover .feat-image img { transform: scale(1.03); }
.feat-wrap:hover .feat-idle {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.feat-wrap:hover .feat-hover {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.feat-empty .feat-image {
  background:
    radial-gradient(circle at 28% 40%, rgba(255, 106, 61,.32), transparent 52%),
    radial-gradient(circle at 72% 60%, rgba(255, 201, 77,.22), transparent 48%),
    #101018;
}
@media (max-width: 800px) {
  .featured-gallery { --feat-h: 320px; }
  .feat-idle { padding: 16px; }
  .feat-hover {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    padding: 16px;
  }
  .feat-title { font-size: 26px; }
  .feat-actions { justify-content: flex-start; }
}


/* ========== Vote signal lock ========== */
.vlock-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; opacity: 0;
}
.vlock-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4,6,12,.72);
  backdrop-filter: blur(10px);
}
.vlock-modal[hidden] { display: none !important; }
.vlock-card {
  width: min(460px, 100%);
  background: #0c0c14;
  border: 1px solid rgba(255, 201, 77,.2);
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 40px rgba(255, 106, 61,.12);
}
.vlock-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.vlock-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
}
.vlock-sub {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.vlock-seq {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.vlock-seq li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: #101018;
  font-weight: 800;
  font-size: 13px;
}
.vlock-seq li span {
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--text-dim);
}
.vlock-seq li.is-done {
  border-color: rgba(255, 201, 77,.45);
  color: var(--cyan);
}
.vlock-ring {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 14px;
}
.vlock-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 12px;
  color: #041016;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  box-shadow: 0 0 24px rgba(255, 201, 77,.25);
}
.vlock-core { z-index: 1; pointer-events: none; }
.vlock-node {
  position: absolute;
  width: 54px;
  height: 54px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: #141422;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  z-index: 2;
  touch-action: manipulation;
}
.vlock-node:hover { border-color: var(--cyan); }
.vlock-node.is-on {
  background: rgba(255, 201, 77,.16);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(255, 201, 77,.25);
}
.vlock-node.is-bad {
  border-color: #ef4444;
  color: #ef4444;
}
.vlock-status {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  margin: 0 0 14px;
}
.vlock-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}


/* Hot right now — contained flame + cursor glow */
.trending-row {
  overflow: visible;
}
.trending-card {
  overflow: hidden !important;
  isolation: isolate;
  box-shadow: 0 10px 24px rgba(0,0,0,.25) !important;
}
.trending-card.heat-1 {
  box-shadow: 0 10px 28px rgba(255, 80, 20, .16) !important;
}
.trending-card::before {
  width: 130px !important;
  height: 130px !important;
  background: radial-gradient(circle, rgba(255,190,90,.7) 0%, rgba(255,90,30,.22) 36%, transparent 70%) !important;
  filter: blur(10px) !important;
  opacity: 0 !important;
  z-index: 2 !important;
  mix-blend-mode: screen;
}
.trending-card:hover::before {
  opacity: .9 !important;
}
.trending-card::after {
  display: none !important;
}
.trending-fire {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -45%;
  height: 95%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 35% 70%, rgba(255,92,24,.5), transparent 58%),
    radial-gradient(ellipse at 62% 85%, rgba(255,170,50,.32), transparent 52%),
    radial-gradient(ellipse at 50% 100%, rgba(255,60,20,.22), transparent 48%);
  filter: blur(22px);
  opacity: .7;
  animation: tf-hot-flame 3s ease-in-out infinite alternate;
}
.trending-card.heat-1 .trending-fire { opacity: .95; }
.trending-card.heat-2 .trending-fire { opacity: .75; }
.trending-card > *:not(.trending-fire):not(.trending-cursor) { position: relative; z-index: 3; }
@keyframes tf-hot-flame {
  0% { transform: translate3d(-4%, 8%, 0) scale(1); }
  50% { transform: translate3d(3%, 0, 0) scale(1.06); }
  100% { transform: translate3d(-2%, -6%, 0) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .trending-fire { animation: none; }
}

.trending-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(circle, rgba(255,186,90,.75) 0%, rgba(255,90,30,.2) 42%, transparent 70%);
  filter: blur(6px);
  mix-blend-mode: screen;
  transition: opacity .15s ease;
}
.trending-cursor.is-on { opacity: .85; }
.trending-card::before { display: none !important; }

.trending-cursor {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%);
  z-index: 2 !important;
}

.discord-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 249;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(88,101,242,.45);
  background: linear-gradient(160deg, #5865f2, #4752c4);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(88,101,242,.28);
  transition: transform .15s, filter .15s;
}
.discord-fab.has-dm-buddy { right: 86px; }
.discord-fab:hover { transform: translateY(-2px); filter: brightness(1.08); }
.discord-fab-tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  background: #12121c;
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.discord-fab:hover .discord-fab-tip,
.discord-fab:focus-visible .discord-fab-tip {
  opacity: 1;
  transform: none;
}

.beta-og {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: 2px;
  margin-left: 8px;
  cursor: help;
}
.beta-og-label {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 3px 8px 3px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), transparent 42%),
    linear-gradient(90deg, #ff6a3d, #ff7a18, #ffe36a, #7cf6ff, #c9c9d4, #ff6a3d);
  background-size: 100% 100%, 280% 100%;
  animation: beta-og-shift 2.4s linear infinite;
  box-shadow:
    0 0 0 1px rgba(255, 106, 61,.2),
    0 0 12px rgba(255, 106, 61,.55),
    0 0 18px rgba(255, 201, 77,.25);
}
.beta-og-shine {
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.7) 50%, transparent 65%);
  animation: beta-og-gleam 2.8s ease-in-out infinite;
  pointer-events: none;
}
.beta-og-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  bottom: auto;
  transform: translateX(-50%);
  padding: 6px 8px;
  border-radius: 8px;
  background: #0b0b12;
  border: 1px solid rgba(255, 106, 61,.4);
  color: #f0f0f5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.beta-og:hover .beta-og-tip,
.beta-og:focus .beta-og-tip {
  opacity: 1;
}
@keyframes beta-og-shift {
  0% { background-position: 0 0, 0 50%; }
  100% { background-position: 0 0, 280% 50%; }
}
@keyframes beta-og-gleam {
  0% { transform: translateX(-70%); opacity: 0; }
  20% { opacity: .9; }
  50% { transform: translateX(70%); opacity: 0; }
  100% { transform: translateX(70%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .beta-og-label, .beta-og-shine { animation: none; }
}

.server-name { overflow: visible; }
.server-list .beta-og-tip,
.server-row .beta-og-tip {
  left: 0;
  transform: none;
}

#confirm-vote-lock:disabled {
  opacity: .4;
  cursor: not-allowed;
  filter: grayscale(.3);
}

.wl-q {
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: #101018;
}
.wl-q-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.wl-q-move { display: flex; gap: 6px; }
.wl-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: #161622;
  color: #fff;
  cursor: pointer;
}
.wl-icon:hover { border-color: var(--cyan); }
.wl-remove {
  margin-left: auto;
  background: none;
  border: 0;
  color: #fb7185;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.wl-lab {
  display: block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.wl-input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: #0c0c14;
  color: #f4f6ff;
}
.wl-input:focus { outline: none; border-color: rgba(255, 201, 77,.4); }
.wl-q-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr;
  gap: 10px;
}
@media (max-width: 640px) {
  .wl-q-grid { grid-template-columns: 1fr; }
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  align-self: flex-start;
  max-width: 420px;
}
.dash-actions .btn {
  height: auto !important;
  min-height: 0 !important;
  align-self: flex-start;
  white-space: nowrap;
  padding: 8px 12px !important;
  line-height: 1.2;
}
.theme-fields input,
.theme-fields select,
.theme-fields textarea,
.card-form input,
.card-form select,
.card-form textarea {
  background: #0c0c14 !important;
  color: #f4f6ff !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 10px;
  padding: 10px 12px;
  color-scheme: dark;
}
.theme-fields select option,
.card-form select option {
  background: #12121c;
  color: #f4f6ff;
}

.theme-switch select {
  appearance: none;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 28px 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.theme-switch { position: relative; }
.theme-switch::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px; height: 6px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.dc-linked {
  position: relative;
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #cdd6ff;
  border: 1px solid rgba(88,101,242,.45);
  background: rgba(88,101,242,.16);
  vertical-align: middle;
  cursor: help;
}
.dc-linked-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  padding: 6px 8px;
  border-radius: 8px;
  background: #0b0b12;
  border: 1px solid rgba(88,101,242,.35);
  color: #f0f0f5;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
}
.dc-linked:hover .dc-linked-tip,
.dc-linked:focus .dc-linked-tip { opacity: 1; }

.hero-stats-wrap { position: relative; padding-top: 0; width: 100%; }
.hero-stats-wrap .hero-stats { width: 100%; }
.hero-chase {
  position: absolute;
  left: 10px; right: 10px; top: 0;
  height: 36px;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.hero-chase svg { width: 100%; height: 36px; overflow: visible; }
.hero-chase path, .hero-chase circle { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chase-robber { color: #ff7ad9; transform-box: fill-box; transform-origin: center bottom; animation: chase-run 7.5s linear infinite, chase-bob .28s steps(2) infinite; }
.chase-cop { color: var(--cyan); transform-box: fill-box; transform-origin: center bottom; animation: chase-run 7.5s linear infinite, chase-bob .26s steps(2) infinite; animation-delay: -.9s, 0s; }
.chase-dust { color: rgba(255,255,255,.35); animation: chase-run 7.5s linear infinite; animation-delay: -.15s; }
.chase-shot { color: #ffe36a; opacity: 0; }
.chase-shot.is-on { opacity: 1; }
.chase-flash { fill: rgba(255,227,106,.0); stroke: none; }
.chase-robber.is-hit .chase-flash { fill: rgba(255,227,106,.55); }
@keyframes chase-run {
  0% { transform: translateX(0); }
  100% { transform: translateX(560px); }
}
@keyframes chase-bob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-chase { display: none; }
  .hero-stats-wrap { padding-top: 0; }
}

.review-card.is-more { display: none; }

.partner-strip {
  display: grid !important;
  width: 100%;
  gap: 12px;
  overflow: visible;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.partner-strip[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.partner-strip[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.partner-strip[data-count="1"] .partner-strip-card,
.partner-strip[data-count="2"] .partner-strip-card,
.partner-strip-card {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
  min-height: 72px;
}
.partner-strip-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--cyan) 45%, var(--pink));
  background:
    radial-gradient(180px 100px at 0% 0%, color-mix(in srgb, var(--cyan) 30%, transparent), transparent 70%),
    radial-gradient(240px 120px at 100% 120%, color-mix(in srgb, var(--pink) 24%, transparent), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    var(--bg-card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cyan) 20%, transparent), 0 12px 30px rgba(0,0,0,.32);
}
.partner-strip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.55), transparent 78%);
  pointer-events: none;
}
.partner-strip-card:hover {
  border-color: color-mix(in srgb, var(--cyan) 70%, var(--pink));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cyan) 35%, transparent), 0 0 28px color-mix(in srgb, var(--cyan) 24%, transparent), 0 14px 32px rgba(0,0,0,.35);
}
.partner-strip-card .partner-label {
  color: #041016;
  background: linear-gradient(135deg, var(--cyan), #7cf6ff);
  border-color: transparent;
  font-weight: 800;
}
.partner-strip-main, .partner-socials { position: relative; z-index: 1; }
.partner-strip-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.partner-socials { display: inline-flex; gap: 6px; margin-left: auto; }
.partner-social {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.partner-social-discord { color: #8ea1ff; }
.partner-social-youtube { color: #ff6b6b; }
.partner-social-gitbook { color: var(--cyan); }
.partner-social:hover { border-color: currentColor; }
.script-sponsor {
  position: absolute;
  top: 7px;
  right: 108px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
  background: rgba(8, 12, 18, .72);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.script-sponsor-cat {
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: .03em;
}
.script-sponsor-cat::before { content: "·"; margin: 0 6px; color: var(--text-dim); }
.script-sponsor-dash {
  position: static;
  right: auto;
  top: auto;
  display: inline-flex;
  margin-bottom: 10px;
  text-decoration: none;
}
.server-row { padding-top: 14px; }
@media (max-width: 800px) {
  .script-sponsor { right: 12px; top: 8px; }
  .partner-strip, .partner-strip[data-count="2"] { grid-template-columns: 1fr; }
}

.server-name {
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}
.server-name-text {
  display: inline-block;
  min-width: 0;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  flex: 1 1 auto;
}
.server-name .dc-linked,
.server-name .verified-badge,
.server-name .beta-og,
.server-name .dot-online,
.server-name .tf-verified {
  flex-shrink: 0;
  margin-left: 4px;
}

.field-info {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cyan) 55%, var(--border));
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  cursor: help;
  vertical-align: 1px;
}


/* Featured stat rail */
.hero-stats-wrap {
  margin-top: 6px;
}
.hero-stats {
  gap: 10px !important;
  padding: 10px;
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 201, 77,.08), transparent 42%),
    radial-gradient(90% 80% at 100% 100%, rgba(255,122,217,.06), transparent 46%),
    color-mix(in srgb, var(--bg-card) 88%, #000);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
}
.hero-stats .stat {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 16px 12px 14px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 42%),
    color-mix(in srgb, var(--bg-elevated) 82%, #07070d);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hero-stats .stat::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: var(--stat-accent, var(--cyan));
  box-shadow: 0 0 16px var(--stat-accent, var(--cyan));
}
.hero-stats .stat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--stat-accent, var(--cyan)) 45%, transparent);
  box-shadow: 0 10px 28px rgba(0,0,0,.28), 0 0 0 1px color-mix(in srgb, var(--stat-accent, var(--cyan)) 20%, transparent);
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 9px;
  color: var(--stat-accent, var(--cyan));
  background: color-mix(in srgb, var(--stat-accent, var(--cyan)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--stat-accent, var(--cyan)) 28%, transparent);
}
.stat-icon svg { width: 16px; height: 16px; display: block; }
.hero-stats .stat-value {
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff 20%, var(--stat-accent, var(--cyan)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats .stat-label {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.48);
}
.stat-players { --stat-accent: #ffc94d; }
.stat-online { --stat-accent: #3dff9a; }
.stat-listed { --stat-accent: #ffc14a; }
.stat-votes { --stat-accent: #ff7ad9; }
.stat-online .stat-icon { position: relative; }
.stat-online .stat-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3dff9a;
  box-shadow: 0 0 8px #3dff9a;
  animation: stat-pulse 1.8s ease-out infinite;
}
@keyframes stat-pulse {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { opacity: 0; }
}
@media (max-width: 720px) {
  .hero-stats .stat-value { font-size: 24px; }
  .hero-stats .stat { padding: 14px 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .stat-online .stat-icon::after { animation: none; }
  .hero-stats .stat { transition: none; }
}


.admin-chart-card { position: relative; }
.admin-chart { width: 100%; height: auto; display: block; }
.admin-series.is-off { opacity: 0.08; }
.admin-chart-hit { cursor: crosshair; }
.admin-chart-tip {
  position: absolute;
  z-index: 3;
  min-width: 168px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #12121c;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  font-size: 12px;
  color: #d7d7e2;
  pointer-events: none;
}
.admin-chart-tip strong { display: block; margin-bottom: 6px; }
.admin-chart-tip span { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.admin-chart-tip i { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.admin-chart-tip b { margin-left: auto; font-variant-numeric: tabular-nums; }
.admin-legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}
.admin-legend-btn i { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.admin-legend-btn b { color: #fff; font-variant-numeric: tabular-nums; }
.admin-legend-btn.is-on { border-color: rgba(255,255,255,.22); color: #eee; background: rgba(255,255,255,.06); }
.admin-legend-btn:not(.is-on) { opacity: .45; }
.admin-chart-table-wrap { overflow-x: auto; margin-top: 14px; }
.admin-chart-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.admin-chart-table th, .admin-chart-table td {
  padding: 6px 8px;
  text-align: right;
  border-top: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
}
.admin-chart-table th:first-child, .admin-chart-table td:first-child { text-align: left; color: var(--text-muted); }
.admin-chart-table thead th { color: var(--text-dim); font-weight: 600; }

.hero-chip-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hero-chip.is-open {
  border-style: dashed;
  color: rgba(255,255,255,.72);
  background: rgba(16,16,24,.55);
}
.hero-chip.is-open .hero-chip-dot { background: transparent; border: 1px dashed rgba(255,255,255,.45); }

.hero-stage { height: 320px; }
.hero-chip {
  max-width: 200px;
  padding: 8px 12px 8px 8px;
  gap: 8px;
  background: rgba(8, 12, 18, .78);
  border: 1px solid rgba(52, 211, 153, .35);
  box-shadow: 0 10px 28px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.hero-chip-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  font-weight: 650;
  letter-spacing: .01em;
}
.hero-chip-dot { width: 8px; height: 8px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.hero-chip-1 { left: 8%; top: 8%; }
.hero-chip-2 { right: 2%; top: 22%; }
.hero-chip-3 { left: 0; bottom: 22%; }
.hero-chip-4 { right: 6%; bottom: 10%; }
.hero-chip-5 { left: 30%; top: 0; }
.hero-chip.is-open {
  border-style: dashed;
  border-color: rgba(255,255,255,.22);
  background: rgba(8, 12, 18, .45);
  box-shadow: none;
}

.hero-stage { height: 360px; }
.hero-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 280px; height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 201, 77,.22), rgba(255, 106, 61,.08) 42%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-orbit {
  border: 0;
  background:
    radial-gradient(circle, transparent 62%, rgba(255, 201, 77,.55) 63%, transparent 64.5%),
    radial-gradient(circle, transparent 78%, rgba(255,255,255,.16) 79%, transparent 80%);
  box-shadow: 0 0 24px rgba(255, 201, 77,.12);
}
.hero-orbit-2 {
  background:
    radial-gradient(circle, transparent 68%, rgba(255, 106, 61,.45) 69%, transparent 70.4%);
  opacity: .9;
}
.hero-orbit-3 {
  width: 150px; height: 150px;
  margin: -75px 0 0 -75px;
  background: radial-gradient(circle, transparent 70%, rgba(255,255,255,.2) 71%, transparent 73%);
  animation-duration: 16s;
}
.hero-core {
  width: 138px; height: 138px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 201, 77,.16), transparent 42%),
    linear-gradient(165deg, #22182c, #0b1018 62%);
  border: 1px solid rgba(255, 201, 77,.45);
  box-shadow:
    0 0 0 6px rgba(255, 201, 77,.06),
    0 0 48px rgba(255, 201, 77,.22),
    0 0 70px rgba(255, 106, 61,.16);
}
.hero-core strong {
  font-size: 34px;
  letter-spacing: .04em;
  text-shadow: 0 0 18px rgba(255, 201, 77,.45);
}
.hero-chip {
  max-width: 210px;
  padding: 7px 12px 7px 7px;
  gap: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22,28,40,.92), rgba(8,10,16,.88));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 12px 30px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-chip-mark {
  width: 28px; height: 28px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: #041016;
  background: linear-gradient(160deg, #7ef0ff, #34d399);
  box-shadow: 0 0 12px rgba(52,211,153,.35);
}
.hero-chip-mark.is-on { background: linear-gradient(160deg, #d9fff2, #34d399); }
.hero-chip-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.hero-chip-name { font-size: 12px; font-weight: 700; }
.hero-chip-meta {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  font-weight: 600;
}
.hero-chip.is-open {
  border-style: dashed;
  border-color: rgba(255, 201, 77,.35);
  background: rgba(8,12,18,.42);
}
.hero-chip.is-open .hero-chip-mark {
  color: #9befff;
  background: transparent;
  border: 1px dashed rgba(255, 201, 77,.55);
  box-shadow: none;
  font-size: 16px;
}
.hero-chip-1 { left: 4%; top: 14%; }
.hero-chip-2 { right: 0; top: 26%; }
.hero-chip-3 { left: 2%; bottom: 18%; }
.hero-chip-4 { right: 4%; bottom: 12%; }
.hero-chip-5 { left: 34%; top: 2%; }

.hero-chip-mark.has-logo {
  padding: 0;
  overflow: hidden;
  background: #0c1218;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 12px rgba(52,211,153,.28);
}
.hero-chip-mark.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy { position: relative; z-index: 2; }
.hero-badge {
  background: rgba(12, 10, 20, .72);
  border: 1px solid rgba(255, 106, 61, .4);
  box-shadow: 0 0 24px rgba(255, 106, 61, .12), inset 0 1px 0 rgba(255,255,255,.06);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}
.hero-title {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: .96;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  text-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.gradient-text {
  background: linear-gradient(100deg, #ff6a3d 0%, #7ef0ff 45%, #ffb15a 100%);
  background-size: 160% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-sheen 7s ease-in-out infinite;
}
@keyframes hero-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub { max-width: 460px; font-size: 16px; color: rgba(226,226,236,.78); }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.hero-points span {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
}
.hero .hero-cta { justify-content: flex-start; margin: 0; }
.hero-btn { min-height: 46px; padding: 0 18px; border-radius: 12px; }
.hero .btn-primary.hero-btn {
  box-shadow: 0 0 0 1px rgba(255, 201, 77,.25), 0 10px 30px rgba(255, 201, 77,.18);
}
@media (max-width: 860px) {
  .hero-points { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .gradient-text { animation: none; }
}

.hero {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(255, 106, 61, .16), transparent 55%),
    radial-gradient(700px 380px at 86% 18%, rgba(255, 201, 77, .12), transparent 58%),
    linear-gradient(180deg, #100816 0%, #0b0d14 42%, transparent 100%);
}
.hero-aurora {
  inset: 0;
  height: auto;
  filter: none;
  opacity: .9;
  animation: none;
  background:
    radial-gradient(520px 240px at 22% 30%, rgba(255, 122, 217, .18), transparent 70%),
    radial-gradient(460px 260px at 74% 34%, rgba(56, 189, 248, .14), transparent 72%),
    linear-gradient(180deg, transparent, rgba(7, 8, 12, .2) 70%, #07080c);
}
.hero-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}

.featured-section { background: transparent; }
.featured-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: none;
  color: rgba(255,255,255,.62);
}
.featured-kicker span {
  padding: 2px 0;
  border-radius: 0;
  color: #ff7ad9;
  background: none;
  border: 0;
  letter-spacing: .14em;
  font-weight: 700;
  font-size: 11px;
}
.featured-kicker span::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: rgba(255,255,255,.2);
}
.featured-heading {
  background: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 28px;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.featured-section .section-sub { max-width: 460px; }

.hero,
.hero-aurora,
.featured-section {
  background: transparent !important;
}
.hero-aurora,
.hero-aurora::after,
.hero-glow {
  display: none !important;
}

.pop-chart { padding: 16px 16px 12px; }
.pop-plot { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: stretch; }
.pop-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 120px;
  font-size: 10px;
  color: rgba(255,255,255,.38);
  text-align: right;
}
.pop-bars {
  height: 120px;
  gap: 3px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 100% 50%,
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 100% / 100% 1px;
  background-repeat: no-repeat;
}
.pop-bars .chart-bar {
  position: relative;
  min-height: 0;
  border-radius: 4px 4px 1px 1px;
  opacity: 1;
  background: linear-gradient(180deg, #ff8a5c 0%, #7a5cff 45%, #ffc94d 100%);
  box-shadow: 0 0 12px rgba(255, 201, 77,.12);
}
.pop-bars .chart-bar.is-empty { height: 2px !important; opacity: .35; box-shadow: none; }
.pop-bars .chart-bar.is-off { filter: saturate(.4); opacity: .55; }
.pop-tip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 7px;
  border-radius: 7px;
  background: #12121c;
  border: 1px solid rgba(255,255,255,.12);
  font-size: 11px;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}
.pop-bars .chart-bar:hover .pop-tip { display: block; }

.pop-svg { width: 100%; height: auto; display: block; }
.pop-chart { padding: 16px 18px 8px; }

.server-actionbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 32px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}
.server-actionbar .action-primary,
.server-actionbar .action-secondary,
.server-actionbar .action-owner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.server-actionbar .action-primary { gap: 6px; }
.server-actionbar .action-secondary {
  padding: 3px;
  background: rgba(0,0,0,.35);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.04);
}
.server-actionbar .action-owner {
  margin-left: auto;
  gap: 4px;
}
.server-actionbar .btn {
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all .18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}
.server-actionbar .btn-primary {
  background: linear-gradient(135deg, #ff6a3d, #e5501f);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 106, 61,.35), inset 0 1px 0 rgba(255,255,255,.2);
}
.server-actionbar .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 106, 61,.5), inset 0 1px 0 rgba(255,255,255,.25);
}
.server-actionbar .btn-vote {
  background: linear-gradient(135deg, #ffc94d, #e0a92e);
  color: #041016;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 201, 77,.3), inset 0 1px 0 rgba(255,255,255,.35);
}
.server-actionbar .btn-vote:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 201, 77,.45), inset 0 1px 0 rgba(255,255,255,.4);
}
.server-actionbar .btn-vote:disabled {
  opacity: 0.5;
  box-shadow: none;
  transform: none;
}
.server-actionbar .btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 8px;
}
.server-actionbar .btn-ghost:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.server-actionbar .action-owner .btn-ghost {
  color: var(--text-dim);
  font-size: 12px;
}
.server-actionbar .action-owner .btn-ghost:hover {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.server-actionbar form {
  display: inline-flex;
  margin: 0;
}
.share-wrap {
  position: relative;
  display: inline-flex;
}
.share-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 148px;
  padding: 6px;
  border-radius: 12px;
  background: #16161e;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.share-menu[hidden] { display: none; }
.share-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.share-item:hover,
.share-item:focus {
  background: rgba(255,255,255,.08);
  color: #fff;
  outline: none;
}
@media (max-width: 720px) {
  .server-actionbar { padding: 6px; }
  .server-actionbar .action-owner {
    margin-left: 0;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .server-actionbar .action-secondary {
    width: 100%;
    justify-content: flex-start;
  }
}

.feat-wrap { transition: opacity .45s ease, transform .45s ease; }
.feat-dots { gap: 8px; }
.feat-dot {
  width: 22px;
  height: 18px;
  overflow: visible;
  background: transparent;
}
.feat-dot::after {
  left: 50%;
  right: auto;
  top: 6px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  transition: width .25s ease, margin-left .25s ease, background .25s ease;
}
.feat-dot.is-on::after {
  width: 22px;
  margin-left: -11px;
  background: rgba(255,255,255,.72);
}
.feat-dot:hover::after { background: rgba(255,255,255,.5); }
.feat-dot.is-on:hover::after { background: #fff; }

.legal-page {
  max-width: 860px;
  margin: 12px auto 40px;
  padding: 28px 28px 22px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background:
    radial-gradient(480px 160px at 0 0, rgba(255,255,255,.04), transparent 70%),
    #101018;
}
.legal-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.03);
}
.legal-page .section-title { margin-bottom: 8px; }
.legal-page .section-sub { margin-bottom: 22px; max-width: 62ch; }
.legal-page h2 {
  margin: 22px 0 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 16px;
  letter-spacing: .01em;
  color: #fff;
}
.legal-page h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-page p, .legal-page li { font-size: 14.5px; color: rgba(226,226,236,.78); }
.legal-page li { margin: 4px 0; }
.legal-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.legal-foot a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}
@media (max-width: 700px) {
  .legal-page { padding: 18px 14px; }
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.legal-toc a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 12px;
}
.legal-toc a:hover { border-color: rgba(255,255,255,.28); color: #fff; }
.legal-page h2 { scroll-margin-top: 84px; }

.nav {
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(8,10,16,.72);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.nav-link {
  padding: 7px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  font-weight: 650;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.nav-link.active:hover { color: #fff; background: rgba(255,255,255,.12); }

.profile-hero {
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: #12121c;
}
.profile-hero .section-title { margin-bottom: 4px; }
.profile-grid { gap: 16px; align-items: start; }
.profile-grid .card-form {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: #12121c;
  padding: 16px 16px 14px;
}
.profile-grid .card-heading {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.profile-activity { margin-bottom: 16px; }
.profile-activity .simple-list { margin: 0; }
.profile-activity .simple-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.profile-activity .simple-list li:last-child { border-bottom: 0; }

.hero-orbit {
  animation: orbit-spin 28s linear infinite;
}
.hero-orbit-2 { animation-duration: 42s; animation-direction: reverse; }
.hero-orbit-3 { animation-duration: 18s; }
.hero-chip {
  animation: chip-float 5.5s ease-in-out infinite;
}
.hero-chip.is-open .hero-chip-mark {
  animation: slot-pulse 2.4s ease-in-out infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes slot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 201, 77,.0); }
  50% { box-shadow: 0 0 0 6px rgba(255, 201, 77,.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orbit, .hero-chip, .hero-chip.is-open .hero-chip-mark { animation: none; }
}

.trending-row { gap: 12px; }
.trending-card {
  width: 240px;
  min-height: 118px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #12121c !important;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
}
.trending-card::before, .trending-card::after { display: none; }
.trending-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
}
.trending-rank {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.72);
  font-size: 12px;
}
.trending-card.heat-1 .trending-rank { color: #ffb088; background: rgba(255,122,58,.12); }
.trending-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.3;
}
.trending-meta { margin-top: 8px; color: rgba(255,255,255,.5); font-size: 12px; }
.trending-meta strong { color: #fff; }

.trending-card,
.trending-card.heat-1,
.trending-card.heat-2,
.trending-card.heat-3 {
  background: #14141c !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  box-shadow: none !important;
}
.trending-fire, .trending-cursor, .trending-card::before, .trending-card::after { display: none !important; }
.trending-rank {
  width: fit-content;
  max-width: max-content;
  align-self: flex-start;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
}
.trending-card.heat-1 .trending-rank { color: #fff !important; background: rgba(255,255,255,.08) !important; }
.trending-name { color: #fff; }

.trending-card {
  position: relative;
  overflow: hidden !important;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.trending-card::after {
  display: block !important;
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-120%);
  animation: hot-sheen 4.8s ease-in-out infinite;
  pointer-events: none;
}
.trending-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.22) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.28) !important;
}
.trending-rank .flame { animation: flame-pulse 1.6s ease-in-out infinite; }
@keyframes hot-sheen {
  0%, 55% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
@media (prefers-reduced-motion: reduce) {
  .trending-card::after, .trending-rank .flame { animation: none; }
}

.hot-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.hot-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  padding: 12px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: #14141c;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s ease, border-color .2s ease;
}
.hot-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.2); }
.hot-rank {
  width: 22px;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  font-weight: 700;
}
.hot-logo {
  width: 36px; height: 36px; border-radius: 10px;
  object-fit: cover; flex: 0 0 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  font-weight: 700;
}
.hot-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hot-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-meta { font-size: 12px; color: rgba(255,255,255,.5); }

.home-rail .trending-card,
.home-rail .trending-card.heat-1,
.home-rail .trending-card.heat-2,
.home-rail .trending-card.heat-3 {
  width: 240px;
  min-height: 112px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #16161f !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 14px;
  box-shadow: none !important;
  overflow: hidden !important;
}
.home-rail .trending-card::before,
.home-rail .trending-card::after,
.home-rail .trending-fire,
.home-rail .trending-cursor { display: none !important; }
.home-rail .trending-rank {
  width: auto;
  align-self: flex-start;
  padding: 0;
  background: none !important;
  color: rgba(255,255,255,.45) !important;
  font-size: 12px;
  letter-spacing: .04em;
}
.home-rail .trending-card.heat-1 .trending-rank { color: #ffb088 !important; }
.home-rail .trending-name {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-rail .trending-meta { margin-top: auto; color: rgba(255,255,255,.5); font-size: 12px; }
.home-rail .trending-meta strong { color: #fff; }
.home-rail .trending-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.22) !important;
}

.hot-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 0 10px;
}
.hot-tile {
  width: auto;
  min-width: 0;
  flex: none;
  padding: 10px;
  border-radius: 18px;
  text-decoration: none;
  color: #f2f2f2;
  background: #1c1c1f;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .2s ease, border-color .2s ease;
}
.hot-tile:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.16); }
.hot-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 112px;
  margin-bottom: 12px;
  border-radius: 12px;
  background:
    radial-gradient(80px 40px at 20% 70%, rgba(255,255,255,.05), transparent 70%),
    #141416;
  border: 1px solid rgba(255,255,255,.05);
  overflow: hidden;
}
.hot-stage::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 42%;
  top: 28%;
  height: 46%;
  border: 1px solid rgba(255,255,255,.08);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 40px 0 0;
}
.hot-rank {
  position: absolute;
  left: 10px;
  top: 8px;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
}
.hot-logo {
  width: 42px; height: 42px; border-radius: 12px;
  object-fit: cover; z-index: 1;
  display: grid; place-items: center;
  background: #2a2a2e;
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 700;
}
.hot-votes {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 11px;
  color: rgba(255,255,255,.55);
}
.hot-name {
  display: block;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-sub {
  display: block;
  padding: 2px 4px 4px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

.hot-tile {
  background: linear-gradient(180deg, #2a211c 0%, #1a1412 100%);
  border-color: rgba(255, 150, 80, .22);
}
.hot-stage {
  background:
    radial-gradient(120px 70px at 18% 80%, rgba(255, 120, 50, .35), transparent 70%),
    radial-gradient(90px 60px at 80% 20%, rgba(255, 196, 90, .28), transparent 68%),
    linear-gradient(160deg, #3a241c, #1a1214 70%);
  border-color: rgba(255, 170, 90, .16);
}
.hot-rank, .hot-votes { color: rgba(255, 214, 180, .7); }
.hot-sub { color: rgba(255, 196, 160, .55); }
.hot-tile:hover { border-color: rgba(255, 160, 80, .45); }

.hot-tile { position: relative; overflow: hidden; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.hot-stage { transition: transform .35s ease, filter .35s ease; }
.hot-logo { transition: transform .35s ease; }
.hot-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,210,150,.18) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.hot-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 170, 80, .7);
  box-shadow: 0 12px 28px rgba(255, 90, 20, .22);
}
.hot-tile:hover .hot-stage { filter: saturate(1.35) brightness(1.12); transform: scale(1.04); }
.hot-tile:hover .hot-logo { transform: scale(1.08) rotate(-4deg); }
.hot-tile:hover::after { transform: translateX(120%); transition: transform .7s ease; }
@media (prefers-reduced-motion: reduce) {
  .hot-tile, .hot-stage, .hot-logo, .hot-tile::after { transition: none; }
}

.home-rail {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible !important;
}
.home-rail .container {
  max-width: 1240px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.home-rail .hot-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 14px 0 18px !important;
}
.home-rail .hot-tile {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  position: relative;
}
.hot-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 980px) {
  .home-rail .hot-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .home-rail .hot-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
.hot-tile { overflow: visible; }
.hot-stage { overflow: hidden; }
.hot-tile:hover { transform: translateY(-6px); }
.hot-tile:hover .hot-stage { transform: none; }
.hot-tile::after { border-radius: 18px; overflow: hidden; }

.hot-tile::after { display: none !important; content: none !important; }

.server-hero { height: auto; aspect-ratio: 1920 / 560; }
@media (max-width: 640px) {
  .server-hero { height: auto; aspect-ratio: 1920 / 560; }
}

#servers .game-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
#servers .game-toggle-btn {
  min-width: 84px;
  padding: 8px 14px;
  border-radius: 10px;
  text-align: center;
  color: rgba(255,255,255,.62);
  background: transparent;
  box-shadow: none;
}
#servers .game-toggle-btn.is-on {
  color: #fff;
  background: rgba(255,255,255,.1);
}
#servers .game-toggle-btn.is-soon { opacity: .4; }

#servers .game-toggle { display: flex; width: max-content; margin: 0 auto 16px; }
#servers .container.is-swapping { opacity: .55; transition: opacity .15s ease; }

/* ========== Owner Dashboard ========== */
.script-sponsor-dash {
  max-width: none;
  width: fit-content;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  margin: 14px 0 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.dash-actions-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.dash-actions .btn,
.dash-actions form,
.dash-actions button {
  margin: 0;
}
.dash-actions .btn,
.dash-actions button.btn,
.dash-pill {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
.dash-pill {
  font-weight: 700;
  letter-spacing: .01em;
}
.dash-pill.on {
  color: #3ddc97;
  background: rgba(61, 220, 151, .1);
  border: 1px solid rgba(61, 220, 151, .35);
}
.dash-hooks {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.dash-hooks summary {
  cursor: pointer;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}
.dash-hooks summary::-webkit-details-marker { display: none; }
.dash-hooks[open] summary { margin-bottom: 12px; color: var(--text); }

/* Vote rewards */
.reward-card {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 8px 0 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 106, 61, 0.18);
  background: var(--bg-card);
}
.reward-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: -2px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.reward-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-soft);
}
.reward-head strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.reward-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.reward-mode-opt {
  position: relative;
  margin: 0;
}
.reward-mode-opt input { position: absolute; opacity: 0; pointer-events: none; }
.reward-mode-opt span {
  display: block;
  text-align: center;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.reward-mode-opt input:checked + span {
  background: linear-gradient(135deg, var(--pink), #c41e70);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 106, 61, 0.25);
}
.reward-card .section-sub {
  margin: 10px 0 12px;
}
.reward-block {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.reward-block > strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.reward-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  align-items: center;
}
.reward-row input[type="text"] { flex: 1; min-width: 0; }
.reward-row input[type="number"] { width: 72px; flex: 0 0 72px; }
.reward-row .btn { flex: 0 0 auto; min-width: 36px; }
.key-box {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.key-box input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.25);
}
.key-box .btn { flex: 0 0 auto; }
.reward-card pre {
  white-space: pre-wrap;
  font-size: 12px;
  color: var(--cyan);
  margin: 8px 0 0;
  padding: 10px 12px;
  background: rgba(255, 201, 77, 0.06);
  border: 1px solid rgba(255, 201, 77, 0.15);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.reward-card label[data-enabled-label] {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  margin: 12px 0 10px;
}
.reward-card .reward-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.reward-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.reward-note {
  margin: 10px 0 4px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ========== Vote API docs ========== */
.docs-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  margin-bottom: 16px;
}
.docs-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.docs-head h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}
.docs-method {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 201, 77, 0.12);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.docs-lead {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 14px;
}
.docs-label {
  margin: 12px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.docs-code {
  margin: 0;
  padding: 12px 14px;
  background: #0a0a12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: #d6d6e0;
  white-space: pre-wrap;
  overflow-x: auto;
}
.docs-code-url {
  color: var(--cyan);
}
.docs-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}
.docs-fields {
  margin: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 14px;
  font-size: 13px;
}
.docs-fields dt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--pink-soft);
  font-weight: 600;
}
.docs-fields dd {
  margin: 0;
  color: var(--text-muted);
}
.docs-list {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}
.docs-list li { margin: 4px 0; }
.docs-block-note {
  border-color: rgba(255, 201, 77, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 201, 77, 0.05), transparent 60%),
    var(--bg-card);
}

/* Dashboard page header */
.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dash-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
}
.dash-hero h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.dash-hero p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}
@media (max-width: 640px) {
  .dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== Whitelist builder ========== */
.wl-server { margin-bottom: 14px; padding: 14px 16px; }
.wl-section { margin-top: 18px; }
.wl-section h2,
.wl-section-head h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.wl-section-head h2 { margin: 0; }
.wl-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.wl-link {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
}
.wl-link a { color: var(--cyan); text-decoration: none; }
.wl-link a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .wl-link { margin-left: 0; width: 100%; }
}

/* Homepage sections mesh together */
.hero { padding-bottom: 8px; }
.featured-section {
  padding-top: 6px !important;
  padding-bottom: 4px !important;
}
.featured-section .section-header { margin-bottom: 14px; }
.featured-carousel { padding: 0 0 4px; }
.home-rail {
  padding-top: 10px !important;
  padding-bottom: 8px !important;
}
.home-rail .section-header { margin-bottom: 10px; }
.home-rail .trending-heading { letter-spacing: -.02em; }

/* Featured scroller controls + shared homepage surfaces */
.featured-carousel { position: relative; }
.feat-nav {
  position: absolute;
  top: calc(var(--feat-h, 240px) / 2);
  transform: translateY(-50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(7,7,12,.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  transition: background .15s, border-color .15s, transform .15s;
}
.feat-nav svg { width: 16px; height: 16px; display: block; }
.feat-nav:hover {
  background: rgba(7,7,12,.8);
  border-color: rgba(255,255,255,.4);
  transform: translateY(-50%) scale(1.04);
}
.feat-prev { left: 14px; }
.feat-next { right: 14px; }
.feat-wrap { border: 1px solid rgba(255,255,255,.08); }

/* Hot tiles share the same card surface as the stats */
.hot-tile {
  background: color-mix(in srgb, var(--bg-elevated) 88%, #000) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 16px;
}
.hot-stage {
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 50%),
    color-mix(in srgb, var(--bg-card) 90%, #000) !important;
  border-color: rgba(255,255,255,.06) !important;
}
.hot-tile:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(255,160,80,.4) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.28) !important;
}
.featured-section .section-header,
.home-rail .section-header {
  align-items: flex-end;
}
.featured-heading,
.home-rail .trending-heading {
  font-family: var(--font-display);
  letter-spacing: -.02em;
}

/* Live HUD stats */
.hero-stats.hud {
  display: grid !important;
  grid-template-columns: 1.15fr .85fr;
  gap: 12px !important;
  padding: 12px !important;
  align-items: stretch;
}
.hero-stats.hud .stat-lead {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 18px 22px;
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 100%, rgba(255, 201, 77,.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 50%),
    color-mix(in srgb, var(--bg-elevated) 86%, #000);
}
.hero-stats.hud .stat-lead::before { display: none; }
.stat-lead-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dff9a;
  box-shadow: 0 0 0 0 rgba(61,255,154,.6);
  animation: stat-pulse 1.8s ease-out infinite;
}
.hero-stats.hud .stat-lead .stat-label {
  margin: 0;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-stats.hud .stat-lead .stat-value {
  margin-top: 6px;
  font-size: 52px;
  line-height: 1;
  text-align: left;
}
.stat-meter {
  margin-top: 14px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.stat-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #7cf6ff);
  box-shadow: 0 0 12px rgba(255, 201, 77,.6);
}
.stat-stack {
  display: grid;
  gap: 8px;
}
.hero-stats.hud .stat-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
}
.hero-stats.hud .stat-row::before { display: none; }
.hero-stats.hud .stat-row .stat-icon { margin: 0; width: 28px; height: 28px; }
.hero-stats.hud .stat-row .stat-label {
  margin: 0;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
}
.hero-stats.hud .stat-row .stat-value {
  font-size: 20px;
  text-align: right;
}
@media (max-width: 720px) {
  .hero-stats.hud { grid-template-columns: 1fr !important; }
  .hero-stats.hud .stat-lead .stat-value { font-size: 40px; }
}

/* Glass strip stats */
.stat-strip {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  padding: 6px 8px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    color-mix(in srgb, var(--bg-card) 80%, transparent) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 16px 40px rgba(0,0,0,.28) !important;
  backdrop-filter: blur(16px);
}
.stat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 22px;
}
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: rgba(255,255,255,.08);
}
.stat-item .stat-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
}
.stat-item .stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}
.stat-item .stat-value::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--stat-accent, var(--cyan));
  box-shadow: 0 0 10px var(--stat-accent, var(--cyan));
}
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: 1fr 1fr !important; }
  .stat-item:nth-child(odd)::before { display: none; }
  .stat-item .stat-value { font-size: 26px; }
}

/* Ring gauge stats */
.stat-rings {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
  padding: 8px 4px !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ring-dial {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(7,7,12,.92) 58%, transparent 59%),
    conic-gradient(from 220deg, var(--stat-accent, var(--cyan)) 0 72%, rgba(255,255,255,.08) 72% 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 12px 30px rgba(0,0,0,.35);
}
.ring .stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}
.ring .stat-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
@media (max-width: 720px) {
  .stat-rings { grid-template-columns: repeat(2, 1fr) !important; }
  .ring-dial { width: 112px; height: 112px; }
  .ring .stat-value { font-size: 24px; }
}

/* Sensible stats row */
.stat-row4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  padding: 4px !important;
}
.stat-row4 .stat {
  display: flex !important;
  align-items: center;
  gap: 12px;
  text-align: left !important;
  padding: 14px 16px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.stat-row4 .stat::before { display: none !important; }
.stat-row4 .stat + .stat { border-left: 1px solid rgba(255,255,255,.08) !important; }
.stat-row4 .stat-icon { margin: 0; flex: 0 0 32px; width: 32px; height: 32px; }
.stat-row4 .stat-copy { min-width: 0; }
.stat-row4 .stat-value {
  font-size: 26px;
  text-align: left;
  background: none;
  -webkit-text-fill-color: var(--stat-accent, #fff);
  color: var(--stat-accent, #fff);
}
.stat-row4 .stat-label {
  margin: 2px 0 0;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
}
@media (max-width: 720px) {
  .stat-row4 { grid-template-columns: 1fr 1fr !important; }
  .stat-row4 .stat:nth-child(odd) { border-left: 0 !important; }
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.admin-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.admin-tab.is-on {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #c41e70);
}

/* Admin server rows */
.admin-server {
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.admin-server-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.admin-server-name a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.admin-server-name a:hover { color: var(--cyan); }
.admin-server-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-dim);
}
.admin-server-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.admin-pair {
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-pair .tf-select { width: auto; height: 32px; }
.admin-del { color: #ff7b8a !important; border-color: rgba(239,68,68,.35) !important; }
.admin-bg {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.admin-bg input { flex: 1; }

/* Admin server card polish */
.admin-server-name a {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-pair {
  padding: 3px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.admin-pair .tf-select {
  border: 0;
  background: transparent;
  height: 28px;
}
.admin-bg {
  align-items: center;
}
.admin-bg input {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: #0c0c14;
  color: var(--text);
  padding: 0 12px;
}

/* Description editor */
.desc-editor textarea {
  border-radius: 0 0 12px 12px;
  min-height: 180px;
  line-height: 1.55;
}
.desc-bar {
  display: flex;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.1);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: rgba(255,255,255,.03);
}
.desc-bar button {
  height: 28px;
  min-width: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.desc-bar button:hover { border-color: rgba(255, 201, 77,.4); color: var(--cyan); }
.server-desc { color: var(--text-muted); line-height: 1.65; }
.server-desc p { margin: 0 0 10px; }
.server-desc h3, .server-desc h4 { color: var(--text); margin: 14px 0 6px; }
.server-desc ul { margin: 0 0 10px; padding-left: 18px; }
.server-desc a { color: var(--cyan); }
.dash-hero p a { color: var(--cyan); text-decoration: none; }

/* Listed orbit chips */
.hero-chip.is-listed {
  border-color: rgba(255, 201, 77,.35);
  background:
    linear-gradient(180deg, rgba(18,28,40,.95), rgba(8,12,18,.9));
  box-shadow:
    0 12px 28px rgba(0,0,0,.4),
    0 0 0 1px rgba(255, 201, 77,.12),
    0 0 22px rgba(255, 201, 77,.18);
  animation: hero-float 5.2s ease-in-out infinite, chip-glow 3.4s ease-in-out infinite;
}
.hero-chip.is-listed .hero-chip-mark {
  position: relative;
  box-shadow: 0 0 0 0 rgba(52,211,153,.5);
}
.hero-chip.is-live .hero-chip-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  border: 1px solid rgba(52,211,153,.7);
  animation: chip-ping 1.8s ease-out infinite;
}
.hero-chip.is-live .hero-chip-meta { color: #34d399; }
.hero-chip.is-listed:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(255, 201, 77,.7);
}
@keyframes chip-glow {
  0%,100% { box-shadow: 0 12px 28px rgba(0,0,0,.4), 0 0 18px rgba(255, 201, 77,.12); }
  50% { box-shadow: 0 12px 28px rgba(0,0,0,.4), 0 0 28px rgba(255, 201, 77,.32); }
}
@keyframes chip-ping {
  0% { transform: scale(.85); opacity: .8; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Hero core refresh */
.hero-halo {
  position: absolute;
  left: 50%; top: 50%;
  width: 300px; height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 201, 77,.16), transparent 62%);
  filter: blur(2px);
  animation: hero-halo 6s ease-in-out infinite;
}
.hero-orbit {
  border: 1px solid rgba(255, 201, 77,.28) !important;
  border-style: solid !important;
  box-shadow: 0 0 24px rgba(255, 201, 77,.12), inset 0 0 24px rgba(255, 201, 77,.06);
}
.hero-orbit-2 {
  border-style: dashed !important;
  border-color: rgba(255, 106, 61,.4) !important;
  opacity: .8;
}
.hero-orbit-3 { display: none; }
.hero-core {
  width: 148px !important;
  height: 148px !important;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 201, 77,.18), transparent 55%),
    linear-gradient(180deg, rgba(16,22,34,.96), rgba(6,8,14,.96)) !important;
  border: 1px solid rgba(255, 201, 77,.4) !important;
  box-shadow:
    0 0 0 8px rgba(255, 201, 77,.05),
    0 0 40px rgba(255, 201, 77,.28),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.hero-core strong {
  font-size: 40px !important;
  letter-spacing: -.02em;
}
.hero-core-live {
  position: absolute;
  top: 16px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: stat-pulse 1.8s ease-out infinite;
}
@keyframes hero-halo {
  0%,100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Reviews empty state */
.reviews-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.reviews-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.reviews-head span {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
}
.reviews-empty {
  padding: 28px 18px;
  border-radius: 14px;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed rgba(255,255,255,.1);
}
.reviews-empty strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.reviews-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

/* Index lab (admin test) */
.lab { padding-top: 28px; }
.lab-banner {
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.1);
}
.lab-banner a { color: var(--cyan); }
.lab-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.lab-stats div {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.lab-stats strong { display: block; font-size: 28px; letter-spacing: -.02em; }
.lab-stats span { font-size: 12px; color: var(--text-dim); letter-spacing: .06em; text-transform: uppercase; }
.lab-games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.lab-game {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.lab-game.is-on { border-color: rgba(255, 201, 77,.5); box-shadow: 0 0 0 1px rgba(255, 201, 77,.2); }
.lab-game-name { font-weight: 700; font-size: 16px; }
.lab-game-meta { font-size: 12px; color: var(--text-dim); }
.lab-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.lab-filters { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); }
.lab-filters label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.lab-filters input, .lab-filters select { width: 100%; margin-top: 4px; }
.lab-list { border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; }
.lab-list-head, .lab-row {
  display: grid;
  grid-template-columns: 56px 1fr 110px 80px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
}
.lab-list-head { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.lab-row { text-decoration: none; color: var(--text); border-bottom: 1px solid rgba(255,255,255,.04); }
.lab-row:hover { background: rgba(255,255,255,.03); }
.lab-rank { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.lab-name strong { display: block; }
.lab-name em { font-style: normal; font-size: 12px; color: var(--text-dim); }
.lab-votes { font-weight: 700; color: var(--cyan); }
.lab-empty { padding: 28px; text-align: center; color: var(--text-dim); }
@media (max-width: 800px) {
  .lab-layout, .lab-games, .lab-stats { grid-template-columns: 1fr; }
  .lab-list-head { display: none; }
  .lab-row { grid-template-columns: 40px 1fr; }
  .lab-players, .lab-votes { display: none; }
}

/* Index lab v2 */
.lab2 { padding: 36px 0 64px; }
.lab2-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}
.lab2-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink-soft);
}
.lab2-hero h1 {
  margin: 0;
  font-size: 40px;
  letter-spacing: -.03em;
  line-height: 1;
}
.lab2-hero p { margin: 8px 0 0; color: var(--text-dim); }
.lab2-stats { display: flex; gap: 22px; }
.lab2-stats strong { display: block; font-size: 26px; letter-spacing: -.02em; }
.lab2-stats span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.lab2-games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.lab2-game {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 55%),
    #101018;
  border: 1px solid rgba(255,255,255,.08);
}
.lab2-game::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.lab2-game.is-on { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.lab2-game-label { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.lab2-game-sub { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.lab2-game-count { font-size: 22px; font-weight: 700; }
.lab2-game-count em { font-style: normal; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.45); margin-left: 4px; }
.lab2-game-online { font-size: 12px; color: var(--accent); }
.lab2-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.lab2-bar input, .lab2-bar select { height: 38px; }
.lab2-bar input { flex: 1; }
.lab2-list { display: flex; flex-direction: column; gap: 6px; }
.lab2-row {
  display: grid;
  grid-template-columns: 52px 42px 1fr 120px 90px;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: #101018;
  border: 1px solid rgba(255,255,255,.06);
}
.lab2-row:hover { border-color: rgba(255, 201, 77,.35); background: #14141e; }
.lab2-rank { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.4); font-weight: 700; }
.lab2-rank.top { color: var(--cyan); }
.lab2-logo, .lab2-logo img {
  width: 42px; height: 42px; border-radius: 10px;
  object-fit: cover;
}
.lab2-logo {
  display: grid; place-items: center;
  background: #1c1c28;
  font-weight: 800;
}
.lab2-info strong { display: block; font-size: 15px; }
.lab2-info em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.45); }
.lab2-pop { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.7); }
.lab2-pop b { color: #fff; font-size: 16px; }
.lab2-pop i { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #555; }
.lab2-pop i.on { background: #34d399; box-shadow: 0 0 8px #34d399; }
.lab2-votes { text-align: right; font-weight: 800; font-size: 16px; }
.lab2-votes small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.lab2-empty { padding: 32px; text-align: center; color: var(--text-dim); }
@media (max-width: 800px) {
  .lab2-hero, .lab2-games { display: block; }
  .lab2-game { margin-bottom: 8px; }
  .lab2-row { grid-template-columns: 36px 36px 1fr; }
  .lab2-pop, .lab2-votes { display: none; }
}

/* The floor — homepage lab */
.floor { padding: 28px 0 80px; background:
  radial-gradient(900px 400px at 80% -10%, rgba(255, 201, 77,.08), transparent 60%),
  radial-gradient(700px 300px at 0% 0%, rgba(255, 106, 61,.06), transparent 55%);
}
.floor-top { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.floor-brand { display: flex; align-items: baseline; gap: 8px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.floor-brand em { font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-soft); }
.floor-games { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.floor-games a { padding: 7px 14px; border-radius: 9px; text-decoration: none; color: rgba(255,255,255,.55); font-weight: 700; font-size: 13px; }
.floor-games a.is-on { background: #fff; color: #0b0b12; }
.floor-live { margin-left: auto; text-align: right; }
.floor-live b { display: block; font-size: 22px; letter-spacing: -.02em; }
.floor-live span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.floor-feature {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  min-height: 180px; margin-bottom: 16px; padding: 20px 22px;
  border-radius: 18px; text-decoration: none; color: #fff;
  background:
    linear-gradient(180deg, rgba(6,8,14,.2), rgba(6,8,14,.82)),
    var(--bg, #14141c) center/cover;
  border: 1px solid rgba(255,255,255,.08);
}
.floor-feature-tag { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.floor-feature strong { font-size: 32px; letter-spacing: -.02em; line-height: 1; }
.floor-search { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.floor-search input { flex: 1; height: 42px; border-radius: 12px; }
.floor-search button { height: 42px; padding: 0 16px; border-radius: 12px; border: 0; background: #fff; color: #0b0b12; font-weight: 700; cursor: pointer; }
.floor-count { font-size: 12px; color: rgba(255,255,255,.4); }
.floor-board { display: flex; flex-direction: column; gap: 6px; }
.floor-row {
  display: grid; grid-template-columns: 46px 46px 1fr 180px 90px; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 14px; text-decoration: none; color: #fff;
  background: rgba(16,16,24,.8); border: 1px solid rgba(255,255,255,.06);
  transition: border-color .15s, transform .15s;
}
.floor-row:hover { border-color: rgba(255, 201, 77,.4); transform: translateY(-1px); }
.floor-rank { font-size: 18px; font-weight: 800; color: rgba(255,255,255,.35); font-variant-numeric: tabular-nums; }
.floor-row.gold .floor-rank { color: #ffc14a; }
.floor-row.silver .floor-rank { color: #d7dbe6; }
.floor-row.bronze .floor-rank { color: #e0a36a; }
.floor-logo, .floor-logo img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.floor-logo { display: grid; place-items: center; background: #1c1c28; font-weight: 800; }
.floor-id strong { display: block; font-size: 15px; }
.floor-id em { display: flex; align-items: center; gap: 6px; font-style: normal; font-size: 12px; color: rgba(255,255,255,.45); }
.floor-id img { width: 16px; height: 12px; border-radius: 2px; }
.floor-id i { font-style: normal; color: #34d399; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 10px; }
.floor-bar { position: relative; height: 28px; border-radius: 8px; background: rgba(255,255,255,.05); overflow: hidden; }
.floor-bar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(255, 201, 77,.35), rgba(255, 201, 77,.08)); }
.floor-bar b { position: relative; display: flex; align-items: center; height: 100%; padding: 0 10px; font-size: 13px; }
.floor-bar small { color: rgba(255,255,255,.4); margin-left: 2px; }
.floor-votes { text-align: right; font-weight: 800; }
.floor-votes small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.floor-note { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,.35); }
.floor-note a { color: var(--cyan); }
.floor-empty { padding: 40px; text-align: center; color: rgba(255,255,255,.4); }
.field-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.is-locked { opacity: 0.85; cursor: not-allowed !important; background: rgba(255,255,255,0.03) !important; }
.change-block {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
  margin-top: 6px;
}
.change-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.change-row input { flex: 1; min-width: 0; }
.change-row .btn { flex: 0 0 auto; white-space: nowrap; }
.link-preview {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 201, 77, 0.08);
  border: 1px solid rgba(255, 201, 77, 0.28);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.link-preview-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.link-preview-url {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  word-break: break-all;
}
.link-preview.is-ready {
  background: rgba(255, 201, 77, 0.14);
  border-color: rgba(255, 201, 77, 0.5);
}
@media (max-width: 560px) {
  .change-row { flex-direction: column; align-items: stretch; }
  .change-row .btn { width: 100%; }
}
@media (max-width: 800px) {
  .floor-top { flex-wrap: wrap; }
  .floor-row { grid-template-columns: 32px 36px 1fr; }
  .floor-bar, .floor-votes { display: none; }
  .floor-feature strong { font-size: 24px; }
}

/* Orbit / featured purchase pages */
.slot-page { max-width: 640px; }
.slot-hero { margin: 0 0 18px; }
.slot-hero h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.slot-hero p {
  margin: 8px 0 0;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 15px;
}
.slot-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}
.slot-point {
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}
.slot-point strong { display: block; font-size: 14px; font-weight: 700; }
.slot-point span { display: block; margin-top: 3px; font-size: 12px; color: var(--text-dim); }
.slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.slot-card h2 { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.slot-card > p { margin: 0 0 14px; color: var(--text-dim); }
.slot-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.slot-total span {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.slot-total strong { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.slot-note { margin: 0 0 14px; font-size: 12px; color: var(--text-dim); }
@media (max-width: 560px) {
  .slot-points { grid-template-columns: 1fr; }
  .slot-hero h1 { font-size: 26px; }
}

.modal-stat.is-switch {
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 201, 77,.18), 0 0 18px rgba(255, 201, 77,.12);
  transition: box-shadow .15s, transform .15s;
}
.modal-stat.is-switch:hover,
.modal-stat.is-switch.is-on {
  box-shadow: 0 0 0 1px rgba(255, 201, 77,.45), 0 0 24px rgba(255, 201, 77,.22);
  transform: translateY(-1px);
}
.reward-board .reward-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 6px;
}
.reward-item {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(61,214,140,.12);
  border: 1px solid rgba(61,214,140,.28);
  color: #b7f5d4;
  font-size: 12px;
  font-weight: 700;
}
.reward-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-dim);
}
.reward-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reward-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.reward-rank {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,.4);
}
.reward-name { font-size: 14px; font-weight: 600; }
.reward-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan);
}


/* ========== Server Info Tabs (Description / Media) ========== */
.server-info-tabs {
  margin-bottom: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.server-tab-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 8px;
}

.server-tab {
  position: relative;
  padding: 14px 22px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.server-tab:hover {
  color: var(--text);
}

.server-tab.is-active {
  color: #fff;
}

.server-tab.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), #00a8cc);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 10px rgba(255, 201, 77, 0.5);
}

.tab-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  background: var(--cyan);
  color: #041016;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  vertical-align: middle;
}

.server-tab-panel {
  padding: 20px 22px 24px;
}

.server-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.server-desc h3,
.server-desc h4 {
  margin: 1.1em 0 0.4em;
  color: #fff;
  font-size: 16px;
}

.server-desc ul {
  margin: 0.5em 0 0.5em 1.2em;
}

.server-desc a {
  color: var(--cyan);
}

.server-meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text-dim);
}

.server-meta code {
  color: var(--cyan);
  background: rgba(255, 201, 77, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.empty-state {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* Media grid — fixed aspect thumbnails */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.media-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a12;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.media-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.media-item:hover {
  border-color: rgba(255, 201, 77, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 201, 77, 0.12);
}

.media-item:hover img {
  transform: scale(1.05);
}

.media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.2s;
}

.media-overlay span {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
}

.media-item:hover .media-overlay {
  opacity: 1;
}

/* Lightbox */
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 10, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.media-lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(90vw, 1300px);
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 201, 77, 0.3);
}

.lightbox-close {
  top: 16px;
  right: 16px;
  font-size: 26px;
}

.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .server-tab {
    padding: 12px 16px;
    font-size: 13px;
  }
  .server-tab-panel {
    padding: 16px;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ========== Server Stats Page ========== */
.stats-header {
  margin-bottom: 24px;
}
.stats-back {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.stats-back:hover {
  text-decoration: underline;
}
.stats-keyfigures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.stat-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}
.stat-bar {
  margin-top: 10px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.stat-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #00a8cc);
  border-radius: 999px;
}
.stats-charts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px 16px;
}
.chart-card h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.chart-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.chart-card canvas {
  width: 100% !important;
  max-height: 260px;
}
@media (max-width: 600px) {
  .stats-keyfigures {
    grid-template-columns: 1fr 1fr;
  }
  .stat-value { font-size: 22px; }
  .chart-card { padding: 16px; }
}

/* ========== Enhanced Server Rows ========== */
.server-row {
  background: linear-gradient(135deg, rgba(18,18,28,.95), rgba(14,14,22,.98));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.server-row:hover {
  border-color: rgba(255, 201, 77,.35);
  box-shadow:
    inset 3px 0 0 var(--cyan),
    0 8px 28px rgba(0,0,0,.4),
    0 0 20px rgba(255, 201, 77,.08);
  transform: translateY(-1px);
}
.server-rank {
  font-size: 15px;
}
.server-rank.top1 .rank-num {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255,180,0,.4));
}
.server-rank.top2 .rank-num {
  background: linear-gradient(135deg, #e8e8e8, #a0a0a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.server-rank.top3 .rank-num {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.server-list-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.server-list-icon.fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-muted);
}
.server-name {
  font-size: 15px;
  font-weight: 650;
}
.server-spark {
  color: var(--cyan);
  opacity: 0.85;
}
.server-spark svg {
  filter: drop-shadow(0 0 4px rgba(255, 201, 77,.4));
}
.server-votes-col .players-count-lg {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.btn-join {
  padding: 7px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: all .18s ease;
}
.server-row:hover .btn-join {
  background: rgba(255, 201, 77,.12);
  border-color: rgba(255, 201, 77,.4);
  color: var(--cyan);
}
.server-row.is-offline {
  opacity: 0.65;
}
.server-row.is-offline:hover {
  opacity: 0.85;
}

/* ========== Orbit slots — bigger, more special ========== */
.hero-stage {
  height: 420px;
}
.hero-core {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 40% 35%, #1e2838, #0a0e16);
  border: 2px solid rgba(255, 201, 77,.4);
  box-shadow:
    0 0 60px rgba(255, 201, 77,.2),
    0 0 100px rgba(255, 106, 61,.1),
    inset 0 0 30px rgba(255, 201, 77,.08);
}
.hero-core strong {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-core span {
  font-size: 10px;
  letter-spacing: .14em;
}
.hero-orbit {
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
}
.hero-orbit-2 {
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
}
.hero-chip {
  max-width: 180px;
  padding: 10px 14px 10px 10px;
  gap: 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20,24,36,.9), rgba(10,12,18,.85));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 24px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.hero-chip:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(255, 201, 77,.5);
  box-shadow: 0 12px 32px rgba(0,0,0,.5), 0 0 20px rgba(255, 201, 77,.15);
}
.hero-chip-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 16px;
}
.hero-chip-name {
  font-size: 13px;
  font-weight: 700;
}
.hero-chip-meta {
  font-size: 10px;
  margin-top: 3px;
}
.hero-chip.is-open {
  border-style: dashed;
  border-color: rgba(255, 201, 77,.3);
  background: rgba(8,12,18,.5);
}
.hero-chip.is-open:hover {
  border-color: rgba(255, 201, 77,.6);
  background: rgba(255, 201, 77,.06);
}
.hero-chip.is-open .hero-chip-mark {
  width: 40px;
  height: 40px;
  font-size: 20px;
  border-color: rgba(255, 201, 77,.5);
}
.hero-chip-1 { left: 2%; top: 12%; }
.hero-chip-2 { right: 0; top: 22%; }
.hero-chip-3 { left: 0; bottom: 16%; }
.hero-chip-4 { right: 2%; bottom: 10%; }
.hero-chip-5 { left: 32%; top: 0; }
@media (max-width: 860px) {
  .hero-stage { height: 280px; }
  .hero-chip { max-width: 140px; padding: 8px 10px 8px 8px; }
  .hero-chip-mark { width: 32px; height: 32px; }
  .hero-core { width: 110px; height: 110px; }
  .hero-core strong { font-size: 26px; }
}

/* ========== Report page ========== */
.report-page {
  max-width: 560px;
  margin: 8px auto 48px;
}
.report-head {
  margin-bottom: 20px;
}
.report-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.report-kicker svg { color: #ff4d8d; }
.report-head .section-title { margin: 0 0 6px; }
.report-head .section-sub { margin: 0; max-width: 46ch; color: var(--text-muted); }

.report-target {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}
.report-target-type {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 106, 61,.12);
  color: #ff7ab8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.report-target-label {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,255,255,.82);
  word-break: break-word;
}

.report-form { padding: 20px 20px 18px; }
.report-form .modal-field { margin-bottom: 16px; }
.report-form .modal-field:last-of-type { margin-bottom: 8px; }
.report-form label .req { color: #ff4d8d; }
.report-form label .opt {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.report-count {
  margin-top: 6px;
  text-align: right;
  font-size: 11.5px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.report-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.report-actions .btn-primary { flex: 1; }
.report-actions .btn-ghost {
  min-width: 96px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  text-align: center;
  justify-content: center;
}
.report-actions .btn-ghost:hover { background: rgba(255,255,255,.06); }
@media (max-width: 520px) {
  .report-actions { flex-direction: column; }
  .report-actions .btn-ghost { width: 100%; }
}

.server-edited {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: .01em;
}

/* ========== Partnership hang rail ========== */
.partner-stage { position: relative; }
.partner-hang {
  position: sticky;
  top: 76px;
  float: left;
  width: 268px;
  margin-left: 12px;
  margin-right: -268px;
  margin-top: 12px;
  z-index: 30;
  display: flex;
  align-items: stretch;
  height: 560px;
}
.partner-hang-tab {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 9px;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(180deg, #1a1a26, #0e0e16);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 0;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 12px 0 30px rgba(0,0,0,.3);
}
.partner-hang-panel {
  width: 236px;
  height: 560px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px 14px;
  border-radius: 0 18px 18px 0;
  background:
    radial-gradient(200px 140px at 0 0, rgba(255, 201, 77,.1), transparent 72%),
    linear-gradient(180deg, #161622, #101018);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 0;
  box-shadow: 22px 18px 50px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
}
.partner-hang-head span {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.partner-hang-head small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  line-height: 1.35;
}
.partner-hang-card {
  position: relative;
  display: flex;
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(120px 120px at 50% 38%, rgba(255, 201, 77,.22), transparent 68%),
    radial-gradient(180px 140px at 80% 90%, rgba(255, 106, 61,.14), transparent 70%),
    radial-gradient(140px 100px at 12% 12%, rgba(120,90,255,.16), transparent 72%),
    linear-gradient(180deg, #1c2030 0%, #12151f 48%, #0c0e16 100%);
  transition: border-color .16s ease, transform .16s ease;
}
.partner-hang-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}
.partner-hang-card:hover {
  border-color: rgba(255, 201, 77,.5);
  transform: translateY(-1px);
}
.partner-hang-card.is-empty {
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: rgba(255, 201, 77,.28);
}
.partner-hang-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,14,.15), rgba(8,8,14,.72)),
    var(--pcard-bg) center/cover no-repeat;
  opacity: 0;
}
.partner-hang-card.has-bg .partner-hang-bg { opacity: 1; }
.partner-hang-card.has-bg::before { display: none; }
.partner-hang-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 24px 18px;
}
.partner-hang-card.has-bg .partner-hang-body {
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
}
.partner-hang-body img,
.partner-hang-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
}
.partner-hang-mark {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 28px;
  color: #041016;
  background: linear-gradient(135deg, #ffc94d, #7af0ff);
  box-shadow: 0 0 0 8px rgba(255, 201, 77,.08), 0 14px 30px rgba(255, 201, 77,.28);
}
.partner-hang-body strong {
  display: block;
  font-size: 20px;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.partner-hang-stats {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.78);
}
.partner-hang-stats span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.partner-hang-card.has-bg .partner-hang-stats { justify-content: flex-start; }
.partner-hang-body em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12.5px;
  color: rgba(255,255,255,.58);
  line-height: 1.4;
}
.partner-hang-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255,255,255,.55);
  background: none;
  box-shadow: none;
}
.partner-hang-cta:hover { color: #fff; }
@media (max-width: 1280px) {
  .partner-hang { display: none; }
}

.sidebar-bg-preview {
  margin-top: 8px;
  height: 160px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.16);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.sidebar-bg-preview.is-default,
.sidebar-bg-preview:not([style*="background-image"]) {
  background:
    radial-gradient(90px 90px at 50% 38%, rgba(255, 201, 77,.22), transparent 68%),
    radial-gradient(120px 90px at 80% 90%, rgba(255, 106, 61,.14), transparent 70%),
    linear-gradient(180deg, #1c2030 0%, #12151f 48%, #0c0e16 100%);
}
.sidebar-bg-preview span {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,.45);
  border-radius: 8px;
  padding: 4px 8px;
}

/* ========== Alerts ========== */
.alerts-wrap { max-width: 760px; }
.alerts-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.alerts-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: rgba(255, 201, 77,.14);
  color: #ffc94d;
  font-size: 12px;
  font-weight: 800;
}
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alert-row {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  transition: border-color .15s ease, background .15s ease;
}
a.alert-row:hover {
  border-color: rgba(255, 201, 77,.35);
  background: rgba(255, 201, 77,.04);
}
.alert-row.is-unread {
  border-color: rgba(255, 201, 77,.22);
  background: rgba(255, 201, 77,.035);
}
.alert-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: transparent;
  flex: 0 0 auto;
}
.alert-row.is-unread .alert-dot { background: #ffc94d; box-shadow: 0 0 10px rgba(255, 201, 77,.6); }
.alert-body { min-width: 0; flex: 1; }
.alert-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.alert-type {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.alert-top time {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}
.alert-body strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}
.alert-body p {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.58);
}
.alerts-empty {
  padding: 48px 20px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
}
.alerts-empty-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: rgba(255, 201, 77,.1);
  color: #ffc94d;
  font-weight: 800;
}
.alerts-empty strong { display: block; font-size: 16px; }
.alerts-empty p { margin: 6px 0 0; color: var(--text-dim); font-size: 13.5px; }
