/* =====================================================================
   Line — Central do Assinante

   A ideia é a fibra: um trilho grafite como a caixa de emenda, e uma
   única linha laranja que carrega luz. Ela aparece com força uma vez —
   no painel do Início — e no resto da Central só como o fio que marca
   onde você está. Todo o resto fica quieto: névoa fria, superfícies
   brancas, adineue só em títulos e valores.
   ===================================================================== */

@font-face {
    font-family: "adineue";
    src: url("../fontes/Adineue-Pro.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "adineue";
    src: url("../fontes/Adineue-Pro-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

:root {
    --grafite: #10131a;
    --grafite-2: #1b2030;
    --grafite-3: #2a3142;
    --nevoa: #eef1f5;
    --superficie: #ffffff;
    --superficie-2: #f5f7fa;
    --borda: #dfe4eb;
    --laranja: #fe5000;
    --laranja-escuro: #d94400;
    --brasa: #ff8a3d;
    --laranja-claro: #fff0e8;
    --sinal: #17a34a;

    --tinta: #10131a;
    --texto: #2a2f3a;
    --texto-suave: #687183;

    /* Estados: a mesma lógica do app (verde, vermelho, âmbar) */
    --sucesso-fundo: #e6f6ec;
    --sucesso: #13803b;
    --perigo-fundo: #fdecec;
    --perigo: #c52a2a;
    --alerta-fundo: #fff3e6;
    --alerta: #b14a00;

    --raio: 18px;
    --sombra: 0 1px 2px rgb(16 19 26 / .04), 0 8px 24px -12px rgb(16 19 26 / .12);
    --sombra-alta: 0 2px 4px rgb(16 19 26 / .06), 0 24px 48px -20px rgb(16 19 26 / .28);

    --fonte-titulo: "adineue", "Onest", system-ui, sans-serif;
    --fonte: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
    --fonte-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

    --trilho: 248px;
    --fibra: linear-gradient(90deg, var(--laranja), var(--brasa));

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --nevoa: #0b0d12;
        --superficie: #151922;
        --superficie-2: #1b202b;
        --borda: #272d3a;
        --laranja-claro: #2d1a10;
        --tinta: #f2f4f8;
        --texto: #d7dce6;
        --texto-suave: #8d96a8;
        --sucesso-fundo: #0f2b1a;
        --sucesso: #6fd394;
        --perigo-fundo: #331516;
        --perigo: #f19b9b;
        --alerta-fundo: #33220f;
        --alerta: #ffb36b;
        --sombra: 0 1px 2px rgb(0 0 0 / .4);
        --sombra-alta: 0 24px 48px -20px rgb(0 0 0 / .7);

        color-scheme: dark;
    }
}

* { -webkit-tap-highlight-color: transparent; }

html, body { min-height: 100%; }

body {
    margin: 0;
    background: var(--nevoa);
    color: var(--texto);
    font-family: var(--fonte);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

[ng-cloak], .ng-cloak { display: none !important; }

a { color: var(--laranja); }
a:hover { color: var(--laranja-escuro); }

h1, h2, h3, .titulo { font-family: var(--fonte-titulo); color: var(--tinta); letter-spacing: -0.015em; font-weight: 700; }

.text-suave { color: var(--texto-suave) !important; }
.text-laranja { color: var(--laranja) !important; }
.mono { font-family: var(--fonte-mono); font-size: .86em; letter-spacing: -0.01em; }

::selection { background: rgb(254 80 0 / .2); }

/* ---------- Botões ---------- */

.btn { border-radius: 999px; font-weight: 600; padding: .62rem 1.25rem; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .38rem .9rem; font-size: .85rem; }
.btn-laranja { background: var(--laranja); border: 1px solid var(--laranja); color: #fff; box-shadow: 0 6px 16px -8px rgb(254 80 0 / .7); }
.btn-laranja:hover, .btn-laranja:focus { background: var(--laranja-escuro); border-color: var(--laranja-escuro); color: #fff; }
.btn-laranja:disabled { background: var(--laranja); border-color: var(--laranja); color: #fff; opacity: .5; box-shadow: none; }
.btn-contorno { background: var(--superficie); border: 1px solid var(--borda); color: var(--texto); }
.btn-contorno:hover { border-color: var(--tinta); color: var(--tinta); }
.btn-link-laranja { color: var(--laranja); font-weight: 600; text-decoration: none; padding: 0; background: none; border: 0; }
.btn-link-laranja:hover { color: var(--laranja-escuro); text-decoration: underline; text-underline-offset: 3px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--laranja); outline-offset: 2px; box-shadow: none; }

/* ---------- Formulários ---------- */

.form-label { font-weight: 600; font-size: .8rem; color: var(--texto-suave); margin-bottom: .35rem; }
.form-control, .form-select {
    background-color: var(--superficie);
    color: var(--texto);
    border: 1px solid var(--borda);
    border-radius: 14px;
    padding: .75rem .95rem;
    font-size: 1rem; /* 16px: abaixo disso o iOS dá zoom no foco */
}
.form-control:focus, .form-select:focus { border-color: var(--laranja); box-shadow: 0 0 0 4px rgb(254 80 0 / .12); background-color: var(--superficie); color: var(--texto); }
.form-control::placeholder { color: var(--texto-suave); opacity: .65; }

.campo-senha { position: relative; }
.campo-senha .form-control { padding-right: 3rem; }
.campo-senha button {
    position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
    border: 0; background: none; color: var(--texto-suave); width: 2.5rem; height: 2.5rem; border-radius: 10px;
}

.input-sufixo { display: flex; align-items: stretch; }
.input-sufixo .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-sufixo span {
    display: flex; align-items: center; padding: 0 .95rem; background: var(--superficie-2);
    border: 1px solid var(--borda); border-left: 0; border-radius: 0 14px 14px 0;
    font-family: var(--fonte-mono); font-size: .9rem; color: var(--texto-suave);
}

/* =====================================================================
   Telas de acesso
   ===================================================================== */

.acesso { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; background: var(--grafite); }

.acesso-foto { position: fixed; inset: 0; background-size: cover; background-position: center 20%; }
.acesso-foto::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgb(16 19 26 / .25) 0%, rgb(16 19 26 / .8) 50%, var(--grafite) 88%);
}

.acesso-painel {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
    color: #fff;
    min-height: 100vh;
    min-height: 100dvh;
}

.acesso-logo { width: 104px; margin-bottom: auto; padding-top: 1rem; }
.acesso-logo img { width: 100%; }

.acesso-titulo { font-family: var(--fonte-titulo); font-size: 2rem; line-height: 1.1; color: #fff; margin: 2rem 0 .6rem; }
/* O fio aceso embaixo do título */
.acesso-titulo::after { content: ""; display: block; width: 56px; height: 3px; border-radius: 3px; background: var(--fibra); margin-top: .9rem; box-shadow: 0 0 12px rgb(254 80 0 / .6); }
.acesso-texto { color: rgb(255 255 255 / .68); margin-bottom: 1.75rem; }

.acesso .form-label { color: rgb(255 255 255 / .7); }
.acesso .form-control { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); color: #fff; }
.acesso .form-control::placeholder { color: rgb(255 255 255 / .4); }
.acesso .form-control:focus { border-color: var(--laranja); background: rgb(255 255 255 / .1); color: #fff; box-shadow: 0 0 0 4px rgb(254 80 0 / .2); }
.acesso .campo-senha button { color: rgb(255 255 255 / .7); }
.acesso .btn-laranja { padding: .9rem; font-size: 1.02rem; }
.acesso-links { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.5rem; }
.acesso-links a, .acesso-links button { color: #fff; text-decoration: none; font-weight: 600; background: none; border: 0; padding: 0; text-align: left; }
.acesso-links a:hover, .acesso-links button:hover { color: var(--brasa); }
.acesso-links .discreto { color: rgb(255 255 255 / .55); font-weight: 500; font-size: .92rem; }

.acesso .alerta-acesso { background: rgb(197 42 42 / .18); border: 1px solid rgb(241 155 155 / .3); color: #ffd6d6; border-radius: 14px; padding: .75rem .95rem; margin-bottom: 1rem; font-size: .92rem; }
.acesso .sucesso-acesso { background: rgb(23 163 74 / .18); border: 1px solid rgb(111 211 148 / .35); color: #d3f5df; border-radius: 14px; padding: .75rem .95rem; margin-bottom: 1rem; font-size: .92rem; }

@media (min-width: 992px) {
    .acesso { grid-template-columns: minmax(0, 1.15fr) minmax(460px, .85fr); }
    .acesso-foto { position: relative; inset: auto; }
    .acesso-foto::after { background: linear-gradient(90deg, rgb(16 19 26 / 0) 60%, rgb(16 19 26 / .6) 100%); }
    .acesso-painel { justify-content: center; padding: 3rem clamp(2.5rem, 5vw, 5rem); background: var(--grafite); }
    .acesso-logo { position: absolute; top: 2.5rem; left: clamp(2.5rem, 5vw, 5rem); width: 96px; padding: 0; }
    .acesso-conteudo { max-width: 400px; width: 100%; }
}

.contas-grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; margin-bottom: 1.5rem; }
@media (min-width: 576px) { .contas-grade { grid-template-columns: repeat(3, 1fr); } }
.conta-item { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; color: #fff; background: none; border: 0; padding: .6rem; border-radius: 18px; position: relative; }
.conta-item:hover { background: rgb(255 255 255 / .06); color: #fff; }
.conta-item img, .conta-adicionar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgb(255 255 255 / .12); }
.conta-item.atual img { box-shadow: 0 0 0 2px var(--grafite), 0 0 0 4px var(--laranja), 0 0 18px rgb(254 80 0 / .5); }
.conta-adicionar { display: flex; align-items: center; justify-content: center; background: rgb(255 255 255 / .08); color: #fff; font-size: 1.6rem; border: 1px dashed rgb(255 255 255 / .35); box-shadow: none; }
.conta-nome { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.conta-remover { position: absolute; top: 2px; right: 12%; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--grafite-3); color: #fff; font-size: .75rem; }
.conta-remover:hover { background: var(--perigo); }

/* =====================================================================
   Área logada
   ===================================================================== */

.central { min-height: 100vh; min-height: 100dvh; }

.topo {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; gap: .75rem;
    background: rgb(16 19 26 / .94);
    backdrop-filter: saturate(140%) blur(10px);
    color: #fff;
    padding: .65rem 1rem;
    padding-top: calc(.65rem + env(safe-area-inset-top));
}
/* A fibra corre por baixo da barra */
.topo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--fibra); }
.topo-titulo { font-family: var(--fonte-titulo); font-size: 1.1rem; margin: 0; flex: 1; color: #fff; text-align: center; }
.topo a, .topo button { color: #fff; }
.topo-acao { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: rgb(255 255 255 / .08); position: relative; text-decoration: none; }
.topo-acao:hover { background: rgb(255 255 255 / .16); color: #fff; }
.topo-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgb(255 255 255 / .2); }
.ponto-aviso { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--laranja); box-shadow: 0 0 0 2px var(--grafite); }

.trilho { display: none; }

.conteudo { padding: 1.25rem 1rem calc(6.5rem + env(safe-area-inset-bottom)); max-width: 1120px; margin: 0 auto; }

/* Barra inferior (celular), flutuando como uma cápsula */
.barra-inferior {
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 1030;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgb(16 19 26 / .95);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    box-shadow: 0 16px 32px -12px rgb(16 19 26 / .5);
    padding: .3rem;
}
.barra-inferior a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem 0 .45rem; color: rgb(255 255 255 / .55); text-decoration: none; font-size: .7rem; font-weight: 600; border-radius: 18px; }
.barra-inferior a i { font-size: 1.05rem; }
.barra-inferior a.ativo { color: #fff; background: rgb(255 255 255 / .08); }
.barra-inferior a.ativo i { color: var(--brasa); }

@media (min-width: 992px) {
    .topo, .barra-inferior { display: none; }

    .trilho {
        display: flex; flex-direction: column;
        position: fixed; top: 0; bottom: 0; left: 0; width: var(--trilho);
        background: var(--grafite);
        color: #fff;
        padding: 1.75rem .9rem 1.25rem;
        overflow-y: auto;
    }
    .trilho-logo { display: block; width: 84px; margin: 0 .85rem 2.25rem; }
    .trilho-logo img { width: 100%; }
    .trilho-link {
        position: relative;
        display: flex; align-items: center; gap: .8rem;
        padding: .62rem .85rem; border-radius: 12px; margin-bottom: 2px;
        color: rgb(255 255 255 / .62); text-decoration: none; font-weight: 500; font-size: .93rem;
        transition: color .15s ease, background-color .15s ease;
    }
    .trilho-link i { width: 18px; text-align: center; font-size: .95rem; }
    .trilho-link:hover { background: rgb(255 255 255 / .05); color: #fff; }

    /* O fio aceso marca onde você está */
    .trilho-link.ativo { color: #fff; background: rgb(255 255 255 / .07); }
    .trilho-link.ativo i { color: var(--brasa); }
    .trilho-link.ativo::before {
        content: ""; position: absolute; left: -.9rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0;
        background: linear-gradient(180deg, var(--brasa), var(--laranja));
        box-shadow: 0 0 12px var(--laranja);
    }

    .trilho-conta { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .08); }
    .trilho-conta-botao { display: flex; align-items: center; gap: .7rem; width: 100%; background: none; border: 0; padding: .5rem; border-radius: 12px; text-align: left; color: #fff; }
    .trilho-conta-botao:hover { background: rgb(255 255 255 / .06); }
    .trilho-conta-botao img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
    .trilho-conta-nome { font-weight: 600; font-size: .9rem; line-height: 1.2; }
    .trilho-conta-sub { font-size: .75rem; color: rgb(255 255 255 / .5); }
    .trilho-conta .text-suave { color: rgb(255 255 255 / .5) !important; }

    .principal { margin-left: var(--trilho); }
    .conteudo { padding: 2.5rem 3rem 3.5rem; }

    .cabecalho-pagina { display: flex !important; }
}

.cabecalho-pagina { display: none; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.cabecalho-pagina h1 { font-size: 2.1rem; margin: 0; line-height: 1.1; }
.cabecalho-pagina .voltar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--superficie); border: 1px solid var(--borda); color: var(--texto); text-decoration: none; }
.cabecalho-pagina .voltar:hover { color: var(--laranja); border-color: var(--laranja); }

/* ---------- Blocos ---------- */

.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); padding: 1.25rem 1.35rem; }
.cartao + .cartao { margin-top: .75rem; }
.cartao-titulo { font-family: var(--fonte-titulo); font-size: 1.15rem; margin: 0 0 .25rem; color: var(--tinta); }

.secao { margin-top: 2.25rem; }
.secao:first-child { margin-top: 0; }
.secao-titulo { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.secao-titulo h2 { font-size: 1.25rem; margin: 0; }
.secao-titulo p { margin: 0; color: var(--texto-suave); font-size: .8rem; font-family: var(--fonte-mono); }

.introducao { color: var(--texto-suave); margin-bottom: 1.5rem; max-width: 60ch; }

.lista { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.lista-item { display: flex; align-items: center; gap: .95rem; width: 100%; padding: 1rem 1.15rem; background: none; border: 0; text-align: left; color: var(--texto); text-decoration: none; transition: background-color .12s ease; }
.lista-item + .lista-item, .lista > .contents + .contents > .lista-item { border-top: 1px solid var(--borda); }
.contents { display: contents; }
a.lista-item:hover, button.lista-item:hover { background: var(--superficie-2); color: var(--texto); }
.lista-item .principal-texto { flex: 1; min-width: 0; }
.lista-item .titulo-item { font-weight: 600; color: var(--tinta); }
.lista-item .sub { color: var(--texto-suave); font-size: .86rem; }
.lista-item .seta { color: var(--texto-suave); font-size: .8rem; }

.icone-quadrado { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--laranja-claro); color: var(--laranja); font-size: 1rem; }

.chip { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; padding: .22rem .62rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.chip, a.chip:hover { text-decoration: none; }
.chip-sucesso { background: var(--sucesso-fundo); color: var(--sucesso); }
.chip-perigo { background: var(--perigo-fundo); color: var(--perigo); }
.chip-alerta { background: var(--alerta-fundo); color: var(--alerta); }
.chip-neutro { background: var(--superficie); color: var(--texto-suave); border: 1px solid var(--borda); }
a.chip-neutro:hover { color: var(--tinta); border-color: var(--tinta); }

.aviso { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.05rem; border-radius: 14px; font-size: .92rem; }
.aviso i { margin-top: .2rem; }
.aviso-alerta { background: var(--alerta-fundo); color: var(--alerta); }
.aviso-perigo { background: var(--perigo-fundo); color: var(--perigo); }
.aviso-sucesso { background: var(--sucesso-fundo); color: var(--sucesso); }

.atalhos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.atalho { display: flex; flex-direction: column; gap: .75rem; padding: 1.05rem; text-decoration: none; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); color: var(--texto); transition: border-color .15s ease, box-shadow .15s ease; }
.atalho:hover { border-color: var(--tinta); color: var(--texto); box-shadow: var(--sombra); }
.atalho-nome { font-weight: 600; color: var(--tinta); line-height: 1.25; }
.atalho-sub { font-size: .8rem; color: var(--texto-suave); }

/* =====================================================================
   Início: o painel da fibra (a assinatura da Central)
   ===================================================================== */

.painel {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--grafite);
    color: #fff;
    border-radius: 26px;
    padding: 1.5rem 1.4rem 1.4rem;
    box-shadow: var(--sombra-alta);
}

/* A fibra: um fio que entra pela borda e desce como a perna do "ŋ" do logo */
.painel-fibra { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.painel-fibra .fio { fill: none; stroke: url(#fibraGradiente); stroke-width: 2.5; stroke-linecap: round; }
.painel-fibra .halo { fill: none; stroke: var(--laranja); stroke-width: 16; stroke-linecap: round; opacity: .14; filter: blur(8px); }
.painel-fibra .luz {
    fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round;
    stroke-dasharray: 30 1600; stroke-dashoffset: 1630;
    filter: drop-shadow(0 0 6px var(--brasa));
    animation: luz-na-fibra 5s cubic-bezier(.55, .1, .35, 1) .4s infinite;
}
@keyframes luz-na-fibra { to { stroke-dashoffset: 0; } }

.painel-saudacao { font-size: .95rem; color: rgb(255 255 255 / .62); margin: 0; }
.painel-saudacao strong { color: #fff; font-weight: 600; }

.painel-rotulo { font-family: var(--fonte-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brasa); margin: 1.6rem 0 .35rem; }
.painel-valor { font-family: var(--fonte-titulo); font-size: clamp(2.6rem, 9vw, 3.8rem); line-height: 1; color: #fff; letter-spacing: -0.035em; margin: 0; }
.painel-detalhe { color: rgb(255 255 255 / .7); margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; }
.painel-acoes { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.painel .btn-contorno { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .18); color: #fff; }
.painel .btn-contorno:hover { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .35); color: #fff; }

.painel-em-dia { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; }
.painel-em-dia .sinal { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: rgb(23 163 74 / .18); color: #6fd394; display: flex; align-items: center; justify-content: center; }
.painel-em-dia h2 { color: #fff; margin: 0; font-size: 1.7rem; }
.painel-em-dia p { margin: 0; color: rgb(255 255 255 / .65); font-size: .9rem; }

.painel .esqueleto { background: linear-gradient(90deg, rgb(255 255 255 / .06), rgb(255 255 255 / .14), rgb(255 255 255 / .06)); background-size: 200% 100%; }

@media (min-width: 768px) {
    .painel { padding: 2.1rem 2.3rem 2.1rem; }
}

.avisos { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .25rem; }
.avisos::-webkit-scrollbar { display: none; }
.aviso-card { flex: 0 0 min(340px, 86%); scroll-snap-align: start; background: var(--superficie); border: 1px solid var(--borda); border-left: 3px solid var(--laranja); border-radius: 14px; padding: .85rem 1rem; display: flex; flex-direction: column; gap: .55rem; }
.aviso-card p { margin: 0; color: var(--tinta); font-weight: 500; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aviso-card-acoes { display: flex; justify-content: space-between; align-items: center; }
.aviso-card-acoes button { background: none; border: 0; padding: 0; font-size: .84rem; font-weight: 600; color: var(--texto-suave); }
.aviso-card-acoes button:hover { color: var(--tinta); }
.aviso-card-acoes a { font-size: .84rem; font-weight: 600; text-decoration: none; }

.svas { display: flex; gap: .85rem; overflow-x: auto; padding: .25rem .1rem .6rem; }
.sva { flex: 0 0 auto; background: none; border: 0; padding: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); transition: transform .2s ease, box-shadow .2s ease; }
.sva:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.sva img { display: block; max-height: 220px; max-width: 46vw; width: auto; height: auto; }
@media (min-width: 992px) { .sva img { max-width: 220px; } }

.banners { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 800 / 184; background: var(--superficie-2); }
.banners img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.banners img.ativo { opacity: 1; }
.banners-pontos { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.banners-pontos button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgb(255 255 255 / .5); }
.banners-pontos button.ativo { background: #fff; width: 20px; border-radius: 4px; }

/* ---------- Faturas ---------- */

.fatura-item .valor { font-family: var(--fonte-titulo); font-size: 1.1rem; color: var(--tinta); white-space: nowrap; letter-spacing: -0.02em; }
.fatura-bloqueada { font-size: .82rem; color: var(--perigo); display: flex; gap: .4rem; align-items: center; margin-top: .3rem; }

.fatura-resumo .valor-grande { font-family: var(--fonte-titulo); font-size: 2.8rem; color: var(--tinta); line-height: 1; letter-spacing: -0.03em; }

.pix { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .pix { grid-template-columns: 216px 1fr; } }
.pix-qr { background: #fff; border-radius: 18px; padding: 12px; width: 216px; height: 216px; margin: 6px auto; display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 0 0 1px var(--borda); }
/* Cantos de mira em volta do QR: é para onde a câmera do banco aponta */
.pix-qr::before {
    content: ""; position: absolute; inset: -7px; pointer-events: none;
    --c: var(--laranja);
    background:
        linear-gradient(var(--c), var(--c)) top left / 24px 3px no-repeat,
        linear-gradient(var(--c), var(--c)) top left / 3px 24px no-repeat,
        linear-gradient(var(--c), var(--c)) top right / 24px 3px no-repeat,
        linear-gradient(var(--c), var(--c)) top right / 3px 24px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / 24px 3px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / 3px 24px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right / 24px 3px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right / 3px 24px no-repeat;
}
.pix-qr img { width: 100%; height: 100%; }
.pix-codigo { font-family: var(--fonte-mono); font-size: .74rem; word-break: break-all; background: var(--superficie-2); border: 1px solid var(--borda); border-radius: 12px; padding: .65rem .8rem; max-height: 5.4rem; overflow: auto; color: var(--texto-suave); }

.aguardando-pagamento { display: flex; align-items: center; gap: .6rem; font-size: .84rem; color: var(--texto-suave); }
.pulso { width: 9px; height: 9px; border-radius: 50%; background: var(--sinal); animation: pulso 1.8s ease-out infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgb(23 163 74 / .45); } 100% { box-shadow: 0 0 0 10px rgb(23 163 74 / 0); } }

.obrigado { text-align: center; padding: 2.75rem 1.25rem; }
.obrigado .icone { font-size: 4rem; color: var(--sinal); }
.obrigado .valor-grande { font-family: var(--fonte-titulo); font-size: 3.2rem; color: var(--tinta); letter-spacing: -0.03em; }

/* ---------- Contrato ---------- */

.contrato-cabecalho h2 { font-size: 1.55rem; margin: .1rem 0 .25rem; }
.acoes-contrato { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.acao-contrato { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.05rem; text-align: left; width: 100%; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); color: var(--texto); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.acao-contrato:hover { border-color: var(--tinta); color: var(--texto); box-shadow: var(--sombra); }
.acao-contrato.destaque { background: var(--grafite); border-color: var(--grafite); color: #fff; position: relative; overflow: hidden; }
.acao-contrato.destaque:hover { color: #fff; }
.acao-contrato.destaque::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--fibra); }
.acao-contrato.destaque .icone-quadrado { background: var(--laranja); color: #fff; }
.acao-contrato.destaque .sub { color: rgb(255 255 255 / .65); }
.acao-contrato .titulo-item { font-weight: 600; }
.acao-contrato .sub { font-size: .8rem; color: var(--texto-suave); }

.termo { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; padding: 1rem; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); }
.termo + .termo { margin-top: .6rem; }
.termo-nome { flex: 1 1 220px; font-weight: 600; color: var(--tinta); }

.seletor-periodo { display: inline-flex; background: var(--superficie); border: 1px solid var(--borda); border-radius: 999px; padding: 3px; }
.seletor-periodo button { border: 0; background: none; padding: .38rem .9rem; border-radius: 999px; font-weight: 600; font-size: .82rem; color: var(--texto-suave); }
.seletor-periodo button.ativo { background: var(--grafite); color: #fff; }

.grafico { width: 100%; height: 220px; display: block; }
.grafico .grade line { stroke: var(--borda); stroke-dasharray: 2 5; }
.grafico .eixo text { fill: var(--texto-suave); font-size: 11px; font-family: var(--fonte-mono); }
.grafico .linha-download { stroke: var(--laranja); }
.grafico .area-download { fill: rgb(254 80 0 / .12); }
.grafico .linha-upload { stroke: #3d6fe0; }
.grafico .area-upload { fill: rgb(61 111 224 / .1); }
.legenda { display: flex; gap: 1.25rem; font-size: .8rem; color: var(--texto-suave); }
.legenda span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: .45rem; vertical-align: 3px; }
.legenda .download::before { background: var(--laranja); }
.legenda .upload::before { background: #3d6fe0; }

.medidor { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.medidor svg { width: 100%; height: 100%; transform: rotate(135deg); }
.medidor .trilho-medidor { stroke: var(--superficie-2); }
.medidor .progresso-medidor { stroke: var(--laranja); transition: stroke-dasharray .6s ease; }
.medidor-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.medidor-centro strong { font-family: var(--fonte-titulo); font-size: 1.6rem; color: var(--tinta); }

.planos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; }
.plano { display: flex; flex-direction: column; gap: .8rem; }
.plano-valor { font-family: var(--fonte-titulo); font-size: 2.1rem; color: var(--tinta); line-height: 1; letter-spacing: -0.03em; }

/* ---------- Perfil ---------- */

.perfil-topo { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.perfil-foto { position: relative; width: 96px; height: 96px; }
.perfil-foto img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--superficie), 0 0 0 5px var(--laranja); }
.perfil-foto label { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; background: var(--grafite); color: #fff; display: flex; align-items: center; justify-content: center; border: 3px solid var(--superficie); }
.dados { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem 1.5rem; }
.dado-rotulo { font-family: var(--fonte-mono); font-size: .7rem; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .08em; }
.dado-valor { font-weight: 500; color: var(--tinta); word-break: break-word; }

/* ---------- Fale conosco / FAQ ---------- */

.canais { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
.canal { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1.2rem .75rem; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); text-decoration: none; color: var(--tinta); font-weight: 600; transition: border-color .15s ease, box-shadow .15s ease; }
.canal i { font-size: 1.5rem; color: var(--laranja); }
.canal:hover { border-color: var(--tinta); color: var(--tinta); box-shadow: var(--sombra); }

.faq-grupo + .faq-grupo { margin-top: 1.5rem; }
.faq-grupo h3 { font-size: 1rem; margin-bottom: .6rem; }
.faq details { background: var(--superficie); border: 1px solid var(--borda); border-radius: 14px; }
.faq details + details { margin-top: .5rem; }
.faq summary { padding: .9rem 1.05rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--tinta); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--laranja); font-size: .8rem; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .resposta { padding: 0 1.05rem 1.05rem; color: var(--texto-suave); white-space: pre-line; }

/* ---------- Chat ---------- */

.chat { display: flex; flex-direction: column; height: calc(100dvh - 62px - 6.5rem - env(safe-area-inset-bottom)); }
@media (min-width: 992px) { .chat { height: calc(100dvh - 10rem); } }
.chat-aviso { font-size: .82rem; }
.chat-mensagens { flex: 1; overflow-y: auto; padding: 1rem .25rem; display: flex; flex-direction: column; gap: .35rem; }
.chat-dia { align-self: center; font-family: var(--fonte-mono); background: var(--superficie); border: 1px solid var(--borda); color: var(--texto-suave); font-size: .7rem; padding: .18rem .7rem; border-radius: 999px; margin: .8rem 0 .4rem; }
.chat-autor { font-size: .74rem; font-weight: 600; color: var(--texto-suave); margin: .5rem 0 0 .3rem; }
.balao { max-width: min(78%, 560px); padding: .62rem .9rem; border-radius: 18px; word-wrap: break-word; white-space: pre-wrap; }
.balao-cliente { align-self: flex-end; background: var(--grafite); color: #fff; border-bottom-right-radius: 6px; }
.balao-atendimento { align-self: flex-start; background: var(--superficie); border: 1px solid var(--borda); border-bottom-left-radius: 6px; }
.balao-rodape { font-family: var(--fonte-mono); font-size: .66rem; opacity: .7; text-align: right; margin-top: .2rem; }
.balao.pendente { opacity: .55; }
.balao.falhou { box-shadow: 0 0 0 2px var(--perigo); }
.balao .reenviar { background: none; border: 0; padding: 0; color: #ffc9c9; font-weight: 600; font-size: .72rem; text-decoration: underline; }
.balao img { max-width: 220px; border-radius: 12px; display: block; }
.balao a { color: inherit; text-decoration: underline; }
.chat-vazio { margin: auto; text-align: center; color: var(--texto-suave); max-width: 320px; }
.chat-vazio i { font-size: 2.2rem; color: var(--laranja); margin-bottom: .75rem; }
.chat-escrever { display: flex; gap: .5rem; align-items: flex-end; padding-top: .75rem; border-top: 1px solid var(--borda); }
.chat-escrever textarea { resize: none; max-height: 140px; border-radius: 22px; }
.chat-escrever .btn { width: 46px; height: 46px; padding: 0; border-radius: 50%; flex: 0 0 46px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Estados ---------- */

.carregando { display: flex; justify-content: center; align-items: center; padding: 3rem 0; color: var(--laranja); }
.esqueleto { background: linear-gradient(90deg, var(--superficie-2), var(--borda), var(--superficie-2)); background-size: 200% 100%; animation: brilho 1.4s infinite; border-radius: 10px; }
@keyframes brilho { to { background-position: -200% 0; } }

.vazio { text-align: center; padding: 2.75rem 1rem; color: var(--texto-suave); }
.vazio i { font-size: 1.8rem; opacity: .5; margin-bottom: .8rem; display: block; }

.erro-carga { text-align: center; padding: 2rem 1rem; color: var(--texto-suave); }
.erro-carga i { font-size: 1.8rem; margin-bottom: .5rem; display: block; }

.ocupado { position: fixed; inset: 0; z-index: 2000; background: rgb(16 19 26 / .5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ocupado-caixa { background: var(--superficie); border-radius: 18px; padding: 1.15rem 1.5rem; display: flex; align-items: center; gap: .9rem; box-shadow: var(--sombra-alta); font-weight: 600; color: var(--tinta); }

.avisos-rapidos { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(6.5rem + env(safe-area-inset-bottom)); z-index: 2100; display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 992px) { .avisos-rapidos { bottom: 2rem; left: calc(50% + var(--trilho) / 2); } }
.aviso-rapido { background: var(--grafite); color: #fff; padding: .8rem 1.05rem; border-radius: 14px; font-weight: 500; font-size: .92rem; box-shadow: var(--sombra-alta); border-left: 3px solid var(--sinal); animation: subir .2s ease; }
.aviso-rapido.erro { border-left-color: var(--perigo); }
@keyframes subir { from { opacity: 0; transform: translateY(8px); } }

.modal-content { background: var(--superficie); color: var(--texto); border: 0; border-radius: 22px; box-shadow: var(--sombra-alta); }
.modal-header, .modal-footer { border-color: var(--borda); }
.modal-title { font-family: var(--fonte-titulo); }

.faixa-conexao { position: sticky; top: 0; z-index: 1040; text-align: center; padding: .4rem; font-size: .84rem; font-weight: 600; color: #fff; }
.faixa-conexao.offline { background: var(--grafite-3); }
.faixa-conexao.online { background: var(--sinal); }

.dropdown-menu { border: 1px solid var(--borda); border-radius: 14px; box-shadow: var(--sombra-alta); padding: .35rem; background: var(--superficie); }
.dropdown-item { border-radius: 10px; padding: .5rem .75rem; color: var(--texto); }
.dropdown-item:hover { background: var(--superficie-2); color: var(--tinta); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .painel-fibra .luz { display: none; }
}
