.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  font-family: "Urbanist", sans-serif;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-brown);
}

.nav-donate-btn {
  background: transparent;
  color: var(--primary-brown);
  padding: 10px 24px;
  border: 1px solid var(--primary-brown);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-donate-btn:hover {
  background: var(--primary-brown);
  color: #000000;
  transform: translateY(-2px);
}

.hero {
  padding-top: 180px;
  padding-bottom: 60px;
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-main > * {
  z-index: 1;
}

.username {
  font-size: clamp(2.5rem, 12vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  margin: clamp(8px, 3vw, 24px) 0;
  color: #ffffff;
  letter-spacing: -0.04em;
  word-break: break-word;
}

.sub-heading {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--muted-brown);
  font-weight: 400;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  width: max-content;
  transition: all 0.3s ease;
  user-select: none;
}

.status-badge.available {
  background-color: var(--green-status-bg);
  color: var(--green-status);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-badge.unavailable {
  background-color: var(--red-status-bg);
  color: var(--red-status);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}

.status-badge.available .status-indicator {
  background-color: var(--green-status);
}

.status-badge.unavailable .status-indicator {
  background-color: var(--red-status);
}

.hero-about {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-header h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--primary-brown);
}

.price-card {
  display: flex;
  flex-direction: column;
}

@media (min-width: 581px) and (max-width: 1100px) {
  .price-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
  }

  .price-card .price-header,
  .price-card .billing,
  .price-card .specs-list {
    grid-column: 1;
    padding-right: 32px;
  }

  .price-card .price-actions {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    padding-left: 32px;
    border-left: 1px solid var(--card-border);
    height: 100%;
    margin-top: 0;
    width: 100%;
  }

  .price-card .price-btn {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

.price-header {
  display: flex;
  align-items: baseline;
  font-weight: 700;
}

.currency {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--text-primary);
  line-height: 1;
}

.currency.robux {
  color: var(--text-primary);
}

.aud {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  margin-left: 4px;
}

.separator {
  color: var(--card-border);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0 clamp(8px, 2vw, 16px);
  font-weight: 300;
}

.billing {
  font-size: 0.875rem;
  margin-bottom: 24px;
  font-weight: 500;
}

.price-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 16px;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.price-btn.stripe {
  background-color: var(--text-primary);
  color: var(--bg-dark);
  flex-direction: row;
  gap: 8px;
}

.price-btn.stripe svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.price-btn.stripe:hover {
  background-color: var(--primary-brown);
}

.price-btn.stripe:hover svg {
  transform: translateX(4px);
}

.price-btn.robux {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
}

.price-btn.robux:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary-brown);
}

.robux-cta {
  font-size: 0.7rem;
  color: var(--muted-brown);
  font-weight: 400;
  margin-top: 2px;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary-brown);
}

.cta-button {
  background-color: var(--text-primary);
  color: var(--bg-dark);
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  width: 100%;
}

.cta-button:hover {
  background-color: var(--primary-brown);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.plans-cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  width: 100%;
}

.plans-cta .cta-button {
  max-width: 400px;
}

.details-card h3 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.details-card p {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  margin-bottom: clamp(20px, 5vw, 40px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.feature-box {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-box h4 {
  color: var(--primary-brown);
  margin-bottom: 8px;
  font-size: 1rem;
}

.feature-box p {
  font-size: 0.875rem;
}

.server-card {
  display: flex;
  flex-direction: column;
}

.server-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-brown);
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}

.server-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeIn 0.6s ease forwards;
}

.server-icon svg {
  width: 24px;
  height: 24px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.server-icon.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(217, 177, 138, 0.05),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

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

.server-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.server-info p {
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.server-meta {
  margin-top: auto;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
}

.server-join-btn {
  display: inline-block;
  padding: 10px 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-brown);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  width: 100%;
  text-align: center;
  border-radius: 12px;
  background: rgba(217, 177, 138, 0.03);
  border: 1px solid rgba(217, 177, 138, 0.1);
}

.server-join-btn:hover {
  background: rgba(217, 177, 138, 0.08);
  border-color: var(--primary-brown);
  letter-spacing: 0.05em;
}

.server-join-btn.locked {
  color: var(--muted-brown);
  cursor: default;
  opacity: 0.5;
  background: transparent;
  border-color: var(--card-border);
}

.footer {
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(40px, 8vw, 80px);
  padding: clamp(60px, 10vw, 100px) 0;
  border-top: 1px solid var(--card-border);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-title {
  font-size: clamp(1.75rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-bottom: clamp(20px, 5vw, 40px);
}

.footer-particles {
  position: absolute;
  top: clamp(40px, 10vw, 80px);
  left: clamp(20px, 15vw, 150px);
  width: 100%;
  height: 250px;
  z-index: -1;
  pointer-events: none;

  background-color: var(--primary-brown);
  -webkit-mask-image: url("../assets/particles.png");
  mask-image: url("../assets/particles.png");
  -webkit-mask-size: 310px;
  mask-size: 310px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;

  opacity: 0.35;

  mask-image:
    linear-gradient(to right, black 50%, transparent),
    url("../assets/particles.png");
  -webkit-mask-composite: source-in;
  mask-composite: source-in;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.uplink-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--card-border);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
}

.uplink-link:hover {
  padding-left: 16px;
  border-bottom-color: var(--primary-brown);
}

.link-value {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

.uplink-link:hover .link-value {
  color: var(--primary-brown);
}

.uplink-link svg {
  width: 28px;
  height: 28px;
  color: var(--card-border);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform: rotate(45deg);
}

.uplink-link:hover svg {
  color: var(--primary-brown);
  transform: rotate(0deg);
}

.footer-service-info {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 400px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  font-size: 0.875rem;
}

.legal-links {
  display: flex;
  gap: 24px;
}

.legal-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 1100px) {
  .footer {
    padding-top: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
  }
  .footer-particles {
    opacity: 0.15;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .footer-contact {
    gap: 20px;
  }
  .footer-brand {
    padding-bottom: 0;
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .footer-contact {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
    border-top: 1px solid var(--card-border);
    padding-top: 40px;
  }
  .uplink-link {
    padding: 16px 0;
  }
}

@media (max-width: 580px) {
  .nav-links {
    display: none;
  }

  .top-nav {
    padding: 15px 0;
  }

  .hero {
    padding-top: clamp(100px, 25vw, 160px);
  }

  .price-header {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-title {
    margin-top: 30px;
  }

  .footer-particles {
    display: none !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .legal-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}
