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

body {
  background: #0a0a0f;
  color: #ffffff;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* Overlay de login */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

#overlay .overlay-content {
  background: #15151b;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 200, 83, 0.2);
  max-width: 380px;
  width: 100%;
}

#overlay h2 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

#overlay button {
  font-size: 1.1rem;
  padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #000;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#overlay button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 200, 83, 0.4);
}

.server-hero {
  position: relative;
  padding: 2.5rem 1.2rem 2.8rem;
  background: linear-gradient(180deg, #0f0f15 0%, #0a0a0f 100%);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  animation: blobFloat 18s ease-in-out infinite;
}

.hero-blob-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.4) 0%, transparent 70%);
  top: -180px;
  left: -140px;
}

.hero-blob-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.3) 0%, transparent 70%);
  bottom: -120px;
  right: -90px;
  animation-delay: 6s;
}

.hero-blob-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.25) 0%, transparent 70%);
  top: 45%;
  left: 48%;
  animation-delay: 12s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(25px, -25px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.97);
  }
}

.hero-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.3);
  color: #00c853;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #b0b0b0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: #c5c8d7;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #00c853, #00a743);
  color: #000;
  box-shadow: 0 15px 36px rgba(0, 200, 83, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: rgba(12, 16, 24, 0.9);
  border: 1px solid rgba(0, 200, 83, 0.18);
  border-radius: 18px;
  padding: 0.85rem 0.95rem;
  box-shadow: inset 0 0 26px rgba(0, 200, 83, 0.08);
}

.stat-label {
  color: #8f95a5;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #00ffa1;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: min(420px, 48vw);
  height: auto;
  filter: drop-shadow(0 26px 64px rgba(0, 200, 83, 0.35));
}

.servers-section {
  max-width: 1150px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem 3rem;
}

.servers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.servers-header h2 {
  font-size: 1.6rem;
}

.servers-header p {
  color: #a9afbf;
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.server-card {
  background: rgba(14, 16, 20, 0.9);
  border: 1px solid rgba(0, 200, 83, 0.16);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.server-card-top {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.thumb-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.server-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 200, 83, 0.35);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.server-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(0, 200, 83, 0.35);
  object-fit: cover;
}

.server-card h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #fff;
}

.server-card p {
  color: #b8becc;
  font-size: 0.9rem;
}

.server-actions {
  margin-top: auto;
}

.server-actions .btn-primary {
  width: 100%;
  justify-content: center;
}

.server-info p {
  margin: 0;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 1.3s infinite;
}

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

  100% {
    transform: translateX(100%);
  }
}

.skeleton.thumb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.skeleton.line {
  height: 14px;
  border-radius: 8px;
}

.footer-simple {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  color: #8f95a5;
  background: #0a0a0f;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #8f95a5;
  text-decoration: none;
  transition: color 0.25s ease;
}

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

@media (max-width: 960px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-copy {
    align-items: center;
  }

  .hero-desc {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual img {
    width: min(400px, 80vw);
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .server-hero {
    padding: 3rem 1.5rem;
  }

  .servers-section {
    padding: 2rem 1.5rem 4rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns on mobile for better use of space */
    width: 100%;
    gap: 0.8rem;
  }

  .stat-card {
    width: auto;
    text-align: center;
    padding: 1rem;
  }

  /* Make the last stat card span full width if there's an odd number */
  .stat-card:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .servers-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .servers-header .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }

  .servers-grid {
    grid-template-columns: 1fr;
    /* Full width cards on mobile */
  }
}