/* ============================================================
   GameCMS — Main Stylesheet
   CS2-Inspired Tactical Design
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--theme-transition);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--bg-pattern);
  pointer-events: none;
  z-index: 0;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.text-accent { color: var(--text-accent) !important; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--text-link-hover); }

/* ============================================================
   NAVBAR
   ============================================================ */
.gcms-navbar {
  background: var(--bg-navbar);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-color);
  height: var(--navbar-height);
  z-index: var(--z-navbar);
  transition: var(--theme-transition);
}

.gcms-navbar .navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gcms-navbar .navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #000;
  font-weight: 900;
  box-shadow: var(--primary-glow);
}

.gcms-navbar .nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

.gcms-navbar .nav-link:hover,
.gcms-navbar .nav-link.active {
  color: var(--primary) !important;
  background: rgba(var(--primary-rgb), 0.08);
}

.gcms-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  box-shadow: var(--primary-glow);
}

/* ---- Theme Toggle Button ---- */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s ease;
  font-size: 1.15rem;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--primary-glow);
  transform: rotate(15deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: all 0.4s ease;
}

[data-bs-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
[data-bs-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
[data-bs-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
[data-bs-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ---- Auth Buttons (Navbar) ---- */
.btn-nav-login {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}
.btn-nav-login:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-nav-register {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: var(--border-radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  transition: all 0.3s ease;
  box-shadow: var(--primary-glow);
}
.btn-nav-register:hover {
  transform: translateY(-1px);
  box-shadow: var(--primary-glow-strong);
  color: #000;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--navbar-height) + 2.5rem);
  padding-bottom: 2.5rem;
}

@media (min-width: 992px) {
  .hero-section {
    padding-bottom: 5.5rem;
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(var(--primary-rgb), 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(var(--secondary-rgb), 0.08) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 950;
  letter-spacing: 1.5px;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin-bottom: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.35rem 0.85rem;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--online);
  border-radius: 50%;
  animation: pulse-green 2s ease-in-out infinite;
}

/* ---- Hero Floating Image ---- */
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-image-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--primary-glow);
  border: 1px solid var(--border-color);
}

.hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-float-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 3s ease-in-out infinite;
  box-shadow: var(--shadow-lg);
}

.hero-float-card.card-players {
  bottom: 15%;
  left: -30px;
  animation-delay: 0s;
}

.hero-float-card.card-servers {
  top: 15%;
  right: -30px;
  animation-delay: 1.5s;
}

.hero-float-card .float-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.hero-float-card .float-icon.icon-green {
  background: rgba(var(--online-rgb), 0.15);
  color: var(--online);
}
.hero-float-card .float-icon.icon-blue {
  background: rgba(var(--secondary-rgb), 0.15);
  color: var(--secondary);
}

.hero-float-card .float-value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.hero-float-card .float-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  position: relative;
  z-index: 1;
  margin-top: -60px;
  padding-bottom: 4rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

.stat-card:hover::before { opacity: 1; }

.stat-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.75rem;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-icon.icon-primary {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}
.stat-icon.icon-secondary {
  background: rgba(var(--secondary-rgb), 0.12);
  color: var(--secondary);
}
.stat-icon.icon-success {
  background: rgba(var(--online-rgb), 0.12);
  color: var(--online);
}
.stat-icon.icon-danger {
  background: rgba(var(--offline-rgb), 0.12);
  color: var(--offline);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.section-title .title-line {
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, var(--primary), transparent);
  border-radius: 2px;
}

.section-title h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.section-title .title-badge {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   SERVER CARDS
   ============================================================ */
.server-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.server-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.server-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--primary-glow);
}

.server-card:hover::after { transform: scaleX(1); }

.server-card .server-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.server-card .server-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.server-card .server-status.online {
  background: var(--online);
  box-shadow: var(--online-glow);
  animation: pulse-green 2s ease-in-out infinite;
}

.server-card .server-status.offline {
  background: var(--offline);
  box-shadow: var(--offline-glow);
}

.server-card .server-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-card .server-game-badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.server-game-badge.cs2 {
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  border-radius: 5px;
  padding: 5px;
}
.server-game-badge.cs16 {
  background: rgba(var(--secondary-rgb), 0.15);
  color: var(--secondary);
  border-radius: 5px;
  padding: 5px;
}

.server-card .server-map {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.server-card .server-ip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.server-card .server-players-bar {
  margin-bottom: 0.5rem;
}

.server-card .players-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.server-card .players-count {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.server-card .players-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.progress-bar-custom {
  height: 6px;
  background: var(--progress-bg);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-custom .progress-fill {
  height: 100%;
  background: var(--progress-fill);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.server-card .server-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.server-card .server-ping {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-connect {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 1rem;
  border-radius: var(--border-radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  transition: all 0.3s ease;
  box-shadow: var(--primary-glow);
}

.btn-connect:hover {
  transform: translateY(-1px);
  box-shadow: var(--primary-glow-strong);
  color: #000;
}

/* ============================================================
   SERVER LIST TABLE (servers.html)
   ============================================================ */
.server-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.server-table {
  width: 100%;
  border-collapse: collapse;
}

.server-table thead th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(var(--bg-surface-rgb), 0.5);
  white-space: nowrap;
}

.server-table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.server-table tbody tr:last-child { border-bottom: none; }

.server-table tbody tr:hover {
  background: var(--bg-surface-hover);
}

.server-table tbody td {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  vertical-align: middle;
}

.server-table .server-name-cell {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
}

.server-table .server-ip-cell {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

.news-card .news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.news-card .news-body {
  padding: 1.25rem;
}

.news-card .news-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.news-card .news-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.news-card .news-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  transition: var(--theme-transition);
}

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + 2rem) 1rem 2rem;
  position: relative;
}

.auth-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(var(--primary-rgb), 0.1) 0%, transparent 60%);
  z-index: 0;
}

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-xl);
}

.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card .auth-logo .logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--border-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #000;
  font-weight: 900;
  margin-bottom: 1rem;
  box-shadow: var(--primary-glow);
}

.auth-card .auth-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ---- Form Controls ---- */
.form-floating-custom {
  position: relative;
  margin-bottom: 1.25rem;
}

.form-control-custom {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

.form-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.form-control-custom:focus ~ .form-icon,
.form-control-custom:focus + .form-icon {
  color: var(--primary);
}

/* ---- Standalone Form Select & Search (outside filter-bar) ---- */
.form-select-custom {
  width: 100%;
  padding: 0.75rem 2.25rem 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px;
}

.form-select-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-select-custom option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-search {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  outline: none;
}

.form-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-search::placeholder {
  color: var(--text-muted);
}

/* ---- Form Labels ---- */
.form-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ---- Form Check Custom (Radio & Checkbox) ---- */
.form-check-input {
  background-color: var(--bg-input);
  border-color: var(--border-color);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
  border-color: var(--primary);
}

.form-check-label {
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* ---- Textarea ---- */
textarea.form-control-custom,
textarea.form-search {
  padding-left: 1rem;
  resize: vertical;
  min-height: 80px;
}

.btn-auth {
  width: 100%;
  padding: 0.85rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--border-radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--primary-glow);
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: var(--primary-glow-strong);
}

.btn-steam {
  width: 100%;
  padding: 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-steam:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-surface-elevated);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ============================================================
   ADMIN PANEL (NEW FLEX LAYOUT)
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--navbar-height);
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.admin-sidebar .sidebar-section {
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.admin-sidebar .sidebar-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.admin-sidebar .sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.75rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.admin-sidebar .sidebar-link:hover {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--text-primary);
}

.admin-sidebar .sidebar-link.active {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}

.admin-sidebar .sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-x: hidden;
}

/* ============================================================
   ADMIN PANEL RESPONSIVE STYLING (BUILT-IN)
   ============================================================ */
@media (max-width: 1199.98px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
  }

  .admin-sidebar::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }

  .admin-sidebar .sidebar-section {
    margin-bottom: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    border-right: 1px solid var(--border-color);
    padding-right: 1rem;
  }

  .admin-sidebar .sidebar-section:last-child {
    border-right: none;
    padding-right: 0;
  }

  .admin-sidebar .sidebar-label {
    display: none; /* Hide labels on mobile to save space */
  }

  .admin-sidebar .sidebar-link {
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
    white-space: nowrap;
    display: inline-flex;
  }

  .admin-content {
    margin-left: 0;
    padding: 1.5rem 1rem;
  }
}

.admin-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   BANLIST TABLE
   ============================================================ */
.ban-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ban-status.active {
  background: var(--badge-danger-bg);
  color: var(--badge-danger-text);
}
.ban-status.expired {
  background: var(--badge-success-bg);
  color: var(--badge-success-text);
}
.ban-status.permanent {
  background: var(--badge-warning-bg);
  color: var(--badge-warning-text);
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.filter-bar .form-select-custom,
.filter-bar .form-search {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  outline: none;
}

.filter-bar .form-select-custom {
  width: auto;
  padding: 0.55rem 2.25rem 0.55rem 1rem;
}

.filter-bar .form-select-custom:focus,
.filter-bar .form-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.filter-bar .form-search {
  flex: 1;
  min-width: 200px;
  padding: 0.55rem 1rem 0.55rem 2.5rem;
}

.filter-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.filter-search-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.gcms-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2rem;
}

.gcms-pagination .page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gcms-pagination .page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.gcms-pagination .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
  box-shadow: var(--primary-glow);
}

/* ============================================================
   FOOTER
   ============================================================ */
.gcms-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
  position: relative;
  z-index: 1;
  transition: var(--theme-transition);
}

.gcms-footer .footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.gcms-footer .footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 300px;
}

.gcms-footer .footer-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.gcms-footer .footer-link {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}
.gcms-footer .footer-link:hover { color: var(--primary); }

.gcms-footer .footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gcms-footer .social-links {
  display: flex;
  gap: 12px;
}

.gcms-footer .social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.gcms-footer .social-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--primary-glow);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.7rem 1.75rem;
  border-radius: var(--border-radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  transition: all 0.3s ease;
  box-shadow: var(--primary-glow);
  font-size: 0.9rem;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--primary-glow-strong);
  color: #000;
}

.btn-outline-custom {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.7rem 1.75rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-outline-custom:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================
   SERVER DETAIL PAGE
   ============================================================ */
.server-detail-header {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.server-detail-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

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

.info-item {
  background: var(--bg-input);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.info-item .info-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.info-item .info-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.players-table {
  width: 100%;
  border-collapse: collapse;
}

.players-table thead th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.players-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.players-table tbody tr:last-child { border-bottom: none; }
.players-table tbody tr:hover { background: var(--bg-surface-hover); }

.players-table tbody td {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* ============================================================
   CHART PLACEHOLDER
   ============================================================ */
.chart-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
}

.chart-placeholder {
  height: 250px;
  background: var(--bg-input);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px dashed var(--border-color);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--online-rgb), 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(var(--online-rgb), 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-fade-in-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
  .hero-title { font-size: 2.75rem; }
  .hero-visual { 
    margin-top: 2rem; 
    margin-bottom: 3.5rem; /* Отстъп под терминала на мобилни */
  }
  
  /* Mobile Menu Styles */
  .gcms-navbar {
    height: auto !important;
    min-height: var(--navbar-height);
  }
  .gcms-navbar .navbar-collapse {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-lg);
  }
  .gcms-navbar .navbar-nav {
    margin-bottom: 1rem;
  }
  
  /* Hero top spacing fix */
  .hero-section {
    padding-top: calc(var(--navbar-height) + 2.5rem) !important;
  }
  
  /* Prevent stats section from overlapping the terminal on mobile */
  .stats-section {
    margin-top: 0 !important;
    padding-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title { font-size: 2.25rem; }
  .hero-section { min-height: 70vh; }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: 1.75rem; }
  .filter-bar { flex-direction: column; }
  .gcms-footer .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.85rem; }
  .hero-float-card { display: none; }
  .auth-card { padding: 1.5rem; }
}

/* ============================================================
   LIGHT THEME — Override Bootstrap hardcoded text-white classes
   These classes stay white even in light mode, causing invisible text
   ============================================================ */
[data-bs-theme="light"] .text-white {
  color: var(--text-primary) !important;
}

[data-bs-theme="light"] .text-white-50 {
  color: var(--text-secondary) !important;
}

[data-bs-theme="light"] .form-label.text-white,
[data-bs-theme="light"] .form-check-label.text-white {
  color: var(--text-primary) !important;
}

[data-bs-theme="light"] .fw-bold.text-white {
  color: var(--text-primary) !important;
}

/* Keep text-white on elements with gradient backgrounds (news images, hero etc.) */
[data-bs-theme="light"] .news-image .text-white,
[data-bs-theme="light"] .news-image.text-white,
[data-bs-theme="light"] .hero-section .text-white,
[data-bs-theme="light"] .btn-primary-custom.text-white,
[data-bs-theme="light"] .btn-connect.text-white {
  color: #ffffff !important;
}

/* Dropdown items in light theme */
[data-bs-theme="light"] .dropdown-item.text-white {
  color: var(--text-primary) !important;
}

[data-bs-theme="light"] .dropdown-item.text-white:hover {
  color: var(--primary) !important;
}

/* Form inputs text color fix for light theme */
[data-bs-theme="light"] .form-control-custom,
[data-bs-theme="light"] .form-search,
[data-bs-theme="light"] .form-select-custom {
  color: var(--text-primary);
}

/* ============================================================
   SERVER DETAIL TAB NAVIGATION
   ============================================================ */
.gcms-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.gcms-tab-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.gcms-tab-btn.active {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--primary-glow);
}

.gcms-tab-btn.active .gcms-tab-pill {
  background: var(--primary) !important;
  color: #000 !important;
}

.gcms-tab-pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-weight: 800;
  background: var(--border-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.gcms-tab-content {
  display: none;
}

.gcms-tab-content.active {
  display: block;
  animation: gcmsFadeIn 0.4s ease forwards;
}

@keyframes gcmsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Force editor SFTP sync and verification */

/* ============================================================
   ADMIN PANEL RESPONSIVE STYLING
   ============================================================ */
@media (max-width: 1199.98px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
  }

  .admin-sidebar::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }

  .admin-sidebar .sidebar-section {
    margin-bottom: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    border-right: 1px solid var(--border-color);
    padding-right: 1rem;
  }

  .admin-sidebar .sidebar-section:last-child {
    border-right: none;
    padding-right: 0;
  }

  .admin-sidebar .sidebar-label {
    display: none; /* Hide labels on mobile to save space */
  }

  .admin-sidebar .sidebar-link {
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
    white-space: nowrap;
    display: inline-flex;
  }

  .admin-content {
    margin-left: 0;
    padding: 1.5rem 1rem;
  }
}

/* ============================================================
   SERVERS MONITORING ENHANCEMENTS
   ============================================================ */
.inset-0 {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#loading-overlay {
  transition: opacity 0.2s ease-in-out;
}

.server-grid-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-grid-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), var(--primary-glow);
}

.server-grid-card .server-game-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

.server-grid-card .server-game-badge.cs2 {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.server-grid-card .server-game-badge.cs16 {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.server-row {
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.server-row:hover {
  background-color: var(--bg-surface-hover) !important;
}

.btn-outline-custom.active {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #000 !important;
  box-shadow: var(--primary-glow);
}

/* ============================================================
   SERVER LIST ROW — CS2/CSGO Style Compact Design
   ============================================================ */

.slr-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-dashboard-card);
  border: 1px solid var(--border-dashboard-card);
  border-left: 3px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
  min-height: 62px;
}

.slr-row:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(2px);
}

/* Faded map bg on right */
.slr-map-overlay {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 28%;
  background-size: cover;
  background-position: center right;
  opacity: 0.12;
  pointer-events: none;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, transparent 100%);
  border-radius: 0 6px 6px 0;
}

/* ---- LEFT SIDE ---- */
.slr-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.slr-badges {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

/* Promo badges (PLATINUM / VIP / BOOST) */
.slr-promo {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 5px;
  border-radius: 3px;
  text-align: center;
  white-space: nowrap;
}
.slr-promo-platinum { background: #00f2fe; color: #000; }
.slr-promo-vip      { background: #8b5cf6; color: #fff; }
.slr-promo-boost    { background: #f59e0b; color: #000; }

/* Game pill (CS2 / CS 1.6) */
.slr-game {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 5px;
  border-radius: 3px;
  text-align: center;
  min-width: 38px;
  border: 1px solid;
}
.slr-game.cs2  { background: rgba(99,102,241,0.15); color: #818cf8; border-color: rgba(99,102,241,0.3); }
.slr-game.cs16 { background: rgba(251,146,60,0.15); color: #fb923c; border-color: rgba(251,146,60,0.3); }
.slr-game.css  { background: rgba(59,130,246,0.15); color: #60a5fa; border-color: rgba(59,130,246,0.3); }

/* Server name + meta block */
.slr-info {
  min-width: 0;
  flex: 1;
}

.slr-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-bottom: 3px;
}

.slr-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Country flag */
.slr-flag {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 0.72rem;
}
.slr-flag img {
  width: 15px;
  height: auto;
  border-radius: 1px;
  vertical-align: middle;
}
.slr-flag span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* IP + copy + steam */
.slr-ip {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.slr-ip code {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 0.72rem;
  color: #94a3b8;
  background: transparent;
  padding: 0;
}
.slr-ip > i {
  font-size: 0.7rem;
  color: #475569;
  transition: color 0.15s;
}
.slr-ip:hover > i { color: #94a3b8; }
.slr-steam {
  color: #475569;
  font-size: 0.72rem;
  transition: color 0.15s;
  text-decoration: none;
}
.slr-steam:hover { color: #94a3b8; }

/* ---- RIGHT SIDE ---- */
.slr-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.slr-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.slr-mapname {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: #6ee7f7;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.slr-mapname i { font-size: 0.65rem; opacity: 0.7; }

.slr-pills {
  display: flex;
  align-items: center;
  gap: 5px;
}

.slr-pill-players {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-weight: 700;
  white-space: nowrap;
}
.slr-pill-players i { font-size: 0.65rem; color: #4ade80; }
.slr-pill-players strong { color: #f1f5f9; font-weight: 800; }
.slr-pmax { color: #64748b; font-weight: 400; font-size: 0.72rem; }

.slr-pill-offline {
  display: inline-block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.68rem;
  color: #f87171;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-heading);
}

/* Map Thumbnail */
.slr-thumb {
  width: 64px;
  height: 44px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ============================================================
   MOBILE RESPONSIVE — server list rows
   ============================================================ */
@media (max-width: 640px) {
  .slr-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 12px;
    min-height: unset;
  }

  .slr-left {
    flex: 1 1 100%;
    min-width: 0;
  }

  .slr-right {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .slr-thumb {
    width: 56px;
    height: 38px;
  }

  .slr-name {
    font-size: 0.82rem;
  }

  .slr-map-overlay {
    width: 40%;
    opacity: 0.08;
  }
}

@media (max-width: 420px) {
  .slr-ip code { display: none; }
  .slr-flag span { display: none; }
}

