/* Versão para computador (tela de 960 px ou mais).
   Carregado com media="(min-width: 960px)": no celular, no tablet em pé e no WebView do Android este arquivo nunca é aplicado.
   Só sobrepõe layout (menu lateral, grade, janelas centralizadas); cores, textos e dados seguem os de app.css e app.js. */

:root { --side: 264px; --conteudo: 1100px; }

body { background: #ECEEF3; }
.app, .login { max-width: none; margin: 0; box-shadow: none; }

/* ---------- Estrutura: menu lateral vermelho + conteúdo ---------- */
.app { background: var(--bg); padding: 0 0 48px var(--side); min-height: 100vh; transition: padding-left .22s ease; }

.tabbar {
  top: 0; bottom: 0; left: 0; right: auto; width: var(--side); max-width: none; margin: 0;
  display: flex; flex-direction: column; align-content: flex-start; gap: 4px; overflow-x: hidden; overflow-y: auto;
  padding: 150px 16px 20px; background: #fff; border-top: 0; border-right: 1px solid var(--line);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 40px rgba(20, 20, 30, .05); transition: width .22s ease;
}
.tabbar::before { content: "MENU"; padding: 0 14px 10px; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: #A3A3AF; }
.tabbar a {
  position: relative; flex: none; height: 52px; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 0 10px 0 8px;
  border-radius: 15px; font-size: 15px; font-weight: 600; color: #5B5B67; transition: background .15s, color .15s;
}
.tabbar svg { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: #F3F3F7; color: #7A7A87; transition: background .15s, color .15s, box-shadow .15s; }
.tabbar a:hover { background: #FAFAFC; color: var(--ink); }
.tabbar a:hover svg { background: var(--red-soft); color: var(--red); }
.tabbar a.on { background: var(--red-soft); color: var(--red-dark); font-weight: 800; }
.tabbar a.on::after { display: none; }
.tabbar a.on svg { background: var(--grad-btn); color: #fff; fill: none; stroke-width: 2; box-shadow: 0 6px 14px rgba(218, 0, 0, .28); }

/* rodapé do menu (ajuda e sair): só existe no computador; no celular o atributo hidden mantém tudo escondido */
.side-extra { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.side-extra[hidden] { display: flex !important; }   /* app.css tem [hidden]{display:none !important}; só aqui (computador) o bloco aparece */
.side-help { padding: 16px; border-radius: 18px; background: var(--red-tint); border: 1px solid #F6DADA; }
.side-help b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.side-help span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.side-help button {
  margin-top: 12px; width: 100%; min-height: 40px; border: 0; border-radius: 12px; background: var(--grad-btn); color: #fff;
  font-weight: 800; font-size: 13.5px; cursor: pointer; box-shadow: 0 8px 18px rgba(218, 0, 0, .22); transition: transform .12s, box-shadow .12s;
}
.side-help button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(218, 0, 0, .3); }
.side-out {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: 14px;
  background: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, color .15s;
}
.side-out:hover { background: var(--bg); color: var(--red-dark); }
.side-out svg { width: 18px; height: 18px; padding: 0; background: none; border-radius: 0; color: inherit; }

/* logo (versão vermelha) e legenda no topo do menu lateral: o mesmo link do celular, só reposicionado */
.hdr-home { position: fixed; top: 30px; left: 28px; z-index: 31; flex-direction: column; align-items: flex-start; gap: 10px; }
.hdr-logo { width: 96px; height: 56px; object-fit: none; object-position: -9999px 0; background: url("../img/logo-vermelho.png") left center / contain no-repeat; }
.hdr-home::after { content: "Central do Assinante"; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9A9AA6; }

/* faixa do título: destaque vermelho no topo, mais baixa e com só o canto direito arredondado (o menu branco fica ao lado) */
.hdr { padding: 24px max(40px, calc((100% - var(--conteudo)) / 2)) 84px; border-radius: 0 0 40px 0; }
.hdr-bar { justify-content: flex-end; }
.hdr-title { margin-top: 12px; min-height: 0; }
.hdr-title h1 { font-size: 34px; }
.hdr-title h1 small { font-size: 17px; }
.hdr-title p { font-size: 15px; max-width: 560px; }
.icon-btn, .avatar { transition: background .15s, transform .15s; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .28); }
.avatar:hover { transform: scale(1.05); }

/* ---------- Conteúdo em grade ---------- */
.view { max-width: calc(var(--conteudo) + 80px); margin: 0 auto; padding: 0 40px 8px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 22px; align-items: start; grid-auto-flow: row dense; }
.view > * { grid-column: span 12; }
.view > .lift { margin-top: -60px; }
.view > .card.lift:not(.avisos-top) { grid-column: span 12; max-width: 680px; }   /* cartão em destaque sozinho na linha */
.card { padding: 22px; }

/* início: fatura e plano lado a lado; banners, Wi-Fi e endereço em três colunas */
.view:has(> .hero + .plan) > .hero { grid-column: span 6; max-width: none; align-self: stretch; }
.view:has(> .hero + .plan) > .plan { grid-column: span 6; align-self: stretch; }
.view > .hero + .plan:not(.lift) { margin-top: -60px; }       /* o plano sobe junto com a fatura */
.view > .ad-slot { grid-column: span 4; }
.view > #celSlot, .view > #wifiSlot { grid-column: span 8; }
.view > #celSlot:empty, .view > #wifiSlot:empty { display: none; }
.view > .section-head, .view > .quick { grid-column: span 12; }
.view > .help { grid-column: span 8; }
.view > .help + .card, .view > .help ~ .card:not(.li) { grid-column: span 4; }
.view > .ad-slot .card.ad { max-width: 100%; }
.quick { gap: 16px; }
.quick a { padding: 20px 10px 16px; transition: transform .15s, box-shadow .15s; }
.quick a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

/* listas (faturas, chamados, avisos) em duas colunas */
.view > .card.li, .view > button.card.li { grid-column: span 6; }
.view > .btn-block { grid-column: span 12; justify-self: center; width: 360px; max-width: 100%; }
.view > .seg { grid-column: span 12; max-width: 460px; }
.view > .empty { grid-column: span 12; }
.card.li, .btnlike { transition: transform .15s, box-shadow .15s; }
.btnlike:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); cursor: pointer; }

/* perfil: cartões lado a lado (o primeiro cartão do Perfil é um .lift sem .hero/.plan/.avisos-top) */
.view > .card.lift:not(.hero):not(.plan):not(.avisos-top) ~ .card { grid-column: span 6; }

/* ---------- Janelas: do rodapé para o centro da tela ---------- */
.sheet-backdrop { background: rgba(15, 15, 20, .55); }
.sheet-panel {
  top: 50%; left: 50%; right: auto; bottom: auto; width: min(580px, calc(100vw - 48px)); max-width: none; max-height: 88vh; margin: 0;
  border-radius: 28px; padding: 30px 34px 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); transform: translate(-50%, -50%);
  animation: dpop .22s cubic-bezier(.2, .8, .2, 1);
}
.sheet-handle { display: none; }
@keyframes dpop { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.toast { margin-left: calc(var(--side) / 2); }

/* chat: painel lateral à direita em vez de tela cheia */
.chat-layer { inset: 24px 24px 24px auto; width: 440px; max-width: none; left: auto; right: 24px; transform: none; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }

/* ---------- Entrar: painel da marca à esquerda, formulário à direita ---------- */
.login-body .login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; background: #fff; }
.login-body .login-top { background: var(--grad-hdr); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 48px; }
.login-logo { width: 280px; margin-bottom: 16px; }
.login-sub { font-size: 20px; }
.login-sheet {
  margin: 0; border-radius: 0; box-shadow: none; flex: none; display: flex; flex-direction: column; justify-content: center;
  padding: 56px max(48px, calc((100% - 420px) / 2));
}
.login-sheet h1 { font-size: 30px; }

/* ---------- Detalhes de computador ---------- */
.btn { cursor: pointer; transition: transform .12s, filter .12s, box-shadow .12s; }
.btn:hover { filter: brightness(1.05); }
.menu a:hover, .menu button:hover { background: var(--bg); cursor: pointer; }

/* computador com janela mais estreita (960–1199 px): ajuda e endereço ocupam a linha inteira */
@media (max-width: 1199px) {
  .view > .help, .view > .help + .card, .view > .help ~ .card:not(.li) { grid-column: span 12; }
  .view > .ad-slot { grid-column: span 5; }
  .view > #celSlot, .view > #wifiSlot { grid-column: span 7; }
}

/* ---------- Menu recolhido (html.side-min, definido por assets/js/desktop.js) ---------- */
.side-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 14px; border: 0; border-radius: 14px;
  background: none; color: #9A9AA6; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: background .15s, color .15s;
}
.side-toggle:hover { background: var(--bg); color: var(--ink); }
.side-toggle svg { width: 18px; height: 18px; padding: 0; background: none; border-radius: 0; color: inherit; transition: transform .22s; }
html.side-min { --side: 84px; }
html.side-min .tabbar { padding: 124px 12px 16px; }
html.side-min .tabbar::before { content: none; }
html.side-min .tabbar a { justify-content: center; padding: 0; gap: 0; }
html.side-min .tabbar a span { display: none; }
html.side-min .hdr-home { left: 18px; }
html.side-min .hdr-home::after { content: none; }
html.side-min .hdr-logo { width: 48px; height: 34px; }
html.side-min .side-help { display: none; }
html.side-min .side-out, html.side-min .side-toggle { justify-content: center; padding: 0; }
html.side-min .side-out span, html.side-min .side-toggle span { display: none; }
html.side-min .side-toggle svg { transform: rotate(180deg); }
