:root {
  --bg: #050810;
  --bg-panel: #0a0f1e;
  --bg-card: #0e1526;
  --bg-card-hover: #131c33;
  --border: #1e2a47;
  --text: #f3f6ff;
  --text-dim: #8996b8;
  --blue: #3d8bff;
  --blue-light: #7fb4ff;
  --white: #ffffff;
  --discord: #5865f2;
  --discord-hover: #4956e0;
  --green: #3ddc84;
  --red: #ff5c6b;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(61, 139, 255, 0.16), transparent),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand .brand-logo { width: 26px; height: 26px; object-fit: contain; }
.brand .dim { color: var(--text-dim); font-weight: 700; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #b7bdfd;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.discord-pill:hover { background: rgba(88, 101, 242, 0.22); }

.auth-area { display: flex; align-items: center; gap: 10px; }

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--discord);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.btn-discord:hover { background: var(--discord-hover); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  font-size: 13px;
  font-weight: 600;
}
.user-chip .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-light);
}
.user-chip button {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.user-chip button:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: 120px 24px 80px;
  margin: 0 0 10px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(5, 8, 16, 0.55) 0%, rgba(5, 8, 16, 0.88) 65%, var(--bg) 100%),
    url('../img/city-skyline.jpg');
  background-size: cover;
  background-position: center 60%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 420px at 50% 0%, rgba(61, 139, 255, 0.25), transparent 70%);
  z-index: 0;
}

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

.hero .inner {
  max-width: 820px;
  margin: 0 auto;
}

.hero .eyebrow {
  color: var(--blue-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  text-shadow: 0 0 40px rgba(61, 139, 255, 0.35);
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--blue-light), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: #04101f;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--blue); }

.btn-block { width: 100%; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 92, 107, 0.12);
  border: 1px solid rgba(255, 92, 107, 0.4);
  color: var(--red);
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-danger:hover { background: rgba(255, 92, 107, 0.2); }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Category filters ---------- */

.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 40px;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.filter-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ---------- Layout ---------- */

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

.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  font-weight: 800;
  margin: 56px 0 18px;
}

.section-title span { color: var(--blue-light); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

/* ---------- Cards ---------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
  position: relative;
}
.card:hover { border-color: var(--blue); transform: translateY(-2px); }

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

.card-image {
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 50% 40%, rgba(61, 139, 255, 0.12), transparent 70%), var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.card-image img { max-height: 100%; object-fit: contain; }
.card-image .bolt-icon { width: 64px; height: 64px; object-fit: contain; }

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-name { font-weight: 800; font-size: 15px; }
.card-tagline { color: var(--text-dim); font-size: 12.5px; line-height: 1.5; flex: 1; }

.card-perks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-perks li {
  font-size: 12px;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
}
.card-perks li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.card-price { font-size: 19px; font-weight: 800; color: var(--blue-light); }
.card-interval { font-size: 11px; color: var(--text-dim); font-weight: 500; }

/* ---------- Product page ---------- */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 36px;
  max-width: 980px;
  margin: 56px auto 0;
  padding: 0 24px;
}
@media (max-width: 760px) {
  .product-layout { grid-template-columns: 1fr; }
}

.product-media {
  background: radial-gradient(circle at 50% 35%, rgba(61, 139, 255, 0.14), transparent 70%), var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.product-media img { max-height: 240px; }
.product-media .bolt-icon { width: 120px; height: 120px; object-fit: contain; }

.product-info h1 { font-size: 26px; margin: 0 0 6px; }
.product-info .tagline { color: var(--text-dim); font-size: 14px; margin: 0 0 20px; }

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 22px;
}
.product-price-row .price { font-size: 32px; font-weight: 800; color: var(--blue-light); }
.product-price-row .interval { color: var(--text-dim); font-size: 14px; }

.perk-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.perk-list li {
  font-size: 14px;
  color: var(--text);
  padding-left: 26px;
  position: relative;
}
.perk-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
  background: rgba(61, 220, 132, 0.12);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 16px;
  cursor: pointer;
}
.terms-check input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}
.terms-check a { color: var(--blue-light); text-decoration: underline; }

.signin-note {
  color: var(--text-dim);
  font-size: 12.5px;
  margin-top: 10px;
  text-align: center;
}

.notice {
  background: rgba(61, 139, 255, 0.1);
  border: 1px solid rgba(61, 139, 255, 0.3);
  color: var(--blue-light);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 20px;
}

.error-text { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 16px; }

/* ---------- Panels (redeem/success) ---------- */

.panel {
  max-width: 480px;
  margin: 60px auto;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.panel h2 { margin-top: 0; }

.code-box {
  background: var(--bg-card);
  border: 1px dashed var(--blue);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--green);
  margin: 20px 0;
  word-break: break-all;
}

.steps { color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.steps code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--blue-light);
}

.center { text-align: center; }

/* ---------- Terms & Conditions ---------- */

.legal {
  max-width: 820px;
  margin: 56px auto;
  padding: 0 24px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}
.legal h1 {
  font-family: 'Orbitron', 'Inter', sans-serif;
  color: var(--text);
  font-size: 28px;
  margin-bottom: 6px;
}
.legal .updated { color: var(--text-dim); font-size: 12.5px; margin-bottom: 32px; }
.legal h2 {
  color: var(--text);
  font-size: 16px;
  margin: 32px 0 10px;
}
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal p { margin: 0 0 14px; }

.terms-link {
  color: var(--text-dim);
  font-size: 12px;
  text-decoration: underline;
}
.terms-link:hover { color: var(--blue-light); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 48px 32px 32px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { color: var(--text-dim); font-size: 13px; max-width: 320px; line-height: 1.6; }
.footer-bottom {
  max-width: 1180px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
}


/* ---------- Limited products ---------- */
.card-limited { border-color: rgba(255, 196, 0, 0.55); }
.card-limited .card-badge { background: #ffc400; color: #111; }
.card-soldout { opacity: 0.55; }
.card-soldout .card-badge { background: #555; color: #eee; }
.stock-note {
  margin: 4px 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(255, 196, 0, 0.12);
  border: 1px solid rgba(255, 196, 0, 0.45);
  color: #ffc400;
}
.stock-note.soldout {
  background: rgba(255, 92, 107, 0.1);
  border-color: rgba(255, 92, 107, 0.3);
  color: var(--red);
}
