/* ========================================================
   CYBERGORILLA VERSUS LEAGUE — OFFICIAL STYLES
   ======================================================== */

/* CUSTOM FONT: NORTHSTAR */
@font-face {
  font-family: 'Northstar';
  src: url('fonts/northstarital.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Northstar';
  src: url('fonts/northstarital.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Northstar';
  src: url('fonts/northstarboldital.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Northstar';
  src: url('fonts/northstarboldital.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg-primary: #0a0714;
  --bg-secondary: #120b22;
  --bg-card: rgba(22, 13, 38, 0.82);
  --bg-card-hover: rgba(34, 20, 56, 0.92);
  --border-color: rgba(249, 235, 55, 0.18);
  --border-glow: rgba(249, 235, 55, 0.4);
  
  --text-main: #ffffff;
  --text-muted: #b8b2cb;
  --text-dim: #797191;

  /* BRAND PRIMARY COLOR */
  --accent-yellow: #f9eb37;
  --accent-yellow-glow: rgba(249, 235, 55, 0.35);
  --accent-orange: #ff5533;
  --accent-cyan: #00d2ff;
  --accent-purple: #9d4edd;
  
  --font-heading: 'Chakra Petch', 'Inter', -apple-system, sans-serif;
  --font-northstar: 'Northstar', 'Chakra Petch', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  /* FIXED STATIC BACKGROUND (scroll content, background stays) */
  background-image: 
    linear-gradient(180deg, rgba(10, 6, 20, 0.82) 0%, rgba(8, 4, 16, 0.94) 100%),
    url('background.jpg');
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
}

/* ========================================== */
/* HEADER & NAVIGATION */
/* ========================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 7, 24, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(249, 235, 55, 0.25);
  padding: 0.65rem 0;
}

.header-container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 14px var(--accent-yellow-glow));
}

.brand-logo-letter {
  height: 48px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  padding: 0;
  border: none;
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--accent-yellow);
  font-family: 'Northstar', sans-serif;
  font-style: italic;
  text-transform: lowercase;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  line-height: 1.05;
  white-space: nowrap;
  transition: var(--transition);
  opacity: 0.88;
}

.tab-title {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  line-height: 1.05;
}

.tab-sub {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
  margin-top: 0.15rem;
  line-height: 1;
}

.nav-tab:hover {
  opacity: 1;
  color: #ffffff;
  background: rgba(249, 235, 55, 0.1);
  border-color: rgba(249, 235, 55, 0.4);
  text-shadow: 0 0 14px var(--accent-yellow-glow);
  transform: translateY(-1px);
}

.nav-tab:hover .tab-sub {
  opacity: 0.95;
  color: #ffffff;
}

.nav-tab:focus,
.nav-tab:focus-visible {
  outline: none;
  opacity: 1;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 14px var(--accent-yellow-glow);
}

.nav-tab.active {
  opacity: 1;
  color: #0b0714;
  background: var(--accent-yellow);
  border-color: var(--accent-yellow);
  box-shadow: 0 0 18px var(--accent-yellow-glow);
  text-shadow: none;
  transform: translateY(-1px);
}

.nav-tab.active .tab-title {
  font-weight: bold;
}

.nav-tab.active .tab-sub {
  color: #0b0714;
  opacity: 0.88;
  font-weight: bold;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* STATUS BADGE */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-badge.lan {
  border-color: rgba(249, 235, 55, 0.5);
  background: rgba(249, 235, 55, 0.12);
  color: var(--accent-yellow);
}
.status-badge.lan .badge-dot {
  background: var(--accent-yellow);
  box-shadow: 0 0 8px var(--accent-yellow);
}

.status-badge.wan {
  border-color: rgba(0, 210, 255, 0.4);
  background: rgba(0, 210, 255, 0.08);
  color: var(--accent-cyan);
}
.status-badge.wan .badge-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.status-badge.checking .badge-dot {
  background: #ffaa00;
}

/* STEAM LOGIN BUTTON */
.steam-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #172433 0%, #223c52 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.steam-login-btn:hover {
  background: linear-gradient(135deg, #223c52 0%, #2f5270 100%);
  border-color: var(--accent-yellow);
  color: #fff;
  box-shadow: 0 3px 12px rgba(249, 235, 55, 0.25);
  transform: translateY(-1px);
}

.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #172433 0%, #223c52 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-steam:hover {
  background: linear-gradient(135deg, #223c52 0%, #2f5270 100%);
  border-color: var(--accent-yellow);
  color: #fff;
  box-shadow: 0 4px 18px rgba(249, 235, 55, 0.25);
  transform: translateY(-1px);
}

.steam-icon {
  flex-shrink: 0;
  display: block;
}

/* USER PROFILE IN HEADER */
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(22, 13, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  border-radius: 24px;
  backdrop-filter: blur(8px);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--accent-yellow);
  object-fit: cover;
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.user-role-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 85, 51, 0.12);
  border: 1px solid rgba(255, 85, 51, 0.45);
  color: #ff7253;
  padding: 0.28rem 0.65rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  margin-left: 0.25rem;
}

.btn-logout:hover {
  background: #ff5533;
  border-color: #ff5533;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 85, 51, 0.45);
  transform: translateY(-1px);
}

.btn-logout svg {
  stroke: currentColor;
  stroke-width: 2.2;
}

.btn-logout-dash {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 85, 51, 0.1);
  border: 1px solid rgba(255, 85, 51, 0.4);
  color: #ff7253;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-logout-dash:hover {
  background: #ff5533;
  border-color: #ff5533;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 85, 51, 0.4);
}

/* ========================================== */
/* MAIN CONTENT LAYOUT */
/* ========================================== */

.main-content {
  max-width: 1420px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.tab-section {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-section.active {
  display: block;
}

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

/* HERO BANNER */
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  background: linear-gradient(135deg, rgba(28, 16, 48, 0.88) 0%, rgba(14, 8, 26, 0.96) 100%);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-banner.is-closing {
  pointer-events: none;
  overflow: hidden !important;
  box-shadow: none !important;
  transition: height 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              padding-top 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              padding-bottom 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              margin-bottom 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.45s ease-out,
              border-color 0.45s ease-out,
              border-width 0.65s ease-out;
}

.hero-banner.is-closing .hero-close-btn,
.hero-banner.is-closing .hero-glow {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.hero-banner.is-closing .hero-content {
  animation: cs2HeroCompress 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cs2HeroCompress {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: brightness(1);
  }
  30% {
    transform: scale(0.98) translate(-10px, 4px);
    opacity: 1;
    filter: brightness(2.2) drop-shadow(0 0 24px #f9eb37);
  }
  60% {
    transform: scale(0.32, 0.12) translate(140px, -10px);
    opacity: 0.8;
    filter: brightness(4) blur(1px);
  }
  100% {
    transform: scale(0.01, 0.01) translate(300px, -20px);
    opacity: 0;
    filter: brightness(6) blur(4px);
  }
}

/* CS2 BULLET TRACER & SHOT OVERLAY */
.cs2-shot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}

.cs2-muzzle-flash {
  position: absolute;
  width: 150px;
  height: 150px;
  margin-left: -75px;
  margin-top: -75px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(249, 235, 55, 0.95) 28%, rgba(255, 85, 51, 0.7) 60%, transparent 100%);
  box-shadow: 0 0 50px rgba(249, 235, 55, 0.95), 0 0 90px rgba(255, 85, 51, 0.75);
  animation: cs2FlashAnim 0.24s ease-out forwards;
}

@keyframes cs2FlashAnim {
  0% { transform: scale(0.2); opacity: 1; }
  35% { transform: scale(1.4); opacity: 0.95; }
  100% { transform: scale(2.3); opacity: 0; }
}

.cs2-bullet-tracer {
  position: absolute;
  height: 6px;
  width: 190px;
  margin-top: -3px;
  display: flex;
  align-items: center;
  transform-origin: left center;
  animation: cs2BulletFly 0.38s cubic-bezier(0.12, 0.8, 0.25, 1) forwards;
}

.cs2-tracer-tail {
  flex: 1;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 85, 51, 0) 0%, rgba(255, 85, 51, 0.5) 25%, rgba(249, 235, 55, 0.95) 75%, #ffffff 100%);
  box-shadow: 0 0 16px #f9eb37, 0 0 32px #ff5533, 0 0 6px #ffffff;
}

.cs2-tracer-head {
  width: 16px;
  height: 10px;
  margin-left: -3px;
  border-radius: 50% 100% 100% 50%;
  background: #ffffff;
  box-shadow: 0 0 18px #ffffff, 0 0 32px #f9eb37;
}

@keyframes cs2BulletFly {
  0% {
    transform: translate(0, 0) rotate(-6deg) scaleX(0.5);
    opacity: 1;
  }
  30% {
    transform: translate(30vw, -30px) rotate(-6deg) scaleX(1.8);
    opacity: 1;
  }
  100% {
    transform: translate(110vw, -90px) rotate(-6deg) scaleX(2.6);
    opacity: 0.2;
  }
}

.cs2-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #f9eb37, 0 0 16px #ff5533;
  animation: cs2SparkFly 0.42s ease-out forwards;
}

@keyframes cs2SparkFly {
  0% {
    transform: translate(0, 0) scale(1.6);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0.2);
    opacity: 0;
  }
}

.cs2-ricochet {
  position: absolute;
  right: 6px;
  width: 80px;
  height: 80px;
  margin-top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #f9eb37 40%, rgba(255, 85, 51, 0.6) 70%, transparent 100%);
  box-shadow: 0 0 40px #f9eb37, 0 0 85px #ff5533;
  animation: cs2RicochetPop 0.28s ease-out forwards;
}

@keyframes cs2RicochetPop {
  0% { transform: scale(0.3); opacity: 0; }
  35% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem;
  transition: var(--transition);
  z-index: 10;
}

.hero-close-btn:hover {
  color: #ff5533;
  transform: scale(1.15);
}

.hero-glow {
  position: absolute;
  top: -50%;
  left: 20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 235, 55, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-tag {
  font-family: 'Northstar', sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  font-weight: normal;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  color: var(--accent-yellow);
  text-shadow: 0 0 14px var(--accent-yellow-glow);
  margin-bottom: 0.75rem;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.accent-text {
  color: var(--accent-yellow);
  text-shadow: 0 0 25px var(--accent-yellow-glow);
}

.hero-desc {
  max-width: 820px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero-lead {
  margin-bottom: 1.15rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-steps {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.hero-step {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-bullet {
  color: var(--accent-yellow);
  font-size: 0.85rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item {
  font-size: 0.9rem;
}
.meta-label {
  color: var(--text-dim);
}
.meta-val {
  color: var(--accent-yellow);
  font-weight: 600;
}

/* HIGHLIGHT & LOCATION LINKS WITH SMOOTH PULSE (adblock-safe name) */
.brand-highlight,
.sponsor-link {
  color: var(--accent-yellow);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.pulse-yellow {
  animation: pulseGlow 2.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    color: var(--accent-yellow);
    text-shadow: 0 0 4px rgba(249, 235, 55, 0.4);
    opacity: 0.88;
  }
  50% {
    color: #fff97a;
    text-shadow: 0 0 16px rgba(249, 235, 55, 0.95), 0 0 28px rgba(249, 235, 55, 0.6);
    opacity: 1;
  }
}

.brand-highlight:hover,
.sponsor-link:hover {
  color: #fff;
  text-shadow: 0 0 20px var(--accent-yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.meta-link {
  color: var(--accent-yellow);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.meta-link:hover {
  color: #fff;
  text-shadow: 0 0 12px var(--accent-yellow-glow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========================================== */
/* FORMATS SHOWCASE GRID */
/* ========================================== */

.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.format-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.format-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-yellow);
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(249, 235, 55, 0.15);
}

.card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(249, 235, 55, 0.15);
  color: var(--accent-yellow);
  border: 1px solid rgba(249, 235, 55, 0.4);
}

.card-badge.hot {
  background: rgba(255, 85, 51, 0.15);
  color: var(--accent-orange);
  border-color: rgba(255, 85, 51, 0.4);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.format-card h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
  color: var(--accent-yellow);
}

.format-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-specs {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.card-specs li {
  margin-bottom: 0.45rem;
}

.card-specs strong {
  color: #fff;
}

/* ========================================== */
/* PROFILE & TEAM REGISTRATION SECTION */
/* ========================================== */

.login-prompt-card {
  text-align: center;
  padding: 2.75rem;
  background: var(--bg-card);
  border: 1px dashed rgba(249, 235, 55, 0.4);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}

.prompt-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.login-prompt-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-yellow);
  margin-bottom: 0.5rem;
}

.login-prompt-card p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}

.prompt-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* DASHBOARD PROFILE CARD */
.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(14px);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.dash-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--accent-yellow);
  box-shadow: 0 0 16px var(--accent-yellow-glow);
}

.dash-user-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-yellow);
}

.dash-steamid {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.role-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(249, 235, 55, 0.15);
  color: var(--accent-yellow);
  border: 1px solid rgba(249, 235, 55, 0.4);
}

/* ROLES SELECTOR TABS INSIDE DASHBOARD */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.role-box {
  background: rgba(18, 10, 32, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.role-box-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.form-group {
  margin-bottom: 0.75rem;
}

.form-input {
  width: 100%;
  background: rgba(10, 6, 20, 0.85);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 10px var(--accent-yellow-glow);
}

/* ========================================== */
/* BRACKETS (TOURNAMENT TREE) */
/* ========================================== */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--accent-yellow);
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bracket-wrapper {
  display: flex;
  gap: 3.5rem;
  overflow-x: auto;
  padding: 1.5rem 0.5rem;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 290px;
}

.round-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-yellow);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.round-matches {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
  justify-content: space-around;
}

.match-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition);
}

.match-card:hover {
  border-color: var(--accent-yellow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(249, 235, 55, 0.2);
  transform: scale(1.02);
}

.match-card.live {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 20px var(--accent-yellow-glow);
}

.match-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 0.65rem;
}

.badge-live {
  background: rgba(249, 235, 55, 0.2);
  color: var(--accent-yellow);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-yellow);
}

.match-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(14, 8, 26, 0.8);
  margin-bottom: 0.4rem;
}

.match-team.winner {
  background: rgba(249, 235, 55, 0.15);
  border-left: 3px solid var(--accent-yellow);
}

.team-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.team-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
}

.match-team.winner .team-score {
  color: var(--accent-yellow);
}

/* ========================================== */
/* SERVER DETAILS CARD */
/* ========================================== */

.server-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  backdrop-filter: blur(14px);
}

.server-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.server-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-yellow);
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 14px var(--accent-yellow);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.server-specs-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.server-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-box {
  background: rgba(18, 10, 32, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.detail-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-yellow);
  background: rgba(10, 6, 20, 0.9);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-val.copyable {
  cursor: pointer;
}
.detail-val.copyable:hover {
  border: 1px solid var(--accent-yellow);
  box-shadow: 0 0 10px var(--accent-yellow-glow);
}

.copy-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.detail-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.server-quick-launch h3 {
  font-family: var(--font-heading);
  color: var(--accent-yellow);
  margin-bottom: 0.4rem;
}

.launch-buttons-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ========================================== */
/* BUTTONS & MODALS */
/* ========================================== */

.btn {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-yellow);
  color: #0b0714;
}
.btn-primary:hover {
  background: #fff04d;
  box-shadow: 0 0 20px var(--accent-yellow-glow);
}

.btn-secondary {
  background: var(--accent-cyan);
  color: #0b0714;
}
.btn-secondary:hover {
  background: #2ee0ff;
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  background: rgba(249, 235, 55, 0.08);
}

.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 10, 0.82);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-yellow);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(249, 235, 55, 0.15);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal-header h3 {
  font-family: var(--font-heading);
  color: var(--accent-yellow);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}
.modal-close:hover {
  color: var(--accent-yellow);
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(22, 13, 38, 0.96);
  border: 1px solid var(--accent-yellow);
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  z-index: 300;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(249, 235, 55, 0.2);
  transition: var(--transition);
}

.toast.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
