/* KIVOX Portal do Cliente v1.0.0 — visual premium, sem alterar a API */
:root{
  color-scheme:dark;
  --bg:#07111f;
  --bg2:#091827;
  --card:#0e2238;
  --ink:#f3f8ff;
  --secondary:#9db1c8;
  --muted:#7894b0;
  --line:#263e57;
  --accent:#208ff8;
  --accent-soft:#112d49;
  --cyan:#49d4f3;
  --violet:#a6b5ff;
  --danger:#ff9ba9;
  --danger-bg:#35212f;
  --green:#4fdfae;
  --radius:20px;
  --shadow:0 20px 60px rgba(0,0,0,.18);
}
html{scroll-behavior:smooth}
body{background:
  radial-gradient(ellipse 900px 550px at 100% -10%,rgba(19,91,165,.16),transparent 70%),
  radial-gradient(ellipse 660px 450px at 0% 85%,rgba(12,74,132,.1),transparent 70%),
  linear-gradient(160deg,#07111e 0%,#091625 65%,#07121f 100%)!important;
  background-attachment:fixed!important;
  color:#f2f8ff;min-height:100dvh;
}
.site-header{height:76px!important;background:rgba(7,17,30,.9)!important;border-bottom:1px solid rgba(72,112,147,.22)!important;backdrop-filter:blur(20px)!important;position:relative;z-index:3}
.site-header-inner{width:min(1190px,calc(100% - 52px))!important}
.brand{gap:12px}
.brand-icon{width:44px!important;height:44px!important;filter:drop-shadow(0 0 12px rgba(22,132,234,.17))}
.brand-name{display:flex!important;flex-direction:column!important;align-items:start!important;gap:3px!important}
.brand-name b{font-size:22px!important;font-weight:850!important;line-height:1!important;letter-spacing:.105em!important}
.brand-name small{color:#76bce9!important;font-size:9px!important;letter-spacing:.23em!important;font-weight:720!important}
.secure-text{font-size:12px!important;color:#a0c8c0!important}
.secure-text i{background:#46daa3!important;box-shadow:0 0 8px rgba(46,218,151,.25)}
.header-actions .link-btn,.link-btn{color:#a2b9d1!important;font-size:12px!important}
.header-actions .link-btn:hover,.link-btn:hover{color:#cbeaff!important}
.shell{width:min(1190px,calc(100% - 52px))!important;min-height:calc(100dvh - 76px)!important}
.footer{padding:30px 0 26px!important;font-size:11px!important;color:#708ba5!important}
.surface{background:linear-gradient(167deg,#10273e 0%,#0b1d31 100%)!important;border:1px solid rgba(65,102,136,.42)!important;border-radius:22px!important;box-shadow:none!important}
.btn{border:0!important;border-radius:12px!important;min-height:44px!important;font-weight:750!important;box-shadow:none!important;letter-spacing:-.01em}
.btn.primary{background:linear-gradient(100deg,#118df7,#256be9)!important;color:#fff!important}
.btn.primary:hover{background:linear-gradient(100deg,#36aaff,#3384ff)!important;box-shadow:0 7px 20px rgba(14,106,206,.15)!important}
.btn.outline{background:#132e49!important;color:#d8eaf9!important;border:0!important}
.btn.outline:hover{background:#1b3b5d!important}
.btn.danger{background:#943d58!important}
button:focus-visible,input:focus-visible{outline:2px solid #56c2ff!important;outline-offset:2px!important}

/* Login, 2-column premium presentation */
.login-view{padding:0!important;display:none!important}
.login-view.active{display:block!important}
.portal-login-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,.82fr);min-height:calc(100dvh - 166px);align-items:center;gap:clamp(45px,6vw,108px);padding:58px 0 36px}
.portal-login-intro{max-width:590px;padding:12px 0 55px}
.portal-mini-kicker{font-size:11px;letter-spacing:.2em;font-weight:800;color:#69bdf3;display:flex;align-items:center;gap:10px;margin-bottom:22px}
.portal-mini-kicker span{width:7px;height:7px;border-radius:50%;background:#4cc9f5;box-shadow:0 0 16px rgba(43,166,236,.3)}
.portal-login-intro h1{font-size:clamp(48px,5.5vw,78px);line-height:1.08;letter-spacing:-.069em;margin:0 0 24px;color:#f5fbff;font-weight:840}
.portal-login-intro h1 em{font-style:normal;background:linear-gradient(95deg,#58c5ff 0%,#5f91ff 65%,#a58bff 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.portal-login-intro>p{font-size:17px;color:#93aec8;line-height:1.75;max-width:480px;margin:0 0 34px}
.portal-login-features{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.portal-login-features span{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(13,43,71,.76);border:1px solid rgba(60,104,142,.33);font-size:12px;color:#bad3e9;font-weight:700}
.portal-login-features svg{width:17px;height:17px;color:#5ac7fc}
.portal-login-foot{font-size:12px;color:#67849f;letter-spacing:.035em;margin-top:64px}
.portal-login-formcol{width:min(100%,475px);justify-self:end}
.login-heading{text-align:left!important;margin-bottom:22px!important}
.portal-form-eyebrow{font-size:10px;letter-spacing:.18em;color:#6bc5f8;font-weight:800;display:block;margin-bottom:11px}
.login-heading h1{font-size:30px!important;letter-spacing:-.04em!important;margin:0 0 7px!important;color:#f7fbff!important;font-weight:800!important}
.login-heading p{font-size:13px!important;color:#8eafc9!important;line-height:1.6!important}
.login-card{padding:30px!important;border-radius:22px!important;background:linear-gradient(170deg,#10253a,#0b1c2f)!important;border:1px solid rgba(68,108,141,.48)!important;box-shadow:0 25px 80px rgba(1,8,18,.2)!important}
.login-card .field+.field{margin-top:18px!important}
.field{font-size:12px!important;color:#cde1f3!important;font-weight:700!important}
.field>span:first-child{margin-bottom:8px!important}
.field input{height:50px!important;background:#0a1c2f!important;border:1px solid #294863!important;color:#f4f9ff!important;border-radius:12px!important;font-size:14px!important;transition:border-color .15s,box-shadow .15s!important}
.field input:focus{outline:0!important;border-color:#2f9bef!important;box-shadow:0 0 0 3px rgba(20,153,247,.15)!important}
.field input::placeholder{color:#6786a2!important}
.login-card .btn.full{margin-top:19px!important;min-height:49px!important}
.login-disclaimer{text-align:left!important;font-size:11px!important;color:#7794af!important;margin:17px 0 0!important;max-width:430px!important}

/* Dashboard and overview */
.dashboard-view{padding-top:38px!important}
.portal-dashboard-top{margin-bottom:21px!important}
.portal-dashboard-top h1{font-size:clamp(28px,3vw,36px)!important;line-height:1.16!important;letter-spacing:-.047em!important;font-weight:820!important;color:#f4faff!important;margin-bottom:6px!important}
.portal-dashboard-top p{font-size:13px!important;color:#87a9c7!important}
.portal-dashboard-top .btn{min-width:120px}
.device-summary{display:grid!important;grid-template-columns:minmax(0,1.1fr) 1px minmax(0,.92fr)!important;gap:22px!important;min-height:130px!important;padding:22px 28px!important;background:linear-gradient(110deg,#112c49,#0c2137)!important;border:1px solid rgba(65,113,156,.47)!important}
.device-summary-main,.device-summary-license{display:flex!important;align-items:center!important;gap:15px!important;min-width:0!important}
.summary-icon,.license-icon{display:grid!important;place-items:center!important;width:60px!important;height:60px!important;min-width:60px!important;border-radius:18px!important;background:#143b61!important;color:#73c3f9!important;border:1px solid rgba(75,144,188,.26)!important}
.summary-icon svg,.license-icon svg{width:32px!important;height:32px!important}
.license-icon{background:#103c3a!important;color:#6cddc1!important}
.device-summary .summary-copy{min-width:0!important;flex:1!important}
.device-summary .section-label{font-size:10px!important;letter-spacing:.16em!important;color:#86a9c7!important;margin-bottom:4px!important}
.device-summary .summary-copy strong{font-size:clamp(16px,1.7vw,21px)!important;letter-spacing:-.02em!important;line-height:1.25!important;color:#f2f9ff!important;font-weight:780!important}
.device-summary .summary-copy small{font-size:12px!important;color:#89aac6!important;margin-top:3px!important;line-height:1.3!important}
.device-summary-license #licenseStatus[data-state="active"]{color:#77e4c3!important}
.device-summary-license #licenseStatus[data-state="blocked"],.device-summary-license #licenseStatus[data-state="expired"]{color:#ff9fad!important}
.summary-divider{height:62px!important;background:rgba(74,118,156,.34)!important}
.portal-license-link{appearance:none;border:0;background:rgba(24,79,120,.35);color:#9ad4ff;font-size:11px;font-weight:760;border-radius:10px;white-space:nowrap;align-self:center;padding:8px 11px}
.portal-license-link:hover{background:#17476f;color:#fff}

/* Tab navigation like Reseller */
.portal-nav{display:flex;gap:7px;align-items:center;overflow-x:auto;scrollbar-width:thin;padding:6px;background:rgba(9,25,41,.9);border:1px solid rgba(53,90,123,.34);border-radius:16px;margin:20px 0 18px}
.portal-tab{flex:none;appearance:none;border:1px solid transparent;border-radius:12px;color:#96b1cc;background:transparent;display:flex;align-items:center;gap:10px;min-height:46px;padding:11px 18px;font-size:14px;font-weight:770;white-space:nowrap;transition:background .18s,color .18s}
.portal-tab svg{width:19px;height:19px;flex:none}
.portal-tab:hover{background:#102c46;color:#e9f7ff}
.portal-tab.active{background:linear-gradient(100deg,rgba(16,104,198,.34),rgba(14,69,133,.37));color:#79caff;border-color:rgba(43,119,191,.42)}
.portal-tab-count{display:none!important;align-items:center;justify-content:center;min-width:22px;height:22px;background:#214669;border-radius:8px;font-size:11px;color:#b7ddff;padding:0 5px}
.portal-panel[hidden]{display:none!important}
.portal-panel{animation:portal-enter .19s ease both}
@keyframes portal-enter{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
.portal-section-overline{display:block;color:#7ec2f3;font-size:10px;letter-spacing:.16em;font-weight:850;margin-bottom:8px}
.playlist-panel{margin-top:0!important;padding:26px!important}
.playlist-panel-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important}
.playlist-heading-icon{display:none!important}
.playlist-panel-header h2,.portal-section-header h2{font-size:23px!important;font-weight:820!important;letter-spacing:-.035em!important;color:#f4faff!important;margin:0 0 5px!important}
.playlist-panel-header p,.portal-section-header p{font-size:13px!important;color:#8eabc5!important;margin:0!important}
.playlist-list{margin-top:18px!important}
.playlist-item{padding:16px 10px!important;margin:0!important;border-top:1px solid rgba(60,100,134,.26)!important;gap:14px!important}
.playlist-item:hover{background:rgba(26,69,103,.16)!important;border-radius:12px!important}
.playlist-title h3{font-size:15px!important;color:#f0f7ff!important}
.playlist-actions button{border:0!important;border-radius:10px!important;background:#163551!important;color:#cbe6f8!important;font-size:12px!important;min-height:38px!important;padding:8px 12px!important}
.playlist-actions button:hover{background:#1c466b!important}
.playlist-actions button.danger-text{background:#34232e!important;color:#ffb3c2!important;border:0!important}
.playlist-actions button.danger-text:hover{background:#472b3b!important}
.badge{border-radius:8px!important;padding:4px 8px!important;background:#163a57!important;color:#9ad9ff!important;font-size:10px!important}
.badge.default{background:#174938!important;color:#84f3c1!important}
.badge.protected{background:#342b53!important;color:#e2c5ff!important}
.empty-state{border-top:1px solid rgba(60,100,134,.28)!important;margin-top:20px!important;padding:52px 16px!important}
.empty-glyph{background:#123c5e!important;color:#82d4ff!important;border-radius:16px!important}
.empty-state h3{color:#edf8ff!important}
.empty-state p{color:#89acc7!important}
.dashboard-note{font-size:11px!important;color:#7694ac!important;margin:18px 0 6px!important}

/* Activation: status-only. No phantom checkout; no billing without backend. */
.portal-activation-card,.portal-device-card{padding:28px!important}
.portal-section-header{display:flex;align-items:start;justify-content:space-between;gap:18px;margin-bottom:22px}
.portal-license-chip{padding:7px 11px;font-size:11px;font-weight:800;border-radius:999px;color:#a5c6e0;background:#1b3c58;white-space:nowrap}
.portal-license-chip[data-state="active"]{background:#123c36;color:#6fe1b4}
.portal-license-chip[data-state="expired"],.portal-license-chip[data-state="blocked"]{background:#432630;color:#ffabb6}
.portal-activation-status{display:flex;align-items:center;gap:17px;background:linear-gradient(110deg,#112e4d,#10283f);border:1px solid rgba(54,103,147,.44);border-radius:18px;padding:22px;margin-bottom:17px}
.portal-status-emblem{height:62px;width:62px;min-width:62px;display:grid;place-items:center;background:#174268;color:#7fd5ff;border-radius:18px}
.portal-status-emblem svg{width:32px;height:32px}
.portal-small-label{display:block;color:#84abc7;font-size:10px;font-weight:820;letter-spacing:.14em;margin-bottom:5px}
.portal-activation-status strong{display:block;color:#f6fbff;font-size:24px;line-height:1.2;font-weight:850;letter-spacing:-.03em}
.portal-activation-status p{color:#a7c3d7;font-size:13px;margin:5px 0 0}
.portal-activation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.portal-activation-option{background:#0a2034;border:1px solid rgba(54,100,134,.38);border-radius:17px;padding:20px;min-width:0}
.portal-option-symbol{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#153958;color:#83d2ff;font-size:15px;font-weight:850;margin-bottom:15px}
.portal-activation-option h3{color:#eff8ff;font-size:16px;letter-spacing:-.02em;margin:0 0 6px}
.portal-activation-option p{color:#88aac5;font-size:12px;line-height:1.6;margin:0}
.portal-activation-bottom{margin-top:17px;border-radius:17px;background:#0d2c43;padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid rgba(60,120,156,.32)}
.portal-activation-bottom strong{color:#ddf1ff;font-size:13px}
.portal-activation-bottom p{margin:4px 0 0;font-size:12px;color:#94b5cf;line-height:1.6;max-width:560px}
.portal-activation-bottom .btn{white-space:nowrap;flex:none}
.portal-device-details{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.portal-device-details>div{display:grid;gap:5px;padding:18px;background:#0a2034;border-radius:15px;border:1px solid rgba(58,100,139,.32)}
.portal-device-details>div:first-child{grid-column:1/-1}
.portal-device-details span{font-size:10px;letter-spacing:.12em;color:#7da2c0;font-weight:800}
.portal-device-details strong{font-size:17px;font-weight:780;color:#f1f8ff;overflow-wrap:anywhere}
.portal-device-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px}
.portal-device-footer p{font-size:12px;max-width:620px;color:#7f9fba;margin:0}
.portal-device-footer button{flex:none}

/* Modal visuals aligned to Reseller */
.modal{background:rgba(2,9,19,.78)!important;backdrop-filter:blur(7px)}
.modal-card{background:linear-gradient(155deg,#112940,#0b1d2f)!important;color:#f1f8ff!important;border:1px solid #2b4a65!important;border-radius:22px!important;box-shadow:0 28px 88px rgba(0,0,0,.42)!important}
.modal-head h2{font-size:23px!important;color:#f4faff!important}
.modal-head p{color:#91adc6!important}
.icon-btn{color:#abc6dc!important;border:0!important;background:#163550!important;width:34px;height:34px;border-radius:11px!important;display:grid;place-items:center;font-size:24px!important}
.icon-btn:hover{background:#225277!important;color:white!important}
.source-choice{background:#0a2237!important;border-radius:12px!important;padding:4px!important;gap:5px!important}
.source-option{color:#8cacc6!important;border:0!important;border-radius:10px!important}
.source-option.active{background:#1e4d78!important;color:#e7f6ff!important;box-shadow:none!important}
.protection-box{background:#0b263d!important;border:1px solid #264863!important;border-radius:14px!important}
.protection-head strong{color:#e7f3fc!important}
.protection-head small{color:#9ab8d2!important}
#partnerSourceField:not(.hidden-section) #plPartnerCode{background:#0b2b43!important;border-color:#2f6686!important;color:#f2f8ff!important}
.playlist-feedback:not(:empty){border-radius:12px!important}
.legal-grid>div{border-color:#294561!important;border-radius:13px!important;background:#0b2439!important}
.legal-grid b{color:#ecf7ff!important}
.legal-copy>p,.legal-grid p{color:#9bb5ce!important}
.legal-muted{color:#87a5c1!important}
.modal-actions{border-top:1px solid rgba(78,120,153,.2)!important;padding-top:18px!important}
.confirm-icon{background:#3c2734!important;color:#ffadb9!important}
.toast{background:#143d5b!important;color:#e7f6ff!important;border:1px solid #2d6588!important;border-radius:14px!important}
.toast.error{background:#492a38!important;border-color:#8c5365!important}

/* Accessibility and mobile */
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(max-width:950px){
  .portal-login-layout{grid-template-columns:minmax(0,1fr) minmax(340px,.94fr);gap:30px}
  .portal-login-intro h1{font-size:clamp(42px,5vw,61px)}
  .portal-login-intro>p{font-size:15px}
  .device-summary{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
  .summary-divider{height:1px!important;width:100%!important}
}
@media(max-width:720px){
  .site-header{height:70px!important}
  .site-header-inner,.shell{width:calc(100% - 30px)!important}
  .portal-login-layout{grid-template-columns:1fr;gap:26px;padding:36px 0 18px;min-height:auto}
  .portal-login-intro{padding:0;max-width:100%}
  .portal-login-intro h1{font-size:clamp(36px,8vw,49px);margin-bottom:13px}
  .portal-login-intro>p{font-size:13px;line-height:1.6;margin-bottom:13px}
  .portal-login-features,.portal-login-foot{display:none}
  .portal-login-formcol{justify-self:center;width:min(100%,490px)}
  .login-heading h1{font-size:25px!important}
  .login-card{padding:23px!important}
  .dashboard-view{padding-top:24px!important}
  .portal-dashboard-top h1{font-size:28px!important}
  .device-summary{padding:17px!important}
  .portal-nav{margin:15px 0!important}
  .portal-tab{padding:10px 13px;min-height:43px;font-size:12px}
  .playlist-panel{padding:20px!important}
  .playlist-panel-header{display:flex!important;align-items:flex-start!important;flex-direction:column!important}
  .playlist-panel-header .btn{width:100%;margin-top:0!important}
  .playlist-item{padding:15px 3px!important}
  .portal-section-header{flex-direction:column;gap:12px}
  .portal-activation-card,.portal-device-card{padding:18px!important}
  .portal-activation-grid{grid-template-columns:1fr}
  .portal-activation-bottom,.portal-device-footer{align-items:stretch;flex-direction:column;gap:12px}
  .portal-device-footer .btn,.portal-activation-bottom .btn{width:100%}
  .portal-device-details{grid-template-columns:1fr}
  .portal-device-details>div:first-child{grid-column:auto}
  .modal-card{border-radius:19px 19px 0 0!important}
  .modal-actions{background:#0c2033!important;border-top:1px solid #294661!important}
}
@media(max-width:420px){
  .site-header-inner,.shell{width:calc(100% - 24px)!important}
  .site-header .brand-icon{width:38px!important;height:38px!important}
  .header-actions{gap:6px!important}
  .header-actions .link-btn{display:none!important}
  .secure-text{font-size:11px!important}
  .portal-login-intro h1{font-size:37px}
  .portal-nav{gap:3px}
  .portal-tab{font-size:12px;padding:9px 10px}
  .portal-tab svg{width:17px;height:17px}
  .portal-tab-count{min-width:19px;height:19px}
  .device-summary-main,.device-summary-license{gap:11px!important}
  .summary-icon,.license-icon{width:46px!important;height:46px!important;min-width:46px!important;border-radius:13px!important}
  .summary-icon svg,.license-icon svg{width:26px!important;height:26px!important}
  .device-summary .summary-copy strong{font-size:16px!important}
  .portal-license-link{font-size:10px;padding:7px 8px}
  .portal-activation-status{padding:14px;gap:12px}
  .portal-status-emblem{width:48px;height:48px;min-width:48px}
  .portal-activation-status strong{font-size:20px}
  .portal-dashboard-top .btn{font-size:12px!important;min-width:0!important;padding:0 11px!important}
}

/* Geometria original permanece sutil para acompanhar o Reseller. */
html{background:#07111f!important}
body::before{opacity:.16!important}
body::after{opacity:.13!important}
.footer{background:transparent!important}

/* KIVOX Portal Cliente V1.0.1 — ajustes minimalistas homologados */
/* Login: sem títulos redundantes e com instrução centralizada. */
.login-heading{margin-bottom:17px!important}
.login-heading .portal-form-eyebrow{margin-bottom:10px!important}
.login-heading p{margin:0!important;text-align:center!important;max-width:100%!important;font-size:14px!important;line-height:1.6!important;color:#aac5dc!important}
.portal-login-intro{padding-top:0!important}
.portal-login-intro h1{margin-top:0!important}
/* Área conectada: sem marcador redundante sobre o título. */
.portal-dashboard-top{margin-bottom:18px!important}

/* Playlists compactas: hierarquia consistente, sem caixas e botões gigantes. */
#portalPanelPlaylists .playlist-panel{padding:21px!important}
#portalPanelPlaylists .playlist-panel-header{gap:12px!important}
#portalPanelPlaylists .playlist-panel-header h2{font-size:23px!important}
#portalPanelPlaylists .playlist-panel-header .btn.primary{min-height:41px!important;white-space:nowrap!important;font-size:13px!important;padding:0 16px!important;box-shadow:none!important}
#portalPanelPlaylists .playlist-list{display:grid!important;gap:9px!important;margin-top:16px!important}
#portalPanelPlaylists .playlist-item{
  display:flex!important;flex-direction:row!important;justify-content:space-between!important;
  align-items:center!important;gap:12px!important;padding:11px 13px!important;
  min-height:68px!important;margin:0!important;
  border:1px solid rgba(57,104,145,.43)!important;border-radius:14px!important;
  background:linear-gradient(110deg,rgba(8,30,49,.86),rgba(9,28,47,.95))!important;
  box-shadow:none!important;
}
#portalPanelPlaylists .playlist-item:hover{background:#112d48!important;border-color:rgba(72,139,192,.6)!important}
#portalPanelPlaylists .playlist-info{
  min-height:40px!important;padding-left:50px!important;flex:1 1 180px!important;
  display:flex!important;align-items:flex-start!important;justify-content:center!important;
}
#portalPanelPlaylists .playlist-info::before{
  content:"☷"!important;left:0!important;top:50%!important;
  transform:translateY(-50%)!important;
  width:39px!important;height:39px!important;font-size:23px!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,#154d85,#11325b)!important;
  border:1px solid rgba(74,140,194,.42)!important;color:#c4e6ff!important;
}
#portalPanelPlaylists .playlist-title{gap:6px 9px!important;flex-wrap:wrap!important;min-width:0!important}
#portalPanelPlaylists .playlist-title h3{font-size:15px!important;line-height:1.3!important;font-weight:770!important;overflow-wrap:anywhere!important}
#portalPanelPlaylists .badge{font-size:9px!important;line-height:1.2!important;letter-spacing:.03em!important;padding:5px 8px!important;border-radius:7px!important}
#portalPanelPlaylists .badge.default{color:#90edc3!important;background:#194537!important}
#portalPanelPlaylists .badge.protected{color:#e0c5ff!important;background:#302847!important}
#portalPanelPlaylists .playlist-actions{
  display:flex!important;flex:0 0 auto!important;gap:7px!important;width:auto!important;
  align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;
}
#portalPanelPlaylists .playlist-actions button{
  flex:0 0 auto!important;min-height:33px!important;padding:0 12px!important;
  font-size:11px!important;font-weight:750!important;line-height:1.3!important;
  color:#cde7fa!important;background:#173650!important;
  border:0!important;border-radius:9px!important;box-shadow:none!important;
}
#portalPanelPlaylists .playlist-actions button:hover{background:#245174!important}
#portalPanelPlaylists .playlist-actions button.danger-text{color:#ffb2c1!important;background:#32232e!important}
#portalPanelPlaylists .playlist-actions button.danger-text:hover{background:#482a3b!important}

/* Sem cópia ou aviso redundante na área "Meu dispositivo". */
#portalPanelDevice .portal-device-card{padding-bottom:24px!important}

@media(max-width:720px){
  #portalPanelPlaylists .playlist-panel{padding:16px!important}
  #portalPanelPlaylists .playlist-panel-header{flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  #portalPanelPlaylists .playlist-panel-header .playlist-heading{margin:0!important}
  #portalPanelPlaylists .playlist-panel-header .btn.primary{width:100%!important;min-height:41px!important;margin:0!important}
  #portalPanelPlaylists .playlist-list{margin-top:12px!important;gap:9px!important}
  #portalPanelPlaylists .playlist-item{flex-direction:column!important;align-items:stretch!important;gap:9px!important;padding:11px!important;min-height:0!important}
  #portalPanelPlaylists .playlist-info{flex:initial!important;min-height:40px!important;padding-left:49px!important}
  #portalPanelPlaylists .playlist-actions{width:100%!important;justify-content:stretch!important;gap:7px!important}
  #portalPanelPlaylists .playlist-actions button{flex:1 1 0!important;min-width:0!important;padding:7px 6px!important;min-height:34px!important}
  #portalPanelPlaylists .playlist-title h3{font-size:14px!important}
  .portal-login-formcol .login-heading{margin-bottom:15px!important}
}
@media(max-width:385px){
  #portalPanelPlaylists .playlist-panel{padding:13px!important}
  #portalPanelPlaylists .playlist-item{padding:10px!important}
  #portalPanelPlaylists .playlist-actions{gap:5px!important}
  #portalPanelPlaylists .playlist-actions button{font-size:10px!important}
}


/* KIVOX Portal Cliente V1.0.2 — finalização visual (somente 3 ajustes) */
/* Indicador do formulário centralizado em telas grandes e pequenas. */
.login-heading .portal-form-eyebrow{
  display:block!important;
  width:100%!important;
  text-align:center!important;
}
/* Mantém a rolagem horizontal das abas no mobile, mas oculta a barra cinza. */
.portal-nav{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.portal-nav::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}


/* KIVOX Portal Cliente V1.0.3 — 3 abas sempre visíveis, sem rolagem lateral. */
.portal-tab-label{display:block;min-width:0;text-align:center}
/* Em telas menores, distribui o espaço da navegação igualmente entre as três opções. */
@media(max-width:900px){
  .portal-nav{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:stretch!important;
    gap:5px!important;
    overflow:visible!important;
    padding:5px!important;
  }
  .portal-tab{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    flex:initial!important;
    justify-content:center!important;
    gap:6px!important;
    padding:10px 5px!important;
    white-space:normal!important;
    text-align:center!important;
  }
  .portal-tab-label{min-width:0!important;line-height:1.2!important;overflow-wrap:normal!important}
  .portal-tab-count{flex:none!important}
}
/* Em celulares estreitos, ícone acima do rótulo: mantém as três abas legíveis. */
@media(max-width:480px){
  .portal-nav{gap:4px!important;padding:4px!important}
  .portal-tab{
    position:relative!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:21px minmax(30px,auto)!important;
    align-content:center!important;
    justify-items:center!important;
    row-gap:6px!important;
    min-height:68px!important;
    padding:8px 4px!important;
    font-size:12px!important;
  }
  .portal-tab svg{grid-row:1!important;width:18px!important;height:18px!important}
  .portal-tab-label{
    grid-row:2!important;
    font-size:clamp(10.6px,2.95vw,12.2px)!important;
    font-weight:780!important;
    text-align:center!important;
    line-height:1.18!important;
    max-width:100%!important;
    overflow-wrap:break-word!important;
    align-self:center!important;
  }
  .portal-tab-count{display:none!important}
}

/* KIVOX — pagamentos apenas na homologação de dispositivos autorizados. */
.portal-payment-test{margin-top:17px;padding:17px;border:1px solid rgba(64,198,255,.23);border-radius:13px;background:rgba(10,31,55,.6)}
.portal-payment-test.hidden-section{display:none!important}
.portal-payment-test-label{font-size:10px;font-weight:800;letter-spacing:.10em;color:#67d1ff}
.portal-payment-test p{font-size:13px;line-height:1.6;margin:8px 0;color:#c6d5e8}
.portal-payment-test-options{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.portal-payment-test-options button{min-width:190px;flex:1 1 180px}
.portal-payment-test-options button:disabled{opacity:.5;cursor:wait}
.portal-payment-test .portal-payment-test-status{margin-bottom:0;min-height:20px}

/* KIVOX — Checkout Transparente / homologacao restrita / desktop e mobile. */
.kivox-transp{margin-top:16px;padding:19px;border:1px solid rgba(71,190,252,.28);border-radius:16px;background:linear-gradient(145deg,rgba(15,43,70,.98),rgba(8,27,45,.98))}
.kivox-transp.hidden-section,.kivox-transp-pane.hidden-section,.kivox-transp-pix-result.hidden-section,.kivox-transp-qr.hidden-section{display:none!important}
.kivox-transp-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.kivox-transp-head h3{font-size:21px;margin:5px 0;color:#f5faff}
.kivox-transp-head strong{font-size:24px;color:#75d9ff}
.kivox-transp-head .btn{white-space:nowrap}
.kivox-transp-disclaimer{font-size:12px;line-height:1.6;color:#a7c1d9}
.kivox-transp-methods{display:flex;gap:10px;margin:17px 0}
.kivox-transp-method{flex:1;min-height:45px;border:1px solid #305371;border-radius:11px;background:#0b2943;color:#c9dced;font-weight:750;cursor:pointer}
.kivox-transp-method.active,.kivox-transp-method[aria-pressed="true"]{border-color:#6ed5ff;background:#153c5b;color:#e9f8ff;box-shadow:inset 0 0 0 1px #4597cb}
.kivox-transp-pane{border:1px solid rgba(89,149,190,.18);border-radius:12px;padding:15px;background:rgba(4,17,31,.28)}
.kivox-transp-pane .field{display:flex;flex-direction:column;gap:7px;max-width:540px}
.kivox-transp-pane .field span{font-size:12px;font-weight:750;color:#bed7e9}
.kivox-transp-pane input,.kivox-transp-pane textarea{min-height:45px;box-sizing:border-box;width:100%;border:1px solid #355976;border-radius:10px;background:#0b2338;color:#effbff;padding:11px 12px;font:inherit}
.kivox-transp-pane textarea{resize:vertical;font-size:12px;line-height:1.5;word-break:break-all}
.kivox-transp-pane .btn{margin-top:12px}
.kivox-transp-qr{display:block;max-width:220px;width:100%;aspect-ratio:1;border:8px solid #fff;border-radius:13px;margin:12px auto;background:#fff}
.kivox-transp-pix-result{margin-top:13px;border-top:1px solid #2a4762;padding-top:13px}
.kivox-transp-pix-result p{font-size:12px}
.kivox-transp-brick{min-height:90px;width:100%;max-width:580px;margin:0 auto}
.kivox-transp-status{margin:12px 0 0;font-size:13px;color:#a7cce4;line-height:1.5;min-height:19px}
.kivox-transp-status[data-outcome="good"]{color:#86efd2}
.kivox-transp-status[data-outcome="bad"]{color:#ffb3ae}
@media(max-width:600px){.kivox-transp{padding:12px}.kivox-transp-head h3{font-size:17px}.kivox-transp-head strong{font-size:20px}.kivox-transp-head .btn{padding:9px 12px}.kivox-transp-methods{gap:7px}.kivox-transp-pane{padding:11px}}

/* R4.6 — painel de confirmacao do pedido: somente a interface, sem CSS global. */
.kivox-transp-result{margin-top:14px;padding:18px 20px;border:1px solid rgba(112,183,221,.34);border-radius:14px;background:rgba(9,31,53,.80)}
.kivox-transp-result.hidden-section{display:none!important}
.kivox-transp-result strong{display:block;font-size:19px;font-weight:800;color:#e9f6ff;line-height:1.35}
.kivox-transp-result p{font-size:14px;line-height:1.6;margin:7px 0 0;color:#c7deec}
.kivox-transp-result[data-outcome="good"]{border-color:rgba(61,217,171,.42);background:rgba(11,57,51,.45)}
.kivox-transp-result[data-outcome="good"] strong{color:#8af4d4}
.kivox-transp-result[data-outcome="bad"]{border-color:rgba(247,152,153,.45)}
.kivox-transp-result[data-outcome="bad"] strong{color:#ffc2c1}
.kivox-transp-result[data-outcome="pending"] strong{color:#8bd8fa}
@media(max-width:600px){.kivox-transp-result{padding:15px}.kivox-transp-result strong{font-size:17px}}


/* KIVOX R4.9 — design minimalista. Isolado na aba Ativar e nos 2 modais.
   Checkout original: nao altera os campos hospedados no Card Brick do Mercado Pago. */
#portalPanelActivation .portal-activation-card.kvx49-pricing{padding:36px 36px 30px!important;background:linear-gradient(157deg,#0e263d,#0b2035)!important;border:1px solid rgba(117,163,202,.14)!important;box-shadow:none!important}
#portalPanelActivation .kvx-pricing-head{padding:0;margin:0 0 30px}
#portalPanelActivation .kvx-pricing-head h2{font-size:clamp(26px,3vw,36px);font-weight:800;letter-spacing:-.05em;line-height:1.16;color:#f4f8ff;margin:0 0 10px}
#portalPanelActivation .kvx-pricing-head p{font-size:14px;line-height:1.55;color:#9fb7cb;margin:0}
#portalPanelActivation .kvx-pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
#portalPanelActivation .kvx-plan-card{position:relative;display:flex;flex-direction:column;overflow:hidden;min-width:0;min-height:274px;padding:27px 25px 23px!important;border-radius:16px!important;border:1px solid rgba(124,169,203,.22)!important;background:#0b1e30!important;box-shadow:none!important;transition:border-color .15s,background .15s}
#portalPanelActivation .kvx-plan-card:hover{border-color:rgba(105,185,240,.66)!important;background:#10283e!important}
#portalPanelActivation .kvx-plan-featured{border-color:rgba(69,163,233,.82)!important;background:#102c46!important}
#portalPanelActivation .kvx-plan-recommend{position:absolute;top:0;right:0;background:#256fd5;color:#fff;padding:7px 12px;border-radius:0 15px 0 10px;font-size:9px;letter-spacing:.06em;font-weight:800}
#portalPanelActivation .kvx-plan-heading{display:flex;flex-direction:column;gap:8px;margin:0 0 21px;padding-right:0}
#portalPanelActivation .kvx-plan-heading h3{font-size:23px!important;line-height:1.2;font-weight:780!important;letter-spacing:-.035em;color:#eff7ff;margin:0!important}
#portalPanelActivation .kvx-plan-heading>span{font-size:13px;color:#9db7cb}
#portalPanelActivation .kvx-plan-value{margin:0}
#portalPanelActivation .kvx-plan-value strong{font-size:clamp(30px,2.8vw,39px);line-height:1.1;letter-spacing:-.052em;color:#f6fbff;font-weight:820;font-variant-numeric:tabular-nums;white-space:nowrap}
#portalPanelActivation .kvx-plan-featured .kvx-plan-value strong{color:#8bd8ff}
#portalPanelActivation .kvx-plan-description{margin:11px 0 25px!important;font-size:12px!important;line-height:1.5!important;color:#92adc3!important}
#portalPanelActivation .kvx-plan-action{margin-top:auto;min-height:46px;display:flex;align-items:center}
#portalPanelActivation .kvx-plan-cta{width:100%;min-height:46px;display:flex;align-items:center;justify-content:center;padding:12px 14px;border-radius:10px;background:#183750;color:#e5f5ff;border:1px solid rgba(116,167,204,.23);font-size:13px;font-weight:720;cursor:pointer;transition:background .15s}
#portalPanelActivation .kvx-plan-cta:hover{background:#245070}
#portalPanelActivation .kvx-plan-cta[hidden]{display:none!important}
#portalPanelActivation .kvx-plan-featured .kvx-plan-cta{background:#2885ec;color:white;border-color:#2885ec}
#portalPanelActivation .kvx-plan-featured .kvx-plan-cta:hover{background:#3b98fa}
#portalPanelActivation .kvx-plan-selected{border-color:#8bd8ff!important}
#portalPanelActivation .kvx-plan-note{font-size:11px;color:#87a7c1;line-height:1.5}
#portalPanelActivation .kvx-plan-card[data-available="true"] .kvx-plan-note{display:none}
#portalPanelActivation .kvx49-payment-caption{color:#8daec5;text-align:center;font-size:12px;line-height:1.5;margin:22px 0 0}
#portalPanelActivation .kvx49-payment-caption span{margin:0 7px;color:#57758e}
#portalPanelActivation .kvx-pending-notice{margin:16px 0 0;padding:14px 16px;color:#b8dcf2;font-size:13px;border:1px solid rgba(95,171,216,.27);border-radius:10px;background:#102a40}
#portalPanelActivation .kvx-pending-notice.hidden-section{display:none!important}
.kvx-device-copy-row{display:flex;justify-content:flex-end;margin:0 0 14px}
.kvx49-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body.kvx-modal-open{overflow:hidden!important}
.kvx-payment-overlay,.kvx-receipt-overlay{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(1,8,18,.77);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);overscroll-behavior:contain}
.kvx-payment-overlay.hidden,.kvx-receipt-overlay.hidden{display:none!important}
.kvx-payment-dialog{display:flex;flex-direction:column;width:min(100%,676px);max-height:min(92dvh,900px);min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#355773 transparent;border:1px solid rgba(107,166,206,.26);border-radius:20px;color:#f0f6fb;background:#0c2033;box-shadow:0 24px 100px rgba(0,0,0,.53)}
.kvx-modal-header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 28px 6px}
.kvx-modal-brand{display:flex;align-items:center;gap:9px}
.kvx-modal-brand img{width:29px;height:29px;object-fit:contain;border-radius:7px}
.kvx-modal-brand strong{font-size:16px;letter-spacing:.11em;font-weight:850;color:#f5fbff}
.kvx-modal-close{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:1px solid rgba(131,176,209,.23);border-radius:10px;background:#132e45;color:#d4e9f9;font-size:26px;font-weight:400;line-height:1;cursor:pointer}
.kvx-modal-close:hover{background:#1c425f;color:white}
.kvx-modal-close:focus-visible,.kvx-change-plan:focus-visible,.kvx-receipt-actions :focus-visible,.kvx-check-status:focus-visible,#portalPanelActivation .kvx-plan-cta:focus-visible{outline:2px solid #83d8ff;outline-offset:3px}
.kvx-modal-title{padding:14px 32px 15px}
.kvx-modal-title h2{font-size:27px;letter-spacing:-.05em;font-weight:800;color:#f5f9ff;line-height:1.15;margin:0 0 5px}
.kvx-modal-title p{color:#9db7cb;font-size:12px;line-height:1.5;margin:0}
.kvx-payment-overlay .kvx-payment-area{margin:0;padding:0 32px 28px;background:transparent;border:0}
.kvx-payment-overlay .kvx-payment-area>.portal-payment-test-status{display:none}
.kvx-payment-overlay .kivox-transp{margin:0;padding:0;border:0;border-radius:0;background:transparent}
.kvx-payment-overlay .kvx-order-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0 14px;border-top:1px solid rgba(125,165,196,.17);border-bottom:1px solid rgba(125,165,196,.17)}
.kvx-payment-overlay .kvx-order-summary h3{margin:0;font-size:17px;font-weight:740;line-height:1.3;color:#e6f4ff}
.kvx-order-summary-right{display:flex;align-items:center;gap:19px;justify-content:end}
.kvx-order-summary-right strong{font-size:20px;font-weight:850;color:#a2e5ff;white-space:nowrap;font-variant-numeric:tabular-nums}
.kvx-change-plan{background:transparent;border:0;color:#92cfff;font-size:12px;font-weight:680;white-space:nowrap;cursor:pointer;padding:8px 0}
.kvx-change-plan[disabled]{opacity:.5;cursor:not-allowed}
.kvx49-provider-note{margin:16px 0 12px;color:#aac3d4;font-size:12px}
.kvx-payment-overlay .kvx-card-shell{border:0;border-radius:0;background:transparent;margin:0;padding:0}
.kvx-payment-overlay .kivox-transp-brick{width:100%;max-width:100%;min-height:120px;margin:0;padding:0}
.kvx-payment-overlay .kivox-transp-status{font-size:12px;color:#b8cfde;line-height:1.55;margin:10px 0 0}
.kvx-payment-overlay .kivox-transp-status:not([data-outcome="bad"]){display:none}
.kvx-payment-overlay .kivox-transp-status[data-outcome="bad"]{color:#ffc0bc}
.kvx-payment-overlay .kivox-transp-result{margin-top:12px;padding:20px;border:1px solid rgba(98,158,197,.28);border-radius:13px;background:#102b42}
.kvx-payment-overlay .kivox-transp-result strong{font-size:18px;color:#e9f7ff}
.kvx-payment-overlay .kivox-transp-result p{font-size:13px;line-height:1.65;color:#aac7d9}
.kvx-payment-overlay .kivox-transp-result[data-outcome="bad"] strong{color:#ffc1c1}
.kvx-check-status{margin-top:14px;padding:10px 15px;border:1px solid rgba(128,189,226,.28);border-radius:9px;background:#194568;color:#e8f8ff;font-size:12px;font-weight:750;cursor:pointer}
/* Comprovante apos pagamento + licenca aplicada confirmados pelo backend. */
.kvx-receipt-overlay{z-index:1120}
.kvx-receipt-dialog{position:relative;width:min(100%,450px);max-height:92dvh;overflow-y:auto;border:1px solid rgba(94,194,168,.27);border-radius:20px;background:#0c2336;color:#eaf6fc;box-shadow:0 28px 85px rgba(0,0,0,.55)}
.kvx-receipt-close{position:absolute;right:16px;top:15px;z-index:2}
.kvx-receipt-content{text-align:center;padding:46px 30px 30px}
.kvx-receipt-logo{position:relative;display:inline-flex;align-items:center;justify-content:center;width:73px;height:73px;margin-bottom:19px;border-radius:19px;background:#143e50}
.kvx-receipt-logo img{width:56px;height:56px;border-radius:12px;object-fit:contain}
.kvx-receipt-check{position:absolute;bottom:-7px;right:-7px;display:grid;place-items:center;width:27px;height:27px;border:3px solid #0c2336;border-radius:50%;background:#27cb97;color:#072e2b;font-size:17px;font-weight:900}
.kvx-receipt-content h2{font-size:25px;letter-spacing:-.045em;font-weight:810;line-height:1.25;margin:0 0 8px;color:#f4fbff}
.kvx-receipt-lead{font-size:13px;color:#a7c7da;margin:0}
.kvx-receipt-facts{margin:25px 0 23px;padding:19px 0;display:grid;gap:14px;border-top:1px solid rgba(120,168,196,.21);border-bottom:1px solid rgba(120,168,196,.21);text-align:left}
.kvx-receipt-facts>div{display:flex;align-items:center;justify-content:space-between;gap:13px}
.kvx-receipt-facts span{font-size:12px;color:#92b4ca}
.kvx-receipt-facts strong{font-size:14px;color:#eaf7ff;font-weight:770;text-align:right}
.kvx-receipt-expiry strong{color:#77e4be!important}
.kvx-receipt-actions{display:grid;grid-template-columns:.9fr 1.25fr;gap:10px}
.kvx-receipt-actions>button,.kvx-receipt-actions>a{display:flex;align-items:center;justify-content:center;min-height:45px;border-radius:10px;padding:10px 13px;font-size:12px;font-weight:760;text-decoration:none;cursor:pointer}
.kvx-receipt-copy{border:1px solid rgba(132,177,205,.29);background:#163b55;color:#edf9ff}
.kvx-receipt-whatsapp{border:1px solid #1cab78;background:#17a373;color:#fff}
.kvx-receipt-actions>*:hover{filter:brightness(1.08)}
.kvx-receipt-feedback{min-height:14px;margin:10px 0 0;font-size:11px;color:#79ecc3}
@media(max-width:1000px){#portalPanelActivation .kvx-pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#portalPanelActivation .kvx-plan-featured{order:-1}}
@media(max-width:670px){
 #portalPanelActivation .portal-activation-card.kvx49-pricing{padding:24px 19px 22px!important}
 #portalPanelActivation .kvx-pricing-head{margin-bottom:22px}
 #portalPanelActivation .kvx-pricing-head h2{font-size:26px}
 #portalPanelActivation .kvx-pricing-grid{grid-template-columns:1fr;gap:11px}
 #portalPanelActivation .kvx-plan-card{min-height:0;padding:23px 21px 19px!important}
 #portalPanelActivation .kvx-plan-heading{margin-bottom:15px}
 #portalPanelActivation .kvx-plan-description{margin:8px 0 18px!important}
 #portalPanelActivation .kvx-plan-featured{order:0}
 .kvx-payment-overlay,.kvx-receipt-overlay{padding:10px}
 .kvx-payment-dialog{max-height:96dvh;border-radius:17px}
 .kvx-modal-header{padding:16px 18px 3px}
 .kvx-modal-title{padding:13px 20px 13px}
 .kvx-modal-title h2{font-size:24px}
 .kvx-payment-overlay .kvx-payment-area{padding:0 20px 24px}
 .kvx-payment-overlay .kvx-order-summary h3{font-size:15px}
 .kvx-order-summary-right{gap:10px}
 .kvx-order-summary-right strong{font-size:18px}
 .kvx-receipt-content{padding:44px 20px 23px}
}
@media(max-width:390px){.kvx-payment-overlay{padding:0}.kvx-payment-dialog{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.kvx-receipt-actions{grid-template-columns:1fr}.kvx-receipt-dialog{border-radius:15px}}
@media(prefers-reduced-motion:reduce){#portalPanelActivation .kvx-plan-cta,#portalPanelActivation .kvx-plan-card{transition:none}}


/* KIVOX R4.10 — refinamento visual isolado, sem seletores internos do Brick.
   Bordas inspiradas na identidade do app KIVOX, com cartoes R4.9 mantidos compactos. */
#portalPanelActivation .kvx-plan-card{
  border:1px solid transparent!important;
  border-radius:19px!important;
  background:
    linear-gradient(158deg,#10283f 0%,#0a1d30 100%) padding-box,
    linear-gradient(145deg,rgba(83,190,248,.68),rgba(97,142,218,.27) 52%,rgba(138,97,224,.47)) border-box!important;
  box-shadow:inset 0 1px 0 rgba(154,222,255,.035),0 12px 36px rgba(0,8,22,.12)!important;
  transition:border-color .2s,background .2s,box-shadow .2s,transform .2s;
}
#portalPanelActivation .kvx-plan-card::before{
  content:"";pointer-events:none;position:absolute;inset:0 0 auto;
  height:2px;background:linear-gradient(90deg,transparent,#45b6f9 34%,#786ef1 78%,transparent);
  opacity:.65;
}
#portalPanelActivation .kvx-plan-card:hover{
  transform:translateY(-2px);
  background:
    linear-gradient(158deg,#13334e 0%,#0b2339 100%) padding-box,
    linear-gradient(135deg,#60d7fa,#4d92e2 55%,#a17ae9) border-box!important;
  box-shadow:0 16px 38px rgba(2,12,30,.29)!important;
}
#portalPanelActivation .kvx-plan-featured{
  background:
    linear-gradient(158deg,#133553,#102b46 100%) padding-box,
    linear-gradient(120deg,#39aaff,#5dd7fa 48%,#7f78f5) border-box!important;
  box-shadow:0 0 0 1px rgba(56,151,238,.14),0 15px 40px rgba(2,25,55,.22)!important;
}
#portalPanelActivation .kvx-plan-featured::before{height:3px;opacity:1;background:linear-gradient(90deg,#2d91ff,#58d9f6,#9272f1)}
#portalPanelActivation .kvx-plan-selected{
  background:
    linear-gradient(155deg,#153d58,#0b253f) padding-box,
    linear-gradient(120deg,#76e2ff,#4f9bf5,#a781ff) border-box!important;
  box-shadow:0 0 0 2px rgba(82,191,249,.18)!important;
}
#portalPanelActivation .kvx-plan-recommend{
  background:linear-gradient(100deg,#2786e9,#4e73f0);border-radius:0 18px 0 10px;
}
/* Cabeçalho compacto e legível; os campos protegidos continuam sob controle do MP. */
.kvx-payment-overlay .kvx410-provider-note{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:17px 0 9px;padding:0 2px;flex-wrap:wrap;
}
.kvx-payment-overlay .kvx410-provider-note strong{color:#edf8ff;font-size:15px;font-weight:760}
.kvx-payment-overlay .kvx410-provider-note span{color:#9cbbd1;font-size:11px}
.kvx-payment-overlay .kvx-card-shell{
  border:1px solid rgba(85,155,206,.22);border-radius:17px;
  background:#0d2236;padding:8px;
}
.kvx-payment-overlay .kivox-transp-brick{max-width:100%;width:100%;margin:auto}
@media(max-width:670px){
 #portalPanelActivation .kvx-plan-card{border-radius:17px!important}
 .kvx-payment-overlay .kvx-card-shell{padding:3px;border-radius:14px}
 .kvx-payment-overlay .kvx410-provider-note{margin:12px 0 8px}
 .kvx-payment-overlay .kvx410-provider-note strong{font-size:14px}
}
@media(prefers-reduced-motion:reduce){#portalPanelActivation .kvx-plan-card{transform:none!important}}


/* KIVOX R4.11 | Compatibilidade de cor dos campos PCI do Mercado Pago.
   A pagina usa color-scheme:dark globalmente. Nos campos seguros (iframes)
   isso pode produzir texto claro sobre fundo branco; ocorrido tambem em
   discussao publica do SDK Mercado Pago (#195).
   A substituicao e localizada no Card Brick: nao altera tokenizacao,
   iframe interno, credenciais, pedidos ou campos de outros formularios.
   Observacao: o provedor ainda controla o visual final dos campos PCI. */
#kivoxTranspCardBrick,
#kivoxTranspCardBrick iframe {
  color-scheme: light !important;
}


/* KIVOX R4.12 — acabamento final do checkout: nenhuma regra interna do SDK ou iframe. */
.kvx-payment-overlay .kvx412-progress{
  display:flex;align-items:center;justify-content:flex-start;gap:10px;
  margin:13px 3px 0;padding:12px 13px;
  border-radius:11px;border:1px solid rgba(74,192,246,.22);
  color:#ccecff;background:rgba(33,103,146,.14);
  font-size:12px;font-weight:600;line-height:1.5;
}
.kvx-payment-overlay .kvx412-progress[hidden]{display:none!important}
.kvx412-spinner{display:inline-block;width:16px;height:16px;flex:0 0 16px;
 border-radius:50%;border:2px solid rgba(103,214,253,.27);border-top-color:#67d6fb;
 animation:kvx412-rotate .8s linear infinite}
@keyframes kvx412-rotate{to{transform:rotate(360deg)}}
.kvx-payment-overlay .kvx412-license-note{
 margin:12px 6px 0;color:#92b2c9;font-size:11px;line-height:1.5;
 text-align:center;
}
.kvx-payment-dialog{-webkit-overflow-scrolling:touch;scroll-padding-bottom:32px}
.kvx-payment-overlay .kvx-card-shell{scroll-margin-bottom:24px}
@media(max-width:670px){
 .kvx-payment-dialog{overscroll-behavior-y:contain;max-height:calc(100dvh - 20px)}
 .kvx-payment-overlay .kvx412-progress{margin:11px 0 0;padding:11px;font-size:11.5px}
 .kvx-payment-overlay .kvx412-license-note{margin:10px 3px 0;font-size:10.5px}
}
@media(max-width:390px){.kvx-payment-dialog{max-height:100dvh}}
@media(prefers-reduced-motion:reduce){.kvx412-spinner{animation:none;border-top-color:#67d6fb}}


/* KIVOX R4.13 - Centralizacao visual do botao OFICIAL do Card Payment Brick.
   Usa seletor HTML sem classe gerada pelo SDK, preservando o submit nativo.
   Somente em telas maiores; em mobile, o botao usa a largura disponivel.
   A cor do progresso e definida pelas variaveis OFICIAIS no app.js.
   NAO modificar iframes PCI, disabled, onSubmit ou callbacks. */
@media (min-width: 671px) {
  #kivoxTranspCardBrick button[type="submit"],
  #kivoxTranspCardBrick input[type="submit"] {
    display: block;
    margin-inline: auto !important;
    align-self: center;
    justify-self: center;
  }
}
@media (max-width: 670px) {
  #kivoxTranspCardBrick button[type="submit"],
  #kivoxTranspCardBrick input[type="submit"] {
    max-width: 100%;
  }
}

/* KIVOX R4.15 | Popup de envio seguro, fora do iframe PCI do Mercado Pago. */
.kvx-payment-overlay .kvx415-pay-mask[hidden]{display:none!important}
.kvx-payment-overlay .kvx415-pay-mask{
 position:absolute;inset:0;z-index:25;display:grid;place-items:center;
 padding:18px;background:rgba(3,10,22,.79);backdrop-filter:blur(10px);
 -webkit-backdrop-filter:blur(10px);overscroll-behavior:contain;
}
.kvx-payment-overlay .kvx415-pay-card{
 display:flex;flex-direction:column;align-items:center;text-align:center;
 width:min(100%,352px);padding:33px 26px 29px;
 border:1px solid rgba(113,192,236,.32);border-radius:22px;
 background:linear-gradient(145deg,#112b43,#0a1d32 75%);color:#edf8ff;
 box-shadow:0 28px 85px rgba(0,0,0,.54),inset 0 1px 0 rgba(225,246,255,.06);
}
.kvx-payment-overlay .kvx415-pay-emblem{
 position:relative;width:84px;height:84px;margin-bottom:20px;display:grid;place-items:center;
}
.kvx-payment-overlay .kvx415-pay-halo{
 position:absolute;inset:1px;border-radius:50%;
 border:2px solid rgba(97,198,255,.17);border-top-color:#6ad9ff;
 border-right-color:#8e88ff;animation:kvx415-pay-spin .95s linear infinite;
 box-shadow:0 0 24px rgba(72,158,241,.10);
}
.kvx-payment-overlay .kvx415-pay-emblem img{
 position:relative;width:54px;height:54px;object-fit:contain;border-radius:13px;
 box-shadow:0 0 22px rgba(44,192,252,.12);
}
.kvx-payment-overlay .kvx415-pay-card h2{
 margin:0;color:#f2faff;font-size:21px;font-weight:800;line-height:1.24;letter-spacing:-.025em;
}
.kvx-payment-overlay .kvx415-pay-card p{
 margin:9px 0 0;font-size:12.5px;color:#a8c7dd;line-height:1.55;
}
.kvx-payment-overlay .kvx415-pay-progress{
 height:3px;width:150px;margin:24px 0 13px;overflow:hidden;
 border-radius:50px;background:rgba(79,154,196,.19);
}
.kvx-payment-overlay .kvx415-pay-progress span{
 display:block;width:44%;height:100%;border-radius:inherit;
 background:linear-gradient(90deg,#57cfff,#8b8aff);
 animation:kvx415-pay-slide 1.35s ease-in-out infinite alternate;
}
.kvx-payment-overlay .kvx415-pay-card small{
 color:#8eabc2;font-size:11px;line-height:1.5;font-weight:550;
}
@keyframes kvx415-pay-spin{to{transform:rotate(360deg)}}
@keyframes kvx415-pay-slide{from{transform:translateX(-102%)}to{transform:translateX(260%)}}
@media(max-width:480px){
 .kvx-payment-overlay .kvx415-pay-card{padding:30px 20px 26px;border-radius:19px}
 .kvx-payment-overlay .kvx415-pay-card h2{font-size:20px}
}
@media(prefers-reduced-motion:reduce){
 .kvx-payment-overlay .kvx415-pay-halo,
 .kvx-payment-overlay .kvx415-pay-progress span{animation:none}
}

/* R4.16: acoes da recusa confirmada; preserva Card Brick e a hierarquia visual. */
.kvx416-result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.kvx416-result-actions>button{flex:1 1 130px;min-height:43px;padding:10px 14px;border-radius:10px;font-size:12px;font-weight:750;cursor:pointer}
.kvx416-result-actions>button[hidden]{display:none!important}
.kvx416-retry{background:#194d70;border:1px solid rgba(105,197,242,.42);color:#f0f9ff}
.kvx416-dismiss{background:transparent;border:1px solid rgba(125,166,194,.32);color:#bdd2e1}
.kvx416-result-actions>button:hover{filter:brightness(1.1)}
.kvx416-result-actions>button:focus-visible{outline:2px solid #70cffa;outline-offset:3px}

/* KIVOX F28.1 — aviso de ativação independente, sem bloquear a contratação. */
.kvx-sponsor-overlay{position:fixed;inset:0;z-index:1120;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(1,9,20,.78);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.kvx-sponsor-overlay.hidden{display:none!important}
.kvx-sponsor-dialog{width:min(100%,540px);max-height:calc(100dvh - 36px);overflow-y:auto;overscroll-behavior:contain;padding:29px;border-radius:20px;border:1px solid rgba(125,178,208,.27);background:linear-gradient(160deg,#122f47,#0b1e30 88%);box-shadow:0 26px 95px rgba(0,0,0,.58);color:#f2f9ff;scrollbar-width:thin}
.kvx-sponsor-eyebrow{color:#7ccffa;font-size:11px;font-weight:780;letter-spacing:.12em;margin:0 0 17px}
.kvx-sponsor-icon{width:42px;height:42px;border:1px solid rgba(88,227,178,.3);background:rgba(21,167,125,.13);color:#7fe3c0;border-radius:12px;display:grid;place-items:center;font-size:23px;margin-bottom:15px}
.kvx-sponsor-dialog h2{font-size:clamp(22px,4vw,27px);line-height:1.18;letter-spacing:-.04em;margin:0 0 14px;font-weight:780;color:#f4faff}
.kvx-sponsor-dialog p{font-size:13px;line-height:1.7;color:#bbd0df;margin:0 0 12px}
.kvx-sponsor-dialog .kvx-sponsor-lead{color:#d8e9f5}
.kvx-sponsor-dialog p strong{color:#f5fbff}
.kvx-sponsor-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:21px 0 18px;padding:14px 16px;border-radius:11px;border:1px solid rgba(95,158,203,.24);background:rgba(18,56,82,.65);font-size:12px;color:#9ebbd1}
.kvx-sponsor-choice strong{font-size:14px;color:#9cddff;font-variant-numeric:tabular-nums;text-align:right}
.kvx-sponsor-actions{display:flex;justify-content:flex-end;gap:12px}
.kvx-sponsor-actions button{border:1px solid rgba(124,170,202,.28);border-radius:10px;padding:12px 17px;font-size:13px;font-weight:700;cursor:pointer;min-height:44px}
.kvx-sponsor-back{background:#183247;color:#e3f2fc}
.kvx-sponsor-next{background:#2587ea!important;border-color:#2587ea!important;color:#fff!important}
.kvx-sponsor-back:hover{background:#23465f}
.kvx-sponsor-next:hover{background:#3b9afa!important}
.kvx-sponsor-dialog button:focus-visible{outline:2px solid #88d9ff;outline-offset:3px}
@media(max-width:480px){.kvx-sponsor-dialog{padding:22px 19px;border-radius:16px}.kvx-sponsor-actions{flex-direction:column-reverse}.kvx-sponsor-actions button{width:100%}}

/* KIVOX F28.2 — refinamento visual exclusivo do modal de ativacao com parceiro. */
.kvx-sponsor-dialog{
  box-sizing:border-box;width:min(100%,665px);max-height:calc(100dvh - 40px);
  padding:34px 36px 32px;border-radius:23px;
  border:1px solid rgba(92,190,237,.40);
  background:radial-gradient(ellipse at 50% -15%,rgba(27,109,156,.34),transparent 65%),linear-gradient(152deg,#112e46 0%,#0a2136 62%,#091d31 100%);
  box-shadow:0 28px 88px rgba(0,0,0,.57),inset 0 1px 0 rgba(166,223,255,.08),0 0 32px rgba(5,114,183,.08)
}
.kvx-sponsor-heading{display:flex;align-items:center;gap:19px;min-width:0;margin:0 0 22px}
.kvx-sponsor-icon{
  box-sizing:border-box;flex:none;display:grid;place-items:center;
  width:58px;height:58px;margin:0;border-radius:50%;color:#fff;
  border:2px solid rgba(84,255,211,.85);
  background:radial-gradient(circle at 50% 25%,#136e65 0%,#075f52 50%,#07483e 100%);
  box-shadow:0 0 0 5px rgba(15,216,167,.045),0 0 24px rgba(1,237,170,.21),inset 0 2px 7px rgba(200,255,244,.14)
}
.kvx-sponsor-icon svg{display:block;overflow:visible}
.kvx-sponsor-dialog h2{margin:0;font-size:clamp(22px,2.8vw,30px);font-weight:800;line-height:1.19;letter-spacing:-.035em}
.kvx-sponsor-dialog p{font-size:14px;line-height:1.68;margin:0 0 17px;color:#bdd3e1}
.kvx-sponsor-dialog .kvx-sponsor-lead{color:#e0ecf7}
.kvx-sponsor-dialog p strong{font-weight:760;color:#fff}
.kvx-sponsor-choice{
  box-sizing:border-box;gap:12px;margin:25px 0 22px;padding:17px 19px;border-radius:13px;
  border:1px solid rgba(59,167,228,.36);
  background:linear-gradient(115deg,rgba(20,67,94,.82),rgba(8,52,81,.85));
  box-shadow:inset 0 1px 0 rgba(183,230,255,.05);font-size:13px;color:#b7ccdc
}
.kvx-sponsor-choice strong{font-size:16px;font-weight:800;color:#a5e2ff}
.kvx-sponsor-actions{align-items:center;gap:12px}
.kvx-sponsor-actions button{
  box-sizing:border-box;min-height:49px;padding:12px 19px;border-radius:12px;
  font-size:13px;font-weight:750;line-height:1.25;
  transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease
}
.kvx-sponsor-back{background:#17364e;color:#ebf6ff}
.kvx-sponsor-back:hover{background:#204662;border-color:rgba(146,214,252,.46)}
.kvx-sponsor-next{
  background:linear-gradient(180deg,#238af4,#1469e8)!important;
  border-color:#2796fb!important;color:#fff!important;
  box-shadow:0 7px 17px rgba(5,89,213,.13),inset 0 1px 0 rgba(255,255,255,.18)
}
.kvx-sponsor-next:hover{
  background:linear-gradient(180deg,#329aff,#1978f6)!important;
  box-shadow:0 8px 20px rgba(5,89,213,.22),inset 0 1px 0 rgba(255,255,255,.2)
}
@media(max-width:600px){
  .kvx-sponsor-dialog{padding:26px 24px 25px;border-radius:19px}
  .kvx-sponsor-heading{gap:13px;margin-bottom:19px}
  .kvx-sponsor-icon{width:48px;height:48px}
  .kvx-sponsor-icon svg{width:25px;height:25px}
  .kvx-sponsor-dialog h2{font-size:clamp(20px,5vw,25px)}
  .kvx-sponsor-dialog p{font-size:13px;line-height:1.64;margin-bottom:14px}
  .kvx-sponsor-choice{margin:20px 0 19px;padding:14px 15px}
  .kvx-sponsor-choice strong{font-size:14px}
}
@media(max-width:420px){
  .kvx-sponsor-dialog{padding:23px 19px;max-height:calc(100dvh - 24px)}
  .kvx-sponsor-heading{gap:11px}
  .kvx-sponsor-icon{width:43px;height:43px}
  .kvx-sponsor-icon svg{width:23px;height:23px}
  .kvx-sponsor-dialog h2{font-size:20px}
  .kvx-sponsor-actions{flex-direction:column-reverse;align-items:stretch;gap:10px}
  .kvx-sponsor-actions button{width:100%}
}
@media(prefers-reduced-motion:reduce){.kvx-sponsor-actions button{transition:none}}
