* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg:#0d0d0f; --bg2:#16161a; --bg3:#1f1f26; --txt:#f5f5f5; --mut:#9a9aa5;
  --acc:#e50914; --acc2:#ff5a1f; --ok:#22c55e; --warn:#f59e0b;
  --radius:14px;
}
html,body { background:var(--bg); color:var(--txt); font-family:'Segoe UI',system-ui,Roboto,Arial,sans-serif; min-height:100%; }
body { padding-bottom:60px; }
button { font-family:inherit; cursor:pointer; }
.hidden { display:none !important; }

/* topo */
#topo { position:sticky; top:0; z-index:50; display:flex; align-items:center; gap:14px;
  padding:10px 18px; background:linear-gradient(#0d0d0fee,#0d0d0fd8); backdrop-filter:blur(8px);
  border-bottom:1px solid #ffffff14; flex-wrap:wrap; }
.logo { font-size:1.5rem; font-weight:900; letter-spacing:.5px; color:var(--acc); }
.logo span { color:var(--txt); font-weight:600; font-size:.95rem; margin-left:4px; }
#menu { display:flex; gap:4px; flex-wrap:wrap; flex:1; }
#menu button { background:none; border:none; color:var(--mut); font-size:.95rem; padding:8px 12px;
  border-radius:8px; transition:.15s; }
#menu button:hover { color:var(--txt); background:#ffffff10; }
#menu button.ativo { color:var(--txt); font-weight:700; background:#ffffff14; box-shadow:inset 0 -2px 0 var(--acc); }
#btn-notif-sino { background:none; border:none; font-size:1.25rem; position:relative; padding:6px; }
#notif-badge { position:absolute; top:0; right:0; background:var(--acc); color:#fff; font-size:.68rem;
  font-weight:800; border-radius:99px; padding:1px 6px; }

main { padding:18px; max-width:1600px; margin:0 auto; width:100%; }
.tab { display:none; animation:fade .25s; }
.tab.ativa { display:block; }
@keyframes fade { from{opacity:0; transform:translateY(6px)} to{opacity:1} }
h1 { font-size:1.6rem; margin-bottom:6px; }
.sub { color:var(--mut); margin-bottom:16px; }
.red { color:var(--acc); } .green { color:var(--ok); }

/* hero */
.hero { padding:34px 22px; border-radius:var(--radius); margin-bottom:26px;
  background:linear-gradient(120deg,#1a0505 0%,#2b0a12 40%,#16161a 100%);
  border:1px solid #ffffff10; }
.hero h1 { font-size:2rem; }
.hero p { color:var(--mut); }

/* catálogo netflix */
.row-titulo { font-size:1.15rem; font-weight:800; margin:22px 0 10px; }
.row-cards { display:flex; gap:14px; overflow-x:auto; padding:6px 2px 14px; scroll-snap-type:x mandatory; }
.row-cards::-webkit-scrollbar { height:8px; }
.row-cards::-webkit-scrollbar-thumb { background:#ffffff22; border-radius:8px; }
.card { flex:0 0 220px; scroll-snap-align:start; background:var(--bg2); border-radius:12px; overflow:hidden;
  border:1px solid #ffffff0d; transition:transform .18s, box-shadow .18s; cursor:pointer; }
.card:hover { transform:scale(1.06); box-shadow:0 12px 34px #000c; z-index:2; }
.card img { width:100%; height:150px; object-fit:cover; background:#26262e; display:block; }
.card .card-info { padding:10px 12px 12px; }
.card .card-nome { font-weight:700; font-size:.98rem; }
.card .card-meta { color:var(--mut); font-size:.78rem; margin-top:4px; }
.card .tag-prazo { display:inline-block; margin-top:7px; font-size:.7rem; font-weight:700; color:#0d0d0f;
  background:var(--ok); border-radius:6px; padding:2px 8px; }
.card .tag-12h { background:var(--warn); margin-left:5px; }

/* modal */
#modal { position:fixed; inset:0; background:#000a; z-index:100; display:flex; align-items:center;
  justify-content:center; padding:16px; }
#modal-card { background:var(--bg2); border-radius:16px; max-width:760px; width:100%; max-height:92vh;
  overflow-y:auto; position:relative; border:1px solid #ffffff1a; animation:fade .2s; }
#modal-fechar { position:absolute; top:10px; right:12px; background:#0009; color:#fff; border:none;
  border-radius:99px; width:36px; height:36px; font-size:1rem; z-index:2; }
#modal-img-wrap img { width:100%; max-height:300px; object-fit:cover; border-radius:16px 16px 0 0; background:#26262e; }
#modal-body { padding:18px 22px 24px; }
#modal-body h2 { margin-bottom:4px; }
.spec-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; margin:14px 0; }
.spec { background:var(--bg3); border-radius:10px; padding:10px 12px; }
.spec b { display:block; font-size:.72rem; text-transform:uppercase; color:var(--mut); letter-spacing:.4px; margin-bottom:3px; }
.gab-lista a { display:inline-block; margin:4px 8px 4px 0; background:#123a6b; color:#cfe4ff; padding:7px 12px;
  border-radius:8px; text-decoration:none; font-size:.85rem; font-weight:600; }
.gab-lista a:hover { background:#1a4f8f; }
.modal-acoes { display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
.regras-box { background:#2b1503; border:1px solid #f59e0b44; border-radius:10px; padding:12px 14px; margin-top:14px; font-size:.86rem; }
.regras-box li { margin:4px 0 4px 18px; }

/* botões gerais */
.btn-destaque { background:var(--acc); color:#fff; border:none; border-radius:10px; padding:12px 20px;
  font-size:.98rem; font-weight:800; }
.btn-destaque:disabled { opacity:.4; cursor:not-allowed; }
.btn-sec { background:var(--bg3); color:var(--txt); border:1px solid #ffffff22; border-radius:10px; padding:11px 16px; font-size:.9rem; }

/* estúdio */
.estudio-grid { display:grid; grid-template-columns:320px 1fr; gap:20px; }
@media (max-width:900px){ .estudio-grid { grid-template-columns:1fr; } }
.estudio-controles { display:flex; flex-direction:column; gap:12px; }
.estudio-controles label { display:flex; flex-direction:column; gap:6px; font-size:.85rem; color:var(--mut); }
.estudio-controles select, .estudio-controles input[type=text] { background:var(--bg3); color:var(--txt);
  border:1px solid #ffffff22; border-radius:10px; padding:11px 12px; font-size:.95rem; }
.info-box { background:var(--bg3); border-radius:10px; padding:10px 12px; font-size:.83rem; color:var(--mut); line-height:1.5; }
.file-btn { background:var(--bg3); border:1px dashed #ffffff44; border-radius:10px; padding:14px; text-align:center;
  color:var(--txt) !important; font-weight:600; cursor:pointer; }
.est-acoes { display:flex; gap:8px; flex-wrap:wrap; }
.est-acoes button { background:var(--bg3); color:var(--txt); border:1px solid #ffffff22; border-radius:8px; padding:9px 13px; }
.aviso-cmyk { font-size:.78rem; color:var(--warn); background:#f59e0b14; border-radius:8px; padding:9px 11px; }
.estudio-canvas-wrap { position:relative; background:#0a0a0c; border:1px solid #ffffff14; border-radius:12px;
  min-height:420px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
#est-canvas { max-width:100%; max-height:78vh; background:#fff; cursor:grab; touch-action:none; }
#est-drop-hint { position:absolute; color:var(--mut); font-size:.95rem; pointer-events:none; text-align:center; padding:20px; }

/* agente */
#chat { background:var(--bg2); border:1px solid #ffffff12; border-radius:12px; padding:14px; min-height:300px;
  max-height:55vh; overflow-y:auto; display:flex; flex-direction:column; gap:10px; }
.msg { max-width:82%; padding:10px 14px; border-radius:14px; line-height:1.5; font-size:.93rem; white-space:pre-wrap; }
.msg.user { align-self:flex-end; background:#123a6b; border-bottom-right-radius:4px; }
.msg.bot { align-self:flex-start; background:var(--bg3); border-bottom-left-radius:4px; }
.msg.bot a { color:#7db4ff; }
.sugestoes { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.chip-pergunta { background:var(--bg3); border:1px solid #ffffff22; color:var(--txt); border-radius:99px;
  padding:8px 14px; font-size:.82rem; }
.chip-pergunta:hover { border-color:var(--acc); }
#chat-input-row { display:flex; gap:10px; }
#chat-input { flex:1; background:var(--bg3); border:1px solid #ffffff22; border-radius:12px; padding:13px 16px;
  color:var(--txt); font-size:.95rem; }
#chat-send { background:var(--acc); color:#fff; border:none; border-radius:12px; padding:0 22px; font-weight:800; }

/* pedidos */
#ped-status-bar { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.ped-stat { background:var(--bg3); border-radius:10px; padding:8px 14px; font-size:.85rem; }
.ped-abas { display:flex; gap:6px; margin-bottom:14px; }
.ped-abas button { background:var(--bg3); color:var(--mut); border:none; border-radius:8px; padding:9px 16px; font-size:.88rem; }
.ped-abas button.ativo { color:var(--txt); font-weight:700; box-shadow:inset 0 -2px 0 var(--acc); }
#ped-form { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
#ped-form input, #ped-form select { background:var(--bg3); border:1px solid #ffffff22; border-radius:10px;
  padding:11px 12px; color:var(--txt); font-size:.9rem; }
#ped-cliente { flex:2; min-width:140px; }
#ped-form select { min-width:120px; }
#ped-form input[type=number] { width:110px; }
.ped-item { background:var(--bg2); border:1px solid #ffffff12; border-radius:12px; padding:12px 16px; margin-bottom:10px;
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.ped-item .ped-info { flex:1; min-width:180px; }
.ped-item .ped-cliente { font-weight:700; }
.ped-item .ped-detalhe { color:var(--mut); font-size:.83rem; }
.ped-status-tag { font-size:.72rem; font-weight:800; border-radius:6px; padding:3px 10px; }
.st-Orcamento { background:#3b82f6; color:#fff; }
.st-Pedido-feito { background:#a855f7; color:#fff; }
.st-Em-producao { background:var(--warn); color:#111; }
.st-Entregue { background:var(--ok); color:#111; }
.st-Cancelado { background:var(--acc); color:#fff; }
.st-Excluido { background:#555; color:#fff; }
.ped-item.cancelado { opacity:.75; border-color:#e5091455; text-decoration:none; }
.ped-item.cancelado .ped-cliente { text-decoration:line-through; }
.ped-cancel-info { font-size:.75rem; color:#ff8f8f; }
.ped-item button { background:var(--bg3); color:var(--txt); border:1px solid #ffffff22; border-radius:8px; padding:7px 10px; font-size:.78rem; }

/* videoaulas */
#video-lista { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.video-card { background:var(--bg2); border:1px solid #ffffff12; border-radius:12px; overflow:hidden; }
.video-card video { width:100%; display:block; background:#000; }
.video-card .video-titulo { padding:10px 14px; font-weight:700; font-size:.95rem; }

/* ajustes */
.ajuste-card { background:var(--bg2); border:1px solid #ffffff12; border-radius:12px; padding:18px; margin-bottom:14px; max-width:640px; }
.ajuste-card h2 { font-size:1.05rem; margin-bottom:8px; }
.ajuste-card p { color:var(--mut); font-size:.88rem; margin-bottom:10px; }
.ajuste-card .mini { font-size:.78rem; margin-top:8px; }
.ajuste-card input[type=password] { width:100%; background:var(--bg3); border:1px solid #ffffff22; border-radius:10px;
  padding:11px 12px; color:var(--txt); margin-bottom:8px; }
.switch-row { display:flex; gap:10px; align-items:center; color:var(--txt); font-size:.9rem; margin:8px 0; }

/* toast marcante */
#toast-area { position:fixed; top:64px; left:50%; transform:translateX(-50%); z-index:200; width:min(94vw,560px); }
.toast { background:linear-gradient(135deg,#e50914,#ff5a1f); color:#fff; border-radius:14px; padding:16px 20px;
  margin-bottom:10px; box-shadow:0 14px 44px #000d, 0 0 0 2px #ffffff22; animation:toastIn .3s cubic-bezier(.2,1.4,.4,1); }
.toast.sucesso { background:linear-gradient(135deg,#16a34a,#22c55e); }
.toast.info { background:linear-gradient(135deg,#1d4ed8,#3b82f6); }
.toast b { display:block; font-size:1.02rem; margin-bottom:2px; }
.toast span { font-size:.86rem; opacity:.95; }
@keyframes toastIn { from{opacity:0; transform:translateY(-18px) scale(.94)} to{opacity:1} }
.toast.saindo { transition:.4s; opacity:0; transform:translateY(-14px); }
