/* ========== 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: #ff2d95;
  --pink-soft: #ff4d9e;
  --cyan: #00e8ff;
  --cyan-dim: #00b8cc;
  --orange: #ff8c42;
  --purple: #a855f7;
  --magenta: #e11d8a;

  --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, 45, 149, 0.25);
  --glow-cyan: 0 0 40px rgba(0, 232, 255, 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-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.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, 45, 149, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(255, 45, 149, 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: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 45, 149, 0.1);
  border: 1px solid rgba(255, 45, 149, 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, 45, 149, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 45, 149, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255, 45, 149, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 149, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.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: 560px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.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: 13px;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ========== 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(0, 232, 255, 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(0, 232, 255, 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:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 45, 149, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 45, 149, 0.08);
}

.server-rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dim);
  text-align: center;
}
.server-rank.top1 { color: #ffd700; text-shadow: 0 0 12px rgba(255, 215, 0, 0.4); }
.server-rank.top2 { color: #c0c0c0; }
.server-rank.top3 { color: #cd7f32; }

.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(168, 85, 247, 0.15); color: #c4b5fd; }
.tag.wl { background: rgba(34, 197, 94, 0.12); color: #86efac; }
.tag.public { background: rgba(0, 232, 255, 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(0, 232, 255, 0.12);
  border: 1px solid rgba(0, 232, 255, 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(0, 232, 255, 0.2);
  box-shadow: 0 0 16px rgba(0, 232, 255, 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, 45, 149, 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, 45, 149, 0.12), rgba(0, 232, 255, 0.08));
  border: 1px solid rgba(255, 45, 149, 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,45,149,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: 12px;
  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: 64px;
  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(0, 232, 255, 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(0, 232, 255, 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: #86efac; }
.flash-error { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }
.flash-info { background: rgba(0, 232, 255, 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(0, 232, 255, 0.35);
}
.dm-launcher.has-unread {
  border-color: rgba(255, 45, 149, 0.45);
  box-shadow: 0 10px 28px rgba(255, 45, 149, 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: 380px;
  max-width: calc(100vw - 24px);
  height: 520px;
  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,45,149,0.08), rgba(0,232,255,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-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(0, 232, 255, 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(0,232,255,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;
  overflow-y: auto;
  padding: 12px;
  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,45,149,0.28), rgba(0,232,255,0.18));
  border-color: rgba(0,232,255,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(0,232,255,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(0, 232, 255, 0.08);
  border-color: rgba(0, 232, 255, 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 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #04140a;
  background: linear-gradient(135deg, #86efac, #22d3ee);
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.4;
}
.verified-badge svg { display: block; flex-shrink: 0; }
.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(0, 232, 255, 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(0, 232, 255, 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(0, 232, 255, 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(0,232,255,.4);
  background:rgba(0,232,255,.08);
  color:#00e8ff;
}
.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:#00e8ff; background:rgba(0,232,255,.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(0,232,255,.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(0, 232, 255, 0.16);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  min-height: 56px;
}
.partner-strip-card:hover {
  border-color: rgba(0, 232, 255, 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(0,232,255,.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,45,149,.1);
  border: 1px solid rgba(255,45,149,.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(0,232,255,.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(0,232,255,.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(0,232,255,.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,45,149,.4); }

.server-list-head,
.server-row {
  display: grid !important;
  grid-template-columns: 52px minmax(180px, 1.4fr) minmax(140px, 0.7fr) 72px 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-row > .server-votes-col { grid-column: 4; text-align: right; }
.server-row > .server-actions { grid-column: 5; justify-content: flex-end; }
.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(0,232,255,.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,45,149,.45);
  box-shadow: 0 0 0 3px rgba(255,45,149,.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,45,149,.18), transparent 42%),
    radial-gradient(90% 120% at 100% 100%, rgba(0,232,255,.1), transparent 40%),
    #12121c;
  border: 1px solid rgba(255,45,149,.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,45,149,.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,45,149,.5);
  color: #fff;
  background: rgba(255,45,149,.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,45,149,.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);
}

.home-rail,
.home-rail .container,
.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(0,232,255,.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,45,149,.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,45,149,.35);
  background: rgba(255,45,149,.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(0,232,255,.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, #ff2d95);
}
.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(0,232,255,.35); }
