/* HERO */
.hero-app {
  position: relative;
  padding: 48px 16px 32px;
  background: linear-gradient(135deg,#5f4b8b,#8c6fbb);
  color: #fff;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FEED */
.offers-feed {
  padding: 24px 16px;
}

.offer-card-rich {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  cursor: pointer;
}

.offer-card-rich > a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.offer-info {
  padding: 16px;
}

.offer-cta {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: #5f4b8b;
}

/* CTA INLINE */
.cta-inline-card {
  background: #f6f3ff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin: 24px 0;
}

/* BOTTOM BAR */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid #eee;
}

.bottom-btn {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-weight: 600;
}

.bottom-btn.whatsapp {
  background: #25D366;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* Primário */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

/* WhatsApp */
.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

/* Secundário */
.btn-secondary {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.hero-app h1 {
  font-size: 1.9rem;
}

.hero-app p {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
}

.offer-info h3 {
  color: var(--color-text-main);
}

.offer-info p {
  font-size: 0.9rem;
}

.offer-card-rich {
  transition: transform .2s ease, box-shadow .2s ease;
}

.offer-card-rich:active {
  transform: scale(0.98);
}

/* ===============================
   THUMB + BADGE (APP STYLE)
================================ */

.offer-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.offer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient para leitura */
.offer-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.45) 100%
  );
  pointer-events: none; 
}

/* BADGE */
.offer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  z-index: 2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.offer-badge.hot {
  background: #e11d48;
}

.offer-badge.cupom {
  background: #2563eb;
}

.offer-badge.usa {
  background: #1d4ed8;
}

.offer-badge.flash {
  background: #f59e0b;
}

.offer-card-rich a {
  display: block;
}

.offer-card-rich:hover .offer-thumb img {
  transform: scale(1.03);
}

.offer-thumb img {
  transition: transform .3s ease;
}

/* ===============================
   INFINITE SCROLL UI
================================ */

.infinite-ui {
  max-width: 480px;
  margin: 10px auto 90px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.infinite-loader {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.12);
  border-top-color: rgba(0,0,0,0.45);
  display: none;
  animation: spin .8s linear infinite;
}

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

.infinite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
}

.infinite-sentinel {
  width: 1px;
  height: 1px;
}

/* ===============================
   VIDEO PLAYER – SINGLE
================================ */

.video-highlight {
  margin-bottom: 24px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

.single-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.single-title {
  margin-top: 16px;
}

/* ===============================
   SEARCH OVERLAY (APP-LIKE)
================================ */

.search-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 2000;
  display: none;
  flex-direction: column;
}

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

/* HEADER DA BUSCA */
.search-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.search-header input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 1rem;
  font-family: var(--font-body);
}

.search-header input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* BOTÃO FECHAR */
.search-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #f3f4f6;
  font-size: 18px;
  cursor: pointer;
}

/* RESULTADOS */
.search-results {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.search-hint {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 40px;
}

/* RESULTADO ITEM */
.search-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.search-item a {
  text-decoration: none;
  color: inherit;
}

.search-item h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  margin-bottom: 6px;
}

.search-item p {
  font-size: 0.85rem;
}

/* ===============================
   MENU DRAWER (APP-LIKE)
================================ */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* DRAWER */
.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}

.menu-drawer.active {
  transform: translateX(0);
}

/* HEADER DO MENU */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
}

.menu-header h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
}

.menu-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: #f3f4f6;
  font-size: 18px;
  cursor: pointer;
}

/* CONTEÚDO */
.menu-content {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

/* MENU WP */
.drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.drawer-menu li {
  margin-bottom: 12px;
}

.drawer-menu a {
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--color-text-main);
  font-size: 1rem;
}

/* SEÇÕES */
.drawer-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.drawer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.drawer-chips a {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
}

/* ===============================
   HERO EMAIL OPT-IN
================================ */

.hero-email .jg-newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.hero-email input[type="email"] {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.95rem;
}

.hero-email button {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 600px) {
  .hero-email .jg-newsletter-form {
    flex-direction: column;
  }
}

/* ===============================
   TOAST – FEEDBACK DE AÇÃO
================================ */

.jg-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--color-surface);
  color: var(--color-text-main);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 3000;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}

/* ESTADO VISÍVEL */
.jg-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* VARIANTE DE SUCESSO (EMAIL) */
.jg-toast {
  border-left: 4px solid var(--color-primary);
}

/* ===============================
   HERO – HIERARQUIA DE CTA
================================ */

.hero-actions,
.hero-primary,
.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* BOTÃO WHATSAPP (principal) */
.btn-lg {
  padding: 16px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* DIVISOR DE DECISÃO */
.hero-divider {
  margin: 14px 0 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
}

/* EMAIL (mais discreto) */
.hero-secondary .jg-newsletter-form {
  gap: 8px;
}

.hero-secondary input[type="email"] {
  padding: 13px;
  font-size: 0.9rem;
}

.hero-secondary button {
  padding: 12px;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* SUBTEXTO */
.hero-sub {
  margin-top: 8px;
  margin-bottom: 18px;
}

/* ===============================
   HERO – OPT-IN INLINE
================================ */

.hero-optin-box {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255,255,255,0.12);
  padding: 14px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
}

/* CANAL (BASE) */
.optin-channel {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

/* WHATSAPP */
.optin-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  text-decoration: none;
}

.optin-whatsapp .optin-label {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* EMAIL */
.optin-email .jg-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.optin-email input {
  padding: 10px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.optin-email button {
  padding: 10px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

/* MOBILE FINO */
@media (max-width: 420px) {
  .hero-optin-box {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   CTA INLINE – OPT-IN
================================ */

.cta-inline-sub {
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cta-optin-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .cta-optin-box {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   CTA FINAL – OPT-IN
================================ */

.cta-final-sub {
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.cta-optin-final {
  max-width: 520px;
  margin: 0 auto;
}
