/* ==========================================================================
   PvPGN Remastered - Theme Stylesheet (AAA Professional Dark Gaming UI)
   Refined with Impeccable Design Standards & Modern Web Craft
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@600;700;800;900&family=Rajdhani:wght@600;700&display=swap');

:root {
  /* Surface Foundations */
  --bg-body: #060911;
  --bg-surface: #0b1120;
  --bg-card: #0f172a;
  --bg-card-hover: #162238;
  --bg-header: rgba(10, 15, 28, 0.92);
  --bg-darker: #080c16;
  --bg-input: #070b14;

  /* Borders & Elevating Lines */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(56, 189, 248, 0.25);
  --border-focus: #00d2ff;

  /* Typography Colors (High-Contrast & Refined Palette) */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-white: #ffffff;

  /* Authentic Blizzard Remastered Trilogy Accents */
  --wc3-gold: #f59e0b;
  --wc3-gold-light: #fbbf24;
  --wc3-gold-glow: rgba(245, 158, 11, 0.35);

  --d2r-crimson: #ef4444;
  --d2r-crimson-light: #f87171;
  --d2r-crimson-glow: rgba(239, 68, 68, 0.35);

  --scr-cyan: #06b6d4;
  --scr-cyan-light: #38bdf8;
  --scr-cyan-glow: rgba(6, 182, 212, 0.35);

  --brand-blue: #0284c7;
  --brand-blue-glow: rgba(2, 132, 199, 0.4);
  --brand-green: #10b981;

  /* Fonts */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Rajdhani', 'Inter', sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;

  /* Elevational Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(56, 189, 248, 0.1);
  --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.35);
  --shadow-glow-gold: 0 0 25px rgba(245, 158, 11, 0.35);
  --shadow-glow-crimson: 0 0 25px rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   Global Resets & Browser Surfaces
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-main) !important;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #040711;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Text Selection */
::selection {
  background: #0284c7;
  color: #ffffff;
}

/* Focus Rings */
:focus-visible {
  outline: 2px solid var(--scr-cyan-light);
  outline-offset: 2px;
}

/* ==========================================================================
   Typography Hierarchy
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.5px;
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.9rem; }

.font-gaming {
  font-family: var(--font-heading) !important;
  letter-spacing: 0.5px;
}

.font-display {
  font-family: var(--font-display) !important;
  letter-spacing: 1px;
}

p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

a {
  color: var(--scr-cyan-light);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* High-Contrast Readability Utilities */
.text-muted { color: var(--text-secondary) !important; }
.text-dim { color: var(--text-tertiary) !important; }
.text-gold { color: var(--wc3-gold-light) !important; }
.text-crimson { color: var(--d2r-red-light) !important; }
.text-cyan { color: var(--scr-cyan-light) !important; }

.bg-darker {
  background-color: var(--bg-darker) !important;
}

.border-subtle {
  border-color: var(--border-subtle) !important;
}

/* Tabular Numerals for MMR & Stats */
.stat-val, .rank-num, .gateway-code, .metric-value {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Navigation Bar (AAA Floating Glassmorphism)
   ========================================================================== */
.navbar-pvpgn {
  background: var(--bg-header) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 1.5px;
  color: #ffffff !important;
  text-transform: uppercase;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: radial-gradient(circle, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.navbar-brand:hover .brand-icon {
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #ffffff !important;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.nav-link i {
  margin-right: 0.35rem;
}

.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ==========================================================================
   Buttons (State-of-the-Art Gaming Aesthetic)
   ========================================================================== */
.btn-pvpgn {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.65rem 1.45rem;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-pvpgn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #008fff 100%);
  color: #ffffff !important;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-pvpgn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 6px 25px rgba(0, 210, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #ffffff !important;
}
.btn-pvpgn-primary:active {
  transform: translateY(1px);
}

.btn-pvpgn-wc3 {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #ffffff !important;
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-pvpgn-wc3:hover {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-pvpgn-d2r {
  background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
  color: #ffffff !important;
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-pvpgn-d2r:hover {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-pvpgn-outline {
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0 !important;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}
.btn-pvpgn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.btn-pvpgn-outline.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8 !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   Game Switcher Navigation Tabs & Pills (Theme Styled)
   ========================================================================== */
.game-switch-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.game-switch-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.45rem;
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-pill {
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.55rem 1.35rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.game-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.game-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.game-pill:hover img {
  transform: scale(1.15);
}

/* Active State: Warcraft III Reforged (Gold Glow) */
.game-pill.pill-wc3.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(180, 83, 9, 0.12));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35), inset 0 0 12px rgba(245, 158, 11, 0.1);
}
.game-pill.pill-wc3.active img {
  filter: drop-shadow(0 0 8px #f59e0b);
}

/* Active State: Diablo II Resurrected (Crimson Glow) */
.game-pill.pill-d2r.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(185, 28, 28, 0.12));
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35), inset 0 0 12px rgba(239, 68, 68, 0.1);
}
.game-pill.pill-d2r.active img {
  filter: drop-shadow(0 0 8px #ef4444);
}

/* Active State: StarCraft Remastered (Cyan Glow) */
.game-pill.pill-scr.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(2, 132, 199, 0.12));
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35), inset 0 0 12px rgba(6, 182, 212, 0.1);
}
.game-pill.pill-scr.active img {
  filter: drop-shadow(0 0 8px #06b6d4);
}

/* ==========================================================================
   Badges & Clan Tags
   ========================================================================== */
.badge-wc3 {
  background: rgba(245, 158, 11, 0.15) !important;
  color: var(--wc3-gold-light) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}
.badge-d2r {
  background: rgba(239, 68, 68, 0.15) !important;
  color: var(--d2r-red-light) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}
.badge-scr {
  background: rgba(6, 182, 212, 0.15) !important;
  color: var(--scr-cyan-light) !important;
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.tag-clan {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--wc3-gold-light);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.82rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   Cards & Panels (Dark Solid Obsidian with Depth)
   ========================================================================== */
.card-pvpgn {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card-pvpgn:hover {
  border-color: var(--border-medium) !important;
}

.card-pvpgn-interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(56, 189, 248, 0.35) !important;
}

.card-pvpgn-header {
  background: rgba(19, 29, 49, 0.6) !important;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-pvpgn-header span,
.card-pvpgn-header h1,
.card-pvpgn-header h2,
.card-pvpgn-header h3,
.card-pvpgn-header h4,
.card-pvpgn-header h5,
.card-pvpgn-header h6 {
  color: #ffffff !important;
  margin: 0;
}

.card-pvpgn-body {
  padding: 1.35rem;
}

/* Specific Card Glow Borders */
.card-glow-wc3:hover {
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.2) !important;
}
.card-glow-d2r:hover {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 10px 30px -5px rgba(239, 68, 68, 0.2) !important;
}
.card-glow-scr:hover {
  border-color: rgba(6, 182, 212, 0.5) !important;
  box-shadow: 0 10px 30px -5px rgba(6, 182, 212, 0.2) !important;
}

/* ==========================================================================
   Hero Banner & Portal Section
   ========================================================================== */
.hero-pvpgn {
  position: relative;
  padding: 4.5rem 0 3.5rem 0;
  background: radial-gradient(circle at 50% 20%, #111a30 0%, #060911 80%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-pvpgn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: #ffffff !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.text-gradient-wc3 { color: #fbbf24; }
.text-gradient-d2r { color: #f87171; }
.text-gradient-scr { color: #38bdf8; }

/* Gateway IP Quick Copy Widget */
.gateway-quick-box {
  background: rgba(11, 17, 32, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.gateway-code {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Stat Widgets
   ========================================================================== */
.stat-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.stat-widget:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #080c16;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.stat-lbl {
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 600;
}

/* ==========================================================================
   Data Tables (Solid Dark Theme, Zero White Glitches)
   ========================================================================== */
.table,
.table-pvpgn,
.table > :not(caption) > * > *,
.table-pvpgn > :not(caption) > * > * {
  --bs-table-bg: transparent !important;
  --bs-table-color: #f8fafc !important;
  --bs-table-border-color: rgba(255, 255, 255, 0.06) !important;
  background-color: transparent !important;
  color: #f8fafc !important;
  border-bottom-width: 0 !important;
}

.table-pvpgn {
  border-collapse: separate !important;
  border-spacing: 0 0.35rem !important;
  width: 100% !important;
  margin: 0 !important;
}

.table-pvpgn thead th {
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none !important;
  padding: 0.65rem 0.95rem;
}

.table-pvpgn tbody tr {
  background-color: #0b1120 !important;
  border: 1px solid var(--border-subtle) !important;
  transition: background-color 0.15s ease, transform 0.15s ease;
  border-radius: 6px;
}

.table-pvpgn tbody tr:hover {
  background-color: #162032 !important;
  transform: scale(1.002);
}

.table-pvpgn tbody td {
  padding: 0.85rem 0.95rem;
  vertical-align: middle;
  border: none !important;
  background-color: transparent !important;
  color: #f8fafc !important;
  font-size: 0.92rem;
}

.table-pvpgn tbody td:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.table-pvpgn tbody td:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.rank-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #94a3b8;
}
.rank-num-1 { color: #fbbf24 !important; text-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }
.rank-num-2 { color: #cbd5e1 !important; }
.rank-num-3 { color: #f97316 !important; }

/* Rank Badges */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.rank-grandmaster {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.rank-master {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.rank-diamond {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.rank-platinum {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.4);
}
.rank-gold {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
}
.rank-silver {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* ==========================================================================
   PvPGN Pill Navigation (Tabs)
   ========================================================================== */
.nav-pills-pvpgn {
  gap: 0.5rem;
  background: #080c16;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  flex-wrap: wrap;
}

.nav-pills-pvpgn .nav-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary) !important;
  background: transparent;
  border-radius: 6px;
  padding: 0.5rem 1.15rem !important;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pills-pvpgn .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
}

.nav-pills-pvpgn .nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(56, 189, 248, 0.15)) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   Tournament Brackets (eSports Layout with Dynamic Connectors)
   ========================================================================== */
.bracket-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0.5rem 2rem 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.bracket-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 3.5rem;
  min-width: 880px;
  position: relative;
  padding: 0 1rem;
}

.bracket-column {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 260px;
  position: relative;
}

.bracket-column-header {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: #94a3b8;
  text-align: center;
  padding: 0.6rem 0.85rem;
  background: #080c16;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.bracket-column .bracket-match {
  margin: auto 0;
}

.bracket-match {
  background: #0b1120;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  position: relative;
  margin: 1.15rem 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

.bracket-match:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(56, 189, 248, 0.18);
  transform: translateY(-2px);
}

/* Connecting Stems between Bracket Columns */
.bracket-column:not(:last-child) .bracket-match::after {
  content: '';
  position: absolute;
  right: -1.75rem;
  top: 50%;
  width: 1.75rem;
  height: 2px;
  background: rgba(56, 189, 248, 0.3);
  transform: translateY(-50%);
  pointer-events: none;
}

.bracket-column:not(:first-child) .bracket-match::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 50%;
  width: 1.75rem;
  height: 2px;
  background: rgba(56, 189, 248, 0.3);
  transform: translateY(-50%);
  pointer-events: none;
}

.bracket-participant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.95rem;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  font-weight: 500;
  color: #94a3b8;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bracket-participant:first-child {
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
}

.bracket-participant:last-child {
  border-bottom: none;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
}

.bracket-participant:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.bracket-participant.winner {
  color: #ffffff !important;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.08) 0%, rgba(56, 189, 248, 0.02) 100%);
}

.bracket-participant .score {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #070a12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #64748b;
  flex-shrink: 0;
  padding: 0 4px;
}

.bracket-participant.winner .score {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8 !important;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   Avatar Circles
   ========================================================================== */
.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0b1120;
  border: 2px solid var(--border-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  overflow: hidden;
}

/* ==========================================================================
   Match Details & Stat Widgets
   ========================================================================== */
.match-header-banner {
  background: radial-gradient(circle at 50% 30%, #131d33 0%, #080c16 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
}

.team-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.vs-divider {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.35rem 0.85rem;
  display: inline-block;
}

.hero-portrait {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #080c16;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-slot {
  width: 40px;
  height: 40px;
  background: #080c16;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.item-slot.has-item {
  border-color: rgba(56, 189, 248, 0.3);
  background: #0e172a;
  color: #38bdf8;
}

.item-slot.has-item:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Win/Loss Progress Bars */
.win-loss-bar {
  width: 100px;
  height: 6px;
  background: rgba(239, 68, 68, 0.4);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.win-loss-fill {
  height: 100%;
  background: #10b981;
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Password Strength Bar */
.pw-strength-bar {
  width: 100%;
  height: 5px;
  background: #080c16;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.4rem;
  border: 1px solid var(--border-subtle);
}

.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Glow Text Utilities */
.glow-text-gold { text-shadow: 0 0 15px rgba(245, 158, 11, 0.6); }
.glow-text-cyan { text-shadow: 0 0 15px rgba(6, 182, 212, 0.6); }
.glow-text-crimson { text-shadow: 0 0 15px rgba(239, 68, 68, 0.6); }

/* ==========================================================================
   Modals & Accordions (Dark Theme)
   ========================================================================== */
.modal-content-pvpgn {
  background-color: #0b1120 !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 1px 1px rgba(56, 189, 248, 0.2) !important;
  color: #f8fafc;
}

.modal-header-pvpgn {
  background: rgba(19, 29, 49, 0.6) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  padding: 1.15rem 1.35rem;
}

.form-label-pvpgn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  display: block;
}

.accordion-item {
  background-color: transparent !important;
  border-color: var(--border-subtle) !important;
}

.accordion-button {
  background-color: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
  padding: 1.15rem 1.25rem !important;
  border-radius: 0 !important;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(56, 189, 248, 0.08) !important;
  color: #38bdf8 !important;
  border-bottom: 1px solid var(--border-subtle);
}

.accordion-button::after {
  filter: invert(1) brightness(200%);
}

.accordion-body {
  background-color: #080c16 !important;
  color: #cbd5e1 !important;
  padding: 1.25rem !important;
  line-height: 1.6;
}

/* ==========================================================================
   Article & Community News Reader
   ========================================================================== */
.article-header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #e2e8f0;
  margin-bottom: 1.75rem;
  font-weight: 400;
}

.article-content {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #f1f5f9 !important;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-callout {
  background: rgba(11, 17, 32, 0.85);
  border-left: 4px solid var(--scr-cyan-light);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.article-callout-gold {
  border-left-color: var(--wc3-gold) !important;
}

.article-callout-crimson {
  border-left-color: var(--d2r-crimson) !important;
}

.article-reaction-btn {
  background: #080c16;
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.article-reaction-btn:hover,
.article-reaction-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateY(-2px);
}

/* Comments System */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.comment-card {
  background: #0b1120;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}

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

.comment-card.comment-reply {
  margin-left: 2.5rem;
  background: #080d1a;
  border-left: 3px solid var(--scr-cyan-light);
}

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

.comment-vote-btn {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.comment-vote-btn:hover {
  color: #38bdf8;
}

.badge-verified-admin {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-verified-pro {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   Forums & Community Boards
   ========================================================================== */
.forum-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.forum-category-header {
  background: rgba(19, 29, 49, 0.7);
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forum-board-row {
  display: flex;
  align-items: center;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.forum-board-row:last-child {
  border-bottom: none;
}

.forum-board-row:hover {
  background: #131c30;
}

.forum-board-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #080c16;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 1.25rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.forum-board-row:hover .forum-board-icon {
  transform: scale(1.08);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.forum-board-main {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 1.5rem;
}

.forum-board-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.forum-board-title:hover {
  color: var(--scr-cyan-light);
}

.forum-board-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.forum-board-stats {
  width: 140px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.forum-board-stats .stat-count {
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
}

.forum-board-lastpost {
  width: 260px;
  flex-shrink: 0;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}

.forum-stat-badge {
  background: rgba(11, 17, 32, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* ==========================================================================
   Forum Topics Listing & Badges
   ========================================================================== */
.topic-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.topic-list-header {
  background: rgba(19, 29, 49, 0.7);
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.topic-row {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: #0b1120;
}

.topic-row:last-child {
  border-bottom: none;
}

.topic-row:hover {
  background: #141f33;
}

.topic-row.topic-pinned {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(11, 17, 32, 0.9) 100%);
  border-left: 3px solid var(--wc3-gold);
}

.topic-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #080c16;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.topic-main {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 1.25rem;
}

.topic-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  display: inline-block;
  line-height: 1.35;
}

.topic-title:hover {
  color: var(--scr-cyan-light);
}

.topic-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  margin-right: 0.4rem;
}

.topic-tag-guide {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.topic-tag-discussion {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.topic-tag-replay {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.topic-tag-trade {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.topic-stats {
  width: 140px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.topic-stats .stat-count {
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
}

.topic-lastpost {
  width: 240px;
  flex-shrink: 0;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}

@media (max-width: 991.98px) {
  .topic-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .topic-main {
    flex: 1 0 calc(100% - 50px);
    padding-right: 0;
  }
  .topic-stats {
    width: auto;
    text-align: left;
    margin-left: 50px;
  }
  .topic-lastpost {
    width: 100%;
    border-left: none;
    padding-left: 50px;
    margin-top: 0.25rem;
  }
}

/* ==========================================================================
   Thread Post Card & Author Sidebar
   ========================================================================== */
.thread-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
}

.post-author-col {
  width: 220px;
  background: #080c16;
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem 1.25rem;
  flex-shrink: 0;
  text-align: center;
}

.post-body-col {
  flex: 1 1 0;
  min-width: 0;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  background: #0b1120;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: #94a3b8;
}

.post-content {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.75;
  flex-grow: 1;
}

.post-content p {
  margin-bottom: 1.15rem;
}

/* BBCode Formatted Elements */
.bbcode-quote {
  background: #070a12;
  border-left: 3px solid var(--scr-cyan-light);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1.15rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: #94a3b8;
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.bbcode-quote-header {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #38bdf8;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.bbcode-code {
  background: #040711;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: monospace;
  font-size: 0.88rem;
  color: #38bdf8;
  margin: 1.15rem 0;
  overflow-x: auto;
}

.user-signature {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: #64748b;
  font-style: italic;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 767.98px) {
  .thread-post-card {
    flex-direction: column;
  }
  .post-author-col {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1rem;
  }
}

/* ==========================================================================
   BBCode Editor & Toolbar
   ========================================================================== */
.bbcode-editor-card {
  background: #0b1120;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.bbcode-toolbar {
  background: #070a12;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.bbcode-group {
  display: inline-flex;
  gap: 0.2rem;
  padding-right: 0.5rem;
  margin-right: 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.bbcode-group:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.bbcode-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.bbcode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.bbcode-btn:active {
  transform: scale(0.95);
}

.bbcode-textarea {
  background-color: var(--bg-input) !important;
  border: none !important;
  color: #f8fafc !important;
  border-radius: 0 !important;
  padding: 1rem 1.25rem !important;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
}

.bbcode-textarea:focus {
  box-shadow: none !important;
  background-color: #0d1527 !important;
}

.editor-footer {
  background: #070a12;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}



/* ==========================================================================
   Form Controls & Inputs
   ========================================================================== */
.form-control-pvpgn,
.form-select-pvpgn {
  background-color: var(--bg-input) !important;
  border: 1px solid var(--border-medium) !important;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.form-control-pvpgn:focus,
.form-select-pvpgn:focus {
  border-color: var(--border-focus) !important;
  background-color: #0d1527 !important;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.25) !important;
  color: #ffffff !important;
  outline: none;
}

.input-group-text-pvpgn {
  background-color: #0b1120 !important;
  border: 1px solid var(--border-medium) !important;
  border-right: none !important;
  color: var(--text-secondary) !important;
}

/* ==========================================================================
   Global Footer
   ========================================================================== */
.footer-pvpgn {
  background: #040711;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

.footer-link {
  color: #94a3b8;
  display: block;
  padding: 0.25rem 0;
}
.footer-link:hover {
  color: var(--scr-cyan-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #64748b;
}

/* Toast */
.toast-pvpgn {
  background: #0f172a !important;
  border: 1px solid var(--scr-cyan-light) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}
