@import url("https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: rgba(10, 10, 10, 0.92);
  --border: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(225, 6, 0, 0.55);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --muted-dim: rgba(255, 255, 255, 0.4);
  --accent: #e10600;
  --accent-light: #ff1a1a;
  --accent-dark: #b00500;
  --accent-glow: rgba(225, 6, 0, 0.35);
  --accent-muted-bg: #1a0000;
  --header-h: 72px;
  --radius: 0;
  --radius-lg: 0;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Anton", "Bebas Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent);
  color: #fff;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1152px, calc(100% - 48px));
  margin-inline: auto;
}

.container-narrow {
  width: min(720px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.home-page .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.95);
  border-bottom-color: var(--border);
}

.header-inner {
  height: 100%;
  width: min(1152px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(225, 6, 0, 0.65)) drop-shadow(0 0 20px rgba(225, 6, 0, 0.35));
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: none;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.nav-desktop a {
  position: relative;
  transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: #fff;
}

.nav-desktop a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Discord auth ---------- */

.auth-widget {
  display: flex;
  align-items: center;
}

.auth-widget--mobile {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.auth-widget--mobile .btn-discord-login {
  width: 100%;
}

.btn-discord-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-discord-login:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

.btn-discord-login .discord-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: none;
  display: block;
  object-fit: contain;
  opacity: 1;
}

.auth-user {
  position: relative;
}

.auth-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.auth-user-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.auth-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.auth-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

.auth-username {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 60;
}

.auth-menu[hidden] {
  display: none;
}

.auth-menu-id {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--muted-dim);
}

.auth-menu-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

a.auth-menu-item:visited {
  color: var(--text);
}

.auth-menu-item:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-light);
}

@media (min-width: 900px) {
  .auth-widget--mobile {
    display: none;
  }
}

@media (max-width: 899px) {
  #authWidget:not(:empty) .btn-discord-login,
  #authWidget:not(:empty) .auth-user-btn {
    padding: 6px 10px;
  }

  #authWidget .auth-username {
    display: none;
  }
}

.btn-nav {
  display: none;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-nav:not(.btn-nav-discord) {
  color: var(--text);
  background: transparent;
}

.btn-nav:not(.btn-nav-discord):hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-nav-discord {
  background: linear-gradient(to right, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-nav-discord:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: inline-flex;
}

.mobile-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(var(--header-h) + 8px);
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--muted);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-red,
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}

.btn-red:hover,
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-ghost,
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.btn-ghost:hover,
.btn-secondary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(239, 68, 68, 0.1);
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero (Nexus-style) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 24px 48px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/hero-gta-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nexus-overlay {
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.12) 68%,
      transparent 100%
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.92) 100%);
}

.nexus-hero .hero-inner {
  position: relative;
  z-index: 2;
}

.nexus-hero .nexus-title-solid,
.nexus-hero .nexus-title-stroke,
.nexus-hero .hero-lead,
.nexus-hero .label-mono {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.nexus-hero .hero-visual {
  display: none;
}

.nexus-hero .hero-split {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.nexus-hero .hero-meta,
.nexus-hero .nexus-title,
.nexus-hero .hero-copy .hero-lead {
  text-align: left;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-meta-line {
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.label-mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.nexus-title {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.nexus-title-solid {
  display: block;
  color: #fff;
}

.nexus-title-stroke {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.hero-split {
  display: grid;
  gap: 32px;
  align-items: end;
}

@media (min-width: 960px) {
  .hero-split {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
  }
}

.hero-copy .hero-lead {
  margin: 0 0 28px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: left;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.hero-visual {
  position: relative;
}

.hero-visual-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
}

.hero-visual-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.45), transparent 50%, rgba(225, 6, 0, 0.35));
  mix-blend-mode: multiply;
}

.hero-visual-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 8px;
  background: var(--accent);
  color: #fff;
}

.hero-visual-coords {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-tape {
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: 88px;
  height: 88px;
  background: repeating-linear-gradient(-45deg, var(--accent), var(--accent) 14px, #000 14px, #000 28px);
  z-index: -1;
}

.hero-stat-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-strip.is-offline .status-dot[data-live="status-dot"] {
  background: var(--muted-dim);
  box-shadow: none;
  animation: none;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-stat-name {
  color: rgba(255, 255, 255, 0.55);
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #fff;
}

.hero-stat-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.status-dot--alt {
  background: var(--accent);
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* Legacy hero bits (other pages) */
.hero-particles {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  margin-inline: auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.status-badge:not(.is-offline) {
  border-color: rgba(225, 6, 0, 0.45);
}

.status-badge.is-offline {
  color: var(--muted);
}

.status-badge.is-offline .status-dot {
  background: var(--muted-dim);
  box-shadow: none;
  animation: none;
}

.hero-gradient {
  display: block;
  color: var(--accent-light);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 480px;
  margin-inline: auto;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.scroll-hint {
  display: none;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
  position: relative;
}

.section-kicker {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-kicker::before {
  content: "// ";
  color: rgba(255, 255, 255, 0.35);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 16px;
  text-align: center;
  color: var(--text);
  line-height: 0.95;
}

.section-title.align-left,
.section-sub.align-left {
  text-align: left;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.section-sub.tight {
  margin-bottom: 0;
}

.no-margin {
  margin-bottom: 8px;
}

.features {
  background: var(--bg);
}

.features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #141414 0%, var(--bg) 70%);
  pointer-events: none;
}

.features .container {
  position: relative;
}

.feature-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 24px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--accent-muted-bg);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px var(--accent-glow);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
  border: 1px solid rgba(225, 6, 0, 0.35);
  background: rgba(225, 6, 0, 0.08);
  transition: background 0.3s, border-color 0.3s;
}

.feature-card:hover .feature-icon {
  background: rgba(225, 6, 0, 0.2);
  border-color: rgba(225, 6, 0, 0.55);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.stats {
  background: var(--bg);
  border-block: 1px solid var(--border);
}

.stat-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- Apply ---------- */

.apply {
  background: var(--bg);
}

.apply-inner {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .apply-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
  }
}

.apply-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.apply-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.apply-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
}

.apply-step h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.apply-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.apply-card {
  padding: 28px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.apply-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.apply-card > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.apply-card ul {
  margin: 0 0 24px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.apply-card li {
  margin-bottom: 8px;
}

/* ---------- Subscriptions ---------- */

.subs .tier-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .subs .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .subs .tier-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tier {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.tier-featured {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.12);
}

.tier-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.tier-name {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
}

.tier-price {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.tier-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.tier-perks {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.tier-perks li {
  margin-bottom: 6px;
}

/* ---------- Store page ---------- */

.store-page .store-main {
  padding: calc(var(--header-h) + 48px) 0 80px;
  min-height: 100vh;
}

.store-page-header {
  margin-bottom: 48px;
  text-align: center;
}

.store-page-header .section-sub {
  margin-inline: auto;
  max-width: 560px;
}

.store-order-note {
  margin: 20px auto 0;
  max-width: 560px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
}

.store-order-note strong {
  color: var(--text);
}

.store-section {
  margin-bottom: 56px;
}

.store-section-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.store-section-sub {
  margin: 0 0 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.store-ped-section .store-section-sub {
  margin-bottom: 24px;
}

.store-packs .tier-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .store-packs .tier-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .store-packs--single .tier-grid {
    max-width: 360px;
    margin-inline: auto;
    grid-template-columns: 1fr;
  }

  .store-packs--duo .tier-grid {
    max-width: 720px;
    margin-inline: auto;
    grid-template-columns: repeat(2, 1fr);
  }
}

.store-ped-card {
  display: grid;
  gap: 0;
  max-width: 720px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 0 48px rgba(239, 68, 68, 0.1);
}

@media (min-width: 640px) {
  .store-ped-card {
    grid-template-columns: 220px 1fr;
  }
}

.store-ped-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.18) 0%, var(--bg-elevated) 55%);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .store-ped-visual {
    min-height: 100%;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

.store-ped-icon {
  width: 88px;
  height: 88px;
  color: var(--accent-light);
  opacity: 0.85;
}

.store-ped-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.store-ped-tag {
  align-self: flex-start;
  margin-bottom: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.store-ped-name {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
}

.store-ped-price {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 700;
}

.store-ped-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.store-ped-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.store-ped-perks {
  margin-bottom: 22px;
}

.store-donation-section .store-section-sub {
  margin-bottom: 24px;
}

.store-donation-card {
  max-width: 480px;
  margin-inline: auto;
  padding: 28px 24px;
  text-align: center;
}

.store-donation-name {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.store-donation-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.store-disclaimer {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted-dim);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.5;
}

/* ---------- Roadmap ---------- */

.roadmap {
  background: var(--bg);
}

.roadmap-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .roadmap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.roadmap-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.roadmap-card:hover {
  border-color: var(--border-hover);
}

.roadmap-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.roadmap-status-live {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-light);
  border-color: rgba(239, 68, 68, 0.35);
}

.roadmap-status-planned {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.roadmap-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.roadmap-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: rgba(239, 68, 68, 0.1);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- FAQ ---------- */

.faq .accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.accordion-trigger::after {
  content: "+";
  font-weight: 400;
  color: var(--accent);
  font-size: 1.25rem;
  transition: transform 0.2s;
}

.accordion-trigger[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.accordion-panel {
  display: none;
  padding: 0 20px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.accordion-panel.is-open {
  display: block;
}

.accordion-panel p {
  margin: 12px 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 0;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-tag {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 280px;
  font-size: 0.9rem;
}

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted-dim);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Apply page ---------- */

.apply-page .apply-main {
  padding: calc(var(--header-h) + 48px) 0 80px;
  min-height: 100vh;
}

.apply-page-inner {
  max-width: 760px;
}

.apply-page-header {
  margin-bottom: 32px;
}

.apply-page-header .section-sub a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-panel {
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.75);
  padding: 28px 24px;
}

.apply-gate {
  text-align: center;
}

.apply-gate h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.apply-gate p {
  margin: 0 0 20px;
  color: var(--muted);
}

.apply-gate .btn-discord-login {
  margin-inline: auto;
}

.apply-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.apply-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.apply-step-pill.is-active {
  border-color: var(--accent);
  background: rgba(239, 68, 68, 0.12);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--accent-glow);
}

.apply-step-pill.is-done {
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.apply-step-pill-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
}

.apply-step-title {
  margin: 0 0 20px;
  font-size: 1.25rem;
}

.apply-field {
  margin-bottom: 18px;
}

.apply-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.apply-field input,
.apply-field select,
.apply-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.apply-field input:focus,
.apply-field select:focus,
.apply-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.apply-field textarea {
  resize: vertical;
  min-height: 96px;
}

.apply-field-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 560px) {
  .apply-field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.apply-hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.apply-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.apply-check input {
  margin-top: 4px;
  accent-color: var(--accent);
}

.apply-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.apply-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--accent-light);
  font-size: 0.9rem;
}

.apply-success h2 {
  margin: 0 0 10px;
  color: #86efac;
}

.apply-success p {
  margin: 0 0 10px;
  color: var(--muted);
}

.apply-success-note {
  margin-bottom: 20px !important;
}

.apply-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin-bottom: 16px;
}

.apply-tab {
  flex: 1;
  min-width: 140px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.apply-tab:hover {
  color: var(--text);
  border-color: rgba(239, 68, 68, 0.35);
}

.apply-tab.is-active {
  color: var(--text);
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
}

.apply-applications {
  margin-bottom: 16px;
}

.apply-applications-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.apply-applications-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.apply-applications-empty {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.apply-applications-empty-actions {
  margin-top: 16px;
}

.apply-applications-reapply {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.apply-applications-reapply-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.apply-applications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apply-app-card {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.apply-app-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.apply-app-card-title {
  margin: 0;
  font-size: 1.05rem;
}

.apply-app-card-meta {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.apply-app-card-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.apply-app-card-denial {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.apply-app-card-denial--empty {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.apply-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.apply-status-badge--pending {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.apply-status-badge--accepted {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.apply-status-badge--denied {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.apply-status-badge--open {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.apply-status-badge--claimed {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.apply-status-badge--closed {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--border);
}

.apply-success-inline {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  font-size: 0.92rem;
  line-height: 1.5;
}

.btn--disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.apply-pending-notice h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.apply-pending-notice p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* ——— Player dashboard ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  margin-top: 10px;
}

.dashboard-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.dashboard-connect-card {
  margin-top: 16px;
}

.dashboard-shell {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-h);
  background: var(--bg);
}

.dashboard-main-wrap {
  flex: 1;
  min-width: 0;
  margin-left: 220px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
}

.dashboard-page-inner {
  max-width: 1200px;
  width: 100%;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-applications-block {
  margin-top: 4px;
}

.dashboard-sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: #000;
  position: fixed;
  left: 0;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  z-index: 40;
}

.dashboard-nav-icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.85;
}

.dashboard-nav-item.is-active .dashboard-nav-icon {
  opacity: 1;
}

.dashboard-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 12px;
}

.dashboard-brand-title {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.dashboard-brand-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dashboard-nav-item:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-nav-item.is-active {
  color: #fff;
  font-weight: 600;
  background: rgba(225, 6, 0, 0.22);
}

.dashboard-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.dashboard-panel.is-active {
  display: flex;
}

.dashboard-panel[hidden] {
  display: none !important;
}

.dashboard-quick-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.dashboard-quick-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.dashboard-quick-link {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s, background 0.15s;
}

.dashboard-quick-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-back-home {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.dashboard-back-home:hover {
  color: var(--accent-light);
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dashboard-topbar {
  display: none;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 30;
}

.dashboard-topbar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.dashboard-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.dashboard-page .apply-main {
  padding: 32px 0 48px;
}

.dashboard-content,
.dashboard-gate {
  width: 100%;
}

.dashboard-page .apply-gate.card-panel {
  margin-top: 24px;
}

.dashboard-gate {
  text-align: center;
  margin-top: 48px;
}

.dashboard-gate h1 {
  margin: 0 0 10px;
}

.dashboard-gate p {
  margin: 0 0 20px;
  color: var(--muted);
}

.dashboard-section-head {
  margin-bottom: 24px;
}

.dashboard-page-title {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.dashboard-page-sub {
  margin: 0;
  color: var(--muted);
}

.dashboard-status-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.dashboard-status-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}

.dashboard-status-body {
  min-width: 0;
}

.dashboard-status-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-status-value {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-status-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.dashboard-status-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.dashboard-status-icon--good {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.dashboard-status-icon--warn {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.dashboard-status-icon--bad {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.dashboard-status-icon--info {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.dashboard-status-icon--neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.dashboard-overview-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-setup-percent {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

.dashboard-setup-complete {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.dashboard-setup-complete-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.dashboard-setup-complete strong {
  display: block;
  margin-bottom: 4px;
}

.dashboard-setup-complete p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-discord-promo {
  text-align: center;
  padding: 24px 20px;
}

.dashboard-discord-promo-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(88, 101, 242, 0.2);
}

.dashboard-discord-promo h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.dashboard-discord-promo p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn-discord-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  background: #5865f2;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.btn-discord-join:hover {
  background: #4752c4;
  color: #fff;
}

.dashboard-queue-card h2 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.dashboard-queue-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.dashboard-queue-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-queue-head-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.dashboard-queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-queue-item--muted {
  opacity: 0.65;
}

.dashboard-queue-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-queue-item-icon--allowlist {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.dashboard-queue-item-icon--public {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}

.dashboard-queue-item-body {
  flex: 1;
  min-width: 0;
}

.dashboard-queue-item-body h3 {
  margin: 0 0 2px;
  font-size: 0.95rem;
}

.dashboard-queue-item-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.dashboard-queue-go {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.dashboard-queue-go:hover:not(.dashboard-queue-go--disabled) {
  background: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.dashboard-queue-go--disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.dashboard-queue-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.dashboard-stat-card {
  padding: 18px;
}

.dashboard-stat-label {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-stat-value {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.dashboard-setup-card h2,
.dashboard-discord-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.dashboard-setup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-setup-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-setup-progress-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}

.dashboard-setup-progress-bar {
  width: 160px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.dashboard-setup-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.25s ease;
}

.dashboard-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dashboard-checklist-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-checklist-item h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.dashboard-checklist-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.dashboard-check-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
}

.dashboard-checklist-item.is-done .dashboard-check-icon {
  border-color: #22c55e;
  background: #22c55e;
  box-shadow: inset 0 0 0 3px var(--bg-card);
}

.dashboard-checklist-item.is-done .dashboard-check-icon::after {
  content: "✓";
  display: block;
  text-align: center;
  line-height: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #052e16;
}

.dashboard-discord-card p,
.dashboard-muted {
  color: var(--muted);
}

.dashboard-profile-layout {
  display: flex;
  gap: 20px;
  align-items: center;
}

.dashboard-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.dashboard-profile-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-light);
}

.dashboard-profile-details h2 {
  margin: 0 0 4px;
}

.dashboard-profile-meta {
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}

.dashboard-profile-meta dt {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-profile-meta dd {
  margin: 2px 0 0;
}

.dashboard-settings-card + .dashboard-settings-card {
  margin-top: 16px;
}

.dashboard-settings-actions {
  margin-top: 14px;
}

.dashboard-link-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.dashboard-link-list a {
  color: var(--accent-light);
}

.dashboard-footer {
  padding: 16px 24px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.dashboard-footer p {
  margin: 0 0 4px;
}

.dashboard-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 35;
}

.dashboard-page .apply-applications-title,
.dashboard-page .apply-applications-sub {
  display: block;
}

@media (max-width: 1100px) {
  .dashboard-status-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dashboard-status-row {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar {
    display: flex;
  }

  .dashboard-main-wrap {
    margin-left: 0;
  }

  .dashboard-sidebar {
    top: 0;
    height: 100vh;
    padding-top: calc(var(--header-h) + 16px);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.35);
  }

  .dashboard-sidebar.is-open {
    transform: translateX(0);
  }

  .dashboard-sidebar-backdrop:not([hidden]) {
    display: block;
  }

  .dashboard-content,
  .dashboard-gate {
    padding: 20px 16px 32px;
  }

  .dashboard-profile-layout {
    flex-direction: column;
    align-items: flex-start;
  }
}
