:root {
  --p: #9600ff;
  --pglow: rgba(150,0,255,0.6);
  --dark: #0a0a14;
  --text: #f0f0f0;
}
* { margin:0; padding:0; box-sizing:border-box; }
html, body { height: 100%; overflow-x: hidden; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

/* BACKGROUND GRID */
.bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}
.grid {
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(150,0,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,0,255,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* WHITE FLOATING DOTS */
.particle-dot {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  filter: blur(0.5px);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}
@keyframes float {
  0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
  10% { opacity: 0.7; }
  50% { transform: translate(var(--drift-x), var(--drift-y)) scale(1.2); opacity: 0.9; }
  90% { opacity: 0.7; }
  100% { transform: translate(calc(var(--drift-x) * 1.5), calc(var(--drift-y) * 1.5)) scale(0.8); opacity: 0; }
}

/* PURPLE GLOW ORBS */
.glow {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  filter: blur(40px);
  background: radial-gradient(circle, var(--p) 5%, transparent 70%);
  opacity: 0;
  animation: pulse 8s infinite ease-in-out;
  pointer-events: none;
  z-index: 0;
}
@keyframes pulse {
  0%,100% { opacity: 0; transform: scale(0.7); }
  50%     { opacity: 0.4; transform: scale(1.3); }
}

/* NAV — LOGO LEFT, LINKS CENTER */
header {
  position: fixed;
  top: 0; width: 100%;
  background: rgba(10,10,20,0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(150,0,255,0.3);
}
nav {
  max-width: 1400px; margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  margin-right: 2rem; /* PUSH LOGO LEFT */
}
.logo img {
  height: 42px;
  filter: drop-shadow(0 0 10px #9600ff);
  transition: transform 0.3s ease;
}
.logo-text {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.8rem;
}
.brand-name { color: #9600ff; }
.brand-domain { color: #fff; }
.logo:hover img { transform: scale(1.05); }

.nav-links {
  display: flex; gap: 2rem; list-style: none; flex: 1; justify-content: center;
}
.nav-links a {
  color: var(--text); text-decoration: none; font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px; background: var(--p); transition: 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--p); }

/* HERO */
.hero {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; z-index: 1;
}
.hero-content { max-width: 900px; padding: 2rem; }
.hero h1 {
  font-size: 4.5rem; font-weight: 800; letter-spacing: 1px;
  color: white; text-shadow: 0 0 30px var(--pglow); margin-bottom: 1.5rem;
}
.discord-btn {
  display: inline-block; padding: 1.2rem 3rem; margin-top: 1rem;
  border: 2px solid var(--p); color: var(--p); font-weight: 600;
  border-radius: 50px; text-decoration: none; transition: 0.4s;
  font-size: 1.1rem;
}
.discord-btn:hover {
  background: var(--p); color: #000; box-shadow: 0 0 35px var(--pglow);
}

/* PAGE */
.page {
  padding: 140px 2rem 4rem;
  max-width: 1200px; margin: 0 auto; text-align: center;
}
h1 { font-size: 3.5rem; margin-bottom: 1rem; color: var(--p); }
p { font-size: 1.2rem; color: #ccc; }

/* GROUPS GRID — IMAGE ONLY */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  padding: 0 1rem;
}
.group-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(150,0,255,0.2);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  text-decoration: none;
  height: 280px;
}
.group-card:hover {
  border-color: var(--p);
  box-shadow: 0 0 40px rgba(150,0,255,0.4);
  transform: translateY(-12px) scale(1.02);
}
.group-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  height: 100%;
  background: rgba(255,255,255,0.02);
}
.coming-soon {
  font-size: 1.2rem;
  color: #555;
  font-weight: 600;
}

/* PRODUCT PAGE */
.product-page { padding: 120px 2rem 4rem; max-width: 1200px; margin: 0 auto; }
.group-name { font-size: 2rem; color: var(--p); margin-bottom: 0.5rem; text-align: center; }
.product-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.product-header h1 { font-size: 1.8rem; color: white; }

.status {
  display: flex; align-items: center; gap: 0.4rem;
  background: #111; color: white; padding: 0.3rem 0.8rem;
  border-radius: 50px; font-size: 0.85rem; font-weight: bold;
}
.status-dot {
  width: 6px; height: 6px; background: white;
  border-radius: 50%; box-shadow: 0 0 6px rgba(255,255,255,0.6);
}

.product-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(150,0,255,0.2);
  border-radius: 20px; padding: 2rem; margin-bottom: 3rem;
}
.product-image img { width: 100%; border-radius: 16px; box-shadow: 0 0 40px rgba(150,0,255,0.3); }
.product-info { display: flex; flex-direction: column; gap: 1.5rem; }

.price-stock { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 2.5rem; color: var(--p); font-weight: 800; }
.stock, .variant-stock { color: white !important; font-weight: bold; }

.variants { display: flex; flex-direction: column; gap: 1rem; }
.variant {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem; background: #111; border: 1px solid #333;
  border-radius: 12px; cursor: pointer; transition: 0.3s;
}
.variant:hover { border-color: var(--p); }
.variant.active {
  border-color: var(--p); background: rgba(150,0,255,0.1);
  box-shadow: 0 0 20px rgba(150,0,255,0.2);
}
.variant-price { color: var(--p); font-weight: bold; }

.quantity-section { display: flex; justify-content: space-between; align-items: center; }
.quantity-section label { color: #ccc; }
.quantity-controls {
  display: flex; align-items: center; gap: 0.5rem;
}
.quantity-controls button {
  width: 36px; height: 36px; background: #222; border: 1px solid #555;
  color: white; font-size: 1.2rem; border-radius: 8px; cursor: pointer;
}
.quantity-controls input {
  width: 60px; text-align: center; background: #222; border: 1px solid #555;
  color: white; padding: 0.5rem; border-radius: 8px;
}

.buy-now-btn {
  width: 100%; padding: 1.2rem; background: var(--p); color: black;
  border: none; border-radius: 50px; font-weight: bold; font-size: 1.1rem;
  cursor: pointer; transition: 0.3s;
}
.buy-now-btn:hover { background: #b300ff; box-shadow: 0 0 35px var(--pglow); }

.purchase-counter { text-align: center; color: #aaa; font-size: 0.95rem; margin-top: 1rem; }

.product-tabs { display: flex; gap: 1rem; margin-bottom: 2rem; border-bottom: 1px solid #333; }
.tab {
  padding: 1rem 2rem; background: none; border: none; color: #aaa;
  font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; transition: 0.3s;
}
.tab.active { color: var(--p); border-bottom: 3px solid var(--p); }

.tab-content {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(150,0,255,0.2);
  border-radius: 16px; padding: 2rem;
}
.tab-content h3 { color: var(--p); margin-bottom: 1rem; }
.tab-content ul { padding-left: 1.5rem; }
.tab-content li { margin: 0.5rem 0; color: #ccc; }

/* STATS PAGE */
.stats-container { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 4rem; padding: 0 1rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.stats-group { display: flex; flex-direction: column; gap: 1rem; }
.group-title { font-size: 2rem; font-weight: 800; color: white; margin: 0; padding: 0 1rem; text-align: left; }

.product-card {
  position: relative; background: rgba(255,255,255,0.03); border: 1px solid rgba(150,0,255,0.2);
  border-radius: 16px; padding: 1.2rem 1.5rem; display: flex; justify-content: space-between;
  align-items: center; backdrop-filter: blur(8px); transition: all 0.4s ease; width: 100%;
  text-decoration: none; color: inherit; overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 18px; padding: 2px; background: transparent; z-index: -1;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude; -webkit-mask-composite: destination-out;
  opacity: 0; transition: opacity 0.4s ease;
}
.product-card:hover::before,
.product-card.status-undetected::before { opacity: 1; }
.product-card.status-undetected::before { background: linear-gradient(45deg, #0f0, #00ff88); }
.product-card.status-updating::before  { background: linear-gradient(45deg, #ff0, #ffaa00); }
.product-card.status-detected::before  { background: linear-gradient(45deg, #f00, #ff3333); }
.product-card:hover { border-color: transparent; transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

.product-name { font-size: 1.1rem; font-weight: 600; color: white; }
.status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; flex-shrink: 0; }
.status-undetected .status { color: #0f0; } .status-undetected .status-dot { background: #0f0; }
.status-updating .status { color: #ffaa00; } .status-updating .status-dot { background: #ffaa00; }
.status-detected .status { color: #f00; } .status-detected .status-dot { background: #f00; }

.view-btn {
  background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1.2rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s ease; white-space: nowrap;
}
.view-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); transform: scale(1.05); }
.view-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.stats-group.placeholder .product-card { border-style: dashed; background: transparent; }
.stats-group.placeholder .product-name { color: #555; }
.stats-group.placeholder .view-btn { display: none; }

/* FOOTER */
.footer {
  background: rgba(10,10,20,0.95);
  border-top: 1px solid rgba(150,0,255,0.3);
  padding: 3rem 2rem 2rem;
  margin-top: 6rem;
  backdrop-filter: blur(12px);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  text-align: left;
}
.footer-brand p {
  color: #ccc;
  font-size: 0.95rem;
  margin: 0.5rem 0;
}
.footer-brand a {
  color: var(--p);
  text-decoration: none;
}
.footer-brand a:hover {
  text-decoration: underline;
}
.footer-section h3 {
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.footer-section ul {
  list-style: none;
}
.footer-section ul li {
  margin: 0.5rem 0;
}
.footer-section ul li a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-section ul li a:hover {
  color: var(--p);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .product-container { grid-template-columns: 1fr; }
  .product-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-links { gap: 1rem; }
  .hero h1 { font-size: 3rem; }
  .logo-text { font-size: 1.6rem; }
  .logo { gap: 0.6rem; }
  .groups-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
}
/* TOS PAGE */
.tos-page { padding: 140px 2rem 4rem; max-width: 1000px; margin: 0 auto; }
.tos-content {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(150,0,255,0.2);
  border-radius: 16px;
  padding: 2.5rem;
  line-height: 1.8;
  color: #ddd;
}
.tos-content h2 {
  color: var(--p);
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  font-weight: 800;
}
.tos-content p {
  margin-bottom: 1.2rem;
}
.tos-content strong { color: white; }
.toc {
  background: rgba(150,0,255,0.1);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  list-style: none;
}
.toc li {
  margin: 0.5rem 0;
  color: #ccc;
}
.toc li:before {
  content: "• ";
  color: var(--p);
}
