:root {
  --bg: #07080c;
  --bg-elev: rgba(18, 20, 28, 0.72);
  --line: rgba(255, 140, 40, 0.35);
  --accent: #ff8a1a;
  --accent-hot: #ffb347;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --star: #f5c542;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #07080c;
}

.page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 120, 20, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 60, 40, 0.1), transparent 50%),
    linear-gradient(180deg, #0b0d12 0%, #07080c 40%, #0a0c11 100%);
  color: var(--text);
  font-family: "Sora", "Outfit", system-ui, sans-serif;
  padding: 2.5rem 1.25rem 4rem;
}

.glow-a,
.glow-b {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
}

.glow-a {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -60px;
  background: #ff7a18;
  animation: drift 14s ease-in-out infinite alternate;
}

.glow-b {
  width: 360px;
  height: 360px;
  bottom: 10%;
  right: -40px;
  background: #c2410c;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header,
.featured,
.list,
.status {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.header {
  text-align: center;
  margin-bottom: 2.25rem;
  animation: rise 0.7s ease both;
}

.brand {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.04em;
  background: linear-gradient(105deg, #fff 20%, var(--accent-hot) 55%, #fff 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s linear infinite;
}

.title {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.subtitle {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.status {
  text-align: center;
  padding: 2rem;
}

.status.error {
  color: #ff8f8f;
}

.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.featured-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 138, 26, 0.12), transparent 42%),
    var(--bg-elev);
  backdrop-filter: blur(12px);
  animation: rise 0.65s ease both;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 26, 0.65);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(255, 120, 20, 0.12);
}

.featured-logo {
  width: 100%;
  height: 72px;
  display: grid;
  place-items: center;
}

.featured-name {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.featured-offer {
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  min-height: 2.7em;
}

.list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elev);
  backdrop-filter: blur(10px);
}

.row {
  display: grid;
  grid-template-columns: 140px 120px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 140, 40, 0.18);
  animation: rise 0.55s ease both;
  transition: background 0.2s ease;
}

.row:last-child {
  border-bottom: none;
}

.row:hover {
  background: rgba(255, 138, 26, 0.06);
}

.row-logo {
  height: 48px;
  display: flex;
  align-items: center;
}

.row-rating {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rating-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stars {
  color: var(--star);
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

.stars-empty {
  color: rgba(255, 255, 255, 0.18);
}

.row-offer {
  margin: 0;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

.logo-img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.row .logo-img {
  max-height: 42px;
}

.logo-fallback {
  width: 56px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 138, 26, 0.15);
  color: var(--accent-hot);
  font-weight: 700;
  font-family: "Outfit", sans-serif;
}

.cta,
.cta-small {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #1a0d00;
  background: linear-gradient(180deg, #ffb347 0%, var(--accent) 100%);
  box-shadow: 0 8px 20px rgba(255, 120, 20, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.cta {
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.cta:hover,
.cta-small:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(255, 120, 20, 0.38);
}

.floating-stack {
  position: fixed;
  right: 0;
  top: 28%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: slide-in 0.7s ease both;
}

.floating-card {
  position: relative;
  width: 118px;
  padding: 1rem 0.7rem 0.75rem;
  border-radius: 14px 0 0 14px;
  border: 1px solid var(--line);
  border-right: none;
  background: rgba(12, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  box-shadow: -8px 12px 30px rgba(0, 0, 0, 0.4);
}

.floating-card .logo-img {
  max-height: 36px;
}

.floating-close {
  position: absolute;
  top: 4px;
  right: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.cta-small {
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  font-size: 0.72rem;
  width: 100%;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(30px, 24px);
  }
}

@keyframes sheen {
  to {
    background-position: 200% center;
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .featured {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr 1fr;
  }

  .row-offer {
    grid-column: 1 / -1;
    text-align: left;
  }

  .row .cta {
    grid-column: 1 / -1;
    width: 100%;
  }

  .floating-stack {
    display: none;
  }
}
