/* Dealzy.in Storefront Redesign, Category Sidebar, Ticker & Animated Voucher */

/* 1. Top Utility Bar */
.site-top-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.35rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Top Bar Social Channel Buttons with Uniform Length & Height */
.top-bar-link {
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  min-width: 125px;
  height: 28px;
  box-sizing: border-box;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.top-bar-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--bg-surface);
  transform: translateY(-1px);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 2. Main Brand & Search Row */
.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.header-search-with-cat {
  flex: 1;
  max-width: 680px;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-full, 9999px);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-with-cat:focus-within {
  border-color: var(--accent-primary, #0284c7);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Category Select Dropdown with Solid Background & High-Contrast Options */
.cat-select-dropdown {
  background: var(--bg-surface);
  border: none;
  border-right: 1px solid var(--border-subtle);
  padding: 0.65rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  max-width: 165px;
  border-top-left-radius: var(--radius-full, 9999px);
  border-bottom-left-radius: var(--radius-full, 9999px);
}

.cat-select-dropdown option {
  background: #ffffff;
  color: #0f172a;
  padding: 0.65rem;
  font-size: 0.875rem;
}

[data-theme="dark"] .cat-select-dropdown {
  background: #1e293b;
  color: #f8fafc;
}

[data-theme="dark"] .cat-select-dropdown option {
  background: #1e293b;
  color: #f8fafc;
}

[data-theme="light"] .cat-select-dropdown {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .cat-select-dropdown option {
  background: #ffffff;
  color: #0f172a;
}

.cat-search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
}

.cat-search-btn {
  background: var(--accent-primary, #0284c7);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.cat-search-btn:hover {
  background: #0369a1;
}

/* 3. Secondary Navigation Bar */
.header-nav-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.25rem 0;
}

.nav-bar-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cat-menu-toggle-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-md, 8px);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: background 0.15s ease;
}

.cat-menu-toggle-btn:hover {
  background: #1e293b;
}

.nav-links-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-links-row a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.25rem;
  transition: color 0.15s ease;
}

.nav-links-row a:hover,
.nav-links-row a.active {
  color: var(--accent-primary);
}

/* Live Deals Prominent Pulsing Red Highlight Link (R2) */
.nav-links-row a.nav-link-live,
.nav-links-row a[href="deals.html"],
.nav-links-row a[href="../deals.html"] {
  color: #ef4444 !important;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 9999px;
  animation: liveDealsRedPulse 1.8s infinite ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.nav-links-row a.nav-link-live:hover,
.nav-links-row a[href="deals.html"]:hover,
.nav-links-row a[href="../deals.html"]:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #dc2626 !important;
}

.nav-links-row a.nav-link-live i,
.nav-links-row a[href="deals.html"] i,
.nav-links-row a[href="../deals.html"] i {
  color: #ef4444 !important;
}

@keyframes liveDealsRedPulse {
  0% {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    transform: scale(1);
  }
  50% {
    background-color: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.85);
    box-shadow: 0 0 10px 3px rgba(239, 68, 68, 0.45);
    transform: scale(1.02);
  }
  100% {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    transform: scale(1);
  }
}

/* 4. Moving Discount Ticker */
.discount-ticker-wrap {
  background: #0f172a;
  color: #ffffff;
  border-bottom: 1px solid #1e293b;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 38px;
  position: relative;
  font-size: 0.8rem;
}

.ticker-badge {
  background: #ef4444;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 0 0.85rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ticker-track-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  will-change: transform;
  animation: tickerMarquee 85s linear infinite;
}

.ticker-track:hover,
.ticker-track:focus-within {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation-play-state: paused;
    overflow-x: auto;
  }
}



.ticker-item {
  color: #e2e8f0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s ease;
}

.ticker-item:hover {
  color: #38bdf8;
}

.ticker-disc-tag {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.7rem;
}

.ticker-store-tag {
  color: #94a3b8;
  font-size: 0.75rem;
}

@keyframes tickerMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 5. Storefront Full-Width Hero Section */
.storefront-hero-section {
  padding: 1.5rem 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.storefront-hero-grid {
  display: block;
  width: 100%;
}

/* Permanent category sidebar and animated voucher are hidden per storefront layout requirements */
.category-sidebar-box {
  display: none !important;
}

.voucher-anim-card {
  display: none !important;
}

/* Centered Spotlight Hero Banner with Vibrant Graphic Backdrop */
.hero-center-banner,
.hero-banner-full {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 41, 59, 0.96) 100%),
              url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?w=1600&auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 16px);
  padding: 3.5rem 2rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.3);
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.hero-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.78rem;
  font-weight: 800;
  width: fit-content;
  margin: 0 auto 1.15rem;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.hero-banner-title {
  font-size: clamp(2.35rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 auto 1.15rem;
  max-width: 920px;
  text-align: center;
}

.hero-banner-title .text-gradient,
.text-gradient {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-banner-desc {
  font-size: 1.075rem;
  color: #cbd5e1;
  margin: 0 auto 2rem;
  max-width: 680px;
  line-height: 1.65;
  text-align: center;
}

.hero-channel-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

/* Same Size, Padding, and Height for WhatsApp, Telegram, X, and Short-cuts */
.btn-hero-wa,
.btn-hero-tg,
.btn-hero-x,
.btn-hero-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 180px;
  height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md, 8px);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-hero-wa {
  background: #25d366;
  color: #ffffff;
  border: 1px solid #16a34a;
}
.btn-hero-wa:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-hero-tg {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0369a1;
}
.btn-hero-tg:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-hero-x {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-hero-x:hover {
  background: #171717;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.btn-hero-shortcut {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.btn-hero-shortcut:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Cleaned duplicate hero block */

/* Right-Hand Animated ₹500 Voucher Widget */
.voucher-anim-card {
  background: var(--bg-card);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)), linear-gradient(135deg, #f59e0b, #0284c7, #f59e0b);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: var(--radius-lg, 12px);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.anim-badge-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0 auto 0.75rem;
}

/* Animated 3D Gift Box */
.anim-gift-stage {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 0.5rem;
}

.anim-gift-box {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.35);
  animation: giftBounce 2.5s ease-in-out infinite;
}

.anim-gift-lid {
  position: absolute;
  top: -8px;
  width: 58px;
  height: 12px;
  background: #fbbf24;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: lidShake 2.5s ease-in-out infinite;
}

.anim-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  opacity: 0;
  animation: particleFloat 2.5s ease-in-out infinite;
}

.p1 { top: 20%; left: 30%; animation-delay: 0.2s; }
.p2 { top: 15%; right: 25%; animation-delay: 0.6s; }
.p3 { bottom: 25%; left: 20%; animation-delay: 1.1s; }
.p4 { bottom: 20%; right: 30%; animation-delay: 1.5s; }

@keyframes giftBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes lidShake {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-3px) rotate(-3deg); }
  75% { transform: translateY(-3px) rotate(3deg); }
}

@keyframes particleFloat {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2) translateY(-10px); opacity: 0.9; }
  100% { transform: scale(0.2) translateY(-20px); opacity: 0; }
}

.voucher-anim-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.voucher-anim-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.voucher-anim-progress-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 8px);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.voucher-anim-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.voucher-anim-track {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.voucher-anim-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.btn-voucher-claim-now {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md, 8px);
  padding: 0.65rem;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: all 0.15s ease;
}

.btn-voucher-claim-now:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.voucher-legal-micro {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.65rem;
}

/* 6. Mobile Category Drawer & Overlay */
.mobile-cat-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: var(--bg-card);
  z-index: 10002;
  box-shadow: 10px 0 25px rgba(0, 0, 0, 0.3);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.mobile-cat-drawer.open {
  transform: translateX(0);
}

.mobile-cat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-cat-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header {
  background: #0f172a;
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-title {
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 6. Universal Pop-out Category Drawer (Slide-out from Left on Desktop & Mobile) */
.category-drawer-overlay,
.mobile-cat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99980;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.category-drawer-overlay.open,
.mobile-cat-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.category-drawer,
.mobile-cat-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  max-width: 86vw;
  height: 100vh;
  background: var(--bg-card, #1e293b);
  border-right: 1px solid var(--border-subtle, #334155);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4);
  z-index: 99990;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.category-drawer.open,
.mobile-cat-drawer.open {
  transform: translateX(0);
}

.cat-drawer-header,
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  background: #0f172a;
  border-bottom: 1px solid #334155;
  color: #ffffff;
}

.cat-drawer-title,
.mobile-drawer-title {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: 0.5px;
  color: #f8fafc;
}

.cat-drawer-title i,
.mobile-drawer-title i {
  color: #38bdf8;
}

.cat-drawer-close,
.mobile-drawer-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.cat-drawer-close:hover,
.mobile-drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.cat-drawer-body,
.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.cat-drawer-list,
.category-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.cat-drawer-list li,
.category-sidebar-list li {
  border-bottom: 1px solid var(--border-subtle);
}

.cat-drawer-link,
.cat-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}

.cat-drawer-link:hover,
.cat-item-link:hover,
.cat-drawer-link.active,
.cat-item-link.active {
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-primary, #0284c7);
  padding-left: 1.5rem;
}

.cat-drawer-link .cat-label,
.cat-item-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cat-drawer-link .cat-label i,
.cat-item-title i {
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.cat-drawer-link:hover .cat-label i,
.cat-item-link:hover .cat-item-title i {
  color: var(--accent-primary, #0284c7);
}

.cat-drawer-count,
.cat-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
}

.cat-drawer-footer {
  padding: 1rem 1.25rem;
  background: #0b1120;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cat-drawer-footer-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 800;
}

.cat-drawer-social-row {
  display: flex;
  gap: 0.5rem;
}

.cat-drawer-social-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.cat-drawer-social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.btn-drawer-wa { background: #25d366; color: #ffffff; }
.btn-drawer-tg { background: #0284c7; color: #ffffff; }
.btn-drawer-x { background: #000000; color: #ffffff; border: 1px solid #334155; }

/* 7. Category Portal Hero Banner (for category.html) */
.category-portal-hero {
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 0;
  position: relative;
}

.category-portal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.category-portal-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.cat-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(2, 132, 199, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.5);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cat-portal-title {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.cat-portal-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 600px;
}

/* 8. 4-Deals-Per-Row Universal Grid Rule */
.deals-feed-grid,
.deals-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  align-items: stretch !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1200px) {
  .deals-feed-grid,
  .deals-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
}

@media (max-width: 860px) {
  .deals-feed-grid,
  .deals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .deals-feed-grid,
  .deals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }
}

/* 9. Consistent Deal Cards: No Overlap, No Uneven Heights */
.deal-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  min-height: 410px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg, 12px) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  position: relative !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.deal-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(2, 132, 199, 0.4) !important;
}

.deal-img-wrap {
  position: relative !important;
  width: 100% !important;
  height: 180px !important;
  min-height: 180px !important;
  max-height: 180px !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.75rem !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

[data-theme="dark"] .deal-img-wrap {
  background: #0f172a !important;
}

.deal-thumb {
  max-width: 100% !important;
  max-height: 160px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: auto !important;
  display: block !important;
  transition: transform 0.25s ease !important;
}

.deal-body {
  padding: 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

.deal-title {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  min-height: 2.7em !important;
  max-height: 2.7em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 0.6rem !important;
  color: var(--text-primary) !important;
}

.deal-title a {
  color: var(--text-primary) !important;
  text-decoration: none !important;
}

.deal-title a:hover {
  color: var(--accent-primary) !important;
}

.deal-price-box {
  margin-top: auto !important;
  margin-bottom: 0.65rem !important;
  padding: 0.55rem 0.75rem !important;
  background: var(--bg-surface) !important;
  border-radius: var(--radius-md, 8px) !important;
  border: 1px solid var(--border-subtle) !important;
}

.deal-actions {
  margin-top: 0.35rem !important;
  width: 100% !important;
  display: flex !important;
}

.deal-actions .btn-grab-deal {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.65rem 1rem !important;
  border-radius: var(--radius-md, 8px) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}

/* 10. Complete Removal/Suppression of SVG Price Graph Buttons & Modals */
.btn-deal-graph-sm,
.btn-deal-graph,
#price-graph-modal {
  display: none !important;
}

/* Responsive Overrides */
@media (max-width: 960px) {
  .header-main-row {
    flex-wrap: wrap;
  }

  .header-search-with-cat {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
}


/* Fast in-page filtering rule */
.deal-card.deal-hidden {
  display: none !important;
}

/* Hide gamification and coins */
#gamification-pill-btn,
.gamification-pill-btn,
.coin-badge-icon,
.coin-badge-count,
.streak-badge-pill,
.deal-community-bar {
  display: none !important;
}


/* --- Top-Right Hero Banner Social Buttons & Header Actions --- */
.hero-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.hero-box-header .hero-banner-tag {
  margin: 0;
  white-space: nowrap;
}

.hero-top-social-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.btn-hero-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-hero-top-wa {
  background: rgba(37, 211, 102, 0.2);
  color: #4ade80;
  border: 1px solid rgba(37, 211, 102, 0.5);
}
.btn-hero-top-wa:hover {
  background: #25d366;
  color: #0b141a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-hero-top-tg {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.5);
}
.btn-hero-top-tg:hover {
  background: #0284c7;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.btn-hero-top-x {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-hero-top-x:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-shortcuts-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Floating Telegram Quick-Join Button (Bottom Left) */
.floating-tg-cta {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #0284c7;
  color: #ffffff;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full, 9999px);
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.45);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  animation: tgPulse 3s infinite;
}

.floating-tg-cta:hover {
  background: #0369a1;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(2, 132, 199, 0.6);
  color: #ffffff;
}

.floating-tg-icon {
  font-size: 1.35rem;
  color: #ffffff;
}

@keyframes tgPulse {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(2, 132, 199, 0.45);
  }
  50% {
    box-shadow: 0 6px 28px rgba(2, 132, 199, 0.7);
  }
}

/* Mobile & Tablet Responsiveness Enhancements */
@media (max-width: 768px) {
  .hero-banner-title {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }
  .hero-center-banner,
  .hero-banner-full {
    padding: 2rem 1rem !important;
  }

  .hero-box-header {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    width: 100% !important;
  }

  .hero-box-header .hero-banner-tag {
    margin: 0 auto !important;
    font-size: 0.72rem !important;
    padding: 0.3rem 0.65rem !important;
  }

  .hero-top-social-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.45rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .btn-hero-top {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0.45rem 0.25rem !important;
    font-size: 0.75rem !important;
    justify-content: center !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .btn-hero-top span {
    white-space: nowrap !important;
  }

  .hero-shortcuts-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-shortcuts-row .btn-hero-shortcut {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 220px !important;
    height: 42px !important;
    padding: 0.45rem 0.5rem !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }

  /* Symmetric Floating Action Buttons */
  .floating-tg-cta span,
  .floating-wa-cta span {
    display: none !important;
  }

  .floating-tg-cta {
    padding: 0 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    bottom: 1.25rem !important;
    left: 1.25rem !important;
    justify-content: center !important;
    display: flex !important;
  }

  .floating-wa-cta {
    padding: 0 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    bottom: 1.25rem !important;
    right: 1.25rem !important;
    justify-content: center !important;
    display: flex !important;
  }

  .floating-tg-icon,
  .floating-wa-icon {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 640px) {
  .hero-banner-title {
    font-size: 1.95rem !important;
    line-height: 1.22 !important;
  }
  .top-bar-left .top-bar-link {
    display: none !important;
  }

  .top-bar-left span {
    font-size: 0.74rem !important;
    white-space: nowrap !important;
  }

  .cat-select-dropdown {
    max-width: 110px !important;
    padding: 0.65rem 0.5rem !important;
    font-size: 0.76rem !important;
  }

  .cat-search-input {
    padding: 0.65rem 0.65rem !important;
    font-size: 0.8rem !important;
  }

  .cat-search-btn {
    padding: 0.65rem 0.85rem !important;
  }
}

@media (max-width: 420px) {
  .hide-xs {
    display: none !important;
  }

  .btn-hero-top {
    font-size: 0.7rem !important;
    gap: 0.25rem !important;
    padding: 0.4rem 0.2rem !important;
  }

  .hero-banner-title {
    font-size: 1.75rem !important;
    line-height: 1.22 !important;
  }

  .hero-banner-desc {
    font-size: 0.88rem !important;
    margin-bottom: 1.25rem !important;
  }

  .cat-select-dropdown {
    max-width: 95px !important;
    padding: 0.65rem 0.35rem !important;
    font-size: 0.72rem !important;
  }
}



/* ==========================================================================
   10. Widescreen Desktop 5-Column & 6-Column Grid Scaling
   ========================================================================== */
@media (min-width: 1540px) {
  :root {
    --container-max: 1480px;
  }
  .deals-feed-grid,
  .deals-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 1.15rem !important;
  }
}

@media (min-width: 1800px) {
  :root {
    --container-max: 1500px;
  }
  .deals-feed-grid,
  .deals-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0.95rem !important;
  }
  .deals-feed-grid .deal-card,
  .deals-grid .deal-card {
    min-height: 385px !important;
    padding: 0.85rem !important;
  }
}

@media (min-width: 2200px) {
  :root {
    --container-max: 1720px;
  }
  .deals-feed-grid,
  .deals-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
  }
  .deals-feed-grid .deal-card,
  .deals-grid .deal-card {
    min-height: 410px !important;
    padding: 1rem !important;
  }
}

/* ==========================================================================
   11. Desktop Flank Promo Rails (Aligned with Deals Feed Grid)
   ========================================================================== */
.dealzy-flank-rail {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 215px;
  z-index: 80;
  pointer-events: none;
  box-sizing: border-box;
}

@media (min-width: 1680px) {
  .dealzy-flank-rail {
    display: block;
  }
  .dealzy-flank-rail-left {
    left: -230px;
  }
  .dealzy-flank-rail-right {
    right: -230px;
  }
}

@media (min-width: 2200px) {
  .dealzy-flank-rail-left {
    left: -245px;
  }
  .dealzy-flank-rail-right {
    right: -245px;
  }
}

.dealzy-flank-container {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: auto;
}

.dealzy-flank-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dealzy-flank-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.dealzy-flank-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0.75;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.dealzy-flank-dismiss:hover {
  opacity: 1;
  background: #ef4444;
}

.dealzy-flank-header {
  padding: 0.65rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

.dealzy-flank-header.spotlight {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #38bdf8;
}

.dealzy-flank-header.reward-card {
  background: linear-gradient(135deg, #78350f, #451a03);
  color: #fde047;
}

.dealzy-flank-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.dealzy-flank-img-wrap {
  width: 100%;
  height: 95px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.dealzy-flank-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.dealzy-flank-card:hover .dealzy-flank-img-wrap img {
  transform: scale(1.05);
}

.dealzy-flank-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.dealzy-flank-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.dealzy-flank-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.dealzy-flank-perk {
  font-size: 0.72rem;
  color: #2563eb;
  font-weight: 700;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  line-height: 1.2;
}

.dealzy-flank-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.dealzy-flank-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-primary, #2563eb);
}

.dealzy-flank-mrp {
  font-size: 0.72rem;
  color: var(--text-tertiary, #94a3b8);
  text-decoration: line-through;
}

.dealzy-flank-cta {
  display: block;
  text-align: center;
  background: var(--accent-primary, #2563eb);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 0.35rem;
  transition: background 0.15s ease;
}

.dealzy-flank-cta:hover {
  background: var(--accent-hover, #1d4ed8);
}

.dealzy-flank-footer {
  font-size: 0.65rem;
  color: var(--text-tertiary, #94a3b8);
  text-align: center;
  padding: 0.4rem 0.5rem;
  border-top: 1px solid var(--border-subtle, #e2e8f0);
  background: var(--bg-surface, #f8fafc);
}

[data-theme="dark"] .dealzy-flank-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .dealzy-flank-img-wrap {
  background: #0f172a;
}
[data-theme="dark"] .dealzy-flank-title {
  color: #f1f5f9;
}
[data-theme="dark"] .dealzy-flank-perk {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
  color: #93c5fd;
}
[data-theme="dark"] .dealzy-flank-footer {
  background: #0f172a;
  border-color: #334155;
}

/* Product Detail Hero Buy Button & Multi-Store Action Cells */
.btn-hero-buy,
#hero-buy-btn {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  border-radius: 10px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  padding: 0 1.25rem !important;
}

.btn-hero-buy:hover,
#hero-buy-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.store-action-cell {
  width: 190px !important;
  min-width: 170px !important;
  padding: 1rem 0.75rem !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.store-action-cell a {
  min-width: 140px !important;
  max-width: 180px !important;
  width: 100% !important;
  height: 40px !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   Header Restructuring, Left Burger Menu, Flashing Live Deals & Box Boundaries
   ========================================================================== */

/* Single Left Burger Menu Button */
.header-burger-btn {
  background: transparent;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  color: var(--text-primary, #f8fafc);
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  margin-right: 0.5rem;
  box-sizing: border-box;
}

.header-burger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary, #38bdf8);
  color: var(--primary, #38bdf8);
}

@media (max-width: 480px) {
  .header-burger-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 1rem;
    margin-right: 0.35rem;
  }
}

/* Redundant Right Burger Button Removal */
.mobile-menu-toggle {
  display: none !important;
}

/* Secondary Nav Bar Cleanup - CATEGORIES Text Button Removal */
.cat-menu-toggle-btn {
  display: none !important;
}

/* Top Utility Bar Compacting */
.site-top-bar {
  padding: 0.2rem 0 !important;
  font-size: 0.74rem !important;
}

@media (max-width: 768px) {
  .site-top-bar {
    padding: 0.15rem 0.5rem !important;
    font-size: 0.7rem !important;
  }
  .top-bar-container {
    padding: 0 0.5rem !important;
    max-width: 100% !important;
  }
  .top-bar-left span {
    font-size: 0.68rem !important;
  }
  .theme-toggle-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    border-radius: 5px !important;
  }
}

/* Flashing Red Live Deals Navigation Link */
@keyframes live-deals-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.75);
    border-color: #ef4444;
    color: #ef4444;
  }
  50% {
    box-shadow: 0 0 14px 4px rgba(239, 68, 68, 0.5);
    border-color: #f87171;
    color: #ffffff;
    background: rgba(239, 68, 68, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    border-color: #ef4444;
    color: #ef4444;
  }
}

.nav-link-live-flash,
.nav-links-row a.nav-link-live-flash {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.35rem 0.85rem !important;
  border-radius: 9999px !important;
  border: 1.5px solid #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  font-weight: 800 !important;
  font-size: 0.84rem !important;
  color: #ef4444 !important;
  animation: live-deals-flash 1.8s infinite ease-in-out !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.badge-flash-hot {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  display: inline-block;
  line-height: 1;
}

/* Deal Lifecycle Filter Tabs - Strict Box Boundary Containment */
.deal-lifecycle-bar {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px !important;
  padding: 0.4rem !important;
  margin: 1rem 0 1.5rem !important;
  overflow: hidden !important;
}

.lifecycle-tab-btn {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 0.55rem 0.5rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0.35rem !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.tab-label-short {
  display: none !important;
}
.tab-label-full {
  display: inline !important;
}

@media (max-width: 768px) {
  .deal-lifecycle-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
    padding: 0.35rem !important;
    border-radius: 10px !important;
  }
  .tab-label-full {
    display: none !important;
  }
  .tab-label-short {
    display: inline !important;
  }
  .lifecycle-tab-btn {
    padding: 0.45rem 0.35rem !important;
    font-size: 0.76rem !important;
    border-radius: 6px !important;
  }
}

/* Grab Deal Full Text - Never Truncated with Ellipsis */
.deal-actions .btn-grab-deal,
.btn-grab-deal {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.45rem 0.35rem !important;
  min-height: 38px !important;
  gap: 0.3rem !important;
  text-decoration: none !important;
}

.deal-actions .btn-grab-deal span,
.btn-grab-deal span {
  display: inline-block !important;
  font-size: 0.74rem !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: 0 !important;
}

@media (max-width: 480px) {
  .deal-actions .btn-grab-deal,
  .btn-grab-deal {
    padding: 0.4rem 0.25rem !important;
    min-height: 36px !important;
  }
  .deal-actions .btn-grab-deal span,
  .btn-grab-deal span {
    font-size: 0.72rem !important;
  }
}


/* ==========================================================================
   Comprehensive Header & Mobile Restructuring
   - Member Login button removed
   - Desktop (>=769px): [ ☰ CATEGORIES ] in sub-nav left of Live Deals
   - Mobile (<=768px): Strictly ONE menu button [ ☰ ] left of Dealzy.in logo
   - Mobile: Hide search category dropdown and sub-nav CATEGORIES button
   - Live Deals: Pure static red color (no highlight, no blinking background)
   - Deal Lifecycle Bar: Strictly bounded within container
   - Grab Deal Button: Full unclipped text (Grab Deal on Amazon/Flipkart)
   - Sentiment voting thumbs: Compact height to save mobile space
   - Product Hero Buy Button: Full width containment
   ========================================================================== */

/* Member Login Button Removal (Not Yet Configured) */
#btn-user-profile-header,
.btn-user-profile-header {
  display: none !important;
}

/* Secondary Nav Bar: Categories Toggle Button (Desktop & Browser) */
.cat-menu-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  background: var(--primary, #0284c7) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  letter-spacing: 0.5px !important;
  flex-shrink: 0 !important;
  margin-right: 0.5rem !important;
  transition: all 0.2s ease !important;
}

.cat-menu-toggle-btn:hover {
  background: #0369a1 !important;
  transform: translateY(-1px) !important;
}

/* On Desktop (>= 769px): Hide Top Left Header Burger (Desktop has Categories in Sub-nav) */
@media (min-width: 769px) {
  .header-burger-btn {
    display: none !important;
  }
  .cat-menu-toggle-btn {
    display: inline-flex !important;
  }
  .cat-select-dropdown {
    display: block !important;
  }
}

/* On Mobile (<= 768px): Strictly Exactly ONE Menu Button (Left of Dealzy) */
@media (max-width: 768px) {
  .site-top-bar {
    padding: 0.15rem 0.5rem !important;
    font-size: 0.7rem !important;
  }
  .top-bar-container {
    padding: 0 0.5rem !important;
    max-width: 100% !important;
  }
  .top-bar-left span {
    font-size: 0.68rem !important;
  }
  .theme-toggle-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    border-radius: 5px !important;
  }

  .header-main-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  /* Single burger button strictly to the left of Dealzy.in logo */
  .header-burger-btn {
    display: inline-flex !important;
    order: 1 !important;
    margin-right: 0.5rem !important;
  }

  .brand-logo {
    order: 2 !important;
  }

  .header-search-with-cat {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0.4rem !important;
  }

  /* Hide duplicate "All Categories" dropdown from the mobile search bar */
  .cat-select-dropdown,
  .header-search-with-cat .cat-select-dropdown {
    display: none !important;
  }

  /* Make search input take full width cleanly inside the search bar */
  .cat-search-input {
    width: 100% !important;
    border-radius: 8px !important;
  }

  /* Hide sub-nav CATEGORIES button on mobile so sub-nav starts cleanly with Live Deals */
  .cat-menu-toggle-btn {
    display: none !important;
  }

  /* Hide any legacy redundant right burger menu */
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Live Deals: Pure Static Red Color Only (No Highlight / No Blinking Background) */
@keyframes live-deals-flash {
  /* Disabled - pure static red color */
}

.nav-link-live,
.nav-link-live-flash,
.nav-links-row a.nav-link-live,
.nav-links-row a.nav-link-live-flash {
  color: #ef4444 !important;
  font-weight: 800 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  animation: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  padding: 0.4rem 0.6rem !important;
}

.nav-link-live i,
.nav-link-live-flash i,
.nav-links-row a.nav-link-live i,
.nav-links-row a.nav-link-live-flash i {
  color: #ef4444 !important;
}

.nav-link-live:hover,
.nav-link-live-flash:hover {
  color: #dc2626 !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

/* Hide or remove any pulsing red badge */
.badge-flash-hot {
  display: none !important;
}

/* Deal Lifecycle Bar: Strict Container Box Boundary */
.deal-lifecycle-bar {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px !important;
  padding: 0.4rem !important;
  margin: 1rem 0 1.5rem !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .deal-lifecycle-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
    padding: 0.35rem !important;
    border-radius: 10px !important;
  }
}

.lifecycle-tab-btn {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 0.5rem 0.35rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0.35rem !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

/* Grab Deal Button: Full Unclipped Text & Compact Thumbs Up/Down */
.deal-actions .btn-grab-deal,
.btn-grab-deal {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.45rem 0.35rem !important;
  min-height: 38px !important;
  gap: 0.3rem !important;
  text-decoration: none !important;
}

.deal-actions .btn-grab-deal span,
.btn-grab-deal span {
  display: inline-block !important;
  font-size: 0.72rem !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: 0 !important;
}

.deal-sentiment-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.35rem !important;
  background: var(--bg-surface, #f8fafc) !important;
  border: 1px solid var(--border-subtle, #e2e8f0) !important;
  border-radius: 6px !important;
  padding: 0.12rem 0.25rem !important;
  margin: 0.25rem 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 24px !important;
}

.btn-vote-thumb {
  flex: 1 1 0px !important;
  min-width: 0 !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  font-size: 0.72rem !important;
  cursor: pointer !important;
  padding: 0 !important;
}

/* Product Page Hero Buy Button Integrity */
.btn-hero-buy,
#hero-buy-btn {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}


/* ==========================================================================
   Comprehensive Header & Mobile Restructuring
   - Member Login button removed
   - Desktop (>=769px): [ ☰ CATEGORIES ] in sub-nav left of Live Deals
   - Mobile (<=768px): Strictly ONE menu button [ ☰ ] left of Dealzy.in logo
   - Mobile: Hide search category dropdown and sub-nav CATEGORIES button
   - Live Deals: Pure static red color (no highlight, no blinking background)
   - Deal Lifecycle Bar: Strictly bounded within container
   - Grab Deal Button: Full unclipped text (Grab Deal on Amazon/Flipkart)
   - Sentiment voting thumbs: Compact height to save mobile space
   - Product Hero Buy Button: Full width containment
   ========================================================================== */

/* Member Login Button Removal (Not Yet Configured) */
#btn-user-profile-header,
.btn-user-profile-header {
  display: none !important;
}

/* Secondary Nav Bar: Categories Toggle Button (Desktop & Browser) */
.cat-menu-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  background: var(--primary, #0284c7) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  letter-spacing: 0.5px !important;
  flex-shrink: 0 !important;
  margin-right: 0.5rem !important;
  transition: all 0.2s ease !important;
}

.cat-menu-toggle-btn:hover {
  background: #0369a1 !important;
  transform: translateY(-1px) !important;
}

/* On Desktop (>= 769px): Hide Top Left Header Burger (Desktop has Categories in Sub-nav) */
@media (min-width: 769px) {
  .header-burger-btn {
    display: none !important;
  }
  .cat-menu-toggle-btn {
    display: inline-flex !important;
  }
  .cat-select-dropdown {
    display: block !important;
  }
}

/* On Mobile (<= 768px): Strictly Exactly ONE Menu Button (Left of Dealzy) */
@media (max-width: 768px) {
  .site-top-bar {
    padding: 0.15rem 0.5rem !important;
    font-size: 0.7rem !important;
  }
  .top-bar-container {
    padding: 0 0.5rem !important;
    max-width: 100% !important;
  }
  .top-bar-left span {
    font-size: 0.68rem !important;
  }
  .theme-toggle-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    border-radius: 5px !important;
  }

  .header-main-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  /* Single burger button strictly to the left of Dealzy.in logo */
  .header-burger-btn {
    display: inline-flex !important;
    order: 1 !important;
    margin-right: 0.5rem !important;
  }

  .brand-logo {
    order: 2 !important;
  }

  .header-search-with-cat {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0.4rem !important;
  }

  /* Hide duplicate "All Categories" dropdown from the mobile search bar */
  .cat-select-dropdown,
  .header-search-with-cat .cat-select-dropdown {
    display: none !important;
  }

  /* Make search input take full width cleanly inside the search bar */
  .cat-search-input {
    width: 100% !important;
    border-radius: 8px !important;
  }

  /* Hide sub-nav CATEGORIES button on mobile so sub-nav starts cleanly with Live Deals */
  .cat-menu-toggle-btn {
    display: none !important;
  }

  /* Hide any legacy redundant right burger menu */
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Live Deals: Pure Static Red Color Only (No Highlight / No Blinking Background) */
@keyframes live-deals-flash {
  /* Disabled - pure static red color */
}

.nav-link-live,
.nav-link-live-flash,
.nav-links-row a.nav-link-live,
.nav-links-row a.nav-link-live-flash {
  color: #ef4444 !important;
  font-weight: 800 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  animation: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  padding: 0.4rem 0.6rem !important;
}

.nav-link-live i,
.nav-link-live-flash i,
.nav-links-row a.nav-link-live i,
.nav-links-row a.nav-link-live-flash i {
  color: #ef4444 !important;
}

.nav-link-live:hover,
.nav-link-live-flash:hover {
  color: #dc2626 !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

/* Hide or remove any pulsing red badge */
.badge-flash-hot {
  display: none !important;
}

/* Deal Lifecycle Bar: Strict Container Box Boundary */
.deal-lifecycle-bar {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px !important;
  padding: 0.4rem !important;
  margin: 1rem 0 1.5rem !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .deal-lifecycle-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
    padding: 0.35rem !important;
    border-radius: 10px !important;
  }
}

.lifecycle-tab-btn {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 0.5rem 0.35rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0.35rem !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

/* Grab Deal Button: Full Unclipped Text & Compact Thumbs Up/Down */
.deal-actions .btn-grab-deal,
.btn-grab-deal {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.45rem 0.35rem !important;
  min-height: 38px !important;
  gap: 0.3rem !important;
  text-decoration: none !important;
}

.deal-actions .btn-grab-deal span,
.btn-grab-deal span {
  display: inline-block !important;
  font-size: 0.72rem !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: 0 !important;
}

.deal-sentiment-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.35rem !important;
  background: var(--bg-surface, #f8fafc) !important;
  border: 1px solid var(--border-subtle, #e2e8f0) !important;
  border-radius: 6px !important;
  padding: 0.12rem 0.25rem !important;
  margin: 0.25rem 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 24px !important;
}

.btn-vote-thumb {
  flex: 1 1 0px !important;
  min-width: 0 !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  font-size: 0.72rem !important;
  cursor: pointer !important;
  padding: 0 !important;
}

/* Product Page Hero Buy Button Integrity */
.btn-hero-buy,
#hero-buy-btn {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

/* Completely Remove Live Price Drop Tracker from Top Bar */
.top-bar-left span {
  display: none !important;
}

/* Ensure Social Alert Links Display Cleanly on All Viewports */
@media (max-width: 640px) {
  .top-bar-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
  }
  .top-bar-left .top-bar-link {
    display: inline-flex !important;
    font-size: 0.68rem !important;
    padding: 0.15rem 0.35rem !important;
    height: 24px !important;
    line-height: 1 !important;
    gap: 0.25rem !important;
  }
}


/* ==========================================================================
   Comprehensive Header & Mobile Restructuring
   - Member Login button removed
   - Desktop (>=769px): [ ☰ CATEGORIES ] in sub-nav left of Live Deals
   - Mobile (<=768px): Strictly ONE menu button [ ☰ ] left of Dealzy.in logo
   - Mobile: Hide search category dropdown and sub-nav CATEGORIES button
   - Live Deals: Pure static red color (no highlight, no blinking background)
   - Deal Lifecycle Bar: Strictly bounded within container
   - Grab Deal Button: Full unclipped text (Grab Deal on Amazon/Flipkart)
   - Sentiment voting thumbs: Compact height to save mobile space
   - Product Hero Buy Button: Full width containment
   ========================================================================== */

/* Member Login Button Removal (Not Yet Configured) */
#btn-user-profile-header,
.btn-user-profile-header {
  display: none !important;
}

/* Secondary Nav Bar: Categories Toggle Button (Desktop & Browser) */
.cat-menu-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  background: var(--primary, #0284c7) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  letter-spacing: 0.5px !important;
  flex-shrink: 0 !important;
  margin-right: 0.5rem !important;
  transition: all 0.2s ease !important;
}

.cat-menu-toggle-btn:hover {
  background: #0369a1 !important;
  transform: translateY(-1px) !important;
}

/* On Desktop (>= 769px): Hide Top Left Header Burger (Desktop has Categories in Sub-nav) */
@media (min-width: 769px) {
  .header-burger-btn {
    display: none !important;
  }
  .cat-menu-toggle-btn {
    display: inline-flex !important;
  }
  .cat-select-dropdown {
    display: block !important;
  }
}

/* On Mobile (<= 768px): Strictly Exactly ONE Menu Button (Left of Dealzy) */
@media (max-width: 768px) {
  .site-top-bar {
    padding: 0.15rem 0.5rem !important;
    font-size: 0.7rem !important;
  }
  .top-bar-container {
    padding: 0 0.5rem !important;
    max-width: 100% !important;
  }
  .top-bar-left span {
    font-size: 0.68rem !important;
  }
  .theme-toggle-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    border-radius: 5px !important;
  }

  .header-main-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  /* Single burger button strictly to the left of Dealzy.in logo */
  .header-burger-btn {
    display: inline-flex !important;
    order: 1 !important;
    margin-right: 0.5rem !important;
  }

  .brand-logo {
    order: 2 !important;
  }

  .header-search-with-cat {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0.4rem !important;
  }

  /* Hide duplicate "All Categories" dropdown from the mobile search bar */
  .cat-select-dropdown,
  .header-search-with-cat .cat-select-dropdown {
    display: none !important;
  }

  /* Make search input take full width cleanly inside the search bar */
  .cat-search-input {
    width: 100% !important;
    border-radius: 8px !important;
  }

  /* Hide sub-nav CATEGORIES button on mobile so sub-nav starts cleanly with Live Deals */
  .cat-menu-toggle-btn {
    display: none !important;
  }

  /* Hide any legacy redundant right burger menu */
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Live Deals: Pure Static Red Color Only (No Highlight / No Blinking Background) */
@keyframes live-deals-flash {
  /* Disabled - pure static red color */
}

.nav-link-live,
.nav-link-live-flash,
.nav-links-row a.nav-link-live,
.nav-links-row a.nav-link-live-flash {
  color: #ef4444 !important;
  font-weight: 800 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  animation: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  padding: 0.4rem 0.6rem !important;
}

.nav-link-live i,
.nav-link-live-flash i,
.nav-links-row a.nav-link-live i,
.nav-links-row a.nav-link-live-flash i {
  color: #ef4444 !important;
}

.nav-link-live:hover,
.nav-link-live-flash:hover {
  color: #dc2626 !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

/* Hide or remove any pulsing red badge */
.badge-flash-hot {
  display: none !important;
}

/* Deal Lifecycle Bar: Strict Container Box Boundary */
.deal-lifecycle-bar {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px !important;
  padding: 0.4rem !important;
  margin: 1rem 0 1.5rem !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .deal-lifecycle-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
    padding: 0.35rem !important;
    border-radius: 10px !important;
  }
}

.lifecycle-tab-btn {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 0.5rem 0.35rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0.35rem !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

/* Grab Deal Button: Full Unclipped Text & Compact Thumbs Up/Down */
.deal-actions .btn-grab-deal,
.btn-grab-deal {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.45rem 0.35rem !important;
  min-height: 38px !important;
  gap: 0.3rem !important;
  text-decoration: none !important;
}

.deal-actions .btn-grab-deal span,
.btn-grab-deal span {
  display: inline-block !important;
  font-size: 0.72rem !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: 0 !important;
}

.deal-sentiment-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.35rem !important;
  background: var(--bg-surface, #f8fafc) !important;
  border: 1px solid var(--border-subtle, #e2e8f0) !important;
  border-radius: 6px !important;
  padding: 0.12rem 0.25rem !important;
  margin: 0.25rem 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 24px !important;
}

.btn-vote-thumb {
  flex: 1 1 0px !important;
  min-width: 0 !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  font-size: 0.72rem !important;
  cursor: pointer !important;
  padding: 0 !important;
}

/* Product Page Hero Buy Button Integrity */
.btn-hero-buy,
#hero-buy-btn {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}


/* ======================================================================
   MOBILE 4-ITEM VIEWPORT DENSITY RULE (MAX-WIDTH: 768px)
   Accommodates 4 products/bank cards per viewport in a compact 2x2 grid.
   ====================================================================== */
@media (max-width: 768px) {
  /* 1. Comparison & Catalog Products Grid: 2-column density */
  .products-grid,
  #catalog-products-grid,
  .home-products-grid,
  #home-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }

  .product-card,
  .home-prod-card {
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Clamped image thumbnail wrapper */
  .product-card > div:first-child,
  .home-prod-card > a:first-child {
    height: 115px !important;
    min-height: 115px !important;
    max-height: 115px !important;
    padding: 0.4rem !important;
    padding-top: 0 !important;
    position: relative !important;
  }

  .product-card img,
  .home-prod-card img {
    max-height: 105px !important;
    padding: 0.25rem !important;
    object-fit: contain !important;
  }

  .product-card span[style*="border-radius: 9999px"],
  .home-prod-card span[style*="border-radius: 4px"] {
    font-size: 0.58rem !important;
    padding: 0.1rem 0.35rem !important;
  }

  .product-card > div:last-child,
  .home-prod-card > div:last-child {
    padding: 0.5rem !important;
  }

  .product-card > div:last-child > span:first-child,
  .home-prod-card span[style*="color: #38bdf8"] {
    font-size: 0.65rem !important;
    margin-bottom: 0.15rem !important;
  }

  .product-card h3,
  .home-prod-card h4,
  .home-prod-card a[style*="font-size: 0.88rem"] {
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
    margin: 0.2rem 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: 2.5em !important;
  }

  /* Compact pricing */
  .product-card span[style*="font-size: 1.15rem"],
  .home-prod-card span[style*="font-size: 1.05rem"] {
    font-size: 0.88rem !important;
  }

  /* Action Buttons */
  .product-card a[style*="border-radius: 8px"],
  .home-prod-card a[style*="border-radius: 6px"] {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.7rem !important;
  }

  /* 2. Bank Cards: 2-column compact grid */
  .cards-grid,
  #cards-grid-container,
  .bank-cards-grid,
  div[style*="minmax(300px, 1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    padding: 0.75rem 0 !important;
  }

  .bank-card-item {
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .bank-card-art-box {
    padding: 0.5rem !important;
  }

  .virtual-card-canvas {
    height: 90px !important;
    border-radius: 8px !important;
    padding: 0.4rem !important;
  }

  .virtual-card-top-row,
  .virtual-card-bottom-row {
    padding: 0 !important;
  }

  .virtual-card-digits {
    font-size: 0.58rem !important;
  }

  .bank-card-art-img {
    max-height: 26px !important;
  }

  .bank-card-perk-ribbon {
    font-size: 0.55rem !important;
    padding: 0.15rem 0.4rem !important;
  }

  .bank-card-body {
    padding: 0.5rem !important;
  }

  .bank-issuer-row {
    margin-bottom: 0.25rem !important;
  }

  .bank-name-badge,
  .card-category-badge {
    font-size: 0.58rem !important;
    padding: 0.1rem 0.3rem !important;
  }

  .bank-card-name {
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.2rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .bank-card-tagline {
    display: none !important;
  }

  .bank-card-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.25rem !important;
    padding: 0.3rem !important;
    margin-bottom: 0.4rem !important;
  }

  .metric-col-label {
    font-size: 0.55rem !important;
  }

  .metric-col-val {
    font-size: 0.68rem !important;
  }

  .bank-card-perks-list {
    margin-bottom: 0.4rem !important;
  }

  .bank-card-perks-list li {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.15rem !important;
  }

  .bank-card-perks-list li:nth-child(n+2) {
    display: none !important;
  }

  .bank-card-actions {
    gap: 0.25rem !important;
    margin-top: 0.4rem !important;
  }

  .btn-apply-card {
    font-size: 0.68rem !important;
    padding: 0.35rem 0.45rem !important;
  }

  .btn-card-details-trigger {
    font-size: 0.6rem !important;
    padding: 0.25rem 0.35rem !important;
  }

  /* Mobile-Only Hide for Homepage Featured Credit Cards Showcase */
  #featured-cc-section,
  .featured-cc-section {
    display: none !important;
  }

  /* Mobile Viewport Absolute Fit & Zero Spill Protection */
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
  }

  .site-top-bar {
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .top-bar-container {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .top-bar-left {
    max-width: calc(100% - 32px) !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .top-bar-left::-webkit-scrollbar {
    display: none !important;
  }

  .header-nav-bar {
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .nav-bar-container {
    max-width: 100% !important;
    overflow: hidden !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .nav-links-row {
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .nav-links-row::-webkit-scrollbar {
    display: none !important;
  }

  .ticker-wrap,
  .deals-ticker {
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  /* Compare Products Mobile Price & Typography Scale Harmony */
  .prod-price-row {
    display: flex !important;
    align-items: baseline !important;
    gap: 0.25rem !important;
    margin-bottom: 0.35rem !important;
    flex-wrap: wrap !important;
  }

  .prod-price-val,
  .product-card span[style*="font-size: 1.25rem"],
  .product-card span[style*="font-size: 1.15rem"],
  .home-prod-card span[style*="font-size: 1.15rem"],
  .home-prod-card span[style*="font-size: 1.05rem"] {
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .prod-mrp-val,
  .product-card span[style*="font-size: 0.85rem"][style*="line-through"],
  .home-prod-card span[style*="font-size: 0.8rem"][style*="line-through"] {
    font-size: 0.68rem !important;
    white-space: nowrap !important;
  }

  .prod-discount-val,
  .product-card span[style*="font-size: 0.75rem"][style*="color: #ef4444"] {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .product-card div[style*="grid-template-columns: 1fr 1fr"] a,
  .product-card .compare-btn-grid a {
    font-size: 0.68rem !important;
    padding: 0.4rem 0.2rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .product-card div[style*="font-size: 0.75rem"],
  .home-prod-card div[style*="font-size: 0.74rem"] {
    font-size: 0.68rem !important;
  }

}
