:root{
  --brand-dark:#2f3840; --red:#e53935; --yellow:#f4b400; --blue:#1e88e5; --gray:#9e9e9e; --bg:#ffffff;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#1c1f22;background:var(--bg)}
.header{position:sticky;top:0;z-index:10;background:var(--bg);border-bottom:1px solid #edf0f3}
.header-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:10px 16px}
.brand{display:flex;align-items:center;gap:12px}
.brand img{width:100px;height:100px;object-fit:contain}
.brand .title{display:flex;flex-direction:column;line-height:1}
.brand .title b{font-size:28px;color:var(--brand-dark);letter-spacing:.5px}
.brand .subtitle{font-size:12px;color:#6b7480;letter-spacing:1.5px}
.support a{display:inline-flex;align-items:center;gap:8px;background:var(--blue);color:#fff;text-decoration:none;padding:10px 14px;border-radius:10px;font-weight:600;box-shadow:0 4px 14px rgba(30,136,229,.2)}
.support .wa{width:18px;height:18px;display:inline-block;background:conic-gradient(from 0deg,#43d854 0 90deg,#25d366 90deg 100%);border-radius:50%}
.hero{max-width:1200px;margin:10px auto 0;padding:0 16px 16px}
.hero-banner{width:100%;border-radius:20px;padding:18px;background:linear-gradient(135deg,var(--red),var(--yellow),var(--blue));color:#fff;box-shadow:0 8px 30px rgba(0,0,0,.12);display:flex;align-items:center;justify-content:space-between;gap:18px}
.hero h1{margin:0;font-size:28px}
.hero p{margin:6px 0 0;opacity:.95}
.grid{max-width:1200px;margin:18px auto 60px;padding:0 16px;display:grid;gap:16px;grid-template-columns:repeat(3,1fr)}
@media (max-width:980px){.grid{grid-template-columns:repeat(2,1fr)}.brand .title b{font-size:22px}}
@media (max-width:640px){.grid{grid-template-columns:1fr}.brand img{width:72px;height:72px}.brand .title b{font-size:20px}}
.card{background:#fff;border:1px solid #eef0f3;border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.06);display:flex;flex-direction:column}
.thumb{position:relative;aspect-ratio:16/9;background:#f5f7fb}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.card-body{padding:14px}
.card h3{margin:0 0 6px;font-size:18px;color:var(--brand-dark)}
.card p{margin:0 0 10px;color:#5b6570;font-size:14px}
.badges{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.badge{font-size:11px;padding:4px 8px;border-radius:999px;border:1px solid #e8ebef;background:#fff}
.actions{display:flex;gap:10px}
.btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;cursor:pointer;font-weight:700;padding:12px 14px;border-radius:12px;text-decoration:none}
.btn.accessar{background:var(--blue);color:#fff}
.btn.info{background:var(--gray);color:#fff}

/* Modal base */
.modal{position:fixed;inset:0;display:none;background:rgba(16,20,24,.66);z-index:50}
.modal.open{display:block}
.modal-inner{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:18px}
.sheet{width:min(920px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.25)}
.sheet-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #f0f2f5}
.sheet-title{display:flex;align-items:center;gap:10px}
.sheet-title .dot{width:12px;height:12px;border-radius:50%}
.sheet-body{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;padding:16px}
@media (max-width:800px){.sheet-body{grid-template-columns:1fr}}
.video{width:100%;aspect-ratio:16/9;border-radius:12px;background:black;overflow:hidden}

/* Gate + controles */
.gate{margin-top:10px;background:#fff3cd;color:#5f4b00;border:1px solid #ffeeba;border-radius:12px;padding:10px 12px;font-size:13px;display:none}
.gate.show{display:block}
.controls{display:flex;gap:10px;margin-top:10px}
.watch,.download{padding:12px 14px;border-radius:12px;border:none;font-weight:800}
.watch{background:var(--blue);color:#fff;opacity:.5;cursor:not-allowed}
.watch.enabled{opacity:1;cursor:pointer}
.form label{font-size:12px;color:#5b6570}
.form input{width:100%;padding:10px 12px;border:1px solid #e0e4ea;border-radius:10px;margin-top:6px;margin-bottom:12px;font-size:14px}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:560px){.form .row{grid-template-columns:1fr}}
.form .submit{background:var(--yellow);color:#2f3840;border:none;padding:12px;border-radius:12px;font-weight:800;width:100%;margin-top:4px}
.form .download{width:100%;padding:12px;border-radius:12px;font-weight:800;border:none;background:#cfd8dc;color:#556;cursor:not-allowed;margin-top:8px}
.form .download.enabled{background:var(--red);color:#fff;cursor:pointer}
.close{background:none;border:none;font-size:18px;cursor:pointer;color:#5b6570}
.footer-note{font-size:12px;color:#6b7480;padding:10px 16px 20px}

/* Modal Informações */
.info-body{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;padding:16px}
@media (max-width:800px){.info-body{grid-template-columns:1fr}}
.info-hero{width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;border:1px solid #eef0f3;background:#f5f7fb}
.info-hero img{width:100%;height:100%;object-fit:cover;display:block}
.info-text{font-size:14px;color:#5b6570}
.info-tags{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 12px}
.info-tags .tag{font-size:11px;padding:4px 8px;border-radius:999px;border:1px solid #e8ebef;background:#fff}
.btn-sair{margin-top:8px;background:#eceff1;color:#2f3840;border:none;border-radius:12px;padding:12px 14px;font-weight:800;width:100%;cursor:pointer}

/* Card de orçamento + WhatsApp */
.cta-card{
  margin-top:12px; padding:12px; border:1px solid #eef0f3; border-radius:12px;
  background:#fff; box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.cta-head{display:flex; align-items:center; gap:8px; margin-bottom:6px; color:#2f3840}
.cta-icon{width:18px;height:18px;border-radius:50%;
  background:conic-gradient(from 0deg,#43d854 0 90deg,#25d366 90deg 100%); display:inline-block}
.cta-desc{margin:4px 0 10px; color:#5b6570; font-size:14px}
.whats-btn{
  display:inline-flex; align-items:center; gap:8px; border:none; cursor:pointer;
  background:#25d366; color:#fff; font-weight:800; padding:10px 14px; border-radius:12px;
}
.wa-sm{width:16px;height:16px;border-radius:50%;
  background:conic-gradient(from 0deg,#43d854 0 90deg,#25d366 90deg 100%); display:inline-block}

/* Admin dentro do Informações */
.admin-box{display:none; margin-top:12px; padding:12px; border:1px dashed #cfd8dc; border-radius:12px; background:#fbfdff}
.admin-box.open{display:block}
.admin-box h4{margin:0 0 8px; font-size:16px; color:#2f3840}
.admin-box label{display:block; font-size:12px; color:#5b6570; margin-top:8px}
.admin-box input, .admin-box textarea{
  width:100%; padding:10px 12px; border:1px solid #e0e4ea; border-radius:10px; margin-top:6px; font-size:14px
}
.admin-actions{display:flex; gap:8px; margin-top:10px}
.admin-actions button{
  border:none; background:#eceff1; color:#2f3840; padding:10px 12px; border-radius:10px; font-weight:700; cursor:pointer
}

/* Toast (mensagem e redirecionamento) */
.toast{
  position:fixed; left:50%; transform:translateX(-50%);
  bottom:20px; z-index:9999; display:none;
  background:#ffeb3b; color:#000; font-weight:700;
  padding:12px 16px; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.2);
}
.toast.show{display:block}

/* Dica visual para imagens editáveis */
img[data-key]{outline:0px solid transparent; transition:outline-color .2s, outline-width .2s}
img[data-key].edit-focus{outline:3px dashed rgba(30,136,229,.6)}
img[data-key]:hover{cursor:pointer}
