/* =====================================================
   IPTVX — Folha de Estilos Principal
   Fonte: Montserrat (Google Fonts)
   Tema: escuro, inspirado em funplaypro.org
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #05060d;
  --bg2:      #0a0b18;
  --bg3:      #10121f;
  --card:     #12141f;
  --border:   rgba(255,255,255,.08);
  --tx:       #f4f5fb;
  --mu:       #a4a9c2;
  --or:       #db8a1a;
  --or2:      #f5a83c;
  --bl:       #3b3ae0;
  --bl2:      #4a40e0;
  --ok:       #22c55e;
  --er:       #ff6b78;
  --radius:   12px;
  --shadow:   0 4px 32px rgba(0,0,0,.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--tx);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--or2); text-decoration: none; }
a:hover { color: var(--or); }

img { max-width: 100%; display: block; }

/* ---------- Utilitários ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); font-family: inherit;
  font-weight: 700; font-size: .95rem; cursor: pointer; border: none;
  transition: all .2s; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--or) 0%, var(--or2) 100%);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }
.btn-secondary {
  background: transparent; color: var(--or2);
  border: 2px solid var(--or2);
}
.btn-secondary:hover { background: var(--or2); color: #fff; }
.btn-green { background: var(--ok); color: #fff; }
.btn-green:hover { filter: brightness(1.1); color: #fff; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; border-radius: 16px; }
.btn-full { width: 100%; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge-or { background: rgba(219,138,26,.2); color: var(--or2); }
.badge-ok { background: rgba(34,197,94,.15); color: var(--ok); }

/* ---------- Cabeçalho ---------- */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,6,13,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  max-width: 1100px; margin: 0 auto;
  padding: 14px 20px;
}
.site-logo img { height: 40px; width: auto; }
.site-tagline {
  font-size: .78rem; color: var(--mu); font-weight: 600;
  letter-spacing: .04em; white-space: nowrap;
}
nav { margin-left: auto; }
nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
nav ul li { position: relative; }
nav ul li a {
  color: var(--tx); font-size: .875rem; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; display: block;
  transition: background .15s, color .15s;
}
nav ul li a:hover { background: var(--border); color: var(--or2); }

/* Dropdown */
nav ul li ul {
  display: none; position: absolute; top: 100%; left: 0; padding-top: 8px;
  min-width: 230px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px; gap: 2px;
  flex-direction: column; box-shadow: var(--shadow);
  z-index: 200;
}
nav ul li:hover ul { display: flex; }
nav ul li ul li a { font-size: .82rem; padding: 8px 12px; border-radius: 6px; }

.header-ctas { display: flex; gap: 10px; margin-left: 16px; flex-shrink: 0; }
.header-ctas .btn { padding: 10px 20px; font-size: .82rem; border-radius: 10px; }

/* Hamburguer mobile */
.nav-toggle {
  display: none; background: none; border: none; color: var(--tx);
  font-size: 1.5rem; cursor: pointer; margin-left: auto;
}

/* ---------- Hero ---------- */
#hero {
  padding: 100px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74,64,224,.18) 0%, transparent 70%);
  text-align: center;
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('assets/iptvx-avatar.png') center / 600px no-repeat;
  opacity: .04; pointer-events: none;
}
.hero-badge { margin-bottom: 20px; }
#hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--or2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.1rem; color: var(--mu); max-width: 540px; margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; margin-top: 60px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2rem; font-weight: 900; color: var(--or2); display: block;
}
.stat-label { font-size: .8rem; color: var(--mu); font-weight: 600; }

/* ---------- Aviso evento ---------- */
.alert-event {
  background: linear-gradient(90deg, rgba(219,138,26,.15), rgba(219,138,26,.05));
  border: 1px solid rgba(219,138,26,.35);
  border-radius: var(--radius); padding: 14px 20px;
  color: var(--or2); font-size: .88rem; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0;
}
.alert-event .alert-icon { font-size: 1.3rem; flex-shrink: 0; }

/* ---------- Seções genéricas ---------- */
section { padding: 80px 0; }
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--or2); margin-bottom: 12px; display: block;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800;
  margin-bottom: 16px; line-height: 1.2;
}
.section-sub { color: var(--mu); font-size: .95rem; max-width: 580px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* ---------- Features ---------- */
#features { background: var(--bg2); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(219,138,26,.3); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--mu); }

/* ---------- Planos ---------- */
#planos { }
.planos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
  max-width: 900px; margin: 0 auto;
}
.plano-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 28px;
  position: relative; transition: transform .2s;
}
.plano-card:hover { transform: translateY(-4px); }
.plano-card.destaque {
  border-color: var(--or); background: linear-gradient(180deg, #1a1620 0%, var(--card) 100%);
}
.plano-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--or), var(--or2));
  color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 16px;
  border-radius: 20px; white-space: nowrap; letter-spacing: .04em;
  text-transform: uppercase;
}
.plano-telas { font-size: .85rem; color: var(--mu); font-weight: 600; margin-bottom: 20px; }
.plano-preco { margin-bottom: 28px; }
.plano-preco .moeda { font-size: 1rem; font-weight: 700; vertical-align: top; line-height: 2; }
.plano-preco .valor { font-size: 3rem; font-weight: 900; line-height: 1; }
.plano-preco .periodo { font-size: .82rem; color: var(--mu); font-weight: 600; }
.plano-features { list-style: none; margin-bottom: 28px; }
.plano-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; padding: 6px 0; border-bottom: 1px solid var(--border);
}
.plano-features li:last-child { border-bottom: none; }
.plano-features .ico { color: var(--ok); font-size: 1rem; }

/* ---------- Teste Grátis CTA ---------- */
#teste-cta {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.teste-cta-inner {
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
}
.teste-cta-txt { flex: 1; min-width: 260px; }
.teste-cta-txt h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.teste-cta-txt p { color: var(--mu); }
.teste-cta-action { flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------- Apps ---------- */
#apps { background: var(--bg2); }
.apps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px;
}
.app-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 18px;
  display: flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: .9rem;
  transition: border-color .2s, transform .2s; color: var(--tx);
}
.app-card:hover { border-color: var(--or2); transform: translateY(-2px); color: var(--tx); }
.app-icon { font-size: 1.6rem; }
.app-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }

.app-card-destaque { border: 2px solid var(--or) !important; }
.app-card-destaque:hover { border-color: var(--or2) !important; }

/* ---------- Depoimentos ---------- */
#depoimentos { }
.dep-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.dep-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.dep-stars { color: var(--or2); font-size: 1rem; margin-bottom: 12px; }
.dep-text { font-size: .9rem; color: var(--mu); margin-bottom: 20px; font-style: italic; }
.dep-text::before { content: '"'; }
.dep-text::after { content: '"'; }
.dep-author { display: flex; align-items: center; gap: 12px; }
.dep-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bl2), var(--or));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff; flex-shrink: 0;
}
.dep-name { font-weight: 700; font-size: .9rem; }
.dep-city { font-size: .78rem; color: var(--mu); }

/* ---------- FAQ ---------- */
#faq { background: var(--bg2); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; background: var(--card); border: none; color: var(--tx);
  font-family: inherit; font-size: .95rem; font-weight: 700;
  padding: 20px 24px; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .ico { font-size: 1.1rem; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q .ico { transform: rotate(45deg); }
.faq-a {
  display: none; padding: 0 24px 20px; color: var(--mu); font-size: .9rem;
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ---------- Footer ---------- */
#site-footer {
  background: var(--bg3); border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 36px; }
.footer-desc { font-size: .85rem; color: var(--mu); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: .82rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--or2); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .85rem; color: var(--mu); }
.footer-col ul li a:hover { color: var(--or2); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: .8rem; color: var(--mu); }
.footer-copy a { color: var(--mu); }
.footer-copy a:hover { color: var(--or2); }

/* ---------- WhatsApp flutuante ---------- */
#whatsapp-float {
  position: fixed; bottom: 28px; right: 24px; z-index: 999;
  display: flex; align-items: center; gap: 12px;
}
.whatsapp-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s; cursor: pointer;
  text-decoration: none;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); color: #fff; }
.whatsapp-label {
  background: #25d366; color: #fff; padding: 8px 14px;
  border-radius: 20px; font-size: .82rem; font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,.3); white-space: nowrap;
  opacity: 0; transform: translateX(8px); transition: all .2s;
  pointer-events: none;
}
#whatsapp-float:hover .whatsapp-label { opacity: 1; transform: translateX(0); }

/* ---------- Notificações fake ---------- */
#notif-container {
  position: fixed; bottom: 100px; left: 20px; z-index: 998;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.notif-toast {
  background: linear-gradient(135deg, #1a1aff, #5540ff);
  border: 2px solid rgba(160,150,255,.7);
  border-radius: var(--radius); padding: 14px 18px;
  box-shadow: 0 6px 32px rgba(80,60,255,.7), 0 0 0 1px rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 320px;
  animation: toastIn .4s ease; pointer-events: none;
}
.notif-toast.hiding { animation: toastOut .4s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-20px); }
}
.notif-icon { font-size: 1.6rem; flex-shrink: 0; }
.notif-title { font-size: .78rem; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.notif-body  { font-size: .82rem; color: #fff; }
.notif-plan  { font-size: .75rem; font-weight: 700; color: var(--or2); margin-top: 2px; }

/* ---------- Formulário ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--mu);
  margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; color: var(--tx); font-family: inherit;
  font-size: .95rem; padding: 14px 16px;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--or2);
}
.form-group input::placeholder { color: rgba(164,169,194,.5); }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input { width: auto; }
.form-check span { font-size: .88rem; color: var(--mu); }

/* ---------- Wizard Assinar ---------- */
.wizard-steps {
  display: flex; gap: 0; margin-bottom: 40px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
}
.wizard-step {
  flex: 1; padding: 12px 10px; text-align: center;
  font-size: .78rem; font-weight: 700; color: var(--mu);
  background: var(--card); border-right: 1px solid var(--border);
  transition: all .2s;
}
.wizard-step:last-child { border-right: none; }
.wizard-step.active { background: var(--or); color: #fff; }
.wizard-step.done { background: var(--ok); color: #fff; }

.plano-opt {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 24px; cursor: pointer;
  transition: all .2s; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.plano-opt:hover, .plano-opt.selected { border-color: var(--or2); background: rgba(245,168,60,.06); }
.plano-opt-name { font-weight: 800; font-size: 1.1rem; }
.plano-opt-preco { font-weight: 900; font-size: 1.3rem; color: var(--or2); }
.plano-opt-info { font-size: .82rem; color: var(--mu); }

/* ---------- Step page wrappers ---------- */
.page-hero {
  padding: 60px 0 50px; text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(74,64,224,.15) 0%, transparent 60%);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 12px; }
.page-hero p { color: var(--mu); font-size: 1rem; }

.form-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px; max-width: 540px; margin: 0 auto;
}

/* ---------- Resumo checkout ---------- */
.resumo-linha {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.resumo-linha:last-child { border-bottom: none; }
.resumo-linha .label { color: var(--mu); }
.resumo-linha .value { font-weight: 700; }
.resumo-total .value { font-size: 1.3rem; color: var(--or2); }

/* ---------- Beneficios Teste ---------- */
.beneficios-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
  margin-bottom: 30px;
}
.beneficio {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; align-items: flex-start; gap: 12px;
}
.beneficio .ico { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.beneficio h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.beneficio p  { font-size: .8rem; color: var(--mu); }

/* ---------- Responsivo ---------- */
@media (max-width: 768px) {
  nav ul { display: none; }
  .nav-toggle { display: block; }
  nav.open ul {
    display: flex; flex-direction: column; position: fixed;
    inset: 0; top: 70px; background: var(--bg); padding: 20px;
    z-index: 999; gap: 4px;
  }
  nav.open ul li ul { display: none; position: static; box-shadow: none; border: none; padding-left: 20px; }
  nav.open ul li:hover ul { display: flex; }
  .header-ctas { display: none; }
  .header-inner { flex-wrap: wrap; }
  .site-tagline { display: none; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .teste-cta-inner { flex-direction: column; text-align: center; }
  .teste-cta-action { width: 100%; align-items: center; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; }

  .wizard-step { font-size: .7rem; padding: 10px 6px; }

  #whatsapp-float { bottom: 20px; right: 16px; }
  #notif-container { left: 10px; bottom: 90px; }
  .notif-toast { min-width: 240px; }
}

/* ---------- Nav: seta inline e botão Guia ---------- */
.has-dropdown > a { white-space: nowrap; }
.nav-arrow { display: inline-block; }
.nav-guia {
  background: linear-gradient(135deg, var(--or), var(--or2));
  color: #fff !important; border-radius: 20px;
  padding: 6px 14px !important; white-space: nowrap;
  font-size: .8rem !important;
}
.nav-guia:hover { opacity: .9; background: linear-gradient(135deg, var(--or), var(--or2)); }

/* ---------- Depoimentos: foto circular ---------- */
.dep-photo {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}

/* ---------- CTA buttons: mesmo tamanho ---------- */
.teste-cta-action {
  align-items: stretch !important;
  min-width: 300px;
}
.btn-cta-equal {
  display: flex !important;
  width: 100% !important;
  justify-content: center;
  box-sizing: border-box;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* ---------- Página de tutorial ---------- */
.whatsapp-btn {
  position: fixed; bottom: 28px; right: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whatsapp-btn:hover { transform: scale(1.1); color: #fff; }
