:root {
  --bg: #160907;
  --bg-deep: #0a0507;
  --surface: rgba(40, 18, 16, 0.72);
  --surface-strong: rgba(68, 27, 18, 0.76);
  --line: rgba(255, 178, 105, 0.36);
  --text: #d4e4fa;
  --muted: #ffd2bf;
  --orange: #ff6b00;
  --orange-soft: #ffc15c;
  --red: #f01818;
  --purple: #b733ff;
  --cyan: #00dbe9;
  --green: #1fd36b;
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #000;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 0, rgba(255, 107, 0, 0.34), transparent 21rem),
    radial-gradient(circle at 16% 38rem, rgba(240, 24, 24, 0.48), transparent 12rem),
    radial-gradient(circle at 80% 42rem, rgba(255, 107, 0, 0.46), transparent 10rem),
    linear-gradient(180deg, #1b0b0b 0, var(--bg-deep) 38rem, #130707 78%, #000 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #ff2c00, #ffb000 48%, #f01818);
  height: 3px;
  z-index: 10;
}

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

.topbar {
  display: grid;
  place-items: center;
  min-height: 154px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(25, 9, 9, 0.72);
  backdrop-filter: blur(22px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font: 800 18px/1 Sora, sans-serif;
  letter-spacing: 0;
  color: #fff0c8;
  text-transform: none;
}

.brand img,
.footer-brand img {
  display: block;
  width: clamp(112px, 31vw, 146px);
  height: auto;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.footer-brand img {
  width: 118px;
}

.brand span,
.footer-brand span {
  text-shadow: 0 0 16px rgba(255, 107, 0, 0.5);
}

.page-shell {
  width: min(100% - 40px, 560px);
  margin: 16px auto 0;
  padding-bottom: 32px;
}

.raffle-card {
  position: relative;
  padding: 18px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 0, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 31%),
    rgba(41, 17, 14, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 182, 147, 0.08) inset, 0 18px 52px rgba(255, 44, 0, 0.2);
  backdrop-filter: blur(24px);
}

.raffle-card::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 170px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.34), transparent 64%);
  filter: blur(34px);
  opacity: 0.75;
}

.promo-chip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 24, 24, 0.9), rgba(255, 107, 0, 0.78));
  color: #ffe8df;
  font: 800 clamp(11px, 3.4vw, 16px)/1 Sora, sans-serif;
}

.mega-banner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 180, 0.7);
  border-radius: 18px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #ffe100 0%, #ff8a00 38%, #f01818 100%);
  color: #210600;
  box-shadow: 0 18px 44px rgba(240, 24, 24, 0.32), inset 0 1px rgba(255, 255, 255, 0.55);
}

.mega-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 36%, rgba(255, 255, 255, 0.34) 48%, transparent 60% 100%);
  transform: translateX(-130%);
  animation: banner-shine 3.6s ease-in-out infinite;
}

.mega-banner__tag {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #2a0500;
  color: #fff6b4;
  font: 800 11px/1 JetBrains Mono, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mega-banner strong {
  max-width: 430px;
  font: 800 clamp(22px, 6vw, 34px)/1.04 Sora, sans-serif;
}

.mega-banner small {
  max-width: 380px;
  color: rgba(33, 6, 0, 0.8);
  font: 800 12px/1.35 Sora, sans-serif;
}

.car-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 316 / 177;
  object-fit: cover;
  border-radius: 14px;
  filter: saturate(0.82) brightness(0.72);
}

.raffle-content {
  position: relative;
  z-index: 1;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 16px;
  font: 800 clamp(26px, 7vw, 38px)/1.08 Sora, sans-serif;
  letter-spacing: 0;
}

.raffle-content p {
  margin-top: 8px;
  color: #ffe0d2;
  font-size: clamp(17px, 4.4vw, 22px);
  line-height: 1.45;
}

.price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #ffd5c8;
  font: 800 12px/1 JetBrains Mono, monospace;
  text-transform: uppercase;
}

.price-row strong {
  color: var(--orange-soft);
  font: 800 clamp(29px, 8.2vw, 46px)/1 Sora, sans-serif;
  letter-spacing: 0;
  text-wrap: balance;
}

.bonus-pill {
  min-width: 140px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 225, 0, 0.42);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(240, 24, 24, 0.95), rgba(139, 24, 0, 0.82));
  color: #fff1ce;
  text-align: center;
  font: 800 13px/1.16 Sora, sans-serif;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
}

.bonus-pill span {
  display: block;
  font-size: 10px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 64px;
  margin-top: 16px;
  padding: 0 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffbd24, #ff7300 54%, #dc2400);
  color: #220600;
  font: 600 clamp(20px, 5.2vw, 27px)/1 Sora, sans-serif;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.22), 0 4px 0 rgba(78, 37, 0, 0.48);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.cta:hover {
  filter: brightness(1.1);
  transform: translateY(1px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 2px 0 rgba(78, 37, 0, 0.55);
}

.cta span {
  font-size: 34px;
  line-height: 1;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  gap: 14px;
}

.countdown-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffd8de;
  font: 800 13px/1 JetBrains Mono, monospace;
  text-transform: uppercase;
}

.pager-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-left: 16px;
  border-radius: 50%;
  background: #ffd8de;
  box-shadow: 0 0 0 6px rgba(255, 216, 222, 0.08);
}

.timer {
  display: flex;
  gap: 6px;
}

.timer div {
  display: grid;
  place-items: center;
  width: 44px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid rgba(255, 230, 0, 0.3);
  background: linear-gradient(180deg, rgba(226, 51, 0, 0.98), rgba(84, 13, 0, 0.96));
  color: #fff0c8;
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.26);
}

.timer strong {
  font: 800 15px/1 JetBrains Mono, monospace;
}

.timer span {
  font: 800 8px/1 JetBrains Mono, monospace;
}

.trust-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trust-card,
.stats-grid article {
  min-height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)), var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.trust-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  font-size: 13px;
}

.icon,
.round-icon {
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.icon {
  width: 38px;
  height: 38px;
}

.peach .icon { background: rgba(255, 182, 147, 0.18); color: var(--orange-soft); }
.cyan .icon { background: rgba(0, 219, 233, 0.16); color: var(--cyan); }
.purple .icon { background: rgba(220, 184, 255, 0.18); color: #dcb8ff; }
.green .icon { background: rgba(31, 211, 107, 0.18); color: var(--green); }

.shield::before { content: "◆"; transform: rotate(45deg); font-size: 18px; }
.eye::before { content: "●"; font-size: 15px; box-shadow: 0 0 0 5px currentColor inset; border-radius: 50%; }
.tv::before { content: "▻"; border: 2px solid currentColor; width: 18px; height: 14px; display: grid; place-items: center; font-size: 11px; }
.chat::before { content: "≡"; font-size: 28px; line-height: 0; }

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  margin-top: 26px;
  padding: 22px 24px;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
}

.banner h2 {
  font: 800 clamp(20px, 5.4vw, 28px)/1.36 Sora, sans-serif;
  letter-spacing: 0;
}

.banner p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.community {
  background:
    radial-gradient(circle at 58% 20%, rgba(255, 255, 255, 0.1), transparent 46%),
    linear-gradient(135deg, #f01818, #ff7b00);
  box-shadow: 0 16px 42px rgba(240, 24, 24, 0.2);
  transition: transform 160ms ease, filter 160ms ease;
}

.community:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.action {
  margin-top: 14px;
  background:
    radial-gradient(circle at 40% 0, rgba(255, 255, 255, 0.14), transparent 52%),
    linear-gradient(135deg, #ff8a00, #f01818 62%, #7b0d00);
}

.round-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font: 800 42px/1 Sora, sans-serif;
}

.people::before {
  content: "♚";
  font-size: 30px;
}

.stats-grid {
  margin-top: 24px;
}

.stats-grid article {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px 16px;
}

.stats-grid strong {
  color: var(--orange-soft);
  font: 800 clamp(20px, 5.6vw, 28px)/1.04 Sora, sans-serif;
}

.stats-grid article:nth-child(2) strong { color: #ffdf57; }
.stats-grid article:nth-child(3) strong { color: var(--cyan); }
.stats-grid article:nth-child(4) strong { color: #d4e4fa; }

.stats-grid i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--green);
}

.stats-grid span {
  color: #ffd2bf;
  font: 800 11px/1.2 JetBrains Mono, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 32px;
  padding: 64px 28px 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #090506;
  color: rgba(226, 191, 176, 0.88);
  text-align: center;
}

.footer nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 26px 28px;
  font: 700 16px/1.2 Sora, sans-serif;
}

.footer p {
  max-width: 360px;
  color: rgba(212, 228, 250, 0.56);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.buyer-toast {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(calc(100% - 32px), 360px);
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(6, 17, 31, 0.92);
  color: #fff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(31, 211, 107, 0.16) inset;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(18px);
}

.buyer-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.buyer-toast__avatar {
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1fd36b, #00dbe9);
  color: #001120;
  font: 800 18px/1 Sora, sans-serif;
}

.buyer-toast strong,
.buyer-toast small {
  display: block;
}

.buyer-toast strong {
  font: 800 13px/1.2 Sora, sans-serif;
}

.buyer-toast small {
  margin-top: 3px;
  color: #cfe5d7;
  font: 700 12px/1.25 Inter, sans-serif;
}

@keyframes banner-shine {
  0%, 45% { transform: translateX(-130%); }
  70%, 100% { transform: translateX(130%); }
}

@media (min-width: 760px) {
  .topbar {
    min-height: 78px;
  }

  .page-shell {
    width: min(100% - 64px, 1180px);
    display: grid;
    grid-template-columns: minmax(360px, 540px) minmax(300px, 1fr);
    gap: 22px;
    align-items: start;
  }

  .raffle-card {
    grid-row: span 3;
    padding: 22px;
  }

  .countdown {
    min-height: 82px;
    padding: 0 12px;
  }

  .timer div {
    width: 52px;
    height: 60px;
  }

  .trust-grid,
  .stats-grid {
    gap: 14px;
  }

  .banner {
    margin-top: 0;
  }

  .action {
    margin-top: 14px;
  }

  .stats-grid {
    margin-top: 0;
  }
}
