
:root{
  --bg:#0b0b0c;
  --card:#111114;
  --text:#f5f5f7;
  --muted:#b5b5bd;
  --accent:#25D366;
  --accent2:#7c3aed;
  --border:rgba(255,255,255,.10);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% -10%, rgba(124,58,237,.35), transparent 55%),
              radial-gradient(900px 600px at 95% 0%, rgba(37,211,102,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}
.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,11,12,.70);
  border-bottom:1px solid var(--border);
}
.header-inner{
  max-width:1100px; margin:0 auto; padding:14px 16px;
  display:flex; gap:12px; align-items:center; justify-content:space-between;
}
.brand{
  display:flex; flex-direction:column; line-height:1.1;
}
.brand strong{font-size:16px; letter-spacing:.3px}
.brand span{font-size:12px; color:var(--muted)}
.actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.btn{
  appearance:none; border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  font-weight:600;
  font-size:13px;
  text-decoration:none;
  display:inline-flex; gap:8px; align-items:center;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18)}
.btn.whats{background: rgba(37,211,102,.14); border-color: rgba(37,211,102,.35)}
.btn.whats:hover{background: rgba(37,211,102,.20); border-color: rgba(37,211,102,.55)}
.main{
  max-width:1100px; margin:0 auto; padding:18px 16px 90px;
}
.viewer-card{
  background: rgba(17,17,20,.75);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.viewer{
  width:100%;
  height: calc(100vh - 160px);
  min-height: 560px;
  border:0;
  background:#fff;
}
.note{
  margin-top:12px;
  color:var(--muted);
  font-size:12px;
}
.fab{
  position:fixed; right:18px; bottom:18px; z-index:60;
  width:56px; height:56px; border-radius:999px;
  background: var(--accent);
  box-shadow: 0 18px 50px rgba(37,211,102,.35);
  display:flex; align-items:center; justify-content:center;
  text-decoration:none;
  color:#08130b;
  font-weight:900;
  border:0;
}
.fab:hover{filter:brightness(1.05)}
.fab span{font-size:12px; display:none}
@media (max-width:560px){
  .viewer{height: calc(100vh - 190px); min-height: 520px;}
  .actions{gap:8px}
  .btn{padding:9px 10px}
}


/* ==== Visualização do PDF sem barras ==== */
.viewer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 10px 4px;
}
.viewer-title{
  font-weight:700;
  letter-spacing:.2px;
}
.status{
  font-size:12px;
  color:var(--muted);
}

.pdf-container{
  width:min(1100px, 100%);
  margin: 0 auto;
  padding: 10px 10px 18px;
}

.page{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  margin: 14px auto;
  border: 1px solid rgba(0,0,0,.08);
}

/* canvas já vem com width/height em CSS; só garante display correto */
.page canvas{
  display:block;
  width:100%;
  height:auto;
}

/* Botão WhatsApp (header) */
.btn.whats{
  background: rgba(37, 211, 102, .18);
  border-color: rgba(37, 211, 102, .55);
  color: var(--text);
}
.btn.whats:hover{
  background: rgba(37, 211, 102, .28);
}
.btn .wa{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* FAB WhatsApp 100% */
.fab{
  width:58px;
  height:58px;
  border-radius:999px;
  background: var(--accent);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.18);
}
.fab:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.fab svg{display:block}

/* Ícone do WhatsApp (Bootstrap Icons) */
.btn.whats i{
  font-size:18px;
  line-height:0;
  margin-right:8px;
}

.fab i{
  font-size:28px;
  line-height:0;
}
