:root{color-scheme:dark;--bg:#100b13;--panel:#1b1526;--raised:#211a2d;--border:#40344f;--text:#faf5fc;--muted:#b1a7c0;--soft:#a66a7c;--accent:#ef304a;--accent-dark:#a90b29;--accent-faint:#3b1326;--ok:#6ee7ac}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(ellipse 100% 65% at 50% 55%,#4a183d 0%,#241331 42%,#0f0917 85%);color:var(--text);font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}
body:has(.overlay:not([hidden])){overflow:hidden}
button,input,select{font:inherit}
button{cursor:pointer}button:disabled{opacity:.57;cursor:wait}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #ff728b;outline-offset:3px}
input:focus,select:focus{outline:2px solid #ff526f;outline-offset:2px}
p,h1,h2{margin:0}
p{color:var(--muted)}
a{color:inherit}
.shell{min-height:100vh}
.topbar{height:68px;background:#100c17ec;border-bottom:1px solid #3e2141;display:flex;align-items:center;justify-content:space-between;padding:0 27px;gap:18px;position:relative;z-index:4}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:24px;font-weight:900;letter-spacing:-.8px;white-space:nowrap}.brand b{color:#fa3656}.brand img{width:42px;height:42px;object-fit:contain}
.toplinks{display:flex;justify-content:center;align-items:center;gap:14px}.toplinks button{color:#bfb2c9;padding:23px 10px 18px;background:transparent;border:0;border-bottom:2px solid transparent;font-size:13px;font-weight:760;white-space:nowrap}.toplinks button.current,.toplinks button:hover{color:#fff;border-bottom-color:#ef304a}
.account-button{background:#20162a;border:1px solid #8b2a45;border-radius:11px;color:#f9eaf2;font-weight:800;padding:9px 13px;white-space:nowrap}.account-button:hover{background:#451b33}.account-button>span{font-size:17px}
.app-layout{display:grid;grid-template-columns:225px minmax(0,1fr);min-height:calc(100vh - 68px)}
.sidebar{min-height:calc(100vh - 68px);background:#1a1428;border-right:1px solid #382940;padding:23px 11px 15px;display:flex;flex-direction:column}
.sidebar-title{color:#998bae;font-size:10px;font-weight:900;letter-spacing:1.4px;padding:0 13px 10px}
.sidebar nav{display:flex;flex-direction:column;gap:6px}.sidebar nav button{width:100%;border:1px solid transparent;background:transparent;color:#c9bcd2;padding:11px 12px;border-radius:9px;font-weight:760;text-align:left;display:flex;align-items:center;gap:11px}.sidebar nav button>span:first-child{font-size:17px;font-weight:650}.sidebar nav button.current,.sidebar nav button:hover{color:#ffb7c2;background:#402134;border-color:#81405a}.side-count{margin-left:auto;background:#ed304b;color:white;border-radius:99px;font-size:11px;padding:1px 7px}.sidebar-divider{height:1px;background:#3b2d49;margin:13px 5px}.sidebar-note{margin-top:auto;color:#7b7089;font-size:11px;border-top:1px solid #392b45;padding:15px 12px}
body:has(#page-enviar:not([hidden])) .app-layout{display:block}
body:has(#page-enviar:not([hidden])) .sidebar{display:none}
.content{min-width:0;padding:25px 30px 70px}
.page{min-width:0}
.send-wrap{max-width:570px;margin:clamp(16px,7vh,70px) auto 0}
.send-heading{text-align:center;margin-bottom:23px}.eyebrow{display:block;color:#fa8ca2;letter-spacing:1.4px;font-size:10px;font-weight:900;margin-bottom:7px}.send-heading h1{font-size:clamp(27px,4vw,34px);letter-spacing:-.8px;line-height:1.2;margin-bottom:5px}.send-heading p{font-size:13px}
.legal-note{display:flex;gap:12px;align-items:flex-start;border:1px solid #9f6539;background:#3d2932c9;padding:13px 15px;border-radius:12px;margin-bottom:14px}.legal-note p{color:#f0d6bd;font-size:12px;line-height:1.55}.legal-note strong{color:#ffc266}.legal-icon{border:1px solid #ffd263;color:#ffcd4c;border-radius:50%;display:grid;place-items:center;flex:0 0 18px;height:18px;font-weight:900;font-size:12px;margin-top:2px}
.wizard-card{border:1px solid #5a3b66;border-radius:17px;background:#20162feb;padding:17px 18px 19px;box-shadow:0 20px 55px #0005}
.wizard-progress{display:flex;align-items:center;justify-content:center;gap:9px;padding:0 0 17px;border-bottom:1px solid #372b42;margin-bottom:18px}.wizard-step{display:flex;align-items:center;gap:7px;color:#b5a7c5;font-weight:740;font-size:12px;white-space:nowrap}.wizard-step i{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;border:1px solid #65536d;color:#ada1bb;font-size:12px;font-style:normal;font-weight:900}.wizard-step.active{color:#fdf1f5}.wizard-step.active i{background:linear-gradient(135deg,#f74764,#a60f37);border-color:#fb5370;box-shadow:0 0 0 3px #fb3c6323;color:#fff}.wizard-step.done i{background:#2e6f4a;border-color:#56be7f;color:#fff}.progress-line{height:1px;flex:1;max-width:100px;background:#50415e}
.card-title{margin-bottom:13px}.card-title h2{font-size:17px;letter-spacing:-.25px;line-height:1.3}.card-title p{font-size:12px;margin-top:4px}.small-title h2{font-size:15px}
.platform-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:15px 0 19px}.platform{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:9px 5px;min-height:110px;background:#1b1426;border:1px solid #53435f;border-radius:11px;color:#fff;text-align:center;transition:background .14s,border .14s}.platform:hover{background:#2a1a31;border-color:#c64c65}.platform.selected{border:2px solid #f33d58;background:#3e1830;box-shadow:0 0 0 2px #ee38552b}.platform strong{font-size:11px;line-height:1.3}.platform small{font-size:10px;color:#afa4bc}.platform-ico{height:43px;width:100%;display:flex;align-items:center;justify-content:center}.platform-ico img{display:block;max-width:98%;object-fit:contain;max-height:39px;filter:drop-shadow(0 3px 8px #0007)}.platform-ico.android-ico img{width:34px;height:37px}.platform-ico.samsung-ico img{width:99px;height:36px}.platform-ico.lg-ico img{width:46px;height:35px}.platform-ico.roku-ico img{width:78px;height:33px;filter:brightness(0) invert(1)}.selected-mark{position:absolute;top:4px;right:5px;border-radius:50%;background:#f7445d;width:17px;height:17px;display:none;place-items:center;font-size:11px}.platform.selected .selected-mark{display:grid}
label{display:block;font-size:12px;font-weight:800;color:#f1e9f7;margin:14px 0 6px}
input,select{background:#1c122a;border:1px solid #58446a;border-radius:9px;min-height:44px;padding:10px 12px;width:100%;min-width:0;color:#fff;font-size:13px}
input::placeholder{color:#8b7d9b}
#deviceId{text-transform:uppercase;letter-spacing:.7px}
.hint{display:block;color:#9d91ad;font-size:11px;margin-top:6px;line-height:1.5}
.saved-block{border-top:1px solid #3e3048;padding-top:15px;margin-top:17px}.saved-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}.saved-caption strong{font-size:12px}.saved-caption small{font-size:11px;color:#ad9fbc}.saved-block select{color:#f3e4f4}
.nickname-details{margin-top:13px}.nickname-details summary{color:#f0a4b6;font-size:12px;cursor:pointer;font-weight:750}.nickname-details>div{background:#171020;padding:5px 12px 13px;margin-top:10px;border:1px solid #45334d;border-radius:10px}
.primary{background:linear-gradient(120deg,#ef3651,#b60c35);border:1px solid #f64d64;color:#fff;border-radius:9px;min-height:43px;padding:10px 17px;font-weight:880;box-shadow:0 4px 12px #a20b3345}.primary:hover{filter:brightness(1.1)}.full{width:100%}
.outline-button{background:#2b2037;border:1px solid #6c4c75;border-radius:9px;color:#f3dff2;min-height:39px;padding:8px 14px;font-weight:780}.outline-button:hover{background:#422c46}
.danger-ghost{background:transparent;border:1px solid #9d4563;border-radius:8px;color:#ffabc4;padding:8px 13px;min-height:39px;font-weight:750}
.wizard-actions{margin-top:19px}.wizard-actions .primary{min-height:47px}
.manage-link{display:block;background:transparent;color:#f5a7c2;border:0;text-decoration:none;font-weight:800;font-size:12px;margin:13px auto 0;padding:6px 9px}.manage-link:hover{text-decoration:underline}
.device-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#301d37;border:1px solid #634268;border-radius:11px;padding:11px 13px;margin-bottom:20px}.device-summary>div{display:grid;gap:1px;min-width:0}.device-summary small{font-size:10px;letter-spacing:1px;color:#cf93a8}.device-summary strong{font-size:15px;overflow-wrap:anywhere}.device-summary span{font-size:11px;color:#b8abbc}.device-summary button{flex:0 0 auto}
.slot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:13px}.slot{display:grid;place-items:center;gap:2px;background:#1b1426;border:1px solid #51415f;border-radius:10px;color:#eee6f3;min-height:88px;padding:9px 6px;text-align:center}.slot.selected{background:#441b33;border:2px solid #f33d58}.slot strong{font-size:12px}.slot small{font-size:11px;color:#a99ab4}.slot-icon{font-size:19px;color:#ffbd76}
.inline-note{font-size:11px;color:#cfbdd4;margin:10px 0;padding-left:10px;border-left:2px solid #dd9c47}
.reserve-tools{background:#191426;border:1px solid #554364;border-radius:9px;padding:10px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin:11px 0}.reserve-status strong{font-size:12px}.reserve-status small{display:block;color:var(--muted);font-size:10px}.reserve-buttons{display:flex;gap:6px}.reserve-buttons button{font-size:11px}
.section-rule{height:1px;background:#3d2d46;margin:19px 0 16px}
.input-modes{display:flex;gap:7px;margin-bottom:15px}.input-modes button{flex:1;background:#271b35;border:1px solid #61466d;color:#ddd0e8;border-radius:9px;min-height:42px;padding:8px;font-weight:800}.input-modes button.selected{background:#66243c;border-color:#f1486a;color:#fff}
.fieldgroup{display:block}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.two-fields>div{min-width:0}
.password-wrap{position:relative;display:block}.password-wrap input{padding-right:42px}.password-wrap button{position:absolute;right:1px;top:2px;width:40px;height:39px;color:#faacc5;background:transparent;border:0;font-size:20px}
.form-actions{display:flex;gap:9px;justify-content:end;align-items:center;margin-top:20px}.form-actions .primary{flex:1}.form-actions .outline-button{min-height:43px;flex:0 0 110px}
.license-note{text-align:center;color:#9b8fa5;font-size:11px;margin-top:15px}.under-wizard{text-align:center;color:#9989a7;font-size:11px;margin:16px 0 0}.under-wizard span{color:#ff8da6}
.result{padding:11px 13px;border:1px solid #30865e;background:#17372b;border-radius:9px;color:#b3f5ce;margin-top:14px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.result.error{background:#41192a;border-color:#9e425c;color:#ffbfc9}
.manage-page{max-width:1250px;margin:auto}.manage-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:15px;border-bottom:1px solid #4a3653;margin-bottom:17px}.manage-head h1{font-size:27px;line-height:1.3}.manage-head p{font-size:12px;margin-top:3px}
.device-list,.history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(238px,1fr));gap:12px}.device-card,.history-card{background:#22192f;border:1px solid #42324e;border-radius:13px;padding:14px;display:flex;flex-direction:column;align-items:stretch;gap:11px;min-width:0}.device-card:hover,.history-card:hover{border-color:#9a4662}.device-card .dev-name{font-size:15px;font-weight:850;display:flex;align-items:center;gap:8px}.device-card small,.history-card small{display:block;color:#b2a4bd;font-size:11px;overflow-wrap:anywhere;margin-top:5px}.device-card .card-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.device-card .card-actions button{min-height:38px;font-size:12px;padding:8px 6px}.history-card b{font-size:14px}.history-card button{margin-top:auto}.manage-help{font-size:12px;margin-top:16px}.empty{border:1px dashed #65536d;border-radius:12px;color:#ad9bba;padding:27px 16px;text-align:center;grid-column:1/-1}
.help-accordion{max-width:800px}.help-accordion details{background:#1d1628;border:1px solid #473752;border-radius:11px;margin-bottom:10px;padding:15px}.help-accordion summary{cursor:pointer;font-weight:830;font-size:14px}.help-accordion p{font-size:13px;padding:12px 0 0}.attribution{font-size:10px;color:#9989a8}
.mobile-nav{display:none}
.overlay{position:fixed;inset:0;background:#07050dbf;z-index:20;backdrop-filter:blur(6px);display:grid;place-items:center;padding:16px}.dialog{width:min(450px,100%);max-height:90dvh;overflow-y:auto;position:relative;background:#241a32;border:1px solid #895174;border-radius:16px;padding:23px;box-shadow:0 26px 90px #0009}.dialog-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;color:#fff;background:#be2544;font-size:24px;margin-bottom:13px}.dialog h2{font-size:20px}.dialog p{font-size:13px;margin:9px 0 16px;white-space:pre-line;overflow-wrap:anywhere}.dialog-actions{display:flex;gap:9px;margin-top:18px}.dialog-actions>*{flex:1}.account-dialog label{margin-top:13px}.account-dialog .input-modes{margin-top:15px}.account-dialog>.hint{margin-top:6px}.account-dialog .primary{margin-top:15px}.close-dialog{position:absolute;right:10px;top:6px;background:none;color:#e8cbd8;border:0;font-size:30px}
.toast{position:fixed;bottom:22px;right:22px;z-index:50;background:#16432c;border:1px solid #49a97e;border-radius:10px;padding:11px 15px;max-width:min(380px,calc(100vw - 24px));box-shadow:0 12px 30px #0009;font-weight:750}.toast.error{background:#4d1830;border-color:#dc4d69}
@media(min-width:980px) and (max-width:1250px){.toplinks{gap:4px}.toplinks button{padding-left:5px;padding-right:5px}}
@media(max-width:950px){.app-layout{display:block}.sidebar{display:none}.topbar{height:61px;padding:0 16px}.brand{font-size:20px}.brand img{width:35px;height:35px}.toplinks{display:none}.account-button{font-size:11px;padding:7px 9px}.content{padding:18px 13px 96px}.send-wrap{margin:23px auto 0}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:10;height:66px;padding:5px 6px max(7px,env(safe-area-inset-bottom));background:#140e1eea;border-top:1px solid #5d304b;justify-content:space-around;backdrop-filter:blur(14px)}.mobile-nav button{background:transparent;color:#aea1bc;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border:0;border-radius:9px;min-width:0;flex:1;font-size:10px;font-weight:780}.mobile-nav span{font-size:21px;line-height:1.3}.mobile-nav button.current{background:#4a1a30;color:#fff}.toast{bottom:77px;right:12px}}
@media(max-width:580px){.content{padding:16px 11px 90px}.send-wrap{margin:5px auto}.send-heading{margin-bottom:17px}.send-heading h1{font-size:26px}.legal-note{padding:10px 11px;margin-bottom:12px}.legal-note p{font-size:11px}.wizard-card{padding:15px 12px 16px;border-radius:14px}.wizard-progress{gap:5px}.wizard-step{font-size:11px;gap:5px}.wizard-step i{width:24px;height:24px;font-size:11px}.progress-line{min-width:8px}.platform-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:13px 0 16px}.platform{min-height:89px;gap:1px;padding:7px 5px}.platform-ico{height:34px}.platform-ico img{max-height:31px}.platform-ico.android-ico img{height:30px;width:30px}.platform-ico.samsung-ico img{max-width:90px}.platform-ico.lg-ico img{height:31px}.platform-ico.roku-ico img{max-width:77px}.platform strong{font-size:11px}.platform small{font-size:10px}.saved-caption{align-items:start;flex-direction:column;gap:2px}.device-summary strong{font-size:13px}.slot-grid{gap:5px}.slot{min-height:73px;padding:7px 4px}.slot strong{font-size:11px}.slot small{font-size:10px}.slot-icon{font-size:17px}.two-fields{grid-template-columns:1fr;gap:0}.form-actions .outline-button{flex-basis:85px}.manage-head h1{font-size:22px}.manage-head .primary{padding:8px 10px;white-space:nowrap}.device-list,.history-grid{grid-template-columns:1fr}.reserve-tools{align-items:stretch}.reserve-buttons{width:100%}.reserve-buttons button{flex:1}.dialog{padding:20px 16px}.dialog-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Cartões e ações no gerenciamento, separados do envio */
.device-card .dev-name{min-height:36px}
.device-logo{width:39px;height:35px;flex:0 0 39px;object-fit:contain;vertical-align:middle;background:#34233f;border-radius:7px;padding:5px}
.device-logo.roku-white{filter:brightness(0) invert(1);background:transparent}
.device-card .card-actions{grid-template-columns:1fr 1fr}
.device-card .card-actions .danger-ghost{grid-column:1/-1;justify-self:start;border:0;background:transparent;min-height:24px;color:#bb8da0;padding:2px 4px;font-size:11px}
.manage-actions{display:flex;gap:7px;flex-wrap:wrap}
.manage-page .outline-button{font-size:12px}
@media(max-width:580px){.manage-actions button{padding:7px 9px}.device-card{padding:13px}}

/* Identidade PipocaTV: vermelho, vinho e preto (não roxo). */
body{background:radial-gradient(ellipse 100% 65% at 50% 60%,#321320 0%,#1a1018 42%,#0b0b11 86%)}
.topbar{background:#110d12;border-bottom-color:#44202c}
.sidebar{background:#171119;border-right-color:#402932}
.wizard-card{background:#1b1720;border-color:#503440}
.platform{background:#15141b;border-color:#50404b}
.platform.selected{background:#3b1523}
input,select{background:#14131a;border-color:#5a404d}
.saved-block{border-top-color:#49323d}
.device-summary{background:#2e1a28}
.slot{background:#17141d}
.slot.selected{background:#3f1b29}
.legal-note{background:#352029}
.device-card,.history-card,.help-accordion details{background:#1c1720;border-color:#47313e}
@media(max-width:580px){
  #wizard-identity{padding-bottom:14px}
  #wizard-identity .wizard-actions{position:sticky;bottom:75px;z-index:9;background:#211820;border:1px solid #7c3549;border-radius:12px;margin:14px -5px 0;padding:5px;box-shadow:0 8px 26px #000b}
  #wizard-identity .wizard-actions .primary{min-height:46px}
}

/* Transferência opcional de aparelhos salvos no navegador para a conta. */
.migration-callout{background:#2b1b2a;border:1px solid #904456;border-radius:12px;padding:13px;margin:13px 0}
.migration-callout strong{color:#ffe2e7;font-size:13px}
.migration-callout p{font-size:12px;color:#c5b4c0;margin:5px 0 12px}
.migration-callout button{font-size:12px}
.transfer-summary{background:#18141d;border:1px solid #5c3645;border-radius:12px;padding:13px}
.transfer-summary>strong{display:block;font-size:14px;color:#ffbdc8;margin-bottom:9px}
.transfer-list{display:grid;gap:6px;max-height:190px;overflow-y:auto}
.transfer-device{display:flex;align-items:flex-start;gap:8px;border-radius:8px;background:#ffffff08;padding:8px 10px}
.transfer-device span{flex:0 0 22px;color:#ff6a83;font-size:17px}
.transfer-device div{min-width:0}
.transfer-device b{display:block;font-size:12px;overflow-wrap:anywhere}
.transfer-device small{display:block;font-size:10px;color:#bdaeba;overflow-wrap:anywhere}
.transfer-privacy{font-size:11px!important;color:#c2b5c2;margin:13px 0 0!important;line-height:1.5}
.transfer-privacy strong{color:#f3dbe4}
.transfer-dialog .dialog-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:9px}
.transfer-dialog .dialog-actions button{min-height:46px}
@media(max-width:410px){.transfer-dialog .dialog-actions{grid-template-columns:1fr}.transfer-dialog .dialog-actions button{width:100%}}

/* Gerenciamento do histórico: excluir registro individual ou limpar o histórico. */
.manage-actions .danger-ghost{background:#381723;border-color:#a83f58;color:#ffb7c3}
.manage-actions .danger-ghost:hover{background:#55202e}
.history-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch;margin-top:auto}
.history-actions .outline-button{min-width:0}
.history-actions .danger-ghost{padding:7px 12px;font-size:12px;background:#371923;border-color:#a13d59}
.history-actions .danger-ghost:hover{background:#552030}
@media(max-width:580px){.manage-actions{max-width:100%;justify-content:flex-end}.manage-actions .danger-ghost{font-size:11px;padding:7px 10px}.history-actions .danger-ghost{min-height:40px}}
