/* ==========================================================================
   Offers Landing Page - Helile (هِليَل) Theme
   Fully Responsive & Mobile-First (No artificial phone outlines/frames)
   - Deep Royal Blue: #0014b3
   - Vibrant Red Accent: #f80605
   - Crisp White & Light Sky Tint: #ffffff, #f3f6fc
   - Dark Navy Typography: #14213d
   - Arabic Typography: Tajawal & Lalezar
   - Responsive Grid: 2 columns on mobile, 3 on tablet, 4 on desktop
   ========================================================================== */

:root {
  /* Brand Palette */
  --helile-blue: #0014b3;
  --helile-blue-hover: #000f8a;
  --helile-blue-light: #edf2fb;
  --helile-red: #f80605;
  --helile-red-hover: #d90403;
  --helile-navy: #14213d;
  
  --bg-page: #ffffff;
  --bg-section-light: #f8fafd;
  --bg-card: #ffffff;
  --bg-thumb: #f3f6fc;
  --border-light: #dbe3f5;
  --border-dashed: #93a3c8;
  --text-main: #14213d;
  --text-muted: #64748b;
  
  /* Fonts */
  --font-brand: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Lalezar', 'Tajawal', sans-serif;

  /* Layout Max-Width */
  --container-max-width: 1140px;
}

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

html {
  font-family: var(--font-brand);
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
}

/* Global Responsive Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.site-wrapper {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ==========================================================================
   1. SITE HEADER
   Full width white navbar, logo on right, blue pill button on left
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  padding: 12px 0;
  width: 100%;
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.helile-header-logo {
  height: 42px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .helile-header-logo {
    height: 52px;
    max-width: 180px;
  }
}

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

.header-code-pill {
  background-color: var(--helile-blue);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 8px 18px;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 20, 179, 0.22);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .header-code-pill {
    padding: 10px 24px;
    font-size: 1rem;
  }
}

.header-code-pill:hover {
  background-color: var(--helile-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 20, 179, 0.32);
}

.header-code-pill:active {
  transform: scale(0.97);
}

.header-code-pill.copied {
  background-color: #16a34a !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35) !important;
}

/* ==========================================================================
   2. RED ACCENT STRIPE
   Solid horizontal bar under header
   ========================================================================== */
.header-red-stripe {
  height: 5px;
  background-color: var(--helile-red);
  width: 100%;
}

/* ==========================================================================
   3. COUNTDOWN HERO SECTION
   Deep royal blue background with 3 white rounded cards
   ========================================================================== */
.countdown-hero-section {
  background-color: var(--helile-blue);
  padding: 26px 0 30px;
  text-align: center;
  width: 100%;
}

.event-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 16px;
  border-radius: 9999px;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.event-phase-badge.is-live {
  background: rgba(248, 6, 5, 0.28);
  border-color: #ff4d4d;
  box-shadow: 0 0 16px rgba(248, 6, 5, 0.4);
}

.phase-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ffd700;
  display: inline-block;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.event-phase-badge.is-live .phase-dot {
  background-color: var(--helile-red);
  box-shadow: 0 0 8px #ff4d4d;
  animation: pulseLiveDot 1.4s infinite ease-in-out;
}

.event-phase-badge.is-ended .phase-dot {
  background-color: #94a3b8;
}

@keyframes pulseLiveDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.countdown-heading {
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

@media (min-width: 768px) {
  .event-phase-badge {
    font-size: 0.95rem;
    padding: 7px 20px;
  }
  .countdown-heading {
    font-size: 1.45rem;
  }
}

.countdown-window-note {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 16px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .countdown-window-note {
    font-size: 1rem;
    margin-top: 18px;
  }
}

.countdown-timer-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

@media (min-width: 768px) {
  .countdown-timer-wrap {
    gap: 14px;
  }
}

.timer-card {
  background-color: #ffffff;
  border-radius: 16px;
  width: 86px;
  height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

@media (max-width: 360px) {
  .timer-card {
    width: 74px;
    height: 74px;
    border-radius: 12px;
  }
}

@media (min-width: 768px) {
  .timer-card {
    width: 110px;
    height: 110px;
    border-radius: 22px;
  }
}

.timer-card:hover {
  transform: translateY(-2px);
}

.timer-digit {
  color: var(--helile-red);
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 900;
}

@media (max-width: 360px) {
  .timer-digit {
    font-size: 2.1rem;
  }
}

@media (min-width: 768px) {
  .timer-digit {
    font-size: 3.2rem;
  }
}

.timer-unit {
  color: var(--helile-blue);
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: 1px;
}

@media (min-width: 768px) {
  .timer-unit {
    font-size: 1rem;
  }
}

.timer-colon {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin: 0 1px;
  user-select: none;
  animation: colonBlink 2s infinite ease-in-out;
}

@media (min-width: 768px) {
  .timer-colon {
    font-size: 2.5rem;
    margin: 0 4px;
  }
}

@keyframes colonBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ==========================================================================
   4. STORE / SPOTLIGHT BAR
   Matching "[اسم العلامة] عروض حصرية ليلة الجمعة" with circular dashed logo
   ========================================================================== */
.brand-spotlight-bar {
  background-color: #ffffff;
  padding: 22px 0 14px;
  width: 100%;
}

.spotlight-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
}

.spotlight-dashed-circle {
  width: 58px;
  height: 58px;
  border: 2px dashed var(--border-dashed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  background-color: #ffffff;
  overflow: hidden;
  padding: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 768px) {
  .spotlight-dashed-circle {
    width: 66px;
    height: 66px;
  }
}

.spotlight-dashed-circle svg,
.spotlight-dashed-circle img {
  max-width: 42px;
  max-height: 42px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spotlight-helile-logo {
  max-width: 42px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .spotlight-dashed-circle svg,
  .spotlight-dashed-circle img,
  .spotlight-helile-logo {
    max-width: 48px;
    max-height: 48px;
  }
}

.spotlight-content {
  flex: 1;
  text-align: right;
}

.spotlight-title {
  color: var(--helile-blue);
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}

@media (min-width: 768px) {
  .spotlight-title {
    font-size: 1.5rem;
  }
}

.spotlight-subtitle {
  color: var(--text-muted);
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .spotlight-subtitle {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   5. SEARCH & CATEGORIES CONTROLS
   Mobile-first: Full width edge-to-edge aligned with card columns
   Desktop: Aligned with the 4-column grid (Columns 1-3 for Filters, Column 4 for Search)
   ========================================================================== */
.controls-section {
  padding: 10px 0 16px;
  background-color: #ffffff;
  width: 100%;
}

.controls-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.search-box-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}

.search-input {
  width: 100%;
  padding: 12px 46px 12px 18px;
  background-color: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  font-family: var(--font-brand);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--helile-blue);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 20, 179, 0.12);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: #94a3b8;
  pointer-events: none;
}

.categories-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background-color: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 9999px;
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-chip:hover {
  border-color: var(--helile-blue);
  color: var(--helile-blue);
  background-color: #f3f6fc;
}

.category-chip.active {
  background-color: var(--helile-blue);
  border-color: var(--helile-blue);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 20, 179, 0.2);
}

/* Desktop & Tablet Alignment: Search full-width on top, Categories directly below */
@media (min-width: 1024px) {
  .controls-container {
    gap: 14px;
  }

  .categories-bar {
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

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

/* ==========================================================================
   6. MAIN OFFERS GRID
   Mobile-first: 2 columns (< 640px), 3 columns (tablet), 4 columns (desktop)
   ========================================================================== */
.main-content {
  padding-top: 6px;
  padding-bottom: 28px;
  flex-grow: 1;
}

.section-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-brand);
}

.promo-auto-hint {
  color: #ea580c;
  font-weight: 700;
  font-size: 0.8rem;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

@media (min-width: 640px) {
  .offers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .offers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Product Card */
.helile-card {
  min-width: 0;
  width: 100%;
  background-color: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 20, 179, 0.04);
  cursor: pointer;
}

.helile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 20, 179, 0.12);
  border-color: #b5c7f0;
}

/* Top Thumbnail Area */
.card-thumb-area {
  background-color: var(--bg-thumb);
  height: 135px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-bottom: 1px solid #edf1f8;
}

@media (min-width: 768px) {
  .card-thumb-area {
    height: 155px;
  }
}

.card-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--helile-red);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(248, 6, 5, 0.35);
  line-height: 1.2;
}

.card-thumb-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb-visual svg,
.card-thumb-visual img {
  max-height: 80px;
  max-width: 115px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

@media (min-width: 768px) {
  .card-thumb-visual svg,
  .card-thumb-visual img {
    max-height: 95px;
    max-width: 130px;
  }
}

/* Card Body */
.card-body {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

@media (min-width: 768px) {
  .card-body {
    padding: 14px 14px 16px;
  }
}

.card-store-row {
  margin-bottom: 3px;
}

.card-store-name {
  font-family: var(--font-brand);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.card-item-title {
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  min-height: 2.3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card-pricing-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 8px 0 10px;
  min-width: 0;
}

.card-price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.card-current-price {
  color: var(--helile-blue);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.card-sar-symbol {
  color: var(--helile-blue);
  display: inline-flex;
  align-items: baseline;
}

.sar-symbol-svg {
  width: 0.85em;
  height: 0.95em;
  display: inline-block;
  vertical-align: -0.08em;
  fill: currentColor;
  flex-shrink: 0;
}

.card-old-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 0.78rem;
  font-family: var(--font-brand);
  font-weight: 600;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.card-old-price .sar-symbol-svg {
  width: 0.85em;
  height: 0.95em;
  vertical-align: -0.06em;
  fill: #94a3b8;
}

/* CTA Button */
.card-cta-btn {
  background-color: var(--helile-blue);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 8px;
  font-family: var(--font-brand);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.15s ease, transform 0.15s ease;
  margin-top: auto;
  text-align: center;
}

.card-cta-btn:hover {
  background-color: var(--helile-blue-hover);
}

.card-cta-btn:active {
  transform: scale(0.98);
}

/* Empty State */
.empty-offers-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  background-color: #f8fafd;
  border-radius: 18px;
  border: 1.5px dashed var(--border-light);
}

.empty-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.empty-title {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.empty-desc {
  font-family: var(--font-brand);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.reset-filter-btn {
  background-color: var(--helile-blue);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

/* ==========================================================================
   7. "علامات أخرى في جمعة هليل" SECTION
   Circular brand pills with royal blue borders
   ========================================================================== */
.other-brands-section {
  padding: 32px 0 28px;
  background-color: #ffffff;
  border-top: 1px solid #edf1f8;
  width: 100%;
  overflow: hidden;
}

.brands-container {
  overflow: hidden;
  max-width: 100%;
}

.brands-section-title {
  color: var(--helile-blue);
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 20px;
}

.brands-circle-row {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  padding: 6px 4px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .brands-circle-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

.brands-circle-row::-webkit-scrollbar {
  display: none;
}

.brand-circle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2.5px solid var(--helile-blue);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  padding: 7px;
}

@media (min-width: 768px) {
  .brand-circle-btn {
    width: 68px;
    height: 68px;
  }
}

.brand-circle-btn:hover,
.brand-circle-btn.active {
  transform: scale(1.1);
  background-color: #f3f6fc;
  border-color: var(--helile-red);
}

.brand-circle-logo-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-circle-logo-wrap svg,
.brand-circle-logo-wrap img {
  max-width: 42px;
  max-height: 30px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   8. TRUST & BENEFITS BAR
   ========================================================================== */
.trust-bar {
  background-color: var(--bg-section-light);
  padding: 32px 0;
  border-top: 1px solid #edf1f8;
  width: 100%;
}

.trust-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .trust-items-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: #ffffff;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
  .trust-item {
    background-color: transparent;
    border: none;
    padding: 0;
  }
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.trust-item-title {
  font-family: var(--font-brand);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.trust-item-sub {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   9. SITE FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--helile-blue);
  color: #ffffff;
  padding: 36px 0 80px;
  text-align: center;
  width: 100%;
}

@media (min-width: 769px) {
  .site-footer {
    padding-bottom: 40px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 1.05rem;
}

.footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-notice {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 18px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.share-btn {
  background-color: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 11px 24px;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: transform 0.15s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.footer-copy {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   10. STICKY MOBILE BOTTOM BAR (Visible only on mobile)
   ========================================================================== */
.sticky-mobile-bar {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-mobile-bar.visible {
  bottom: 0;
}

@media (min-width: 769px) {
  .sticky-mobile-bar {
    display: none !important;
  }
}

.sticky-code-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sticky-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.sticky-code-badge {
  background-color: var(--helile-blue-light);
  color: var(--helile-blue);
  border: 1.5px dashed var(--helile-blue);
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.98rem;
}

.sticky-copy-btn {
  background-color: var(--helile-blue);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s ease;
}

.sticky-copy-btn:hover {
  background-color: var(--helile-blue-hover);
}

/* ==========================================================================
   11. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: 90%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background-color: var(--helile-blue);
  color: #ffffff;
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 20, 179, 0.35);
  border-right: 4px solid var(--helile-red);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-brand);
  font-size: 0.9rem;
  animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
}

.toast-text {
  flex-grow: 1;
  line-height: 1.4;
}

.toast-text strong {
  color: #fef08a;
}

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

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

/* ==========================================================================
   12. COOKIE CONSENT BANNER (Google Analytics & Privacy)
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 860px;
  z-index: 9999;
  direction: rtl;
}

.cookie-banner-container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(0, 20, 179, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.cookie-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background-color: var(--helile-blue-light);
  color: var(--helile-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-text-wrapper {
  flex: 1;
  min-width: 0;
}

.cookie-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--helile-navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cookie-description {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.cookie-description strong {
  color: var(--helile-blue);
  font-weight: 700;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-brand);
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cookie-accept-btn {
  background-color: var(--helile-blue);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 20, 179, 0.28);
}

.cookie-accept-btn:hover {
  background-color: var(--helile-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 20, 179, 0.35);
}

.cookie-decline-btn {
  background-color: #f1f5f9;
  color: var(--text-main);
  border: 1.5px solid #cbd5e1;
}

.cookie-decline-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Animations */
.cookie-consent-banner.animate-in {
  animation: cookieSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-consent-banner.animate-out {
  animation: cookieSlideDown 0.25s ease forwards;
}

@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 40px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes cookieSlideDown {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, 40px);
  }
}

/* Footer Trigger Button */
.cookie-settings-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
  border-radius: 9999px;
  padding: 10px 20px;
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-settings-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cookie-consent-banner {
    left: 12px;
    right: 12px;
    bottom: 16px;
    transform: none;
    width: auto;
  }

  .cookie-consent-banner.animate-in {
    animation: cookieSlideUpMobile 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .cookie-consent-banner.animate-out {
    animation: cookieSlideDownMobile 0.25s ease forwards;
  }

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

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

  .cookie-banner-container {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
    border-radius: 16px;
  }

  .cookie-banner-content {
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-icon-wrapper {
    width: 38px;
    height: 38px;
  }

  .cookie-banner-actions {
    flex-direction: row-reverse;
    width: 100%;
    gap: 8px;
  }

  .cookie-btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}
