:root {
  --discount-page-bg: linear-gradient(120deg, rgba(6, 11, 25, 0.95), rgba(2, 6, 23, 0.92));
  --discount-surface: rgba(10, 18, 38, 0.92);
  --discount-surface-soft: rgba(14, 23, 45, 0.8);
  --discount-card: rgba(16, 24, 49, 0.92);
  --discount-border: rgba(148, 163, 184, 0.2);
  --discount-glow: rgba(14, 165, 233, 0.35);
  --discount-accent: #0ea5e9;
  --discount-accent-warm: #f97316;
  --discount-highlight: rgba(14, 165, 233, 0.12);
  --discount-rating: #facc15;
  --discount-success: #34d399;
  --discount-text: #e2e8f0;
  --discount-muted: rgba(148, 163, 184, 0.85);
  --discount-font-headline: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.discounts-page {
  background: var(--discount-page-bg);
  color: var(--discount-text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
}

body.discounts-page .site-bg {
  background: radial-gradient(1200px at 20% -10%, rgba(14, 165, 233, 0.16), transparent),
    radial-gradient(900px at 80% 20%, rgba(249, 115, 22, 0.2), transparent),
    #010411;
}

.discounts-content {
  position: relative;
  z-index: 1;
  padding: 0 0 4rem;
}

/* Banner Hero Section */
.discount-hero-banner {
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  padding: 0;
}

.discount-banner-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 4rem);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: 
    radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.25), transparent 45%),
    radial-gradient(circle at 90% 30%, rgba(249, 115, 22, 0.2), transparent 50%),
    linear-gradient(135deg, rgba(20, 10, 5, 0.9), rgba(40, 15, 10, 0.85)),
    var(--banner-image, url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1600&q=80')) center/cover;
  overflow: hidden;
  isolation: isolate;
  min-height: 160px;
  box-shadow: 
    0 24px 48px rgba(239, 68, 68, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.discount-banner-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.banner-text {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 600px;
}

.banner-title {
  font-family: var(--discount-font-headline);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
  max-width: 100%;
}

.banner-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.banner-code {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(249, 115, 22, 0.4);
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
}

.banner-code span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.banner-code strong {
  color: #fb923c;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 1.1em;
}

.banner-cta {
  position: relative;
  z-index: 2;
  padding: 1rem 2rem;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 24px rgba(239, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 32px rgba(239, 68, 68, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.banner-cta:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .discount-banner-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .banner-cta {
    width: 100%;
  }
}

/* Old hero styles - kept for backwards compatibility */
.discount-hero {
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.22), transparent 45%),
    radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.22), transparent 50%),
    rgba(4, 10, 24, 0.85);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.discount-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.3)),
    var(--hero-image, url('https://images.unsplash.com/photo-1525547719571-a2d4ac8945e2?auto=format&fit=crop&w=1600&q=80')) center/cover;
  opacity: 0.22;
  z-index: -1;
}

.discount-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.8rem);
  align-items: stretch;
}

.discount-hero-body h1 {
  font-family: var(--discount-font-headline);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.discount-hero-body .hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.78rem;
  color: var(--discount-muted);
  margin-bottom: 1rem;
}

.discount-hero-body .hero-lede {
  font-size: 1.05rem;
  color: rgba(226, 232, 240, 0.92);
  max-width: 48ch;
  margin-bottom: 1.5rem;
}

.discount-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.discount-hero-stats article {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(4, 7, 20, 0.55);
  box-shadow: 0 25px 60px rgba(3, 7, 18, 0.45);
}

.discount-hero-stats span {
  display: block;
  font-size: 0.82rem;
  color: var(--discount-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.discount-hero-stats strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.75rem;
  font-family: var(--discount-font-headline);
}

.discount-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.discount-hero-cta .btn-primary,
.discount-hero-cta .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.discount-hero-cta .btn-primary {
  background: linear-gradient(120deg, var(--discount-accent), var(--discount-accent-warm));
  color: #fff;
  box-shadow: 0 15px 40px rgba(14, 165, 233, 0.35);
}

.discount-hero-cta .btn-ghost {
  background: transparent;
  color: var(--discount-text);
  border-color: rgba(226, 232, 240, 0.35);
}

.discount-hero-cta button:hover,
.discount-hero-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.35);
}

.discount-hero-spotlight {
  border-radius: 24px;
  padding: 1.6rem;
  background: rgba(3, 7, 18, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.discount-hero-spotlight .spotlight-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--discount-muted);
}

.discount-hero-spotlight h3 {
  font-family: var(--discount-font-headline);
  font-size: 1.45rem;
  margin: 0.4rem 0;
}

.spotlight-discount {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--discount-accent), var(--discount-accent-warm));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin: 0.2rem 0 0.4rem;
}

.spotlight-prices {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.spotlight-prices .price-new {
  font-size: 2rem;
  font-weight: 600;
}

.spotlight-prices .price-old {
  color: var(--discount-muted);
  text-decoration: line-through;
}

.discount-hero-spotlight .btn-ghost {
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.2);
}

.discount-filters {
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(3, 6, 16, 0.72);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  gap: 1.4rem;
}

.filter-search label {
  display: block;
  font-size: 0.85rem;
  color: var(--discount-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.filter-search .search-input {
  position: relative;
}

.filter-search .search-input i {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  color: var(--discount-muted);
}

.filter-search input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.75);
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  color: var(--discount-text);
  font-size: 1rem;
}

.filter-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.platform-chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(14, 23, 45, 0.65);
  padding: 0.5rem 1.1rem;
  font-size: 0.92rem;
  color: var(--discount-text);
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.platform-chip.active {
  background: var(--discount-highlight);
  border-color: var(--discount-accent);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.25);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-controls label {
  flex: 1 1 220px;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--discount-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-controls select,
.filter-controls input[type="range"] {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(3, 7, 18, 0.7);
  padding: 0.7rem 0.85rem;
  color: var(--discount-text);
  font-size: 1rem;
}

.filter-controls .range-value {
  font-size: 0.9rem;
  color: var(--discount-text);
  font-weight: 600;
}

.discounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.discount-card {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--discount-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
  transition: transform 0.28s ease, border 0.28s ease;
}

.discount-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.5);
}

.discount-card-cover {
  position: relative;
  padding-top: 56%;
  overflow: hidden;
}

.discount-card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.discount-card:hover .discount-card-cover img {
  transform: scale(1.05);
}

.discount-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(3, 7, 18, 0.75);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.discount-card-body {
  padding: 1.25rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.discount-card-body h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--discount-font-headline);
}

.discount-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--discount-muted);
}

.discount-card-meta .deal-rating {
  color: var(--discount-rating);
  font-weight: 600;
}

.discount-card-prices {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.discount-card-prices .price-new {
  font-size: 1.45rem;
  font-weight: 600;
}

.discount-card-prices .price-old {
  color: var(--discount-muted);
  text-decoration: line-through;
}

.discount-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.discount-card-footer .deal-platforms {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--discount-muted);
}

.discount-card-footer .deal-actions {
  display: flex;
  gap: 0.6rem;
}

.discount-card-footer .btn-outline,
.discount-card-footer .btn-secondary {
  border-radius: 14px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: var(--discount-text);
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
}

.discount-card-footer .btn-secondary {
  background: linear-gradient(120deg, var(--discount-accent), var(--discount-accent-warm));
  border: none;
  color: #fff;
}

.discount-card-footer button:hover,
.discount-card-footer a:hover {
  transform: translateY(-1px);
}

.discounts-empty {
  margin-top: 1.5rem;
  text-align: center;
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  background: rgba(3, 6, 16, 0.5);
}

.discounts-empty button {
  margin-top: 1rem;
  border-radius: 14px;
  padding: 0.8rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: var(--discount-text);
  font-weight: 600;
}

.discounts-perks {
  margin: clamp(2rem, 4vw, 3rem) auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.discounts-perks article {
  border-radius: 20px;
  padding: 1.4rem;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  min-height: 160px;
}

.discounts-perks h4 {
  margin: 0 0 0.5rem;
  font-family: var(--discount-font-headline);
  font-size: 1.15rem;
}

.discounts-perks p {
  margin: 0;
  color: var(--discount-muted);
  font-size: 0.95rem;
}

.discount-subscribe {
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: 28px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.18), rgba(249, 115, 22, 0.18));
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.discount-subscribe h3 {
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
  font-family: var(--discount-font-headline);
}

.discount-subscribe p {
  margin: 0;
  color: var(--discount-text);
  max-width: 60ch;
}

.discount-subscribe button {
  border-radius: 16px;
  border: none;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .discount-hero {
    padding: 1.8rem;
  }

  .discount-hero-grid {
    grid-template-columns: 1fr;
  }

  .filter-controls {
    flex-direction: column;
  }

  .discount-subscribe {
    flex-direction: column;
    text-align: center;
  }
}
