/* ========================================================
   خصمجي (Khasmji) - Light Premium Theme
   Fresh, Vibrant, 3D Effects, Modern Design
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

/* ========================
   CSS Variables
   ======================== */
:root {
  /* Background */
  --bg-body: #F5F7FF;
  --bg-hero: linear-gradient(135deg, #EEF2FF 0%, #FDF2F8 40%, #FFF7ED 70%, #ECFDF5 100%);
  --bg-white: #FFFFFF;
  --bg-soft: #F0F3FF;
  --bg-softer: #F8FAFF;

  /* Primary Palette */
  --primary: #6366F1;
  --primary-light: #818CF8;
  --primary-lighter: #C7D2FE;
  --primary-dark: #4F46E5;
  --primary-bg: rgba(99, 102, 241, 0.06);
  --primary-gradient: linear-gradient(135deg, #6366F1, #8B5CF6);
  --primary-gradient-soft: linear-gradient(135deg, #EEF2FF, #F5F3FF);

  /* Accent Colors */
  --coral: #F43F5E;
  --coral-light: #FDA4AF;
  --amber: #F59E0B;
  --amber-light: #FDE68A;
  --emerald: #10B981;
  --emerald-light: #6EE7B7;
  --sky: #0EA5E9;
  --sky-light: #7DD3FC;

  /* Hot Deals */
  --hot-gradient: linear-gradient(135deg, #F43F5E, #FB923C);
  --success-gradient: linear-gradient(135deg, #10B981, #34D399);
  --cool-gradient: linear-gradient(135deg, #6366F1, #EC4899);

  /* Text */
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #94A3B8;
  --text-light: #CBD5E1;

  /* Platform Colors */
  --noon-primary: #F6BE00;
  --noon-dark: #1A1A1A;
  --noon-bg: #FFFBEB;
  --noon-border: #FDE68A;
  --noon-gradient: linear-gradient(135deg, #FEF3C7, #FFFBEB);

  --namshi-primary: #1A1A1A;
  --namshi-accent: #E91E8C;
  --namshi-bg: #FFF0F7;
  --namshi-border: #FBCFE8;
  --namshi-gradient: linear-gradient(135deg, #FDF2F8, #FFF0F7);

  --amazon-primary: #FF9900;
  --amazon-dark: #232F3E;
  --amazon-bg: #FFF7ED;
  --amazon-border: #FED7AA;
  --amazon-gradient: linear-gradient(135deg, #FFF7ED, #FFEDD5);

  /* Shadows - Layered for Depth */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.04);
  --shadow-glow-primary: 0 10px 40px rgba(99,102,241,0.2);
  --shadow-glow-coral: 0 10px 40px rgba(244,63,94,0.2);
  --shadow-glow-noon: 0 8px 30px rgba(246,190,0,0.25);
  --shadow-glow-namshi: 0 8px 30px rgba(233,30,140,0.2);
  --shadow-3d: 0 25px 60px -12px rgba(0,0,0,0.15);

  /* Borders */
  --border: #E2E8F0;
  --border-soft: #F1F5F9;
  --border-hover: #CBD5E1;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
  --transition-spring: 0.5s var(--ease-spring);
  --transition-slow: 0.6s var(--ease);

  /* Sizing */
  --container-max: 1280px;
  --header-height: 72px;
}

/* ========================
   Reset & Base
   ======================== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Tajawal', 'Inter', sans-serif;
  background: var(--bg-body);
  color: var(--text-body);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input { border: none; outline: none; cursor: pointer; font-family: inherit; background: transparent; }

::selection { background: rgba(99,102,241,0.15); color: var(--primary-dark); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--primary-lighter); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ========================
   Container & Section
   ======================== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5rem 0; }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.section-title .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* ========================
   Header & Navigation
   ======================== */
.header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 999999 !important;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.5);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-dark);
  flex-shrink: 0;
  transition: var(--transition);
}

.logo:hover { transform: scale(1.03); }

.logo-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-glow-primary);
  transition: var(--transition-spring);
  transform-style: preserve-3d;
}

.logo:hover .logo-icon {
  transform: perspective(500px) rotateY(-10deg) scale(1.05);
  box-shadow: 0 12px 40px rgba(99,102,241,0.35);
}

.logo-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Search */
.search-bar {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.65rem 1.2rem 0.65rem 2.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  border: 2px solid transparent;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar input:focus {
  border-color: var(--primary-lighter);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.search-bar .search-icon-wrap {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  pointer-events: none;
}

/* Country Selector */
.country-selector {
  position: relative;
  flex-shrink: 0;
  z-index: 9999999 !important;
}

.country-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  border: 2px solid transparent;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
}

.country-btn:hover { border-color: var(--primary-lighter); background: var(--bg-white); }
.country-btn .flag { font-size: 1.3rem; }
.country-btn .arrow-icon { transition: var(--transition); color: var(--text-muted); width: 16px; height: 16px; }
.country-btn.open .arrow-icon { transform: rotate(180deg); }

.country-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: var(--transition);
  z-index: 99999999 !important;
  overflow: hidden;
}

.country-dropdown.show {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}

.country-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  color: var(--text-body);
}

.country-dropdown-item:hover { background: var(--primary-bg); color: var(--primary); }
.country-dropdown-item.active { background: var(--primary-bg); color: var(--primary); font-weight: 700; }
.country-dropdown-item .flag { font-size: 1.3rem; }

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  right: 0; left: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem;
  z-index: 999;
  transform: translateY(-110%);
  transition: var(--transition);
}

.mobile-nav.show { transform: translateY(0); }

.mobile-nav .search-bar { max-width: 100%; margin-bottom: 1rem; }

.mobile-country-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

.mobile-country-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 2px solid transparent;
  font-size: 0.85rem;
  color: var(--text-body);
  transition: var(--transition);
}

.mobile-country-item:hover,
.mobile-country-item.active {
  border-color: var(--primary-lighter);
  background: var(--primary-bg);
  color: var(--primary);
}

/* ========================
   Hero Section
   ======================== */
.hero {
  position: relative;
  padding: 7rem 0 4rem;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--bg-hero);
}

/* 3D Floating Shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 30%;
  opacity: 0.5;
  filter: blur(1px);
  animation: float3D var(--dur, 20s) var(--delay, 0s) ease-in-out infinite;
  transform-style: preserve-3d;
}

.hero-shape.shape-1 {
  width: 300px; height: 300px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  top: -5%; right: -5%;
  --dur: 22s;
}

.hero-shape.shape-2 {
  width: 200px; height: 200px;
  background: linear-gradient(135deg, rgba(244,63,94,0.1), rgba(251,146,60,0.08));
  bottom: 10%; left: 5%;
  --dur: 18s; --delay: -5s;
  border-radius: 40%;
}

.hero-shape.shape-3 {
  width: 150px; height: 150px;
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(52,211,153,0.06));
  top: 30%; left: 50%;
  --dur: 25s; --delay: -10s;
  border-radius: 35%;
}

.hero-shape.shape-4 {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(253,224,71,0.08));
  top: 15%; right: 25%;
  --dur: 15s; --delay: -3s;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s var(--ease-out);
}

.hero-badge .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}

.hero h1 .gradient-text {
  background: var(--cool-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 5s ease-in-out infinite;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.45s both;
}

.hero-stat {
  background: var(--bg-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  min-width: 130px;
  transition: var(--transition-spring);
  transform-style: preserve-3d;
}

.hero-stat:hover {
  transform: perspective(800px) rotateX(-3deg) translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hero-stat-number {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  font-family: 'Inter', sans-serif;
}

.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer; z-index: 5;
}

/* ========================
   Country Selection
   ======================== */
.khasmji-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.4));
  transition: all 0.35s var(--transition-spring);
  animation: logoPulseAura 4.5s ease-in-out infinite;
}

.logo:hover .khasmji-logo-img {
  transform: scale(1.15) rotate(-8deg);
  filter: drop-shadow(0 8px 24px rgba(99, 102, 241, 0.65)) drop-shadow(0 0 12px rgba(251, 191, 36, 0.5));
}

@keyframes logoPulseAura {
  0%, 100% {
    filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.4));
    transform: translateY(0) scale(1);
  }
  50% {
    filter: drop-shadow(0 8px 20px rgba(139, 92, 246, 0.55)) drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
    transform: translateY(-2px) scale(1.04);
  }
}

.spin-ring {
  animation: spinRing 8s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animated Icon Badge for Section Titles */
.animated-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: white;
  margin-left: 0.5rem;
  vertical-align: middle;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  animation: floatPulse 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.animated-icon-badge:hover {
  transform: scale(1.15) rotate(10deg);
}

.title-globe-badge {
  background: linear-gradient(135deg, #6366F1, #A855F7);
}

@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  }
  50% {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 28px rgba(168, 85, 247, 0.5);
  }
}

.countries-section { padding: 3rem 0; }

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.4rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 2px solid var(--border-soft);
  cursor: pointer;
  transition: var(--transition-spring);
  transform-style: preserve-3d;
  position: relative;
  box-shadow: var(--shadow-xs);
}

.country-card:hover {
  transform: perspective(800px) rotateX(-3deg) translateY(-6px);
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow-glow-primary);
}

.country-card.active {
  border-color: var(--primary);
  background: var(--primary-bg);
  box-shadow: var(--shadow-glow-primary);
}

.country-flag-box {
  width: 56px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: var(--transition-spring);
}

.country-flag-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.country-card:hover .country-flag-box {
  transform: scale(1.15) translateZ(15px);
  box-shadow: 0 6px 18px rgba(99,102,241,0.25);
}

.flag-img {
  width: 32px;
  height: 21px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flag-img:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.country-card .country-name {
  font-size: 0.95rem; font-weight: 800;
  color: var(--text-dark);
  transition: var(--transition);
}

.country-card.active .country-name { color: var(--primary); }

.country-card .deals-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* ========================
   Filters
   ======================== */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0.5rem;
  background: var(--bg-white);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover { color: var(--text-dark); background: var(--bg-soft); }

.filter-btn.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-glow-primary);
}

.filter-btn .platform-logo-mini {
  height: 14px;
  display: flex;
  align-items: center;
}

/* Type Tabs */
.type-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.type-tab {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-white);
  border: 2px solid var(--border);
  transition: var(--transition);
}

.type-tab:hover { color: var(--text-dark); border-color: var(--border-hover); }

.type-tab.active {
  color: var(--primary);
  border-color: var(--primary-lighter);
  background: var(--primary-bg);
}

/* ========================
   Coupon Cards - Creative Ticket Design
   ======================== */
.coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.coupon-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition-spring);
  transform-style: preserve-3d;
  box-shadow: var(--shadow-sm);
  animation: cardEntrance 0.6s var(--ease-out) both;
}

.coupon-card:hover {
  transform: perspective(1000px) rotateX(-2deg) rotateY(1deg) translateY(-8px) translateZ(10px);
  box-shadow: var(--shadow-xl);
}

/* Ticket Edge */
.coupon-card::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: -1px;
  width: 12px;
  background: repeating-linear-gradient(
    0deg,
    var(--bg-body) 0px,
    var(--bg-body) 5px,
    transparent 5px,
    transparent 10px
  );
  z-index: 2;
}

/* Featured Tag */
.coupon-card.featured { border-color: var(--amber-light); }

/* VIP Lifetime Coupon Card Styling (MAR39) */
.coupon-card.lifetime-vip {
  border: 2px solid #F59E0B;
  background: linear-gradient(180deg, #FFFDF0 0%, #FFFFFF 100%);
  box-shadow: 0 10px 35px rgba(245, 158, 11, 0.22);
  position: relative;
  overflow: hidden;
}

.coupon-card.lifetime-vip::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(245,158,11,0.4), rgba(124,58,237,0.3)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.coupon-card.lifetime-vip:hover {
  transform: perspective(1000px) rotateX(-2deg) rotateY(1deg) translateY(-8px) translateZ(12px);
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.35);
}

.lifetime-vip-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, #7C3AED, #9333EA, #F59E0B);
  background-size: 200% 200%;
  animation: goldShimmer 3s ease infinite;
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 12px rgba(124, 58, 237, 0.4);
  white-space: nowrap;
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.vip-discount-badge {
  background: linear-gradient(135deg, #7C3AED, #F59E0B) !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4) !important;
}

.vip-coupon-code {
  border-color: #F59E0B !important;
  background: #FFFBEB !important;
  color: #B45309 !important;
  font-size: 1.25rem !important;
}

.vip-copy-btn {
  background: linear-gradient(135deg, #7C3AED, #F59E0B) !important;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
}

.vip-expiry-meta {
  color: #D97706 !important;
  font-weight: 900 !important;
}

.platform-badge-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
  white-space: nowrap;
}

/* Coupon Header */
.coupon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px dashed var(--border);
  gap: 0.8rem;
}

.coupon-card.platform-noon .coupon-header { background: #FFFDF0; }
.coupon-card.platform-namshi .coupon-header { background: #F8F9FA; }
.coupon-card.platform-amazon .coupon-header { background: #F4F6F8; }

/* Brand Logo Image & SVG */
.brand-logo-img,
.brand-logo-svg {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: transform 0.2s ease;
}

.brand-logo-img:hover,
.brand-logo-svg:hover {
  transform: scale(1.05);
}

.filter-btn .brand-logo-img,
.filter-btn .brand-logo-svg {
  height: 26px;
  border-radius: 4px;
}

/* Platform Badge with Logo */
.platform-badge {
  display: flex;
  align-items: center;
}

/* Discount Badge */
.discount-badge {
  font-size: 1.05rem;
  font-weight: 900;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--hot-gradient);
  color: white;
  box-shadow: var(--shadow-glow-coral);
  font-family: 'Inter', 'Cairo', sans-serif;
  white-space: nowrap;
}

/* Coupon Body */
.coupon-body { padding: 1.2rem; }

.coupon-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.coupon-description {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Coupon Code */
.coupon-code-wrapper {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.coupon-code {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 2px dashed var(--primary-lighter);
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-align: center;
  font-family: 'Inter', monospace;
  direction: ltr;
}

.copy-btn {
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition-spring);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: var(--shadow-glow-primary);
  transform-style: preserve-3d;
}

.copy-btn:hover {
  transform: perspective(500px) translateZ(5px) scale(1.03);
  box-shadow: 0 12px 40px rgba(99,102,241,0.35);
}

.copy-btn:active { transform: scale(0.96); }

.copy-btn .copied-text { display: none; }
.copy-btn.copied { background: var(--success-gradient); box-shadow: 0 8px 30px rgba(16,185,129,0.3); }
.copy-btn.copied .copy-text { display: none; }
.copy-btn.copied .copied-text { display: flex; align-items: center; gap: 0.3rem; }

/* Coupon Meta */
.coupon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.coupon-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.coupon-meta-item [data-lucide] { width: 12px; height: 12px; }

.coupon-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coupon-countries { display: flex; gap: 3px; font-size: 1rem; }

.verified-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 700;
}

.verified-badge [data-lucide] { width: 14px; height: 14px; }

/* ========================
   Product Cards
   ======================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition-spring);
  transform-style: preserve-3d;
  box-shadow: var(--shadow-sm);
  animation: cardEntrance 0.6s var(--ease-out) both;
}

.product-card:hover {
  transform: perspective(1000px) rotateX(-2deg) translateY(-8px) translateZ(10px);
  box-shadow: var(--shadow-xl);
}

.product-image {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image .product-emoji {
  font-size: 4rem;
  transition: var(--transition-spring);
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.product-card:hover .product-emoji {
  transform: scale(1.2) rotateZ(-5deg) translateZ(30px);
}

.product-image .product-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0.4rem;
  transition: var(--transition);
}

.product-card:hover .product-img { transform: scale(1.08); }

.product-discount-badge {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--hot-gradient);
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
  z-index: 2;
  box-shadow: var(--shadow-glow-coral);
  font-family: 'Inter', sans-serif;
}

.product-platform-badge {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  z-index: 2;
  display: flex;
  align-items: center;
  height: 26px;
}

.product-platform-badge.noon { background: var(--noon-primary); }
.product-platform-badge.namshi { background: var(--namshi-primary); }
.product-platform-badge.amazon { background: var(--amazon-dark); }

.product-platform-badge .platform-logo-svg-sm { height: 12px; width: auto; }

.product-info { padding: 1.2rem; }

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-prices {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.price-original {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-discounted {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--emerald);
  font-family: 'Inter', sans-serif;
}

.price-currency { font-size: 0.7rem; font-weight: 700; }

.shop-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
  transition: var(--transition-spring);
  transform-style: preserve-3d;
}

.product-card.platform-noon .shop-btn,
.platform-noon-btn,
.product-card.platform-noon .hot-shop-btn {
  background: linear-gradient(135deg, #FEEE00 0%, #FFDF00 100%) !important;
  color: #0F172A !important;
  font-weight: 900 !important;
  box-shadow: 0 6px 20px rgba(254, 238, 0, 0.45) !important;
  border: 1px solid #E5C800 !important;
}

.product-card.platform-noon .shop-btn:hover,
.platform-noon-btn:hover,
.product-card.platform-noon .hot-shop-btn:hover {
  background: linear-gradient(135deg, #FFDF00 0%, #E6C400 100%) !important;
  color: #000000 !important;
  box-shadow: 0 10px 28px rgba(254, 238, 0, 0.6) !important;
  transform: translateY(-2px);
}

.product-card.platform-namshi .shop-btn {
  background: linear-gradient(135deg, #E91E8C, #C4107A);
  box-shadow: var(--shadow-glow-namshi);
}

.product-card.platform-amazon .shop-btn {
  background: linear-gradient(135deg, #FF9900, #E88900);
  color: white;
}

.shop-btn:hover { transform: perspective(500px) translateZ(5px) translateY(-2px); }
.shop-btn:active { transform: scale(0.97); }
.shop-btn [data-lucide] { width: 18px; height: 18px; transition: var(--transition); }
.shop-btn:hover [data-lucide] { transform: translateX(-4px); }

/* ========================
   Stats Section
   ======================== */
.stats-section {
  padding: 5rem 0;
  background: var(--primary-gradient-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-spring);
  transform-style: preserve-3d;
}

.stat-card:hover {
  transform: perspective(800px) rotateX(-3deg) translateY(-6px) translateZ(10px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  color: white;
}

.stat-icon.icon-coupons { background: var(--primary-gradient); }
.stat-icon.icon-stores { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.stat-icon.icon-countries { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }
.stat-icon.icon-savings { background: linear-gradient(135deg, #10B981, #34D399); }

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.2rem;
  font-family: 'Inter', sans-serif;
}

.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

/* ========================
   How-To Section
   ======================== */
.howto-section { padding: 5rem 0; }

.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.howto-step {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-spring);
  transform-style: preserve-3d;
}

.howto-step:hover {
  transform: perspective(800px) rotateX(-3deg) translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.howto-number {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: white;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-glow-primary);
}

.howto-step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text-dark); }
.howto-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; }

/* ========================
   Footer
   ======================== */
.footer {
  padding: 4rem 0 2rem;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.9; max-width: 350px; }

.footer-links h4 { font-size: 1rem; font-weight: 800; color: var(--text-dark); margin-bottom: 1rem; }

.footer-links a {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--primary); transform: translateX(-4px); }
.footer-links a [data-lucide] { width: 14px; height: 14px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.social-links { display: flex; gap: 0.5rem; }

.social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-spring);
}

.social-link:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-3px) scale(1.05);
}

.social-link [data-lucide] { width: 18px; height: 18px; }

/* SEO Footer Content */
.seo-footer-box {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
}

.seo-footer-box h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-body); }
.seo-footer-box p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.9; }

/* ========================
   Toast
   ======================== */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  color: var(--emerald);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--emerald-light);
  z-index: 9999;
  opacity: 0; visibility: hidden;
  transition: all 0.4s var(--ease-spring);
  display: flex; align-items: center; gap: 0.5rem;
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.toast [data-lucide] { width: 20px; height: 20px; }

/* ========================
   Empty State
   ======================== */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}

.empty-state-icon {
  width: 80px; height: 80px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--text-light);
}

.empty-state-icon [data-lucide] { width: 36px; height: 36px; }
.empty-state h3 { font-size: 1.2rem; color: var(--text-body); margin-bottom: 0.3rem; }
.empty-state p { font-size: 0.9rem; }

/* ========================
   Reveal / Scroll Animation
   ======================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========================
   Keyframes
   ======================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: var(--shadow-glow-coral); }
  50% { box-shadow: 0 12px 45px rgba(244,63,94,0.35); }
}

@keyframes float3D {
  0%, 100% { transform: translateY(0) rotateX(0) rotateZ(0) scale(1); }
  25% { transform: translateY(-25px) rotateX(8deg) rotateZ(4deg) scale(1.03); }
  50% { transform: translateY(-10px) rotateX(-4deg) rotateZ(-2deg) scale(0.98); }
  75% { transform: translateY(-30px) rotateX(6deg) rotateZ(6deg) scale(1.02); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes confetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-80px) rotate(720deg); opacity: 0; }
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 1024px) {
  .hero { min-height: 65vh; padding: 6rem 0 3rem; }
  .coupons-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .search-bar, .country-selector { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav { display: block; }

  .hero { min-height: auto; padding: 5.5rem 0 2rem; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero-stats { gap: 0.8rem; }
  .hero-stat { padding: 0.7rem 1rem; min-width: 110px; }
  .hero-stat-number { font-size: 1.4rem; }
  .scroll-indicator { display: none; }

  .countries-grid { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
  .country-card { padding: 0.8rem 0.4rem; }
  .country-card .flag { font-size: 1.8rem; }
  .country-card .country-name { font-size: 0.7rem; }
  .country-card .deals-count { display: none; }

  .filters-bar {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.4rem;
  }
  .filters-bar::-webkit-scrollbar { display: none; }

  .type-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .type-tabs::-webkit-scrollbar { display: none; }

  .coupons-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-image { height: 150px; }
  .product-info { padding: 1rem; }
  .product-name { font-size: 0.82rem; }
  .price-discounted { font-size: 1.1rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .coupon-code-wrapper { flex-direction: column; }
  .copy-btn { justify-content: center; }
}

/* Hot Deal Product Card Styling */
.product-card.hot-deal-card {
  border: 2px solid #F59E0B;
  box-shadow: 0 10px 35px rgba(245, 158, 11, 0.22);
}

.hot-deal-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, #EF4444, #F59E0B);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  z-index: 2;
}

.product-desc-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-shop-btn {
  background: linear-gradient(135deg, #6366F1, #8B5CF6) !important;
  color: white !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35) !important;
}

.hot-shop-btn:hover {
  background: linear-gradient(135deg, #4F46E5, #7C3AED) !important;
  transform: translateY(-2px);
}

/* Product Description Expander & Delivery Details */
.product-desc-box {
  margin-bottom: 0.4rem;
}

.text-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-desc-text.expanded {
  -webkit-line-clamp: initial !important;
  overflow: visible !important;
}

.show-more-btn {
  background: none;
  border: none;
  color: #7C3AED;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.2s ease;
}

.show-more-btn:hover {
  color: #4F46E5;
  text-decoration: underline;
}

.product-delivery-badge {
  font-size: 0.76rem;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-md);
  margin-top: 0.3rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Rank Badge, Rating & Warranty Details */
.hot-deal-badge.inline-badge {
  position: static !important;
  display: inline-flex !important;
  margin-bottom: 0.4rem;
}

.product-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: linear-gradient(135deg, #7C3AED, #9333EA);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.rating-stars {
  font-size: 0.8rem;
  font-weight: 900;
  color: #D97706;
}

.reviews-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.product-warranty-badge {
  font-size: 0.74rem;
  color: #1E40AF;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-md);
  margin-top: 0.3rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Layout Mode Toggle (Grid vs Horizontal List View) */
.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  gap: 0.25rem;
}

.view-btn {
  background: none;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.25s ease;
}

.view-btn.active {
  background: var(--bg-card);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.view-btn:hover:not(.active) {
  color: var(--text-dark);
}

/* Horizontal List View Styles */
.products-grid.list-view {
  grid-template-columns: 1fr !important;
  gap: 1.2rem !important;
}

.products-grid.list-view .product-card {
  flex-direction: row;
  align-items: center;
  padding: 1.2rem;
  gap: 1.5rem;
}

.products-grid.list-view .product-image {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  margin-left: 0;
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
}

.products-grid.list-view .product-info {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.products-grid.list-view .shop-btn {
  width: 100% !important;
  align-self: stretch !important;
  margin-top: 0.8rem;
}

@media (min-width: 769px) {
  .products-grid.list-view .product-platform-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }
  .products-grid.list-view .product-discount-badge {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 768px) {
  .products-grid.list-view .product-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .products-grid.list-view .product-image {
    width: 100%;
    height: 180px;
    margin-bottom: 1rem;
  }
  .products-grid.list-view .shop-btn {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .countries-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 0.6rem; }
}

/* ========================================================
   Smart Marketing & High-Converting Features
   ======================================================== */

/* Category Filter Pills Bar */
.product-category-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem;
  margin-bottom: 1.2rem;
  scrollbar-width: thin;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}

.category-pill:hover {
  color: var(--text-dark);
  border-color: var(--primary-light);
  background: var(--bg-soft);
}

.category-pill.active {
  background: var(--primary-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}



/* Social Proof & Usage Badges */
.card-social-proof-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.usage-count-tag,
.viewers-pulse-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.75rem;
}

.usage-count-tag {
  color: #059669;
  background: #ECFDF5;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.viewers-pulse-tag {
  color: #D97706;
  background: #FFFBEB;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-ring 1.6s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@media (max-width: 576px) {
  .card-social-proof-row {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .usage-count-tag,
  .viewers-pulse-tag {
    font-size: 0.72rem;
    padding: 0.22rem 0.5rem;
  }
}

/* Card Layout & Bottom Button Anchoring Fix */
.products-grid .product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  justify-content: space-between !important;
}

.products-grid .product-info {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.products-grid .shop-btn {
  margin-top: auto !important;
  align-self: stretch !important;
}

/* Category Filter Header & Select Bar */
.category-filter-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  background: var(--bg-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
  overflow: visible !important;
}

/* Premium Glassmorphism Custom Category Dropdown */
.custom-category-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1001;
  overflow: visible !important;
}

.dropdown-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
}

.dropdown-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-out);
  user-select: none;
  min-width: 210px;
}

.dropdown-trigger-btn:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.18);
  transform: translateY(-1px);
}

.trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  flex-shrink: 0;
}

.trigger-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-dark);
  flex: 1;
}

.trigger-badge {
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.trigger-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.custom-category-dropdown.open .trigger-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Glassmorphism Floating Menu Popup */
.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  z-index: 99999 !important;
}

.custom-category-dropdown.open .custom-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.86rem;
}

.dropdown-menu-item:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  transform: translateX(-3px);
}

.dropdown-menu-item.active {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.dropdown-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dropdown-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  flex-shrink: 0;
}

.dropdown-menu-item.active .dropdown-item-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.dropdown-item-count {
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 0.8;
}
