:root {
  color-scheme: dark;
  --bg: #020205;
  --ink: #f7f8ff;
  --muted: #a8adc4;
  --soft: #d8dcff;
  --panel: rgba(10, 13, 24, 0.86);
  --panel-strong: rgba(17, 20, 35, 0.94);
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #56e9ff;
  --pink: #ff65c8;
  --green: #68f2a1;
  --amber: #ffd36a;
  --violet: #a78bfa;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 4%, rgba(86, 233, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(255, 101, 200, 0.16), transparent 24rem),
    linear-gradient(180deg, #020205 0%, #070714 46%, #020205 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(104, 242, 161, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 101, 200, 0.5) 0 1px, transparent 1.5px);
  background-position:
    0 0,
    21px 46px,
    54px 10px;
  background-size:
    96px 96px,
    142px 142px,
    188px 188px;
  opacity: 0.42;
  animation: star-drift 48s linear infinite;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

button {
  border: 0;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(3.05rem, 16vw, 5rem);
  line-height: 0.84;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 7vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.1rem, 4.8vw, 1.38rem);
  line-height: 1.08;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.starscape {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.starscape span {
  position: absolute;
  left: -12vw;
  width: 36vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: rotate(-18deg);
  opacity: 0;
  animation: comet 7.5s ease-in-out infinite;
}

.starscape span:nth-child(1) {
  top: 12%;
}

.starscape span:nth-child(2) {
  top: 42%;
  animation-delay: 2.4s;
  animation-duration: 8.6s;
}

.starscape span:nth-child(3) {
  top: 73%;
  animation-delay: 4.8s;
  animation-duration: 9.4s;
}

.deal-shell {
  width: min(100% - 22px, 480px);
  margin: 0 auto;
  padding: 18px 0 46px;
}

.profile-panel,
.pulse-strip,
.featured-callout,
.deal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-panel {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 36px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(86, 233, 255, 0.32), transparent 30%),
    linear-gradient(315deg, rgba(255, 101, 200, 0.24), transparent 34%);
}

.live-row {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.live-row time {
  margin-left: auto;
  color: var(--amber);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(104, 242, 161, 0.9);
}

.creator-lockup {
  position: relative;
  width: min(76vw, 285px);
  margin: 46px auto 28px;
}

.creator-ring {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  padding: 6px;
  background:
    linear-gradient(145deg, rgba(86, 233, 255, 0.8), rgba(255, 101, 200, 0.82) 48%, rgba(255, 211, 106, 0.82));
  animation: pulse-ring 3.8s ease-in-out infinite;
}

.creator-ring img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center top;
}

.creator-chip {
  position: absolute;
  right: 0;
  bottom: 15px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(86, 233, 255, 0.48);
  border-radius: 999px;
  padding: 0 12px;
  color: #051016;
  background: var(--cyan);
  box-shadow: 0 12px 34px rgba(86, 233, 255, 0.3);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro {
  margin-bottom: 14px;
  color: var(--soft);
  font-size: 1.08rem;
}

.affiliate-note {
  margin-bottom: 22px;
  color: rgba(247, 248, 255, 0.74);
  font-size: 0.82rem;
}

.hero-actions {
  display: grid;
  gap: 10px;
}

.primary-link,
.secondary-link,
.featured-callout a,
.deal-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 16px;
  font-weight: 950;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.primary-link,
.deal-link {
  color: #030306;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.secondary-link,
.featured-callout a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.primary-link:hover,
.primary-link:focus-visible,
.secondary-link:hover,
.secondary-link:focus-visible,
.featured-callout a:hover,
.featured-callout a:focus-visible,
.deal-link:hover,
.deal-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.pulse-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.pulse-strip div {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 14px 8px;
  background: rgba(4, 6, 12, 0.78);
  text-align: center;
}

.pulse-strip span {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1;
}

.pulse-strip p {
  margin: 5px 0 0;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.featured-callout {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 101, 200, 0.16), transparent 42%),
    var(--panel-strong);
}

.featured-callout p:last-child {
  margin-bottom: 0;
}

.feed-header {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.filter-chip.active,
.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: rgba(86, 233, 255, 0.75);
  color: #031015;
  background: var(--cyan);
  outline: none;
}

.deal-feed {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.deal-card {
  --accent: var(--cyan);
  position: relative;
  overflow: hidden;
  padding: 14px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
    var(--panel-strong);
  opacity: 0;
  transform: translateY(18px);
}

.deal-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.deal-card.hidden {
  display: none;
}

.deal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid color-mix(in srgb, var(--accent) 76%, white 8%);
  pointer-events: none;
}

.deal-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.rank-badge,
.category-pill,
.discount-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rank-badge {
  color: #030306;
  background: var(--accent);
}

.category-pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
}

.discount-badge {
  margin-left: auto;
  color: var(--green);
  background: rgba(104, 242, 161, 0.12);
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(255, 255, 255, 0.04);
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px;
  height: 20%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 34%, transparent);
  filter: blur(24px);
  opacity: 0.72;
}

.product-visual img {
  position: relative;
  z-index: 1;
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.48));
  transform: translateZ(0);
  transition: transform 220ms ease;
}

.deal-card:hover .product-visual img {
  transform: translateY(-4px) scale(1.025);
}

.deal-copy {
  padding-top: 14px;
}

.deal-copy p {
  margin-bottom: 12px;
}

.price-row {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.current-price {
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 950;
  line-height: 1;
}

.was-price {
  color: rgba(247, 248, 255, 0.56);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: line-through;
}

.save-line {
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 0.88rem;
  font-weight: 850;
}

.meter {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.meter span {
  display: block;
  width: min(var(--deal-strength), 100%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--green));
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 14px;
}

.tag-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.76rem;
  font-weight: 800;
}

.deal-footer {
  display: grid;
  gap: 10px;
}

.tiny-note {
  margin: 0;
  color: rgba(247, 248, 255, 0.6);
  font-size: 0.78rem;
}

@keyframes star-drift {
  to {
    background-position:
      96px 192px,
      21px 330px,
      54px 386px;
  }
}

@keyframes comet {
  0% {
    opacity: 0;
    transform: translateX(0) rotate(-18deg);
  }
  12% {
    opacity: 0.72;
  }
  34% {
    opacity: 0;
    transform: translateX(128vw) rotate(-18deg);
  }
  100% {
    opacity: 0;
    transform: translateX(128vw) rotate(-18deg);
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(86, 233, 255, 0);
  }
  50% {
    box-shadow: 0 0 45px rgba(86, 233, 255, 0.24);
  }
}

@media (min-width: 740px) {
  .deal-shell {
    padding-top: 34px;
    padding-bottom: 70px;
  }

  .profile-panel {
    min-height: 820px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
