/* ============================================
   DEALBROTHERS - STYLES GLOBAUX RESPONSIVE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgb(255 107 53 / 12%), transparent 35%),
              radial-gradient(circle at 80% 0%, rgb(78 205 196 / 12%), transparent 25%),
              linear-gradient(180deg, #0f1117 0%, #0b0d12 100%);
  color: #f5f5f5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
}

h2 {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
}
/* Consolidated h3 rules (line-clamp, overflow handling) */
h3 {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: inherit;
  overflow-wrap: anywhere;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: auto;
  max-height: 2.6em;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: sticky;
  top: env(safe-area-inset-top, 0);
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgb(11 13 18 / 80%);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

/* Mobile: ensure header sits at very top and hero sits flush under it */
@media (max-width: 768px) {
  header {
    top: 0;
  }

  .nav-shell {
    padding: 0.12rem 0.5rem;
  }

  .hero-compact {
    margin-top: 0;
    padding-top: 0;
  }
  /* remove any extra spacing from adjacent elements */
  main {
    margin-top: 0;
    padding-top: 0;
  }
}

.nav-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .nav-shell {
    padding: 0.25rem 0.5rem; /* reduce header height on mobile */
  }

  header {
    border-bottom: none; /* remove visible separator to make banner flush */
  }
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  color: rgb(245 245 245 / 60%);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-tag:hover {
  background: rgb(255 255 255 / 8%);
  border-color: rgb(78 205 196 / 40%);
  color: #4ECDC4;
  transform: translateY(-2px);
}

.filter-tag.active {
  background: linear-gradient(135deg, rgb(255 107 53 / 25%), rgb(78 205 196 / 25%));
  border-color: #FF6B35;
  color: #FF6B35;
}

.filter-tag i {
  font-size: 0.9em;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
  font-size: clamp(1rem, 5vw, 1.5rem);
}

.brand .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF6B35, #FF8B5A);
  box-shadow: 0 10px 30px rgb(255 107 53 / 35%);
  font-size: 1.2rem;
  flex-shrink: 0;
}

@media (width <= 768px) {
  .brand .badge {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

.search {
  display: flex;
  align-items: center;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 12px;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  gap: 0.5rem;
  min-width: 0;
}

.search input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f5f5f5;
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}

.search input::placeholder {
  color: rgb(245 245 245 / 65%);
}

/* Masquer la barre de recherche sur mobile */
@media (width <= 1024px) {
  .header-filters {
    gap: 0.35rem;
  }
  
  .filter-tag {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
}

@media (width <= 768px) {
  .search {
    display: none;
  }

  /* Compact header: logo + icons on one line */
  .nav-shell {
    grid-template-columns: auto 1fr; /* brand + actions on same row */
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
    align-items: center;
  }

  .brand span {
    display: inline;
  } /* keep text visible with logo */

  /* Moved `.nav-actions` to `public/css/components/utilities.css` */

  /* Keep actions in a single horizontal line on mobile; allow smooth scrolling */
  /* Moved `.nav-actions` to `public/css/components/utilities.css` */
  .nav-actions::-webkit-scrollbar { 
    height: 6px; 
  }

  .nav-actions::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / 6%);
    border-radius: 10px;
  }

  /* Hide text in pill buttons to save space (all spans inside action buttons) */
  .nav-actions .pill-btn {
    padding: 0.3rem;
    min-width: 40px;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
  }

  .nav-actions .pill-btn span,
  .nav-actions .pill-btn .btn-text {
    display: none;
  }

  /* Hide the center placeholder column on small screens to avoid wrapping */
  .nav-shell > div:nth-child(2) {
    display: none;
  }

  /* Move filters onto same line as actions if possible */
  .header-filters {
    order: 0;
    grid-column: auto;
    padding-top: 0;
    border-top: none;
    justify-self: end;
  }
}

/* ============================================
   MOBILE FILTER PANEL
   ============================================ */

.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 60%);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-filter-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgb(0 0 0 / 20%);
  animation: slide-up 0.3s ease;
  display: none;
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.filter-panel-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-panel-header h2 i {
  color: #FF6B35;
}

.close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgb(0 0 0 / 5%);
  color: #64748b;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.close-btn:hover {
  background: rgb(0 0 0 / 10%);
  color: #0f172a;
}

.filter-panel-content {
  padding: 1.25rem 1rem;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.filter-grid .filter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  color: #64748b;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.filter-grid .filter-btn i {
  font-size: 1.3rem;
}

.filter-grid .filter-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.filter-grid .filter-btn.active {
  background: linear-gradient(135deg, #FF6B35, #FF8B5A);
  border-color: #FF6B35;
  color: #fff;
  box-shadow: 0 4px 12px rgb(255 107 53 / 30%);
}

.filter-select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: #FF6B35;
  box-shadow: 0 0 0 3px rgb(255 107 53 / 10%);
}

.filter-input-group {
  margin-top: 1rem;
}

.filter-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.5rem;
}

.filter-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.filter-input:focus {
  outline: none;
  border-color: #FF6B35;
  box-shadow: 0 0 0 3px rgb(255 107 53 / 10%);
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-filter {
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-filter.btn-primary {
  background: linear-gradient(135deg, #FF6B35, #FF8B5A);
  color: #fff;
  box-shadow: 0 4px 12px rgb(255 107 53 / 30%);
}

.btn-filter.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgb(255 107 53 / 40%);
}

.btn-filter.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 2px solid #e5e7eb;
}

.btn-filter.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

@media (width <= 480px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-btn {
    padding: 0.75rem 0.4rem;
    font-size: 0.75rem;
  }
  
  .filter-btn i {
    font-size: 1.1rem;
  }
}

@media (min-width: 769px) {
  .mobile-filter-btn { display: none; }

  .mobile-filter-panel,
  .filter-overlay { display: none; }
} 

@media (width <= 480px) {
  .nav-shell { padding: 0.4rem 0.6rem; }
  .brand .badge { font-size: 0.9rem; }

  .nav-actions .pill-btn {
    padding: 0.28rem;
    width: 40px;
    height: 40px;
  }
}

@media (width <= 480px) {
  .filter-tag {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  
  .header-filters {
    gap: 0.25rem;
  }
}

/* ============================================
   BUTTONS & PILLS
   ============================================ */

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 8%);
  background: rgb(255 255 255 / 6%);
  color: #f5f5f5;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
}

.pill-btn.primary {
  background: linear-gradient(135deg, #FF6B35, #FF8B5A);
  border-color: rgb(255 107 53 / 50%);
  box-shadow: 0 10px 30px rgb(255 107 53 / 35%);
  color: #0b0d12;
}

    /* Variante visible sur fond clair */
    .pill-btn.outline {
      background: #fff;
      color: #0b0d12;
      border-color: rgb(17 24 39 / 8%);
      box-shadow: 0 2px 8px rgb(2 6 23 / 6%);
    }

    .pill-btn.outline:hover {
      background: #f7f7f8;
      transform: translateY(-1px);
    }

    /* Variante compacte: icône seule pour gagner de la place */
    .pill-btn.compact {
      padding: 0.45rem;
      width: 44px;
      height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
    }

.compact .fas {
      margin: 0;
      font-size: 1rem;
    }

.compact .btn-text {
      display: none;
    }

    /* Variante compacte + accessible: afficher texte au hover (desktop)
       garde le texte pour l'accessibilité (aria, lecteurs d'écran) */
    @media (hover: hover) and (pointer: fine) {
      .compact:hover .btn-text {
        display: inline;
        position: absolute;
        transform: translateY(-60%);
        background: #111827;
        color: #fff;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        white-space: nowrap;
      }

      .primary:hover .btn-text {
        display: inline;
        position: absolute;
        transform: translateY(-60%);
        background: #FF6B35;
        color: #fff;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        white-space: nowrap;
      }

      .discreet:hover .btn-text {
        display: inline;
        position: absolute;
        transform: translateY(-60%);
        background: rgb(0 0 0 / 70%);
        color: #fff;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        white-space: nowrap;
      }
    }

.pill-btn:active {
  transform: translateY(0);
}

/* Variante compacte + CTA primaire */
.pill-btn.primary.compact {
  padding: 0.5rem;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF6B35, #FF8B5A);
  color: #0b0d12;
  box-shadow: 0 6px 18px rgb(255 107 53 / 25%);
  border: none;
}

.primary.compact .fas {
  font-size: 1.05rem;
} 

.primary.compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgb(255 107 53 / 28%);
} 



/* Navbar-specific variants (dark header) */
.nav-actions .pill-btn {
  font-size: 0.92rem;
  padding: 0.44rem 0.9rem;
  border-radius: 10px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: none;
}

/* Connexion: sobre, sans effet hover */
.pill-btn.discreet.compact {
  width: auto;
  height: auto;
  padding: 0.44rem 0.95rem;
  border-radius: 10px;
  background: rgb(255 255 255 / 6%);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 16%);
  box-shadow: none;
  transform: none;
  opacity: 0.9;
  border-color: rgb(0 0 0 / 4%);
} 

/* Inscription: accent léger, même gabarit, sans effet hover */
.pill-btn.outline.compact {
  width: auto;
  height: auto;
  padding: 0.44rem 0.95rem;
  border-radius: 10px;
  background: rgb(255 107 53 / 16%);
  border: 1px solid rgb(255 107 53 / 34%);
  color: #fff;
  box-shadow: none;
  transform: none;
} 

/* Neutraliser tout effet hover pour les deux boutons tout en conservant leurs teintes */
.discreet.compact:hover {
  background: rgb(255 255 255 / 6%);
  color: #fff;
  transform: none;
  box-shadow: none;
}  

.outline.compact:hover {
  background: rgb(255 107 53 / 16%);
  color: #fff;
  transform: none;
  box-shadow: none;
}  

/* CTA sticky consolidated in the main sticky area further down */

/* Login modal styles */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 45%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 80;
} 

.login-modal-overlay.open {
  opacity: 1;
  visibility: visible;
} 

.login-modal {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 100%;
  max-width: 480px;
  /* Dark modal to preserve page theme and improve contrast */
  background: linear-gradient(135deg, rgb(11 13 18 / 95%), rgb(17 24 39 / 95%));
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 60%);
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.18s ease;
} 

.login-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}  

.login-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
} 

.login-modal .modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
} 

.login-modal .modal-close {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: #ddd;
  cursor: pointer;
} 

.login-modal form {
  display: grid;
  gap: 0.75rem;
}  

.login-modal input[type="email"], .login-modal input[type="password"] {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  background: rgb(255 255 255 / 4%);
  color: #fff;
} 
.login-modal input::placeholder { color: rgb(255 255 255 / 60%); }

.login-modal .modal-error {
  color: #ffb4b4;
  font-weight: 700;
  padding: 0.5rem 0;
  display: block;
  min-height: 1.2rem;
} 

.login-modal .modal-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.5rem;
} 
.login-modal .modal-actions .btn { min-width: 120px; }

.login-modal .pill-btn.outline {
  background: rgb(255 255 255 / 6%);
  color: #fff;
  border-color: rgb(255 255 255 / 8%);
} 

.login-modal .btn { box-shadow: 0 8px 24px rgb(0 0 0 / 35%); }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem; /* more emphasis */
  border-radius: 12px;
  background: linear-gradient(135deg, #FF6B35, #FF8B5A);
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 14px 42px rgb(255 107 53 / 24%);
  text-decoration: none;
  transform: translateZ(0);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 120ms ease;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 54px rgb(255 107 53 / 28%);
}

.btn-cta:active {
  transform: translateY(0) scale(0.995);
  box-shadow: 0 12px 32px rgb(255 107 53 / 20%);
}

.btn-cta:focus {
  outline: 3px solid rgb(255 107 53 / 18%);
  outline-offset: 2px;
} 

/* Sticky CTA slightly larger for mobile */
.btn-cta.btn-cta-sticky {
  font-size: 1.06rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
} 

@media (width <= 768px) {
  .btn-cta {
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
  }

  .btn-cta.btn-cta-sticky {
    width: calc(100% - 2rem);
  }
}

.btn-cta .cta-price {
  font-weight: 900;
  margin-left: 0.5rem;
  font-size: 1rem;
}

/* Compact secondary variants (consolidated) */
.pill-btn.discreet.compact, .pill-btn.outline.compact {
  padding: 0.35rem 0.6rem;
  font-size: 0.88rem;
  opacity: 0.85;
  color: #fff;
  background: linear-gradient(180deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 3%));
  border: 1px solid rgb(255 255 255 / 12%);
  transition: opacity 120ms ease, transform 120ms ease;
  min-width: auto;
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem; /* increase gap to avoid overlap */
  border-radius: 999px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 25%);
  white-space: nowrap;
}
.discreet.compact .fas, .outline.compact .fas { color: #fff; }



/* Hover / active behavior */
.discreet.compact:hover, .outline.compact:hover {
  opacity: 1;
  background: linear-gradient(180deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 6%));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgb(0 0 0 / 32%);
}

.discreet.compact:active, .outline.compact:active {
  transform: translateY(0);
}


@media (width <= 992px) {
  .cta-sticky { display: block; }
}
 
/* Moved `.nav-actions` to `public/css/components/utilities.css` */

/* ============================================
   ONLINE BADGE
   ============================================ */

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  background: rgb(78 205 196 / 10%);
  border: 1px solid rgb(78 205 196 / 30%);
  color: rgb(245 245 245 / 80%);
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 600;
  position: relative;
}

.online-badge.active {
  background: rgb(78 205 196 / 20%);
  border-color: rgb(78 205 196 / 50%);
  color: #6ae2d7;
}

.online-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(78 205 196 / 50%);
  animation: pulse 2s infinite;
}

.online-badge.active::before {
  background: #6ae2d7;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.online-tooltip {
  position: absolute;
  bottom: -35px;
  right: 0;
  background: rgb(11 13 18 / 95%);
  border: 1px solid rgb(78 205 196 / 30%);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: rgb(245 245 245 / 90%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 30;
}

.online-badge:hover .online-tooltip {
  opacity: 1;
  pointer-events: auto;
}

@media (width <= 768px) {
  .online-badge {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
  }

  .online-tooltip {
    bottom: -30px;
    font-size: 0.65rem;
  }
}

@media (width <= 480px) {
  .online-badge {
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
  }

  .online-badge span {
    display: none;
  }
}

/* Responsive navigation buttons */
@media (width <= 1024px) {
  .pill-btn {
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
  }

  .pill-btn i {
    font-size: 0.9rem;
  }
}

@media (width <= 768px) {
  .nav-actions {
    gap: 0.35rem;
  }

  .pill-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }

  .pill-btn span {
    display: none;
  }

  .pill-btn i::before {
    margin-right: 0;
  }
}

@media (width <= 480px) {
  .brand span {
    display: none;
  }

  .nav-actions {
    gap: 0.25rem;
  }

  .pill-btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.7rem;
  }
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

main {
  margin: 0;
  padding: 0 0 clamp(1.5rem, 4vw, 3rem);
}

@media (width <= 640px) {
  main {
    padding: 0 0 1.5rem;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(145deg, rgb(255 107 53 / 15%), rgb(78 205 196 / 12%));
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 24px;
  padding: clamp(1rem, 4vw, 1.75rem);
  margin-bottom: 2rem;
  box-shadow: 0 20px 60px rgb(0 0 0 / 35%);
}

.hero h1 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero p {
  color: rgb(245 245 245 / 82%);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.hero > div {
  display: flex;
  gap: clamp(0.5rem, 2vw, 0.75rem);
  flex-wrap: wrap;
}

@media (width <= 640px) {
  .hero {
    padding: 1rem;
  }

  .hero > div {
    flex-direction: column;
  }

  .hero .pill-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   LAYOUT (Two-Column Layout)
   ============================================ */

.layout-three-columns {
  display: grid;
  grid-template-columns: 280px 1fr; /* reduced left column */
  gap: 1.25rem;
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
  margin-top: 0;
  padding: 0 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-left {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-content {
  min-width: 0;
}

/* Old layout (conservé pour compatibilité) */
.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Default 3-column layout consolidated above */

/* Responsive 2 colonnes */
@media (width <= 1280px) {
  .layout-three-columns {
    grid-template-columns: 260px 1fr;
    gap: 1rem;
  }
}

@media (width <= 1024px) {
  .layout-three-columns {
    grid-template-columns: 240px 1fr;
    gap: 0.9rem;
  }
}

@media (width <= 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (width <= 768px) {
  .layout-three-columns {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .sidebar-left {
    position: static;
    display: none; /* hide popular/ads on mobile to show deals first */
  }
  .main-content { order: 1; }
}

/* ============================================
   INFO CARDS & SIDEBAR COMPONENTS
   ============================================ */

.info-card {
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f5f5f5;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.info-card h3 i {
  color: #FF6B35;
  font-size: 1.1em;
}

.info-card p {
  color: rgb(245 245 245 / 70%);
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgb(245 245 245 / 80%);
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-list li:hover {
  background: rgb(255 255 255 / 6%);
  color: #4ECDC4;
  transform: translateX(4px);
}

.category-list li i {
  color: #4ECDC4;
  width: 20px;
  text-align: center;
}

.stats-card {
  background: linear-gradient(135deg, rgb(78 205 196 / 8%), rgb(255 107 53 / 8%));
  border-color: rgb(78 205 196 / 20%);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgb(255 255 255 / 4%);
  margin-top: 0.75rem;
}

.stat-item:first-of-type {
  margin-top: 0;
}

.stat-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #4ECDC4;
  line-height: 1;
}

.stat-label {
  font-size: clamp(0.75rem, 1.3vw, 0.85rem);
  color: rgb(245 245 245 / 60%);
  margin-top: 0.25rem;
}

/* ============================================
   AD SECTION
   ============================================ */

.ad-section {
  margin-top: 1.5rem;
}

.ad-card {
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.ad-label {
  font-size: 0.7rem;
  color: rgb(245 245 245 / 50%);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: rgb(255 255 255 / 2%);
  border: 2px dashed rgb(255 255 255 / 10%);
  border-radius: 8px;
  color: rgb(245 245 245 / 40%);
}

.ad-placeholder i {
  font-size: 2rem;
  opacity: 0.5;
}

.ad-placeholder p {
  font-size: 0.85rem;
  margin: 0;
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #f5f5f5;
  font-weight: 600;
  font-size: 0.9rem;
  flex-wrap: wrap;
  padding: 0 0.6rem;
}

/* Popular block heading should be fully white for contrast */
.popular-carousel .section-title { color: #fff; }

@media (width <= 480px) {
  .price-line { flex-wrap: nowrap; }

  .vote-chip {
    flex-shrink: 0;
    margin-left: auto;
  }
}

@media (width <= 768px) {
  .section-title {
    padding: 0;
  }
}

.section-title .dot {
  width: 8px;
  height: 8px;
  background: #FF6B35;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgb(255 107 53 / 15%);
  flex-shrink: 0;
}

.results-count-inline {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgb(245 245 245 / 50%);
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  font-weight: 500;
}

.results-count-inline i {
  color: #4ECDC4;
  font-size: 0.9em;
}
/* ============================================
   DEAL CARDS
   ============================================ */

.deal-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deal-card {
  display: grid;
  grid-template-columns: 110px 1fr; /* compact (mobile first) */
  gap: 0.5rem;
  padding: 0.5rem; /* slightly tighter for compact look */
  border-radius: 12px;
  background: rgb(255 255 255 / 3%); /* dark translucent */
  border: 1px solid rgb(255 255 255 / 4%);
  box-shadow: 0 6px 18px rgb(0 0 0 / 8%);
  transition: transform 0.14s ease, border-color 0.14s ease;
  min-height: auto;
  color: #fff; /* ensure white text */
}

@media (width >= 641px) {
  /* Desktop: image on the LEFT, info on the RIGHT - clean product-like card */
  .deal-card {
    display: grid;
    grid-template-columns: 160px 1fr; /* image left */
    gap: 1rem;
    padding: 0.9rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgb(255 255 255 / 98%), rgb(248 250 252 / 98%));
    color: #0f172a;
    border: 1px solid rgb(226 232 240 / 60%);
    box-shadow: 0 20px 60px rgb(0 0 0 / 8%);
    align-items: center;
  }

  .deal-card .deal-thumb {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgb(0 0 0 / 4%);
    padding: 0; /* remove inner padding so image fills the area */
    box-shadow: 0 10px 30px rgb(0 0 0 / 6%);
  }

  .deal-card .card-title {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
    font-weight: 700;
  }

  .deal-card .desc {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 0.6rem;
    max-height: 3.6rem;
    overflow: hidden;
  }

  .deal-card .deal-meta-line {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 0.35rem;
  }

  .deal-card .price-line {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.35rem;
  }

  .deal-card .deal-cta-btn {
    display: inline-block;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    background: linear-gradient(135deg,#FF6B35,#FF8B5A);
    color: #fff;
    font-weight: 700;
  }
}

.deal-thumb {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 4%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  aspect-ratio: 1 / 1; /* enforce square thumbnails */
  padding: 0;
}

.deal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* preserve original aspect ratio */
  display: block;
  background: #fff;
} 

.deal-card:hover {
  transform: translateY(-2px);
  border-color: rgb(255 107 53 / 18%);
}

@media (width <= 640px) {
  .deal-card {
    grid-template-columns: 33% 1fr; /* make image ~33% on small screens */
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 14px;
  }
} 

@media (width <= 480px) {
  .deal-card {
    grid-template-columns: 33% 1fr; /* keep image around a third */
    gap: 0.6rem;
    padding: 0.6rem;
  }
} 

/* Deal-specific tiny rules migrated to `public/css/components/deals.css` to avoid duplicates */
/* See `public/css/components/deals.css` for authoritative deal-card rules */

@media (width <= 640px) {
  .deal-meta-line {
    font-size: 0.75rem;
    gap: 0.35rem;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 8%);
  font-size: 0.8rem;
  color: #f5f5f5;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (width <= 640px) {
  .pill {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }
}

/* h3 consolidated above */

/* price-line moved to components/utilities.css (authoritative) */

/* ... rest of the sidebar and mini-card styles continue (kept as in visual-baseline) */ 

/* Thumbnails and responsive sizing moved to `public/css/components/deals.css` to avoid duplicates */

@media (width <= 480px) {
  .deal-card .deal-thumb {
    width: 75px;
    height: 75px;
  }
}
/* Text-CTA & deal-related small helpers moved to components/utilities.css and components/deals.css */
/* See `public/css/components/utilities.css` and `public/css/components/deals.css` for authoritative definitions */

@media (width <= 640px) {
  .deal-meta-line {
    font-size: 0.75rem;
    gap: 0.35rem;
  }
}



.desc {
  color: rgb(245 245 245 / 70%);
  line-height: 1.4;
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  overflow-wrap: break-word;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: auto;
  max-height: 2.8em;
}

.price-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
  /* prefer single-line layout; allow horizontal scroll if necessary */
  flex-wrap: nowrap;
  justify-content: space-between; /* push actions/vote to the right */
  padding: 0.35rem 0.55rem;
  background: linear-gradient(135deg, rgb(255 255 255 / 2%), rgb(255 255 255 / 5%));
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 10px;
  overflow-x: auto;
}

/* Ensure inline action elements don't shrink and remain usable */
.price-line > .price, .price-line > .discount, .price-line > .price-old { flex: 0 0 auto; }

.price-line > .price-cta,
.price-line > .vote-inline {
  flex: 0 0 auto;
  margin-left: 0.5rem;
}

@media (width <= 640px) {
  .price-line {
    gap: 0.5rem;
    padding: 0.25rem 0.4rem;
  }

  .price-line > .price {
    font-size: 1rem;
  }

  .vote-inline {
    min-width: auto;
  }

  .vote-chip {
    padding: 0.28rem;
  }
} 

.price {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 700;
  color: #FF9D5C;
}

.price.price-current {
  color: #ffd7b0;
  font-size: clamp(1.08rem, 3vw, 1.32rem);
}

.price.price-current.hot {
  color: #8ef3c5;
  text-shadow: 0 4px 22px rgb(142 243 197 / 25%);
}

.price-old {
  font-size: clamp(0.9rem, 2.6vw, 1.05rem);
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgb(148 163 184 / 80%);
}

.discount {
  background: rgb(255 107 53 / 16%);
  color: #ffba99;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgb(255 107 53 / 28%);
  font-size: 0.82rem;
  white-space: nowrap;
}

.deal-label.hot {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgb(34 197 94 / 16%);
  border: 1px solid rgb(34 197 94 / 28%);
  color: #8ff0b6;
  font-weight: 700;
  font-size: 0.8rem;
}

.score-badge-link {
  text-decoration: none;
}

.score-badge-link:hover {
  transform: translateY(-1px);
}

@media (width <= 640px) {
  .discount {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }
}

.deal-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.deal-actions a {
  flex: 1;
  min-width: 90px;
  text-align: center;
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  padding: 0.4rem;
}

@media (width <= 640px) {
  .deal-actions {
    gap: 0.35rem;
  }

  .deal-actions a {
    min-width: 80px;
    padding: 0.4rem 0.3rem;
    font-size: 0.7rem;
  }

  .deal-actions span {
    display: none;
  }
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 18px;
  padding: clamp(1rem, 3vw, 1.25rem);
  box-shadow: 0 14px 40px rgb(0 0 0 / 25%);
  height: fit-content;
}
/* Popular styles moved to components/popular.css */

/* mini-list, mini-card, mini-thumb, mini-title moved (see public/css/components/popular.css) */


/* Sticky CTA bottom (mobile) - flush to edges, single row */
.cta-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none; /* visible on small screens only */
  background: linear-gradient(90deg, rgb(15 17 26 / 98%), rgb(11 13 18 / 98%));
  border-top: 1px solid rgb(255 255 255 / 6%);
  padding: 0; /* flush to edges */
}

/* Generic button used in sticky area */
.cta-sticky .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  min-height: 56px;
  border: none;
  margin: 0;
  flex: 1 1 50%;
  color: #fff;
  background: rgb(255 255 255 / 3%);
  text-decoration: none;
  font-weight: 700;
}

.cta-sticky .btn-cta.btn-cta-primary {
  background: linear-gradient(135deg, #FF6B35, #FF8B5A);
  color: #0b0d12;
} 

.cta-sticky .btn-cta.btn-secondary {
  background: #0b0d12;
  color: #fff;
}

/* Place both buttons on one row and remove outer spacing */
@media (width <= 640px) {
  .cta-sticky {
    display: flex;
    gap: 0; /* no gap at edges */
  }

  /* Ensure buttons sit edge-to-edge and have subtle inner rounding */
  .cta-sticky .btn-cta:first-child {
    border-bottom-left-radius: 12px;
    border-top-left-radius: 0;
  }

  .cta-sticky .btn-cta:last-child {
    border-bottom-right-radius: 12px;
    border-top-right-radius: 0;
  }

  /* Remove any inline margins from buttons inside sticky bar */
  .cta-sticky .btn-cta {
    margin: 0;
    border-radius: 0;
  }

  /* Slight hover/active feedback for sticky CTA (moved here) */
  .cta-sticky .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgb(0 0 0 / 12%);
  }

  .cta-sticky .btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgb(0 0 0 / 9%);
  }

  /* Pulse animation (one-shot) for sticky CTA on first visit on mobile */
  .cta-sticky .btn-cta.pulse {
    animation: cta-pulse 1s ease-in-out 0s 4; /* 4 loops ~ 4s */
  }

  /* prefer reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .cta-sticky .btn-cta.pulse { animation: none; }
  }

  /* Keyframes for pulse animation */
  @keyframes cta-pulse {
    0% {
      transform: translateY(0) scale(1);
      box-shadow: 0 8px 28px rgb(0 0 0 / 12%);
    }

    50% {
      transform: translateY(-4px) scale(1.03);
      box-shadow: 0 18px 44px rgb(0 0 0 / 18%);
    }

    100% {
      transform: translateY(0) scale(1);
      box-shadow: 0 8px 28px rgb(0 0 0 / 12%);
    }
  }

  /* Prevent page content from being hidden under sticky bar */
  body {
  padding-bottom: 64px;
} 
}

/* Popular carousel moved to components/popular.css */

/* .popular-* rules moved */

.popular-dot.active {
  background: #FF6B35;
  border-color: #FF6B35;
  box-shadow: 0 6px 18px rgb(255 107 53 / 35%);
}

/* Popular pagination moved to `public/css/components/popular.css` to avoid duplication */


@media (width <= 640px) {
  .mini-card {
    grid-template-columns: 48px 1fr;
    gap: 0.6rem;
    padding: 0.5rem;
  }

  .mini-thumb {
  width: 48px;
  height: 48px;
}

.mini-title {
  font-size: 0.8rem;
} 

  .mini-price {
    font-size: 0.75rem;
  }
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty {
  border: 1px dashed rgb(255 255 255 / 20%);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 14px;
  text-align: center;
  color: rgb(245 245 245 / 65%);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  max-width: 1200px;
  margin: clamp(1rem, 3vw, 1.5rem) auto clamp(1.5rem, 4vw, 2.5rem);
  padding: 0 clamp(0.75rem, 2vw, 1.25rem);
  color: rgb(245 245 245 / 60%);
  text-align: center;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* ============================================
   FORMS
   ============================================ */

.form-section {
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 6%);
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  box-shadow: 0 14px 40px rgb(0 0 0 / 25%);
}

.form-section h2 {
  margin-bottom: 1.5rem;
  color: #fff;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: rgb(245 245 245 / 90%);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea {
  width: 100%;
  padding: clamp(0.6rem, 2vw, 0.75rem);
  border: 2px solid rgb(255 255 255 / 10%);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: rgb(255 255 255 / 4%);
  color: #f5f5f5;
  transition: all 0.3s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="url"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: rgb(245 245 245 / 50%);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: #FF6B35;
  background: rgb(255 255 255 / 6%);
  box-shadow: 0 0 0 3px rgb(255 107 53 / 10%);
}

textarea {
  resize: vertical;
  min-height: clamp(100px, 30vh, 150px);
}

.btn,
.btn-parse,
.btn-secondary {
  padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  background-color: #FF6B35;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn:hover,
.btn-parse:hover {
  background-color: #E55A2B;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgb(255 107 53 / 30%);
}

.btn:active,
.btn-parse:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: #4ECDC4;
  margin-left: 0.5rem;
}

.btn-secondary:hover {
  background-color: #45B9B0;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgb(78 205 196 / 30%);
}

@media (width <= 640px) {
  .btn-secondary {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }
}

.url-input-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.url-input-group input {
  flex: 1;
  min-width: 150px;
}

.url-input-group .btn-parse {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (width <= 640px) {
  .url-input-group {
    flex-direction: column;
  }

  .url-input-group input {
    min-width: unset;
  }

  .url-input-group .btn-parse {
    width: 100%;
  }

  .btn-secondary {
    margin-left: 0;
  }
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
  padding: clamp(0.75rem, 2vw, 1rem);
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  overflow-wrap: break-word;
}

.alert-error {
  background-color: rgb(244 67 54 / 15%);
  color: #ff7043;
  border: 1px solid rgb(244 67 54 / 30%);
}

.alert-success {
  background-color: rgb(76 175 80 / 15%);
  color: #81c784;
  border: 1px solid rgb(76 175 80 / 30%);
}

/* ============================================
   PREVIEW & DETAILS
   ============================================ */

.form-preview {
  background: rgb(255 255 255 / 4%);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 10px;
  margin-top: 1.5rem;
  border-left: 4px solid #FF6B35;
  word-break: break-all;
}

.form-preview div {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  color: rgb(245 245 245 / 80%);
  margin-bottom: 0.5rem;
}

.preview-title {
  font-weight: bold;
  margin-top: 1rem;
  color: #fff;
}

.image-preview {
  display: none;
  margin-top: 1rem;
  text-align: center;
}

.image-preview img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 10px 30px rgb(255 107 53 / 20%);
}

@media (width <= 640px) {
  .image-preview img {
    max-height: 200px;
  }
}

.loading {
  display: none;
  text-align: center;
  padding: 1.5rem;
  color: rgb(245 245 245 / 70%);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (width <= 640px) {
  main {
    padding: 1rem 0.75rem 1.5rem;
  }

  .form-section {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .hero {
    padding: 1rem;
  }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  .pill-btn,
  .btn,
  .deal-card,
  .mini-card {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ============================================
   FILTERS & PAGINATION
   ============================================ */

.filters-bar {
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filters-bar .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 10%);
  color: rgb(245 245 245 / 80%);
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.filters-bar .filter-btn:hover {
  background: rgb(255 255 255 / 8%);
  border-color: rgb(78 205 196 / 40%);
  color: #4ECDC4;
  transform: translateY(-2px);
}

.filters-bar .filter-btn.active {
  background: linear-gradient(135deg, rgb(255 107 53 / 20%), rgb(78 205 196 / 20%));
  border-color: #FF6B35;
  color: #fff;
  font-weight: 600;
}

.filters-bar .filter-btn i {
  font-size: 1em;
} 

.results-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgb(245 245 245 / 60%);
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
  padding-top: 0.75rem;
  border-top: 1px solid rgb(255 255 255 / 6%);
}

.results-count i {
  color: #4ECDC4;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgb(255 255 255 / 3%);
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 8%);
}

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 10%);
  color: #f5f5f5;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.page-btn:hover {
  background: rgb(78 205 196 / 20%);
  border-color: #4ECDC4;
  transform: translateY(-2px);
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  color: rgb(245 245 245 / 80%);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.page-num:hover {
  background: rgb(255 255 255 / 8%);
  border-color: rgb(78 205 196 / 40%);
  color: #4ECDC4;
  transform: scale(1.05);
}

.page-num.active {
  background: linear-gradient(135deg, #FF6B35, #FF8B5A);
  border-color: #FF6B35;
  color: #fff;
  box-shadow: 0 4px 15px rgb(255 107 53 / 40%);
}

.page-ellipsis {
  color: rgb(245 245 245 / 40%);
  font-weight: 600;
  padding: 0 0.25rem;
}

@media (width <= 768px) {
  .filters-bar {
    padding: 1rem;
  }

  .category-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
  }

  .page-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .page-num {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .page-numbers {
    gap: 0.35rem;
  }
}

@media (width <= 480px) {
  .category-filters .filter-btn span {
    display: none;
  }

  .category-filters .filter-btn i {
    font-size: 1.1em;
  }

  .page-btn span {
    display: none;
  }
}

/* Vote styles moved to `public/css/components/deals.css` to keep vote visuals canonical across pages */ 

/* Navbar button overrides consolidated in main nav block above to avoid duplication */

/* Desktop & Mobile overrides to ensure stable deal-card layout */

/* Mobile: compact list layout rules moved to `components/deals.css` (canonical source) */
@media (max-width: 640px) {
  /* See public/css/components/deals.css for mobile-level rules and sizing */
}


/* Desktop layout moved to `components/deals.css` to avoid duplication and ensure consistent grid layout */
@media (min-width: 641px) {
  /* See public/css/components/deals.css for desktop layout */
}
 

/* Wide-desktop overrides moved to `components/deals.css`; canonical sizing lives there */
@media (min-width: 1024px) {
  /* See public/css/components/deals.css for wide-desktop sizing */
}



