/* ========================================
   PRIVATE VPN STATUS MONITOR 2026
   Modern Design with Glassmorphism & Animations
   ======================================== */

:root {
  /* Colors - Dark Theme */
  --bg: #0a0e14;
  --bg-secondary: #0f141b;
  --card: rgba(20, 26, 35, 0.8);
  --card-hover: rgba(25, 32, 42, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  /* Text */
  --text: #e4e9f0;
  --text-secondary: #a0aec0;
  --text-muted: #6b7280;
  
  /* Brand Colors */
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --primary-light: #93c5fd;
  --accent: #8b5cf6;
  --accent-dark: #7c3aed;
  
  /* Status Colors */
  --online: #10b981;
  --online-glow: rgba(16, 185, 129, 0.3);
  --offline: #ef4444;
  --offline-glow: rgba(239, 68, 68, 0.3);
  --unstable: #f59e0b;
  --unstable-glow: rgba(245, 158, 11, 0.3);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.35);
  
  /* Animations */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #0a0e14 0%, #0f141b 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  background: 
    radial-gradient(ellipse 800px 600px at 50% -20%, rgba(96, 165, 250, 0.15), transparent),
    linear-gradient(180deg, rgba(20, 26, 35, 0.95) 0%, rgba(10, 14, 20, 0.98) 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.particles {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(96, 165, 250, 0.3), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(139, 92, 246, 0.3), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(96, 165, 250, 0.2), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(139, 92, 246, 0.2), transparent);
  background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px;
  background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
  animation: particle-float 60s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

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

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-light);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

.hero__title {
  margin: 1.5rem 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  min-width: 140px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

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

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Hero Menu */
.hero__menu {
  max-width: 1200px;
  margin: 2rem auto 0;
  background: rgba(15, 20, 27, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.tablike {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.tablike::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tablike:hover::before {
  opacity: 1;
}

.tablike:hover {
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.tablike.is-active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(96, 165, 250, 0.3);
}

/* ========== ANIMATIONS ========== */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s var(--transition-base) forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s var(--transition-base) forwards;
}

.animate-fade-in-up:nth-child(2) {
  animation-delay: 0.1s;
}

.animate-fade-in-up:nth-child(3) {
  animation-delay: 0.2s;
}

/* ========== LOADING ========== */
.loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0e14 0%, #0f141b 100%);
  z-index: 9999;
}

.loader-wrapper {
  text-align: center;
}

.loader {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
}

.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-ring:nth-child(2) {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-top-color: var(--accent);
  animation-delay: -0.5s;
}

.loader-ring:nth-child(3) {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  border-top-color: var(--primary-light);
  animation-delay: -1s;
}

.loading-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  animation: loading-progress 2s ease-in-out infinite;
}

@keyframes loading-progress {
  0% {
    width: 0;
    margin-left: 0;
  }
  50% {
    width: 100%;
    margin-left: 0;
  }
  100% {
    width: 0;
    margin-left: 100%;
  }
}

/* ========== CONTENT ========== */
.content {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}

/* Controls */
.controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}

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

.search-box input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

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

.clear-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.clear-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  color: var(--text);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.filter-btn .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.view-toggle {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.25rem;
}

.view-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.view-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.view-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Panel */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.panel__title-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.panel__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background: var(--online);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--online-glow);
}

.update-time {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.auto-refresh {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition-base);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition-base);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: #fff;
}

/* Server List */
.server-list {
  display: grid;
  gap: 1rem;
  min-height: 200px;
}

.server-list.grid-view {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.server-list.list-view {
  grid-template-columns: 1fr;
}

/* Server Card */
.server-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.server-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

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

.server-card.online {
  border-left: 3px solid var(--online);
}

.server-card.offline {
  border-left: 3px solid var(--offline);
}

.server-card.unstable {
  border-left: 3px solid var(--unstable);
}

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

.server-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.server-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.server-status-badge.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--online);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.server-status-badge.offline {
  background: rgba(239, 68, 68, 0.15);
  color: var(--offline);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.server-status-badge.unstable {
  background: rgba(245, 158, 11, 0.15);
  color: var(--unstable);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.server-status-badge i {
  font-size: 0.625rem;
}

.server-uptime {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.uptime-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.uptime-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--online), var(--primary));
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.uptime-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.uptime-percent {
  font-weight: 700;
  min-width: 45px;
  text-align: right;
}

/* Status Track */
.status-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1rem;
}

.status-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--offline);
  border: 2px solid rgba(239, 68, 68, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.status-circle.online {
  background: var(--online);
  border-color: rgba(16, 185, 129, 0.3);
}

.status-circle:hover {
  transform: scale(1.4);
  z-index: 10;
}

.status-circle.active {
  transform: scale(1.6);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

.time-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 100;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.time-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--bg-secondary);
}

.status-circle.active .time-tooltip {
  opacity: 1;
  visibility: visible;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.no-results p {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.no-results small {
  font-size: 0.875rem;
}

/* Legend */
.legend {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legend-title {
  font-weight: 700;
  color: var(--text);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.legend .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.dot--online {
  background: var(--online);
  border-color: rgba(16, 185, 129, 0.3);
}

.dot--offline {
  background: var(--offline);
  border-color: rgba(239, 68, 68, 0.3);
}

.dot--unstable {
  background: var(--unstable);
  border-color: rgba(245, 158, 11, 0.3);
}

.dot.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease-out;
}

.modal-content {
  position: relative;
  max-width: 600px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-xl);
  animation: modal-slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 1;
}

.modal-close:hover {
  background: var(--offline);
  color: #fff;
  border-color: transparent;
}

.modal-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.modal-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
}

.modal-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.modal-stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.modal-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.modal-history {
  margin-top: 2rem;
}

.modal-history h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.history-timeline {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 1.5rem 2rem;
  backdrop-filter: blur(10px);
}

.site-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

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

.brand__icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(96, 165, 250, 0.3);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.brand__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.quick-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  border: 1px solid transparent;
}

.btn--ghost {
  background: var(--bg-secondary);
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--tg {
  background: #229ED9;
  color: #fff;
}

.btn--tg:hover {
  background: #1a88bd;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 158, 217, 0.3);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem 1.5rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__stats {
    gap: 1rem;
  }

  .stat-card {
    min-width: 120px;
    padding: 1.25rem;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: 100%;
  }

  .filter-group {
    justify-content: center;
  }

  .view-toggle {
    margin-left: 0;
    justify-content: center;
  }

  .server-list.grid-view {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 1.5rem;
  }

  .panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero__menu {
    gap: 0.375rem;
    padding: 0.5rem;
  }

  .tablike {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
  }

  .stat-card {
    min-width: 100px;
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .filter-btn {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .hero__menu,
  .controls,
  .auto-refresh,
  .modal,
  .site-footer {
    display: none;
  }
}
