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

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

::selection {
    background: #6d28d9;
    color: #fff;
}

:root {
  --purple-900: #19024f;
  --purple-800: #29046c;
  --purple-700: #4c07de;
  --purple-600: #601cef;
  --purple-500: #7b3aff;
  --purple-400: #9c67ff;
  --purple-300: #bc94ff;
  --purple-200: #dac4ff;
  --purple-100: #ede2ff;

  --white: #ffffff;

  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --bg-dark: #070114;
  --bg-card: rgba(25, 2, 79, 0.7);
  --bg-card-hover: rgba(35, 4, 100, 0.8);

  --border: rgba(76, 7, 222, 0.15);
  --border-hover: rgba(76, 7, 222, 0.4);

  --discord: #5865F2;
  --discord-dark: #4752C4;

  --green: #22c55e;
  --red: #ef4444;
  --gold: #f59e0b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* =========================
   NAVBAR
========================= */

.nav-brand-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent !important;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 2rem;
  background: rgba(7, 1, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-brand-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(
    135deg,
    var(--purple-700),
    var(--purple-600)
  );
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--gray-400);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.8rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(76, 7, 222, 0.15);
}

.nav-discord {
  background: var(--discord) !important;
  color: var(--white) !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-discord:hover {
  background: var(--discord-dark) !important;
}

.nav-admin {
  border: 1px solid rgba(76, 7, 222, 0.3) !important;
  font-size: 0.85rem !important;
  padding: 0.35rem 0.6rem !important;
}

/* =========================
   MOBILE MENU
========================= */

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav-hamburger:hover {
  background: rgba(76, 7, 222, 0.15);
}

.nav-hamburger span {
  width: 18px;
  height: 2px;
  background: var(--gray-400);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 1, 20, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-mobile.active {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--white);
  background: rgba(76, 7, 222, 0.15);
}

.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-mobile-close:hover {
  color: var(--white);
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 80%,
      rgba(76, 7, 222, 0.25) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(88, 101, 242, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(96, 28, 239, 0.15) 0%,
      transparent 70%
    );
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      rgba(76, 7, 222, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(76, 7, 222, 0.06) 1px,
      transparent 1px
    );
  background-size: 50px 50px;
  z-index: 0;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0);
  }

  100% {
    transform: perspective(500px) rotateX(60deg) translateY(50px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(76, 7, 222, 0.15);
  border: 1px solid rgba(76, 7, 222, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--purple-300);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--gray-500);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 span {
  background: linear-gradient(
    135deg,
    var(--purple-400),
    var(--purple-300)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--gray-400);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-server-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-info-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  min-width: 160px;
  transition: all 0.3s ease;
}

.hero-info-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.hero-info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.hero-info-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-info-value.ip {
  color: var(--purple-400);
  cursor: pointer;
}

.hero-info-value.ip:hover {
  color: var(--purple-300);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--purple-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--purple-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(76, 7, 222, 0.4);
}

.btn-discord {
  background: var(--discord);
  color: var(--white);
}

.btn-discord:hover {
  background: var(--discord-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.btn-sm {
  padding: 0.6rem 1rem !important;
  font-size: 0.85rem !important;
  border-radius: 8px !important;
}

/* =========================
   INDEX SECTIONS
========================= */

.features-section,
.player-finder-section {
  padding: 6rem 2rem;
  background: rgba(15, 3, 45, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray-400);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  );
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
}

.feature-card-icon {
  width: 50px;
  height: 50px;
  background: rgba(76, 7, 222, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--gray-400);
  font-size: 0.95rem;
}

/* =========================
   PLAYER SEARCH
========================= */

.player-finder-box {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.player-search-row {
  display: flex;
  gap: 0.75rem;
}

.player-search-row input {
  flex: 1;
  padding: 0.85rem 1rem;
  background: rgba(25, 2, 79, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.player-search-row input:focus {
  border-color: var(--purple-500);
}

.player-search-row input::placeholder {
  color: var(--gray-500);
}

.player-result {
  margin-top: 1.5rem;
}

.player-loading {
  text-align: center;
  color: var(--purple-400);
}

.player-error {
  text-align: center;
  color: var(--red);
}

.player-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(25, 2, 79, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.player-avatar {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 2px solid var(--purple-700);
  image-rendering: pixelated;
}

.player-info {
  flex: 1;
}

.player-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.player-uuid {
  font-size: 0.75rem;
  color: var(--gray-500);
  word-break: break-all;
}

.player-meta {
  display: flex;
  gap: 0.5rem;
}

.player-server-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.player-server-status.online {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.player-server-status.offline {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

/* =========================
   SHOP
========================= */

.shop-hero {
  position: relative;
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.shop-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(76, 7, 222, 0.3) 0%,
      transparent 70%
    );
  z-index: 0;
}

.shop-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.shop-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.shop-hero h1 span {
  background: linear-gradient(
    135deg,
    var(--purple-400),
    var(--purple-300)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shop-hero p {
  color: var(--gray-400);
  font-size: 1.1rem;
}

.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

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

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--gray-400);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--purple-700);
  color: var(--white);
  border-color: var(--purple-500);
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

.search-box input:focus {
  border-color: var(--purple-500);
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(76, 7, 222, 0.15);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--gold);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-icon-wrapper {
  width: 70px;
  height: 70px;
  background: rgba(76, 7, 222, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(76, 7, 222, 0.2);
}

.product-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.product-desc {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.product-features {
  list-style: none;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.product-features li {
  font-size: 0.85rem;
  color: var(--gray-200);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-features li::before {
  content: "✓";
  color: var(--purple-400);
  font-weight: bold;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 1.3rem;
  font-weight: 900;
}

.product-price span {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 400;
}

.btn-buy {
  background: var(--purple-700);
  color: var(--white);
}

.btn-buy:hover {
  background: var(--purple-600);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 7, 222, 0.4);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--green);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: transform 0.3s ease;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-server-info {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-info-item {
    width: 100%;
    max-width: 280px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

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

  .section-header h2 {
    font-size: 1.8rem;
  }

  .player-search-row {
    flex-direction: column;
  }

  .player-card {
    flex-direction: column;
    text-align: center;
  }

  .player-meta {
    justify-content: center;
  }

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

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

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

@media (min-width: 769px) and (max-width: 1024px) {
  .nav-links a:not(.nav-discord):not(.nav-admin) {
    display: none;
  }
}
