/* ==============================================================================
   Puru Promos • Web App PWA Design System
   Estética de Alto Nível: Dark Luxury, Glassmorphism, Micro-Animações & Mobile First
   ============================================================================== */

:root {
  /* Paleta Base: Obsidian / Dark Luxury */
  --bg-deep: #080C14;
  --bg-surface: #0E1626;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(22, 33, 58, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 153, 0, 0.4);

  /* Identidades de Marketplaces Oficiais */
  --brand-amazon: #FF9900;
  --brand-amazon-prime: #00A8E1;
  --brand-shopee: #EE4D2D;
  --brand-mercadolivre: #FFE600;
  --brand-ml-dark: #2D3277;

  /* Cores de Ação e Conversão */
  --accent-gold: #F59E0B;
  --accent-green: #10B981;
  --accent-green-glow: rgba(16, 185, 129, 0.25);
  --accent-cyan: #06B6D4;
  --danger-rose: #F43F5E;

  /* Tipografia */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Texto */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #090D16;

  /* Geometria e Efeitos */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow-amz: 0 0 20px rgba(255, 153, 0, 0.2);
  --shadow-glow-green: 0 0 20px rgba(16, 185, 129, 0.25);
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 15% 10%, rgba(255, 153, 0, 0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 30%, rgba(16, 185, 129, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==============================================================================
   Header Superior
   ============================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 20px;
  flex-shrink: 0;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFF 20%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botões do Topo */
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-smooth);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.btn-text-short {
  display: none;
}

.btn-header:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-pwa-install {
  background: linear-gradient(135deg, #FF9900, #F59E0B);
  color: #0B0F19;
  font-weight: 700;
  border: 1px solid #FCD34D;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  position: relative;
}
.btn-pwa-install:hover {
  background: linear-gradient(135deg, #FFA726, #FB8C00);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
}
.btn-pwa-install:active {
  transform: scale(0.96);
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
}

.btn-search-trigger {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34D399;
}
.btn-search-trigger:hover {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: var(--shadow-glow-green);
}

.user-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.user-profile-badge:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quota-indicator {
  font-weight: 600;
  color: #34D399;
}

/* ==============================================================================
   Hero & Barra de Busca Rápida
   ============================================================================== */
.hero-section {
  padding: 24px 20px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 20px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 153, 0, 0.12);
  border: 1px solid rgba(255, 153, 0, 0.28);
  color: #FBBF24;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-title span {
  background: linear-gradient(135deg, #FF9900 0%, #FFE600 50%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Caixa de Busca com Efeito Glow e Seletor Suspenso de Canais Integrado */
.search-bar-wrapper {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
}

.search-input-box {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 5px 8px 5px 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: var(--transition-smooth);
}

.search-input-box:focus-within {
  border-color: #F59E0B;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
  background: rgba(20, 30, 52, 0.98);
}

/* Botão Suspenso de Canais Integrado à Busca */
.btn-channel-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  color: var(--text-primary);
  font-family: var(--font-main);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.btn-channel-dropdown-trigger:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.channel-dropdown-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.channel-dropdown-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #FBBF24;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-dropdown-current #currentCategoryText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-caret {
  font-size: 0.76rem;
  color: #F59E0B;
}

.search-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 8px;
  flex-shrink: 0;
}

.search-input-field-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 140px;
}

.search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-right: 8px;
  margin-left: 6px;
  flex-shrink: 0;
  cursor: text;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.search-input-box:focus-within .search-icon {
  transform: scale(1.18);
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.search-input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-main);
  padding: 8px 14px;
}
.search-input::placeholder {
  color: var(--text-muted);
}

.btn-search-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF9900, #F59E0B);
  color: #0F172A;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}
.btn-search-submit:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

@media (max-width: 720px) {
  .search-input-box {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    padding: 10px;
    gap: 8px;
  }
  .btn-channel-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-md);
  }
  .channel-dropdown-current {
    max-width: none;
  }
  .search-divider {
    display: none;
  }
  .search-input-field-wrapper {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 6px 10px;
  }
  .search-icon {
    display: inline-flex;
    font-size: 1.25rem;
    margin-right: 8px;
    margin-left: 0;
  }
  .search-input {
    width: 100%;
    padding: 6px 0;
  }
  .btn-search-submit {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
    padding: 11px;
  }
}

/* Painel da Grade Completa de Canais */
.all-channels-grid-panel {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 16px;
  background: #0B111E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.2s ease-out;
}
.all-channels-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.all-channels-grid-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.all-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.channel-grid-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.channel-grid-card:hover {
  background: rgba(22, 33, 58, 0.9);
  color: var(--text-primary);
  border-color: #F59E0B;
  transform: translateY(-2px);
}
.channel-grid-card.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: #F59E0B;
  color: #FFF;
}
.channel-grid-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.channel-grid-info {
  flex: 1;
  overflow: hidden;
}
.channel-grid-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel-grid-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==============================================================================
   Barra de Filtros e Status do Feed
   ============================================================================== */
.feed-controls-bar {
  max-width: 1200px;
  margin: 16px auto 12px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.feed-title-block h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-count-pill {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.feed-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: var(--font-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.sort-select:focus {
  border-color: #F59E0B;
}

/* ==============================================================================
   Grid de Ofertas (Cards Responsivos)
   ============================================================================== */
.feed-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6);
}

/* Imagem e Badges */
.card-image-box {
  width: 100%;
  height: 200px;
  background: #FFF;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.35s ease;
}

.offer-card:hover .card-img {
  transform: scale(1.05);
}

/* Badges sobre a Imagem */
.badge-platform {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.badge-platform.amazon {
  background: #131921;
  color: #FF9900;
  border: 1px solid rgba(255, 153, 0, 0.4);
}
.badge-platform.shopee {
  background: #EE4D2D;
  color: #FFF;
}
.badge-platform.mercadolivre {
  background: #FFE600;
  color: #111;
  font-weight: 800;
}

.badge-prime {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #00A8E1;
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0, 168, 225, 0.4);
}

.badge-discount {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #10B981;
  color: #064E3B;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

/* Corpo do Card */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-time-ago {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-compliance-tag {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card-title {
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

/* Bloco de Preços */
.card-price-container {
  margin-top: auto;
  margin-bottom: 14px;
}

.price-original {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.price-current {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 0.88rem;
  font-weight: 700;
  color: #10B981;
}

.price-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #10B981;
  letter-spacing: -0.02em;
}

/* Botão de Compra P0 */
.btn-buy-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFF;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}
.btn-buy-offer:hover {
  background: linear-gradient(135deg, #34D399, #10B981);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.card-disclaimer-tiny {
  margin-top: 8px;
  font-size: 0.66rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==============================================================================
   Paginação & Carregamento
   ============================================================================== */
.pagination-wrapper {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-page {
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-page:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-indicator {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==============================================================================
   Modal de Busca ao Vivo (Chatbot Multimarketplace)
   ============================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #0D1424;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  flex: 1;
}

/* Estado de Carregamento da Busca */
.search-loading-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.search-loading-state.active {
  display: flex;
}

.spinner-radar {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 153, 0, 0.2);
  border-top-color: #FF9900;
  border-right-color: #10B981;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

/* Pódio dos Resultados da Busca */
.search-podium-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.podium-item {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
}
.podium-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(22, 33, 58, 0.9);
}

.podium-rank-badge {
  font-size: 1.4rem;
  font-weight: 800;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}
.podium-rank-badge.rank-1 { background: rgba(245, 158, 11, 0.2); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.4); }
.podium-rank-badge.rank-2 { background: rgba(148, 163, 184, 0.2); color: #E2E8F0; border: 1px solid rgba(148, 163, 184, 0.4); }
.podium-rank-badge.rank-3 { background: rgba(180, 83, 9, 0.2); color: #F59E0B; border: 1px solid rgba(180, 83, 9, 0.4); }

.podium-thumb {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  background: #FFF;
  object-fit: contain;
  padding: 6px;
  flex-shrink: 0;
}

.podium-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.podium-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.podium-store-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: static !important;
}
.podium-store-badge.store-amazon {
  background: #131921;
  color: #FF9900;
  border: 1px solid rgba(255, 153, 0, 0.4);
}
.podium-store-badge.store-mercadolivre {
  background: #FFE600;
  color: #111;
  font-weight: 800;
}
.podium-store-badge.store-shopee {
  background: #EE4D2D;
  color: #FFF;
}

.podium-rank-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.podium-rating {
  font-size: 0.76rem;
  font-weight: 700;
  color: #FBBF24;
}

.podium-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podium-price-container {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.podium-price-old {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.podium-price-current {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #10B981;
}

.podium-discount-badge {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.btn-podium-buy {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: #10B981;
  color: #FFF;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}
.btn-podium-buy:hover {
  background: #34D399;
  transform: translateY(-1px);
}

/* ==============================================================================
   Rodapé Institucional & Compliance P0
   ============================================================================== */
.app-footer {
  background: #05080E;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 20px 30px;
  color: var(--text-secondary);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.community-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-community {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.btn-community.telegram {
  background: rgba(0, 136, 204, 0.15);
  border: 1px solid rgba(0, 136, 204, 0.4);
  color: #38BDF8;
}
.btn-community.telegram:hover {
  background: rgba(0, 136, 204, 0.25);
}
.btn-community.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #4ADE80;
}
.btn-community.whatsapp:hover {
  background: rgba(37, 211, 102, 0.25);
}

.compliance-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.compliance-box strong {
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==============================================================================
   Animações
   ============================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==============================================================================
   Responsividade Mobile-First
   ============================================================================== */
@media (max-width: 640px) {
  .app-header {
    padding: 8px 12px;
    gap: 8px;
    min-height: 52px;
  }
  .brand-container {
    gap: 8px;
    flex-shrink: 0;
  }
  .brand-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 8px;
  }
  .brand-name {
    font-size: 1rem;
    white-space: nowrap;
  }
  .brand-tagline {
    display: none;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .btn-header {
    padding: 6px 10px;
    font-size: 0.76rem;
    height: 34px;
    white-space: nowrap;
  }
  /* No celular, o buscador exibe apenas o ícone; o botão PWA exibe badge destacada */
  .btn-search-trigger .btn-label {
    display: none;
  }
  .btn-search-trigger {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    flex-shrink: 0;
  }
  .btn-search-trigger .btn-icon {
    font-size: 1.1rem;
    margin: 0;
  }
  .btn-pwa-install {
    height: 34px;
    padding: 0 10px;
    border-radius: 17px;
    font-size: 0.74rem;
    font-weight: 700;
    justify-content: center;
    flex-shrink: 0;
  }
  .btn-pwa-install .btn-icon {
    font-size: 0.95rem;
    margin: 0;
  }
  .btn-pwa-install .btn-label {
    display: inline;
  }
  .btn-text-full {
    display: none;
  }
  .btn-text-short {
    display: inline;
  }
  .user-profile-badge {
    padding: 2px 8px 2px 3px;
    gap: 4px;
    font-size: 0.72rem;
  }
  .user-avatar {
    width: 24px;
    height: 24px;
  }
  .hero-title {
    font-size: 1.45rem;
  }
  .feed-grid-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 14px 30px;
  }
  .podium-item {
    flex-direction: column;
    text-align: center;
  }
}
