/* ===== CSS Variables ===== */
:root {
  --primary-color: #7c3aed;
  --secondary-color: #06b6d4;
  --accent-color: #f59e0b;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-hover: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  
  --vip1-color: #fbbf24;
  --vip2-start: #a855f7;
  --vip2-end: #06b6d4;
  --vip3-start: #f97316;
  --vip3-mid: #ec4899;
  --vip3-end: #8b5cf6;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Logo with image */
.logo {
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-image {
  height: 70px;
  width: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  margin: -0.5rem 0;
}

.logo a:hover .logo-image {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .logo-image {
    height: 50px;
    margin: -0.3rem 0;
  }
}

.tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  margin-bottom: 0;
}

/* Make sure header doesn't break layout */
.header .container {
  max-width: 1200px;
}

/* ===== Main Content Layout ===== */
.main-content {
  padding: 2rem 0;
}

/* SEO H1 (скрытый от глаз, видимый для поисковиков) */
.seo-h1 {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.content-grid {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* ===== Banners ===== */
.banners-left,
.banners-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

.banner {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
}

.banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Независимо от размера загруженного изображения,
     оно автоматически подстроится под размер контейнера */
}

.banner-small {
  height: 200px;
}

.banner-medium {
  height: 300px;
}

.banner-large {
  height: 400px;
}

.banner a {
  display: block;
  height: 100%;
}

.banner img[src*="placeholder"] {
  opacity: 0.7;
  transition: opacity 0.3s;
}

.banner:hover img[src*="placeholder"] {
  opacity: 1;
}

/* Top Horizontal Banner */
.top-banner-container {
  margin-bottom: 2rem;
  width: 100%;
}

.banner-horizontal {
  width: 100%;
  height: 50px;
  margin: 0;
}

.banner-horizontal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Скрытие баннеров перенесено в медиа-запрос @media (max-width: 1200px) */

/* ===== Mobile Tabs ===== */
.tabs-mobile {
  display: none;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ===== Servers Section ===== */
.servers-section {
  min-height: 500px;
}

/* Add Server Button */
.add-server-btn-container {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: flex-start;
}

.btn-add-server {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: all 0.3s;
}

.btn-add-server:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-add-server .btn-icon {
  font-size: 1.1rem;
}

/* Two Column Layout for Desktop */
.servers-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.servers-column {
  display: block;
}

/* Mobile: hide columns, show tabs */
@media (max-width: 768px) {
  .servers-columns {
    display: block;
  }
  
  .servers-block {
    display: none;
  }
  
  .servers-block.active {
    display: block;
  }
}

/* Column Headers */
.column-header {
  font-size: 1.3rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 2px solid var(--border-color);
}

.servers-table {
  background: transparent;
  border-radius: 8px;
  overflow: visible;
}

/* ===== Section Dividers ===== */
.section-divider {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(6, 182, 212, 0.25));
  padding: 1rem 1.25rem;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  border-top: 3px solid rgba(124, 58, 237, 0.5);
  border-bottom: 3px solid rgba(124, 58, 237, 0.5);
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
  text-align: center;
}

.section-divider:first-child {
  margin-top: 0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.vip-section .section-divider {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(236, 72, 153, 0.3));
  color: #f97316;
  border-top-color: rgba(249, 115, 22, 0.6);
  border-bottom-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.regular-section .section-divider {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(124, 58, 237, 0.25));
  border-top-color: rgba(6, 182, 212, 0.5);
  border-bottom-color: rgba(124, 58, 237, 0.5);
}

/* ===== Date Groups (Separate Sections) ===== */
.date-group {
  margin: 2rem 1rem;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding-bottom: 0;
}

.date-group:first-child {
  margin-top: 1rem;
}

.date-group:last-child {
  margin-bottom: 1rem;
}

.date-group-title {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(6, 182, 212, 0.15));
  border-bottom: 3px solid rgba(124, 58, 237, 0.4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* Special styling for "Today" group */
.date-group-today {
  border: 2px solid var(--success-color);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.date-title-today {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
  border-bottom-color: var(--success-color);
  color: #10b981;
  animation: todayGlow 2s ease-in-out infinite;
}

@keyframes todayGlow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
  }
}

.date-group .server-row {
  border-bottom: 1px solid var(--border-color);
  background: transparent;
}

.date-group .server-row:first-of-type {
  border-top: none;
}

.date-group .server-row:last-child {
  border-bottom: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.date-group .server-row:hover {
  background: var(--bg-hover);
}

/* ===== VIP and Regular Sections ===== */
.vip-section,
.regular-section {
  margin: 0;
  padding: 1rem 0;
}

.vip-section {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.05), rgba(249, 115, 22, 0.01));
  border-bottom: 3px solid rgba(249, 115, 22, 0.2);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.regular-section {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.05), rgba(6, 182, 212, 0.01));
  padding-bottom: 2rem;
}

/* VIP Slots Info */
.vip-slots-info {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vip-slot-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.vip-slot-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
}

.vip-slot-3 {
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: white;
}

.vip-slot-2 {
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  color: white;
}

.vip-slot-1 {
  background: #fbbf24;
  color: #0f172a;
}

.vip-slot-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.vip-slot-text strong {
  color: var(--text-primary);
  font-size: 1rem;
}

/* ===== VIP Servers List (Without Date Groups) ===== */
.vip-servers-list {
  margin: 1rem;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.2);
}

.vip-servers-list .server-row {
  border-bottom: 1px solid var(--border-color);
}

.vip-servers-list .server-row:last-child {
  border-bottom: none;
}

/* ===== Server Row (Compact Style) ===== */
.server-row {
  display: grid;
  grid-template-columns: 3fr 0.6fr 1fr 0.8fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0.85rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s;
  position: relative;
  min-height: 0;
}

.server-row:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.server-row:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-bottom: none;
}

.server-row:hover {
  background: var(--bg-hover);
  transform: scale(1.02);
}

/* VIP Level Row Backgrounds */
.server-row.vip-level-1 {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.03));
  border-left: 2px solid rgba(251, 191, 36, 0.5);
}

.server-row.vip-level-1:hover {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.08));
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.2);
}

.server-row.vip-level-2 {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.1), rgba(6, 182, 212, 0.05));
  border-left: 2px solid rgba(168, 85, 247, 0.6);
}

.server-row.vip-level-2:hover {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.18), rgba(6, 182, 212, 0.12));
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.3);
}

.server-row.vip-level-3 {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.12), rgba(236, 72, 153, 0.12), rgba(139, 92, 246, 0.12));
  border-left: 3px solid var(--vip3-start);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.server-row.vip-level-3:hover {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.2), rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
  transform: scale(1.03);
}

/* ===== Server Row Cells ===== */
.server-name-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 0;
  overflow: hidden;
}

.server-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.server-link:hover {
  color: var(--primary-color);
}

.server-rates-cell {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
}

.server-chronicle-cell {
  color: var(--text-secondary);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-date-cell {
  text-align: right;
  white-space: nowrap;
}

/* ===== Date Display (Oval Badge Style) ===== */
.server-date-cell {
  font-size: 0.75rem;
}

.server-date-cell span {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  background: rgba(124, 58, 237, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

/* ===== Special Date Badges ===== */
.date-badge-today {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
  border-color: #10b981 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
  animation: todayPulse 2s ease-in-out infinite;
  text-transform: uppercase;
}

@keyframes todayPulse {
  0%, 100% {
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 3px 15px rgba(16, 185, 129, 0.8);
    transform: scale(1.05);
  }
}

.date-badge-tomorrow {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: white !important;
  border-color: #f59e0b !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5);
  animation: tomorrowPulse 2.5s ease-in-out infinite;
  text-transform: uppercase;
}

@keyframes tomorrowPulse {
  0%, 100% {
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 3px 15px rgba(245, 158, 11, 0.8);
    transform: scale(1.05);
  }
}

/* ===== Server Tags as Icons ===== */
.server-tags-icons {
  display: inline-flex;
  gap: 0.15rem;
  align-items: center;
  flex-shrink: 0;
}

.tag-icon {
  font-size: 0.9rem;
  line-height: 1;
  cursor: help;
  transition: transform 0.2s;
  filter: grayscale(0.2);
}

.tag-icon:hover {
  transform: scale(1.2);
  filter: grayscale(0);
}

/* БС - Быстрый старт (Молния) */
.tag-bs {
  filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.6));
}

/* ОБТ - Открытое бета тестирование (Пробирка) */
.tag-obt {
  filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.6));
}

/* Ремастер (Звезда) */
.tag-remaster {
  filter: drop-shadow(0 0 3px rgba(168, 85, 247, 0.6));
}

/* ===== VIP Badges (Inline with rectangles) ===== */
.vip-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-right: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.vip-icon {
  font-size: 0.8rem;
  line-height: 1;
}

.vip-label {
  letter-spacing: 0.3px;
  font-size: 0.65rem;
  line-height: 1;
}

/* VIP Level 1 - Gold */
.vip-badge-1 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

/* VIP Level 2 - Purple-Cyan gradient with animation */
.vip-badge-2 {
  background: linear-gradient(135deg, #a855f7, #06b6d4, #a855f7);
  background-size: 200% 200%;
  animation: vip2Gradient 3s ease infinite;
  color: white;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.5);
}

@keyframes vip2Gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* VIP Level 3 - Rainbow gradient with glow */
.vip-badge-3 {
  background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6, #f97316);
  background-size: 300% 300%;
  animation: vip3Gradient 4s ease infinite;
  color: white;
  box-shadow: 
    0 0 15px rgba(249, 115, 22, 0.6),
    0 0 25px rgba(236, 72, 153, 0.4);
  position: relative;
}

@keyframes vip3Gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  33% {
    background-position: 50% 100%;
  }
  66% {
    background-position: 100% 50%;
  }
}

/* Crown animation for VIP 3 */
.vip-badge-3 .vip-icon {
  animation: crownBounce 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes crownBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) rotate(-10deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(-3px) rotate(10deg);
  }
}

/* Old card styles removed - using compact row design now */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-discord {
  background: #5865f2;
  color: white;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1.1rem;
}

/* ===== Sidebar (Filters) ===== */
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 100px;
}

.filters-widget {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.widget-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.filter-select {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-dark);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.filter-select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== Filter Buttons (Oval & Beautiful) ===== */
.btn-filter {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.btn-filter-apply {
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-filter-apply::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn-filter-apply:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}

.btn-filter-apply:hover::before {
  left: 100%;
}

.btn-filter-apply:active {
  transform: translateY(-1px) scale(1);
}

.btn-filter-reset {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-filter-reset:hover {
  background: var(--bg-hover);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.btn-filter-reset:active {
  transform: translateY(0);
}

/* ===== No Servers ===== */
.no-servers {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  background: var(--bg-card);
}

.no-servers p {
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-card);
  border-top: 2px solid var(--border-color);
  margin-top: auto;
  padding: 1.5rem 0;
}

/* Ensure footer stays at bottom */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* Fix mobile layout */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Override for pages with footer grid */
.footer .container {
  max-width: 1200px;
}

/* ===== Error Page ===== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.error-content {
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.error-message {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  /* Скрываем ВСЕ баннеры на планшетах и мобильных */
  .banners-left,
  .banners-right,
  .top-banner-container,
  .banner-horizontal {
    display: none !important;
  }
  
  .sidebar-right {
    position: static;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  
  .mobile-menu-btn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .tabs-mobile {
    display: flex;
  }
  
  .servers-columns {
    display: block;
  }
  
  .servers-block {
    display: none !important;
  }
  
  .servers-block.active {
    display: block !important;
  }
  
  .server-row {
    grid-template-columns: 2.5fr 0.5fr 0.9fr 0.7fr;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .server-name-cell {
    font-size: 0.75rem;
    gap: 0.3rem;
  }
  
  .vip-badge-inline {
    padding: 0.15rem 0.4rem;
    font-size: 0.6rem;
  }
  
  .vip-icon {
    font-size: 0.7rem;
  }
  
  .vip-label {
    font-size: 0.6rem;
  }
  
  .server-rates-cell,
  .server-chronicle-cell {
    font-size: 0.7rem;
  }
  
  .server-date-cell {
    font-size: 0.65rem;
  }
  
  .column-header {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
  }
  
  .content-grid {
    gap: 1.5rem;
  }
  
  .filters-widget {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .server-name {
    font-size: 1.2rem;
  }
  
  .error-code {
    font-size: 5rem;
  }
  
  .error-title {
    font-size: 1.5rem;
  }
}

