/* =====================================================================
   Ajustes finais do front (carregado por último).
   - Atalhos de quantidade no modal de pedido
   - Cards de serviço compactos no celular
   ===================================================================== */

/* ---------- Atalhos de quantidade ---------- */
.quantity-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.quantity-presets[hidden] { display: none !important; }
.quantity-preset {
  flex: 1 1 0;
  min-width: 56px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.quantity-preset:hover { border-color: rgba(193, 53, 132, 0.6); }
.quantity-preset:active { transform: scale(0.97); }
.quantity-preset:focus-visible { outline: 2px solid #c13584; outline-offset: 2px; }
.quantity-preset.active {
  background: linear-gradient(135deg, #833ab4, #c13584);
  border-color: transparent;
  color: #fff;
}
#easyfamaRoot #easyfamaApp.theme-light .quantity-preset {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.03);
}
#easyfamaRoot #easyfamaApp.theme-light .quantity-preset.active { color: #fff; }

/* ---------- Cards de serviço compactos no celular ---------- */
@media (max-width: 600px) {
  #services > .container { margin-left: 0 !important; margin-right: 0 !important; }
  #services .service-select { padding-left: 0 !important; padding-right: 0 !important; }
  #services .network-card { padding: 10px !important; }

  #services .options-wrap .ef-grid { gap: 10px !important; }
  #services .option-card {
    display: grid !important;
    grid-template-columns: 44px 1fr;
    column-gap: 12px;
    align-items: start;
    padding: 14px !important;
    min-height: 0 !important;
  }
  #services .option-card .option-icon {
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    font-size: 1.15rem !important;
    border-radius: 12px !important;
  }
  #services .option-card .option-title { font-size: 1.02rem !important; margin-bottom: 2px !important; }
  #services .option-card .option-desc {
    font-size: 0.84rem !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #services .option-card .option-price { display: inline-block; margin-bottom: 10px; }
  #services .option-card .option-actions { margin-top: 0 !important; }
  #services .option-card .option-actions .btn-cta {
    width: 100%;
    min-height: 44px;
  }
}

/* =====================================================================
   Paleta unificada (tema escuro)
   Uma cor de marca (roxo -> rosa) para tudo que é ação/destaque,
   verde só para preço. Sai o laranja/marrom/amarelo que brigava com o roxo.
   ===================================================================== */
:root {
  --ef-violet: #8650df;
  --ef-pink: #c53782;
  --ef-violet-soft: #d9c5ff;
  --ef-grad: linear-gradient(110deg, #8650df, #c53782);
  --ef-grad-text: linear-gradient(100deg, #b889ff 10%, #ff75b5 90%);
  --ef-tint: rgb(40, 33, 58);
  --ef-tint-border: rgba(184, 137, 255, 0.28);
  --ef-price: #6de0aa;
}

/* Gradientes globais (sublinhados de título, cursor do texto animado, bordas animadas):
   eram "arco-íris" amarelo->laranja->rosa->roxo->azul; agora só as cores da marca. */
#easyfamaRoot #easyfamaApp.theme-ig {
  --grad-brand: linear-gradient(135deg, #8650df 0%, #c53782 100%);
  --grad-brand-soft: linear-gradient(120deg, #8650df, #c53782, #b889ff, #8650df, #c53782, #b889ff, #8650df);
  --grad-vibrant: linear-gradient(90deg, #8650df 0%, #c53782 60%, #b889ff 100%);
  --grad-vibrant-soft: linear-gradient(120deg, #8650df, #c53782, #b889ff, #8650df, #c53782, #b889ff, #8650df);
}

/* Logo e título animado sem o laranja no fim do gradiente */
#easyfamaRoot #easyfamaApp.theme-dark .header .logo h1 {
  background-image: linear-gradient(90deg, #9b5cff 0%, #ef4fa2 55%, #b889ff 100%) !important;
}
#easyfamaRoot #easyfamaApp.theme-dark .hero #typing,
#easyfamaRoot #easyfamaApp.theme-dark .hero #typing.replay-typing {
  background-image: var(--ef-grad-text) !important;
}
#easyfamaRoot #easyfamaApp.theme-dark .scroll-progress { background: var(--ef-grad) !important; }

/* Botões de rede no topo: superfícies neutras com leve tom da marca */
#easyfamaRoot #easyfamaApp.theme-dark .hero-platform-button.is-instagram {
  background: linear-gradient(110deg, rgb(46, 30, 60), rgb(34, 30, 52)) !important;
}
#easyfamaRoot #easyfamaApp.theme-dark .hero-platform-button.is-tiktok {
  background: linear-gradient(110deg, rgb(26, 38, 58), rgb(32, 32, 54)) !important;
}
#easyfamaRoot #easyfamaApp.theme-dark .hero-platform-button small { color: var(--ef-price) !important; font-weight: 700; }

/* Cabeçalhos das redes na lista de serviços */
#easyfamaRoot #easyfamaApp.theme-dark .ig-gradient {
  background: linear-gradient(105deg, rgb(52, 30, 64), rgb(38, 31, 66)) !important;
}
#easyfamaRoot #easyfamaApp.theme-dark .tk-gradient {
  background: linear-gradient(105deg, rgb(24, 38, 60), rgb(34, 34, 64)) !important;
}
#easyfamaRoot #easyfamaApp.theme-dark .network-card .check-badge { background: var(--ef-grad) !important; }

/* Banner de combos sem o marrom */
#easyfamaRoot #easyfamaApp.theme-dark .combo-discovery-banner {
  background: linear-gradient(110deg, rgb(46, 32, 70), rgb(52, 28, 60)) !important;
}

/* Cards de combo: borda superior na cor da marca e preço no mesmo verde dos serviços */
#easyfamaRoot #easyfamaApp.theme-dark .combo-card-item::before { background: var(--ef-grad) !important; }
#easyfamaRoot #easyfamaApp.theme-dark .combo-card-item .combo-price { color: var(--ef-price) !important; }

/* Ícones da seção "Por que confiar": todos no mesmo tom */
#easyfamaRoot #easyfamaApp.theme-dark .about .feature:nth-child(n) .feature-icon {
  background: var(--ef-tint) !important;
  color: #cdb1ff !important;
  border-color: var(--ef-tint-border) !important;
}

/* Preço sempre no mesmo verde */
#easyfamaRoot #easyfamaApp.theme-dark .option-price strong { color: var(--ef-price) !important; }

/* ---------- Âncora de preço e prova social no topo ---------- */
#easyfamaRoot #easyfamaApp .hero-price-anchor {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #bbb6c7;
}
.hero-price-anchor b { color: var(--ef-price); font-weight: 800; font-size: 1.05rem; }
@media (max-width: 768px) { .hero-price-anchor { text-align: center; } }
#easyfamaRoot #easyfamaApp.theme-light .hero-price-anchor { color: #5b5470; }
#easyfamaRoot #easyfamaApp.theme-light .hero-price-anchor b { color: #138a55; }
.hero-paid-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(109, 224, 170, 0.08);
  border: 1px solid rgba(109, 224, 170, 0.25);
  color: #d8f7e8;
  font-size: 0.88rem;
}
.hero-paid-proof i { color: var(--ef-price); }
.hero-paid-proof b { color: #fff; }

/* ---------- Barra fixa de compra no celular ---------- */
#mobileBuyBar.mobile-buy-bar { display: none; }
@media (max-width: 768px) {
  #mobileBuyBar.mobile-buy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 990;
    padding: 10px 10px 10px 16px;
    border-radius: 16px;
    background: rgba(19, 21, 33, 0.96);
    border: 1px solid var(--ef-tint-border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  #mobileBuyBar.mobile-buy-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  #mobileBuyBar .mobile-buy-bar-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  #mobileBuyBar .mobile-buy-bar-text b { color: #f8f6fc; font-size: 0.92rem; }
  #mobileBuyBar .mobile-buy-bar-text small { color: var(--ef-price); font-weight: 700; font-size: 0.82rem; }
  #mobileBuyBar .mobile-buy-bar-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--ef-grad);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }
  /* Botão de suporte sobe para não ficar em cima da barra */
  body.has-mobile-bar #mat-float-wrap { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; transition: bottom .25s ease; }
  /* A barra fica atrás dos modais */
  body.modal-open #mobileBuyBar { display: none !important; }
}
#easyfamaRoot #easyfamaApp.theme-light #mobileBuyBar.mobile-buy-bar { background: rgba(255, 255, 255, 0.97); }
#easyfamaRoot #easyfamaApp.theme-light #mobileBuyBar .mobile-buy-bar-text b { color: #1c1530; }
