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

:root {
  --bg: #0D1117;
  --surface: #161B22;
  --surface-hover: #1C2333;
  --border: #30363D;
  --text: #E6EDF3;
  --text-muted: #8B949E;
  --red: #D32F2F;
  --red-glow: rgba(211, 47, 47, 0.3);
  --red-hover: #E53935;
  --green: #3FB950;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--red);
  letter-spacing: -2px;
  position: relative;
  text-shadow: 0 0 60px var(--red-glow);
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 400;
}

.hero .tagline {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero .tagline span { color: var(--green); }
.hero .tagline { color: var(--text-muted); }

/* ── NAV ── */
.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px 40px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(var(--bg) 60%, transparent);
}

.nav a {
  padding: 8px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav a:hover, .nav a.active {
  border-color: var(--red);
  color: var(--text);
  background: var(--surface-hover);
}

/* ── BUNDLES ── */
.bundles {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.bundle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.bundle-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.bundle-card .badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bundle-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.bundle-card .bundle-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.bundle-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.bundle-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.bundle-card .price-orig {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.bundle-card .savings {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--red-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
}

.btn-outline:hover {
  background: rgba(211, 47, 47, 0.1);
}

.btn-in-cart {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid #4caf50;
  color: #4caf50;
}

.btn-in-cart:hover {
  background: rgba(211, 47, 47, 0.1);
  border-color: var(--red);
  color: var(--red);
}

/* ── COLLECTIONS ── */
.collection {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.collection-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.collection-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

.collection-header .count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 2px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.collection-header .collection-emoji {
  font-size: 1.4rem;
}

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

/* ── STICKER CARD ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.card-img {
  position: relative;
  padding: 20px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(211,47,47,0.08));
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover .card-img::after { opacity: 1; }

.card-img img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.3s;
}

.card:hover .card-img img {
  transform: scale(1.08) rotate(-2deg);
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-body .card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.card-body .btn {
  margin-top: auto;
  padding: 10px 16px;
  font-size: 0.85rem;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

footer .footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 12px;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

footer .footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

footer .footer-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--red);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--red-glow);
  z-index: 50;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover { transform: translateY(-2px); }

/* ── CART DRAWER ── */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 900;
  backdrop-filter: blur(4px);
}

.cart-overlay.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 950;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-drawer.open { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 { font-size: 1.1rem; font-weight: 700; }

.cart-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-close:hover { background: var(--red); border-color: var(--red); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

.cart-bundle-badge {
  background: rgba(211, 47, 47, 0.1);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-item-remove:hover { background: var(--red); border-color: var(--red); color: white; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.btn-clear {
  display: block;
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(211, 47, 47, 0.1);
}

.cart-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── CART FAB ── */
.cart-fab {
  position: fixed;
  bottom: 24px;
  right: 80px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 50;
  box-shadow: 0 4px 20px var(--red-glow);
  transition: all 0.3s;
}

.cart-fab:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--red-glow); }

.cart-fab span {
  background: white;
  color: var(--red);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

/* ── QUANTITY CONTROLS ── */
.qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: auto;
  border: 1px solid var(--green);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qty-btn:hover { background: rgba(63, 185, 80, 0.15); }

.qty-display {
  width: 40px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
}

/* Cart drawer quantity */
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.qty-btn-sm {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qty-btn-sm:hover { background: rgba(255,255,255,0.1); color: var(--text); }

/* ── BANNERS ── */
.success-banner, .cancel-banner {
  padding: 16px 24px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.success-banner {
  background: rgba(63, 185, 80, 0.15);
  border-bottom: 1px solid var(--green);
  color: var(--green);
}

.cancel-banner {
  background: rgba(211, 47, 47, 0.1);
  border-bottom: 1px solid var(--red);
  color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 50px 16px 40px; }
  .hero h1 { letter-spacing: -1px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-img { padding: 12px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 0.85rem; }
  .card-body .card-price { font-size: 0.95rem; margin-bottom: 8px; }
  .card-body .btn { padding: 8px 12px; font-size: 0.8rem; }
  .bundles { grid-template-columns: 1fr; }
  .nav { gap: 6px; padding: 12px 12px 24px; }
  .nav a { padding: 6px 14px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ── WHOP CHECKOUT MODAL ── */
.whop-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.whop-modal-inner {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90vw;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}

.whop-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1;
}

.whop-modal-close:hover { background: var(--red); border-color: var(--red); }

#whop-checkout-container {
  min-height: 200px;
}
/* ── ADDRESS FORM MODAL ── */
.address-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.address-modal-inner {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90vw;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
}

.address-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.address-modal-close:hover { background: var(--red); border-color: var(--red); }

.address-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.address-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.address-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.address-field .optional {
  font-weight: 400;
  text-transform: none;
  font-size: 0.8rem;
}

.address-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.address-field input:focus {
  border-color: var(--red);
}

.address-field input.invalid {
  border-color: var(--red);
}

.field-error {
  color: var(--red);
  font-size: 0.8rem;
  min-height: 1em;
}

.address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.address-submit-btn {
  width: 100%;
  margin-top: 8px;
}
