/* ==========================================================
   HOME PREMIUM - CSS Redesign UI/UX
   Foco em conversão, hierarquia visual e design premium
   ========================================================== */

/* Header Brand Colors */
.brand-title--io {
    color: #0085ff !important;
}

.brand-title--CONTINGÊNCIA {
    color: #000000 !important;
}

/* ==============================================
   GOLDEN ACCENT TOKENS (Dourado Premium)
   ============================================== */
:root {
  /* Dourado Premium */
  --ss-gold-primary: #FFC857;
  --ss-gold-secondary: #FFB703;
  --ss-gold-dark: #E6A800;
  --ss-gold-light: #FFD47A;
  --ss-gold-glow: rgba(255, 200, 87, 0.15);
  --ss-gold-glow-strong: rgba(255, 200, 87, 0.25);
  
  /* Gradientes Dourados */
  --ss-gold-gradient: linear-gradient(135deg, #FFB703 0%, #FFC857 50%, #FFD47A 100%);
  --ss-gold-gradient-subtle: linear-gradient(135deg, rgba(255, 183, 3, 0.1) 0%, rgba(255, 200, 87, 0.15) 100%);
  --ss-gold-border-gradient: linear-gradient(90deg, #FFB703, #FFC857, #FFD47A, #FFC857, #FFB703);
  
  /* WhatsApp Green */
  --ss-whatsapp-green: #25D366;
  --ss-whatsapp-green-hover: #1DA851;
  --ss-whatsapp-glow: rgba(37, 211, 102, 0.3);
}

/* ==============================================
   HERO SECTION - Frase de Boas-Vindas PREMIUM
   ============================================== */
.ss-hero-welcome {
  text-align: center;
  padding: 2.5rem 2rem 1.5rem;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 769px) {
  .ss-hero-welcome {
    animation: fadeInUp 0.8s ease-out;
  }
}

.ss-hero-welcome__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e8eeff;
  margin-bottom: 0.85rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.ss-hero-welcome__subtitle {
  font-size: 1.05rem;
  color: #a8c0e8;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-weight: 400;
  max-width: 100%;
}

/* Destaques em dourado */
.ss-text-highlight {
  color: var(--ss-gold-primary);
  font-weight: 500;
}

.ss-hero-welcome__cta {
  font-size: 0.95rem;
  color: var(--ss-gold-primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ss-arrow-bounce {
  display: inline-block;
  animation: bounceArrow 1.5s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Linha decorativa dourada */
.ss-hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ss-gold-primary), transparent);
  margin: 1.25rem auto 0;
  opacity: 0.5;
}

/* ==============================================
   SEÇÃO OFERTAS DO DIA - DESTAQUE PREMIUM
   ============================================== */
.ss-ofertas-premium {
  position: relative;
  padding: 2rem 0;
  margin: 1.5rem 0 2.5rem;
  border-radius: 24px;
  overflow: hidden;
}

/* Background Premium com Gradiente Dourado */
.ss-ofertas-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top center, var(--ss-gold-glow) 0%, transparent 50%),
    radial-gradient(ellipse at bottom center, var(--ss-gold-glow) 0%, transparent 50%),
    linear-gradient(180deg, 
      rgba(255, 200, 87, 0.08) 0%, 
      rgba(26, 37, 101, 0.95) 15%,
      rgba(26, 37, 101, 0.98) 85%,
      rgba(255, 200, 87, 0.08) 100%
    );
  z-index: 0;
  border-radius: 24px;
}

/* Borda Animada Dourada */
.ss-ofertas-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 2px;
  background: var(--ss-gold-border-gradient);
  background-size: 300% 100%;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: goldBorderShimmer 4s linear infinite;
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

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

/* Glow Interno */
.ss-ofertas-premium .ss-ofertas-inner {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

/* Label Ofertas do Dia - PREMIUM */
.ss-ofertas-label-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--ss-gold-gradient);
  border-radius: 50px;
  box-shadow: 
    0 4px 20px rgba(255, 183, 3, 0.4),
    0 0 40px rgba(255, 200, 87, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  animation: labelPulse 3s ease-in-out infinite;
}

.ss-ofertas-label-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  animation: labelShine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes labelShine {
  0%, 100% { transform: translateX(-100%) rotate(45deg); }
  50% { transform: translateX(100%) rotate(45deg); }
}

@keyframes labelPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 183, 3, 0.4), 0 0 40px rgba(255, 200, 87, 0.2); }
  50% { box-shadow: 0 4px 30px rgba(255, 183, 3, 0.6), 0 0 60px rgba(255, 200, 87, 0.3); }
}

.ss-ofertas-label-premium__icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
  0% { transform: scale(1) rotate(-3deg); }
  100% { transform: scale(1.1) rotate(3deg); }
}

.ss-ofertas-label-premium__text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2565;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

/* Countdown Premium */
.ss-ofertas-countdown-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 200, 87, 0.1);
  border: 1px solid rgba(255, 200, 87, 0.3);
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ss-gold-primary);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.ss-ofertas-countdown-premium::before {
  content: '⏱️';
  font-size: 1rem;
}

/* Header da Seção Ofertas */
.ss-ofertas-header-premium {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.ss-ofertas-header-premium__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ss-ofertas-header-premium__hint {
  font-size: 0.9rem;
  color: var(--ss-dark-text-muted);
  font-style: italic;
}

/* ==============================================
   SEÇÃO PROCESSO DE COMPRA - COMPACTA
   ============================================== */
.ss-purchase-process {
  padding: 1.5rem 1.5rem;
  margin: 1.5rem 0;
  background: linear-gradient(180deg, 
    rgba(26, 37, 101, 0.3) 0%, 
    rgba(42, 53, 117, 0.4) 50%,
    rgba(26, 37, 101, 0.3) 100%
  );
  border-radius: 16px;
  position: relative;
}

.ss-purchase-process--compact {
  padding: 1.25rem 1.25rem;
}

.ss-purchase-process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ss-dark-border), transparent);
}

/* Título da Seção - COMPACTO */
.ss-purchase-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.ss-purchase-header__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: none; /* Escondido no desktop */
}

.ss-purchase-header__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ss-dark-text);
  margin-bottom: 0.25rem;
}

.ss-purchase-header__subtitle {
  font-size: 0.9rem;
  color: var(--ss-dark-text-muted);
  font-weight: 400;
}

/* Grid de Cards do Processo - COMPACTO */
.ss-purchase-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* Card Individual do Processo - COMPACTO */
.ss-step-card {
  background: var(--ss-card-gradient);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px solid var(--ss-dark-border);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.ss-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ss-primary-500), var(--ss-highlight-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ss-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--ss-primary-500);
  box-shadow: 0 8px 25px rgba(92, 184, 255, 0.12);
}

.ss-step-card:hover::before {
  opacity: 1;
}

/* Ícones APENAS no mobile */
.ss-step-card__icon {
  display: none;
}

.ss-step-card__icon--mobile-only {
  display: none;
}

.ss-step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--ss-primary-500), var(--ss-highlight-blue));
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  box-shadow: 0 3px 10px rgba(92, 184, 255, 0.25);
}

.ss-step-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ss-dark-text);
  margin-bottom: 0.5rem;
}

.ss-step-card__desc {
  font-size: 0.8rem;
  color: var(--ss-dark-text-muted);
  line-height: 1.5;
}

/* Aviso de Urgência - REMOVIDO */
.ss-purchase-urgency {
  display: none;
}

/* Botão WhatsApp CTA - COMPACTO */
.ss-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--ss-whatsapp-green);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 16px var(--ss-whatsapp-glow),
    0 0 0 0 var(--ss-whatsapp-glow);
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

.ss-whatsapp-cta:hover {
  background: var(--ss-whatsapp-green-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 6px 24px var(--ss-whatsapp-glow),
    0 0 30px var(--ss-whatsapp-glow);
}

.ss-whatsapp-cta:active {
  transform: translateY(0) scale(0.98);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 16px var(--ss-whatsapp-glow), 0 0 0 0 var(--ss-whatsapp-glow); }
  50% { box-shadow: 0 4px 16px var(--ss-whatsapp-glow), 0 0 0 6px rgba(37, 211, 102, 0.08); }
}

.ss-whatsapp-cta__icon {
  font-size: 1.1rem;
}

.ss-purchase-cta-wrapper {
  text-align: center;
}

/* ==============================================
   ANIMAÇÕES GLOBAIS
   ============================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animação de entrada escalonada para cards */
.ss-step-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.ss-step-card:nth-child(1) { animation-delay: 0.1s; }
.ss-step-card:nth-child(2) { animation-delay: 0.2s; }
.ss-step-card:nth-child(3) { animation-delay: 0.3s; }

/* ==============================================
   RESPONSIVIDADE MOBILE
   ============================================== */
@media (max-width: 992px) {
  .ss-purchase-steps {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .ss-step-card {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 1rem;
    gap: 0.75rem;
  }
  
  /* Mostrar ícones apenas no mobile */
  .ss-step-card__icon--mobile-only {
    display: block !important;
    font-size: 1.75rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(92, 184, 255, 0.3));
  }
  
  .ss-step-card__content {
    flex: 1;
  }
  
  .ss-step-card__title {
    margin-bottom: 0.35rem;
  }
  
  .ss-step-card__number {
    display: none;
  }
}

@media (max-width: 768px) {
  .ss-hero-welcome {
    padding: 1.75rem 1rem 1.25rem;
  }
  
  .ss-hero-welcome__title {
    font-size: 1.25rem;
  }
  
  .ss-hero-welcome__subtitle {
    font-size: 0.95rem;
  }
  
  .ss-ofertas-premium {
    margin: 1rem 0 1.5rem;
    border-radius: 14px;
  }
  
  .ss-ofertas-premium .ss-ofertas-inner {
    padding: 1rem;
  }
  
  .ss-ofertas-header-premium {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  
  .ss-ofertas-label-premium {
    padding: 0.5rem 1rem;
  }
  
  .ss-ofertas-label-premium__text {
    font-size: 0.95rem;
  }
  
  .ss-purchase-process {
    padding: 1.25rem 1rem;
    margin: 1rem 0;
  }
  
  .ss-purchase-header__title {
    font-size: 1.15rem;
  }
  
  .ss-whatsapp-cta {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .ss-hero-welcome__title {
    font-size: 1.15rem;
  }
  
  .ss-hero-welcome__subtitle {
    font-size: 0.9rem;
  }
  
  .ss-ofertas-countdown-premium {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }
  
  .ss-step-card {
    padding: 0.85rem;
  }
  
  .ss-step-card__icon--mobile-only {
    font-size: 1.5rem;
  }
  
  .ss-step-card__title {
    font-size: 0.9rem;
  }
  
  .ss-step-card__desc {
    font-size: 0.8rem;
  }
}

/* ==============================================
   HOVER EFFECTS E MICRO-INTERAÇÕES
   ============================================== */

/* Efeito hover nos cards de oferta (mantém design azul) */
.ss-ofertas-premium .ss-ativo-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ss-ofertas-premium .ss-ativo-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 200, 87, 0.1);
}

/* Glow suave ao passar o mouse na seção de ofertas */
.ss-ofertas-premium:hover::before {
  background: 
    radial-gradient(ellipse at top center, var(--ss-gold-glow-strong) 0%, transparent 50%),
    radial-gradient(ellipse at bottom center, var(--ss-gold-glow-strong) 0%, transparent 50%),
    linear-gradient(180deg, 
      rgba(255, 200, 87, 0.12) 0%, 
      rgba(26, 37, 101, 0.95) 15%,
      rgba(26, 37, 101, 0.98) 85%,
      rgba(255, 200, 87, 0.12) 100%
    );
}

/* ==============================================
   ATIVOS SECTION - Header, Pagination & Views
   ============================================== */

/* Header com título e controles */
.ss-ativos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 200, 87, 0.15);
}

.ss-ativos-header__left {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.ss-ativos-header .ss-ativos-title {
  margin: 0;
  font-size: 1.5rem;
}

.ss-ativos-count {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.ss-ativos-header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Paginação Mini (topo) */
.ss-pagination-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.ss-pagination-mini__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 200, 87, 0.1);
  color: var(--ss-gold-primary, #FFC857);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ss-pagination-mini__btn:hover {
  background: var(--ss-gold-primary, #FFC857);
  color: #0a0a0f;
}

.ss-pagination-mini__current {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Toggle de Visualização */
.ss-view-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.ss-view-toggle__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ss-view-toggle__btn:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.ss-view-toggle__btn.active {
  background: var(--ss-gold-primary, #FFC857);
  color: #0a0a0f;
}

/* Grid de Produtos - Modo Lista */
.ss-ativos-grid--list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ss-ativos-grid--list .ss-card-destaque {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  max-width: 100%;
  padding: 1rem;
}

.ss-ativos-grid--list .ss-card-destaque__container {
  display: contents;
}

.ss-ativos-grid--list .ss-card-destaque__icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  margin: 0;
}

.ss-ativos-grid--list .ss-card-destaque__title {
  grid-column: 2;
  margin: 0;
  font-size: 1rem;
}

.ss-ativos-grid--list .ss-card-destaque__info {
  display: none;
}

.ss-ativos-grid--list .ss-card-destaque__footer {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 0;
  border-top: none;
  margin-top: 0;
}

/* Paginação Inferior */
.ss-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 200, 87, 0.15);
}

.ss-pagination__info {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.ss-pagination__total {
  color: rgba(255, 255, 255, 0.4);
  margin-left: 0.25rem;
}

.ss-pagination__buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ss-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  background: rgba(255, 200, 87, 0.1);
  color: var(--ss-gold-primary, #FFC857);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.ss-pagination__btn:hover {
  background: var(--ss-gold-primary, #FFC857);
  color: #0a0a0f;
}

.ss-pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.ss-pagination__num:hover {
  background: rgba(255, 200, 87, 0.15);
  color: var(--ss-gold-primary, #FFC857);
}

.ss-pagination__num.active {
  background: var(--ss-gold-primary, #FFC857);
  color: #0a0a0f;
}

.ss-pagination__dots {
  color: rgba(255, 255, 255, 0.3);
  padding: 0 0.25rem;
}

/* ==============================================
   PAGINATION & VIEW TOGGLE - RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
  .ss-ativos-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .ss-ativos-header__right {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Modo lista simplificado no mobile */
  .ss-ativos-grid--list .ss-card-destaque {
    grid-template-columns: 60px 1fr;
    gap: 0.75rem;
    padding: 0.875rem;
  }
  
  .ss-ativos-grid--list .ss-card-destaque__icon {
    width: 50px;
    height: 50px;
  }
  
  .ss-pagination__buttons {
    gap: 0.375rem;
  }
  
  .ss-pagination__btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .ss-pagination__num {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}
