/**
 * JoDeals Premium Redesign CSS
 * Global overrides and enhancements for all customer-facing pages.
 * Applied after all other stylesheets for highest specificity.
 */

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════ */

:root {
  --brand-500: #ff3b30;
  --brand-600: #e0241b;
  --brand-glow: rgba(255, 59, 48, 0.15);
  --amber-500: #ff9f0a;
  --emerald-500: #10b981;

  --radius-card: 20px;
  --radius-card-lg: 24px;
  --radius-pill: 9999px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-card:  0 4px 20px -2px rgba(0,0,0,0.06), 0 2px 8px -2px rgba(0,0,0,0.03);
  --shadow-card-hover: 0 20px 40px -12px rgba(0,0,0,0.10), 0 8px 24px -8px rgba(255,59,48,0.08);
  --shadow-premium: 0 8px 32px -8px rgba(0,0,0,0.08), 0 2px 8px -2px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 32px rgba(255,59,48,0.12);

  --transition-fast:  all 0.15s ease;
  --transition-base:  all 0.25s ease;
  --transition-slow:  all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-spring: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════════
   BASE REFINEMENTS
   ═══════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Cairo', system-ui, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
}

.dark body,
body.dark {
  background-color: #020617;
  color: #f1f5f9;
}

/* Smooth scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }
.dark ::-webkit-scrollbar-thumb { background: #1e293b; }
.dark ::-webkit-scrollbar-thumb:hover { background: #334155; }

/* Selection */
::selection {
  background: rgba(255, 59, 48, 0.15);
  color: #0f172a;
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR / HEADER OVERRIDES
   ═══════════════════════════════════════════════════════════════ */

#main-header {
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.dark #main-header {
  background: rgba(2,6,23,0.92);
  border-bottom-color: rgba(30,41,59,0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
}

#main-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Scroll progress bar — JS uses scaleX() transform, not width */
#scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff3b30 0%, #ff6530 50%, #ff9f0a 100%);
  z-index: 99999;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.12s linear;
  border-radius: 0 2px 2px 0;
}


/* Logo hover */
#main-header a img {
  transition: opacity 0.2s ease;
}
#main-header a:hover img {
  opacity: 0.9;
}

/* ─── Mobile header bar ─── */
.mob-header-row {
  background: rgba(255,255,255,0.94) !important;
  backdrop-filter: blur(16px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.6) !important;
  border-bottom: 1px solid rgba(226,232,240,0.5) !important;
}

.dark .mob-header-row {
  background: rgba(2,6,23,0.94) !important;
  border-bottom-color: rgba(30,41,59,0.7) !important;
}

/* ─── Mobile bottom navigation redesign ─── */
.mobile-bottom-nav-container {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 50 !important;
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(20px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
  border-top: 1px solid rgba(226,232,240,0.5) !important;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.06) !important;
}

.dark .mobile-bottom-nav-container {
  background: rgba(2,6,23,0.95) !important;
  border-top-color: rgba(30,41,59,0.8) !important;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

.hero-section {
  background: linear-gradient(175deg, #0a0f1e 0%, #0f172a 40%, #0a0f1e 100%) !important;
}

.hero-headline {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.08 !important;
}

.hero-headline-accent {
  background: linear-gradient(135deg, #ff4d4d 0%, #ff9f0a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero stats bar */
.hero-stats-bar {
  border-radius: 20px !important;
  padding: 18px 24px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* ─── Desktop hero slider ─── */
.desktop-hero-slider {
  border-radius: var(--radius-card-lg) !important;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.4),
    0 8px 24px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  overflow: hidden !important;
}

.desktop-hero-slider .dh-slide img {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.desktop-hero-slider .dh-slide:hover img {
  transform: scale(1.03) !important;
}

/* Fallback slides */
.dh-fallback-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  z-index: 2;
}

.dh-slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(8px);
}

.dh-slide-title {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.dh-slide-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
  max-width: 480px;
}

.dh-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #ff4d4d 0%, #ff9f0a 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 12px;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255,77,77,0.35);
}

.dh-slide-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,77,77,0.45);
}

/* Nav arrows */
.dh-nav-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  backdrop-filter: blur(12px) !important;
  color: #fff !important;
  transition: all 0.2s ease !important;
}

.dh-nav-btn:hover {
  background: rgba(255,59,48,0.6) !important;
  border-color: rgba(255,59,48,0.4) !important;
  transform: scale(1.05) !important;
}

/* Dot indicators */
.dh-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.35) !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.dh-dot.active {
  width: 24px !important;
  background: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════
   DEAL CARD SYSTEM
   ═══════════════════════════════════════════════════════════════ */

/* ─── Shared card base ─── */
.deal-card,
.jd-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(226,232,240,0.8);
  box-shadow: var(--shadow-card);
  transition: var(--transition-spring);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.dark .deal-card,
.dark .jd-card {
  background: #1e293b;
  border-color: rgba(51,65,85,0.6);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.deal-card:hover,
.jd-card:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255,59,48,0.15);
}

.dark .deal-card:hover,
.dark .jd-card:hover {
  box-shadow: 0 20px 48px -12px rgba(0,0,0,0.45);
  border-color: rgba(255,59,48,0.2);
}

/* Image zoom on hover */
.deal-card .zoom-image-container img,
.jd-card__img-wrap img {
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.deal-card:hover .zoom-image-container img,
.jd-card:hover .jd-card__img-wrap img {
  transform: scale(1.07) !important;
}

/* ─── Discount badge ─── */
.deal-card-discount-badge,
.jd-card__badge {
  background: linear-gradient(135deg, #ff3b30 0%, #ff6530 100%) !important;
  color: #fff !important;
  font-weight: 900 !important;
  padding: 5px 13px !important;
  border-radius: 10px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 4px 12px rgba(255,59,48,0.35) !important;
}

.dark .jd-card__badge {
  box-shadow: 0 4px 12px rgba(255,59,48,0.2) !important;
}

/* ─── Ending soon badge ─── */
.jd-card__ending {
  background: rgba(245,158,11,0.1) !important;
  color: #d97706 !important;
  border: 1px solid rgba(245,158,11,0.25) !important;
  border-radius: 9999px !important;
  padding: 4px 11px !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
}

.dark .jd-card__ending {
  background: rgba(245,158,11,0.08) !important;
  color: #fbbf24 !important;
  border-color: rgba(245,158,11,0.2) !important;
}

/* ─── Favorite floating button ─── */
.jd-card__fav-floating,
.floating-fav-btn {
  position: absolute !important;
  z-index: 10 !important;
  top: 12px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12) !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  cursor: pointer !important;
}

html[dir="ltr"] .jd-card__fav-floating { right: 12px !important; }
html[dir="rtl"] .jd-card__fav-floating { left: 12px !important; }

.jd-card__fav-floating:hover,
.floating-fav-btn:hover {
  background: rgba(255,255,255,1) !important;
  transform: scale(1.12) !important;
  box-shadow: 0 4px 16px rgba(255,59,48,0.2) !important;
}

.jd-card__fav-floating:active,
.floating-fav-btn:active {
  transform: scale(0.88) !important;
}

.dark .jd-card__fav-floating,
.dark .floating-fav-btn {
  background: rgba(15,23,42,0.88) !important;
  border-color: rgba(51,65,85,0.6) !important;
}

/* ─── Card body ─── */
.jd-card__body {
  padding: 14px 16px 16px !important;
  background: #fff !important;
}

.dark .jd-card__body {
  background: #1e293b !important;
}

.jd-card__store {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.jd-card__logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(226,232,240,0.7);
}

.dark .jd-card__logo {
  border-color: rgba(51,65,85,0.6);
}

.jd-card__logo-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff3b30, #ff9f0a);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jd-card__store-name {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 40px);
}

.dark .jd-card__store-name {
  color: #94a3b8;
}

.jd-card__title {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.dark .jd-card__title {
  color: #f1f5f9;
}

.jd-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.jd-card__title a:hover {
  color: #ff3b30;
}

.jd-card__meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(226,232,240,0.7);
}

.dark .jd-card__meta-bottom {
  border-top-color: rgba(51,65,85,0.4);
}

.jd-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.jd-card__price-now {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ff3b30;
  line-height: 1;
}

.dark .jd-card__price-now {
  color: #f87171;
}

.jd-card__price-now small {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  margin-left: 1px;
}

.jd-card__price-was {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
}

.jd-card__price-text {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ff3b30;
}

.jd-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
}

.jd-card__location i {
  color: #ff3b30;
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* Image wrap */
.jd-card__img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #f1f5f9;
}

.dark .jd-card__img-wrap {
  background: #0f172a;
}

.jd-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── CTA Button ─── */
.deal-card-cta {
  background: linear-gradient(135deg, #ff3b30 0%, #ff5733 100%) !important;
  color: #fff !important;
  font-weight: 900 !important;
  padding: 9px 16px !important;
  border-radius: 12px !important;
  font-size: 0.75rem !important;
  box-shadow: 0 4px 14px rgba(255,59,48,0.25) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.deal-card-cta:hover {
  background: linear-gradient(135deg, #e0241b 0%, #e84326 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(255,59,48,0.35) !important;
}

.deal-card-cta:active {
  transform: scale(0.96) !important;
}

/* ─── Countdown timer ─── */
.deal-card-timer,
.countdown-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Poppins', monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 4px 10px;
  border-radius: 9px;
}

/* Ending soon timer pulse */
.countdown-timer.ending-soon {
  background: rgba(255,59,48,0.75) !important;
  border-color: rgba(255,100,80,0.4) !important;
  animation: timer-pulse 1.5s ease-in-out infinite !important;
}

@keyframes timer-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY CARDS
   ═══════════════════════════════════════════════════════════════ */

.category-card {
  background: #fff;
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: 18px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.dark .category-card {
  background: #1e293b;
  border-color: rgba(51,65,85,0.6);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.category-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 36px -8px rgba(255,59,48,0.12);
  border-color: rgba(255,59,48,0.25);
  background: #fff9f9;
}

.dark .category-card:hover {
  background: #1e2a3a;
  box-shadow: 0 16px 36px -8px rgba(0,0,0,0.35);
  border-color: rgba(255,59,48,0.2);
}

.category-card.active {
  background: linear-gradient(135deg, rgba(255,59,48,0.08) 0%, rgba(255,159,10,0.06) 100%);
  border-color: rgba(255,59,48,0.35);
  box-shadow: 0 8px 24px rgba(255,59,48,0.12);
}

.dark .category-card.active {
  background: linear-gradient(135deg, rgba(255,59,48,0.12) 0%, rgba(255,159,10,0.08) 100%);
}

.category-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,59,48,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ff3b30;
  transition: all 0.3s ease;
  position: relative;
}

.dark .category-card-icon-box {
  background: rgba(255,59,48,0.1);
}

.category-card:hover .category-card-icon-box {
  background: rgba(255,59,48,0.15);
  transform: scale(1.1) rotate(-3deg);
}

.category-card.active .category-card-icon-box {
  background: linear-gradient(135deg, rgba(255,59,48,0.15), rgba(255,159,10,0.1));
  box-shadow: 0 4px 16px rgba(255,59,48,0.15);
}

.category-card-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid #fff;
}

html[dir="rtl"] .category-card-count {
  right: auto;
  left: -4px;
}

.dark .category-card-count {
  border-color: #1e293b;
}

.category-card-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  text-align: center;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.dark .category-card-label {
  color: #94a3b8;
}

.category-card:hover .category-card-label,
.category-card.active .category-card-label {
  color: #ff3b30;
}

/* ─── Category Grid ─── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .category-card {
    padding: 12px 8px;
    border-radius: 16px;
  }
  .category-card-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1rem;
  }
  .category-card-label {
    font-size: 0.7rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════════════════════════ */

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff3b30 0%, #ff6530 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(255,59,48,0.25);
}

.section-title {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.dark .section-title {
  color: #f1f5f9;
}

.section-view-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ff3b30;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(255,59,48,0.06);
  border: 1px solid rgba(255,59,48,0.12);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.section-view-all:hover {
  background: rgba(255,59,48,0.12);
  transform: translateX(2px);
}

html[dir="rtl"] .section-view-all:hover {
  transform: translateX(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH UI
   ═══════════════════════════════════════════════════════════════ */

.search-suggestions-dropdown {
  border-radius: 18px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12) !important;
  border: 1px solid rgba(226,232,240,0.6) !important;
  overflow: hidden !important;
  backdrop-filter: blur(16px) !important;
}

.dark .search-suggestions-dropdown {
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
  border-color: rgba(51,65,85,0.5) !important;
}

.suggestion-item {
  transition: background 0.15s ease !important;
  border-radius: 0 !important;
}

.suggestion-item:hover {
  background: rgba(255,59,48,0.04) !important;
}

.dark .suggestion-item:hover {
  background: rgba(255,59,48,0.06) !important;
}

.suggestion-item-highlight {
  color: #ff3b30;
  font-weight: 900;
}

/* Sort pills */
.sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255,255,255,1);
  border: 1px solid rgba(226,232,240,0.8);
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark .sort-pill {
  background: #1e293b;
  border-color: rgba(51,65,85,0.6);
  color: #94a3b8;
}

.sort-pill:hover {
  background: rgba(255,59,48,0.06);
  border-color: rgba(255,59,48,0.2);
  color: #ff3b30;
}

.sort-pill.active {
  background: linear-gradient(135deg, #ff3b30 0%, #ff6530 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,59,48,0.28);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE SEARCH OVERLAY
   ═══════════════════════════════════════════════════════════════ */

#mobile-search-overlay {
  background: rgba(2,6,23,0.7) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

#mobile-search-panel {
  border-radius: 0 0 24px 24px !important;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER REDESIGN
   ═══════════════════════════════════════════════════════════════ */

#main-footer {
  background: linear-gradient(180deg, #020617 0%, #0a0f1e 100%) !important;
  border-top: 1px solid rgba(30,41,59,0.8) !important;
}

/* Social icons */
#main-footer .fa-brands {
  transition: transform 0.2s ease;
}

#main-footer a:hover .fa-brands {
  transform: scale(1.15);
}

/* Footer links */
#main-footer .footer-link-col ul li a {
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTON SYSTEM
   ═══════════════════════════════════════════════════════════════ */

.btn-primary {
  background: linear-gradient(135deg, #ff3b30 0%, #ff6530 100%) !important;
  box-shadow: 0 4px 16px rgba(255,59,48,0.25) !important;
  border: none !important;
  transition: all 0.2s ease !important;
}

.btn-primary:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 8px 24px rgba(255,59,48,0.38) !important;
  background: linear-gradient(135deg, #e0241b 0%, #e84326 100%) !important;
}

.btn-primary:active {
  transform: scale(0.97) !important;
  box-shadow: 0 2px 8px rgba(255,59,48,0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════
   FORM INPUTS
   ═══════════════════════════════════════════════════════════════ */

.form-input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255,59,48,0.1) !important;
  border-color: rgba(255,59,48,0.5) !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE HERO SLIDER
   ═══════════════════════════════════════════════════════════════ */

.mobile-hero-slider {
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE CATEGORIES BAR
   ═══════════════════════════════════════════════════════════════ */

.mobile-categories-bar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-categories-bar::-webkit-scrollbar {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   DEAL DETAILS PAGE
   ═══════════════════════════════════════════════════════════════ */

/* Main deal image */
.deal-main-image-container {
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

/* Pricing box */
.deal-pricing-box {
  background: #fff;
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-premium);
  position: sticky;
  top: 80px;
}

.dark .deal-pricing-box {
  background: #1e293b;
  border-color: rgba(51,65,85,0.6);
}

/* Redeem button */
.deal-redeem-btn {
  background: linear-gradient(135deg, #ff3b30 0%, #ff6530 100%) !important;
  color: #fff !important;
  font-weight: 900 !important;
  border-radius: 16px !important;
  font-size: 1rem !important;
  padding: 14px 28px !important;
  width: 100% !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 8px 24px rgba(255,59,48,0.3) !important;
  border: none !important;
}

.deal-redeem-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(255,59,48,0.4) !important;
  background: linear-gradient(135deg, #e0241b 0%, #e84326 100%) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════════ */

.profile-card {
  background: #fff;
  border-radius: var(--radius-card-lg);
  border: 1px solid rgba(226,232,240,0.8);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
}

.dark .profile-card {
  background: #1e293b;
  border-color: rgba(51,65,85,0.6);
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN / REGISTER PAGES
   ═══════════════════════════════════════════════════════════════ */

.auth-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226,232,240,0.5);
  border-radius: var(--radius-card-lg);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.08),
    0 8px 24px rgba(0,0,0,0.04);
}

.dark .auth-card {
  background: rgba(15,23,42,0.9);
  border-color: rgba(51,65,85,0.5);
}

/* ═══════════════════════════════════════════════════════════════
   MERCHANT REGISTRATION PAGE
   ═══════════════════════════════════════════════════════════════ */

/* Step progress bar */
.mreg-step-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}

.mreg-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(226,232,240,0.8);
  border: 2px solid rgba(226,232,240,0.8);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.mreg-step-circle.active {
  background: linear-gradient(135deg, #ff3b30, #ff6530);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,59,48,0.3);
}

.mreg-step-circle.done {
  background: #10b981;
  border-color: transparent;
  color: #fff;
}

.mreg-step-line {
  flex: 1;
  height: 2px;
  background: rgba(226,232,240,0.8);
  border-radius: 1px;
  transition: background 0.3s ease;
}

.mreg-step-line.done {
  background: #10b981;
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════════════════ */

.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-card-lg);
  border: 1px solid rgba(226,232,240,0.7);
  box-shadow: var(--shadow-sm);
}

.dark .empty-state-container {
  background: #1e293b;
  border-color: rgba(51,65,85,0.5);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,59,48,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
  color: #ff3b30;
  box-shadow: 0 0 0 16px rgba(255,59,48,0.03);
}

/* ═══════════════════════════════════════════════════════════════
   SKELETON LOADING SCREENS
   ═══════════════════════════════════════════════════════════════ */

@keyframes shimmer-redesign {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-redesign {
  background: linear-gradient(90deg, #f1f5f9 25%, #e8edf3 50%, #f1f5f9 75%);
  background-size: 800px 100%;
  animation: shimmer-redesign 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.dark .skeleton-redesign {
  background: linear-gradient(90deg, #1e293b 25%, #273448 50%, #1e293b 75%);
  background-size: 800px 100%;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE QUICK FILTERS
   ═══════════════════════════════════════════════════════════════ */

.mobile-quick-filter-btn {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.mobile-quick-filter-btn.active {
  background: linear-gradient(135deg, #ff3b30, #ff6530) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(255,59,48,0.28) !important;
}

/* ═══════════════════════════════════════════════════════════════
   FAVORITES DRAWER
   ═══════════════════════════════════════════════════════════════ */

#favorites-drawer {
  background: #fff !important;
  border-left: 1px solid rgba(226,232,240,0.6) !important;
  box-shadow: -8px 0 48px rgba(0,0,0,0.1) !important;
}

html[dir="rtl"] #favorites-drawer {
  border-left: none !important;
  border-right: 1px solid rgba(226,232,240,0.6) !important;
  box-shadow: 8px 0 48px rgba(0,0,0,0.1) !important;
}

.dark #favorites-drawer {
  background: #1e293b !important;
  border-color: rgba(51,65,85,0.5) !important;
  box-shadow: -8px 0 48px rgba(0,0,0,0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */

#jodeals-dynamic-toast {
  border-radius: 14px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 12px 20px !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE TOGGLE
   ═══════════════════════════════════════════════════════════════ */

#dark-mode-toggle {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

#dark-mode-toggle:hover {
  transform: rotate(15deg) scale(1.05) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE TRANSITIONS
   ═══════════════════════════════════════════════════════════════ */

#app-content-wrapper {
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY & FOCUS STYLES
   ═══════════════════════════════════════════════════════════════ */

:focus-visible {
  outline: 2px solid rgba(255,59,48,0.6) !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
  outline: none;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE REFINEMENTS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .deal-card:hover,
  .jd-card:hover {
    transform: none !important;
  }

  .btn-primary:hover,
  .deal-card-cta:hover {
    transform: none !important;
  }

  .category-card:hover {
    transform: scale(1.01) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */

@media print {
  .mobile-bottom-nav-container,
  #main-header,
  #favorites-drawer,
  #dark-mode-toggle {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES (LOGIN / REGISTER) — PREMIUM ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

.auth-page {
  min-height: calc(100vh - 80px) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 59, 48, 0.03) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 159, 10, 0.03) 100%
  ) !important;
  position: relative !important;
}

/* Ambient glow behind auth card */
.auth-page::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,59,48,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(40px);
}

.auth-header {
  position: relative;
  z-index: 1;
}

.auth-card {
  position: relative !important;
  z-index: 1 !important;
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(226,232,240,0.5) !important;
  border-radius: 24px !important;
  box-shadow:
    0 32px 64px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.04) !important;
  padding: 32px 36px !important;
  transition: box-shadow 0.3s ease !important;
}

.dark .auth-card {
  background: rgba(15,23,42,0.92) !important;
  border-color: rgba(51,65,85,0.5) !important;
  box-shadow:
    0 32px 64px rgba(0,0,0,0.3),
    0 8px 24px rgba(0,0,0,0.25) !important;
}

/* Auth form inputs */
.auth-page .form-input,
.auth-page input[type="email"],
.auth-page input[type="password"],
.auth-page input[type="text"],
.auth-page .mobile-input {
  border-radius: 12px !important;
  border: 1.5px solid rgba(226,232,240,0.9) !important;
  background: #f8fafc !important;
  padding: 10px 14px !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
}

.dark .auth-page .form-input,
.dark .auth-page input[type="email"],
.dark .auth-page input[type="password"],
.dark .auth-page input[type="text"],
.dark .auth-page .mobile-input {
  background: rgba(15,23,42,0.8) !important;
  border-color: rgba(51,65,85,0.6) !important;
  color: #f1f5f9 !important;
}

.auth-page .form-input:focus,
.auth-page input:focus {
  border-color: rgba(255,59,48,0.5) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(255,59,48,0.08) !important;
}

.dark .auth-page .form-input:focus,
.dark .auth-page input:focus {
  background: #0f172a !important;
}

/* Submit button */
.auth-page .btn-primary,
.auth-page [type="submit"] {
  background: linear-gradient(135deg, #ff3b30 0%, #ff6530 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  font-size: 0.9rem !important;
  padding: 12px 24px !important;
  box-shadow: 0 6px 20px rgba(255,59,48,0.28) !important;
  transition: all 0.2s ease !important;
}

.auth-page .btn-primary:hover,
.auth-page [type="submit"]:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 10px 28px rgba(255,59,48,0.38) !important;
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH PAGE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Search results header */
.search-results-header {
  padding: 16px 0;
  border-bottom: 1px solid rgba(226,232,240,0.6);
  margin-bottom: 24px;
}

.dark .search-results-header {
  border-bottom-color: rgba(51,65,85,0.4);
}

.search-results-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.search-results-count strong {
  color: #ff3b30;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE PAGE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Profile hero banner */
.profile-hero-banner {
  background: linear-gradient(135deg, #ff3b30 0%, #ff9f0a 100%);
  border-radius: var(--radius-card-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.profile-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Profile avatar */
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.profile-avatar-letter {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Profile nav tabs */
.profile-tab-nav {
  display: flex;
  gap: 4px;
  background: rgba(241,245,249,0.8);
  padding: 4px;
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dark .profile-tab-nav {
  background: rgba(30,41,59,0.8);
}

.profile-tab-nav::-webkit-scrollbar {
  display: none;
}

.profile-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  flex-shrink: 0;
}

.dark .profile-tab-btn {
  color: #94a3b8;
}

.profile-tab-btn:hover {
  color: #ff3b30;
  background: rgba(255,59,48,0.06);
}

.profile-tab-btn.active {
  background: #fff;
  color: #ff3b30;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dark .profile-tab-btn.active {
  background: #1e293b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Profile form section card */
.profile-section-card {
  background: #fff;
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.dark .profile-section-card {
  background: #1e293b;
  border-color: rgba(51,65,85,0.6);
}

/* ═══════════════════════════════════════════════════════════════
   MERCHANT REGISTER PAGE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Merchant registration hero */
.mreg-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-card-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mreg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,59,48,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.mreg-hero-title {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.mreg-hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Benefits cards */
.mreg-benefit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.mreg-benefit-card:hover {
  background: rgba(255,59,48,0.08);
  border-color: rgba(255,59,48,0.2);
  transform: translateY(-4px);
}

.mreg-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,59,48,0.12);
  color: #ff6b6b;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

/* Form steps */
.mreg-form-step {
  background: #fff;
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.dark .mreg-form-step {
  background: #1e293b;
  border-color: rgba(51,65,85,0.6);
}

.mreg-form-step-header {
  background: linear-gradient(135deg, rgba(255,59,48,0.04), rgba(255,159,10,0.03));
  border-bottom: 1px solid rgba(226,232,240,0.7);
  padding: 20px 24px;
}

.dark .mreg-form-step-header {
  background: rgba(255,255,255,0.02);
  border-bottom-color: rgba(51,65,85,0.4);
}

.mreg-form-step-body {
  padding: 24px;
}

/* Input labels */
.mreg-form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  display: block;
  margin-bottom: 6px;
}

.dark .mreg-form-label {
  color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════
   HOT DEALS / NEW DEALS / BIG DISCOUNTS PAGE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Page hero banner for deal listing pages */
.deals-page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-card-lg);
  padding: 48px 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.deals-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(255,59,48,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.deals-page-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,59,48,0.2), rgba(255,159,10,0.15));
  border: 1px solid rgba(255,59,48,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.deals-page-hero-title {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.deals-page-hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  position: relative;
  z-index: 1;
}

/* Deals grid */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   STORE / MERCHANT PAGE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

.store-hero-card {
  background: #fff;
  border: 1px solid rgba(226,232,240,0.7);
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.dark .store-hero-card {
  background: #1e293b;
  border-color: rgba(51,65,85,0.6);
}

.store-hero-cover {
  height: 180px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  overflow: hidden;
  position: relative;
}

.store-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.store-hero-info {
  padding: 20px 24px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.store-hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  flex-shrink: 0;
  margin-top: -40px;
  position: relative;
  z-index: 1;
  background: #fff;
}

.dark .store-hero-logo {
  border-color: #1e293b;
  background: #1e293b;
}

/* Trust badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.trust-badge-verified {
  background: rgba(16,185,129,0.08);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.2);
}

.trust-badge-premium {
  background: rgba(245,158,11,0.08);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.2);
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT US / STATIC CONTENT PAGES
   ═══════════════════════════════════════════════════════════════ */

.content-page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-card-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
}

.content-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,59,48,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.content-page-prose {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.8;
  color: #334155;
}

.dark .content-page-prose {
  color: #94a3b8;
}

.content-page-prose h2 {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.dark .content-page-prose h2 {
  color: #f1f5f9;
}

.content-page-prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.dark .content-page-prose h3 {
  color: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════════════════════════════ */

#cookie-consent-banner {
  border-radius: 20px !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15) !important;
  border: 1px solid rgba(226,232,240,0.5) !important;
}

.dark #cookie-consent-banner {
  box-shadow: 0 24px 64px rgba(0,0,0,0.5) !important;
  border-color: rgba(51,65,85,0.5) !important;
}

/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER SECTION
   ═══════════════════════════════════════════════════════════════ */

.newsletter-section {
  background: linear-gradient(135deg, #ff3b30 0%, #ff6530 50%, #ff9f0a 100%);
  border-radius: var(--radius-card-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  margin: 20px auto 0;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 6px 6px 6px 16px;
}

.newsletter-input-group input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  outline: none !important;
  box-shadow: none !important;
}

.newsletter-input-group input::placeholder {
  color: rgba(255,255,255,0.65) !important;
}

.newsletter-submit-btn {
  background: #fff !important;
  color: #ff3b30 !important;
  font-weight: 800 !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
  font-size: 0.82rem !important;
  border: none !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.newsletter-submit-btn:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

/* ═══════════════════════════════════════════════════════════════
   OFFLINE PAGE
   ═══════════════════════════════════════════════════════════════ */

.offline-container {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
  padding: 0 24px;
}

.offline-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,59,48,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.5rem;
  color: #ff3b30;
  box-shadow: 0 0 0 20px rgba(255,59,48,0.03);
  animation: offline-pulse 2s ease-in-out infinite;
}

@keyframes offline-pulse {
  0%, 100% { box-shadow: 0 0 0 20px rgba(255,59,48,0.03); }
  50% { box-shadow: 0 0 0 30px rgba(255,59,48,0.01); }
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL UTILITY ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Truncate utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gradient text utility */
.gradient-text-brand {
  background: linear-gradient(135deg, #ff3b30 0%, #ff9f0a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shimmer badge/pill */
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(16,185,129,0.1);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.2);
}

.badge-hot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,59,48,0.1);
  color: #ff3b30;
  border: 1px solid rgba(255,59,48,0.2);
}

/* Pulsing dot indicator */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.5);
  animation: live-pulse 2s ease-in-out infinite;
}

.live-dot.red {
  background: #ff3b30;
  box-shadow: 0 0 0 0 rgba(255,59,48,0.5);
  animation-name: live-pulse-red;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

@keyframes live-pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(255,59,48,0); }
}

/* Divider with text */
.divider-with-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
}

.divider-with-text::before,
.divider-with-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(226,232,240,0.8);
}

.dark .divider-with-text::before,
.dark .divider-with-text::after {
  background: rgba(51,65,85,0.5);
}

/* ═══════════════════════════════════════════════════════════════
   DEAL CARDS IN SLIDERS — ENHANCED
   ═══════════════════════════════════════════════════════════════ */

/* Horizontal scroll slider container */
.deals-h-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.deals-h-slider::-webkit-scrollbar {
  display: none;
}

.deals-h-slider > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Slider arrow buttons */
.slider-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(226,232,240,0.8);
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  cursor: pointer;
}

.dark .slider-nav-btn {
  background: #1e293b;
  border-color: rgba(51,65,85,0.6);
  color: #94a3b8;
}

.slider-nav-btn:hover {
  background: #ff3b30;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,59,48,0.25);
  transform: scale(1.05);
}

.slider-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════
   RTL-SPECIFIC REFINEMENTS
   ═══════════════════════════════════════════════════════════════ */

html[dir="rtl"] .section-view-all i.fa-arrow-right {
  transform: rotate(180deg);
}

html[dir="rtl"] .jd-card__location {
  text-align: right;
}

html[dir="rtl"] .jd-card__store {
  flex-direction: row-reverse;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE REFINEMENTS — MOBILE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .deal-card:hover,
  .jd-card:hover {
    transform: none !important;
  }

  .btn-primary:hover,
  .deal-card-cta:hover {
    transform: none !important;
  }

  .category-card:hover {
    transform: scale(1.01) !important;
  }

  .auth-card {
    padding: 20px !important;
    border-radius: 20px !important;
  }

  .deals-page-hero {
    padding: 32px 24px !important;
    border-radius: 16px !important;
  }

  .mreg-hero {
    padding: 32px 20px !important;
    border-radius: 16px !important;
  }

  .section-title {
    font-size: 1.2rem !important;
  }

  .section-title-row {
    margin-bottom: 1rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TRUE MOBILE-FIRST OVERRIDES (360px - 430px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 430px) {
  /* Typography */
  h1, .page-title, .hero-headline { font-size: 22px !important; line-height: 1.2 !important; }
  h2, .section-title { font-size: 20px !important; line-height: 1.3 !important; }
  .deal-card h3, .jd-card__title { font-size: 16px !important; line-height: 1.4 !important; margin-bottom: 4px !important; }
  .jd-card__price-now { font-size: 22px !important; }
  .jd-card__price-was { font-size: 14px !important; }
  .text-secondary, .jd-card__store-name, .jd-card__location, .store-name-text { font-size: 14px !important; }
  .btn, button, .deal-card-cta { font-size: 16px !important; padding: 10px 16px !important; }
  
  /* Remove excessive labels and timestamps from Deal Cards on Mobile */
  .deal-card .text-\[10px\], .deal-card .text-\[11px\] { font-size: 14px !important; }
  .deal-card .opacity-70 { opacity: 1 !important; color: #64748b; }
  .deal-metadata-hide-mob { display: none !important; }
  
  /* Deal Card Mobile Redesign */
  .deal-card, .jd-card {
    border-radius: 16px !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
  }
  .deal-card .relative.aspect-\[4\/3\], .jd-card__img-wrap {
    height: 180px !important; /* 160-200px requirement */
    aspect-ratio: auto !important;
  }
  
  /* Modern Marketplace Badge */
  .modern-deal-badge {
    position: absolute;
    top: 12px;
    left: 12px; /* LTR */
    background: #ff3b30;
    color: white;
    font-size: 18px !important;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(255, 59, 48, 0.3);
    line-height: 1.1;
  }
  html[dir="rtl"] .modern-deal-badge {
    left: auto;
    right: 12px;
  }
  
  /* Modern Favorite Button */
  .modern-fav-btn {
    position: absolute;
    top: 12px;
    right: 12px; /* LTR */
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  html[dir="rtl"] .modern-fav-btn {
    right: auto;
    left: 12px;
  }
  .modern-fav-btn i { font-size: 20px; }
  
  /* Deal Price Hierarchy */
  .deal-card .flex.items-end.justify-between.border-t { border-top: none !important; padding-top: 4px !important; }
  .deal-price-row { display: flex; flex-direction: column; align-items: flex-start; }
  .deal-price-row .flex.items-center.gap-2 { flex-direction: row-reverse; justify-content: flex-end; width: 100%; gap: 8px !important; align-items: baseline; }
  .deal-price-now { font-size: 24px !important; font-weight: 900 !important; color: #ff3b30 !important; line-height: 1 !important; }
  .deal-price-was { font-size: 14px !important; text-decoration: line-through !important; color: #94a3b8 !important; }
  
  /* Deal Actions Row */
  .deal-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
  }
  .deal-actions-row .btn {
    flex: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 800 !important;
    border-radius: 12px;
    gap: 6px;
  }
  
  /* Horizontal Scrolling Flash Deals */
  .flash-deals-mobile-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .flash-deals-mobile-scroller::-webkit-scrollbar { display: none; }
  .flash-deals-mobile-scroller .mobile-deal-card,
  .flash-deals-mobile-scroller .deal-card {
    min-width: 280px;
    scroll-snap-align: center;
  }
  
  /* Trending Deals Mobile Feed -> Horizontal Scroller */
  .trending-deals-feed {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .trending-deals-feed::-webkit-scrollbar { display: none; }
  .trending-deals-feed .mobile-deal-card,
  .trending-deals-feed .deal-card {
    min-width: 280px;
    scroll-snap-align: center;
  }
  .trending-deals-feed .deal-card .relative.aspect-\[4\/3\] {
    height: 130px !important;
  }
  .trending-deals-feed .jd-card__title, .trending-deals-feed .deal-card h3 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
  }
  .trending-deals-feed .deal-price-now, .trending-deals-feed .jd-card__price-now {
    font-size: 18px !important;
  }
  .trending-deals-feed .deal-price-was, .trending-deals-feed .jd-card__price-was {
    font-size: 12px !important;
  }
  
  /* New Arrivals Two Column Grid */
  .new-arrivals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .new-arrivals-grid .deal-card .relative.aspect-\[4\/3\] {
    height: 130px !important;
  }
  .new-arrivals-grid .jd-card__title, .new-arrivals-grid .deal-card h3 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
  }
  .new-arrivals-grid .deal-price-now, .new-arrivals-grid .jd-card__price-now {
    font-size: 18px !important;
  }
  .new-arrivals-grid .deal-price-was, .new-arrivals-grid .jd-card__price-was {
    font-size: 12px !important;
  }
  
  /* Bottom Navigation Overrides */
  .mobile-bottom-nav-container {
    height: calc(64px + env(safe-area-inset-bottom)) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    justify-content: space-around !important;
  }
  .bottom-nav-item {
    min-width: 60px !important;
  }
  .bottom-nav-item span {
    font-size: 11px !important;
    margin-top: 4px !important;
  }
  .bottom-nav-item svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  /* Remove excessive desktop elements on mobile */
  .mobile-hide-density { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */

@media print {
  .mobile-bottom-nav-container,
  #main-header,
  #favorites-drawer,
  #dark-mode-toggle {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE LOCK (Overrides any stray .dark classes)
   ═══════════════════════════════════════════════════════════════ */
.dark, html.dark, body.dark {
  background-color: var(--bg-primary) !important;
  color: #0f172a !important;
}
.dark .jd-card,
.dark .category-card,
.dark .partner-logo-card,
.dark .deal-sidebar-card,
.dark .deal-review-card,
.dark .auth-card {
  background: var(--surface-card) !important;
  border-color: rgba(226,232,240,0.9) !important;
}
.dark .text-white {
  color: #0f172a !important;
}
.dark .bg-slate-900,
.dark .bg-slate-950,
.dark .bg-slate-800 {
  background-color: #fff !important;
}
.dark .text-slate-400,
.dark .text-slate-300 {
  color: #64748b !important;
}
.dark .border-slate-800,
.dark .border-slate-700 {
  border-color: #e2e8f0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   iOS ZOOM & VIEWPORT FIXES
   ═══════════════════════════════════════════════════════════════ */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  /* Prevent iOS zoom on input focus */
  input, select, textarea {
    font-size: 16px !important;
  }
}
body {
  -webkit-text-size-adjust: 100%;
}
button, a, .btn, .deal-card, .interactive-el {
  touch-action: manipulation; /* Prevent double-tap to zoom */
}

/* ═══════════════════════════════════════════════════════════════
   SKELETON LOADERS
   ═══════════════════════════════════════════════════════════════ */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.skeleton {
  background: #f6f7f8;
  background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 1000px 100%;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: shimmer;
  animation-timing-function: linear;
  border-radius: 4px;
}

.skeleton-image { height: 180px; width: 100%; border-radius: 16px 16px 0 0; }
.skeleton-title { height: 20px; width: 80%; margin-bottom: 8px; }
.skeleton-text { height: 14px; width: 60%; margin-bottom: 8px; }
.skeleton-badge { height: 24px; width: 50px; border-radius: 12px; }
.skeleton-price { height: 24px; width: 40%; }
.skeleton-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}
.skeleton-content { padding: 12px; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE ANIMATIONS & UX
   ═══════════════════════════════════════════════════════════════ */
.fade-in {
  animation: fadeIn 0.4s ease-in-out forwards;
}

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

.interactive-el:active, .btn:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* Pull to refresh spinner */
.ptr-spinner {
  text-align: center;
  padding: 15px;
  color: var(--primary);
  font-size: 24px;
  display: none;
  transition: all 0.3s ease;
}
.ptr-refreshing .ptr-spinner {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; opacity: 1; transform: none; }
  .skeleton { animation: none; background: #edeef1; }
  .interactive-el:active, .btn:active { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE HEADER REDESIGN STYLES (Inspired by Noon Mobile)
   ═══════════════════════════════════════════════════════════════ */
.mobile-header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 50;
  transition: transform 250ms ease-in-out, box-shadow 250ms ease-in-out, background-color 250ms ease-in-out;
  box-shadow: none;
}

/* Elevate with shadow when scrolled */
.mobile-header-sticky.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.dark .mobile-header-sticky {
  background-color: #020617;
}

.dark .mobile-header-sticky.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Header buttons touch targets and ripple animations */
.mobile-header-btn {
  position: relative;
  overflow: hidden;
  transition: all 200ms ease-in-out;
  -webkit-tap-highlight-color: transparent;
}

.mobile-header-btn:active {
  transform: scale(0.92);
  background-color: rgba(0, 0, 0, 0.05);
}

.dark .mobile-header-btn:active {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Search input active/press micro-animations */
.mobile-header-search-box {
  transition: all 200ms ease-in-out;
  -webkit-tap-highlight-color: transparent;
}

.mobile-header-search-box:active {
  transform: scale(0.98);
  background-color: #e5e5e5;
}

.dark .mobile-header-search-box:active {
  background-color: #1e293b;
}

/* Notification badge pop animation */
@keyframes badge-pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

#mobile-notif-badge-count {
  animation: badge-pop 300ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ═══════════════════════════════════════════════════════════════
   DEALS LISTING & PREMIUM CARDS ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Card micro-animations & shadow transitions */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* RTL layout select box dropdown chevron alignment */
[dir="rtl"] select {
  background-position: left 0.75rem center;
}

/* Touch targets hardening for mobile listing interactions */
@media (max-width: 640px) {
  .deal-card button, 
  .deal-card a,
  select {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}


