:root{
  --bg:#0f0f0f;
  --surface:#181818;
  --surface-2:#212121;
  --line:#303030;
  --text:#f1f1f1;
  --muted:#aaaaaa;
  --blue:#3ea6ff;
  --red:#ff0033;
  --red-dark:#cc0000;
  --yellow:#ffd95e;
  --radius:14px;
}
*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
body{margin:0;font-family:Roboto,Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
a{color:inherit;text-decoration:none}
.wrap{width:min(100%,1280px);margin:auto;padding-inline:12px}
.topbar{height:54px;border-bottom:1px solid #242424;display:flex;align-items:center;background:#0f0f0f;position:sticky;top:0;z-index:20}
.brand{font-weight:900;letter-spacing:-.055em;font-size:22px;line-height:1}.brand b{color:var(--red)}
.muted{color:var(--muted)}
.grid{display:grid;gap:16px}.grid2,.grid3{display:grid;gap:16px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px}.panel h2,.panel h3{margin:0 0 14px}
.section{padding:16px 0 22px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.space{justify-content:space-between}
.field{display:grid;gap:7px}.field label{font-size:13px;color:var(--muted);font-weight:700}.field input,.field select,.field textarea{width:100%;background:#121212;color:var(--text);border:1px solid var(--line);border-radius:12px;padding:12px 13px;outline:none}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--blue)}
.btn{border:0;border-radius:999px;padding:11px 16px;font-weight:800;cursor:pointer;background:#272727;color:#fff}.btn:hover{filter:brightness(1.07)}.btn.primary{background:var(--blue);color:#07141f}.btn.danger{background:#421d20;color:#ffb7ba}.btn.sm{padding:8px 10px;font-size:13px}
.badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#232323;color:#f1f1f1;font-size:12px;font-weight:800;border:1px solid var(--line)}.dot{width:7px;height:7px;border-radius:50%;background:var(--red)}
.stat{padding:18px;border:1px solid var(--line);border-radius:14px;background:#151515}.stat strong{display:block;font-size:31px;letter-spacing:-.05em}.stat span{color:var(--muted);font-size:13px}
.tablewrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:13px}.table th,.table td{padding:11px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.table th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.tabs{display:flex;gap:8px;margin-bottom:18px;overflow:auto}.tab{background:#181818;border:1px solid var(--line);border-radius:999px;padding:9px 13px;cursor:pointer;color:var(--muted);font-weight:700}.tab.active{background:#272727;color:#fff;border-color:#454545}
.hidden{display:none!important}.notice{border:1px solid #4a4426;background:#29240e;color:#ffdf73;padding:11px 13px;border-radius:11px;font-size:13px}.success{border-color:#275c38;background:#112719;color:#96ffb7}.dangerText{color:#ff8d92}.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#111;border:1px solid var(--line);padding:10px;border-radius:10px;overflow:auto;font-size:12px}

/* ADMIN */
.admin-chat{height:390px;display:grid;grid-template-rows:1fr auto}.admin-chat .chat-list{border:1px solid var(--line);border-radius:12px;max-height:none}.rooms{display:flex;gap:8px;overflow:auto;margin-bottom:10px}.roomchip{white-space:nowrap;border:1px solid var(--line);background:#111;color:#c0c0c0;padding:8px 10px;border-radius:999px;cursor:pointer}.roomchip.active{border-color:var(--blue);color:#fff;background:#1d2935}.chat-list{overflow:auto;padding:12px;display:flex;flex-direction:column;gap:10px}.msg{padding:10px 11px;border-radius:12px;background:#222;border:1px solid #303030}.msg.admin{border-color:#28537a;background:#1b2b3a}.msg .name{font-size:12px;font-weight:900;color:#fff;margin-bottom:4px}.msg .body{font-size:14px;line-height:1.42}.chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}.chat-form input{min-width:0;flex:1;background:#121212;border:1px solid var(--line);border-radius:999px;color:#fff;padding:11px 14px}
.audience-preview{background:#101010;border:1px solid var(--line);border-radius:14px;padding:14px}.audience-preview canvas{width:100%;height:220px;display:block}.audience-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.audience-summary div{background:#171717;border:1px solid #2a2a2a;border-radius:10px;padding:10px}.audience-summary strong{display:block;font-size:19px}.audience-summary span{font-size:11px;color:var(--muted)}.field-hint{font-size:11px;color:#858585;line-height:1.4}.range-row{display:grid;grid-template-columns:1fr 68px;gap:10px;align-items:center}.range-row input[type=range]{padding:0}

/* WATCH PAGE — mobile first, YouTube Live inspired */
.watch-page{background:#fff;color:#0f0f0f;font-family:Roboto,Arial,Helvetica,sans-serif}.watch-topbar{display:none}.watch-shell{width:100%;margin:0}.room-layout{display:grid;grid-template-columns:1fr;align-items:start}.watch-main{min-width:0}.video-shell{width:100%;aspect-ratio:16/9;background:#000;position:relative;overflow:hidden}.video-shell mux-player{display:block;width:100%;height:100%;background:#000;--controls:none;--media-control-display:none}.video-shell .no-interaction-player{pointer-events:none;user-select:none;-webkit-user-select:none}.video-placeholder{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:22px;background:#000;color:#fff;z-index:3}.video-placeholder p{color:#cfcfcf;margin:8px 0 0}.countdown{font-size:48px;font-weight:700;letter-spacing:-.04em}
.watch-info{display:none}.watch-title{margin:0;font-size:22px}.watch-subtitle{color:#606060;margin:6px 0 0}

.live-chat-panel{position:relative;background:#fff;color:#0f0f0f;min-height:calc(100svh - 56.25vw);display:grid;grid-template-rows:auto minmax(280px,1fr) auto auto;border-top:3px solid #e8e8e8}.yt-chat-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 18px 13px;border-bottom:1px solid #dedede;background:#fff;position:sticky;top:0;z-index:5}.yt-chat-heading{min-width:0}.yt-chat-heading h2{font-size:24px;line-height:1.1;margin:0 0 6px;font-weight:700;letter-spacing:-.02em}.yt-chat-subline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#686868;font-size:15px;line-height:1.2}.viewer-stat{display:inline-flex;align-items:center;gap:5px;color:#666}.viewer-icon{width:17px;height:17px;fill:#7a7a7a}.viewer-count{font-size:20px;line-height:1;font-weight:700;color:#575757;letter-spacing:-.025em}.viewer-estimated{font-size:11px;color:#8b8b8b;margin-left:1px}.yt-chat-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding-top:3px}.icon-btn{width:38px;height:38px;display:grid;place-items:center;border:0;background:transparent;border-radius:50%;padding:7px;cursor:pointer}.icon-btn:active{background:#eee}.icon-btn svg{width:27px;height:27px;fill:#111}
.yt-chat-list{overflow-y:auto;padding:10px 18px 16px;display:flex;flex-direction:column;gap:15px;scrollbar-width:thin;scrollbar-color:#c6c6c6 transparent}.yt-message{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:flex-start}.yt-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:15px;font-weight:500;flex:0 0 38px}.avatar-tone-0{background:#00796b}.avatar-tone-1{background:#546e7a}.avatar-tone-2{background:#6a5acd}.avatar-tone-3{background:#7b1fa2}.avatar-tone-4{background:#bf360c}.avatar-tone-5{background:#2e7d32}.avatar-tone-6{background:#1565c0}.yt-message-copy{min-width:0;padding-top:1px}.yt-message-line{font-size:18px;line-height:1.28;color:#111;word-break:break-word}.yt-name{color:#767676;font-weight:500;margin-right:7px;white-space:nowrap}.yt-host-badge{display:inline-block;background:#065fd4;color:#fff;font-size:10px;font-weight:700;line-height:1;padding:4px 5px;border-radius:3px;margin-right:5px;vertical-align:2px}.yt-message-text{font-weight:400;color:#111}.host-message .yt-message-text{font-weight:500}
.chat-notice{display:flex;align-items:center;gap:10px;margin:0 14px 8px;padding:10px 12px;border-radius:12px;background:#fafafa;border:1px solid #ededed;color:#555}.notice-icon{width:24px;height:24px;border:2px solid #aaa;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:700;color:#8b8b8b;flex:0 0 24px}.chat-notice div:last-child{display:grid;gap:2px}.chat-notice strong{font-size:13px;color:#555}.chat-notice span{font-size:12px;color:#777}
.yt-chat-form{display:grid;grid-template-columns:36px minmax(0,1fr) 42px;gap:8px;align-items:center;padding:10px 14px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #dedede;background:#fff;position:sticky;bottom:0;z-index:5}.input-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#0b6f63;color:#fff;font-size:13px;font-weight:600}.yt-chat-form input{min-width:0;border:0;border-bottom:1px solid #c9c9c9;border-radius:0;background:transparent;padding:10px 3px 8px;color:#111;outline:none;font-size:16px}.yt-chat-form input:focus{border-bottom-color:#111}.send-btn{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%;background:#f2f2f2;cursor:pointer}.send-btn svg{width:22px;height:22px;fill:#606060}.send-btn:active{background:#e5e5e5}
.heart-btn{position:absolute;right:18px;bottom:88px;width:58px;height:58px;border:1px solid #e5e5e5;border-radius:50%;background:#fff;color:#ff3b45;font-size:30px;display:grid;place-items:center;box-shadow:0 4px 14px rgba(0,0,0,.16);cursor:pointer;z-index:6}.heart-layer{position:absolute;right:26px;bottom:145px;width:44px;height:160px;pointer-events:none;overflow:visible}.floating-heart{position:absolute;bottom:0;color:#ff3b45;font-size:30px;animation:heartFloat 1.8s ease-out forwards;filter:drop-shadow(0 2px 3px rgba(0,0,0,.12))}@keyframes heartFloat{0%{opacity:0;transform:translate(0,10px) scale(.7)}15%{opacity:1}100%{opacity:0;transform:translate(-18px,-145px) scale(1.2) rotate(-10deg)}}
.chat-reopen{margin:14px;border:1px solid #dedede;background:#fff;color:#111;border-radius:999px;padding:11px 16px;font-weight:600}

/* CTA on mobile */
#cta:not(:empty){background:#fff;padding:10px 12px;border-bottom:1px solid #e0e0e0}.cta-card{background:#fff7e6;border:1px solid #f2d095;border-radius:12px;padding:12px;display:grid;gap:10px;color:#111}.cta-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:#9b6200}.cta-card h3{margin:0 0 3px;font-size:17px}.cta-card p{margin:0;color:#5d5d5d;font-size:13px;line-height:1.4}.cta-row{display:flex;align-items:center;gap:10px;justify-content:space-between}.cta-timer{font-size:15px;font-weight:700;color:#aa6700}.cta-button{display:inline-flex;align-items:center;justify-content:center;background:#065fd4;color:#fff;border-radius:999px;padding:10px 14px;font-size:13px;font-weight:700}

/* REGISTER */
.register-overlay{position:fixed;inset:0;background:rgba(15,15,15,.96);display:grid;place-items:center;z-index:50;padding:16px;color:#f1f1f1}.register-card{width:min(470px,100%);background:#181818;border:1px solid #303030;border-radius:22px;padding:22px;box-shadow:0 25px 100px rgba(0,0,0,.45)}.register-card h1{margin:0 0 7px;font-size:29px;letter-spacing:-.045em;line-height:1.06}.register-card p{margin:0 0 20px;color:#aaa;line-height:1.45}

@media(min-width:700px){.grid2{grid-template-columns:1fr 1fr}.grid3{grid-template-columns:repeat(3,1fr)}.watch-page{background:#0f0f0f}.watch-shell{padding:18px}.video-shell{border-radius:12px}.live-chat-panel{border-radius:12px;overflow:hidden;min-height:520px}.yt-chat-list{max-height:520px}.watch-info{display:block;background:#0f0f0f;color:#fff;padding:14px 2px}.watch-subtitle{color:#aaa}}
@media(min-width:960px){.wrap{padding-inline:16px}.watch-topbar{display:flex}.watch-shell{width:min(100%,1280px);margin:auto;padding:18px 16px 28px}.room-layout{grid-template-columns:minmax(0,1fr) 410px;gap:18px}.live-chat-panel{position:sticky;top:76px;height:calc(100vh - 96px);min-height:610px;max-height:820px;grid-template-rows:auto 1fr auto auto}.yt-chat-list{max-height:none}.yt-chat-heading h2{font-size:22px}.yt-message-line{font-size:15px}.viewer-count{font-size:18px}.heart-btn{width:52px;height:52px;font-size:27px}.watch-title{font-size:24px}}

/* V1.7 - Assistente IA OpenRouter */
.live-admin-grid{grid-template-columns:1fr;gap:18px}
.ai-suggestions{display:grid;gap:12px;margin-top:14px}
.ai-empty{padding:18px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);line-height:1.5}
.ai-card{border:1px solid var(--line);background:#141414;border-radius:14px;padding:14px;display:grid;gap:10px}
.ai-card.ready{border-color:#28537a}.ai-card.error{border-color:#6b3030}.ai-card.published{border-color:#2d6841;background:#111b14}
.ai-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ai-source{font-size:13px;color:#c9c9c9;margin-top:4px;line-height:1.4}
.ai-draft{width:100%;min-height:110px;resize:vertical;background:#0f0f0f;color:var(--text);border:1px solid var(--line);border-radius:12px;padding:12px;line-height:1.45}
.ai-draft:focus{outline:none;border-color:#3ea6ff}
.ai-draft:disabled{opacity:.65}
.ai-model{font-size:11px}
.ai-published-text{padding:11px 12px;border-radius:10px;background:#18231a;line-height:1.45}
.ai-mini-tag{font-size:10px;padding:3px 6px;border-radius:999px;background:#20354a;color:#9fd0ff;font-weight:800}
.msg-actions{margin-top:8px}.ai-suggest-btn{font-size:11px;padding:7px 10px}
@media(min-width:960px){.live-admin-grid{grid-template-columns:minmax(0,1fr) minmax(360px,.9fr)}}

/* V1.8 - Gerador de roteiro de chat com IA */
.ai-script-panel{border-color:#33404d;background:linear-gradient(180deg,#181b1e,#161616)}
.ai-script-list{display:grid;gap:8px;margin-top:14px;max-height:620px;overflow:auto;padding-right:3px}
.ai-script-row{display:grid;grid-template-columns:88px 150px minmax(260px,1fr) 42px;gap:8px;align-items:start;padding:9px;border:1px solid var(--line);border-radius:12px;background:#111}
.ai-script-row input,.ai-script-row textarea{width:100%;background:#171717;color:var(--text);border:1px solid #303030;border-radius:9px;padding:10px;outline:none}
.ai-script-row input:focus,.ai-script-row textarea:focus{border-color:var(--blue)}
.ai-script-message{resize:vertical;min-height:44px;line-height:1.35}
.ai-script-delete{width:36px;height:36px;padding:0;border-radius:50%;font-size:20px;color:#ffb3b8;background:#3b1d20}
#aiChatGenStatus{font-size:12px;line-height:1.4}
@media(max-width:760px){.ai-script-row{grid-template-columns:78px minmax(0,1fr) 40px}.ai-script-message{grid-column:1/-1;grid-row:2}.ai-script-delete{grid-column:3;grid-row:1}.ai-script-name{grid-column:2}.ai-script-time{grid-column:1}}


/* V1.9 — modo vertical inspirado em live social */
.vertical-live-top{display:none}
body.layout-instagram{background:#000;color:#fff;overflow-x:hidden}
body.layout-instagram .watch-topbar{display:none}
body.layout-instagram .watch-shell{max-width:none;width:100%;padding:0;margin:0}
body.layout-instagram .room-layout{display:block;max-width:520px;margin:0 auto;position:relative;background:#000;min-height:100dvh}
body.layout-instagram .watch-main{width:100%;position:relative}
body.layout-instagram .video-shell{
  width:100%;height:auto;aspect-ratio:9/16;max-height:100dvh;background:#000;
  border-radius:0;overflow:hidden;position:relative;
}
body.layout-instagram .video-shell mux-player{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;--controls:none;
}
body.layout-instagram .video-shell mux-player::part(media){object-fit:cover}
body.layout-instagram .video-placeholder{position:absolute;inset:0;z-index:6}
body.layout-instagram .vertical-live-top{
  display:flex;position:absolute;z-index:30;left:16px;right:16px;top:max(16px,env(safe-area-inset-top));
  align-items:center;gap:10px;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.45);pointer-events:none
}
body.layout-instagram .vertical-live-title{
  min-width:0;max-width:48%;font-size:17px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
body.layout-instagram .vertical-live-badge{
  margin-left:auto;background:#ff176b;border-radius:7px;padding:8px 10px;font-size:15px;font-weight:800;letter-spacing:.01em;text-shadow:none
}
body.layout-instagram .vertical-viewers{
  display:flex;align-items:center;gap:5px;background:rgba(20,20,20,.52);border-radius:7px;padding:7px 9px;
  font-size:21px;font-weight:800;line-height:1;text-shadow:none
}
body.layout-instagram .vertical-viewers svg{width:21px;height:21px;fill:#fff}
body.layout-instagram .vertical-viewers strong{font-size:21px;line-height:1}
/* ~30% maior que o número da referência fornecida */
body.layout-instagram .live-chat-panel{
  display:block!important;position:absolute;z-index:25;inset:0;pointer-events:none;background:transparent;border:0;border-radius:0;
  height:auto;min-height:0;box-shadow:none
}
body.layout-instagram .yt-chat-header,
body.layout-instagram .chat-notice{display:none!important}
body.layout-instagram .yt-chat-list{
  position:absolute;left:16px;right:68px;bottom:88px;height:auto;max-height:42%;overflow:hidden;
  padding:0;display:flex;flex-direction:column;justify-content:flex-end;gap:11px;
  background:linear-gradient(to top,rgba(0,0,0,.20),rgba(0,0,0,0));pointer-events:none
}
body.layout-instagram .yt-message{display:flex;align-items:flex-start;gap:9px;color:#fff;padding:0;background:transparent;animation:igMsgIn .22s ease}
body.layout-instagram .yt-avatar{width:34px;height:34px;min-width:34px;border:1px solid rgba(255,255,255,.35);font-size:12px}
body.layout-instagram .yt-message-copy{min-width:0}
body.layout-instagram .yt-message-line{line-height:1.22;text-shadow:0 1px 4px rgba(0,0,0,.8)}
body.layout-instagram .yt-name{display:block;color:#fff;font-size:14px;font-weight:800;margin:0 0 2px}
body.layout-instagram .yt-message-text{color:#fff;font-size:15px;font-weight:500}
body.layout-instagram .yt-host-badge{font-size:9px;margin-left:0;margin-right:5px}
body.layout-instagram .yt-chat-form{
  position:absolute;z-index:40;left:16px;right:74px;bottom:max(16px,env(safe-area-inset-bottom));height:48px;
  display:flex;align-items:center;padding:0 14px;border:1.5px solid rgba(255,255,255,.75);border-radius:28px;
  background:rgba(0,0,0,.18);backdrop-filter:blur(3px);pointer-events:auto
}
body.layout-instagram .yt-chat-form .input-avatar{display:none}
body.layout-instagram .yt-chat-form input{background:transparent!important;border:0!important;color:#fff!important;font-size:16px;padding:0!important}
body.layout-instagram .yt-chat-form input::placeholder{color:rgba(255,255,255,.9)}
body.layout-instagram .yt-chat-form .send-btn{width:34px;height:34px;background:transparent}
body.layout-instagram .yt-chat-form .send-btn svg{fill:#fff}
body.layout-instagram .heart-btn{
  display:flex;position:absolute;z-index:41;right:17px;bottom:max(20px,env(safe-area-inset-bottom));width:48px;height:48px;
  border:0;background:transparent;color:#fff;font-size:38px;align-items:center;justify-content:center;pointer-events:auto;text-shadow:0 1px 5px #000
}
body.layout-instagram .heart-layer{position:absolute;z-index:42;right:12px;bottom:75px;pointer-events:none}
body.layout-instagram .chat-reopen{display:none!important}
body.layout-instagram .watch-info{display:none}
body.layout-instagram #cta{position:relative;z-index:50;background:#000}
@keyframes igMsgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (min-width:700px){
 body.layout-instagram .room-layout{max-width:480px;box-shadow:0 0 60px rgba(0,0,0,.65)}
 body.layout-instagram .video-shell{max-height:calc(100dvh - 8px)}
}


/* V1.9.1 — Oferta sobre o vídeo no modo vertical */
body.layout-instagram #cta{
  position:absolute;z-index:38;left:12px;right:12px;bottom:78px;
  background:transparent;pointer-events:none;
}
body.layout-instagram #cta:empty{display:none}
body.layout-instagram #cta .cta-card{
  pointer-events:auto;position:relative;overflow:hidden;
  display:block;text-align:center;padding:12px 12px 13px;
  border:2px solid #ff5a00;border-radius:17px;
  background:
    radial-gradient(circle at 18% 18%,rgba(255,183,0,.25),transparent 28%),
    radial-gradient(circle at 84% 28%,rgba(255,80,0,.28),transparent 24%),
    linear-gradient(145deg,#430000 0%,#a20d00 48%,#4b0000 100%);
  color:#fff;box-shadow:0 0 0 1px rgba(255,215,0,.28),0 10px 35px rgba(0,0,0,.58),0 0 24px rgba(255,75,0,.38);
  animation:ctaOfferEnter .42s cubic-bezier(.2,.8,.2,1);
}
body.layout-instagram #cta .cta-card:before{
  content:"";position:absolute;inset:-70%;pointer-events:none;
  background:linear-gradient(115deg,transparent 42%,rgba(255,255,255,.14) 49%,transparent 56%);
  animation:ctaShine 3.2s linear infinite;
}
body.layout-instagram #cta .cta-kicker{
  display:inline-block;margin-bottom:3px;padding:3px 8px;border-radius:999px;
  background:#ffd400;color:#270000;font-size:10px;font-weight:950;letter-spacing:.055em;
}
body.layout-instagram #cta .cta-card h3{
  color:#fff;font-size:20px;line-height:1.05;margin:1px 0 4px;font-weight:900;text-shadow:0 2px 8px rgba(0,0,0,.35)
}
body.layout-instagram #cta .cta-card p{
  color:#ffe6d1;font-size:11px;line-height:1.25;margin:0 auto 6px;max-width:92%;
}
body.layout-instagram #cta .cta-row{
  display:grid;grid-template-columns:1fr;gap:5px;position:relative;z-index:2
}
body.layout-instagram #cta .cta-timer{
  color:#ffe900;font-size:19px;line-height:1;font-weight:950;text-shadow:0 0 10px rgba(255,229,0,.45)
}
body.layout-instagram #cta .cta-button{
  width:100%;min-height:46px;border-radius:11px;padding:10px 12px;
  background:linear-gradient(180deg,#fff000,#ffb300);
  color:#160700;border:2px solid #fff;font-size:15px;font-weight:950;
  box-shadow:0 0 0 2px #ff5b00,0 0 18px rgba(255,214,0,.9);
  animation:ctaPulseAttention .92s ease-in-out infinite;
}
body.layout-instagram #cta .cta-button:before{content:"››";font-size:22px;margin-right:9px;line-height:0}
body.layout-instagram #cta .cta-button:after{content:"‹‹";font-size:22px;margin-left:9px;line-height:0}
body.layout-instagram.cta-active .yt-chat-list{bottom:255px;max-height:31%}
body.layout-instagram.cta-active .yt-chat-form{bottom:max(16px,env(safe-area-inset-bottom))}
body.layout-instagram.cta-active .heart-btn{bottom:max(20px,env(safe-area-inset-bottom))}
@keyframes ctaPulseAttention{
  0%,100%{transform:scale(1);filter:brightness(1);box-shadow:0 0 0 2px #ff5b00,0 0 13px rgba(255,214,0,.62)}
  50%{transform:scale(1.035);filter:brightness(1.16);box-shadow:0 0 0 3px #ff7a00,0 0 28px rgba(255,225,0,1)}
}
@keyframes ctaOfferEnter{from{opacity:0;transform:translateY(22px) scale(.96)}to{opacity:1;transform:none}}
@keyframes ctaShine{from{transform:translateX(-35%)}to{transform:translateX(35%)}}
@media(max-height:720px){
 body.layout-instagram #cta{bottom:72px}
 body.layout-instagram #cta .cta-card{padding:9px 10px}
 body.layout-instagram #cta .cta-card h3{font-size:17px}
 body.layout-instagram #cta .cta-card p{display:none}
 body.layout-instagram #cta .cta-button{min-height:40px}
 body.layout-instagram.cta-active .yt-chat-list{bottom:225px}
}

/* V1.9.2 — avatares do chat */
.yt-avatar{overflow:hidden}
.yt-avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}

/* V1.9.5 — cabeçalho e opções do chat estilo YouTube */
body:not(.layout-instagram) .yt-chat-header{position:sticky;top:0;z-index:20;background:#fff}
body:not(.layout-instagram) .yt-chat-subline{display:flex;align-items:center;gap:10px;margin-top:4px}
body:not(.layout-instagram) .youtube-live-badge{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:800;color:#d60000}
body:not(.layout-instagram) .youtube-live-dot{width:8px;height:8px;border-radius:50%;background:#f00;display:inline-block}
body:not(.layout-instagram) .viewer-stat{display:inline-flex;align-items:center;gap:4px;font-size:13px}
body:not(.layout-instagram) .viewer-count,body:not(.layout-instagram) .viewer-estimated{font-size:13px!important;font-weight:600}
body:not(.layout-instagram) .viewer-icon{width:14px;height:14px}
.yt-chat-options{background:#fff;border-bottom:1px solid #e5e5e5;padding:14px 16px;position:relative;z-index:18;box-shadow:0 5px 14px rgba(0,0,0,.08)}
.chat-options-title{font-size:13px;font-weight:700;margin-bottom:9px}.chat-mode-buttons{display:flex;gap:8px;margin-bottom:14px}
.chat-mode-option{border:1px solid #d7d7d7;background:#f6f6f6;border-radius:18px;padding:7px 11px;font-size:12px;cursor:pointer}
.chat-mode-option.active{background:#0f0f0f;color:#fff;border-color:#0f0f0f}
.chat-pinned{border-radius:10px;background:#f6f6f6;padding:10px 11px;display:grid;gap:3px;font-size:12px;margin-bottom:10px}
.chat-pinned-label{font-size:11px;font-weight:700;color:#606060}.chat-pinned strong{font-size:12px}.chat-pinned span{color:#606060}
.chat-options-links button{border:0;background:transparent;padding:4px 0;color:#065fd4;font-weight:700;font-size:12px;cursor:pointer}

/* V1.9.14 — analytics de retenção e jornada individual */
.retention-curve{display:grid;gap:7px;margin-top:12px}.ret-row{display:grid;grid-template-columns:44px 1fr 42px;gap:10px;align-items:center;font-size:12px}.ret-track{height:12px;border-radius:999px;background:#e8e8e8;overflow:hidden}.ret-track i{display:block;height:100%;background:currentColor;border-radius:999px}.ret-row b{text-align:right}.participant-row{cursor:pointer}.participant-row:hover{background:rgba(127,127,127,.08)}.participant-detail{margin-bottom:18px}.participant-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}.participant-kpis>div{padding:12px;border:1px solid #ddd;border-radius:12px;display:grid;gap:3px}.participant-kpis b{font-size:20px}.participant-kpis span{font-size:11px;color:#777}.participant-meta{line-height:1.8;font-size:13px}.journey{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.journey span{padding:7px 9px;border-radius:999px;background:#f0f0f0;font-size:11px;font-weight:700}@media(max-width:700px){.participant-kpis{grid-template-columns:1fr 1fr}}


/* V1.9.25 — gerenciador de avatares */
.avatar-upload-box{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px;padding:14px;border:1px dashed #555;border-radius:14px}.avatar-manager-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:12px;margin-top:16px}.avatar-manager-card{border:1px solid #343434;border-radius:12px;padding:9px;text-align:center;background:rgba(255,255,255,.025)}.avatar-manager-card img{width:64px;height:64px;border-radius:50%;object-fit:cover;display:block;margin:0 auto 7px;background:#222}.avatar-manager-name{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.avatar-bundled{display:inline-block;margin-top:6px;font-size:9px;color:#888;text-transform:uppercase;letter-spacing:.06em}.avatar-delete-btn{margin-top:6px;border:0;background:transparent;color:#ff7373;font-size:10px;font-weight:700;cursor:pointer}.avatar-delete-btn:hover{text-decoration:underline}@media(max-width:600px){.avatar-manager-grid{grid-template-columns:repeat(3,1fr)}}

/* V1.9.25 — roteiro único + progresso do gerador */
.ai-generation-progress{margin-top:12px;padding:12px 14px;border:1px solid #2d3b49;border-radius:12px;background:#10161c}
.ai-progress-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:9px;font-size:13px}
.ai-progress-head strong{color:#6cbeff;min-width:42px;text-align:right}
.ai-progress-track{height:9px;background:#242424;border-radius:999px;overflow:hidden}
.ai-progress-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#3ea6ff,#7ac7ff);border-radius:999px;transition:width .45s ease}
#chatScriptStatusBadge.status-draft{background:#3b2d11;color:#ffd66e;border-color:#72531a}
#chatScriptStatusBadge.status-published{background:#123522;color:#7ff0ad;border-color:#225d3c}
#chatScriptStatusBadge.status-empty{background:#282828;color:#aaa;border-color:#3a3a3a}
.empty-script{padding:28px 16px;text-align:center;border:1px dashed #353535;border-radius:12px;color:#888}

/* V1.9.25 — configurações salvas */
.saved-config-panel{border-color:#3a4653;background:linear-gradient(180deg,#171a1d,#121416)}
.saved-config-controls{grid-template-columns:minmax(220px,1fr) minmax(240px,1fr) auto;align-items:end;gap:12px}
@media(max-width:850px){.saved-config-controls{grid-template-columns:1fr}.saved-config-controls .row{align-items:stretch}.saved-config-controls .btn{flex:1}}
