:root {
  --rust-orange: #CE422B;
  --rust-red: #8B2500;
  --rust-brown: #2A1810;
  --rust-dark: #0D0D0D;
  --rust-darker: #080808;
  --rust-darkest: #030303;
  --rust-glow: rgba(206, 66, 43, 0.15);
  --glass-bg: rgba(13, 13, 13, 0.85);
  --glass-border: rgba(80, 80, 80, 0.3);
    --hero-gradient: linear-gradient(135deg,
    rgba(139, 37, 0, 0.85) 0%,
    rgba(42, 24, 16, 0.92) 50%,
    rgba(3, 3, 3, 0.98) 100%);
}

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

html {
  height: 100%;
  overflow-y: scroll;
}

body {
  background: #000000;
  color: #D0D0D0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  position: relative;
  overflow-x: hidden;
  padding-top: 56px;
}

/* Subtle animated background - minimal red */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(206, 66, 43, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(30, 30, 30, 0.5) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Navbar - Sleek and modern */
.navbar.fixed-top {
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(8, 8, 8, 0.98) !important;
  border-bottom: 1px solid rgba(80, 80, 80, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  position: fixed !important;
  top: 0 !important;
  z-index: 1030 !important;
  width: 100%;
}

/* Fix mobile navbar */
.navbar-collapse {
  background: rgba(8, 8, 8, 0.98);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid rgba(80, 80, 80, 0.4);
}

.navbar-nav {
  gap: 2rem;
}

.navbar-collapse .btn {
  margin-top: 1rem;
}

@media (min-width: 992px) {
  .navbar-collapse {
    background: transparent;
    padding: 0;
    border: none;
    margin-top: 0;
  }
  
  .navbar-nav {
    gap: 2rem;
  }
  
  .navbar-collapse .btn {
    margin-top: 0;
  }
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFF !important;
}

.navbar-brand:hover {
  color: var(--rust-orange) !important;
}

.nav-link {
  position: relative;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #999 !important;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rust-orange);
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rust-orange) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

/* Desktop only - centered underline */
@media (min-width: 992px) {
  .nav-link::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .nav-link:hover::before,
  .nav-link.active::before {
    width: 80%;
  }
}

/* Buttons - Modern Rust style */
.btn-danger,
.btn-primary {
  background: linear-gradient(135deg, var(--rust-orange) 0%, var(--rust-red) 100%);
  border: 1px solid var(--rust-orange);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(206, 66, 43, 0.3);
}

.btn-danger:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(206, 66, 43, 0.5);
  background: linear-gradient(135deg, var(--rust-red) 0%, var(--rust-orange) 100%);
}

.btn-outline-danger,
.btn-outline-light {
  border: 2px solid rgba(206, 66, 43, 0.5);
  color: var(--rust-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  background: rgba(20, 20, 20, 0.6);
}

.btn-outline-danger:hover,
.btn-outline-light:hover {
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(206, 66, 43, 0.8);
  color: var(--rust-orange);
  box-shadow: 0 0 15px rgba(206, 66, 43, 0.25), inset 0 0 20px rgba(206, 66, 43, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  isolation: isolate;
  background: url('../images/hero.webp') center/cover no-repeat;
  padding: 3rem 0 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.7) 0%, rgba(42, 24, 16, 0.7) 100%);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-gradient);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(206, 66, 43, 0.03) 2px,
      rgba(206, 66, 43, 0.03) 4px
    );
  pointer-events: none;
}

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

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-description {
  max-width: 900px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #d0d0d0;
}

/* Stats Cards */
.stat-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-label {
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* Search Form */
.search-form-container {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2rem;
  margin: 0 auto;
}

.search-label {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.search-input {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff !important;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.search-input:focus {
  background: rgba(0, 0, 0, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  color: #fff !important;
}

.form-select.search-input,
.form-select.search-input:focus,
.form-select.search-input:active {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
  padding-right: 2.5rem !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.search-input option {
  background: #1a1a1a;
  color: #fff;
}

/* Hide Type select element by default to prevent any flicker */
#type {
  display: none !important;
}

/* ========================================
   SELECT2 DARK THEME - EXACT MATCH TO SCREENSHOT
   ======================================== */

/* Main Select2 container - same size as other inputs */
.select2-container--bootstrap-5 .select2-selection--multiple {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  min-height: 46px !important;
  height: 46px !important;
  padding: 0.75rem 1rem !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  font-size: 0.9rem !important;
}

/* Focus/Open state - ORANGE border */
.select2-container--bootstrap-5.select2-container--focus .select2-selection--multiple,
.select2-container--bootstrap-5.select2-container--open .select2-selection--multiple {
  background: rgba(0, 0, 0, 0.6) !important;
  border-color: #CE422B !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Tags container - single line, hidden overflow */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  padding: 0 !important;
  margin: 0 !important;
  align-items: center !important;
  width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Placeholder when no items selected */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered:empty::before {
  content: "Select types..." !important;
  color: #666 !important;
  font-size: 13px !important;
  pointer-events: none !important;
}

/* Selected tags - Light green bg with dark green text, highly rounded */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
  background: rgba(104, 122, 73, 0.25) !important;
  border: none !important;
  color: #687a49 !important;
  padding: 4px 10px !important;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

/* Hide X button on tags */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
  display: none !important;
}

/* Hide search input - no typing allowed, only click to select */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-search {
  display: none !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field {
  display: none !important;
}

/* Show placeholder when no selections */
.select2-container--bootstrap-5 .select2-selection__placeholder {
  color: #666 !important;
  font-size: 13px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

/* Dropdown container */
.select2-container--bootstrap-5 .select2-dropdown {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
  border-radius: 3px !important;
  margin-top: 2px !important;
}

/* Dropdown search */
.select2-container--bootstrap-5 .select2-search--dropdown {
  padding: 4px !important;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid #333 !important;
  color: #fff !important;
  border-radius: 2px !important;
  padding: 4px 8px !important;
  font-size: 13px !important;
}

/* Dropdown options */
.select2-container--bootstrap-5 .select2-results__options {
  max-height: 200px !important;
}

.select2-container--bootstrap-5 .select2-results__option {
  background: transparent !important;
  color: #ccc !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
}

/* Highlighted option - NOT selected */
.select2-container--bootstrap-5 .select2-results__option--highlighted:not([aria-selected=true]) {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
}

/* Selected option - ALWAYS GREEN background with checkmark */
.select2-container--bootstrap-5 .select2-results__option--selected,
.select2-container--bootstrap-5 .select2-results__option[aria-selected=true] {
  background: #687a49 !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  position: relative !important;
}

/* Selected AND highlighted - still GREEN */
.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected=true],
.select2-container--bootstrap-5 .select2-results__option--highlighted.select2-results__option--selected {
  background: #7a8c57 !important;
  color: #ffffff !important;
}

/* Checkmark on selected options */
.select2-container--bootstrap-5 .select2-results__option[aria-selected=true]::after,
.select2-container--bootstrap-5 .select2-results__option--selected::after {
  content: "✓" !important;
  position: absolute !important;
  right: 12px !important;
  color: #b5d19f !important;
  font-weight: bold !important;
  font-size: 14px !important;
}

/* Clear button */
.select2-container--bootstrap-5 .select2-selection__clear {
  display: none !important;
}

/* Container width */
.select2-container {
  width: 100% !important;
}

/* ========================================
   END SELECT2 CUSTOMIZATION
   ======================================== */

.btn-reset {
  background: transparent;
  border: 2px solid var(--rust-orange);
  color: var(--rust-orange);
  padding: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-reset:hover {
  background: rgba(206, 66, 43, 0.1);
  border-color: var(--rust-orange);
  color: var(--rust-orange);
}

.btn-search {
  background: var(--rust-orange);
  border: none;
  color: #fff;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-search:hover {
  background: #b83825;
  color: #fff;
}

/* Server Cards */
.glass {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.glass:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.badge {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.progress {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #CE422B, #8B2500);
}

.bg-dark {
  background: rgba(0, 0, 0, 0.5) !important;
}

.btn-dark {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
}

.btn-dark:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-red {
  background: linear-gradient(90deg, #CE422B, #8B2500);
  border: none;
}

.btn-red:hover {
  background: linear-gradient(90deg, #8B2500, #CE422B);
}

.btn-green {
  background: linear-gradient(90deg, #687a49, #4c6421);
  border: none;
}

.btn-green:hover {
  background: linear-gradient(90deg, #4c6421, #687a49);
}

/* Progress bars - Smooth */
.progress {
  height: 12px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(206, 66, 43, 0.3);
}

.progress-bar {
  background: linear-gradient(90deg, var(--rust-red), var(--rust-orange));
  box-shadow: 0 0 10px var(--rust-glow-strong);
  transition: width 0.6s ease;
}

/* Badges - Subtle */
.badge {
  background: rgba(206, 66, 43, 0.15);
  color: var(--rust-light);
  border: 1px solid rgba(206, 66, 43, 0.4);
  padding: 0.5rem 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.badge:hover {
  background: rgba(206, 66, 43, 0.25);
  border-color: var(--rust-orange);
  transform: scale(1.05);
}

/* Footer - Modern minimal */
.footer {
  background: #0d0d0d;
  color: #999;
  border-top: 1px solid #222;
  margin-top: auto;
}

.footer-heading {
  color: #CE422B;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: #222;
  border-color: #CE422B;
  color: #CE422B;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  font-size: 0.85rem;
}

.footer-legal-link {
  color: #666;
  text-decoration: none;
  margin-left: 1rem;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: #CE422B;
}

.footer-legal-link:first-child {
  margin-left: 0;
}

/* Form controls */
.form-control,
.form-select {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: 4px;
}

.form-control:focus,
.form-select:focus {
  background: rgba(0, 0, 0, 0.7) !important;
  border-color: var(--rust-orange);
  box-shadow: none;
  color: #fff;
}

.form-control::placeholder {
  color: #888;
}

.glass {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Profile specific */
.profile-avatar {
  border: 3px solid var(--rust-orange);
  box-shadow: 
    0 0 20px var(--rust-glow-strong),
    0 8px 32px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 30px var(--rust-glow-strong),
    0 12px 48px rgba(0, 0, 0, 0.9);
}

/* Accordion - Clean */
.accordion-button {
  background: rgba(13, 13, 13, 0.8);
  color: var(--rust-light);
  border: 1px solid rgba(206, 66, 43, 0.3);
  font-weight: 700;
  transition: all 0.3s ease;
}

.accordion-button:focus {
  box-shadow: none;
  outline: none;
}

.accordion-button:not(.collapsed) {
  background: rgba(206, 66, 43, 0.2);
  color: white;
  border-color: var(--rust-orange);
  box-shadow: none;
}

.accordion-button:hover {
  background: rgba(206, 66, 43, 0.15);
  color: white;
}

/* FAQ Chevron Animation */
.chevron.rotate {
  transform: rotate(180deg);
}

.accordion-body {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(206, 66, 43, 0.2);
}

/* Code blocks */
pre {
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(206, 66, 43, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  color: var(--rust-light);
  font-family: 'Courier New', monospace;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Text colors */
.text-primary {
  color: var(--rust-orange) !important;
}

.text-light {
  color: #D0D0D0 !important;
}

.text-white {
  color: #FFF !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.text-secondary {
  color: #888 !important;
}

/* Steam login image */
.steam-login-img {
  display: inline-block;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 20px var(--rust-glow));
}

.steam-login-img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 8px 30px var(--rust-glow-strong));
}

/* List groups */
.list-group-item {
  background: rgba(13, 13, 13, 0.8);
  border: 1px solid rgba(206, 66, 43, 0.2);
  color: #D0D0D0;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background: rgba(206, 66, 43, 0.1);
  border-color: var(--rust-orange);
  transform: translateX(4px);
}

/* Cards - Darker and cleaner */
.card {
  background: var(--card-gradient);
  border: 1px solid rgba(60, 60, 60, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.9), 0 0 15px rgba(80, 80, 80, 0.4);
}

.card-header {
  background: rgba(20, 20, 20, 0.8);
  border-bottom: 1px solid rgba(60, 60, 60, 0.4);
  font-weight: 700;
}

.card-body {
  background: rgba(10, 10, 10, 0.6);
}

/* Alerts */
.alert-info {
  background: rgba(206, 66, 43, 0.12);
  border: 1px solid rgba(206, 66, 43, 0.4);
  color: var(--rust-light);
}

/* Info items - Darker */
.bg-black {
  background: rgba(0, 0, 0, 0.6) !important;
}

.bg-dark {
  background: rgba(13, 13, 13, 0.9) !important;
}

.border-secondary {
  border-color: rgba(206, 66, 43, 0.25) !important;
}

.border-primary {
  border-color: var(--rust-orange) !important;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .search-form-container {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .stat-value {
    font-size: 1.5rem;
  }
}

/* Scrollbar styling - Rust themed */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--rust-darkest);
  border-left: 1px solid rgba(206, 66, 43, 0.2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rust-orange), var(--rust-red));
  border-radius: 5px;
  border: 2px solid var(--rust-darkest);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--rust-red), var(--rust-orange));
}

/* Selection */
::selection {
  background: var(--rust-orange);
  color: white;
}

/* Images */
img {
  transition: all 0.3s ease;
}

img:hover {
  filter: brightness(1.1);
}

/* Smooth page transitions */
.container {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Modern card hover effect - subtle */
.srv-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.srv-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 0 30px var(--rust-glow);
}

/* Pagination */
.pagination {
  gap: 0.5rem;
}

.page-link {
  background-color: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  padding: 0.5rem 1rem;
  border-radius: 4px !important;
  transition: all 0.3s ease;
}

a {
  text-decoration: none;
}

.page-link:hover {
  background-color: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.page-item.active .page-link {
  background: linear-gradient(90deg, #CE422B, #8B2500) !important;
  border: none;
  color: #fff;
}

.page-item.disabled .page-link {
  background: rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.05);
  color: #555;
}

/* Server Cards with Graphs */
.server-card {
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 1.5rem;
}

.server-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.server-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.server-badge {
  padding: 0.35rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-red {
  background: #CE422B;
  color: #fff;
}

.badge-green {
  background: #687a49;
  color: #fff;
}

.text-red {
  color: #CE422B !important;
}

.text-green {
  color: #687a49 !important;
}

/* Player Count Section */
.player-count {
  background: transparent;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 1px solid #222;
}

.count-big {
  font-size: 3.5rem;
  font-weight: 700;
  color: #CE422B;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.count-label {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 1rem;
}

.count-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.85rem;
}

.count-stats .stat-label {
  color: #555;
  margin-right: 0.25rem;
}

.count-stats .stat-val {
  color: #888;
  font-weight: 600;
}

/* Mini Chart */
.server-mini-chart {
  height: 200px;
  margin-bottom: 1rem;
  background: rgba(10, 10, 10, 0.5);
  border-radius: 6px;
  overflow: visible;
  padding: 0.5rem;
}

.server-mini-chart > div {
  height: 190px !important;
  width: 100% !important;
}

/* Grid Info */
.server-grid-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.server-player-info {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.grid-item {
  background: transparent;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
}

.players-item {
  background: transparent;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 0.75rem;
  padding-top: 1.2rem;
  text-align: center;
}

.grid-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #CE422B;
}

.grid-icon i {
  display: block;
}

.grid-value {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.grid-label {
  font-size: 0.65rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Actions */
.server-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-outline-server {
  background: transparent;
  border: 2px solid rgba(206, 66, 43, 0.6);
  color: #CE422B;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: 100%;
  border-radius: 6px;
}

.btn-outline-server:hover {
  background: rgba(206, 66, 43, 0.1);
  border-color: var(--rust-orange);
  color: var(--rust-orange);
}

.btn-connect {
  background-color: #687a49;
  border: none;
  color: #fff;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: 100%;
  border-radius: 6px;
}

.btn-connect:hover {
  background-color: #687a49;
  color: #fff;
  transform: scale(1.02);
}

/* Connect String */
.server-connect-string {
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 20, 40, 0.4);
  border: 1px solid #222;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: monospace;
  font-size: 0.85rem;
  color: #999;
}

.server-connect-string:hover {
  background: rgba(0, 30, 50, 0.6);
  border-color: #333;
  color: #fff;
}

.server-connect-string i {
  color: #CE422B;
  font-size: 1rem;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.server-connect-string span {
  user-select: all;
  flex: 1;
}

/* Horizontal Wide Server Cards */
.server-card-wide {
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 1rem;
  padding-top: 1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  gap: 1rem;
}

/* Left Section */
.server-left-section {
  display: flex;
  flex-direction: column;
  min-width: 400px;
  max-width: 400px;
}

.server-header-top {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge-num {
  background: #CE422B;
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-points {
  background: #687a49;
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.server-name-wide {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.2rem 0;
    letter-spacing: 0.3px;
    line-height: 1.3;
    min-height: 2.6rem; /* 2 lines * 1.3 line-height * 1rem font-size */
    display: flex;
    align-items: flex-start;
}

.server-players-wide {
  font-size: 0.95rem;
  font-weight: 300;
  color: #fff;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: lowercase;
}

.tag-red {
  background: rgba(206, 66, 43, 0.25);
  color: #CE422B;
}

.tag-green {
  background: rgba(104, 122, 73, 0.25);
  color: #687a49;
}

/* Chart Section */
.server-chart-section {
  flex: 1;
  border-radius: 6px;
  padding: 0rem;
  min-width: 350px;
}

.server-chart-section > div {
  height: 180px !important;
}

/* Right Section */
.server-right-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 380px;
}

.stats-grid-top,
.stats-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat-box-small {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #222;
  border-radius: 6px;
  padding: 0.6rem 0.4rem;
  text-align: center;
}

.stat-box-small i {
  color: #CE422B;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  display: block;
}

.stat-value-sm {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.stat-label-sm {
  font-size: 0.6rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-view-details {
  background: transparent;
  border: 2px solid #CE422B;
  color: #CE422B;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-view-details:hover {
  background: rgba(206, 66, 43, 0.1);
  color: #CE422B;
}

.btn-connect-srv {
    background: transparent;
    border: 2px solid #4a7c4e;
    color: #4a7c4e;
    padding: 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-connect-srv:hover {
  background: rgba(66, 206, 43, 0.1);
  color: #4a7c4e;
}

/* Responsive - Stack on mobile */
@media (max-width: 1199.98px) {
  .server-card-wide {
    flex-wrap: wrap;
  }
  
  .server-left-section {
    min-width: 100%;
    max-width: 100%;
  }
  
  .server-chart-section {
    min-width: 100%;
    flex: 1 1 100%;
  }
  
  .server-right-section {
    min-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .stats-grid-top,
  .stats-grid-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}



.server-card-wide {
    position: relative;
    overflow: hidden;
    /* opcionális alap háttér */
    background-color: #111;
}

/* A valódi háttérkép + blur */
.server-card-wide::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;

    filter: blur(6px);      /* blur erőssége */
    opacity: 0.1;           /* átlátszóság */
    transform: scale(1.05); /* blur szélét elrejti */
    z-index: 0;
}

/* Sötét overlay (ha kell még kontraszt) */
.server-card-wide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* opcionális */
    z-index: 0;
}

/* Tartalom a blur fölé */
.server-card-wide > * {
    position: relative;
    z-index: 1;
}

.text-justify {
  text-align: justify !important;
}

