/* servers-page.css */

/* Loading Placeholder */
.loading-placeholder {
  text-align: center;
  padding: 4rem 2rem;
  color: #94a3b8;
}

.loading-placeholder i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.loading-placeholder p {
  font-size: 1rem;
  margin: 0;
}

/* ─── Servers Hero Section ─── */
.servers-hero {
  position: relative;
  text-align: center;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

.servers-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.servers-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 35%, #eef2ff 70%, #faf5ff 100%);
}

.servers-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.servers-hero-glow-1 {
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  top: -120px;
  right: -80px;
}

.servers-hero-glow-2 {
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  bottom: -80px;
  left: -60px;
}

.servers-hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(at 80% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 45%);
}

.servers-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.servers-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.servers-hero-badge i {
  font-size: 0.9rem;
  opacity: 0.9;
}

.servers-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0 0 1rem;
}

.servers-hero-title-accent {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.servers-hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #475569;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.servers-hero-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
}

.servers-hero-values li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
}

.servers-hero-values li i {
  color: #6366f1;
  font-size: 0.9rem;
}

.servers-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.servers-hero-stat {
  padding: 1.75rem 1.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 244, 255, 0.85) 100%);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 20px;
  box-shadow: 0 4px 24px -4px rgba(37, 99, 235, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.servers-hero-stat::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 3px 3px 0 0;
  opacity: 0.5;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.servers-hero-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(59, 130, 246, 0.16), 0 6px 16px -4px rgba(0, 0, 0, 0.06);
  border-color: rgba(99, 102, 241, 0.25);
}

.servers-hero-stat:hover::before {
  opacity: 1;
  width: 60%;
}

.servers-hero-stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.servers-hero-stat-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.servers-hero-stat-hint {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .servers-hero {
    padding: 4rem 0 3rem;
  }
  .servers-hero-values {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }
  .servers-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .servers-hero-stat {
    padding: 1.25rem 1rem;
  }
  .servers-hero-stat-number {
    font-size: 1.75rem;
    margin-bottom: 0.3rem;
  }
  .servers-hero-stat-label {
    font-size: 0.78rem;
  }
  .servers-hero-stat-hint {
    font-size: 0.72rem;
  }
}

/* Legacy section-title used elsewhere on page (e.g. supported-services) */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Server Locations Section — compact list style */
.server-locations {
  padding: 2.5rem 0 3rem;
  background: #fafbfc;
}

#server-locations-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.region-section {
  margin-bottom: 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.region-section:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.region-section.ipv6-only {
  border-left: 3px solid #f59e0b;
}

.region-section::before {
  display: none;
}

.region-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  min-height: 48px;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease;
}

.region-header.collapsible {
  cursor: pointer;
  user-select: none;
  outline: none;
}

.region-header.collapsible:hover {
  background: #f9fafb;
}

.region-header.collapsible:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

.region-header[aria-expanded="true"] {
  border-bottom-color: #f3f4f6;
}

.region-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.region-flag-wrapper {
  flex-shrink: 0;
}

.region-flag {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.region-header.collapsible:hover .region-flag {
  border-color: #d1d5db;
}

.region-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.region-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.region-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.region-count-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.collapse-icon {
  font-size: 0.75rem;
  color: #9ca3af;
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
}

.region-header.collapsible:hover .collapse-icon {
  color: #4f46e5;
}

.region-header[aria-expanded="true"] .collapse-icon {
  color: #4f46e5;
}

.region-content {
  padding: 1rem 1.25rem 1.25rem;
  background: #fafbfc;
  animation: regionContentFade 0.25s ease;
}

.region-content.always-visible {
  display: block !important;
}

@keyframes regionContentFade {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.country-count,
.server-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
}

.region-header.collapsible:hover .server-count,
.region-header.collapsible:hover .country-count {
  background: #e5e7eb;
  color: #4b5563;
}

@media (max-width: 768px) {
  .region-header {
    padding: 0.75rem 1rem;
  }
  .region-flag {
    width: 24px;
    height: 24px;
  }
  .region-title {
    font-size: 0.9375rem;
  }
  .region-content {
    padding: 0.875rem 1rem 1rem;
  }
}

/* Server cards — flat, compact */
.server-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.server-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

a.server-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.server-card.clickable {
  cursor: pointer;
}

.server-card:hover {
  border-color: #6366f1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.server-card::before {
  display: none;
}

.server-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  gap: 0.5rem;
}

.server-card-header .fa-external-link-alt {
  color: #6366f1;
  font-size: 0.75rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.server-card.clickable:hover .fa-external-link-alt {
  opacity: 1;
}

.server-card-header h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.server-card-icons {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.server-card-icons i {
  color: #6b7280;
  font-size: 0.875rem;
}

/* City list — inline pills */
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.city-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.city-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.city-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.3;
}

a.city-item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.city-item:hover {
  border-color: #6366f1;
  background: #eef2ff;
}

a.city-item:hover .city-name {
  color: #4338ca;
}

a.server-card-header {
  text-decoration: none;
  color: inherit;
}

a.server-card-header-link {
  cursor: pointer;
}

a.server-card-header-link:hover h3 {
  color: #4338ca;
}

a.server-card-header-link:hover .fa-external-link-alt {
  opacity: 1;
}

.protocol-tags {
  display: inline-flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.protocol-tag {
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: none;
}

.protocol-tag.ipv4 {
  background: #dbeafe;
  color: #1e40af;
}

.protocol-tag.ipv6 {
  background: #fef3c7;
  color: #92400e;
}


/* Supported Services Section */
.supported-services {
  padding: 3rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.supported-services-page {
  padding-top: 5rem;
  min-height: 60vh;
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.unblock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  color: white;
  border-radius: 9999px;
  font-weight: 700;
  margin-bottom: 1.75rem;
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.unblock-badge i {
  font-size: 1.25rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #1e293b, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.service-category-section {
  margin-bottom: 2.5rem;
  background: #f8fafc;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
}

.service-category-section:last-child {
  margin-bottom: 0;
}

.service-category-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.service-category-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 1px;
}

.service-category-header h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-category-header h3 i {
  color: #6366f1;
  font-size: 1.125rem;
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.service-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 1rem 1rem 0.9rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0.35rem;
}

a.service-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card.clickable {
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.16), 0 6px 14px rgba(15, 23, 42, 0.08);
  border-color: #93c5fd;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.service-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.875rem;
}

.service-icon-wrapper i {
  font-size: 1.25rem;
  color: #4f46e5;
}

/* Blog-style branded service icons for services cards */
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  margin: 0 auto 0.875rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.service-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.service-icon.netflix { background: linear-gradient(135deg, #E50914, #B81D24); }
.service-icon.prime-video { background: linear-gradient(135deg, #00A8E1, #FF9900); }
.service-icon.hulu { background: linear-gradient(135deg, #1CE783, #00C851); }
.service-icon.bbc-iplayer { background: linear-gradient(135deg, #BB1919, #DC2626); }
.service-icon.itv { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.service-icon.hbo-max { background: linear-gradient(135deg, #5F2EEA, #B91D47); }
.service-icon.paramount-plus { background: linear-gradient(135deg, #0066CC, #003366); }
.service-icon.sky-sports { background: linear-gradient(135deg, #0070E0, #00A3E0); }
.service-icon.jio-cinema { background: linear-gradient(135deg, #4338CA, #0EA5E9); }
.service-icon.skyshowtime { background: linear-gradient(135deg, #1D4ED8, #EC4899); }
.service-icon.sling-tv { background: linear-gradient(135deg, #0066cc, #ef4444); }
.service-icon.vudu { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.service-icon.shudder { background: linear-gradient(135deg, #111827, #dc2626); }
.service-icon.britbox { background: linear-gradient(135deg, #1E40AF, #DC2626); }
.service-icon.peacock-tv { background: linear-gradient(135deg, #5B2EFF, #EC4899); }
.service-icon.discovery-plus { background: linear-gradient(135deg, #1D4ED8, #14B8A6); }
.service-icon.streameast { background: linear-gradient(135deg, #0F172A, #1D4ED8); }
.service-icon.roku-channel { background: linear-gradient(135deg, #6D28D9, #7C3AED); }
.service-icon.vix { background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.service-icon.pluto-tv { background: linear-gradient(135deg, #7C3AED, #2563EB); }
.service-icon.tubi-tv { background: linear-gradient(135deg, #1F2937, #EF4444); }
.service-icon.uk-tv { background: linear-gradient(135deg, #1D4ED8, #DC2626); }
.service-icon.channel-4 { background: linear-gradient(135deg, #111827, #374151); }
.service-icon.channel-5 { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.service-icon.abc { background: linear-gradient(135deg, #111827, #4B5563); }
.service-icon.ctv { background: linear-gradient(135deg, #16A34A, #2563EB); }
.service-icon.roblox { background: linear-gradient(135deg, #111827, #374151); }
.service-icon.twitch { background: linear-gradient(135deg, #7C3AED, #5B21B6); }
.service-icon.pokemon-go { background: linear-gradient(135deg, #2563EB, #06B6D4); }
.service-icon.brawl-stars { background: linear-gradient(135deg, #F59E0B, #DC2626); }
.service-icon.minecraft { background: linear-gradient(135deg, #16A34A, #14532D); }
.service-icon.clash-royal { background: linear-gradient(135deg, #2563EB, #F59E0B); }
.service-icon.bbc-sounds { background: linear-gradient(135deg, #7C3AED, #EC4899); }
.service-icon.spotify { background: linear-gradient(135deg, #1DB954, #16A34A); }
.service-icon.espn { background: linear-gradient(135deg, #FF0000, #CC0000); }
.service-icon.snapchat { background: linear-gradient(135deg, #FACC15, #EAB308); }
.service-icon.capcut { background: linear-gradient(135deg, #111827, #4B5563); }
.service-icon.tiktok { background: linear-gradient(135deg, #111827, #EC4899); }
.service-icon.x-twitter { background: linear-gradient(135deg, #111827, #1F2937); }
.service-icon.instagram { background: linear-gradient(135deg, #F43F5E, #7C3AED); }
.service-icon.reddit { background: linear-gradient(135deg, #F97316, #EA580C); }
.service-icon.discord { background: linear-gradient(135deg, #6366F1, #4338CA); }
.service-icon.omegle { background: linear-gradient(135deg, #EF4444, #DC2626); }
.service-icon.xyz-social { background: linear-gradient(135deg, #0EA5E9, #2563EB); }
.service-icon.chatgpt { background: linear-gradient(135deg, #10B981, #047857); }
.service-icon.gemini { background: linear-gradient(135deg, #3B82F6, #8B5CF6); }
.service-icon.grok { background: linear-gradient(135deg, #111827, #4B5563); }
.service-icon.national-lottery { background: linear-gradient(135deg, #7C3AED, #EC4899); }
.service-icon.betano { background: linear-gradient(135deg, #F97316, #EA580C); }
.service-icon.fanduel { background: linear-gradient(135deg, #2563EB, #1E40AF); }
.service-icon.paddy-power { background: linear-gradient(135deg, #16A34A, #15803D); }

.service-icon.discovery-plus .service-glyph { font-size: 0.56rem; }
.service-icon.paramount-plus .service-glyph,
.service-icon.sky-sports .service-glyph,
.service-icon.peacock-tv .service-glyph,
.service-icon.national-lottery .service-glyph { font-size: 0.58rem; }
.service-icon.bbc-iplayer .service-glyph,
.service-icon.uk-tv .service-glyph { font-size: 0.62rem; }
.service-icon.roku-channel .service-glyph,
.service-icon.britbox .service-glyph,
.service-icon.minecraft .service-glyph,
.service-icon.instagram .service-glyph { font-size: 0.64rem; }

.service-card img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.875rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
  min-height: 2.45em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  min-height: 1.65rem;
}

.service-blog-icon {
  color: #3b82f6;
  font-size: 0.75rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.service-card.clickable:hover .service-blog-icon {
  opacity: 1;
}

.region-section.ipv6-only {
  border-left: 4px solid #fbbf24;
}

.service-tag {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Search and Filter Bar */
.search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.search-filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.search-filter-search {
  flex: 1 1 280px;
  min-width: 0;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.9375rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 2.5rem 0 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9375rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.search-input-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s, color 0.2s;
}

.search-input-clear:hover {
  background: #e5e7eb;
  color: #374151;
}

.search-results-count {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6366f1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.search-results-count.show {
  opacity: 1;
}

.search-no-results {
  margin: 0.75rem 0 0;
  padding: 1rem 1.25rem;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 10px;
  color: #713f12;
  font-size: 0.875rem;
  line-height: 1.6;
}

.search-no-results p {
  margin: 0 0 0.5rem;
}

.search-no-results p:last-child {
  margin-bottom: 0;
}

.search-no-results-hint {
  font-size: 0.8125rem;
  color: #92400e;
}

.search-no-results-hint a {
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
}

.search-no-results-hint a:hover {
  text-decoration: underline;
}

.search-no-results-clear {
  background: none;
  border: none;
  color: #6366f1;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  font-weight: 600;
}

.search-no-results-clear:hover {
  color: #4f46e5;
}

.search-suggestions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: #92400e;
}

.search-suggestion-btn {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6366f1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.search-suggestion-btn:hover {
  background: #eef2ff;
  border-color: #6366f1;
}

.search-filter-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-segments {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 3px;
  border: 1px solid #e5e7eb;
}

.filter-segment {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.875rem;
  border: none;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-segment:hover {
  color: #374151;
  background: #e5e7eb;
}

.filter-segment.active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.filter-segment-count {
  font-size: 0.7rem;
  font-weight: 500;
  color: #9ca3af;
}

.filter-segment.active .filter-segment-count {
  color: #6b7280;
}

.services-page-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6366f1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.services-page-link:hover {
  color: #4f46e5;
}

.services-page-link i {
  font-size: 0.7rem;
}

.search-filter-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.85rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .search-filter-search {
    flex: 1 1 100%;
  }
  .search-filter-meta {
    margin-top: -0.25rem;
    justify-content: flex-start;
  }
  .filter-segments {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .filter-segment {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Server regions carousel (homepage-style infinite loop) */
.server-regions-carousel-section {
  margin-bottom: 2.5rem;
}

.server-regions-carousel-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.25rem;
}

.server-regions-carousel-desc {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 0 1.25rem;
}

.server-regions-carousel-container {
  overflow: hidden;
  margin: 0 -1rem;
  padding: 0.5rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.server-regions-carousel {
  overflow: hidden;
}

.server-regions-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  width: max-content;
  animation: serverRegionsCarousel 50s linear infinite;
}

.server-regions-track:hover {
  animation-play-state: paused;
}

.server-region-card {
  flex: 0 0 auto;
  width: 280px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.server-region-card:hover,
.server-region-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.35);
}

.server-region-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.75rem;
  border-radius: 12px;
  background: #f1f5f9;
}

.server-region-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.server-region-card p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
  flex: 1;
}

.server-region-link-hint {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3b82f6;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.server-region-card:hover .server-region-link-hint,
.server-region-card:focus-visible .server-region-link-hint {
  color: #2563eb;
}

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

@media (prefers-reduced-motion: reduce) {
  .server-regions-track {
    animation: none;
  }
}

@media (max-width: 640px) {
  .server-region-card {
    width: 260px;
    min-width: 260px;
  }
}

/* Featured Servers Section */
.featured-servers {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.featured-header {
  text-align: center;
  margin-bottom: 2rem;
}

.featured-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.featured-header p {
  color: #64748b;
  font-size: 1.125rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.featured-server {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.featured-server:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.featured-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.featured-server h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.featured-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.featured-cta,
.featured-cta-standalone {
  text-align: center;
  margin-top: 2rem;
}

.featured-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.featured-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.featured-tags .tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.featured-tags .tag.streaming {
  background: #fef3c7;
  color: #92400e;
}

.featured-tags .tag.gaming {
  background: #dbeafe;
  color: #1e40af;
}

.featured-tags .tag.social {
  background: #e0e7ff;
  color: #3730a3;
}

/* Progress Indicator — thin bar pinned above the navbar */
.progress-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-indicator.show {
  opacity: 1;
}

.progress-bar {
  width: 100%;
  height: 100%;
  background: transparent;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  width: 0%;
  transition: width 0.15s linear;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  z-index: 1000;
}

.scroll-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.scroll-to-top i {
  font-size: 1.25rem;
}
