/* ============================================================ */
/* Top Categorias Page Redesign v1.0                            */
/* Apenas mudanças visuais — NÃO altera lógica/funcionalidade   */
/* Escopo: Só afeta elementos dentro de [data-loc*="TopCategoriasPage"] */
/* ============================================================ */

/* ============================================================ */
/* 0. ANIMAÇÕES                                                  */
/* ============================================================ */
@keyframes topr-bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}
@keyframes topr-pulseSoft {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}
@keyframes topr-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(3,92,212,0.15); }
  50% { box-shadow: 0 0 40px rgba(3,92,212,0.25); }
}
@keyframes topr-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes topr-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes topr-fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes topr-reveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================ */
/* 1. CATEGORIES LIST VIEW — HERO SECTION                       */
/* ============================================================ */

/* Hero background — mais premium e suave */
[data-loc="client/src/pages/TopCategoriasPage.tsx:105"] {
  background: linear-gradient(160deg, #EFF6FF 0%, #FFFFFF 40%, #F0F0FF 100%) !important;
  position: relative !important;
  padding-bottom: 0 !important;
}

/* Hero bottom fade gradient */
[data-loc="client/src/pages/TopCategoriasPage.tsx:105"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #fafafa);
  pointer-events: none;
  z-index: 5;
}

/* Hero inner container — centralizar tudo */
[data-loc="client/src/pages/TopCategoriasPage.tsx:110"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding-top: 1.5rem !important;
  padding-bottom: 2.5rem !important;
}
@media (min-width: 640px) {
  [data-loc="client/src/pages/TopCategoriasPage.tsx:110"] {
    padding-top: 2.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

/* Botão "Voltar ao Buscador" — manter à esquerda */
[data-loc="client/src/pages/TopCategoriasPage.tsx:111"] {
  align-self: flex-start !important;
  margin-bottom: 1.5rem !important;
  font-size: 0.875rem !important;
}

/* Title block — centralizar */
[data-loc="client/src/pages/TopCategoriasPage.tsx:119"] {
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

/* Badge row "Categorias Curadas" — centralizar */
[data-loc="client/src/pages/TopCategoriasPage.tsx:120"] {
  justify-content: center !important;
  margin-bottom: 0.75rem !important;
}

/* Badge icon — pulsing animation */
[data-loc="client/src/pages/TopCategoriasPage.tsx:121"] {
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 0.75rem !important;
  animation: topr-pulseSoft 3s ease-in-out infinite !important;
}

/* H1 Title — maior e mais impactante, centralizado */
[data-loc="client/src/pages/TopCategoriasPage.tsx:128"] {
  text-align: center !important;
  font-size: 1.75rem !important;
  line-height: 1.15 !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: -0.02em !important;
}
@media (min-width: 640px) {
  [data-loc="client/src/pages/TopCategoriasPage.tsx:128"] {
    font-size: 2.25rem !important;
  }
}
@media (min-width: 768px) {
  [data-loc="client/src/pages/TopCategoriasPage.tsx:128"] {
    font-size: 2.75rem !important;
  }
}

/* Subtitle — centralizado e mais legível */
[data-loc="client/src/pages/TopCategoriasPage.tsx:131"] {
  text-align: center !important;
  max-width: 32rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: #6b7280 !important;
}
@media (min-width: 640px) {
  [data-loc="client/src/pages/TopCategoriasPage.tsx:131"] {
    font-size: 1.125rem !important;
  }
}

/* ============================================================ */
/* 2. CATEGORIES GRID                                            */
/* ============================================================ */

/* Grid section — mais padding */
[data-loc="client/src/pages/TopCategoriasPage.tsx:141"] {
  padding-bottom: 2rem !important;
}

/* Grid container — mobile-first responsive */
[data-loc="client/src/pages/TopCategoriasPage.tsx:148"] {
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}
@media (min-width: 480px) {
  [data-loc="client/src/pages/TopCategoriasPage.tsx:148"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}
@media (min-width: 1024px) {
  [data-loc="client/src/pages/TopCategoriasPage.tsx:148"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
  }
}
@media (min-width: 1280px) {
  [data-loc="client/src/pages/TopCategoriasPage.tsx:148"] {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem !important;
  }
}

/* ============================================================ */
/* 3. CATEGORY CARDS — Premium redesign                          */
/* ============================================================ */

/* Category card — centralizado, premium feel */
[data-loc*="TopCategoriasPage.tsx:152"] {
  text-align: center !important;
  padding: 0 !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  border: 1px solid #e5e7eb !important;
  background: white !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}
[data-loc*="TopCategoriasPage.tsx:152"]:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.12) !important;
  border-color: #d1d5db !important;
}
[data-loc*="TopCategoriasPage.tsx:152"]:active {
  transform: translateY(-1px) !important;
  transition-duration: 0.1s !important;
}

/* Card icon wrapper — maior e centralizado */
[data-loc*="TopCategoriasPage.tsx:161"] {
  width: 3.5rem !important;
  height: 3.5rem !important;
  border-radius: 1rem !important;
  margin-bottom: 0.5rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transition: transform 0.3s ease !important;
}
[data-loc*="TopCategoriasPage.tsx:152"]:hover [data-loc*="TopCategoriasPage.tsx:161"] {
  transform: scale(1.1) !important;
}

/* Card icon SVG — maior */
[data-loc*="TopCategoriasPage.tsx:165"] {
  width: 1.75rem !important;
  height: 1.75rem !important;
}

/* Card title — maior e mais legível */
[data-loc*="TopCategoriasPage.tsx:167"] {
  font-size: 1.125rem !important;
  line-height: 1.3 !important;
  margin-bottom: 0.375rem !important;
  text-align: center !important;
}
@media (min-width: 640px) {
  [data-loc*="TopCategoriasPage.tsx:167"] {
    font-size: 1.25rem !important;
  }
}

/* Card description — mais legível */
[data-loc*="TopCategoriasPage.tsx:170"] {
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  margin-bottom: 1rem !important;
  text-align: center !important;
  color: #6b7280 !important;
}

/* Card footer (count + arrow) — centralizado */
[data-loc*="TopCategoriasPage.tsx:173"] {
  justify-content: center !important;
  gap: 0.5rem !important;
  padding-top: 0.75rem !important;
  border-top: 1px solid #f3f4f6 !important;
}

/* Count text — maior */
[data-loc*="TopCategoriasPage.tsx:174"] {
  font-size: 1rem !important;
}

/* Arrow icon — animated on hover */
[data-loc*="TopCategoriasPage.tsx:180"] {
  transition: transform 0.3s ease !important;
}
[data-loc*="TopCategoriasPage.tsx:152"]:hover [data-loc*="TopCategoriasPage.tsx:180"] {
  transform: translateX(4px) !important;
}

/* ============================================================ */
/* 4. CATEGORY DETAIL VIEW — HERO                               */
/* ============================================================ */

/* Detail hero section */
[data-loc="client/src/pages/TopCategoriasPage.tsx:246"] {
  position: relative !important;
}
[data-loc="client/src/pages/TopCategoriasPage.tsx:246"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #fafafa);
  pointer-events: none;
  z-index: 5;
}

/* Detail hero container — centralizar */
[data-loc="client/src/pages/TopCategoriasPage.tsx:250"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding-top: 1.5rem !important;
  padding-bottom: 2.5rem !important;
}
@media (min-width: 640px) {
  [data-loc="client/src/pages/TopCategoriasPage.tsx:250"] {
    padding-top: 2.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

/* "Todas as Categorias" button — manter à esquerda */
[data-loc="client/src/pages/TopCategoriasPage.tsx:251"] {
  align-self: flex-start !important;
  margin-bottom: 1.5rem !important;
  font-size: 0.875rem !important;
}

/* Detail title block — centralizar */
[data-loc="client/src/pages/TopCategoriasPage.tsx:260"] {
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

/* Detail badge row (icon + count) — centralizar */
[data-loc="client/src/pages/TopCategoriasPage.tsx:261"] {
  justify-content: center !important;
  margin-bottom: 0.75rem !important;
}

/* Detail icon — bigger */
[data-loc="client/src/pages/TopCategoriasPage.tsx:262"] {
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 0.75rem !important;
}

/* Detail count label — bigger */
[data-loc="client/src/pages/TopCategoriasPage.tsx:268"] {
  font-size: 0.875rem !important;
}

/* Detail H1 — centralizado e maior */
[data-loc="client/src/pages/TopCategoriasPage.tsx:275"] {
  text-align: center !important;
  font-size: 1.75rem !important;
  line-height: 1.15 !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: -0.02em !important;
}
@media (min-width: 640px) {
  [data-loc="client/src/pages/TopCategoriasPage.tsx:275"] {
    font-size: 2.25rem !important;
  }
}
@media (min-width: 768px) {
  [data-loc="client/src/pages/TopCategoriasPage.tsx:275"] {
    font-size: 2.75rem !important;
  }
}

/* Detail description — centralizado */
[data-loc="client/src/pages/TopCategoriasPage.tsx:278"] {
  text-align: center !important;
  max-width: 32rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}
@media (min-width: 640px) {
  [data-loc="client/src/pages/TopCategoriasPage.tsx:278"] {
    font-size: 1.125rem !important;
  }
}

/* ============================================================ */
/* 5. VEHICLES GRID                                              */
/* ============================================================ */

/* Vehicles grid — responsive */
[data-loc="client/src/pages/TopCategoriasPage.tsx:305"],
[data-loc="client/src/pages/TopCategoriasPage.tsx:338"] {
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}
@media (min-width: 640px) {
  [data-loc="client/src/pages/TopCategoriasPage.tsx:305"],
  [data-loc="client/src/pages/TopCategoriasPage.tsx:338"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}
@media (min-width: 1024px) {
  [data-loc="client/src/pages/TopCategoriasPage.tsx:305"],
  [data-loc="client/src/pages/TopCategoriasPage.tsx:338"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
  }
}

/* ============================================================ */
/* 6. VEHICLE CARDS — Premium redesign                           */
/* ============================================================ */

/* Vehicle card root — rounder, better shadow */
[data-loc*="TopCategoriasPage.tsx:421"] {
  border-radius: 1rem !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
}
[data-loc*="TopCategoriasPage.tsx:421"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 48px -12px rgba(0,0,0,0.12) !important;
}

/* Vehicle image area — taller on mobile */
[data-loc*="TopCategoriasPage.tsx:428"] {
  height: 11rem !important;
}
@media (min-width: 640px) {
  [data-loc*="TopCategoriasPage.tsx:428"] {
    height: 12rem !important;
  }
}

/* Vehicle content area — more padding, centered text */
[data-loc*="TopCategoriasPage.tsx:465"] {
  padding: 1rem !important;
  text-align: center !important;
}
@media (min-width: 640px) {
  [data-loc*="TopCategoriasPage.tsx:465"] {
    padding: 1.25rem !important;
  }
}

/* Vehicle title — bigger, centered */
[data-loc*="TopCategoriasPage.tsx:466"] {
  font-size: 1rem !important;
  text-align: center !important;
  margin-bottom: 0.25rem !important;
}
@media (min-width: 640px) {
  [data-loc*="TopCategoriasPage.tsx:466"] {
    font-size: 1.125rem !important;
  }
}

/* Vehicle meta — bigger, centered */
[data-loc*="TopCategoriasPage.tsx:472"] {
  font-size: 0.8125rem !important;
  text-align: center !important;
  margin-bottom: 0.75rem !important;
}

/* Vehicle price grid — rounder, more padding */
[data-loc*="TopCategoriasPage.tsx:476"] {
  gap: 0.5rem !important;
  margin-bottom: 0.75rem !important;
}
[data-loc*="TopCategoriasPage.tsx:476"] > div {
  border-radius: 0.75rem !important;
  padding: 0.75rem !important;
}
/* Price label — bigger */
[data-loc*="TopCategoriasPage.tsx:478"],
[data-loc*="TopCategoriasPage.tsx:484"] {
  font-size: 0.6875rem !important;
}
/* Price value — bigger */
[data-loc*="TopCategoriasPage.tsx:479"],
[data-loc*="TopCategoriasPage.tsx:485"] {
  font-size: 1rem !important;
}

/* Vehicle location — centered, bigger */
[data-loc*="TopCategoriasPage.tsx:491"] {
  justify-content: center !important;
  font-size: 0.75rem !important;
  margin-bottom: 0.875rem !important;
}

/* Vehicle buttons — bigger touch targets */
[data-loc*="TopCategoriasPage.tsx:496"] {
  gap: 0.5rem !important;
  justify-content: center !important;
}
/* Main "Ver Detalhes" button — taller */
[data-loc*="TopCategoriasPage.tsx:497"] {
  height: 2.75rem !important;
  border-radius: 0.75rem !important;
  font-size: 0.8125rem !important;
}
/* Calculator button — taller */
[data-loc*="TopCategoriasPage.tsx:505"] {
  height: 2.75rem !important;
  width: 2.75rem !important;
  border-radius: 0.75rem !important;
}
/* External link button — taller */
[data-loc*="TopCategoriasPage.tsx:513"] {
  height: 2.75rem !important;
  width: 2.75rem !important;
  border-radius: 0.75rem !important;
}

/* ============================================================ */
/* 7. "MOSTRANDO X DE Y" FOOTER — centralizado                  */
/* ============================================================ */
[data-loc="client/src/pages/TopCategoriasPage.tsx:380"] {
  text-align: center !important;
}
[data-loc="client/src/pages/TopCategoriasPage.tsx:381"] {
  font-size: 0.875rem !important;
}

/* ============================================================ */
/* 8. INJECTED ELEMENTS — Stats dashboard, scroll incentives     */
/* ============================================================ */

/* Stats dashboard (injected by JS) */
.topr-stats-dashboard {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}
.topr-stat-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.topr-stat-chip svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.topr-stat-chip .topr-stat-value {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #111827;
}
.topr-stat-chip .topr-stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Real-time indicator (injected by JS) */
.topr-realtime {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
}
.topr-realtime-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: topr-pulseSoft 2s ease-in-out infinite;
}
.topr-realtime-text {
  font-size: 0.6875rem;
  color: #9ca3af;
}

/* Scroll hint arrow (injected by JS) */
.topr-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: opacity 0.4s ease;
}
.topr-scroll-hint span {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  transition: color 0.2s ease;
}
.topr-scroll-hint:hover span {
  color: #035cd4;
}
.topr-scroll-hint svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #d1d5db;
  animation: topr-bounceDown 1.8s ease-in-out infinite;
  transition: color 0.2s ease;
}
.topr-scroll-hint:hover svg {
  color: #035cd4;
}

/* Section teaser strip (mobile only) */
.topr-section-teaser {
  background: linear-gradient(90deg, transparent, rgba(3,92,212,0.04), transparent);
  padding: 0.75rem 0;
  text-align: center;
  display: none;
}
@media (max-width: 639px) {
  .topr-section-teaser {
    display: block;
  }
}
.topr-section-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.topr-section-teaser-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #035cd4;
  animation: topr-pulseSoft 2s ease-in-out infinite;
}
.topr-section-teaser-text {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}
.topr-section-teaser-arrow {
  width: 14px;
  height: 14px;
  color: #035cd4;
  animation: topr-bounceDown 1.8s ease-in-out infinite;
}

/* Mid-page teaser (mobile only) */
.topr-mid-teaser {
  display: none;
  margin: 0 1rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #EFF6FF, #F0F0FF);
  border: 1px solid rgba(59,130,246,0.15);
  padding: 1rem;
  text-align: center;
}
@media (max-width: 639px) {
  .topr-mid-teaser {
    display: block;
  }
}
.topr-mid-teaser-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}
.topr-mid-teaser-badge svg {
  width: 1rem;
  height: 1rem;
  color: #035cd4;
}
.topr-mid-teaser-badge span {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #035cd4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.topr-mid-teaser p {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}
.topr-mid-teaser p strong {
  color: #1f2937;
}
.topr-mid-teaser .topr-mid-arrow {
  margin-top: 0.5rem;
}
.topr-mid-teaser .topr-mid-arrow svg {
  width: 1rem;
  height: 1rem;
  color: #035cd4;
  margin: 0 auto;
  animation: topr-bounceDown 1.8s ease-in-out infinite;
}

/* CTA Banner (injected by JS) */
.topr-cta-banner {
  margin: 0 auto 2rem;
  max-width: 80rem;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .topr-cta-banner {
    padding: 0 1.5rem;
  }
}
.topr-cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(135deg, #035cd4, #2563eb, #4338ca);
  padding: 1.5rem;
  animation: topr-glow 3s ease-in-out infinite;
}
@media (min-width: 640px) {
  .topr-cta-inner {
    padding: 2rem;
  }
}
.topr-cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  filter: blur(60px);
}
.topr-cta-inner::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  filter: blur(40px);
}
.topr-cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.topr-cta-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topr-cta-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: white;
}
.topr-cta-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem;
}
@media (min-width: 640px) {
  .topr-cta-title {
    font-size: 1.25rem;
  }
}
.topr-cta-subtitle {
  font-size: 0.875rem;
  color: rgba(191,219,254,1);
  line-height: 1.5;
  max-width: 28rem;
  margin: 0;
}
.topr-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: white;
  color: #035cd4;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.topr-cta-button:hover {
  background: #EFF6FF;
  transform: translateY(-1px);
}
.topr-cta-button svg {
  width: 1rem;
  height: 1rem;
}

/* Floating scroll FAB (mobile only) */
.topr-scroll-fab {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: none;
}
@media (max-width: 639px) {
  .topr-scroll-fab {
    display: block;
  }
}
.topr-scroll-fab.topr-fab-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}
.topr-scroll-fab button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  background: #035cd4;
  color: white;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(3,92,212,0.3);
  animation: topr-float 2s ease-in-out infinite;
}
.topr-scroll-fab button svg {
  width: 1rem;
  height: 1rem;
}

/* Scroll reveal animation for injected elements */
.topr-scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.topr-scroll-reveal.topr-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================ */
/* 9. CARD COLOR BAR (injected by JS at top of each card)        */
/* ============================================================ */
.topr-card-color-bar {
  height: 4px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

/* ============================================================ */
/* 10. CARD INNER PADDING (added by JS)                          */
/* ============================================================ */
.topr-card-inner-padding {
  padding: 1.25rem !important;
}
@media (min-width: 640px) {
  .topr-card-inner-padding {
    padding: 1.5rem !important;
  }
}

/* ============================================================ */
/* 11. EXPLORE CTA inside cards                                  */
/* ============================================================ */
.topr-explore-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
  margin-top: 0.25rem;
}
.topr-explore-cta span {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
  transition: color 0.2s ease;
}
[data-loc*="TopCategoriasPage.tsx:152"]:hover .topr-explore-cta span {
  color: #035cd4;
}
.topr-explore-arrow {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
[data-loc*="TopCategoriasPage.tsx:152"]:hover .topr-explore-arrow {
  background: rgba(3,92,212,0.1);
}
.topr-explore-arrow svg {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  transition: all 0.3s ease;
}
[data-loc*="TopCategoriasPage.tsx:152"]:hover .topr-explore-arrow svg {
  color: #035cd4;
  transform: translateX(2px);
}

/* ============================================================ */
/* 12. PROGRESS BAR inside category cards                        */
/* ============================================================ */
.topr-progress-wrap {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}
.topr-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}
.topr-progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
