:root {
  --bg: #06070d;
  --bg-2: #0b1020;
  --card: rgba(17, 21, 35, 0.82);
  --card-2: rgba(20, 24, 40, 0.94);
  --accent: #7c3aed;
  --accent-2: #22d3ee;
  --good: #34d399;
  --text: #f8fafc;
  --muted: #a8b1c2;
  --line: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(255, 67, 132, 0.24), transparent 52%),
    radial-gradient(760px 520px at 88% 108%, rgba(124, 58, 237, 0.32), transparent 54%),
    radial-gradient(600px 420px at 75% 22%, rgba(34, 211, 238, 0.12), transparent 58%),
    linear-gradient(165deg, #06070d 0%, #0a1020 48%, #0a1326 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px);
  background-size: 64px 64px;
}

.site-wrapper { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(1280px, 100%); margin: 0 auto; padding: 0 22px; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  background: rgba(5, 8, 20, 0.72);
}
.header .container { padding-top: 14px; padding-bottom: 14px; }
.logo {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, #b5a2ff 45%, #81f3ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main { flex: 1; padding: 28px 22px 34px; }
.sections-stack {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.section-block { width: 100%; }

.hero-banner,
.mid-banner {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.09);
  isolation: isolate;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hero-banner:hover,
.mid-banner:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.75);
  box-shadow: 0 16px 38px rgba(124, 58, 237, 0.24);
}
.hero-banner img,
.mid-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #090c14;
}
.banner-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78) 60%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.banner-kicker {
  width: fit-content;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 999px;
  letter-spacing: .02em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
}
.banner-title {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
}
.banner-cta {
  width: fit-content;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--good);
}
.banner-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  border: 2px dashed rgba(124,58,237,.35);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

.cards-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.45rem;
  font-weight: 700;
}
.cards-section-title::before {
  content: "";
  width: 6px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(var(--accent), var(--accent-2));
}

.cards-grid,
.cards-grid.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.cards-grid.two-up {
  grid-auto-rows: 8px;
}
.bonus-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  backdrop-filter: blur(2px);
  position: relative;
}
.bonus-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.20);
}
.bonus-card.square img {
  width: 100%;
  height: auto;
  display: block;
}
.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), #f43f5e);
  padding: 5px 9px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.4);
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 10px;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.9), rgba(11, 15, 27, 0.92));
  border-top: 1px solid rgba(255,255,255,0.09);
}
.countdown-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .02em;
}
.countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.9), rgba(6, 182, 212, 0.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 8px 18px rgba(34, 211, 238, 0.22);
  border: 1px solid rgba(255,255,255,0.16);
  letter-spacing: .02em;
}
.card-placeholder {
  width: 100%;
  aspect-ratio: var(--ratio, 1 / 1);
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
}
.card-footer {
  background: var(--card-2);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title { font-size: .93rem; font-weight: 700; line-height: 1.35; }
.card-cta {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
}

.footer {
  margin-top: auto;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 20px 14px;
  font-size: .9rem;
  background: rgba(5,8,20,.65);
}

.sticky-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 1300;
  width: min(540px, calc(100% - 28px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: .01em;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0) 32%),
    linear-gradient(90deg, #7c3aed, #06b6d4 55%, #2563eb);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.36), inset 0 1px 0 rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.sticky-cta:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255,255,255,0.28);
  filter: saturate(1.08);
}
.sticky-cta-text {
  font-size: 16px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}
.sticky-cta-arrow {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.32);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.82);
}
.popup-content {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 18px 54px rgba(0,0,0,0.58);
  display: block;
}
.popup-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 90vh;
}
.popup-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.popup-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.error-msg { color: var(--muted); padding: 18px; text-align: center; }

@media (max-width: 768px) {
  .main { padding: 16px 12px 22px; }
  .container { padding: 0 14px; }
  .logo { font-size: 1.35rem; }
  .sections-stack { gap: 12px; }

  .hero-banner,
  .mid-banner {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
  }
  .hero-banner img,
  .mid-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #0a0c14;
  }
  .banner-overlay { padding: 10px 10px 8px; }
  .banner-title { font-size: .92rem; }

  .cards-section-title { font-size: 1.25rem; margin-bottom: 10px; }
  .cards-grid,
  .cards-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cards-grid.two-up { grid-auto-rows: 6px; }
  .bonus-card { width: 100% !important; }

  .popup-close { right: 50%; transform: translateX(50%); }
  .sticky-cta {
    bottom: 10px;
    width: calc(100% - 18px);
    padding: 11px 12px;
  }
  .sticky-cta-text { font-size: 14px; }
  .countdown-label { font-size: 10px; }
  .countdown { min-width: 82px; font-size: 11px; padding: 4px 8px; }
}

@media (max-width: 420px) {
  .cards-grid,
  .cards-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
