:root {
  --bg-dark: #0a0a0a;
  --bg-card: #121212;
  --border-light: rgba(255, 255, 255, 0.08);
  --accent-gold: #D4AF37;
  --accent-gold-hover: #b8972e;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
}

/* ── HERO SECTION ── */
.deals-hero {
  position: relative;
  padding: 120px 20px 80px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(10, 10, 10, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.accent-gold {
  color: var(--accent-gold);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px 40px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--accent-gold);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* ── SEARCH & FILTERS ── */

/* Sentinel: a zero-height div placed just before the filter bar */
.filter-sentinel {
  height: 0;
  visibility: hidden;
}

.deals-filters {
  padding: 30px 20px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(15px);
  /* NOT sticky by default — JS adds is-sticky */
  transition: box-shadow 0.3s ease;
  z-index: 100;
}

/* Applied by IntersectionObserver when bar reaches navbar */
.deals-filters.is-sticky {
  position: fixed;
  top: 0;
  /* will be overridden by JS with real navbar height */
  left: 0;
  right: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Spacer that fills in the gap when the bar goes fixed */
.filter-placeholder {
  display: none;
}

.filter-placeholder.active {
  display: block;
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}

.search-box svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #71717a;
}

.search-box input {
  width: 100%;
  background: #18181b;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 12px 15px 12px 45px;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.filter-chips {
  display: flex;
  gap: 10px;
}

.chip {
  background: #18181b;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chip:hover {
  background: #27272a;
  color: #fff;
}

.chip.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  font-weight: 500;
}

/* ── DEALS GRID ── */
.deals-grid-section {
  padding: 60px 20px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* ── DEAL CARD COMMON ── */
.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 175, 55, 0.3);
}

.deal-badge-top {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.deal-body {
  padding: 30px 25px 25px;
  flex: 1;
}

.deal-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.deal-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.deal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.deal-reqs {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed var(--border-light);
  padding-top: 15px;
}

.deal-reqs li {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal-reqs li i {
  color: var(--accent-gold);
  width: 14px;
  text-align: center;
}

/* ── CARD FOOTERS ── */
.deal-footer {
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.code-display {
  flex: 1;
  font-family: monospace;
  font-size: 1.1rem;
  color: #fff;
  border: 1px dashed var(--border-light);
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  background: #000;
  letter-spacing: 2px;
}

.copy-btn {
  background: var(--accent-gold);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease;
}

.copy-btn:hover {
  background: var(--accent-gold-hover);
}

.copy-btn.copied {
  background: #22c55e;
  color: #fff;
}

.shop-now-btn {
  width: 100%;
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.shop-now-btn:hover {
  background: var(--accent-gold);
  color: #000;
}

/* ── EMPTY STATE ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: 12px;
  max-width: 600px;
  margin: 40px auto;
}

.empty-state h3 {
  margin: 20px 0 10px;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
}

.empty-state p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.btn-luxury-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 12px 30px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-luxury-outline:hover {
  background: var(--accent-gold);
  color: #000;
}

/* ── TOAST ── */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #22c55e;
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  font-weight: 500;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .deals-filters {
    padding: 20px;
  }

  .search-box {
    min-width: 100%;
    max-width: 100%;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-box {
    padding: 15px 20px;
  }

  .stat-num {
    font-size: 2rem;
  }

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