*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    /* Mantém o tema claro mesmo quando o SO está em modo escuro (evita inputs/scrollbars escuros). */
    color-scheme: light only;
    background: #c5ddd4;
    height: 100%;
    overflow: hidden;
}
html:has(body.chat-mode) {
    height: 100%;
    overflow: hidden;
}
body {
    margin: 0;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    color: var(--color-text);
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    --app-header-h: 64px;
    background: transparent;
}

#app-shell {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    position: relative;
    margin: 0 auto;
    background: #e8f4f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateZ(0);
}

#app-shell > main {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* Browser em ecrã largo: app centrado como num telemóvel */
@media (min-width: 520px) {
    body {
        display: flex;
        justify-content: center;
        align-items: stretch;
        padding: max(12px, env(safe-area-inset-top, 0px)) 0 max(12px, env(safe-area-inset-bottom, 0px));
    }
    #app-shell {
        width: min(var(--app-shell-max), 100vw);
        max-width: var(--app-shell-max);
        height: calc(100dvh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: var(--app-shell-radius);
        overflow: hidden;
        box-shadow:
            0 0 0 1px rgba(12, 74, 110, 0.1),
            0 24px 80px rgba(12, 74, 110, 0.16),
            0 8px 28px rgba(15, 118, 110, 0.1);
    }
}

/* PWA instalada ou ecrã estreito: tela cheia, sem moldura */
@media (max-width: 519px), (display-mode: standalone), (display-mode: fullscreen) {
    body {
        padding: 0;
    }
    #app-shell {
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

/* Selo COOPERE no header: sem logo quando na Conta com dados (portal pré-cadastro ou beneficiário logado) */
body:has(#view-conta.active #conta-panel-precadastro:not([hidden]) #conta-pc-step-portal:not([hidden])) .app-header-logo,
body:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) .app-header-logo {
    display: none !important;
}

.loading-bar--global {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    margin: 0;
    border-radius: 0;
    height: 3px;
}

.app-header {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    z-index: 180;
    height: calc(var(--app-header-h) + env(safe-area-inset-top, 0));
    padding-top: env(safe-area-inset-top, 0);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: var(--apple-blur-thin);
    -webkit-backdrop-filter: var(--apple-blur-thin);
    border-bottom: 1px solid var(--apple-separator);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.app-header-inner {
    height: var(--app-header-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
}
.app-header-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}
.icon-pill--install {
    min-width: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.icon-pill:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.icon-pill:disabled .icon-pill-install-svg {
    color: var(--color-text-muted, #64748b);
}
.icon-pill-install-svg {
    display: block;
    color: var(--color-sky, #0369a1);
}
.app-header-logo {
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.35);
}
.app-header-text strong {
    display: block;
    font-size: 0.94rem;
    line-height: 1.1;
}
.app-header-text span {
    display: block;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.1;
}
body.chat-mode {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
}
body.chat-mode #app-shell {
    flex: 1 1 0;
    min-height: 0;
    max-height: 100%;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.chat-mode #app-shell > main {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
@media (min-width: 520px) {
    body.chat-mode #app-shell {
        width: min(var(--app-shell-max), 100vw);
        max-width: var(--app-shell-max);
    }
}
@media (max-width: 519px), (display-mode: standalone), (display-mode: fullscreen) {
    body.chat-mode #app-shell {
        width: 100%;
        max-width: none;
    }
}
body.chat-mode .app-header {
    display: none;
}
body.chat-mode main {
    flex: 1 1 0;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* Menu Início / Cadastro / Proposta / Chat / Conta — oculto só no chat (volta pelo ← no cabeçalho) */
body.chat-mode .bottom-nav--fab {
    display: none !important;
}
/* Modo consultor: FAB vira atalho para o Chat — fundo neutro, o bot já tem cor própria */
body.consultor-mode .nav-fab {
    background: linear-gradient(160deg, #ffffff 0%, #ecfdf5 55%, #d1fae5 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 10px 28px rgba(15,23,42,0.12),
        0 4px 12px rgba(15,118,110,0.22);
}
body.consultor-mode .nav-fab:hover,
body.consultor-mode .nav-fab:focus-visible {
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 12px 32px rgba(15,23,42,0.15),
        0 4px 16px rgba(15,118,110,0.32);
}

/* ——— Início app-style ——— */
.view-home {
    padding: 0 0 8px !important;
    max-width: 100% !important;
}

/* «Desconto garantido» é o 1.º cartão no HTML (logo após o hero) */
#view-home #block-desconto.card {
    position: relative;
    z-index: 2;
    margin-top: -36px;
    box-shadow: 0 12px 40px rgba(12, 74, 110, 0.15);
}
#view-home .home-store-hero.card-overlap {
    margin-top: 14px;
}

.home-hero {
    position: relative;
    padding: 14px 16px 48px;
    color: #fff;
    overflow: hidden;
}
.home-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(12, 74, 110, 0.88) 0%, rgba(0, 140, 74, 0.75) 50%, rgba(255, 193, 7, 0.35) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23fff' stop-opacity='0.12'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='900' cy='80' r='200' fill='url(%23g)'/%3E%3Ccircle cx='200' cy='300' r='160' fill='%23ffc107' fill-opacity='0.15'/%3E%3C/svg%3E") center/cover;
    z-index: 0;
}
.home-hero-top,
.home-hero-logos,
.home-hero-logo,
.home-hero-actions {
    display: none;
}
/* SisgdSolar: rodapé do Início */
/* CTA final — "Comece agora!" no fundo da home */
.home-cta-final {
    padding: 20px 20px 8px;
}
.home-cta-final__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 18px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #065f46 0%, #0d9488 50%, #16a34a 100%);
    cursor: pointer;
    box-shadow: 0 6px 28px rgba(13, 148, 136, 0.35), 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.home-cta-final__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.home-cta-final__btn:active {
    transform: scale(0.97);
    box-shadow: 0 3px 14px rgba(13, 148, 136, 0.3);
}
.home-cta-final__ico {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}
.home-cta-final__label {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.home-cta-final__sub {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.01em;
}

.home-sisgd-footer {
    margin-top: 8px;
    padding: 24px 20px calc(28px + env(safe-area-inset-bottom, 0));
    text-align: center;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.home-sisgd-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.home-sisgd-footer-logo {
    height: 88px;
    width: auto;
    max-width: min(92vw, 320px);
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(15, 23, 42, 0.12));
}

/* WhatsApp flutuante — só no Chat (LUMIA); nas outras telas fica oculto */
.app-whatsapp-float,
.home-whatsapp-fab.app-whatsapp-float {
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    /* Acima do composer do chat (nav inferior some em chat-mode) */
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 127;
}
.app-whatsapp-float[hidden] {
    display: none !important;
    pointer-events: none;
}
body.co-consultor-dash-active .app-whatsapp-float {
    z-index: 200;
}
body:has(#view-conta.active #conta-pc-step-portal:not([hidden])) .app-whatsapp-float {
    z-index: 200;
}
.home-whatsapp-fab {
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: var(--float-fab-stack-bottom);
    z-index: 127;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 48px;
    padding: 0 0 2px;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}
.home-whatsapp-fab__pulse {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.35);
    animation: homeWaPulse 2.2s ease-out infinite;
    pointer-events: none;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
@keyframes homeWaPulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) scale(1.45);
        opacity: 0;
    }
}
.home-whatsapp-fab__ico {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45), 0 0 0 3px #fff;
    background-color: #25d366;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 58% 58%;
    transition: transform 0.15s ease;
}
.home-whatsapp-fab:active .home-whatsapp-fab__ico {
    transform: scale(0.94);
}
.home-whatsapp-fab__text {
    position: relative;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0f766e;
    text-shadow: 0 1px 0 #fff;
    line-height: 1;
    max-width: 64px;
    text-align: center;
}
.home-whatsapp-fab:focus-visible {
    outline: none;
}
.home-whatsapp-fab:focus-visible .home-whatsapp-fab__ico {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--color-sky-light, #0369a1);
}

.home-hero-actions {
    display: flex;
    gap: 8px;
}
.icon-pill {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-sky);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.app-header .icon-pill {
    background: var(--apple-fill-tertiary);
    color: #0c4a6e;
    box-shadow: none;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.app-header .icon-pill:active {
    transform: scale(0.94);
    background: rgba(120, 120, 128, 0.22);
}
.home-hero-tagline {
    position: relative;
    z-index: 1;
    margin: 14px 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.95;
    max-width: 280px;
    line-height: 1.35;
}

.card-overlap {
    position: relative;
    z-index: 2;
    margin: -36px 16px 14px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 12px 40px rgba(12, 74, 110, 0.15);
    border: 1px solid rgba(200, 230, 213, 0.8);
}

/* Bloco inicial estilo vitrine e-commerce */
.home-store-hero.card-overlap {
    display: block;
    padding: 20px 18px 18px;
    text-align: left;
}
.home-store-kicker {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--color-solar-green);
    text-transform: uppercase;
    margin: 0 0 10px;
}
.home-store-headline {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.35;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.home-store-headline em {
    font-style: normal;
    color: var(--color-solar-green-dark);
}
.home-store-pitch {
    font-size: 0.96rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0 0 16px;
}
.home-store-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.home-store-stat {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
}
.home-store-stat strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--color-sky);
    line-height: 1.2;
}
.home-store-stat span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
    line-height: 1.25;
    margin-top: 4px;
}
.home-store-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding-top: 4px;
    border-top: 1px dashed var(--color-border);
}
.home-store-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-sun) 0%, var(--color-sun-deep) 100%);
    color: #1a1a1a;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
}
.home-store-note {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-weight: 600;
}
.home-why-image-wrap {
    margin-top: 14px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(1, 124, 131, 0.2);
    box-shadow: 0 10px 22px rgba(5, 44, 40, 0.16);
}
.home-why-image {
    display: block;
    width: 100%;
    height: auto;
}
@media (max-width: 360px) {
    .home-store-stats {
        grid-template-columns: 1fr;
    }
    .home-store-stat {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 8px 12px;
        text-align: left;
        align-items: center;
    }
    .home-store-stat span { margin-top: 0; }
}

.home-quick-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px 12px;
}
body.pre-cadastro-logged #view-home .home-quick-row {
    display: none !important;
}
body.pre-cadastro-logged #view-home .home-store-cta-row {
    display: none !important;
}
body.pre-cadastro-logged #view-home .home-store-pitch,
body.pre-cadastro-logged #view-home .home-store-stats,
body.pre-cadastro-logged #view-home .home-why-image-wrap,
body.pre-cadastro-logged #view-home .home-cta-final {
    display: none !important;
}
body.pre-cadastro-logged #view-precadastro #precadastro-flow-locked {
    display: none !important;
}
body.pre-cadastro-logged #view-cart #precadastro-slot-cart {
    display: none !important;
}

.home-logged-dash {
    padding: 0 16px 16px;
}
.home-logged-dash[hidden] {
    display: none !important;
}
.home-logged-dash__card {
    background: linear-gradient(165deg, #ecfdf5 0%, #fff 42%, #f8fafc 100%);
    border: 1px solid rgba(13, 148, 136, 0.18);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}
.home-logged-dash__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
}
.home-logged-dash__hello {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}
.home-logged-dash__lead {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.45;
}
.home-logged-dash__econ {
    margin: 0 0 1rem;
    padding: 0.95rem 1rem 1.05rem;
    border-radius: 14px;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.16);
}
.home-logged-dash__econ-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f766e;
}
.home-logged-dash__econ-value {
    margin: 0.25rem 0 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.home-logged-dash__econ-sub {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}
.home-logged-panorama__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.home-logged-panorama__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.home-logged-panorama__unit {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
}
.home-logged-panorama__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-top: 0.85rem;
}
.home-logged-panorama__item {
    min-width: 0;
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
}
.home-logged-panorama__item--save {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.22);
}
.home-logged-panorama__k {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.2rem;
}
.home-logged-panorama__v {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.home-logged-panorama__uc {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: #475569;
}
@media (max-width: 360px) {
    .home-logged-panorama__grid {
        grid-template-columns: 1fr;
    }
}
.home-logged-dash__status {
    margin: 0 0 1rem;
}
.home-logged-dash__status .pc-portal-hero-head-row {
    margin: 0;
}
.home-logged-dash__actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.home-logged-dash__btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
}
.home-logged-dash__btn--primary {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
}
.home-logged-dash__btn--muted {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.cart-pdf-hint {
    margin: 0 0 0.75rem;
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.4;
}
.cart-pdf-embed {
    display: block;
    width: 100%;
    min-height: 70vh;
    height: min(78vh, 920px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    background: #f8fafc;
}
.cart-pdf-embed[hidden] {
    display: none !important;
}
/* Em telemóvel o iframe de PDF costuma ficar em branco — CTA grande para abrir de verdade. */
.cart-pdf-mobile-open {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin: 0 0 0.85rem;
    padding: 1.15rem 1rem;
    border-radius: 14px;
    border: 1px dashed rgba(1, 124, 131, 0.35);
    background: linear-gradient(180deg, #f0fbfb 0%, #f8fafc 100%);
}
.cart-pdf-mobile-open__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
}
.cart-pdf-mobile-open__hint {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #475569;
}
.cart-pdf-mobile-open__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 12px;
    background: #017c83;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
.cart-pdf-mobile-open__btn:active {
    transform: scale(0.98);
}
@media (hover: none), (max-width: 820px) {
    .cart-pdf-mobile-open:not([hidden]) {
        display: none;
    }
    .cart-card-pdf .cart-pdf-embed:not([hidden]) {
        min-height: 70vh;
        height: min(78vh, 920px);
    }
}
body.pre-cadastro-logged .cart-card-pdf .card-title {
    margin-bottom: 0.35rem;
}

.quick-chip {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border-radius: 16px;
    border: 2px solid #d1e7dd;
    background: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-muted);
    cursor: pointer;
}
.quick-chip--active {
    border-color: var(--color-sun-deep);
    background: linear-gradient(180deg, #fffbf0 0%, #fff 100%);
    color: var(--color-solar-green-dark);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}
.quick-chip-ico { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }

/* Simulação rápida 20% */
.quick-sim-card {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}
.quick-sim-question {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 16px;
    line-height: 1.4;
}
.quick-sim-slider-wrap {
    padding: 8px 0 4px;
}
.quick-sim-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
}
.quick-sim-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #065f46;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(6, 95, 70, 0.45);
    border: 3px solid #fff;
}
.quick-sim-range::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #065f46;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(6, 95, 70, 0.45);
}
.quick-sim-range::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
}
.quick-sim-bill-display {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--color-text);
    text-align: center;
    margin: 12px 0 18px;
    letter-spacing: -0.02em;
}
.quick-sim-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.quick-sim-stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
}
.quick-sim-stat-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    line-height: 1.25;
}
.quick-sim-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text);
}
.quick-sim-stat-value--save {
    color: #047857;
}
.quick-sim-totals-hint {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-align: center;
    margin: 0 0 4px;
    line-height: 1.35;
}
.quick-sim-totals {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    grid-template-columns: 1fr;
}
.quick-sim-totals[hidden] {
    display: none;
}
.quick-sim-totals--visible {
    animation: quickSimTotalsIn 0.45s ease-out both;
}
@keyframes quickSimTotalsIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.quick-sim-total-panel {
    border-radius: 16px;
    padding: 18px 16px;
    text-align: center;
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 10px 28px rgba(4, 120, 87, 0.28);
}
.quick-sim-total-panel--12 {
    background: linear-gradient(135deg, #022c22 0%, #047857 35%, #34d399 72%, #fbbf24 100%);
}
.quick-sim-total-panel--5y {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 38%, #0e7490 65%, #f59e0b 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 10px 28px rgba(12, 74, 110, 0.28);
}
.quick-sim-total-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.92;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.quick-sim-total-value {
    display: block;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

/* ========== OVERLAY SOLAR DE PROCESSAMENTO (home) ========== */
.hpo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 20, 10, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.hpo-overlay[hidden] { display: none !important; }

.hpo-card {
    background: linear-gradient(160deg, #0a2a1a 0%, #0f2f20 50%, #071a10 100%);
    border: 1px solid rgba(52,211,153,0.35);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 40px rgba(52,211,153,0.12);
    padding: 36px 32px 32px;
    width: min(420px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* cena */
.hpo-scene {
    width: 200px; height: 130px;
    position: relative;
    margin-bottom: 20px;
}
.hpo-sun {
    position: absolute; top: 8px; right: 22px;
    width: 44px; height: 44px;
    background: radial-gradient(circle, #fde68a 40%, #f59e0b 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 18px 8px rgba(251,191,36,0.45);
    animation: hpo-sun-pulse 2.4s ease-in-out infinite;
}
@keyframes hpo-sun-pulse {
    0%,100% { box-shadow: 0 0 18px 8px rgba(251,191,36,0.45); transform: scale(1); }
    50%      { box-shadow: 0 0 30px 14px rgba(251,191,36,0.65); transform: scale(1.08); }
}
.hpo-sun-rays {
    position: absolute; top: -6px; right: 16px;
    width: 56px; height: 56px;
    animation: hpo-spin 8s linear infinite;
}
.hpo-sun-rays span {
    position: absolute; left: 50%; top: 50%;
    width: 2px; height: 12px;
    background: rgba(253,230,138,0.7);
    border-radius: 1px;
    transform-origin: 50% 100%;
    margin-left: -1px; margin-top: -28px;
}
@keyframes hpo-spin { to { transform: rotate(360deg); } }
.hpo-panel {
    position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 170px; height: 70px;
}
.hpo-panel-grid {
    width: 100%; height: 100%;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: repeat(2,1fr);
    gap: 3px;
    background: #1e3a2a;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(52,211,153,0.2);
}
.hpo-cell {
    background: linear-gradient(135deg, #0d3a4a 0%, #1a5c6e 50%, #0d4a5c 100%);
    border-radius: 3px;
    position: relative; overflow: hidden;
}
.hpo-cell::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(52,211,153,0) 0%, rgba(52,211,153,0.35) 50%, rgba(52,211,153,0) 100%);
    animation: hpo-shine 2s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}
@keyframes hpo-shine {
    0%,100% { opacity: 0; }
    50%      { opacity: 1; }
}
.hpo-beam {
    position: absolute; top: 28px; right: 46px;
    width: 2px; height: 40px;
    background: linear-gradient(180deg, rgba(253,230,138,0.8), rgba(52,211,153,0.6));
    border-radius: 1px;
    animation: hpo-beam 1.6s ease-in-out infinite;
    transform-origin: top center;
    transform: rotate(18deg);
}
@keyframes hpo-beam {
    0%,100% { opacity: 0.2; height: 36px; }
    50%      { opacity: 1;   height: 44px; }
}
.hpo-sparks { position: absolute; inset: 0; pointer-events: none; }
.hpo-spark {
    position: absolute;
    width: 4px; height: 4px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 6px #34d399;
    animation: hpo-spark var(--dur,1.8s) ease-in infinite;
    animation-delay: var(--del,0s);
    left: var(--x,50%); bottom: 12px; opacity: 0;
}
@keyframes hpo-spark {
    0%   { opacity: 0; transform: translateY(0) scale(1); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-60px) scale(0.3); }
}

/* textos e barra */
.hpo-step-label {
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: #34d399; margin-bottom: 6px;
}
.hpo-main-text {
    font-size: 1.05rem; font-weight: 800;
    color: #ffffff; text-align: center;
    line-height: 1.35; min-height: 2.6em;
    margin: 0 0 18px;
}
.hpo-progress-wrap {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border-radius: 99px; height: 10px;
    overflow: hidden; margin-bottom: 8px;
    position: relative;
}
.hpo-progress-native {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.hpo-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #0d9488, #34d399, #4ade80);
    border-radius: 99px;
    transition: width 0.4s ease;
    box-shadow: 0 0 8px rgba(52,211,153,0.6);
}
.hpo-progress-pct {
    font-size: 0.8rem; font-weight: 700;
    color: #86efac; text-align: right; width: 100%;
    margin-bottom: 4px;
}
.hpo-subtext {
    font-size: 0.8rem; color: rgba(255,255,255,0.5);
    text-align: center; margin-top: 6px;
}

#block-upload.block-upload--revealed {
    animation: blockUploadIn 0.45s ease-out;
}
@keyframes blockUploadIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-home .card {
    margin-left: 16px;
    margin-right: 16px;
}
.card-sub {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin: -6px 0 12px;
}

.view {
    display: none;
    padding: 16px 16px 8px;
    max-width: 480px;
    margin: 0 auto;
    pointer-events: none;
    visibility: hidden;
}
.view.active {
    display: block;
    pointer-events: auto;
    visibility: visible;
}
/* Pull-to-refresh: só a aba ativa fica visível (evita Início por cima das outras). */
#app-ptr-body > .view[hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
#app-ptr-body > .view.active:not([hidden]):not(.view-chat) {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
#app-ptr-body > .view.view-chat.active:not([hidden]) {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
body.chat-mode #app-ptr-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}
.card-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--color-solar-green-dark);
    margin: 0 0 12px;
}

#block-desconto.card {
    overflow: visible;
}
/* CTA do bloco de desconto: mais “clicável” */
#btn-desconto-start-now.btn-primary {
    background: linear-gradient(135deg, #0f766e 0%, #059669 45%, #f59e0b 100%);
    color: #ffffff;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.45) inset,
        0 10px 28px rgba(15, 23, 42, 0.16),
        0 6px 18px rgba(5, 150, 105, 0.24);
}
#btn-desconto-start-now.btn-primary:active {
    box-shadow:
        0 1px 0 rgba(255,255,255,0.35) inset,
        0 8px 22px rgba(15, 23, 42, 0.14),
        0 5px 14px rgba(5, 150, 105, 0.2);
}

/* Bloco de desconto */
.wheel-wrap--premium {
    position: relative;
    padding-top: 8px;
    gap: 18px;
    align-items: center;
}
.wheel-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.wheel-floating-hint {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--color-solar-green);
    text-transform: uppercase;
    margin: 0 0 4px;
    opacity: 0.85;
}

.wheel-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 108%;
    height: 108%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px dashed rgba(0, 140, 74, 0.22);
    pointer-events: none;
    z-index: 0;
    animation: wheelOrbitSpin 22s linear infinite;
}
@keyframes wheelOrbitSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.wheel-stage--premium.is-spinning .wheel-orbit {
    animation-duration: 2.8s;
    border-color: rgba(245, 158, 11, 0.4);
}

.wheel-stage {
    position: relative;
    width: min(288px, 86vw);
    height: min(288px, 86vw);
    perspective: 520px;
}
.wheel-stage--premium {
    z-index: 1;
    transform-style: preserve-3d;
    animation: wheelFloat 5s ease-in-out infinite;
    isolation: isolate;
    cursor: grab;
    touch-action: none;
}
.wheel-stage--premium.wheel-stage--pressing {
    cursor: grabbing;
}
.wheel-stage--premium.is-spinning {
    cursor: progress;
}
@keyframes wheelFloat {
    0%, 100% { transform: translateY(0) rotateX(2deg); }
    50% { transform: translateY(-4px) rotateX(4deg); }
}
.wheel-stage--premium.is-spinning {
    animation: none;
    transform: rotateX(0deg);
}

.wheel-ambient-glow {
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, rgba(0, 140, 74, 0.12) 45%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: wheelGlowPulse 3.2s ease-in-out infinite;
}
@keyframes wheelGlowPulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}
.wheel-stage--premium.is-spinning .wheel-ambient-glow {
    animation: wheelGlowSpin 0.6s ease-in-out infinite alternate;
}
@keyframes wheelGlowSpin {
    from { opacity: 0.9; filter: blur(0); }
    to { opacity: 1; filter: blur(1px); }
}

.wheel-canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    filter: drop-shadow(0 12px 28px rgba(12, 74, 110, 0.28));
}
.wheel-canvas--premium {
    filter: drop-shadow(0 16px 36px rgba(0, 140, 74, 0.22)) drop-shadow(0 0 20px rgba(251, 191, 36, 0.15));
}

.wheel-pointer--premium {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 28px solid #f59e0b;
    filter: drop-shadow(0 4px 10px rgba(180, 83, 9, 0.55));
}

/* Confete caindo de cima */
.wheel-celebration {
    position: absolute;
    left: -12px;
    right: -12px;
    top: -48px;
    bottom: -120px;
    z-index: 5;
    pointer-events: none;
    overflow: visible;
}
.wheel-confetti-rain-piece {
    position: absolute;
    left: var(--x, 50%);
    top: 0;
    width: var(--w, 8px);
    height: var(--h, 12px);
    margin-left: calc(var(--w, 8px) / -2);
    background: var(--c, #fbbf24);
    border-radius: 2px;
    opacity: 0;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}
.wheel-confetti-rain-piece.is-falling {
    animation: wheelConfettiRain var(--dur, 2.2s) cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--delay, 0s) forwards;
}
@keyframes wheelConfettiRain {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0.15;
        transform: translate(var(--drift, 0), var(--fall, 400px)) rotate(var(--rot, 360deg)) scale(0.85);
    }
}

.wheel-spin-btn {
    position: relative;
    width: 100%;
    max-width: 280px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
}
.wheel-spin-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 16px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 35%, #f59e0b 100%);
    color: #1a1a1a;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 8px 24px rgba(245, 158, 11, 0.45),
        0 2px 0 #b45309;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wheel-spin-btn:active .wheel-spin-core {
    transform: scale(0.97);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}
.wheel-spin-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}
.wheel-spin-hint {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.75;
    letter-spacing: 0.06em;
}
.wheel-spin-ring {
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: conic-gradient(from 0deg, #008c4a, #0369a1, #fbbf24, #008c4a);
    opacity: 0.55;
    z-index: -1;
    animation: wheelSpinRing 2.5s linear infinite;
}
@keyframes wheelSpinRing {
    to { transform: rotate(360deg); }
}
.wheel-spin-btn:disabled .wheel-spin-core {
    opacity: 0.65;
    pointer-events: none;
}
.wheel-spin-btn:disabled .wheel-spin-ring {
    animation: none;
    opacity: 0.35;
}

.wheel-result--premium {
    text-align: center;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--color-text);
    line-height: 1.45;
    width: 100%;
    max-width: none;
    padding: 14px 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 55%);
    border: 1px solid var(--color-border);
    position: relative;
    z-index: 2;
}
.wheel-parabens {
    display: block;
    font-size: 1.32rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(100deg, #047857 0%, #059669 40%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #047857;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
    .wheel-parabens {
        color: transparent;
    }
}
.wheel-result-line {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}
.wheel-result-headline {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--color-sun-deep);
}
.wheel-result-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text-muted);
}
.wheel-result--premium .wheel-result-pct {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--color-sun-deep);
}
.wheel-result--pop {
    animation: wheelResultPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes wheelResultPop {
    0% { transform: scale(0.92); opacity: 0.6; }
    60% { transform: scale(1.04); }
    100% { transform: scale(1); opacity: 1; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.02rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
    background: linear-gradient(135deg, var(--color-sun) 0%, var(--color-sun-deep) 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}
/* PWA «Instalar»: verde cooperativa (menos fadiga visual que amarelo-sol nos CTAs de atalho) */
.pwa-install-banner__btn.btn-primary,
.install-edu-cta.btn-primary {
    background: linear-gradient(135deg, #0f766e 0%, #059669 45%, #047857 100%);
    color: #fff;
    box-shadow: 0 6px 22px rgba(4, 120, 87, 0.32);
}
.pwa-install-banner__btn.btn-primary:active,
.install-edu-cta.btn-primary:active {
    box-shadow: 0 4px 16px rgba(4, 120, 87, 0.26);
}
.btn-secondary {
    background: linear-gradient(135deg, var(--color-solar-green) 0%, var(--color-solar-green-dark) 100%);
    color: #fff;
}
.btn-ghost {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-block { width: 100%; }
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-small { padding: 8px 14px; font-size: 0.85rem; }

.upload-zone {
    border: 2px dashed var(--color-solar-green-light);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, var(--color-sun-soft) 100%);
    cursor: pointer;
}
.upload-zone.dragover { border-color: var(--color-sun-deep); background: #fff8e6; }

/* ── Banner parabéns desconto ── */
.economy-congrats-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #052e16 0%, #065f46 45%, #0d9488 100%);
    border-radius: 18px;
    padding: 18px 16px 18px 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 32px rgba(13,148,136,0.45), 0 2px 8px rgba(0,0,0,0.3);
    animation: ecbEntrance 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes ecbEntrance {
    from { opacity: 0; transform: translateY(-18px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ecb-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(52,211,153,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.ecb-icon {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.ecb-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.ecb-parabens {
    font-size: 1.05rem;
    font-weight: 900;
    color: #4ade80;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.ecb-msg {
    font-size: 0.88rem;
    color: #d1fae5;
    font-weight: 600;
    line-height: 1.35;
}
.ecb-msg strong {
    color: #86efac;
    font-size: 1rem;
}
.ecb-sub {
    font-size: 0.75rem;
    color: rgba(209,250,229,0.7);
    font-weight: 400;
    margin-top: 2px;
}
.ecb-badge {
    flex-shrink: 0;
    background: linear-gradient(160deg, #16a34a 0%, #0d9488 100%);
    border-radius: 14px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(22,163,74,0.5);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    min-width: 58px;
}
.ecb-badge span {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #bbf7d0;
    margin-top: 2px;
}

/* Aviso: consumo mínimo de 600 kWh (popup ao Economizar) */
.min-kwh-modal {
    z-index: 236;
    background: rgba(15, 23, 42, 0.45);
}
.min-kwh-modal__sheet {
    border-top: 1px solid rgba(253, 230, 138, 0.55);
    box-shadow: 0 -20px 60px rgba(180, 83, 9, 0.22);
}
.min-kwh-modal__head h2 {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: #9a3412;
}
.min-kwh-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 6px 12px 6px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9a3412;
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.95), rgba(255, 237, 213, 0.9));
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    width: fit-content;
}
.min-kwh-modal__badge-ico {
    font-size: 0.95rem;
    line-height: 1;
}
.min-kwh-modal__lead {
    margin: 0 0 18px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--color-text);
}
.min-kwh-modal__lead strong {
    color: #b45309;
    font-weight: 900;
}
.min-kwh-modal__ok {
    width: 100%;
}

.economy-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}
.economy-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid var(--color-border);
    min-width: 0;
    overflow: hidden;
}
.economy-item .label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.economy-item .value {
    font-weight: 800;
    font-size: clamp(0.78rem, 3.5vw, 1.06rem);
    color: var(--color-sky);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Seu pedido: após confirmar dados, mesma grelha que «Resumo da economia»; última caixa em largura total */
.economy-grid--pedido-confirmado {
    grid-template-columns: 1fr 1fr;
}
.economy-grid--pedido-confirmado .economy-item:last-child {
    grid-column: 1 / -1;
}

/* Card Proposta (só visível após gerar PDF) */
.proposta-lead {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin: -6px 0 10px;
    line-height: 1.4;
}

/* PDF + flutuante cadastro */
.pdf-stack {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 220px;
    background: #e2e8f0;
    border: 1px solid var(--color-border);
}
.pdf-stack iframe, .pdf-stack embed {
    width: 100%;
    height: 320px;
    border: none;
    display: block;
}
.pdf-placeholder {
    padding: 40px 16px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Proposta: botões de ação — Download e Prosseguir */
.proposta-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}
.proposta-actions--cart {
    margin-top: 12px;
    grid-template-columns: 1fr;
}
.proposta-action-btn {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 18px;
    border-radius: 16px;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 54px;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s ease;
}
.proposta-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: rgba(255,255,255,0.15);
}
.proposta-action-btn:hover::before,
.proposta-action-btn:focus-visible::before {
    opacity: 1;
}
.proposta-action-btn:active {
    transform: scale(0.96);
}
.proposta-action-btn--download {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}
.proposta-action-btn--download:active {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.proposta-action-btn--wa {
    background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.proposta-action-btn--wa:active {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.proposta-action-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
}
.proposta-action-btn--download .proposta-action-ico svg {
    animation: pab-bounce 2.4s ease-in-out infinite;
}
@keyframes pab-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(3px); }
}

/*
 * PDF da proposta (off-screen): espelha calculadora.html — #propostaA4 + blocos proposal-info
 * (slide «DADOS DA PROPOSTA» / calculateResults).
 */
/* Off-screen: nunca deve aparecer no app (só capturado pelo html2canvas). */
.proposta-print-root,
#proposta-print-root[hidden] {
    position: fixed !important;
    left: -12000px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    z-index: -1 !important;
    line-height: 1.45;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}
/* Durante a captura do PDF A4 (fallback), o nó precisa estar no viewport. */
.proposta-print-root.proposta-print-root--capturing {
    left: 0 !important;
    top: 0 !important;
    width: 794px !important;
    height: auto !important;
    min-height: 1123px !important;
    max-height: none !important;
    padding: 36px 40px 48px !important;
    overflow: visible !important;
    opacity: 0.02 !important;
    visibility: visible !important;
    z-index: 2147483646 !important;
    clip: auto !important;
    clip-path: none !important;
}
#proposta-print-root #propostaA4 {
    width: 210mm;
    max-width: 100%;
    min-height: 297mm;
    margin: 0 auto;
    padding: 12mm;
    background: #fff;
    box-sizing: border-box;
    overflow: visible;
}
#proposta-print-root #propostaA4 * {
    box-sizing: border-box;
}
#proposta-print-root .proposta-a4-logo {
    text-align: center;
    margin-bottom: 6mm;
}
#proposta-print-root .proposta-a4-logo img {
    max-height: 18mm;
    width: auto;
    object-fit: contain;
}
#proposta-print-root .proposta-a4-titulo {
    text-align: center;
    font-size: 17pt;
    font-weight: bold;
    color: #006666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6mm;
    border-bottom: 2px solid #006666;
    padding-bottom: 3mm;
}
#proposta-print-root .proposta-a4-destaque {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    text-align: center;
    padding: 5mm 4mm;
    font-size: 14pt;
    font-weight: bold;
    margin-bottom: 6mm;
    border-radius: 2mm;
}
#proposta-print-root .proposta-a4-cliente {
    display: table;
    width: 100%;
    margin-bottom: 6mm;
    font-size: 12pt;
}
#proposta-print-root .proposta-a4-cliente-row {
    display: table-row;
}
#proposta-print-root .proposta-a4-cliente-label {
    display: table-cell;
    font-weight: bold;
    color: #666;
    padding: 2mm 4mm 2mm 0;
    width: 45mm;
}
#proposta-print-root .proposta-a4-cliente-value {
    display: table-cell;
    color: #006666;
    font-weight: bold;
}
#proposta-print-root .proposta-a4-box {
    margin-bottom: 5mm;
    padding: 4mm;
    border-radius: 2mm;
    font-size: 11pt;
    line-height: 1.4;
}
#proposta-print-root .proposta-a4-box.edp {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
}
#proposta-print-root .proposta-a4-box.coopere {
    position: relative;
    background: #f0fdf4;
    border-left: 4px solid #27ae60;
}
#proposta-print-root .proposta-a4-box h3 {
    font-size: 12pt;
    margin: 0 0 3mm;
}
#proposta-print-root .proposta-a4-box.edp h3 { color: #dc3545; }
#proposta-print-root .proposta-a4-box.coopere h3 { color: #27ae60; }
#proposta-print-root .proposta-a4-grid {
    display: table;
    width: 100%;
    margin-top: 4mm;
    border-collapse: collapse;
    font-size: 11pt;
}
#proposta-print-root .proposta-a4-grid-row {
    display: table-row;
}
#proposta-print-root .proposta-a4-grid-cell {
    display: table-cell;
    padding: 2.5mm 3mm;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: middle;
}
#proposta-print-root .proposta-a4-grid-cell.label {
    color: #666;
    width: 55%;
}
#proposta-print-root .proposta-a4-grid-cell.value.edp {
    color: #dc3545;
    font-weight: bold;
    text-align: right;
}
#proposta-print-root .proposta-a4-grid-cell.value.primary {
    color: #27ae60;
    font-weight: bold;
    text-align: right;
}
#proposta-print-root .proposta-a4-rodape {
    margin-top: 8mm;
    padding-top: 4mm;
    border-top: 1px solid #ddd;
    font-size: 10pt;
    color: #666;
    text-align: center;
}

/* Seção: Prazos de cadastro, início dos créditos e cancelamento (A4) */
#proposta-print-root .proposta-a4-prazos {
    margin-top: 6mm;
}
#proposta-print-root .proposta-a4-prazos-titulo {
    font-size: 13pt;
    font-weight: 900;
    color: #0d9488;
    margin-bottom: 4mm;
    padding-bottom: 2mm;
    border-bottom: 2px solid #0d9488;
}
#proposta-print-root .proposta-a4-prazos-card {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    border-radius: 2mm;
    padding: 3.5mm 4mm;
    margin-bottom: 3.5mm;
}
#proposta-print-root .proposta-a4-prazos-card--cancel {
    background: #ecfdf5;
    border-left-color: #047857;
}
#proposta-print-root .proposta-a4-prazos-card-tit {
    font-size: 11.5pt;
    font-weight: 800;
    color: #065f46;
    margin-bottom: 2.5mm;
}
#proposta-print-root .proposta-a4-prazos-txt {
    font-size: 10.5pt;
    color: #1f2937;
    line-height: 1.45;
    margin-bottom: 2mm;
}
#proposta-print-root .proposta-a4-prazos-obs {
    font-size: 9.5pt;
    color: #6b7280;
    line-height: 1.4;
}
#proposta-print-root .proposta-a4-prazos-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 2mm;
    margin-bottom: 2mm;
}
#proposta-print-root .proposta-a4-prazos-chips span {
    flex: 1 1 auto;
    background: #d1fae5;
    color: #065f46;
    font-size: 9.5pt;
    font-weight: 600;
    padding: 1.6mm 3mm;
    border-radius: 1.6mm;
    white-space: nowrap;
}
#proposta-print-root .proposta-a4-prazos-metrics {
    display: flex;
    gap: 3mm;
    margin-bottom: 2.5mm;
}
#proposta-print-root .proposta-a4-prazos-metric {
    flex: 1;
    text-align: center;
    background: #fff;
    border: 1px solid #a7f3d0;
    border-radius: 2mm;
    padding: 2.5mm 2mm;
}
#proposta-print-root .proposta-a4-prazos-metric .m-label {
    display: block;
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #059669;
    margin-bottom: 1mm;
}
#proposta-print-root .proposta-a4-prazos-metric .m-value {
    display: block;
    font-size: 17pt;
    font-weight: 900;
    color: #064e3b;
    line-height: 1;
}
#proposta-print-root .proposta-a4-prazos-metric--full {
    width: 100%;
    margin-bottom: 2.5mm;
}
#proposta-print-root .proposta-a4-prazos-metric--full .m-value {
    font-size: 24pt;
}
#proposta-print-root .proposta-a4-prazos-metric .m-sub {
    display: block;
    font-size: 9.5pt;
    font-weight: 600;
    color: #059669;
    margin-top: 1mm;
}
#proposta-print-root .proposta-a4-prazos-cancel-hero {
    font-size: 12.5pt;
    font-weight: 800;
    color: #064e3b;
    line-height: 1.3;
    margin-bottom: 2.5mm;
}
#proposta-print-root .proposta-a4-prazos-cancel-box {
    font-size: 10pt;
    font-weight: 600;
    color: #065f46;
    line-height: 1.45;
    background: #d1fae5;
    border-left: 3px solid #059669;
    border-radius: 0 2mm 2mm 0;
    padding: 2.5mm 3.5mm;
    margin-top: 2mm;
}
#proposta-print-root .proposta-a4-prazos-alerta {
    font-size: 9.5pt;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border-radius: 1.6mm;
    padding: 1.6mm 3mm;
    margin-top: 1mm;
}
#proposta-print-root .proposta-a4-prazos-bullets {
    margin: 0;
    padding-left: 5mm;
    list-style: none;
}
#proposta-print-root .proposta-a4-prazos-bullets li {
    position: relative;
    font-size: 10pt;
    color: #1f2937;
    line-height: 1.45;
    margin-bottom: 1.6mm;
    padding-left: 4mm;
}
#proposta-print-root .proposta-a4-prazos-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 900;
}
#proposta-print-root .proposta-a4-economia-banner {
    margin-top: 5mm;
    margin-bottom: 4mm;
    padding: 6mm 4mm;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 2mm;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.25;
}
#proposta-print-root .proposta-a4-econ-line1 {
    display: block;
    font-size: 17pt;
    margin-bottom: 2mm;
}
#proposta-print-root .proposta-a4-econ-line2 {
    display: block;
    font-size: 26pt;
    color: #111827;
}
#proposta-print-root .proposta-a4-econ-hint {
    display: block;
    margin-top: 2mm;
    font-size: 10pt;
    font-weight: 500;
    color: #111827;
    text-transform: none;
}
#proposta-print-root .proposal-info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    text-align: left;
    line-height: 1.15;
}
#proposta-print-root .proposal-info-label {
    font-size: 15px;
    color: #6b7280;
}
#proposta-print-root .proposal-info-value-main {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    color: #111827;
    white-space: nowrap;
    display: block;
    width: 100%;
}
#proposta-print-root .proposal-info-value-sub {
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    color: #111827;
    white-space: nowrap;
    display: block;
    width: 100%;
}
#proposta-print-root .proposal-info-unit {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
}
#proposta-print-root .proposal-info-mini-label {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}
#proposta-print-root .proposal-info-mini-value {
    font-size: 20px;
    font-weight: 700;
    color: #374151;
    line-height: 1.1;
    margin-bottom: 2px;
}
#proposta-print-root .proposal-info-mini-value-edp { color: #c62828; }
#proposta-print-root .proposal-info-mini-value-coopere { color: #2e7d32; }
#proposta-print-root .proposal-discount-badge {
    position: absolute;
    right: 8px;
    top: 4px;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    border-radius: 999px;
    padding: 16px 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    letter-spacing: 0.02em;
}

/* Pré-cadastro partilhado: Cadastro ou menu Proposta (slot em #view-cart) */
.precadastro-slot--cart {
    margin-top: 4px;
}
.precadastro-slot--cart > .card,
.precadastro-slot--cart #precadastro-flow-relocatable > .card {
    margin-bottom: 12px;
}

/* Cadastro (aba) — folha estilo Apple: eyebrow, título SF-like, grupo inset */
#view-precadastro .cadastro-apple-sheet {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border-radius: 16px;
    padding: 22px 18px 20px;
    margin-bottom: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    box-shadow:
        0 1px 1px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.06);
}
#view-precadastro .cadastro-apple-eyebrow {
    margin: 0 0 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
#view-precadastro .cadastro-apple-title {
    margin: 0 0 10px;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: #0f172a;
}
#view-precadastro .cadastro-apple-body {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #475569;
}
#view-precadastro .cadastro-apple-caption {
    margin: 0 0 18px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
}
/* Atalhos no texto — estilo hiperligação (iOS) */
#view-precadastro .cadastro-apple-inline-nav {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 600;
    color: #0369a1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#view-precadastro .cadastro-apple-inline-nav:active {
    opacity: 0.72;
}
#view-precadastro .cadastro-apple-cta {
    margin-top: 2px;
}
#view-precadastro .cadastro-apple-sheet .cadastro-apple-cta + .cadastro-apple-inset {
    margin-top: 20px;
}
#view-precadastro .cadastro-apple-inset {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
#view-precadastro .cadastro-apple-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    min-height: 58px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}
#view-precadastro .cadastro-apple-row:active {
    background: rgba(148, 163, 184, 0.14);
}
#view-precadastro .cadastro-apple-row__main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
#view-precadastro .cadastro-apple-row__title {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f172a;
}
#view-precadastro .cadastro-apple-row__detail {
    font-size: 0.8rem;
    line-height: 1.35;
    color: #64748b;
}
#view-precadastro .cadastro-apple-row__chev {
    flex-shrink: 0;
    font-size: 1.35rem;
    font-weight: 300;
    color: #c7c7cc;
    line-height: 1;
    margin-right: -2px;
}
#view-precadastro .cadastro-apple-row-sep {
    height: 1px;
    margin-left: 16px;
    background: rgba(148, 163, 184, 0.35);
}
/* Pré-cadastro — aba Cadastro */
.precadastro-flow-lead {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin: 0 0 14px;
    line-height: 1.45;
}
.precadastro-success-banner {
    margin: 0 0 20px;
    padding: 24px 20px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.precadastro-success-banner[hidden] {
    display: none;
}
.precadastro-success-icon {
    color: #059669;
    margin-bottom: 4px;
}
.precadastro-success-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #065f46;
    margin: 0;
}
.precadastro-success-msg {
    font-size: 0.86rem;
    line-height: 1.5;
    color: #047857;
    margin: 0;
}
.precadastro-success-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(5, 150, 105, 0.22);
    text-align: left;
    width: 100%;
    max-width: 360px;
}
.precadastro-success-contact {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    gap: 8px;
    align-items: center;
    min-width: 0;
}
.precadastro-success-contact__lab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #047857;
    opacity: 0.9;
    flex-shrink: 0;
}
.precadastro-success-contact__lab svg {
    display: block;
}
.precadastro-success-contact__val {
    font-size: 0.82rem;
    font-weight: 700;
    color: #065f46;
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.35;
    min-width: 0;
}
.precadastro-success-contact__val--email {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}
.precadastro-success-hint {
    margin: 0 0 4px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #047857;
    opacity: 0.9;
    max-width: 360px;
}
.precadastro-success-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 22px;
    border-radius: 50px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(5,150,105,0.35);
    transition: opacity .15s, transform .15s;
}
.precadastro-success-login-btn:active {
    opacity: .85;
    transform: scale(.97);
}
.pc-prosseguir-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cepSpin .7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
.pc-doc-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 18px 0 6px;
    color: var(--color-text);
}
.pc-doc-section-hint {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin: 0 0 12px;
    line-height: 1.4;
}
.pc-doc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pc-doc-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    font: inherit;
    color: inherit;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pc-doc-tile:active:not(:disabled) {
    transform: scale(0.99);
}
.pc-doc-tile:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.pc-doc-tile--static {
    cursor: default;
    background: #f8fafc;
}
.pc-doc-tile--warn {
    border-color: #fb923c;
    box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.35);
}
.pc-doc-tile--doc-ok {
    border-color: rgba(5, 150, 105, 0.55);
    box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.35);
    animation: none;
}
.pc-doc-tile__status {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
}
.pc-doc-tile--doc-ok .pc-doc-tile__status {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}
.pc-doc-tile--doc-missing .pc-doc-tile__status {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.pc-doc-tile__ico {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border-radius: 12px;
    background: #f1f5f9;
}
.pc-doc-tile__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pc-doc-tile__title {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--color-text);
}
.pc-doc-tile__meta {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    white-space: normal;
    word-break: break-word;
}
.pc-doc-tile__chev {
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-text-muted);
    opacity: 0.7;
}
.pc-doc-tile__action {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.82rem;
    color: #0d9488;
    text-decoration: none;
    padding: 6px 4px;
}
.pc-doc-tile__action:hover {
    text-decoration: underline;
}

/* thumbnail strip inside the titular tile */
.pc-doc-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding: 0 2px;
}
.pc-doc-thumbs:empty { display: none; }
.pc-doc-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(13,148,136,0.45);
    background: #e2e8f0;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}
.pc-doc-thumb--pdf {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    border: 2px solid rgba(13,148,136,0.45);
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.pc-prosseguir-btn {
    margin-top: 18px;
}
.pc-prosseguir-footnote {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    margin: 10px 0 0;
    line-height: 1.4;
    text-align: center;
}
.register-dup-hint {
    display: none;
    margin: 6px 0 0;
    padding: 0 2px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    color: #b45309;
}
.register-dup-hint.register-dup-hint--visible {
    display: block;
}
/* Botão compacto abaixo do aviso «e-mail/número já tem pré-cadastro» */
.register-dup-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    border-radius: 10px;
    border: 1px solid rgba(13, 148, 136, 0.45);
    background: rgba(240, 253, 250, 0.95);
    color: #0f766e;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.register-dup-login-btn:hover {
    background: #ccfbf1;
    border-color: #0d9488;
}
.register-dup-login-btn:active {
    transform: scale(0.98);
}
/* Banner de duplicata consolidado — aparece quando qualquer campo já existe na base */
.reg-dup-banner,
.reg-dup-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin: 0 0 14px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    box-shadow: 0 2px 8px rgba(251,191,36,0.12);
}
.reg-dup-banner__ico {
    flex-shrink: 0;
    color: #d97706;
    margin-top: 1px;
}
.reg-dup-banner__msg {
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #92400e;
}
.reg-dup-banner__btn {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    background: #f59e0b;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, transform 0.12s ease;
}
.reg-dup-banner__btn:hover { background: #d97706; }
.reg-dup-banner__btn:active { transform: scale(0.97); }
.reg-dup-block[hidden] { display: none; }
/* Card de duplicata — substitui o formulário inteiro */
.reg-dup-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 28px 20px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fcd34d;
    box-shadow: 0 4px 18px rgba(251,191,36,0.18);
    margin-bottom: 16px;
}
.reg-dup-block__icon {
    color: #d97706;
}
.reg-dup-block__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #78350f;
    margin: 0;
}
.reg-dup-block__msg {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #92400e;
    margin: 0;
}
.pc-logged-summary {
    display: grid;
    gap: 0.55rem;
    margin: 0.15rem 0 0.25rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid rgba(180, 83, 9, 0.18);
    text-align: left;
    width: 100%;
}
.pc-logged-summary__row {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
.pc-logged-summary__lab {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b45309;
}
.pc-logged-summary__val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #78350f;
    word-break: break-word;
}
.reg-dup-block__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(180,83,9,0.25);
    transition: opacity 0.15s ease, transform 0.12s ease;
}
.reg-dup-block__btn-primary:hover { opacity: 0.9; }
.reg-dup-block__btn-primary:active { transform: scale(0.98); }
.reg-dup-block__btn-secondary {
    background: none;
    border: none;
    color: #92400e;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 2px 0;
    opacity: 0.75;
    transition: opacity 0.15s;
}
.reg-dup-block__btn-secondary:hover { opacity: 1; }
/* Endereço completo montado (exibição por extenso abaixo dos campos) */
.reg-endereco-completo {
    margin: 6px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--color-surface-2, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    font-size: 0.82rem;
    color: var(--color-text-muted, #64748b);
    line-height: 1.4;
}
/* Após envio do pré-cadastro: CTA para Conta → Pré-Cadastro */
.precadastro-pos-envio-login-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 0 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid rgba(13, 148, 136, 0.5);
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.precadastro-pos-envio-login-btn:active {
    transform: scale(0.99);
}
.precadastro-pos-envio-consultor-actions {
    margin: 10px 0 8px;
    padding: 12px;
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 12px;
    background: #ffffff;
}
.precadastro-pos-envio-consultor-actions__title {
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text, #0f172a);
}
.precadastro-pos-envio-consultor-actions__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
#precadastro-form-root .register-dup-hint {
    margin-top: 4px;
}
#precadastro-form-root .field textarea {
    resize: vertical;
    min-height: 52px;
}
#precadastro-form-root #reg-endereco-consumo {
    min-height: 110px;
    line-height: 1.45;
    padding: 12px 14px;
    font-size: 0.95rem;
}
/* Campos obrigatórios em falta — pré-cadastro */
@keyframes fieldPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    50%       { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.22); }
}
@keyframes tilePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0), 0 1px 3px rgba(15,23,42,0.06); }
    50%       { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2), 0 1px 3px rgba(15,23,42,0.06); }
}
#precadastro-form-root .field.register-field--error label {
    color: #b91c1c;
}
#precadastro-form-root .field.register-field--error input,
#precadastro-form-root .field.register-field--error textarea {
    background: #fff5f5;
    border-color: #fca5a5;
    animation: fieldPulse 1.6s ease-in-out infinite;
}
#precadastro-form-root .field.register-field--error input:focus,
#precadastro-form-root .field.register-field--error textarea:focus {
    outline: 2px solid rgba(220, 38, 38, 0.35);
    outline-offset: 1px;
    animation: none;
}
/* pending = campo obrigatório vazio antes de submeter — vermelho suave pulsante */
#precadastro-form-root .field.register-field--pending label {
    color: #b91c1c;
}
#precadastro-form-root .field.register-field--pending input,
#precadastro-form-root .field.register-field--pending textarea {
    background: #fff5f5;
    border-color: #fca5a5;
    animation: fieldPendingPulse 2.4s ease-in-out infinite;
}
@keyframes fieldPendingPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    50%       { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18); }
}
/* doc tile missing pulsing border */
.pc-doc-tile--doc-missing {
    border-color: rgba(220, 38, 38, 0.38);
    animation: tilePulse 2s ease-in-out infinite;
}
.pc-doc-tile--doc-ok {
    animation: none;
}
.field { margin-bottom: 10px; }
.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}
.field input, .field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}
.field textarea { min-height: 52px; resize: vertical; }

/* Campos de endereço separados */
.endereco-fields { display: flex; flex-direction: column; gap: 6px; }
.endereco-row { display: flex; gap: 6px; }
.endereco-input {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    min-width: 0;
    background: var(--color-surface, #fff);
    color: inherit;
}
.endereco-input--wide  { flex: 3; }
.endereco-input--narrow{ flex: 1; }
.endereco-input--mid   { flex: 1; }
.endereco-input--uf    { flex: 0 0 56px; }
.endereco-input--cep   { flex: 1; min-width: 0; }
/* CEP: wrap relativo para spinner */
.endereco-cep-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}
.endereco-cep-wrap .endereco-input--cep {
    width: 100%;
    padding-right: 32px;
}
.endereco-cep-spinner {
    position: absolute;
    right: 10px;
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5e1;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: cepSpin 0.7s linear infinite;
    pointer-events: none;
}
@keyframes cepSpin {
    to { transform: rotate(360deg); }
}
/* CEP vazio — borda âmbar pulsante (aviso, não erro) */
.endereco-input--cep.cep-warn {
    background: #fffbeb;
    border-color: #fcd34d;
    animation: fieldPulseWarn 2s ease-in-out infinite;
}

/* Bottom nav + FAB — estilo barra iOS (vidro + separador fino) */
.bottom-nav--fab {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    min-height: calc(var(--bottom-nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: var(--apple-blur-thick);
    -webkit-backdrop-filter: var(--apple-blur-thick);
    border-top: 0.5px solid var(--apple-separator);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 8px 6px 10px;
    z-index: 110;
    box-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.55) inset,
        0 -12px 40px rgba(15, 23, 42, 0.06);
}

.nav-tab {
    flex: 1;
    max-width: 72px;
    border: none;
    background: transparent;
    padding: 6px 4px 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #8e8e93;
    position: relative;
    border-radius: 14px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}
.nav-tab:active {
    transform: scale(0.94);
}
.nav-tab-indicator {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 4px;
    border-radius: 4px;
    background: transparent;
    transition: background 0.2s ease;
}
.nav-tab.active {
    color: var(--color-solar-green);
    background: rgba(0, 140, 74, 0.1);
}
.nav-tab.active .nav-tab-indicator {
    background: linear-gradient(90deg, var(--color-solar-green-light), var(--color-solar-green));
}
.nav-tab-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.nav-tab-ico--emoji {
    font-size: 1.28rem;
    line-height: 1;
    margin-top: 0;
}
.nav-tab-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-align: center;
    line-height: 1.15;
    font-family: var(--font-sans);
}
.nav-tab.active .nav-tab-label {
    font-weight: 700;
}

.nav-fab-slot {
    flex: 0 0 auto;
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: calc(-1 * var(--fab-overhang));
    position: relative;
    z-index: 2;
}
.nav-fab {
    width: var(--fab-size);
    height: var(--fab-size);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.98);
    background: linear-gradient(160deg, #ffffff 0%, #ecfdf5 55%, #d1fae5 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 28px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(0, 140, 74, 0.18);
    color: var(--color-sky-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.nav-fab:active {
    transform: scale(0.94);
}
.nav-fab.active {
    color: var(--color-solar-green);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 12px 32px rgba(0, 140, 74, 0.28),
        0 0 0 3px rgba(255, 193, 7, 0.55);
}
.nav-fab-caption {
    font-size: 0.66rem;
    font-weight: 600;
    color: #8e8e93;
    margin-top: 4px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: -0.02em;
    font-family: var(--font-sans);
}
.nav-fab-slot--active .nav-fab-caption {
    color: var(--color-solar-green);
    font-weight: 700;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-sun) 0%, var(--color-sun-deep) 100%);
    color: #1a1a1a;
    font-size: 0.65rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
}
/* ── Carrinho vazio ──────────────────────────────── */
.cart-empty-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 4px 4px;
    gap: 0;
}
.cart-empty-icon {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 12px;
    filter: grayscale(0.2);
}
.cart-empty-title {
    margin: 0 0 10px;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.01em;
}
.cart-empty-msg {
    margin: 0 0 8px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--color-text);
}
.cart-empty-msg strong { color: var(--color-text); }
.cart-empty-hint {
    margin: 0 0 20px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    padding: 8px 12px;
    background: var(--color-surface-2, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}
.cart-empty-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}
.cart-empty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 10px;
    border-radius: 14px;
    border: none;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cart-empty-btn:active { transform: scale(0.97); }
.cart-empty-btn--primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245,158,11,0.38);
}
.cart-empty-btn--chat {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
/* ── ──────────────────────────────────────────────── */

.cart-badge[data-count="0"] {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

/* Chat — assistente (bottom sheet, referência Mercado Pago) */
.view-chat.active {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.chat-mode .view-chat.active {
    flex: 1 1 0;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}
.view-chat {
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.chat-assistant-scene {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.chat-assistant-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        165deg,
        #fef08a 0%,
        #fde047 28%,
        #a7f3d0 62%,
        #5eead4 100%
    );
    opacity: 0.95;
}
/* Chat em tela cheia (WhatsApp) — sem faixa colorida nem folha flutuante */
body.chat-mode .chat-assistant-backdrop {
    display: none;
}
.chat-assistant-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 70%);
    pointer-events: none;
}

.chat-shell--assistant {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}
body.chat-mode .chat-shell--assistant {
    flex: 1 1 0;
    min-height: 0;
    max-height: 100%;
    height: 100%;
    justify-content: stretch;
}

.chat-assistant-sheet {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: min(94dvh, 100%);
    width: 100%;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    animation: chatAssistantSheetUp 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
body.chat-mode .chat-assistant-sheet {
    flex: 1 1 0;
    height: 100%;
    max-height: 100% !important;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}
body.chat-mode .chat-assistant-grab {
    display: none;
}
@keyframes chatAssistantSheetUp {
    from {
        transform: translateY(12%);
        opacity: 0.92;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

.chat-assistant-grab {
    flex-shrink: 0;
    width: 40px;
    height: 4px;
    margin: 10px auto 4px;
    border-radius: 999px;
    background: #cbd5e1;
}

.chat-assistant-header {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 12px;
    background: #fff;
}
body.chat-mode .chat-assistant-header {
    padding-top: calc(6px + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid #e9edef;
}
.chat-assistant-header__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.chat-assistant-header__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.chat-assistant-header-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: #eef2ff;
    color: #3483fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.chat-assistant-header-btn .material-symbols-outlined {
    font-size: 22px;
}
.chat-assistant-header-btn:active {
    transform: scale(0.96);
    background: #e0e7ff;
}
.chat-assistant-header-btn:focus-visible {
    outline: 2px solid #3483fa;
    outline-offset: 2px;
}
.chat-assistant-header-btn--faq {
    width: auto;
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.chat-assistant-header-btn__faq-text {
    line-height: 1;
}

.chat-assistant-body {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-welcome-hero {
    flex-shrink: 0;
    padding: 8px 20px 4px;
}
.chat-welcome-hero.is-hidden {
    display: none;
}
.chat-welcome-hero__title {
    margin: 0;
    font-size: clamp(1.35rem, 5vw, 1.65rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #0f172a;
}
.chat-welcome-hero__sub {
    margin: 6px 0 0;
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #64748b;
}

.chat-quick-suggestions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px 12px;
}
.chat-quick-suggestions.is-hidden {
    display: none;
}
.chat-quick-suggestions .chat-quick-followup {
    margin-left: 0;
    max-width: none;
    width: 100%;
}

/* Modal FAQ (perguntas frequentes) */
.faq-modal-lead {
    font-size: 0.86rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin: 0 0 12px;
}
.faq-modal__sheet {
    max-height: min(92dvh, 720px);
    display: flex;
    flex-direction: column;
    padding-bottom: calc(12px + var(--safe-bottom));
}
.faq-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}
.faq-sec-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-solar-green-dark);
    margin: 18px 0 8px;
    padding-top: 4px;
    border-top: 1px solid var(--color-border);
}
.faq-modal-body .faq-sec-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Modal Termo de Adesão (pós-cadastro) */
.termo-adesao-modal__sheet {
    max-height: min(96dvh, 860px);
    display: flex;
    flex-direction: column;
    padding-bottom: calc(12px + var(--safe-bottom));
    gap: 0;
}
.termo-adesao-modal__head {
    flex-shrink: 0;
}
.termo-adesao-modal__dados {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--color-border, rgba(15, 23, 42, 0.08));
}
.termo-adesao-modal__dado {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 8px;
    align-items: baseline;
}
.termo-adesao-modal__dado-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.termo-adesao-modal__dado-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text, #0f172a);
    word-break: break-word;
}
.termo-adesao-modal__aviso {
    flex-shrink: 0;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.22);
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--color-text, #0f172a);
}
.termo-adesao-modal__body {
    flex: 1;
    min-height: 160px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 12px 0;
    margin-bottom: 8px;
    border-top: 1px solid var(--color-border, rgba(15, 23, 42, 0.08));
}
.termo-adesao-modal__loading {
    margin: 16px 0;
    font-size: 0.86rem;
    color: var(--color-text-muted);
}
.termo-adesao-modal__actions {
    flex-shrink: 0;
    padding-top: 4px;
}
.termo-adesao-modal__ok {
    width: 100%;
}
.termo-adesao-doc {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--color-text, #0f172a);
}
.termo-adesao-doc h2 {
    font-size: 1.05rem;
    margin: 14px 0 8px;
    text-align: center;
    color: var(--color-solar-green-dark, #166534);
}
.termo-adesao-doc h3 {
    font-size: 0.9rem;
    margin: 16px 0 6px;
    color: var(--color-solar-green-dark, #166534);
}
.termo-adesao-doc p {
    margin: 0 0 8px;
}
.termo-adesao-doc__cta {
    margin-top: 18px;
    padding: 14px 14px 12px;
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.07);
    border: 1px solid rgba(22, 163, 74, 0.2);
}
.termo-adesao-doc__cta-title {
    margin: 0 0 8px !important;
    font-size: 0.95rem !important;
    color: var(--color-solar-green-dark, #166534) !important;
}
.termo-adesao-doc__steps {
    margin: 6px 0 0;
    padding-left: 1.25rem;
}
.termo-adesao-doc__steps li {
    margin-bottom: 4px;
}
.termo-adesao-doc__assinafy {
    margin: 16px 0 4px;
    padding-top: 12px;
    border-top: 1px dashed rgba(22, 163, 74, 0.28);
    text-align: center;
}
.termo-adesao-doc__assinafy img {
    display: inline-block;
    height: 36px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}
.termo-adesao-doc__assinafy figcaption {
    margin-top: 8px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--color-text-muted);
}
.termo-adesao-doc__brand {
    margin: 0 0 2px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    color: var(--color-text, #0f172a);
}
.termo-adesao-doc__meta {
    margin: 0 0 8px;
    font-size: 0.72rem;
    text-align: center;
    color: var(--color-text-muted);
}
.termo-adesao-doc hr {
    border: none;
    border-top: 1px solid var(--color-border, rgba(15, 23, 42, 0.12));
    margin: 14px 0;
}

/* Progresso regressivo — Cadastrar e Continuar */
.pc-submit-progress {
    margin: 10px 0 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--color-border, rgba(15, 23, 42, 0.1));
}
.pc-submit-progress[hidden] {
    display: none !important;
}
.pc-submit-progress__label {
    margin: 0 0 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-text, #0f172a);
}
.pc-submit-progress__track {
    height: 8px;
    border-radius: 99px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
.pc-submit-progress__fill {
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    transition: width 0.35s linear;
}
.pc-submit-progress__eta {
    margin: 6px 0 0;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: right;
}
.chat-cadastro-progress {
    margin: 8px 0 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.chat-cadastro-progress .pc-submit-progress__label {
    font-size: 0.84rem;
}
.faq-details {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--color-border);
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-summary::after {
    content: "";
    float: right;
    width: 8px;
    height: 8px;
    margin-top: 5px;
    margin-left: 10px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
.faq-details[open] .faq-summary::after {
    transform: rotate(-135deg);
    margin-top: 8px;
}
.faq-answer {
    padding: 0 14px 12px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}
.faq-answer p {
    margin: 0 0 0.65em;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}

.chat-log--modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-log--modern.chat-log--wa {
    gap: 3px;
}

.chat-log--assistant,
.chat-log--wa {
    flex: 1 1 0;
    min-height: 0;
    max-height: none !important;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.chat-bubble {
    max-width: 82%;
    padding: 8px 10px 7px;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.42;
    animation: bubbleIn 0.25s ease;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}
@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: none; }
}
/* Linha do bot: avatar + bolha (WhatsApp) */
.chat-bubble-row--bot {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    align-self: flex-start;
    max-width: 100%;
}
.chat-bot-avatar {
    flex-shrink: 0;
    width: 36px;
    line-height: 0;
    margin-bottom: 2px;
}
.chat-bot-avatar-svg {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}
.chat-bubble-row--bot .chat-bubble.bot {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 44px);
    align-self: flex-start;
}

.chat-bubble.bot {
    align-self: flex-start;
    background: #f1f5f9;
    border: none;
    border-bottom-left-radius: 6px;
    box-shadow: none;
    color: #0f172a;
}
.chat-bubble.bot strong {
    font-weight: 700;
    color: #0f172a;
}

/* Progresso dinâmico — análise do PDF no chat */
.chat-bubble--pdf-progress {
    max-width: calc(100% - 44px);
    padding-bottom: 10px;
}
.chat-pdf-progress-label {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--color-text);
}
.chat-pdf-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
}
.chat-pdf-progress-track::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 100%
    );
    width: 40%;
    animation: chatPdfProgressShimmer 1.4s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
}
.chat-bubble--pdf-progress[aria-busy='true'] .chat-pdf-progress-track::after {
    opacity: 1;
}
@keyframes chatPdfProgressShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(350%);
    }
}
.chat-pdf-progress-fill {
    height: 100%;
    border-radius: 999px;
    width: 12%;
    background: linear-gradient(90deg, #0d9488 0%, #0369a1 55%, #008c4a 100%);
    background-size: 200% 100%;
    transition: width 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: 0 0 12px rgba(13, 148, 136, 0.35);
}
.chat-bubble--pdf-progress[aria-busy='true'] .chat-pdf-progress-fill {
    animation: chatPdfBarGlow 1.8s ease-in-out infinite;
}
@keyframes chatPdfBarGlow {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.08);
    }
}
.chat-pdf-progress-pct {
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    text-align: right;
}
.chat-bubble--pdf-progress--done .chat-pdf-progress-fill {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
    animation: none;
}
.chat-bubble--pdf-progress--done .chat-pdf-progress-track::after {
    opacity: 0;
    animation: none;
}
.chat-bubble--pdf-progress--done .chat-pdf-progress-label {
    color: #047857;
}

.chat-bubble--typing {
    font-style: normal;
    color: var(--color-text-muted) !important;
    animation: bubbleIn 0.25s ease;
    padding-bottom: 14px;
}
.chat-typing-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 1.35em;
}
.chat-typing-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.01em;
}
.chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 18px;
}
.chat-typing-dots > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-sky, #0369a1);
    opacity: 0.35;
    animation: chatTypingDot 1.05s ease-in-out infinite;
}
.chat-typing-dots > span:nth-child(2) {
    animation-delay: 0.16s;
}
.chat-typing-dots > span:nth-child(3) {
    animation-delay: 0.32s;
}
@keyframes chatTypingDot {
    0%,
    70%,
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    35% {
        transform: translateY(-5px);
        opacity: 1;
    }
}
.chat-bubble.bot .chat-bubble-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 4px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}
.chat-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #008c4a 0%, #0369a1 100%);
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 140, 74, 0.25);
}

/* Bolha do utilizador com hora + vistos (estilo WhatsApp) */
.chat-bubble.user.chat-bubble-user--wa {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 82%;
    padding: 6px 7px 5px 9px;
    background: #d9fdd3;
    color: #111b21;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}
.chat-bubble-user-body {
    font-size: 0.95rem;
    line-height: 1.42;
    padding-right: 2px;
    white-space: pre-wrap;
    word-break: break-word;
}
.chat-bubble-user-meta {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 1px;
    flex-shrink: 0;
    align-self: flex-end;
    margin-left: 28px;
}
.chat-bubble-user-time {
    font-size: 0.7rem;
    line-height: 1;
    color: rgba(17, 27, 33, 0.55);
    white-space: nowrap;
}
.chat-msg-status {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}
.chat-msg-ticks {
    display: inline-block;
    position: relative;
    font-size: 0.75rem;
    letter-spacing: -0.28em;
    color: rgba(17, 27, 33, 0.45);
}
.chat-msg-tick {
    display: inline-block;
}
.chat-msg-tick--dup {
    position: relative;
    margin-left: -0.02em;
}
.chat-msg-status--read .chat-msg-ticks {
    color: #53bdeb;
}
.chat-msg-status--failed .chat-msg-ticks {
    color: #e53935;
}

/* Respostas rápidas dentro do chat (lista vertical, estilo WhatsApp) */
.chat-quick-followup {
    align-self: flex-start;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: bubbleIn 0.22s ease;
}
.chat-quick-followup--inactive {
    opacity: 0.48;
    pointer-events: none;
    filter: grayscale(0.08);
}
.chat-quick-reply-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.chat-quick-picked {
    align-self: flex-start;
    max-width: 100%;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: rgba(148, 163, 184, 0.16);
    border: 1px dashed rgba(148, 163, 184, 0.55);
    line-height: 1.35;
}
.chat-quick-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.chat-quick-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.94rem;
    font-weight: 650;
    font-family: inherit;
    line-height: 1.35;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease, transform 0.1s ease;
}
.chat-quick-btn__ico {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
}
.chat-quick-btn__ico .material-symbols-outlined {
    font-size: 22px;
}
.chat-quick-btn:hover {
    background: #e2e8f0;
}
.chat-quick-btn:active {
    transform: scale(0.99);
}
.chat-quick-btn--multiline {
    white-space: normal;
}

.chat-composer--assistant,
.chat-composer--wa {
    flex-shrink: 0;
    position: relative;
    margin: 0;
    width: 100%;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #f1f5f9;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}

body.chat-mode .chat-composer--assistant,
body.chat-mode .chat-composer--wa {
    flex-shrink: 0;
    position: relative;
    z-index: 20;
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
}

body.chat-mode .chat-log--assistant,
body.chat-mode .chat-log--wa {
    padding-bottom: 12px;
}

.chat-composer-row--mp {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.chat-input-pill {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 4px 6px 4px 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.chat-pill-btn {
    flex-shrink: 0;
    width: 36px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.chat-pill-btn .material-symbols-outlined {
    font-size: 22px;
}
.chat-pill-btn:active {
    background: rgba(0, 0, 0, 0.05);
}
.chat-pill-btn--mic {
    opacity: 0.55;
}
.chat-input-pill .chat-text-input--textarea {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    max-height: 120px;
    padding: 10px 4px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
}
.chat-send-btn--mp {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #3483fa;
    color: #fff;
    box-shadow: 0 4px 14px rgba(52, 131, 250, 0.45);
}
.chat-send-btn--mp:active {
    transform: scale(0.94);
    background: #2968c8;
}
.chat-assistant-disclaimer {
    margin: 8px 4px 0;
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
    color: #94a3b8;
}

.chat-attach-popover {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 4px;
    z-index: 60;
    min-width: 232px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: var(--apple-blur-thick);
    -webkit-backdrop-filter: var(--apple-blur-thick);
    border-radius: 18px;
    border: 0.5px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 16px 48px rgba(15, 23, 42, 0.14),
        0 0 0 0.5px rgba(0, 0, 0, 0.04);
}
.chat-attach-popover[hidden] {
    display: none !important;
}

.chat-attach-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    border: none;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 0.18s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.chat-attach-option:hover,
.chat-attach-option:focus-visible {
    background: rgba(120, 120, 128, 0.1);
    outline: none;
}
.chat-attach-option:active {
    background: rgba(120, 120, 128, 0.16);
    transform: scale(0.99);
}
.chat-attach-option-ico {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #008c4a 0%, #0d9488 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-attach-option-text-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.chat-attach-option-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111b21;
}
.chat-attach-option-hint {
    font-size: 0.72rem;
    color: #667781;
}
.chat-attach-option--whatsapp {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.chat-attach-option-ico--wa {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
}

.chat-composer-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.chat-plus-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #54656f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.chat-plus-btn:active {
    transform: scale(0.94);
    background: rgba(0, 0, 0, 0.06);
}
.chat-plus-btn--open {
    background: rgba(0, 128, 105, 0.12);
    color: #008069;
}

.chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    background: #fff;
    border-radius: 24px;
    padding: 4px 4px 4px 12px;
    border: none;
    min-height: 42px;
    box-shadow: 0 1px 2px rgba(11, 20, 26, 0.08);
}
.chat-input-row--wa {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}
.chat-text-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    padding: 10px 0;
    min-width: 0;
}
.chat-text-input--textarea {
    display: block;
    resize: none;
    overflow-y: auto;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.35;
    padding-top: 11px;
    padding-bottom: 11px;
    -webkit-overflow-scrolling: touch;
}
.chat-text-input:focus { outline: none; }
.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #008069;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
    transition: background 0.15s ease, transform 0.12s ease;
}
.chat-send-btn:active {
    transform: scale(0.94);
    background: #006b57;
}

.whatsapp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 16px 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff !important;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}
.whatsapp-cta-ico {
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.chat-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
    max-width: 88%;
    align-self: flex-start;
}
.chat-actions .btn {
    border-radius: 14px;
    font-size: 0.95rem;
}

/* Resultado da análise (PDF enviado pelo chat) */
.chat-proposta-card {
    align-self: flex-start;
    margin-left: 44px;
    width: calc(100% - 44px);
    max-width: calc(100% - 44px);
    box-sizing: border-box;
    background: #fff;
    border: none;
    border-radius: 8px;
    border-bottom-left-radius: 4px;
    padding: 10px 12px 12px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    animation: bubbleIn 0.25s ease;
}
.chat-proposta-card-title {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.25;
    color: var(--color-solar-green-dark);
    font-weight: 700;
}
.chat-proposta-card-title--sub {
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 0.92rem;
}
.chat-economy-grid {
    gap: 8px;
}
.chat-economy-grid .economy-item {
    padding: 8px;
}
.chat-economy-grid .economy-item .label {
    font-size: 0.72rem;
}
.chat-economy-grid .economy-item .value {
    font-size: 0.95rem;
}
.chat-proposta-dados {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-proposta-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}
/* Obrigatório em falta — destaque vermelho claro */
.chat-proposta-field--pending {
    background: #fff5f5;
    border-color: #fecaca;
}
.chat-proposta-field--pending .chat-proposta-field-label {
    color: #b91c1c;
}
.chat-proposta-field--pending .chat-proposta-field-value {
    color: #991b1b;
    font-weight: 600;
    font-style: normal;
    padding: 6px 8px;
    margin: 2px -2px 0;
    border-radius: 8px;
    background: rgba(254, 202, 202, 0.45);
}
/* Opcional vazio — rosa muito suave */
.chat-proposta-field--optional-empty {
    background: #fef7f7;
    border-color: #fce7e7;
}
.chat-proposta-field--optional-empty .chat-proposta-field-value {
    color: #9f1239;
    font-weight: 500;
    padding: 4px 6px;
    margin-top: 2px;
    border-radius: 6px;
    background: rgba(254, 205, 211, 0.35);
}
.chat-proposta-field-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    font-weight: 600;
}
.chat-proposta-field-value {
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--color-text);
    word-break: break-word;
}
.chat-proposta-pdf-wrap {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #e2e8f0;
    min-height: 200px;
}
.chat-proposta-pdf-wrap embed {
    display: block;
    width: 100%;
    height: 240px;
    border: none;
}
.chat-proposta-pdf-missing {
    margin: 12px 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}
.chat-proposta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
.chat-proposta-actions .btn {
    border-radius: 14px;
    font-size: 0.92rem;
}

/* Modal cadastro / steps */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.modal-overlay.open {
    display: flex;
}
.modal-sheet {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: var(--apple-blur-thin);
    -webkit-backdrop-filter: var(--apple-blur-thin);
    width: 100%;
    max-width: 480px;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
    padding: 20px 18px calc(20px + var(--safe-bottom));
    overflow-y: auto;
    animation: sheetUp 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    border-top: 0.5px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.5) inset,
        0 -24px 60px rgba(15, 23, 42, 0.12);
}
@keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.modal-sheet h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    color: var(--color-solar-green-dark);
}
.step-indicator {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 14px;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: var(--apple-fill-tertiary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    color: #3c3c43;
    transition: background 0.2s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.modal-close:active {
    transform: scale(0.92);
    background: rgba(120, 120, 128, 0.24);
}
.modal-head {
    position: relative;
    padding-right: 44px;
    min-height: 40px;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}
.cart-line:last-child { border-bottom: none; }

/* Resumo «Seu pedido» (Proposta) */
.cart-pedido-resumo {
    padding: 4px 0 2px;
}
.cart-pedido-benef {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.cart-pedido-benef-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}
.cart-pedido-benef-nome {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
    line-height: 1.25;
}
.cart-pedido-proposta-sub {
    display: block;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    font-weight: 500;
}
.cart-pedido-dl {
    margin: 0;
    padding: 0;
}
.cart-pedido-dl-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}
.cart-pedido-dl-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.cart-pedido-dl dt {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}
.cart-pedido-dl dd {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: right;
    white-space: nowrap;
}
.cart-pedido-dd--money {
    color: var(--color-solar-green);
}

.cart-pedido-econ-empty {
    margin: 0 0 14px;
    padding: 12px 14px;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    background: rgba(120, 120, 128, 0.08);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    line-height: 1.4;
}

.cart-pedido-economia-wrap {
    margin-bottom: 16px;
}

.cart-pedido-economia-hero {
    background: linear-gradient(145deg, #0f766e 0%, #059669 42%, #047857 100%);
    color: #fff;
    border-radius: 16px;
    padding: 16px 18px 18px;
    margin-bottom: 12px;
    box-shadow:
        0 10px 28px rgba(4, 120, 87, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.cart-pedido-economia-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.22);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.cart-pedido-economia-eyebrow {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.92;
}
.cart-pedido-economia-mes {
    margin: 0 0 8px;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
.cart-pedido-economia-hint {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    opacity: 0.88;
}

.cart-pedido-bars-panel {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid rgba(5, 150, 105, 0.28);
    border-radius: 14px;
    padding: 12px 10px 14px;
}
.cart-pedido-bars-caption {
    margin: 0 0 12px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #065f46;
    letter-spacing: -0.01em;
}
.cart-pedido-bars-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
}
.cart-pedido-bar-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cart-pedido-bar-track {
    width: 100%;
    max-width: 72px;
    height: 112px;
    margin: 0 auto 8px;
    background: rgba(15, 118, 110, 0.12);
    border-radius: 10px 10px 6px 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid rgba(5, 150, 105, 0.15);
}
.cart-pedido-bar-fill {
    width: 100%;
    min-height: 0;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #34d399 0%, #059669 55%, #047857 100%);
    transition: height 0.4s ease;
    box-shadow: 0 -2px 12px rgba(4, 120, 87, 0.25) inset;
}
.cart-pedido-bar-val {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: #064e3b;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 4px;
    word-break: break-word;
}
@media (min-width: 380px) {
    .cart-pedido-bar-val {
        font-size: 0.78rem;
    }
}
.cart-pedido-bar-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f766e;
    opacity: 0.9;
}

.toast {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
    background: rgba(12, 74, 110, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: #fff;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-family: var(--font-sans);
    z-index: 9999;
    display: none;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2), 0 0 0 0.5px rgba(255, 255, 255, 0.12) inset;
}
.toast.show { display: block; }

body.chat-mode .toast {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.proposal-flow-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    top: max(18%, 96px);
    max-width: 420px;
    margin: 0 auto;
    padding: 18px 20px;
    background: linear-gradient(145deg, #0f766e 0%, #0369a1 100%);
    color: #fff;
    border-radius: 18px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.proposal-flow-banner.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* E-mail/WhatsApp já existentes — orientar login na área Conta */
.conta-existente-panel {
    margin: 12px 0 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(14, 116, 144, 0.14) 0%, rgba(4, 120, 87, 0.12) 100%);
    border: 1px solid rgba(4, 120, 87, 0.35);
}
.conta-existente-panel__text {
    margin: 0 0 12px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--color-text);
}
.conta-existente-panel__btn {
    margin-top: 4px;
}

.loading-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--color-sun), var(--color-solar-green));
    border-radius: 2px;
    margin-top: 8px;
    animation: pulse 1.2s ease-in-out infinite;
    display: none;
}
.loading-bar.show { display: block; }
@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.more-actions { display: flex; flex-direction: column; gap: 12px; }

/* ——— PWA: chip flutuante instalar (arrastável + fechar) ——— */
.pwa-install-banner {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    backdrop-filter: blur(12px);
    touch-action: none;
    user-select: none;
}

.pwa-install-banner--floating {
    position: fixed;
    z-index: 126;
    right: max(12px, env(safe-area-inset-right, 0px));
    /* Fallback: abaixo do WhatsApp flutuante (72px lift + ~78px altura) */
    bottom: calc(var(--bottom-nav-h) + var(--fab-overhang) + var(--safe-bottom) + 72px + 78px + 10px);
    left: auto;
    top: auto;
    width: max-content;
    max-width: min(300px, calc(100vw - 24px));
}
body.chat-mode .pwa-install-banner--floating {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 10px);
}
.pwa-install-banner--dragging {
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.28);
    opacity: 0.96;
}

.pwa-install-banner[hidden] {
    display: none !important;
}

.pwa-install-banner__drag {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 32px;
    min-height: 48px;
    padding: 0 6px;
    border: none;
    border-radius: 14px 0 0 14px;
    background: rgba(241, 245, 249, 0.9);
    cursor: grab;
    color: #64748b;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}
.pwa-install-banner__drag:active {
    cursor: grabbing;
}
.pwa-install-banner__drag-grip {
    display: block;
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: repeating-linear-gradient(
        to bottom,
        #94a3b8 0,
        #94a3b8 3px,
        transparent 3px,
        transparent 6px
    );
}

.pwa-install-banner__close {
    position: absolute;
    top: -9px;
    right: -9px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.pwa-install-banner__ico {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06) inset;
}
.pwa-install-banner__label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: left;
}
.pwa-install-banner__btn {
    flex: 1 1 auto;
    min-width: 0;
    touch-action: manipulation;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 10px 8px 6px;
    font-size: 0.78rem;
    border-radius: 0 12px 12px 0;
    white-space: normal;
    text-align: left;
    line-height: 1.2;
    min-height: 48px;
}

/* Conta — botões estilo Apple (SF / iOS) + CTA roxo «Beneficiário ativo» */
.conta-login-actions.conta-login-actions--apple {
    gap: 14px;
}
.conta-panel-actions.conta-panel-actions--apple {
    gap: 12px;
}
.btn-conta-apple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.015em;
    line-height: 1.2;
    min-height: 50px;
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 4px 12px rgba(15, 23, 42, 0.08);
}
.btn-conta-apple:active {
    transform: scale(0.97);
}
.btn-conta-apple:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    transform: none;
    filter: none;
    animation: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn-conta-apple--primary {
    background: linear-gradient(180deg, #34d399 0%, #16a34a 100%);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 4px 16px rgba(22, 163, 74, 0.38);
}
.btn-conta-apple--primary:active {
    filter: brightness(0.96);
}
/* Obter código — sem dados: cinza; com e-mail ou WhatsApp: verde (primary, :enabled) */
#conta-be-acessar.btn-conta-apple--primary:disabled {
    opacity: 1;
    cursor: not-allowed;
    transform: none;
    filter: none;
    animation: none;
    color: #64748b;
    background: linear-gradient(180deg, #e8eef4 0%, #cbd5e1 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 1px 3px rgba(15, 23, 42, 0.08);
}
.btn-conta-apple--muted {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}
.btn-conta-apple--muted:active {
    background: #e2e8f0;
}

.btn-conta-apple--portal-entry {
    font-weight: 650;
    border: 1px solid rgba(52, 131, 250, 0.32);
    background: linear-gradient(180deg, #f0f9ff 0%, #eff6ff 100%);
    color: #1e3a5f;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 14px rgba(52, 131, 250, 0.12);
}

.btn-conta-apple--portal-entry:active {
    background: linear-gradient(180deg, #e0f2fe 0%, #dbeafe 100%);
}

.btn-conta-apple--purple-cta {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 42%, #5b21b6 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 6px 22px rgba(109, 40, 217, 0.48),
        0 2px 10px rgba(91, 33, 182, 0.28);
    animation: contaBeneficiarioCtaPulse 2.6s ease-in-out infinite;
}
.btn-conta-apple--purple-cta:hover {
    filter: brightness(1.06);
}
@keyframes contaBeneficiarioCtaPulse {
    0%,
    100% {
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.22) inset,
            0 6px 22px rgba(109, 40, 217, 0.48),
            0 2px 10px rgba(91, 33, 182, 0.28);
    }
    50% {
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.28) inset,
            0 10px 32px rgba(139, 92, 246, 0.55),
            0 4px 14px rgba(91, 33, 182, 0.35);
    }
}
@media (prefers-reduced-motion: reduce) {
    .btn-conta-apple--purple-cta {
        animation: none;
    }
}

/* Portal SISGDSOLAR embutido (Beneficiário ativo) */
.sisgd-portal-embed {
    position: fixed;
    inset: 0;
    z-index: 320;
    display: flex;
    flex-direction: column;
    background: #0b1220;
}
.sisgd-portal-embed[hidden] {
    display: none !important;
}
.sisgd-portal-embed__bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}
.sisgd-portal-embed__back,
.sisgd-portal-embed__ext {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.sisgd-portal-embed__back:active,
.sisgd-portal-embed__ext:active {
    background: rgba(255, 255, 255, 0.16);
}
.sisgd-portal-embed__titles {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sisgd-portal-embed__titles strong {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sisgd-portal-embed__sub {
    font-size: 0.72rem;
    opacity: 0.72;
}
.sisgd-portal-embed__loading {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    z-index: 1;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.86rem;
    pointer-events: none;
}
.sisgd-portal-embed__loading[hidden] {
    display: none !important;
}
.sisgd-portal-embed__frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
    min-height: 0;
}
body.sisgd-portal-embed-open {
    overflow: hidden;
}
body.sisgd-portal-embed-open #app-whatsapp-float {
    display: none !important;
}
body.assinafy-sign-embed-open {
    overflow: hidden;
}
body.assinafy-sign-embed-open #app-whatsapp-float {
    display: none !important;
}

.assinafy-sign-guide {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 1.2rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(165deg, #0f172a 0%, #064e3b 55%, #0f766e 100%);
    color: #ecfdf5;
}
.assinafy-sign-guide .assinafy-sign-guide__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.55rem;
}
.assinafy-sign-embed__frame[hidden] {
    display: none !important;
}
.assinafy-sign-guide__kicker {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(254, 249, 195, 0.88);
}
.assinafy-sign-guide__title {
    margin: 0 0 0.65rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.25;
}
.assinafy-sign-guide__txt {
    margin: 0 0 0.85rem;
    font-size: 0.94rem;
    line-height: 1.45;
    color: rgba(236, 253, 245, 0.9);
}
.assinafy-sign-guide__email-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin: 0 0 1.1rem;
}
.assinafy-sign-guide__email {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fef9c3;
    font-size: 0.88rem;
    font-weight: 700;
    word-break: break-all;
    line-height: 1.35;
}
.assinafy-sign-guide__copy {
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    padding: 0 0.95rem;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
}
.assinafy-sign-guide__copy.is-copied {
    background: #16a34a;
}
.assinafy-sign-guide__steps {
    margin: 0 0 1.25rem;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(236, 253, 245, 0.9);
}
.assinafy-sign-guide__steps li {
    margin: 0 0 0.45rem;
}
.assinafy-sign-guide__cta {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #fef08a, #fde047 45%, #facc15);
    color: #14532d;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.assinafy-sign-guide__secondary {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
    font-weight: 750;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: #ecfdf5;
}
.assinafy-sign-guide__note {
    margin: 1rem 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(236, 253, 245, 0.7);
}
.assinafy-sign-embed__frame[hidden] {
    display: none !important;
}

.conta-coopere-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 253, 244, 0.5) 100%);
    border: 1px solid rgba(0, 140, 74, 0.12);
}
.conta-coopere-logo {
    width: min(160px, 42vw);
    height: auto;
    object-fit: contain;
    display: block;
}
.conta-login-card .card-title {
    margin-bottom: 12px;
}
.conta-login-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.conta-panel-hint {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin: 0 0 14px;
}
.conta-be-sisgd-alt {
    margin-top: 16px;
    margin-bottom: 0;
    text-align: center;
}
.conta-text-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-primary, #0d9488);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.conta-text-link:active {
    opacity: 0.75;
}
#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina .conta-be-sisgd-alt {
    display: none;
}
.conta-panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}
.conta-panel-btn-half {
    width: 100%;
    margin: 0;
}
.conta-panel .field {
    margin-bottom: 12px;
}
.conta-panel .field:last-of-type {
    margin-bottom: 0;
}

/* Beneficiário ativo — overlay «energia» enquanto pede o código */
#conta-panel-beneficiario {
    position: relative;
}
.conta-be-waiting {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: linear-gradient(165deg, rgba(255, 251, 235, 0.94) 0%, rgba(236, 253, 245, 0.92) 45%, rgba(224, 242, 254, 0.9) 100%);
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    border-radius: var(--radius, 12px);
}
.conta-be-waiting[hidden] {
    display: none !important;
}
.conta-be-waiting__card {
    width: 100%;
    max-width: 300px;
    text-align: center;
}
.conta-be-waiting__ring {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: conic-gradient(from 200deg, rgba(250, 204, 21, 0.15), rgba(34, 197, 94, 0.35), rgba(56, 189, 248, 0.3), rgba(250, 204, 21, 0.15));
    animation: contaBeRingSpin 2.8s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 1px rgba(250, 204, 21, 0.35),
        0 8px 28px rgba(234, 179, 8, 0.2);
}
@keyframes contaBeRingSpin {
    to { transform: rotate(360deg); }
}
.conta-be-waiting__bolt {
    display: flex;
    filter: drop-shadow(0 2px 6px rgba(234, 179, 8, 0.45));
    animation: contaBeBoltPulse 0.9s ease-in-out infinite;
}
@keyframes contaBeBoltPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.92; }
}
@media (prefers-reduced-motion: reduce) {
    .conta-be-waiting__ring {
        animation: none;
    }
    .conta-be-waiting__bolt {
        animation: none;
    }
}
.conta-be-waiting__head {
    margin: 0 0 8px;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f766e;
    line-height: 1.35;
}
.conta-be-waiting__sub {
    margin: 0 0 16px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}
.conta-be-waiting__track {
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.25);
}
.conta-be-waiting__fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #eab308 55%, #38bdf8);
    background-size: 200% 100%;
    animation: contaBeFillShine 1.4s ease infinite;
    transition: width 0.35s ease-out;
}
@keyframes contaBeFillShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.conta-be-waiting__pct {
    margin: 10px 0 0;
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #15803d;
    letter-spacing: 0.02em;
}

/* Pré-Cadastro (Conta) — confirmação estilo iOS após lookup */
#conta-panel-precadastro {
    position: relative;
}
.conta-pc-success {
    position: absolute;
    inset: 0;
    z-index: 24;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}
.conta-pc-success[hidden] {
    display: none !important;
}
.conta-pc-success__backdrop {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.conta-pc-success__sheet {
    position: relative;
    width: 100%;
    max-width: 300px;
    padding: 28px 22px 22px;
    border-radius: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 24px 48px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(226, 232, 240, 0.95);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    animation: contaPcSuccessIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes contaPcSuccessIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.conta-pc-success__icon {
    margin: 0 auto 14px;
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 6px 14px rgba(5, 150, 105, 0.35));
}
.conta-pc-success__title {
    margin: 0 0 8px;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0f172a;
}
.conta-pc-success__desc {
    margin: 0 0 22px;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: #64748b;
}
@media (prefers-reduced-motion: reduce) {
    .conta-pc-success__sheet {
        animation: none;
    }
}

/* Pré-Cadastro — portal (UX tipo app, após login) */
#conta-panel-precadastro:has(#conta-pc-step-portal:not([hidden])) {
    display: block;
    max-height: none;
    min-height: 0;
}

.pc-portal {
    --pc-hero: #ffffff;
    --pc-card: #ffffff;
    --pc-border: rgba(15, 23, 42, 0.08);
    --pc-text: #0f172a;
    --pc-muted: #64748b;
    --pc-accent: #0d9488;
    --pc-danger: #dc2626;
    --pc-grouped-bg: #ebedf0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    border-radius: 20px;
    overflow: visible;
    background: var(--pc-grouped-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.pc-portal__inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
}
.pc-portal__scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 12px calc(20px + var(--bottom-nav-h) + var(--safe-bottom));
}
.pc-portal__hero {
    margin: 8px 0 0;
    padding: 0 12px 4px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.pc-portal__hero-economy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}
.pc-portal-hero-head-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin-bottom: 4px;
}
.pc-portal-hero-solar-ico {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}
.pc-portal-hero-status-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pc-portal-hero-status-col .pc-portal-bill-card {
    width: 100%;
}
.pc-portal-stepper-wrap {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
}
.pc-portal-status-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 14px 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.pc-portal-status-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.pc-portal-status-card__heading {
    flex: 1;
    min-width: 0;
}
.pc-portal-status-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}
.pc-portal-status-card__progress {
    margin: 4px 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
}
.pc-portal-status-card__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    white-space: nowrap;
}
.pc-portal-status-card__where {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff7ed;
    color: #7c2d12;
    font-size: 0.88rem;
    line-height: 1.4;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.pc-portal-status-card__where strong {
    font-weight: 800;
}
.pc-portal-status-card__where-ico {
    font-size: 18px !important;
    margin-top: 1px;
    flex-shrink: 0;
}
.pc-portal-next-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.pc-portal-next-card__eyebrow {
    margin: 0 0 4px;
    font-size: 0.77rem;
    font-weight: 700;
    color: #6b7280;
}
.pc-portal-next-card__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 800;
    color: #111827;
}
.pc-portal-next-card__txt {
    margin: 0 0 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #475569;
}
.pc-portal-next-card__btn {
    width: 100%;
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #0f9f8f, #10b981);
    color: #fff;
    font: inherit;
    font-size: 0.93rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pc-portal-next-card__btn-ico {
    font-size: 18px !important;
}
.pc-portal-assinatura-slot {
    margin: 4px 0 4px;
    padding: 0 4px;
}
.pc-assinatura {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 20px;
    padding: 1.15rem 1.2rem 1.25rem;
    background: linear-gradient(125deg, #064e3b 0%, #0f766e 45%, #0e7490 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ecfdf5;
    box-shadow: 0 14px 36px rgba(2, 18, 22, 0.18);
}
.pc-assinatura::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 92% 10%, rgba(253, 224, 71, 0.38), transparent 34%),
        repeating-linear-gradient(-18deg, transparent 0, transparent 11px, rgba(255,255,255,0.035) 11px, rgba(255,255,255,0.035) 12px);
}
.pc-assinatura > * { position: relative; z-index: 1; }
.pc-assinatura--pend {
    background: linear-gradient(125deg, #7f1d1d 0%, #b91c1c 42%, #0f766e 100%);
}
.pc-assinatura--partial {
    background: linear-gradient(125deg, #92400e 0%, #b45309 42%, #0f766e 100%);
}
.pc-assinatura--ok {
    background: linear-gradient(125deg, #14532d 0%, #15803d 48%, #0f766e 100%);
}
.pc-assinatura__kicker {
    margin: 0 0 0.55rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(254, 249, 195, 0.9);
}
.pc-assinatura__head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
}
.pc-assinatura__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fef9c3;
}
.pc-assinatura__icon-mi { font-size: 24px !important; }
.pc-assinatura__titles {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}
.pc-assinatura__title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
}
.pc-assinatura__title-ico { font-size: 1.2rem !important; }
.pc-assinatura__pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}
@media (max-width: 640px) {
    .pc-assinatura__pill {
        font-size: 0.78rem;
        padding: 0.42rem 0.8rem;
        border-radius: 12px;
    }
}
.pc-assinatura__pill--pend {
    background: #dc2626;
    color: #fff;
}
.pc-assinatura__pill--partial {
    background: #d97706;
    color: #fff;
}
.pc-assinatura__pill--ok {
    background: #15803d;
    color: #fff;
}
.pc-assinatura__txt {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(236, 253, 245, 0.9);
}
.pc-assinatura__email {
    margin: 0 0 0.9rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.pc-assinatura__email-label {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(254, 249, 195, 0.92);
}
.pc-assinatura__email-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pc-assinatura__email-value {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    word-break: break-all;
}
.pc-assinatura__copy {
    flex: 0 0 auto;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}
.pc-assinatura__copy.is-copied {
    background: #16a34a;
    border-color: rgba(255, 255, 255, 0.35);
}
.pc-assinatura__email-hint {
    margin: 0.5rem 0 0;
    font-size: 0.76rem;
    line-height: 1.35;
    color: rgba(236, 253, 245, 0.78);
}
.pc-assinatura__meta {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(236, 253, 245, 0.72);
}
.pc-assinatura__hint {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    line-height: 1.4;
    color: rgba(254, 249, 195, 0.88);
}
.pc-assinatura__actions {
    margin-top: 0.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pc-assinatura__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.98rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.pc-assinatura__btn--primary {
    background: linear-gradient(135deg, #fef08a, #fde047 45%, #facc15);
    color: #14532d;
}
.pc-assinatura--ok .pc-assinatura__btn--primary {
    background: #fff;
    color: #14532d;
}
.pc-assinatura__btn-ico { font-size: 1.15rem !important; }

/* Quando o termo está pendente, dados/docs ficam secundários visualmente */
.pc-portal--focus-termo #pc-portal-section-dados,
.pc-portal--focus-termo #pc-portal-section-docs,
.pc-portal--focus-termo #pc-portal-section-plano {
    opacity: 0.92;
}
.pc-portal--focus-termo .pc-portal__section-head {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 0.85rem;
    margin-top: 0.35rem;
}
.pc-portal__section-head {
    margin: 0 0 0.65rem;
}
.pc-portal__section-lead {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #64748b;
}
.pc-portal__doc-lead { display: none; }
.pc-portal-stepper__lead {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.pc-portal-stepper__hint {
    margin: 0 0 14px;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #64748b;
    font-weight: 500;
}
.pc-portal-stepper__track {
    position: relative;
    height: 2px;
    margin: 0 13% 0;
    border-radius: 2px;
    background: #d1d5db;
    z-index: 0;
}
.pc-portal-stepper__track::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--pc-step-fill, 0%);
    max-width: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    transition: width 0.35s ease;
}
.pc-portal-stepper {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: -14px 0 0;
    padding: 0;
    position: relative;
    z-index: 1;
    gap: 4px;
}
.pc-portal-stepper__step {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2px;
    list-style: none;
}
.pc-portal-stepper__step-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 4px 2px 3px;
    border: none;
    border-radius: 12px;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.pc-portal-stepper__step-btn:hover {
    background: rgba(251, 191, 36, 0.12);
}
.pc-portal-stepper__step-btn:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}
.pc-portal-stepper__step-btn:active {
    background: rgba(251, 191, 36, 0.2);
}
.pc-portal-stepper__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-sizing: border-box;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.pc-portal-stepper__circle--done {
    background: linear-gradient(145deg, #0ea5a4, #14b8a6);
    border: 2px solid #0f766e;
    color: #ecfeff;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.28);
}
.pc-portal-stepper__circle--current {
    background: #fff7ed;
    border: 2px solid #f59e0b;
    color: #b45309;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}
.pc-portal-stepper__circle--todo {
    background: #fff;
    border: 2px solid #cbd5e1;
    color: #94a3b8;
}
.pc-portal-stepper__ico {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}
.pc-portal-stepper__ico--todo {
    font-size: 26px !important;
}
.pc-portal-stepper__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    min-width: 0;
}
.pc-portal-stepper__title {
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #374151;
    line-height: 1.22;
}
.pc-portal-stepper__sub {
    font-size: 0.66rem;
    line-height: 1.35;
    color: #64748b;
    font-weight: 500;
}
.pc-portal-stepper__step[aria-current='step'] .pc-portal-stepper__title {
    color: #111827;
    font-weight: 800;
}

/* Telefone: timeline vertical — 4 colunas espremidas quebravam os títulos */
@media (max-width: 640px) {
    .home-logged-dash__status .pc-portal-hero-status-col,
    .pc-portal-hero-status-col {
        gap: 14px;
    }
    .pc-portal-status-card {
        padding: 16px 14px 14px;
        border-radius: 18px;
    }
    .pc-portal-status-card__top {
        gap: 12px;
    }
    .pc-portal-status-card__title {
        font-size: 1.12rem;
        letter-spacing: -0.02em;
    }
    .pc-portal-status-card__progress {
        font-size: 0.84rem;
        margin-top: 5px;
    }
    .pc-portal-status-card__pill {
        font-size: 0.76rem;
        padding: 6px 11px;
        margin-top: 2px;
    }
    .pc-portal-status-card__where {
        margin-top: 14px;
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: 14px;
        gap: 10px;
    }
    .pc-portal-status-card__where-ico {
        font-size: 20px !important;
    }
    .pc-portal-stepper-wrap {
        padding: 14px 0 2px;
    }
    .pc-portal-stepper__track {
        display: none;
    }
    .pc-portal-stepper {
        flex-direction: column;
        margin: 0;
        gap: 0;
    }
    .pc-portal-stepper__step {
        position: relative;
        flex: none;
        width: 100%;
        align-items: stretch;
        text-align: left;
        padding: 0;
    }
    .pc-portal-stepper__step:not(:last-child)::before {
        content: "";
        position: absolute;
        left: 25px;
        top: 48px;
        bottom: 0;
        width: 2px;
        background: #e5e7eb;
        z-index: 0;
        pointer-events: none;
    }
    .pc-portal-stepper__step:has(.pc-portal-stepper__circle--done):not(:last-child)::before {
        background: linear-gradient(180deg, #0ea5a4, #5eead4);
    }
    .pc-portal-stepper__step:has(.pc-portal-stepper__circle--current):not(:last-child)::before {
        background: linear-gradient(180deg, #f59e0b, #fde68a);
    }
    .pc-portal-stepper__step-btn {
        position: relative;
        z-index: 1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 12px;
        padding: 10px 8px;
        border-radius: 14px;
        min-height: 52px;
    }
    .pc-portal-stepper__circle {
        width: 36px;
        height: 36px;
        margin-bottom: 0;
    }
    .pc-portal-stepper__text {
        flex: 1;
        min-width: 0;
        align-items: flex-start;
    }
    .pc-portal-stepper__title {
        font-size: 0.95rem;
        line-height: 1.3;
        font-weight: 700;
    }
    .pc-portal-stepper__step[aria-current='step'] .pc-portal-stepper__step-btn {
        background: rgba(251, 191, 36, 0.14);
        box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28);
    }
    .pc-portal-stepper__step[aria-current='step'] .pc-portal-stepper__title {
        font-size: 1rem;
    }
    .pc-portal-next-card {
        padding: 16px 14px;
        border-radius: 18px;
    }
    .pc-portal-next-card__title {
        font-size: 1.1rem;
    }
    .pc-portal-next-card__txt {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
}

/* Flutuante: explicação de cada etapa do status (portal pré-cadastro) */
.pc-portal-step-info-popover {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}
.pc-portal-step-info-popover[hidden] {
    display: none !important;
}
.pc-portal-step-info-popover__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
}
.pc-portal-step-info-popover__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 340px;
    padding: 20px 44px 20px 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
    border: 1px solid #e2e8f0;
    text-align: left;
}
.pc-portal-step-info-popover__x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pc-portal-step-info-popover__x:hover {
    background: #e2e8f0;
}
.pc-portal-step-info-popover__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.pc-portal-step-info-popover__body {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
    font-weight: 500;
    white-space: pre-line;
}
.pc-portal-step-info-popover__cta-wrap {
    margin-top: 14px;
}
.pc-portal-step-info-popover__cta-btn {
    appearance: none;
    border: none;
    border-radius: 10px;
    background: #0d9488;
    color: #fff;
    padding: 10px 14px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
}
.pc-how-it-works-popover {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    box-sizing: border-box;
}
.pc-how-it-works-popover[hidden] {
    display: none !important;
}
.pc-how-it-works-popover__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(2, 6, 23, 0.6);
}
.pc-how-it-works-popover__panel {
    position: relative;
    z-index: 1;
    width: min(94vw, 560px);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.35);
}
.pc-how-it-works-popover__x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.pc-how-it-works-popover__title {
    margin: 0;
    padding: 12px 14px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}
.pc-how-it-works-popover__img {
    display: block;
    width: 100%;
    height: auto;
}

/* Economia (visitante): painel com cartões sticky empilhados ao scroll */
.economia-promo {
    --economia-card-stick-base: 10px;
    --economia-card-stick-step: 20px;
    --economia-card-radius: 20px;
    --economia-stack-gap: 20px;
    --economia-stack-cover-translate: 0.4;
    --economia-stack-scale-min: 0.97;
    position: absolute;
    top: calc(var(--app-header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
    z-index: 90;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    pointer-events: none;
    overflow: hidden;
}
.economia-promo:not([hidden]) {
    pointer-events: auto;
}
.economia-promo[hidden] {
    display: none !important;
}
.economia-promo__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
}
.economia-promo__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    margin: 0;
    background: #f3f4f6;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
    overflow: clip; /* clip não afecta position:sticky como hidden faz */
}
.economia-promo__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    background: linear-gradient(135deg, rgba(0, 140, 74, 0.98) 0%, rgba(3, 105, 161, 0.65) 45%, rgba(255, 193, 7, 0.32) 100%);
}
.economia-promo__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}
.economia-promo__simular-btn {
    flex-shrink: 0;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}
.economia-promo__simular-btn:active {
    background: rgba(255, 255, 255, 0.35);
}
.economia-promo__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.economia-promo__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-padding-top: var(--economia-card-stick-base);
}
.economia-promo__stack {
    padding: 8px 14px 0;
    /* espaço extra no fundo para o último card poder "entrar" */
    padding-bottom: 40px;
}
.economia-promo__card {
    /* scroll normal — sem sticky. O card seguinte aparece logo abaixo. */
    position: relative;
    z-index: calc(10 + var(--card-i, 0));
    margin: 0 0 12px;
    border-radius: var(--economia-card-radius);
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.12);
    transform-origin: center top;
    --cover: 0;
    transform:
        translateY(calc(var(--economia-stack-gap) * var(--cover) * var(--economia-stack-cover-translate)))
        scale(calc(1 - (1 - var(--economia-stack-scale-min)) * var(--cover)));
    will-change: transform;
    transition: transform 0.05s linear;
}
.economia-promo__card img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
    user-select: none;
    -webkit-user-drag: none;
}
.economia-promo__scroll-end {
    height: 40px;
    flex-shrink: 0;
}

.pc-portal-hero-head-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2px;
}
.pc-portal-bill-card {
    border: 1px solid #0f172a;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.pc-portal-bill-card__tab {
    background: #5ad4e8;
    color: #0f172a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 10px;
    border-bottom: 1px solid #0f172a;
}
.pc-portal-bill-card__body {
    padding: 14px 12px 16px;
    text-align: center;
    background: #fff;
}
.pc-portal-bill-card__value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.25;
    word-break: break-word;
}
.pc-portal-bill-card--uc .pc-portal-bill-card__value {
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}
.pc-portal-econ-wrap {
    margin-bottom: 0 !important;
}
.pc-portal-econ-solar-head {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 12px;
    padding: 8px 0 4px;
}
.pc-portal-econ-solar-head__img {
    width: 88px;
    height: 88px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.pc-portal-econ-missing__solar {
    display: block;
    width: 88px;
    height: 88px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 14px;
}
.pc-portal-econ-dl {
    margin-top: 4px;
}
.pc-portal-econ-missing {
    background: var(--pc-card);
    border: 1px solid var(--pc-border);
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.pc-portal-econ-missing__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--pc-text);
}
.pc-portal-econ-missing__txt {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--pc-muted);
}
.pc-portal__statusline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 4px 2px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}
.pc-portal__statusline-ico {
    font-size: 18px !important;
    color: #0d9488;
}
.pc-portal__avatar {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: #fff;
    background: linear-gradient(135deg, #0d9488, #6366f1);
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.35);
}
.pc-portal__hero-text {
    flex: 1;
    min-width: 0;
}
.pc-portal__eyebrow {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pc-muted);
}
.pc-portal__headline {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--pc-text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}
.pc-portal__hero-line {
    margin: 0 0 4px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pc-portal__hero-line:last-of-type {
    margin-bottom: 10px;
}
.pc-portal__hero-line--muted {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--pc-muted);
}
.pc-portal__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pc-portal__chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f766e;
}
.pc-portal__chip--muted {
    color: #64748b;
    font-weight: 600;
}
.pc-portal__section {
    padding: 10px 12px 0;
}
.pc-portal-uc-selector-wrap[hidden] {
    display: none !important;
}
.pc-portal-uc-selector-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--pc-border, #e2e8f0);
    border-radius: 12px;
    background: var(--pc-card, #f8fafc);
}
.pc-portal-uc-selector__lab {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
}
.pc-portal-instalacao-select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid var(--pc-border, #e2e8f0);
    background: #fff;
    color: inherit;
}
.pc-portal__section-title {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}
.pc-portal__section--plano {
    padding-bottom: 8px;
}
.pc-portal__section--plano .pc-portal__section-title {
    text-align: center;
}
.pc-portal-data-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}
.pc-portal-data-stack + .pc-portal__card {
    margin-top: 12px;
}
.pc-portal-data-box {
    border: 1px solid var(--pc-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--pc-card);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
}
.pc-portal-data-box__tab {
    background: #5ad4e8;
    color: #0f172a;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: center;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.2);
}
.pc-portal-data-box__body {
    background: var(--pc-card);
}
.pc-portal-data-box__body .pc-portal__list {
    box-shadow: none;
}
.pc-portal-plan-economy {
    width: 100%;
    min-width: 0;
}
.pc-portal__card {
    background: var(--pc-card);
    border: 1px solid var(--pc-border);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.pc-portal__list {
    overflow: hidden;
    padding: 0;
}
.pc-list-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 26px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 2px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    min-height: 52px;
    box-sizing: border-box;
}
.pc-list-row:last-child {
    border-bottom: none;
}
.pc-list-row__mi {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: center;
    align-self: center;
    font-size: 22px !important;
    color: #475569;
    opacity: 0.95;
}
.pc-list-row--warn {
    background: rgba(254, 226, 226, 0.65);
}
.pc-list-row--instalacao-pendente {
    background: rgba(255, 228, 230, 0.92);
    box-shadow: inset 3px 0 0 0 rgba(251, 113, 133, 0.75);
}
.pc-list-row--instalacao-pendente .pc-list-row__mi {
    color: #e11d48;
    opacity: 0.85;
}
.pc-list-row--instalacao-pendente .pc-list-row__val::placeholder {
    color: #be123c;
    font-weight: 600;
    opacity: 0.75;
}
.pc-list-row--warn .pc-list-row__mi {
    color: #b91c1c;
}
.pc-list-row--warn .pc-list-row__val::placeholder,
.pc-list-row--warn .pc-list-row__area::placeholder {
    color: #991b1b;
    font-weight: 600;
    opacity: 0.9;
}
.pc-list-row__lab {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    align-self: end;
}
.pc-list-row__val {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pc-text);
    padding: 0;
    outline: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}
.pc-list-row__val:focus {
    color: #0f766e;
}
.pc-list-row__val::placeholder {
    color: #94a3b8;
    font-weight: 500;
}
.pc-list-row__chev {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: center;
    font-size: 22px !important;
    font-weight: normal;
    color: #cbd5e1;
    user-select: none;
    pointer-events: none;
}
.pc-list-row--stack {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 0;
    align-items: start;
}
.pc-list-row--stack .pc-list-row__mi {
    grid-row: 1;
    padding-top: 4px;
    align-self: start;
}
.pc-list-row__stack {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pc-list-row__stack-lab {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}
.pc-list-row__area {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 10px 11px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--pc-text);
    background: rgba(248, 250, 252, 0.9);
    resize: none;
    min-height: 44px;
    max-height: none;
    outline: none;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
    field-sizing: content;
}
.pc-list-row__area--grow {
    min-height: 44px;
}
.pc-list-row__area:focus {
    border-color: rgba(13, 148, 136, 0.45);
    background: #fff;
}
.pc-portal__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 4px 0;
}
.pc-portal__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    margin: 0;
}
.pc-portal__field--full {
    grid-column: 1 / -1;
}
.pc-portal__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}
.pc-portal__field input {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pc-text);
    padding: 2px 0;
    outline: none;
}
.pc-portal__field input:focus {
    color: #0f766e;
}
.pc-portal__doc-lead {
    margin: -4px 0 10px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--pc-muted);
}
.pc-portal__doc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pc-doc {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.pc-doc--ok {
    border-color: rgba(34, 197, 94, 0.45);
}
.pc-doc--miss {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(255, 255, 255, 0.98);
}
.pc-doc__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 8px;
    min-width: 0;
}
.pc-doc__status {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pc-doc__state-ico {
    font-size: 26px !important;
}
.pc-doc__state-ico--ok {
    color: #16a34a;
}
.pc-doc__state-ico--miss {
    color: #e11d48;
}
.pc-doc__icon-cell {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    position: relative;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pc-doc--miss .pc-doc__icon-cell {
    background: rgba(254, 226, 226, 0.55);
}
.pc-doc__mat {
    font-size: 26px !important;
    color: #334155;
}
.pc-doc__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
/* mat icon sits behind thumb — hidden when thumb loads */
.pc-doc__icon-cell .pc-doc__mat {
    position: relative;
    z-index: 0;
}
.pc-doc__icon-cell .pc-doc__thumb {
    z-index: 1;
}
/* hide mat icon when thumb loaded OK */
.pc-doc__icon-cell:has(.pc-doc__thumb) .pc-doc__mat {
    display: none;
}

/* thumbnail strip — shown below the doc row for titular */
.pc-doc__thumb-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px 2px;
}
.pc-doc__thumb-link {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(13,148,136,0.35);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #e2e8f0;
}
.pc-doc__strip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pc-doc__thumb-link--pdf {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #92400e;
    text-decoration: none;
}
.pc-doc__thumb-link--pdf .material-symbols-outlined {
    font-size: 30px;
}
.pc-doc__body {
    flex: 1;
    min-width: 0;
}
.pc-doc__title {
    margin: 0 0 2px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pc-text);
}
.pc-doc__sub {
    margin: 0 0 4px;
    font-size: 0.76rem;
    color: var(--pc-muted);
}
.pc-doc__fname {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 600;
    color: #475569;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}
.pc-doc__empty {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.35;
}
.pc-doc__chev {
    flex: 0 0 auto;
    font-size: 22px !important;
    color: #cbd5e1;
    align-self: center;
}
.pc-doc__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 0 12px 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.pc-doc__textlink {
    appearance: none;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    text-decoration: none;
}
.pc-doc__textlink--danger {
    color: #b91c1c;
}
.pc-doc__textlink-ico {
    font-size: 18px !important;
}
.pc-doc__upload-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
}
.pc-doc__upload-ico {
    font-size: 20px !important;
}
.pc-doc__upload-btn:active {
    transform: scale(0.98);
}
/* Ações no fim do quadro cinza (fluxo normal), não flutuando sobre o menu inferior */
.pc-portal__footer {
    flex-shrink: 0;
    position: static;
    width: 100%;
    max-width: none;
    margin: 4px 0 0;
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.pc-portal__footer .pc-portal__cta,
.pc-portal__footer .pc-portal__ghost {
    margin: 0;
    min-height: 48px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.pc-portal__cta {
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}
.pc-portal__cta:active {
    transform: scale(0.99);
}
.pc-portal__ghost {
    border: 1px solid rgba(15, 23, 42, 0.12);
    cursor: pointer;
    background: #f8fafc;
    color: #475569;
}
.pc-portal__ghost:active {
    background: #f1f5f9;
}
.pc-portal__file-hidden {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

@media (max-width: 420px) {
    .pc-portal__scroll {
        gap: 8px;
        padding: 6px 8px calc(16px + var(--bottom-nav-h) + var(--safe-bottom));
    }
    .pc-portal__section {
        padding: 6px 4px 0;
    }
    .pc-portal-assinatura-slot {
        padding: 0;
        margin: 0;
    }
    .pc-assinatura {
        padding: 0.95rem 0.95rem 1.05rem;
        border-radius: 16px;
    }
    .pc-assinatura__title {
        font-size: 1rem;
    }
    .pc-assinatura__txt {
        font-size: 0.86rem;
    }
    .pc-assinatura__btn {
        padding: 0.78rem 0.9rem;
        font-size: 0.92rem;
    }
    .pc-assinatura__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    .pc-portal__section-title {
        font-size: 0.72rem;
    }
    .pc-portal__section-lead {
        font-size: 0.78rem;
    }
    .pc-portal-data-stack {
        gap: 10px;
        margin-top: 8px;
    }
    .pc-portal-data-box {
        border-radius: 12px;
    }
    .pc-portal-data-box__tab {
        font-size: 0.62rem;
        padding: 6px 8px;
    }
    .pc-list-row {
        grid-template-columns: 28px minmax(0, 1fr);
        column-gap: 8px;
        row-gap: 3px;
        padding: 10px 10px;
        min-height: 0;
        align-items: start;
    }
    .pc-list-row__mi {
        font-size: 18px !important;
        margin-top: 2px;
        align-self: start;
    }
    .pc-list-row__chev {
        display: none;
    }
    .pc-list-row__lab {
        font-size: 0.64rem;
        letter-spacing: 0.03em;
    }
    .pc-list-row__val {
        font-size: 0.88rem;
        line-height: 1.4;
    }
    .pc-list-row--stack {
        grid-template-columns: 28px minmax(0, 1fr);
    }
    .pc-list-row__area {
        font-size: 0.88rem;
        line-height: 1.4;
    }
    .pc-portal-uc-selector-wrap {
        padding: 8px 10px;
        margin-bottom: 8px;
    }
    .pc-doc {
        border-radius: 12px;
    }
    .pc-doc__row {
        gap: 8px;
        padding: 10px;
    }
    .pc-doc__title {
        font-size: 0.9rem;
    }
    .pc-doc__actions {
        gap: 6px 8px;
        padding: 8px 10px 10px;
    }
    .pc-doc__upload-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.84rem;
    }
    .pc-doc__textlink {
        font-size: 0.8rem;
    }
    .pc-portal__footer {
        padding: 12px 8px 14px;
    }
    .pc-portal__footer .btn {
        font-size: 0.92rem;
    }
}

@media (max-width: 360px) {
    .pc-list-row {
        grid-template-columns: minmax(0, 1fr);
        padding: 10px 10px;
    }
    .pc-list-row__mi {
        display: none;
    }
    .pc-list-row__lab,
    .pc-list-row__val,
    .pc-list-row__stack {
        grid-column: 1;
    }
    .pc-list-row--stack {
        grid-template-columns: minmax(0, 1fr);
    }
    .pc-list-row--stack .pc-list-row__mi {
        display: none;
    }
    .pc-assinatura__head {
        gap: 0.65rem;
    }
    .pc-assinatura__icon {
        width: 36px;
        height: 36px;
    }
    .pc-doc__row {
        flex-wrap: wrap;
    }
    .pc-doc__body {
        flex: 1 1 100%;
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .pc-portal__fields {
        grid-template-columns: 1fr;
    }
    .pc-portal__field {
        border-right: none;
    }
}

/* Beneficiário ativo — canal bloqueado: verde muito claro, sem “máscara” no placeholder */
#conta-panel-beneficiario .field input:disabled {
    background: rgba(220, 252, 231, 0.72);
    color: rgba(71, 85, 105, 0.42);
    border-color: rgba(167, 243, 208, 0.85);
    box-shadow: none;
    -webkit-text-fill-color: rgba(71, 85, 105, 0.42);
}
#conta-panel-beneficiario .field input:disabled::placeholder {
    color: transparent;
    opacity: 0;
}

.conta-be-step-code {
    padding-top: 2px;
}

.field--access-code {
    margin-bottom: 16px;
}
.conta-access-code-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.conta-access-code-wrap {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.conta-access-code-input {
    flex: 1 1 0;
    min-width: 0;
    min-height: 56px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: clamp(1.35rem, 5vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    -webkit-user-select: text;
    user-select: text;
}
.conta-access-code-input::placeholder {
    letter-spacing: 0.22em;
    color: rgba(100, 116, 139, 0.45);
    font-weight: 600;
}
.conta-access-code-input:focus {
    outline: none;
    border-color: var(--color-solar-green);
    box-shadow: 0 0 0 3px rgba(0, 140, 74, 0.18);
}
.conta-access-code-paste {
    flex-shrink: 0;
    align-self: stretch;
    min-width: 72px;
    padding: 0 14px;
    border: 1px solid rgba(0, 140, 74, 0.35);
    border-radius: 12px;
    background: rgba(0, 140, 74, 0.08);
    color: var(--color-solar-green-dark);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.conta-access-code-paste:active {
    background: rgba(0, 140, 74, 0.16);
}
.conta-access-code-hint {
    margin: 8px 2px 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--color-text-muted);
}
.conta-access-code-delivery {
    margin: 12px 2px 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--color-text-muted);
    background: rgba(0, 140, 74, 0.06);
    border: 1px solid rgba(0, 140, 74, 0.12);
}
.conta-access-code-delivery strong {
    color: #1b4332;
    font-weight: 700;
}
.conta-access-code-resend {
    width: 100%;
    margin-top: 10px;
}

.conta-be-identify-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    color: #7f1d1d;
    background: rgba(254, 226, 226, 0.95);
    border: 1px solid rgba(248, 113, 113, 0.55);
}

/* Portal Usina — fluxo login/código: superfície limpa, inputs “cheios”, foco azul (referência Mercado Pago) */
.conta-be-portal-tagline {
    display: none;
    margin: -4px 0 14px;
    padding: 0 2px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #737373;
    font-weight: 500;
    letter-spacing: -0.01em;
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina .conta-be-portal-tagline {
    display: block;
}

#view-conta .conta-login-card:has(#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina:not([hidden])) {
    background: linear-gradient(185deg, #fafafa 0%, #ffffff 38%);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.06);
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina .card-title {
    font-size: clamp(1.28rem, 4.2vw, 1.52rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 8px;
    color: #1a1a1a;
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina .conta-panel-hint {
    margin-bottom: 8px;
    color: #525252;
    font-size: 0.88rem;
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina .field {
    margin-bottom: 14px;
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina .field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #737373;
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina .field input:not(:disabled) {
    padding: 15px 16px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina .field input:not(:disabled):focus {
    outline: none;
    border-color: #3483fa;
    box-shadow: 0 0 0 3px rgba(52, 131, 250, 0.2);
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina .conta-access-code-input:not(:disabled):focus {
    border-color: #3483fa;
    box-shadow: 0 0 0 3px rgba(52, 131, 250, 0.2);
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina .conta-access-code-paste {
    border-color: rgba(52, 131, 250, 0.35);
    background: rgba(52, 131, 250, 0.08);
    color: #1d4ed8;
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina #conta-be-acessar.btn-conta-apple--primary:not(:disabled),
#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina #conta-be-code-confirmar.btn-conta-apple--primary:not(:disabled) {
    background: linear-gradient(180deg, #4dabf7 0%, #3483fa 100%);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 6px 20px rgba(52, 131, 250, 0.38);
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina #conta-be-acessar.btn-conta-apple--primary:not(:disabled):active,
#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina #conta-be-code-confirmar.btn-conta-apple--primary:not(:disabled):active {
    filter: brightness(0.97);
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina .conta-panel-actions {
    margin-top: 22px;
    gap: 12px;
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina .conta-be-step-code .card-title {
    margin-bottom: 8px;
}

#conta-panel-beneficiario.conta-panel-beneficiario--portal-usina .field input:disabled {
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: rgba(113, 113, 122, 0.55);
    -webkit-text-fill-color: rgba(113, 113, 122, 0.55);
    box-shadow: none;
}

/* Beneficiário logado — UI fintech (hero + KPIs + folha): Nubank / Mercado Pago–inspired */
#conta-panel-benef-logado.conta-panel--benef-pro {
    margin: -16px -16px 4px;
    padding-bottom: 12px;
    width: calc(100% + 32px);
    max-width: none;
}

.conta-benef-profile.benef-pro-root {
    margin-top: 0;
}

.benef-pro {
    --benef-pro-bg: var(--color-bg);
    font-family: var(--font-sans);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

.benef-pro__hero {
    position: relative;
    padding: 28px 22px 44px;
    margin: 0;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(
        145deg,
        #022c22 0%,
        var(--color-solar-green-dark) 38%,
        var(--color-solar-green) 72%,
        var(--color-solar-green-light) 100%
    );
    box-shadow:
        0 18px 48px rgba(0, 107, 58, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.benef-pro__hero-glow {
    position: absolute;
    pointer-events: none;
    inset: -40% -20% auto auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 230, 120, 0.35) 0%, transparent 68%);
    filter: blur(8px);
}

.benef-pro__hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.benef-pro__avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.benef-pro__hello {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.82);
}

.benef-pro__name {
    margin: 0;
    font-size: clamp(1.35rem, 4.5vw, 1.65rem);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: #fff;
    max-width: 100%;
    word-break: break-word;
}

.benef-pro__email {
    margin: 6px 0 0;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.78);
    word-break: break-all;
    max-width: 100%;
}

/* Portal Usina logado — hero mais “carteira digital”, céu + verde COOPERE */
.benef-pro--portal .benef-pro__hero {
    background: linear-gradient(
        155deg,
        #052e54 0%,
        #0c4a6e 26%,
        #0d9488 58%,
        #059669 88%,
        #10b981 100%
    );
    box-shadow:
        0 22px 56px rgba(12, 74, 110, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.benef-pro--portal .benef-pro__hero-glow {
    background: radial-gradient(circle, rgba(250, 250, 250, 0.2) 0%, transparent 62%);
}

.benef-pro--portal .benef-pro__avatar {
    border-radius: 50%;
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.benef-pro--portal .benef-pro__hello {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.benef-pro__hero-curve {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 28px;
    line-height: 0;
    z-index: 2;
}

.benef-pro__hero-curve svg {
    display: block;
    width: 100%;
    height: 28px;
}

.benef-pro__body {
    position: relative;
    z-index: 3;
    margin-top: -32px;
    padding: 0 14px 8px;
}

.benef-pro__kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.benef-pro__kpi {
    background: var(--color-surface);
    border-radius: 18px;
    padding: 14px 10px 12px;
    text-align: center;
    border: 1px solid rgba(200, 230, 213, 0.85);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 32px rgba(12, 74, 110, 0.09);
    min-width: 0;
}

.benef-pro__kpi--accent {
    border-color: rgba(255, 193, 7, 0.45);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 12px 36px rgba(245, 158, 11, 0.14);
}

.benef-pro__kpi-value {
    display: block;
    font-size: clamp(1.05rem, 4vw, 1.28rem);
    font-weight: 780;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--color-solar-green-dark);
    font-variant-numeric: tabular-nums;
}

.benef-pro__kpi-value--money {
    font-size: clamp(0.92rem, 3.5vw, 1.05rem);
    font-weight: 750;
}

.benef-pro__kpi-unit {
    display: block;
    margin-top: 6px;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.benef-pro__kpi-hint {
    display: block;
    margin-top: 3px;
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
}

.benef-pro__plan {
    margin-bottom: 22px;
}

.benef-pro__plan-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 253, 250, 0.96) 100%);
    border-radius: 20px;
    padding: 18px 18px 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 40px rgba(15, 118, 110, 0.08);
}

.benef-pro__eyebrow {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.benef-pro__plan-name {
    margin: 0 0 12px;
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.3;
    color: var(--color-text);
}

.benef-pro__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--color-solar-green-dark);
    background: rgba(0, 140, 74, 0.1);
    border: 1px solid rgba(0, 140, 74, 0.2);
}

.benef-pro__sheet-wrap {
    margin-bottom: 8px;
}

.benef-pro__section-head {
    margin: 0 4px 10px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

/* Portal Usina — títulos de secção (ex.: «Suas usinas») bem visíveis */
.benef-pro--portal .benef-pro__section-head {
    margin: 0 2px 12px;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: none;
    color: var(--color-text);
}

.benef-pro__sheet {
    background: var(--color-surface);
    border-radius: 18px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.benef-pro__sheet-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 14px;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.benef-pro__sheet-row:last-child {
    border-bottom: none;
}

.benef-pro__sheet-label {
    flex: 1 1 40%;
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: -0.01em;
}

.benef-pro__sheet-value {
    flex: 1 1 45%;
    text-align: right;
    font-size: 0.92rem;
    font-weight: 620;
    letter-spacing: -0.02em;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

.consultor-edit-hint {
    margin: 0 0 10px;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
}

.consultor-edit-card {
    border-radius: 16px;
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.consultor-edit-field {
    padding: 11px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.consultor-edit-field--last {
    border-bottom: none;
}

.consultor-edit-field label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.consultor-edit-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    padding: 0 10px;
    min-height: 44px;
}

.consultor-edit-ico {
    font-size: 19px !important;
    color: #0369a1;
    flex: 0 0 auto;
}

.consultor-edit-input-wrap input {
    width: 100%;
    border: 0;
    background: transparent;
    font-size: 0.95rem;
    color: #0f172a;
    padding: 10px 0;
    outline: none;
}

.consultor-edit-input-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.consultor-edit-actions {
    margin-top: 12px;
}

.consultor-edit-save {
    min-height: 46px;
    font-size: 0.98rem;
}

.co-dash {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    flex: 1 1 0;
    overflow: hidden;
}
/* Grid: cabeçalho fixo + área rolável (scroll confiável em mobile/PWA) */
.co-dash:has(#co-dash-scroll) {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    flex: 1 1 0;
    overflow: hidden;
}
.co-dash:has(#co-dash-scroll) .co-dash-head {
    grid-row: 1;
    flex-shrink: 0;
}
.co-dash-scroll {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
}
.co-dash:has(#co-dash-scroll) #co-dash-scroll {
    grid-row: 2;
    flex: none;
    min-height: 0;
    max-height: none;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}
.co-dash-sair {
    margin-top: 8px;
}

/* Perfil consultor — Ajuda + Menu (referência Mercado Pago) */
.co-profile-section {
    margin-bottom: 4px;
}
.co-profile-section__title {
    margin: 0 0 10px 4px;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}
.co-profile-assistant {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 12px;
    border: none;
    border-radius: 16px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #38bdf8 0%, #facc15 42%, #34d399 100%) border-box;
    border: 2px solid transparent;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.co-profile-assistant:active {
    transform: scale(0.985);
}
.co-profile-assistant__spark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
}
.co-profile-assistant__spark-ico {
    font-size: 22px !important;
    color: #2563eb;
}
.co-profile-assistant__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.co-profile-assistant__title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.co-profile-assistant__sub {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #64748b;
    font-weight: 500;
}
.co-profile-menu {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.co-profile-menu__item {
    width: 100%;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 4px;
    padding: 14px 12px 14px 10px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}
.co-profile-menu__item:last-child {
    border-bottom: none;
}
.co-profile-menu__item:active {
    background: #f8fafc;
}
.co-profile-menu__item--sair .co-profile-menu__label {
    color: #b91c1c;
    font-weight: 700;
}
.co-profile-menu__item--sair .co-profile-menu__ico-sym {
    color: #b91c1c;
}
.co-profile-menu__ico {
    display: flex;
    align-items: center;
    justify-content: center;
}
.co-profile-menu__ico-sym {
    font-size: 22px !important;
    color: #334155;
}
.co-profile-menu__label {
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.co-profile-menu__chev {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3483fa;
}
.co-profile-menu__chev-ico {
    font-size: 22px !important;
}
.co-perfil-cadastro {
    margin-top: 8px;
}
.co-perfil-cadastro[hidden] {
    display: none !important;
}
.co-dash-tab {
    display: none;
    flex-direction: column;
    gap: 16px;
    content-visibility: hidden;
    contain-intrinsic-size: auto 320px;
}
.co-dash-tab[hidden] {
    display: none !important;
}
.co-dash-tab.co-dash-tab--active {
    display: flex !important;
    content-visibility: visible;
}

#co-dash-scroll {
    position: relative;
}
.co-dash-refresh {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: all;
}
.co-dash-refresh[hidden] {
    display: none !important;
}
.co-dash-refresh__veil {
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(5px);
}
.co-dash-refresh__card {
    position: relative;
    z-index: 1;
    width: min(100%, 300px);
    padding: 16px 18px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
    text-align: center;
}
.co-dash-refresh__scene {
    position: relative;
    width: 200px;
    height: 118px;
    margin: 0 auto 12px;
}
.co-dash-refresh__sun {
    position: absolute;
    top: 0;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fef9c3 0%, #fbbf24 45%, #f59e0b 100%);
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.75);
    animation: co-dash-sun-pulse 1.6s ease-in-out infinite;
}
.co-dash-refresh__sun::before,
.co-dash-refresh__sun::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(251, 191, 36, 0.45);
    animation: co-dash-sun-rays 3s linear infinite;
}
.co-dash-refresh__sun::after {
    inset: -18px;
    opacity: 0.55;
    animation-duration: 4.5s;
    animation-direction: reverse;
}
.co-dash-refresh__panel-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.2));
}
.co-dash-refresh__panel-shine {
    animation: co-dash-panel-shine 1.4s ease-in-out infinite;
}
.co-dash-refresh__beam {
    stroke-dasharray: 6 10;
    animation: co-dash-beam-flow 0.75s linear infinite;
}
.co-dash-refresh__bolt {
    position: absolute;
    top: 6px;
    right: 22px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eab308;
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.85));
    animation: co-dash-bolt-inject 0.85s ease-in-out infinite;
    pointer-events: none;
}
.co-dash-refresh__bolt-ico {
    font-size: 30px !important;
    width: 30px;
    height: 30px;
}
.co-dash-refresh__msg {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
}
.co-dash-refresh__step {
    margin: 4px 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    min-height: 1.1em;
}
.co-dash-refresh__progress {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
}
.co-dash-refresh__track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.co-dash-refresh__fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b 0%, #22c55e 55%, #0ea5e9 100%);
    transition: width 0.22s ease-out;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
}
.co-dash-refresh__pct {
    font-size: 0.8rem;
    font-weight: 800;
    color: #047857;
    font-variant-numeric: tabular-nums;
    min-width: 2.5rem;
    text-align: right;
}
@keyframes co-dash-bolt-inject {
    0% {
        transform: translate(14px, -12px) scale(0.5) rotate(-8deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(-2px, 4px) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-14px, 14px) scale(0.65) rotate(6deg);
        opacity: 0.3;
    }
}
@keyframes co-dash-panel-shine {
    0%,
    100% {
        stroke-opacity: 0.25;
    }
    50% {
        stroke-opacity: 0.95;
    }
}
@keyframes co-dash-beam-flow {
    to {
        stroke-dashoffset: -32;
    }
}
@keyframes co-dash-sun-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}
@keyframes co-dash-sun-rays {
    to {
        transform: rotate(360deg);
    }
}

.co-dash-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 12px 10px;
    border-radius: 16px;
    background: linear-gradient(135deg, #065f46 0%, #0f766e 100%);
    color: #fff;
}
.co-dash-head--syncing .co-dash-head__title {
    opacity: 0.92;
}

/* Pull to refresh — indicador circular (referência app bancário) */
.ptr-pull {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 0;
    overflow: hidden;
    flex-shrink: 0;
    color: #0f172a;
    transition: height 0.18s ease;
}
.ptr-pull--visible {
    height: 52px;
    min-height: 52px;
}
.ptr-pull__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.ptr-spinner {
    display: block;
    color: #0f172a;
}
.ptr-pull--busy .ptr-spinner {
    animation: ptr-spin 0.75s linear infinite;
}
@keyframes ptr-spin {
    to {
        transform: rotate(360deg);
    }
}
.ptr-pull__label {
    font-size: 0.72rem;
    font-weight: 650;
    color: #64748b;
    letter-spacing: 0.01em;
    line-height: 1.2;
    max-width: 90vw;
    text-align: center;
}
.ptr-scroll-body {
    will-change: transform;
}

.co-dash-pull {
    flex-direction: row;
    gap: 10px;
}
.co-dash-pull__label {
    letter-spacing: 0.02em;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f766e;
}
.co-dash-sync__spin {
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 800;
    color: #fde047;
}
.co-dash-head--syncing .co-dash-sync__spin {
    animation: ptr-spin 0.75s linear infinite;
}
.co-dash-scroll-body {
    will-change: transform;
    padding: 4px 2px 0;
}
.co-dash-sync {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.co-dash-sync[hidden] {
    display: none !important;
}
.co-dash-sync__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}
.co-dash-sync__track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}
.co-dash-sync__fill {
    display: block;
    height: 100%;
    width: 35%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fde047, #4ade80, #7dd3fc);
    animation: co-dash-sync-slide 0.9s ease-in-out infinite;
}
@keyframes co-dash-sync-slide {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(320%);
    }
}

.co-dash-head__avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    font-size: 0.86rem;
    font-weight: 800;
}

.co-dash-head__txt {
    min-width: 0;
    overflow: hidden;
}

.co-dash-head__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.co-dash-head__sub {
    margin: 2px 0 0;
    font-size: 0.75rem;
    opacity: 0.92;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.co-dash-head__plano {
    margin: 4px 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    opacity: 0.95;
    white-space: normal;
    word-break: break-word;
}
.co-dash-head__plano-k {
    font-weight: 800;
    opacity: 0.9;
}
.co-cliente-card__cell--plano dd {
    color: #0f766e;
    font-weight: 800;
}

.co-dash-head__help {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 999px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.co-dash-head__help-ico {
    font-size: 16px !important;
}

/* Em telas muito estreitas (<360px) esconde o texto do botão, fica só o ícone */
@media (max-width: 359px) {
    .co-dash-head__help .co-dash-head__help-txt { display: none; }
    .co-dash-head { grid-template-columns: auto 1fr 34px; }
}

.co-dash-stats,
.co-dash-stats--split,
.co-dash-stats--stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Resumo: sempre empilhado (lado a lado quebra no telemovel) */
.co-dash-stats--split {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

.co-dash-stats__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.co-dash-stat {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 10px 10px 9px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    min-width: 0;
}

.co-dash-stat--clients {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 14px;
    border-left: none;
    border-top: 4px solid #0f766e;
    background: linear-gradient(135deg, #f0fdf9 0%, #fff 55%);
}

.co-dash-stat--side {
    flex: 1 1 0;
    padding: 9px 10px 8px;
}

.co-dash-stat__v {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 900;
    color: #0f766e;
    letter-spacing: -0.03em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

.co-dash-stat__v--big {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
    line-height: 1.05;
    color: #065f46;
}

.co-dash-stat__k {
    margin: 4px 0 0;
    font-size: 0.66rem;
    font-weight: 750;
    color: #64748b;
    line-height: 1.35;
}

.co-dash-stat__k--merged {
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #334155;
    line-height: 1.3;
}

.co-dash-stat__k-sub {
    display: block;
    margin-top: 2px;
    font-size: 0.62rem;
    font-weight: 650;
    color: #64748b;
}

.co-dash-stat--side .co-dash-stat__v {
    font-size: 0.82rem;
}

@media (max-width: 340px) {
    .co-dash-stats--split {
        grid-template-columns: 1fr;
    }
    .co-dash-stat--clients {
        border-left: none;
        border-top: 4px solid #0f766e;
    }
}

/* Mobile: hierarquia e respiração no painel consultor */
@media (max-width: 640px) {
    .co-dash-scroll-body {
        padding: 10px 12px 20px;
    }

    .co-dash-tab.co-dash-tab--active {
        gap: 18px;
    }

    .co-dash-stats--split {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .co-dash-stats__col {
        gap: 12px;
    }

    .co-dash-stat {
        padding: 14px 14px 12px;
    }

    .co-dash-stat--clients {
        padding: 16px 14px;
        border-left: none;
        border-top: 4px solid #0f766e;
    }

    .co-dash-stat__v {
        font-size: 1.05rem;
    }

    .co-dash-stat__v--big {
        font-size: clamp(2rem, 9vw, 2.4rem);
    }

    .co-dash-stat__k,
    .co-dash-stat--side .co-dash-stat__v {
        font-size: 0.88rem;
    }

    .co-dash-stat__k--merged {
        font-size: 0.9rem;
    }

    .co-dash-stat__k-sub {
        font-size: 0.78rem;
        margin-top: 4px;
    }

    .co-dash-balance,
    .co-dash-balance--triple {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .co-dash-balance--triple .co-dash-balance-card--kwh {
        grid-column: auto;
    }

    .co-dash-balance-card {
        padding: 16px 14px;
    }

    .co-dash-balance-card__k {
        font-size: 0.78rem;
        letter-spacing: 0.03em;
    }

    .co-dash-balance-card__v {
        font-size: 1.65rem;
        margin: 8px 0 6px;
    }

    .co-dash-balance-card__sub,
    .co-dash-balance-card--kwh .co-dash-balance-card__sub {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .co-dash-alert {
        padding: 14px;
        gap: 10px;
        border-radius: 14px;
    }

    .co-dash-alert p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .co-dash-grid2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .co-dash-mini {
        padding: 14px;
    }

    .co-dash-mini h4 {
        font-size: 0.88rem;
        gap: 6px;
    }

    .co-dash-mini__big {
        font-size: 1.35rem;
        margin: 10px 0 4px;
    }

    .co-dash-mini__sub {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .co-dash-card {
        padding: 14px;
        border-radius: 16px;
    }

    .co-dash-card__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin: 0 0 12px;
    }

    .co-dash-card__head h3 {
        font-size: 1.05rem;
    }

    .co-dash-card__sub {
        font-size: 0.88rem;
        line-height: 1.45;
        margin: 0;
    }

    .co-clientes-count {
        font-size: 0.9rem;
        margin: 0 0 12px;
    }

    .co-cliente-card {
        padding: 14px;
        border-radius: 16px;
    }

    .co-cliente-card__name {
        font-size: 1.02rem;
    }

    .co-cliente-card__plano-line {
        font-size: 0.84rem;
        line-height: 1.4;
    }

    .co-cliente-card__row dt,
    .co-cliente-card__rem-k {
        font-size: 0.82rem;
    }

    .co-cliente-card__row dd,
    .co-cliente-card__rem-v {
        font-size: 0.92rem;
    }

    .co-dash-list--clientes .co-cliente-card + .co-cliente-card {
        margin-top: 14px;
    }

    .co-carteira-status-block {
        padding: 14px;
    }

    .co-carteira-status-block__title {
        font-size: 0.92rem;
    }

    .co-profile-section {
        margin-bottom: 14px;
    }

    .co-profile-section__title {
        font-size: 1.08rem;
        margin-bottom: 12px;
    }

    .co-profile-assistant__title {
        font-size: 1rem;
    }

    .co-profile-assistant__sub {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .co-profile-menu__item {
        min-height: 52px;
        padding: 14px 14px;
    }
}

.co-dash-balance,
.co-dash-balance--triple {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.co-dash-balance--triple .co-dash-balance-card--kwh {
    grid-column: auto;
}

.co-dash-balance-card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 12px;
}

.co-dash-balance-card--prev {
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
    border-color: #fcd9bd;
}

.co-dash-balance-card--ok {
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
    border-color: #bbf7d0;
}

.co-dash-balance-card--kwh {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    border-color: #bfdbfe;
}

.co-dash-balance-card__v--kwh {
    font-size: 1.2rem;
    color: #1d4ed8;
}

.co-dash-balance-card--kwh .co-dash-balance-card__sub {
    font-size: 0.62rem;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 650;
    color: #475569;
}

.co-dash-balance-card__k {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.04em;
}

.co-dash-balance-card__v {
    margin: 6px 0 3px;
    font-size: 1.45rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #0f172a;
}

.co-dash-balance-card__sub {
    margin: 0;
    font-size: 0.73rem;
    color: #334155;
}

.co-dash-alert {
    border-radius: 12px;
    border: 1px solid #d1fae5;
    background: #ecfdf5;
    padding: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
}

.co-dash-alert__ico {
    font-size: 18px !important;
    color: #047857;
}

.co-dash-alert p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #065f46;
}

.co-dash-card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 10px;
}

.co-dash-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 2px 8px;
}

.co-dash-card__head h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.co-dash-card__link {
    border: 0;
    background: transparent;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.co-dash-pipeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 2px 0 10px;
    padding-top: 2px;
}

.co-dash-pipeline__line {
    position: absolute;
    top: 24px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: #cbd5e1;
    z-index: 0;
}

.co-dash-pipeline__step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.co-dash-pipeline__dot {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.co-dash-pipeline__dot-ico {
    font-size: 21px !important;
    color: #fff;
}

.co-dash-pipeline__dot--green {
    background: #16a34a;
}

.co-dash-pipeline__dot--yellow {
    background: #f59e0b;
}

.co-dash-pipeline__dot--blue {
    background: #60a5fa;
}

.co-dash-pipeline__dot--green-dark {
    background: #059669;
}

.co-dash-pipeline__title {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.co-dash-pipeline__sub {
    margin: 3px 0 0;
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.25;
}

.co-dash-list {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.co-dash-list--clientes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: #f8fafc;
    border: none;
    overflow: visible;
}

.co-clientes-count {
    margin: 0 2px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: -0.01em;
}

.co-dash-card--empty {
    padding: 8px;
}

.co-dash-empty {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 22px 16px 18px;
    text-align: left;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.co-dash-empty__ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.co-dash-empty__ico-sym {
    font-size: 26px !important;
    color: #0f766e;
}

.co-dash-empty__title {
    margin: 4px 0 0;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.3;
}

.co-dash-empty__text {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.5;
}

.co-dash-empty__cta {
    margin-top: 6px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #059669 100%);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.22);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.co-dash-empty__cta:active {
    transform: scale(0.985);
}

.co-dash-empty__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.co-dash-empty__cta--secondary {
    color: #0f766e;
    background: #fff;
    border: 2px solid #99f6e4;
    box-shadow: none;
}

.co-dash-card--share {
    border-color: #99f6e4;
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 55%);
}

.co-share-link {
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.co-share-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.co-cliente-card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.co-list-stripe--a.co-cliente-card,
.co-list-stripe--a.co-extract-entry {
    border-left-color: #0f766e;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.08);
}
.co-list-stripe--b.co-cliente-card,
.co-list-stripe--b.co-extract-entry {
    border-left-color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.co-cliente-card__head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    margin-bottom: 8px;
}

.co-cliente-card__head-txt {
    min-width: 0;
}

.co-cliente-card__name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.co-cliente-card__plano {
    margin: 2px 0 0;
    font-size: 0.72rem;
    color: #64748b;
}

.co-cliente-card__status {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.co-cliente-card__status--ok {
    color: #047857;
    background: #ecfdf5;
}

.co-cliente-card__status--pending {
    color: #b45309;
    background: #fffbeb;
}

.co-cliente-card__status--muted {
    color: #64748b;
    background: #f1f5f9;
}

.co-cliente-card__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.co-cliente-card__cell {
    min-width: 0;
}

.co-cliente-card__cell dt {
    margin: 0 0 2px;
    font-size: 0.62rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.co-cliente-card__cell dd {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}
.co-cliente-card__cell--full {
    grid-column: 1 / -1;
}
.co-cliente-card__status-txt {
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.35;
}
.co-cliente-card__status-txt--ok { color: #047857; }
.co-cliente-card__status-txt--pending { color: #b45309; }
.co-cliente-card__status-txt--muted { color: #64748b; }

.co-cliente-card__rem {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.co-cliente-card__rem-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
}

.co-cliente-card__rem-row--prev {
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
    border: 1px solid #fde68a;
}

.co-cliente-card__rem-row--paga {
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
}

.co-cliente-card__rem-k {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.co-cliente-card__rem-v {
    font-size: 1rem;
    font-weight: 800;
    color: #0f766e;
    font-variant-numeric: tabular-nums;
    text-align: left;
    word-break: break-word;
}

.co-dash-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border-bottom: 1px solid #f1f5f9;
}

.co-dash-item:last-child {
    border-bottom: none;
}

.co-dash-item__avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    display: grid;
    place-items: center;
    font-size: 0.66rem;
    font-weight: 800;
}

.co-dash-item__name {
    margin: 0;
    font-size: 0.8rem;
    color: #0f172a;
    font-weight: 700;
}

.co-dash-item__sub {
    margin: 1px 0 0;
    font-size: 0.68rem;
    color: #64748b;
}

.co-dash-item__value {
    font-size: 0.83rem;
    font-weight: 800;
    color: #0f766e;
    font-variant-numeric: tabular-nums;
}

.co-dash-grid2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.co-dash-mini {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 10px;
}

.co-dash-mini h4 {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 800;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.co-dash-mini__ico {
    font-size: 15px !important;
    color: #059669;
}

.co-dash-mini__big {
    margin: 8px 0 2px;
    font-size: 1.1rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.co-dash-mini__sub {
    margin: 0;
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.4;
}

.co-dash-plan-label {
    margin: 0 2px 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.co-dash-plan-box {
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    color: #0f172a;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.42;
    white-space: normal;
}

.co-dash-extract {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.co-dash-extract-row {
    display: grid;
    grid-template-columns: 1.3fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
}

.co-dash-extract-row:last-child {
    border-bottom: none;
}

.co-dash-extract-col {
    font-size: 0.75rem;
    color: #334155;
}

.co-dash-extract-col--name {
    font-weight: 700;
}

.co-dash-extract-col--status {
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.co-dash-extract-col--ok {
    color: #065f46;
    background: #d1fae5;
}

.co-dash-extract-col--pending {
    color: #92400e;
    background: #fef3c7;
}

.co-dash-extract-col--value {
    font-weight: 800;
    color: #0f766e;
    font-variant-numeric: tabular-nums;
}

/* Consultor — cards clientes (mobile-first, empilhado) */
.co-dash-list--clientes .co-cliente-card + .co-cliente-card {
    margin-top: 10px;
}
.co-cliente-card__plano-line {
    margin: 2px 0 0;
    font-size: 0.72rem;
    font-weight: 650;
    color: #0f766e;
    line-height: 1.3;
}
.co-cliente-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.co-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}
.co-badge--admin-pending { color: #92400e; background: #fef3c7; }
.co-badge--admin-ok { color: #065f46; background: #d1fae5; }
.co-badge--admin-reject { color: #991b1b; background: #fee2e2; }
.co-badge--ok { color: #065f46; background: #d1fae5; }
.co-badge--pending { color: #92400e; background: #fef3c7; }
.co-badge--muted { color: #475569; background: #f1f5f9; }
.co-cliente-card__stack {
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}
.co-cliente-card__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}
.co-cliente-card__row:last-child {
    border-bottom: none;
}
.co-cliente-card__row dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.co-cliente-card__row dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    word-break: break-word;
}
.co-mono-ref {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.co-cliente-card__status-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.co-cliente-card__status-line {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.co-cliente-card__status-k {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.co-cliente-card__status-txt--admin-pending { color: #b45309; }
.co-cliente-card__status-txt--admin-ok { color: #047857; }
.co-cliente-card__status-txt--admin-reject { color: #b91c1c; }

/* Pipeline por cliente (aba Clientes) */
.co-cliente-pipeline-menu {
    margin: 10px 0 4px;
    border: 2px solid #5eead4;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 45%, #fffbeb 100%);
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(15, 118, 110, 0.14);
}
.co-cliente-pipeline-menu--active {
    border-color: #f59e0b;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.22);
}
.co-cliente-pipeline-menu--blocked {
    border-color: #fca5a5;
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    box-shadow: 0 3px 14px rgba(220, 38, 38, 0.12);
}
.co-cliente-pipeline-menu--done {
    border-color: #6ee7b7;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}
.co-cliente-pipeline-menu__summary {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        'label chev'
        'meta meta';
    align-items: start;
    column-gap: 8px;
    row-gap: 8px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    font-size: 0.9rem;
    color: #065f46;
}
.co-cliente-pipeline-menu--active .co-cliente-pipeline-menu__summary {
    color: #92400e;
}
.co-cliente-pipeline-menu__summary::-webkit-details-marker {
    display: none;
}
.co-cliente-pipeline-menu__summary::after {
    content: '';
    grid-area: chev;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-right: 2px solid #0f766e;
    border-bottom: 2px solid #0f766e;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.co-cliente-pipeline-menu--active .co-cliente-pipeline-menu__summary::after {
    border-color: #d97706;
}
.co-cliente-pipeline-menu[open] .co-cliente-pipeline-menu__summary::after {
    transform: rotate(-135deg);
    margin-top: 8px;
}
.co-cliente-pipeline-menu__label {
    grid-area: label;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    line-height: 1.3;
}
.co-cliente-pipeline-menu__label-ico {
    font-size: 22px !important;
    color: #0d9488;
    flex-shrink: 0;
}
.co-cliente-pipeline-menu--active .co-cliente-pipeline-menu__label-ico {
    color: #d97706;
}
.co-cliente-pipeline-menu__meta {
    grid-area: meta;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    text-align: left;
    line-height: 1.35;
}
.co-cliente-pipeline-menu__meta-step {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #065f46;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #99f6e4;
    border-radius: 999px;
    padding: 4px 10px;
}
.co-cliente-pipeline-menu--active .co-cliente-pipeline-menu__meta-step {
    color: #92400e;
    border-color: #fcd34d;
    background: #fffbeb;
}
.co-cliente-pipeline-menu__meta-sep {
    display: none;
}
.co-cliente-pipeline-menu__meta-label {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.88rem;
    font-weight: 800;
    color: #b45309;
    background: linear-gradient(180deg, #fff7ed 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 8px 10px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
}
.co-cliente-pipeline-menu--done .co-cliente-pipeline-menu__meta-label {
    color: #047857;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #6ee7b7;
    box-shadow: none;
}
.co-cliente-pipeline-menu--blocked .co-cliente-pipeline-menu__meta-label {
    color: #b91c1c;
    background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
}
.co-cliente-pipeline__list {
    list-style: none;
    margin: 0;
    padding: 4px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.co-cliente-pipeline__step {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    align-items: flex-start;
    padding: 8px 4px;
    position: relative;
}
.co-cliente-pipeline__step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 30px;
    bottom: -4px;
    width: 2px;
    background: #e2e8f0;
}
.co-cliente-pipeline__step--done:not(:last-child)::after {
    background: #6ee7b7;
}
.co-cliente-pipeline__step--current:not(:last-child)::after {
    background: linear-gradient(180deg, #fcd34d 0%, #e2e8f0 100%);
}
.co-cliente-pipeline__marker {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.co-cliente-pipeline__ico {
    font-size: 22px !important;
}
.co-cliente-pipeline__ico--done {
    color: #059669;
}
.co-cliente-pipeline__ico--current {
    color: #d97706;
}
.co-cliente-pipeline__ico--upcoming {
    color: #cbd5e1;
}
.co-cliente-pipeline__ico--blocked {
    color: #dc2626;
}
.co-cliente-pipeline__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    overflow-wrap: anywhere;
    word-break: normal;
}
.co-cliente-pipeline__sub {
    margin: 3px 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    color: #64748b;
    overflow-wrap: anywhere;
    word-break: normal;
}
.co-cliente-pipeline__step--upcoming .co-cliente-pipeline__title,
.co-cliente-pipeline__step--upcoming .co-cliente-pipeline__sub {
    color: #94a3b8;
}
.co-cliente-pipeline__step--current .co-cliente-pipeline__title {
    color: #92400e;
}
.co-cliente-pipeline__step--done .co-cliente-pipeline__title {
    color: #065f46;
}
.co-cliente-pipeline__step--blocked .co-cliente-pipeline__title {
    color: #b91c1c;
}

.co-info-btn {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.co-info-btn--on-card {
    margin-left: auto;
}
.co-info-btn--inline {
    vertical-align: middle;
    margin-left: 4px;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
}
.co-dash-card__head h3 {
    flex: 1;
}
.co-dash-plan-box--detail .co-dash-plan-detail {
    margin: 0 0 8px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
}
.co-dash-plan-box--detail .co-dash-plan-detail:last-child {
    margin-bottom: 0;
}
.co-dash-plan-box--muted {
    font-weight: 600;
    color: #64748b;
}

.co-carteira-status-intro {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--co-muted, #5c6570);
    margin: 0 0 0.85rem;
}

.co-carteira-status-block__titles {
    flex: 1;
    min-width: 0;
}

.co-carteira-status-block__sub {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: var(--co-muted, #5c6570);
}

.co-carteira-status-block__coopere {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    color: var(--co-muted, #5c6570);
}

.co-dash-card__sub {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--co-muted, #5c6570);
}

.co-carteira-status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.co-carteira-status-block {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    background: #fff;
}
.co-carteira-status-block__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
}
.co-carteira-status-block--count-only .co-carteira-status-block__head {
    margin-bottom: 0;
}
.co-carteira-status-block__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
}
.co-carteira-status-block__count {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f766e;
    background: #ecfdf5;
    border-radius: 999px;
    padding: 4px 10px;
}
.co-carteira-status-block__vals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}
.co-carteira-status-block__val {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
}
.co-carteira-status-block__k {
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.co-carteira-status-block__v {
    font-size: 0.86rem;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.co-carteira-status-block__v--ok {
    color: #047857;
}

.co-extract-bank__info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.co-extract-bank__info p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #1e3a8a;
}
.co-extract-bank__info-ico {
    font-size: 20px !important;
    color: #2563eb;
}
.co-extract-bank__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.co-extract-sum-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.co-extract-sum-card__k {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.co-extract-sum-card__v {
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.co-extract-sum-card__v--ok {
    color: #047857;
}
.co-extract-sum-card__v--sm {
    font-size: 0.88rem;
}
.co-extract-sum-card__sub {
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.3;
}
.co-extract-entries {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.co-extract-entry {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    background: #fff;
    padding: 10px 12px;
}
.co-extract-entry__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}
.co-extract-entry__name {
    font-size: 0.86rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}
.co-extract-entry__date {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}
.co-extract-entry__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.co-extract-entry__grid {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}
.co-extract-entry__row {
    display: grid;
    grid-template-columns: minmax(7.5rem, 42%) 1fr;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px solid #f1f5f9;
}
.co-extract-entry__row:last-child {
    border-bottom: none;
}
.co-extract-entry__row dt {
    margin: 0;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}
.co-extract-entry__row dd {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    word-break: break-word;
}
.co-extract-entry__row--highlight {
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
}
.co-extract-entry__row--highlight dd {
    color: #0f766e;
}

.co-profile-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #065f46 0%, #0f766e 100%);
    color: #fff;
}
.co-profile-hero__avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    font-weight: 800;
}
.co-profile-hero__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.co-profile-hero__email {
    margin: 2px 0 0;
    font-size: 0.78rem;
    opacity: 0.92;
}
.co-profile-hero__plano {
    margin: 6px 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
}
.co-profile-plano-section {
    margin-bottom: 4px;
}
.co-profile-plano-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.co-profile-plano-card {
    border-radius: 14px;
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    padding: 12px;
}
.co-profile-plano-card__tipo {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 900;
    color: #0f766e;
    letter-spacing: -0.02em;
}

.co-profile-plano-card--list {
    background: transparent;
    border: none;
    padding: 0;
}

/* Planos do consultor — lista separada (vários planos) */
.co-planos-list__intro {
    margin: 0 0 10px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #475569;
}

.co-planos-list__note {
    margin: 10px 0 0;
    padding: 8px 10px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #334155;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.co-planos-list__grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.co-plano-item {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.co-plano-item--percent {
    border-left: 4px solid #0d9488;
}

.co-plano-item--kwh {
    border-left: 4px solid #2563eb;
}

.co-plano-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.co-plano-item__index {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.co-plano-item__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.co-plano-item__badge--percent {
    color: #065f46;
    background: #d1fae5;
}

.co-plano-item__badge--kwh {
    color: #1e40af;
    background: #dbeafe;
}

.co-plano-item__badge--generic {
    color: #475569;
    background: #f1f5f9;
}

.co-plano-item__nome {
    margin: 0 0 6px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}

.co-plano-item__rule {
    margin: 0 0 4px;
    font-size: 0.8rem;
    font-weight: 650;
    color: #0f766e;
    line-height: 1.4;
}

.co-plano-item__detail {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

.co-dash-head__planos,
.co-profile-hero__planos {
    margin: 4px 0 0;
}

.co-dash-head__plano-chips,
.co-profile-hero__plano-chips {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.co-dash-head__plano-chip-item,
.co-profile-hero__plano-chip-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.co-dash-head__plano-chip,
.co-profile-hero__plano-chip {
    display: inline-flex;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.co-dash-head__plano-chip--percent,
.co-profile-hero__plano-chip--percent {
    color: #065f46;
    background: #d1fae5;
}

.co-dash-head__plano-chip--kwh,
.co-profile-hero__plano-chip--kwh {
    color: #1e40af;
    background: #dbeafe;
}

.co-dash-head__plano-chip-name,
.co-profile-hero__plano-chip-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.co-profile-hero__plano-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
    margin-top: 6px;
}

.co-profile-hero__plano-wrap .co-info-btn--inline {
    flex-shrink: 0;
    margin-top: 2px;
}
/* Não cobrir o menu inferior (Carteira / Clientes / …) */
.co-consultor-help-popover.pc-portal-step-info-popover {
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 4px);
}
.co-consultor-help-popover__body p {
    margin: 0 0 0.65rem;
}
.co-consultor-help-popover__hint {
    margin-top: 0.5rem !important;
    font-size: 0.78rem !important;
    color: #64748b !important;
}

.benef-pro-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
    padding: 8px 0 4px;
}
.consultor-mode #conta-benef-outro-login,
.consultor-mode #conta-benef-open-sisgd { display: none; }

/* Consultor logado — cabeçalho verde fixo, conteúdo com scroll, menu inferior legível (estilo MP) */
body.consultor-mode:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) .app-header {
    display: none;
}
body.consultor-mode:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) #app-shell > main,
body:has(#view-conta.active #conta-panel-benef-logado:not([hidden]) .co-dash) #app-shell > main {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}
body.consultor-mode:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) #view-conta.active {
    flex: 1 1 0;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
body.consultor-mode:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) #view-conta .conta-login-card:has(#conta-panel-benef-logado:not([hidden])) {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: #f0f9f6;
    border-radius: 0;
    overflow: hidden;
}
body.consultor-mode:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) #conta-panel-benef-logado.conta-panel--benef-pro {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
}
body.consultor-mode:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) .conta-benef-profile.benef-pro-root {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
body.consultor-mode:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) .co-dash {
    flex: 1 1 0;
    min-height: 0;
    gap: 0;
}
body.consultor-mode:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) .co-dash-head {
    flex-shrink: 0;
    margin: 0;
    border-radius: 0 0 22px 22px;
    padding: max(14px, env(safe-area-inset-top, 0px)) 16px 18px;
    box-shadow: 0 8px 24px rgba(6, 95, 70, 0.22);
}
body.consultor-mode:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) .co-dash-scroll {
    flex: none;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding: 14px 12px calc(var(--bottom-nav-h) + var(--safe-bottom) + 24px);
}
body.consultor-mode:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) .benef-pro-actions {
    display: none;
}

/* Carteira consultor — layout rolável (classe no body; não depende de :has()) */
body.co-consultor-dash-active #app-shell > main {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    padding: 0;
}
/* PTR envolve as views num #app-ptr-body — sem flex:1 a carteira consultor fica com altura 0 */
body.co-consultor-dash-active #app-ptr-body,
body.consultor-mode:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) #app-ptr-body {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.co-consultor-dash-active #app-ptr-pull,
body.consultor-mode:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) #app-ptr-pull {
    flex-shrink: 0;
}
body.co-consultor-dash-active #app-ptr-body > #view-conta.view.active,
body.consultor-mode:has(#view-conta.active #conta-panel-benef-logado:not([hidden])) #app-ptr-body > #view-conta.view.active {
    display: flex !important;
    flex: 1 1 0;
    min-height: 0;
}
body.co-consultor-dash-active #view-conta.view.active {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
}
body.co-consultor-dash-active #view-conta .conta-login-card:has(#conta-panel-benef-logado:not([hidden])) {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: #f0f9f6;
}
body.co-consultor-dash-active #conta-panel-benef-logado.conta-panel--benef-pro {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
}
body.co-consultor-dash-active .conta-benef-profile.benef-pro-root {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.co-consultor-dash-active .co-dash {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    flex: 1 1 0;
    min-height: 0;
    gap: 0;
    overflow: hidden;
}
body.co-consultor-dash-active .co-dash-head {
    grid-row: 1;
    flex-shrink: 0;
}
body.co-consultor-dash-active #co-dash-scroll {
    grid-row: 2;
    flex: none;
    min-height: 0;
    max-height: none;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
}
/* Menu inferior: rótulos Carteira / Clientes / Extrato / Perfil sem cortar */
body.consultor-mode .bottom-nav--fab {
    min-height: calc(var(--bottom-nav-h) + var(--safe-bottom) + 6px);
    padding: 10px 2px max(12px, var(--safe-bottom));
    align-items: flex-end;
    overflow: visible;
}
body.consultor-mode .nav-tab {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 4px 2px 6px;
}
body.consultor-mode .nav-tab-label,
body.consultor-mode .nav-fab-caption {
    font-size: 0.6rem;
    line-height: 1.2;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
}
body.consultor-mode .nav-fab-slot {
    width: 72px;
}

.benef-pro-btn {
    width: 100%;
    margin: 0;
    padding: 15px 20px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.benef-pro-btn:active {
    transform: scale(0.987);
}

.benef-pro-btn--outline {
    background: var(--color-surface);
    color: var(--color-solar-green-dark);
    border: 2px solid rgba(0, 140, 74, 0.35);
    box-shadow: 0 2px 12px rgba(0, 107, 58, 0.08);
}

.benef-pro-btn--outline:active {
    background: rgba(0, 140, 74, 0.06);
}

.benef-pro-btn--sair {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-surface);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(12, 74, 110, 0.06);
    text-decoration: none;
}

.benef-pro-btn--sair:hover,
.benef-pro-btn--sair:focus {
    background: var(--color-bg);
    border-color: var(--color-solar-green-light);
}

.benef-pro-btn--sair:active {
    background: #e6f5ee;
    transform: scale(0.987);
}

.benef-sair-icon {
    font-size: 22px;
    color: var(--color-sky-light);
    flex-shrink: 0;
}

@keyframes benef-pro-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .benef-pro__hero-inner {
        animation: benef-pro-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .benef-pro__kpis .benef-pro__kpi:nth-child(1) {
        animation: benef-pro-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: 0.1s;
    }

    .benef-pro__kpis .benef-pro__kpi:nth-child(2) {
        animation: benef-pro-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: 0.18s;
    }

    .benef-pro__kpis .benef-pro__kpi:nth-child(3) {
        animation: benef-pro-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: 0.26s;
    }

    .benef-pro__plan-card {
        animation: benef-pro-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: 0.2s;
    }

    .benef-pro__sheet-wrap {
        animation: benef-pro-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: 0.28s;
    }

    .benef-pro-actions {
        animation: benef-pro-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: 0.34s;
    }
}

/* Portal Usina — cartões por usina no painel logado */
.benef-pro__usinas-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.benef-pro__usina-card {
    background: var(--color-surface);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 18px 18px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 14px 36px rgba(15, 23, 42, 0.06);
}

.benef-pro__usina-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benef-pro__usina-ico {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.14) 0%, rgba(52, 131, 250, 0.1) 100%);
    border: 1px solid rgba(14, 165, 233, 0.22);
}

.benef-pro__usina-card-head-text {
    min-width: 0;
    flex: 1;
}

.benef-pro__usina-eyebrow {
    display: block;
    margin: 0 0 2px;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #64748b;
}

.benef-pro__usina-name {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 780;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--color-text);
}

.benef-pro__usina-balance {
    margin: 14px 0 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.benef-pro__usina-balance-k {
    display: block;
    margin-bottom: 4px;
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #059669;
}

.benef-pro__usina-balance-v {
    display: block;
    font-size: clamp(1.22rem, 4.5vw, 1.42rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #047857;
    font-variant-numeric: tabular-nums;
}

.benef-pro__usina-balance-unit {
    font-size: 0.82rem;
    font-weight: 700;
    color: #059669;
    letter-spacing: -0.02em;
}

.benef-pro__usina-unit-suffix {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0;
}

.benef-pro__usina-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.benef-pro__usina-k {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.benef-pro__usina-v {
    display: block;
    margin-top: 3px;
    font-size: 0.86rem;
    font-weight: 620;
    letter-spacing: -0.02em;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

@media (max-width: 340px) {
    .benef-pro__kpis {
        gap: 8px;
    }
    .benef-pro__kpi {
        padding: 12px 6px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .benef-pro-btn:active {
        transform: none;
    }

    .benef-pro__hero-inner,
    .benef-pro__kpis .benef-pro__kpi,
    .benef-pro__plan-card,
    .benef-pro__sheet-wrap,
    .benef-pro-actions {
        animation: none !important;
    }
}

/* Evita cortar sombras do hero/KPI — exceto dashboard consultor (.co-dash), que precisa de overflow contido para scroll */
#view-conta .card.conta-login-card:has(#conta-panel-benef-logado:not([hidden])):not(:has(.co-dash)) {
    overflow: visible;
}

/* Carteira consultor: cadeia flex + área rolável mesmo se consultor-mode atrasar */
#conta-panel-benef-logado:not([hidden]):has(.co-dash) {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#conta-panel-benef-logado:not([hidden]) .conta-benef-profile.benef-pro-root:has(.co-dash) {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
}
#view-conta.active:has(#conta-panel-benef-logado:not([hidden]) .co-dash) {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
}
#view-conta.active .conta-login-card:has(#conta-panel-benef-logado:not([hidden]) .co-dash) {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* Conta: sem cartão do selo com portal pré-cadastro ou beneficiário logado (mais espaço para os dados) */
#view-conta.active:has(#conta-panel-precadastro:not([hidden]) #conta-pc-step-portal:not([hidden])) .conta-coopere-card,
#view-conta.active:has(#conta-panel-benef-logado:not([hidden])) .conta-coopere-card {
    display: none !important;
}

/* Folha “Instalar / atalho na tela inicial” — popover junto ao botão download */
.install-edu-modal {
    z-index: 205;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}
.install-edu-modal.open {
    display: block;
}
.install-edu-modal__sheet {
    position: absolute;
    top: calc(var(--app-header-h) + env(safe-area-inset-top, 0px) + 8px);
    right: 10px;
    left: auto;
    width: min(calc(100% - 20px), 400px);
    max-width: 400px;
    max-height: min(72dvh, 520px);
    border-radius: 16px;
    padding: 16px 16px calc(16px + var(--safe-bottom));
    animation: installPopoverIn 0.22s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 16px 48px rgba(15, 23, 42, 0.18),
        0 0 0 0.5px rgba(148, 163, 184, 0.15);
}
@keyframes installPopoverIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.install-edu-modal__sheet .install-edu-hero {
    position: relative;
    height: 64px;
    margin: -4px -6px 10px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0c4a6e 0%, #0d9488 45%, #22c55e 100%);
}
.install-edu-modal__sheet {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.96) 50%);
    backdrop-filter: var(--apple-blur-thin);
    -webkit-backdrop-filter: var(--apple-blur-thin);
    border: 0.5px solid rgba(255, 255, 255, 0.7);
    overflow-y: auto;
}
.install-edu-hero-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 80% 60%, rgba(253, 224, 71, 0.2) 0%, transparent 40%);
    pointer-events: none;
}
.install-edu-hero-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.2));
}
.install-edu-hero-icon svg {
    display: block;
}
.install-edu-subtitle {
    margin: 16px 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f766e;
    line-height: 1.35;
}
.install-edu-platform .install-edu-lead--tight {
    margin-bottom: 10px;
}
.install-edu-steps {
    margin: 0 0 4px;
    padding-left: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text);
}
.install-edu-steps li {
    margin-bottom: 6px;
}
.install-edu-modal__head h2 {
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f766e;
}
.install-edu-kicker {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}
.install-edu-lead {
    margin: 0 0 12px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--color-text);
}
.install-edu-cta {
    margin-top: 6px;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}
.install-edu-cta-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.install-edu-cta-ico {
    flex-shrink: 0;
    color: inherit;
}

.pwa-ios-modal {
    z-index: 225;
}
.pwa-ios-modal .modal-sheet {
    max-width: 400px;
}
.pwa-ios-steps {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--color-text);
}
.pwa-ios-steps li {
    margin-bottom: 12px;
}
.pwa-ios-lead {
    margin: 0 0 14px;
    padding: 12px 14px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    background: rgba(15, 118, 110, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(15, 118, 110, 0.12);
}
.pwa-ios-ico {
    display: inline-block;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-left: 4px;
}

/* Modal manutenção / indisponibilidade (Conta → APIs) */
.maintenance-modal {
    z-index: 235;
    background: radial-gradient(120% 80% at 50% 0%, rgba(20, 184, 166, 0.18), rgba(15, 23, 42, 0.42));
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.maintenance-modal__sheet {
    position: relative;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 0 0 1px rgba(45, 212, 191, 0.25),
        0 -28px 80px rgba(15, 118, 110, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    animation: maintenanceSheetGlow 3.2s ease-in-out infinite alternate;
}
@keyframes maintenanceSheetGlow {
    from { box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2), 0 -20px 50px rgba(15, 118, 110, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.65); }
    to { box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.45), 0 -32px 90px rgba(13, 148, 136, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.75); }
}
.maintenance-modal__orbit {
    position: absolute;
    top: -42px;
    left: 50%;
    width: 120px;
    height: 120px;
    margin-left: -60px;
    border-radius: 50%;
    background: conic-gradient(from 220deg, rgba(45, 212, 191, 0.95), rgba(14, 165, 233, 0.55), rgba(99, 102, 241, 0.65), rgba(45, 212, 191, 0.95));
    opacity: 0.35;
    filter: blur(18px);
    animation: maintenanceOrbitSpin 10s linear infinite;
    pointer-events: none;
}
@keyframes maintenanceOrbitSpin {
    to { transform: rotate(360deg); }
}
.maintenance-modal__head h2 {
    font-size: 1.28rem;
    letter-spacing: -0.02em;
    background: linear-gradient(105deg, var(--color-solar-green-dark), #0d9488 55%, #0369a1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.maintenance-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 6px 12px 6px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f766e;
    background: linear-gradient(90deg, rgba(204, 251, 241, 0.95), rgba(224, 242, 254, 0.9));
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 191, 0.35);
    width: fit-content;
}
.maintenance-modal__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #14b8a6;
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55);
    animation: maintenanceDotPulse 1.8s ease-out infinite;
}
@keyframes maintenanceDotPulse {
    0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}
.maintenance-modal__lead {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text);
}
.maintenance-modal__tech {
    margin: 0 0 16px;
    padding: 10px 12px;
    font-size: 0.75rem;
    line-height: 1.45;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #475569;
    background: rgba(241, 245, 249, 0.95);
    border-radius: 10px;
    border: 1px dashed rgba(100, 116, 139, 0.35);
    word-break: break-word;
}
.maintenance-modal__ok {
    width: 100%;
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 700;
}

/* ── Instalação Help — field ─────────────────────────────────── */
.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.field-label-row label { margin-bottom: 0; }

.instalacao-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    border: none;
    color: #fff;
    border-radius: 20px;
    padding: 4px 11px 4px 7px;
    font-size: 0.73rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(13,148,136,0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}
.instalacao-help-btn:active {
    transform: scale(0.94);
    box-shadow: 0 1px 4px rgba(13,148,136,0.2);
}
@keyframes instalacao-help-pulse {
    0%,100% { transform: scale(1); box-shadow: 0 2px 8px rgba(13,148,136,0.35); }
    50% { transform: scale(1.08); box-shadow: 0 4px 18px rgba(13,148,136,0.7); }
}
.instalacao-help-btn--pulse {
    animation: instalacao-help-pulse 0.9s ease-in-out 4;
}
.instalacao-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}
.field-hint-muted {
    margin: 4px 0 0;
    font-size: 0.73rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}
.field-hint-warn {
    color: #b45309;
    font-weight: 600;
}
/* Campo instalação com aviso vermelho pulsante */
#precadastro-form-root .field.register-field--warn label {
    color: #b45309;
}
#precadastro-form-root .field.register-field--warn input {
    background: #fffbeb;
    border-color: #fcd34d;
    animation: fieldPulseWarn 2s ease-in-out infinite;
}
@keyframes fieldPulseWarn {
    0%, 100% { border-color: #fcd34d; box-shadow: 0 0 0 0 rgba(251,191,36,0); }
    50%       { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(251,191,36,0.25); }
}
#precadastro-form-root .field.register-field--warn input:focus {
    animation: none;
    outline: 2px solid rgba(245,158,11,0.4);
    outline-offset: 1px;
}

/* ── Instalação Help — dialog (IHM) ─────────────────────────── */
.instalacao-help-modal {
    border: none;
    border-radius: 28px 28px 0 0;
    padding: 0;
    width: 100%;
    max-width: 480px;
    max-height: 96dvh;
    background: transparent;
    overflow: visible;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}
.instalacao-help-modal[open] {
    display: flex;
    flex-direction: column;
    animation: ihmUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes ihmUp {
    from { transform: translateX(-50%) translateY(100%); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);   opacity: 1; }
}
.instalacao-help-modal::backdrop {
    background: rgba(8, 20, 40, 0.55);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
}

/* frosted glass inner container */
.ihm-inner {
    position: relative;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.96) 0%,
        rgba(244,253,251,0.98) 100%);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-radius: 28px 28px 0 0;
    padding: 20px 20px calc(20px + var(--safe-bottom, 0px));
    border-top: 1px solid rgba(255,255,255,0.9);
    box-shadow:
        0 -2px 0 rgba(255,255,255,0.7) inset,
        0 -32px 80px rgba(13,148,136,0.08),
        0 -1px 0 rgba(13,148,136,0.12);
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: 96dvh;
}

/* header */
.ihm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.ihm-pill {
    display: inline-block;
    background: linear-gradient(135deg, #ccfbf1, #a7f3d0);
    color: #065f46;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 9px;
    border-radius: 20px;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.ihm-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.ihm-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(15,23,42,0.07);
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, transform 0.1s ease;
    margin-top: 2px;
}
.ihm-close:active { transform: scale(0.88); background: rgba(15,23,42,0.14); }

/* story dots */
.ihm-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}
.ihm-dot {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    border: none;
    background: rgba(15,23,42,0.12);
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.25s ease;
    position: relative;
    overflow: hidden;
}
.ihm-dot--active {
    background: #0d9488;
}
.ihm-dot--active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    border-radius: 3px;
    animation: ihmDotFill 5s linear both;
}
@keyframes ihmDotFill {
    from { transform: scaleX(0); transform-origin: left; }
    to   { transform: scaleX(1); transform-origin: left; }
}

/* slide stage */
.ihm-stage {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #f1f5f9;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    min-height: 200px;
}
.ihm-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1),
                transform 0.45s cubic-bezier(0.4,0,0.2,1);
    transform: translateX(40px);
}
.ihm-slide--active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    position: relative;
}
.ihm-slide--exit-left {
    opacity: 0;
    transform: translateX(-40px);
    position: absolute;
    inset: 0;
}
.ihm-slide--exit-right {
    opacity: 0;
    transform: translateX(40px);
    position: absolute;
    inset: 0;
}
.ihm-slide--enter-right {
    opacity: 0;
    transform: translateX(40px);
}

/* image */
.ihm-img-wrap {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ihm-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}
svg.ihm-img {
    object-fit: unset;
    overflow: hidden;
}
/* fallback placeholder shown while image hasn't loaded */
.ihm-img[src$=".jpg"]:not([complete]) {
    min-height: 180px;
    background: linear-gradient(135deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: ihmSkeleton 1.4s ease infinite;
}
@keyframes ihmSkeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* pulsing spotlight on image */
.ihm-img-pulse {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 40% at 65% 35%,
        rgba(20,184,166,0.18) 0%,
        transparent 70%);
    pointer-events: none;
    animation: ihmPulse 2.8s ease-in-out infinite;
}
@keyframes ihmPulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

/* badge overlay on image */
.ihm-badge-wrap {
    position: absolute;
    bottom: 10px;
    left: 10px;
}
.ihm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 4px 10px 4px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.ihm-badge svg { color: #0d9488; flex-shrink: 0; }

/* caption */
.ihm-caption {
    background: #fff;
    border-radius: 0 0 18px 18px;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(15,23,42,0.06);
}
.ihm-caption-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.ihm-caption-text {
    margin: 0;
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.55;
}
.ihm-caption-text em { font-style: italic; color: #0d9488; }
.ihm-caption-text strong { font-weight: 700; color: #0f172a; }

/* swipe hint */
.ihm-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 10px 0 0;
    animation: ihmFadeOut 0.4s ease 3.5s both;
}
@keyframes ihmFadeOut {
    to { opacity: 0; pointer-events: none; height: 0; margin: 0; overflow: hidden; }
}
.ihm-swipe-icon { letter-spacing: 4px; }

/* CTA button */
.ihm-cta {
    width: 100%;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 15px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 16px rgba(13,148,136,0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    letter-spacing: 0.01em;
}
.ihm-cta:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(13,148,136,0.2);
}
