:root {
  --primary: #7c47ff;
  --primary-light: #9d6bff;
  --secondary: #ffa838;
  --bg: #0f0f0f;
  --bg-card: #161618;
  --bg-elevated: #1e1e22;
  --border: #24242c;
  --text: #fafafa;
  --text-muted: rgba(255,255,255,0.62);
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
code { background: var(--bg-elevated); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Nav ---------- */
header.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(15,15,15,0.85);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo img { border-radius: 8px; }
.logo .logo-text {
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--text-muted); font-weight: 600; font-size: 0.92rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #4ade80 !important;
  font-size: 0.8rem !important;
  font-weight: 700;
}
.online-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform .1s, opacity .15s, box-shadow .15s;
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 18px rgba(124,71,255,0.35);
}
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-discord { background: #5865F2; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* ---------- Hero banner ---------- */
.hero-banner {
  margin: 26px auto 0;
  max-width: 1180px;
  padding: 0 20px;
}
.hero-banner .banner-inner {
  border-radius: 18px;
  padding: 54px 40px;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(124,71,255,0.55), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(255,168,56,0.35), transparent 55%),
    linear-gradient(135deg, #1b1230, #241335 45%, #2b1830);
  border: 1px solid rgba(124,71,255,0.35);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-banner h1 {
  font-size: 2.7rem;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}
.hero-banner h1 .accent { color: var(--secondary); }
.hero-banner p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 26px;
  font-size: 1.02rem;
}
.hero-banner .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.4);
  border: 1px dashed rgba(255,255,255,0.3);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text);
  transition: border-color .15s;
}
.ip-chip:hover { border-color: var(--secondary); }
.ip-chip .tag { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.ip-chip .port-hint { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }

.mobile-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-online {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-online strong { color: #4ade80; }

/* ---------- Sections ---------- */
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 54px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .sub { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-left: 4px; }

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color .15s, transform .15s, background .15s;
}
.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  background: var(--bg-elevated);
}
.cat-card .icon {
  font-size: 1.9rem;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124,71,255,0.12);
  border: 1px solid rgba(124,71,255,0.3);
  border-radius: 12px;
  flex-shrink: 0;
}
.cat-card h3 { margin: 0 0 2px; font-size: 1.05rem; }
.cat-card span { color: var(--text-muted); font-size: 0.82rem; }
.cat-card .arrow { margin-left: auto; color: var(--text-muted); font-size: 1.1rem; }

/* ---------- Product cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color .15s, transform .15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card:hover { border-color: var(--primary); transform: translateY(-2px); }
.card .emoji { font-size: 2.2rem; }
.card h3 { margin: 0; font-size: 1.05rem; }
.card p.desc { color: var(--text-muted); font-size: 0.85rem; margin: 0; flex: 1; }
.card .price { font-weight: 800; color: var(--secondary); font-size: 1.15rem; }

.category-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.pill.active, .pill:hover { color: var(--text); border-color: var(--primary); }

/* ---------- Top buyer ---------- */
.top-buyer {
  background: linear-gradient(120deg, rgba(255,168,56,0.12), rgba(124,71,255,0.12));
  border: 1px solid rgba(255,168,56,0.4);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-buyer .crown { font-size: 2.4rem; }
.top-buyer h3 { margin: 0; font-size: 1.15rem; color: var(--secondary); }
.top-buyer span { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 0.93rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '▾';
  color: var(--primary-light);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .answer {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.faq-item .answer a { color: var(--primary-light); font-weight: 600; }

/* ---------- Forms ---------- */
.form-box {
  max-width: 400px;
  margin: 60px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-box h1 { font-size: 1.4rem; margin-top: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.95rem;
}
.field input:focus { outline: none; border-color: var(--primary); }
.error-box {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid #dc2626;
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.success-box {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #86efac;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.form-box .switch { margin-top: 18px; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.form-box .switch a { color: var(--primary-light); font-weight: 700; }

/* ---------- Tables / badges ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.data th { color: var(--text-muted); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }

.badge { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-pending { background: rgba(234,179,8,0.2); color: #facc15; }
.badge-paid, .badge-fulfilled { background: rgba(34,197,94,0.2); color: #4ade80; }
.badge-failed, .badge-cancelled { background: rgba(220,38,38,0.2); color: #f87171; }

/* ---------- Cart / checkout ---------- */
.cart-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-row .emoji { font-size: 2rem; }
.cart-row .info { flex: 1; }
.cart-row .info h4 { margin: 0 0 4px; }
.cart-row .info span { color: var(--text-muted); font-size: 0.85rem; }

.summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; }
.summary-row.total { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 90px;
  padding: 44px 20px 30px;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: #0c0c0c;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: space-between;
}
.footer-col { max-width: 380px; }
.footer-col h4 { color: var(--text); margin: 0 0 10px; font-size: 0.95rem; }
.footer-col p { margin: 0 0 8px; line-height: 1.6; }
.footer-col a { color: var(--text-muted); display: block; margin-bottom: 7px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

/* ---------- Help widget ---------- */
.help-widget {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
}
.help-widget summary {
  list-style: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(124,71,255,0.45);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.help-widget summary::-webkit-details-marker { display: none; }
.help-panel {
  position: absolute;
  bottom: 58px;
  right: 0;
  width: 290px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.help-panel h4 { margin: 0 0 8px; }
.help-panel p { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 14px; line-height: 1.6; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

@media (max-width: 640px) {
  .hero-banner .banner-inner { padding: 38px 22px; }
  .hero-banner h1 { font-size: 2rem; }
  .nav-links { gap: 12px; }
}
