/* VERSION_MARKER: 200326.0500 */
:root {
    /* Paleta Claro - Premium */
    --primary: #004a99;
    --accent: #f9b233;
    --white: #ffffff;
    --bg: #f4f7f9;
    --card-bg: #ffffff;
    --card-bg-rgb: 255, 255, 255;
    --text-main: #1a1a1a;
    --text-sub: #666666;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Cores de Módulos (Premium) */
    --clr-red: #f43f5e;
    --clr-purple: #8b5cf6;
    --clr-cyan: #06b6d4;
    --clr-yellow: #f59e0b;
    --clr-green: #10b981;
    --clr-blue: #3b82f6;
    --clr-pink: #ec4899;
    --clr-slate: #64748b;
    --clr-primary: #004a99;
    --primary-rgb: 0, 74, 153;
}

html:not(.auth-verified) body>*:not(#loading-screen):not(#system-console-wrapper),
html:not(.loader-finished) body>*:not(#loading-screen):not(#system-console-wrapper) {
    display: none !important;
}

/* Blindagem de Loader - MantÃÂ©m o fundo azul atÃÂ© que a interface esteja pronta */
html:not(.loader-finished) body {
    background: #004a99 !important;
}

:root.dark-mode {
    /* Paleta Escuro - Deep Slate / Premium Night */
    --bg: #0f172a;
    /* Cinza azulado muito profundo (Slate 950) */
    --primary: #1e293b;
    /* Slate 800 */
    --card-bg: #1e293b;
    --card-bg-rgb: 30, 41, 59;
    /* Slate 800 (1e, 29, 3b) */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-sub: #94a3b8;
    /* Slate 400 */
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --accent: #ffb833;
    /* Amarelo um pouco mais vibrante para contraste */
}

/* Fallback e reforço para elementos específicos no modo escuro */
:root.dark-mode .menu-card,
:root.dark-mode .menu-opt,
:root.dark-mode .modal-content,
:root.dark-mode .main-button {
    background: var(--card-bg) !important;
    color: var(--text-main) !important;
    border-color: var(--border) !important;
}

:root.dark-mode .menu-card i,
:root.dark-mode .menu-opt i {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

:root.dark-mode .version-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

:root.dark-mode .version-label,
:root.dark-mode #app-version-display {
    color: var(--text-sub) !important;
}

* {
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;

}

/* --- TRANSIÇÃO DE TEMA INTELIGENTE (Suave) --- */
.theme-transitioning,
.theme-transitioning * {
    transition: background 0.5s ease,
        background-color 0.5s ease,
        color 0.5s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease,
        filter 0.5s ease !important;
}

/* Transições para elementos interativos */
.menu-card,
.btn-nav,
.main-button,
.menu-opt,
.summary-card,
.tab-btn {
    transition: var(--transition);
}

#offline-indicator {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: transparent;
    color: #ff4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 100001;
    filter: drop-shadow(0 0 8px rgba(255, 68, 68, 0.6));
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

#offline-indicator.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    animation: wifi-broken-pulse 2s infinite ease-in-out;
}

@keyframes wifi-broken-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(255, 68, 68, 0.6));
    }

    50% {
        transform: scale(1.15);
        opacity: 0.7;
        filter: drop-shadow(0 0 15px rgba(255, 68, 68, 0.9));
    }
}

/* Aplica o fundo no HTML tambÃÂ©m para telas grandes */
html {
    background: #004a99;
    /* Cor padrÃÂ£o do loader para evitar flashes brancos */
    width: 100vw;
    height: 100dvh;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    /* DistribuiÃÂ§ÃÂ£o mais controlada para evitar quebras em telas muito altas */
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    /* Adicione para evitar que a tela balance para os lados */
    padding-bottom: env(safe-area-inset-bottom, 15px);
}

body::-webkit-scrollbar {
    display: none;
}

/* --- INDICADOR DE TESTE --- */
.test-mode-badge {
    position: absolute;
    top: 18px !important;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    background: rgba(255, 184, 51, 0.2);
    color: #ffb833;
    font-weight: 900;
    font-size: 8px;
    padding: 3px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 184, 51, 0.5);
    backdrop-filter: blur(8px);
    letter-spacing: 0.8px;
    pointer-events: none;
    animation: testPulse 2s infinite ease-in-out;
    text-transform: uppercase;
}

/* --- LOADER PREMIUM*/
/* ==========================================================================
   PROMPT DE CONVITE PARA NOTIFICAÇÕES (SOFT-ASK)
   ========================================================================== */
.notif-soft-ask-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-soft-ask-overlay.open {
    opacity: 1;
    visibility: visible;
}

.notif-soft-ask-card {
    background: var(--card-bg);
    max-width: 400px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 74, 153, 0.25);
    border: 1px solid var(--border);
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notif-soft-ask-overlay.open .notif-soft-ask-card {
    transform: translateY(0);
}

.notif-soft-ask-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.notif-soft-ask-icon-ring {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: pulse-notif 2s infinite;
}

@keyframes pulse-notif {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.notif-soft-ask-body {
    padding: 30px;
    text-align: center;
}

.notif-soft-ask-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
}

.notif-soft-ask-body p {
    font-size: 0.95rem;
    color: var(--text-main);
    opacity: 0.75;
    line-height: 1.6;
    margin-bottom: 25px;
}

.notif-soft-ask-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-notif-confirm {
    background: var(--primary);
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-notif-confirm:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-notif-cancel {
    background: transparent;
    color: var(--text-main);
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-notif-cancel:hover {
    background: rgba(var(--primary-rgb), 0.05);
    opacity: 1;
}

@media (min-width: 1024px) {
    .notif-soft-ask-card {
        max-width: 440px;
    }
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: radial-gradient(circle at center, #005bb7 0%, #004a99 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    transition: all 0.7s cubic-bezier(0.65, 0, 0.35, 1);
    overflow: hidden;
}

#loading-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="500" cy="500" r="400" fill="none" stroke="white" stroke-width="0.5" stroke-opacity="0.1"/></svg>');
    animation: loaderRotate 20s linear infinite;
    opacity: 0.3;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.logo-container {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: loaderPulse 2s ease-in-out infinite;
    z-index: 2;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: loaderFade 2s infinite ease-in-out;
}

.loading-subtext {
    color: white;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: -20px;
    opacity: 0.5;
    text-transform: none;
    font-style: italic;
    transition: opacity 0.3s ease;
}

.loader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(1.02);
    /* Escala reduzida para evitar bounce */
    pointer-events: none !important;
    transition: opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1),
        visibility 0.6s linear,
        transform 0.8s cubic-bezier(0.65, 0, 0.35, 1) !important;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(249, 178, 51, 0));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(249, 178, 51, 0.4));
    }
}

@keyframes loaderRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderFade {

    0%,
    100% {
        opacity: 0.6;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

/* --- BOTÃÂO MENU (Canto Esquerdo) --- */
.btn-nav {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(5px);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- ÃÂCONE DO APP (Canto Direito) --- */
.icon-fixo {
    position: fixed;
    top: 15px;
    right: 15px;
    width: clamp(40px, 10vw, 45px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    z-index: 1001;
    border-radius: 10px;
    /* Toque de design leve */
}

/* Banner Container Base - Unificado e Ampliado */
#banner-container {
    position: relative;
    width: 92%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    margin: -25px auto 0 auto;
    z-index: 11;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-error {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #94a3b8;
    gap: 10px;
}

.banner-error i {
    font-size: 24px;
    color: #f59e0b;
}

.banner-error span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- HERO (Banner Superior) --- */
.hero {
    position: relative;
    width: 100%;
    background: var(--primary);
    padding: clamp(30px, 6vh, 45px) 20px clamp(25px, 5vh, 40px) 20px;
    text-align: center;
    color: white;
    border-bottom-left-radius: clamp(25px, 8vw, 35px);
    border-bottom-right-radius: clamp(25px, 8vw, 35px);
    flex-shrink: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Experimento: Branding Pattern & Footer Infos (Desktop Only) */
.hero-branding-pattern,
.hero-footer-unit,
.hero-footer-link {
    display: none;
}

.hero h1 {
    margin: 0;
    font-size: clamp(55px, 16vw, 75px);
    /* Aumentado para nÃÂ£o ficar muito pequeno, mantendo a harmonia */
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: 1.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(90deg, #fff, #a5c9ff, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: apoioPulse 3s infinite ease-in-out, APOIO_SHIMMER 3s linear infinite;
}

@keyframes apoioPulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

@keyframes APOIO_SHIMMER {
    to {
        background-position: 200% center;
    }
}

/* Variantes de Estilo Hero (No-Code Branding) */
.hero.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #0066cc 50%, var(--primary) 100%);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
}

.hero.hero-glass {
    background: rgba(var(--primary-rgb, 0, 74, 153), 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero.hero-minimal {
    background: #fff;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
}

.hero.hero-minimal h1 {
    background: var(--primary);
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


.hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.hero p {
    margin: 0;
    font-size: clamp(12px, 3.5vw, 16px);
    opacity: 0.95;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* --- BADGE AL1 --- */
.badge-al1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9b233 0%, #ffde9c 50%, #f9b233 100%);
    color: #004a99;
    padding: 1px 10px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 9px;
    box-shadow: 0 2px 8px rgba(249, 178, 51, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 16px;
    margin-left: -2px;
    /* Aproxima do texto */
}

.badge-al1::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine-effect 2.5s infinite linear;
}

@keyframes shine-effect {
    0% {
        left: -150%;
    }

    30%,
    100% {
        left: 150%;
    }
}

/* --- MENUS E BOTÃÂES (NOVO LAYOUT UNIFORME) --- */
.menu-container {
    width: 92%;
    max-width: 500px;
    margin: clamp(5px, 2vh, 15px) auto;
    z-index: 10;
    /* Remove o flex: 1 para nÃÂ£o "sugar" todo o espaÃÂ§o e causar buracos */
    display: flex;
    flex-direction: column;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.menu-card {
    background: var(--card-bg);
    padding: 10px 4px;
    border-radius: 24px;
    /* Mais arredondado seguindo a nova tendência do projeto */
    text-decoration: none;
    color: var(--text-main);
    /* Sombra multi-camada para efeito premium de profundidade */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        0 10px 15px -3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    min-height: 72px;
    /* Reduzido de 85px */
    position: relative;
    overflow: hidden;
}

.menu-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.menu-card:active {
    transform: scale(0.92) translateY(2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu-card i {
    font-size: 30px;
    margin-bottom: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;

    /* --- EFEITO UNIFICADO (Sunken Solid - Identidade Pague Menos) --- */
    color: var(--primary);
    /* Ícone sólido conforme menu lateral */
    -webkit-text-stroke: 0;
    /* Remove o contorno vazado anterior */

    /* Sombras de entalhe ultra-sutis para profundidade profissional */
    text-shadow:
        -1px -1px 2px rgba(0, 74, 153, 0.18),
        1px 1px 1.5px rgba(255, 255, 255, 0.8);

    opacity: 0.95;
}

/* --- EXCEÇÃO POSITIVA: Cliente Oculto (Destaque em Vermelho Premium) --- */
#service-cliente_oculto i {
    color: var(--clr-red) !important;
    text-shadow:
        -1px -1px 2px rgba(185, 28, 28, 0.25),
        1px 1px 1px rgba(255, 255, 255, 0.6);
}

:root.dark-mode .menu-card i {
    color: rgba(255, 255, 255, 0.05);
    text-shadow:
        -1px -1px 2px rgba(0, 0, 0, 0.5),
        1px 1px 1px rgba(255, 255, 255, 0.05);
}

/* Identidade Visual no Hover: Acende o ícone */
.menu-card:hover i {
    transform: scale(1.1) translateY(-2px);
    color: var(--primary);
    /* Azul Pague Menos acende aqui */
    text-shadow: 0 4px 10px rgba(0, 74, 153, 0.15);
    /* Brilho suave */
}

:root.dark-mode .menu-card:hover i {
    color: var(--accent);
    text-shadow: 0 4px 15px rgba(249, 178, 51, 0.3);
}

.menu-card span {
    font-size: 8.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    opacity: 0.6;
    /* Muito sutil para não brigar com o ícone entalhado */
    color: var(--primary);
    transition: all 0.3s ease;
}

.menu-card:hover span {
    opacity: 1;
    letter-spacing: 1.5px;
}

:root.dark-mode .menu-card span {
    color: var(--text-main);
}

/* Estado de Desenvolvimento (Bloqueado) */
.menu-card-disabled {
    filter: grayscale(1) brightness(0.5) !important;
    opacity: 0.7;
    cursor: default;
}

.menu-card-disabled:active {
    transform: none !important;
    box-shadow: inherit !important;
}

/* --- COLUNA CENTRAL (Banner + Dica) --- */
.center-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Container para mobile e PC facilitado */
.main-content-desktop {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    opacity: 0;
    /* ComeÃÂ§a invisÃÂ­vel para sincronizar com a saÃÂ­da do loader */
    transition: opacity 0.8s ease-in-out;
}

.main-content-desktop.show {
    opacity: 1;
    /* Garante que o conteÃÂºdo principal empurre o rodapÃÂ© se necessÃÂ¡rio, mas sem esticar */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#banner-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #f9b233, #ffcf7a);
    width: 0%;
    z-index: 10;
    border-radius: 0 3px 3px 0;
    opacity: 0.7;
    transition: width 0.1s linear;
}

#banner-progress-bar.buffering {
    animation: progressPulse 1.5s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes progressPulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.4;
    }
}

#banner-content {
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out;
    background: #000;
    position: relative;
    overflow: hidden;
}

.banner-bg-blur {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    filter: blur(12px) brightness(0.8);
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 1;
    opacity: 0.6;
    animation: bannerBgPan 15s ease-in-out infinite alternate;
}

@keyframes bannerBgPan {
    0% {
        transform: translate(-45%, -45%) scale(1.5);
    }

    100% {
        transform: translate(-55%, -55%) scale(1.5);
    }
}

.banner-fg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    display: block;
}

/* DegradÃÂª padrÃÂ£o (25%) para mÃÂ­dias estreitas - Mais espalhado e suave */
.banner-fg-standard {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%);
}

/* DegradÃÂª sutil (15%) para mÃÂ­dias que preenchem bem o espaÃÂ§o */
.banner-fg-subtle {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.fade-out {
    opacity: 0 !important;
}

.banner-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #004a99 0%, #003366 100%);
    color: white;
    text-align: center;
}

.banner-error small {
    font-size: 9px;
    opacity: 0.7;
    font-weight: 400;
    line-height: 1.1;
    display: block;
    margin-top: 2px;
    text-transform: none;
}

/* --- RODAPÃÂ --- */
.footer-logo {
    width: 100%;
    padding: 10px 0;
    margin-top: 15px;
    /* Trocado auto por 15px para juntar com os botÃÂµes */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

.footer-logo img {
    width: clamp(80px, 20vw, 100px);
    border-radius: 12px;
    margin-bottom: 5px;
}

footer {
    font-size: clamp(9px, 2.5vw, 11px);
    color: #999;
    text-align: center;
    padding: 0 20px;
}

.version-card {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 74, 153, 0.05);
    border: 1px solid rgba(0, 74, 153, 0.1);
    border-radius: 100px;
}

.version-label,
#app-version-display {
    font-size: 9px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#app-version-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    font-weight: bold;
    color: var(--accent);
}

/* --- MODAIS GERAIS (UnificaÃÂ§ÃÂ£o Global) --- */
.modal,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(10, 25, 47, 0.85);
    /* Fundo Indigo Profundo da imagem */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    padding: 20px;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
}

/* Quando visÃÂ­vel por JS (display: flex) */
.modal[style*="display: flex"],
.modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.modal-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 28px;
    width: 95%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 20px;
}

.main-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 74, 153, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- MODAIS: AÃÂ§ÃÂµes e BotÃÂµes Premium --- */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    width: 100%;
}

.modal-actions button,
.btn-modal {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

/* BotÃÂ£o de Cancelar */
.btn-modal-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0 !important;
}

:root.dark-mode .btn-modal-cancel {
    background: #334155;
    color: #cbd5e1;
    border-color: #475569 !important;
}

.btn-modal-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

/* BotÃÂ£o de Salvar / Confirmar */
.btn-modal-save,
.btn-modal-confirm {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.2);
}

.btn-modal-save:hover,
.btn-modal-confirm:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 74, 153, 0.3);
}

/* BotÃÂ£o de Perigo / Excluir */
.btn-modal-danger {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-modal-danger:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
}

.modal-actions button:active {
    transform: scale(0.96);
}

.main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 74, 153, 0.3);
    filter: brightness(1.1);
}

.main-button:active {
    transform: translateY(1px) scale(0.98);
}

.danger-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    justify-content: center;
}

.danger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
    filter: brightness(1.1);
}

.danger-button:active {
    transform: translateY(1px) scale(0.98);
}

.menu-opt {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #f9f9f9;
    color: #444;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.menu-opt i {
    color: var(--primary);
    width: 20px;
}

.menu-opt.install-ready {
    background: #fff4e0;
    border-color: var(--accent);
}

/* --- NOVO MENU LATERAL (SIDE MENU PREMIUM 2.0) --- */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    backdrop-filter: blur(8px);
    visibility: hidden;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.side-menu-overlay.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: rgba(var(--card-bg-rgb, 255, 255, 255), 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 10001;
    transform: translateX(-105%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    /* Garante que nada saia do menu */
}

:root.dark-mode .side-menu {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.side-menu.active {
    transform: translateX(0);
}

.side-menu-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0066cc 100%);
    padding: 50px 25px 30px 25px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 74, 153, 0.3);
    position: relative;
    overflow: hidden;
}

.side-menu-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(30px);
}



.user-id-container {
    display: flex;
    align-items: center;
    gap: 18px;
    animation: slideRightMenu 0.5s ease backwards 0.2s;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}



.user-avatar.gr-mode {
    width: 100px;
    height: 45px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f9b233 0%, #ffde9c 50%, #f9b233 100%);
    border-color: rgba(255, 255, 255, 0.6);
    color: #1a1a1a;
    box-shadow: 0 8px 25px rgba(249, 178, 51, 0.4);
    font-size: 24px;
}

.user-avatar.gr-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine-effect 2.5s infinite linear;
    z-index: 1;
}



.user-info {
    display: flex;
    flex-direction: column;
}

.user-info .filial-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    font-weight: 600;
}

.user-info .filial-num {
    font-size: 20px;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.side-menu-content {
    padding: 25px 15px 80px 15px;
    /* Aumentado padding inferior para respiro no scroll */
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    /* Crucial para o flexbox permitir scroll interno */
    overscroll-behavior: contain;
    /* Impede que o scroll 'vaze' para a pÃÂ¡gina principal */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.side-menu-content::-webkit-scrollbar {
    width: 4px;
}

.side-menu-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.side-menu-content h4 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-sub);
    letter-spacing: 2px;
    margin: 25px 0 15px 15px;
    font-weight: 800;
    opacity: 0.6;
}

.side-menu .menu-opt {
    margin: 5px 10px;
    border-radius: 15px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 18px;
    animation: slideRightMenu 0.4s ease backwards;
}

.side-menu .menu-opt:hover {
    background: rgba(0, 74, 153, 0.08);
    transform: translateX(8px);
    border-color: rgba(0, 74, 153, 0.1);
}

:root.dark-mode .side-menu .menu-opt:hover {
    background: rgba(255, 255, 255, 0.05);
}

.side-menu .menu-opt i {
    width: 30px;
    font-size: 18px;
}

/* Staggered Animation Delays */
.side-menu .menu-opt:nth-child(1) {
    animation-delay: 0.1s;
}

.side-menu .menu-opt:nth-child(2) {
    animation-delay: 0.15s;
}

.side-menu .menu-opt:nth-child(3) {
    animation-delay: 0.2s;
}

.side-menu .menu-opt:nth-child(4) {
    animation-delay: 0.25s;
}

.side-menu .menu-opt:nth-child(5) {
    animation-delay: 0.3s;
}

.side-menu .menu-opt:nth-child(6) {
    animation-delay: 0.35s;
}

@keyframes slideRightMenu {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.side-menu-footer {
    padding: 25px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- EFEITOS DE TRANSIÃÂÃÂO (Centralizado) --- */

/* 1. TransiÃÂ§ÃÂ£o Profissional (Geral) */
#transition-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 10000000 !important;
    /* No topo de quase tudo */
    background: var(--primary) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-exit #transition-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Efeito de saÃÂ­da suave na pÃÂ¡gina */
.main-content-desktop,
body>div:not(#transition-overlay,
    #water-fill-container,
    #loading-screen,
    .btn-nav,
    .icon-fixo,
    .side-menu,
    .side-menu-overlay,
    #toast-container,
    #update-banner,
    #success-banner,
    .banner-overlay) {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.4s ease-out;
    will-change: transform, opacity, filter;
}

body.page-exit .main-content-desktop,
body.page-exit body>div:not(#transition-overlay, #water-fill-container, #loading-screen, .btn-nav, .icon-fixo, .side-menu, .side-menu-overlay, #toast-container) {
    transform: scale(0.96) translateY(-10px);
    opacity: 0 !important;
    filter: blur(8px);
}

/* Classe de entrada suave para Transitions.js */
.page-enter-active {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
}

/* 2. TransiÃÂ§ÃÂ£o LÃÂ­quida (Exclusiva HidrÃÂ´metro) */
#water-fill-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
    filter: url('#liquid-gooey');
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.start-water-fill #water-fill-container,
body.water-drain #water-fill-container {
    opacity: 1;
    visibility: visible;
}

.water-layer {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 110%;
    background: var(--primary);
    transform: translateY(105%);
    border-radius: 45% 45% 0 0;
}

body.start-water-fill .water-layer {
    animation: curtainRise 2s cubic-bezier(0.45, 0, 0.55, 1) forwards,
        curtainWave 0.5s infinite alternate ease-in-out;
}

@keyframes curtainRise {
    0% {
        transform: translateY(105%);
    }

    100% {
        transform: translateY(0%);
    }
}

@keyframes curtainWave {
    0% {
        border-radius: 35% 65% 0 0 / 10% 15% 0 0;
    }

    100% {
        border-radius: 65% 35% 0 0 / 15% 10% 0 0;
    }
}

@keyframes dropExpand {
    0% {
        transform: scale(0);
        border-radius: 50%;
    }

    40% {
        transform: scale(15);
        border-radius: 45%;
    }

    100% {
        transform: scale(100);
        border-radius: 0;
    }
}

.bubble {
    position: absolute;
    bottom: -50px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.8);
    z-index: 15;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) scale(1) translateX(0);
        opacity: 0;
    }

    15% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(-50vh) scale(1.2) translateX(30px);
    }

    100% {
        transform: translateY(-120vh) scale(1.5) translateX(-20px);
        opacity: 0;
    }
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 15%;
    animation: bubbleFloat 4s infinite ease-in 0.5s;
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 35%;
    animation: bubbleFloat 3s infinite ease-in 1.2s;
}

.bubble:nth-child(3) {
    width: 30px;
    height: 30px;
    left: 55%;
    animation: bubbleFloat 5s infinite ease-in 0.8s;
}

.bubble:nth-child(4) {
    width: 15px;
    height: 15px;
    left: 75%;
    animation: bubbleFloat 4s infinite ease-in 2s;
}

.bubble:nth-child(5) {
    width: 50px;
    height: 50px;
    left: 85%;
    animation: bubbleFloat 6s infinite ease-in 0.2s;
}

/* Estados de AtivaÃÂ§ÃÂ£o do HidrÃÂ´metro */
body.start-water-fill #water-fill-container {
    opacity: 1;
    visibility: visible;
}

/* Estado de drenagem para saÃÂ­da do HidrÃÂ´metro */
body.water-drain .main-content-desktop {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.water-drain #water-fill-container {
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.45, 0, 0.55, 1);
}

#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: auto;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast {
    background: rgba(0, 74, 153, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--accent);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}



:root.dark-mode .main-button p,
:root.dark-mode footer,
:root.dark-mode footer strong {
    color: var(--text-sub) !important;
}


/* Entre a transiÃÂ§ÃÂ£o e o banner */



@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- BANNERS DE ATUALIZAÃÂÃÂO --- */
#update-banner,
#success-banner {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 85% !important;
    max-width: 320px !important;
    background: white !important;
    z-index: 20000000 !important;
    /* Topo absoluto, acima da transiÃÂ§ÃÂ£o */
    padding: 30px 20px !important;
    border-radius: 28px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
    text-align: center !important;
    display: none;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    border: none !important;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.banner-overlay {
    z-index: 1999999 !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

body.modal-open {
    overflow: hidden;
}

/* Dark Mode para Banners centrais */
:root.dark-mode #update-banner,
:root.dark-mode #success-banner {
    background: #1e293b !important;
    color: #f8fafc !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8) !important;
}

:root.dark-mode #update-banner p,
:root.dark-mode #success-banner p {
    color: #94a3b8 !important;
}

:root.dark-mode #update-changes-text,
:root.dark-mode #current-version-text {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-color: var(--primary) !important;
}

/* --- CABEÇALHO HERO PREMIUM --- */

/* --- CABEÃÂALHO HERO PREMIUM --- */
.hero-header {
    width: 100%;
    background: var(--primary);
    padding: clamp(20px, 5vh, 40px) 20px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    position: relative;
    color: white;
}

.btn-back-hero {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
}

.btn-back-hero:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.3);
}

.header-content {
    text-align: center;
    flex: 1;
}

.header-content h1 {
    margin: 0;
    font-size: clamp(16px, 4.5vw, 20px);
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-content p {
    margin: 2px 0 0 0;
    font-size: 9px;
    opacity: 0.8;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- ESTILOS DE ATUALIZAÃÂÃÂO --- */
.version-old {
    color: #dc3545;
    text-decoration: line-through;
    opacity: 0.7;
}

.version-new {
    color: #2e7d32;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.1);
}

/* --- ANIMAÃÂÃÂES DE MÃÂDIA --- */
#banner-progress-bar.buffering {
    animation: progressLoading 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #004a99 0%, #00aaff 50%, #004a99 100%) !important;
    background-size: 200% auto !important;
}

@keyframes progressLoading {
    0% {
        background-position: 0% center;
        opacity: 0.6;
    }

    50% {
        background-position: 100% center;
        opacity: 1;
    }

    100% {
        background-position: 0% center;
        opacity: 0.6;
    }
}

/* --- PROFILE MODAL V2 (PREMIUM INDIGO) --- */
.profile-modal.v2 {
    max-width: 420px !important;
    max-height: 90vh !important;
    border-radius: 35px !important;
    background: var(--card-bg) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4) !important;
    animation: modalSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.profile-modal.v2::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-header-v2 {
    background: var(--primary);
    /* Cor de fallback sólida */
    background: linear-gradient(135deg, var(--primary), #003366);
    padding: 50px 30px 35px;
    text-align: center;
    color: white !important;
    /* Força cor branca para os textos do cabeçalho */
    position: relative;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    box-shadow: 0 10px 30px rgba(0, 74, 153, 0.2);
}

.profile-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.profile-avatar-v2 {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.status-indicator {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid var(--primary);
}

.status-indicator.online {
    background: #22c55e;
    box-shadow: 0 0 15px #22c55e;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.profile-header-v2 h3 {
    font-size: 28px;
    font-weight: 950;
    margin: 0;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.profile-header-v2 p {
    font-size: 14px;
    opacity: 0.8;
    margin: 5px 0 15px;
    font-weight: 500;
}

.role-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-body {
    padding: 30px;
}

.section-label {
    display: block;
    font-size: 10px;
    font-weight: 950;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-sub);
}

.stat-value {
    font-size: 16px;
    font-weight: 950;
    color: var(--text-main);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    width: fit-content;
}

.status-pill.active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.profile-actions-v2 {
    border-top: 1px solid var(--border);
    padding-top: 25px;
}

.actions-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    border: none;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
}

.action-btn.secondary {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.action-btn.secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 74, 153, 0.05);
}

.action-btn.logout {
    background: #fee2e2;
    color: #ef4444;
}

.action-btn.logout:hover {
    background: #fecaca;
    transform: translateY(-2px);
}

.close-profile-v2 {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
    z-index: 10;
}

.close-profile-v2:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* --- TRANSIÃÂÃÂES DE SAÃÂDA --- */
.page-exit {
    pointer-events: none !important;
}

/* Estilos do Modal de Perfil Ultra-Premium (Baseado na Identidade APOIO) */
.profile-modal {
    text-align: center;
    padding: 0 !important;
    border-radius: 40px !important;
    /* Bordas ultra arredondadas */
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    border: none !important;
    max-width: 380px !important;
    background: white !important;
}

.profile-header {
    background: #004a99;
    /* Azul Pague Menos Puro / Fundo da Imagem */
    padding: 55px 30px 30px;
    color: white;
    position: relative;
    border-bottom: none;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    margin: 0 auto 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.profile-header h3 {
    margin: 0;
    font-size: 26px;
    /* Aumentado conforme imagem */
    color: white;
    font-weight: 850;
    letter-spacing: -0.5px;
}

.profile-header #profile-email-text {
    margin: 8px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.profile-header h3.gr-title-gold {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f9b233 0%, #ffde9c 50%, #f9b233 100%) !important;
    color: #1a1a1a !important;
    padding: 12px 35px !important;
    border-radius: 14px !important;
    font-weight: 950 !important;
    font-style: italic !important;
    font-size: 24px !important;
    box-shadow:
        0 10px 20px rgba(184, 134, 11, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.6) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    position: relative;
    overflow: hidden;
    animation: floating-gr 3.5s infinite ease-in-out !important;
    margin: 10px auto;
}

.profile-header h3.gr-title-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine-effect 2.5s infinite linear;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    padding: 35px 30px 25px;
    text-align: left;
}

.info-item label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #a0a0a0;
    margin-bottom: 6px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.info-item span {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.status-active {
    color: #00a676 !important;
    /* Verde da imagem */
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800 !important;
}

.status-active::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #00a676;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 166, 118, 0.4);
}

.danger-button {
    background: #ffffff;
    color: #ef4444;
    border: 1.5px solid #ef4444;
    /* Borda redina da imagem */
    padding: 16px;
    border-radius: 16px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: center;
}

.danger-button:hover {
    background: rgba(239, 68, 68, 0.05);
    transform: translateY(-2px);
}

.danger-button:hover {
    background: rgba(239, 68, 68, 0.05);
}

.close-profile {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-profile:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.profile-actions {
    padding: 0 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-actions .main-button {
    background: #00a676 !important;
    /* Verde da Imagem */
    border: none !important;
    padding: 16px !important;
    border-radius: 16px !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    color: white !important;
    box-shadow: 0 10px 20px rgba(0, 166, 118, 0.2) !important;
    height: auto !important;
}

.profile-actions .main-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* --- SISTEMA DE TOASTS PREMIUM --- */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100002;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 90%;
    max-width: 350px;
}

.toast-premium {
    background: rgba(var(--card-bg-rgb, 255, 255, 255), 0.8);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.toast-premium.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-premium i {
    font-size: 18px;
}

.toast-success i {
    color: #10b981;
}

.toast-error i {
    color: #ef4444;
}

.toast-info i {
    color: #6366f1;
}

/* --- MODAL DE CONFIRMAÃÂÃÂO CUSTOMIZADO --- */
.confirm-modal-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-modal-icon {
    font-size: 45px;
    color: var(--accent);
    margin-bottom: 20px;
}

.confirm-modal-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.confirm-modal-message {
    font-size: 15px;
    color: var(--text-sub);
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.confirm-btn-yes {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-btn-no {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.dark-mode .confirm-btn-no {
    background: rgba(255, 255, 255, 0.1);
}

.confirm-btn-yes:active,
.confirm-btn-no:active {
    transform: scale(0.95);
}

.menu-opt.install-ready {
    background: linear-gradient(to right, rgba(249, 178, 51, 0.1), transparent);
    border-left: 4px solid var(--accent);
    animation: install-pulse 2s infinite;
}

@keyframes install-pulse {

    0%,
    100% {
        background: linear-gradient(to right, rgba(249, 178, 51, 0.1), transparent);
    }

    50% {
        background: linear-gradient(to right, rgba(249, 178, 51, 0.2), transparent);
    }
}

/* --- INDICADORES DE AMBIENTE DE TESTE --- */
.loader-test-label {
    margin-top: 15px;
    background: rgba(255, 184, 51, 0.15);
    color: #ffb833;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 184, 51, 0.3);
    animation: testPulse 2s infinite ease-in-out;
    text-transform: uppercase;
}

.test-environment-card {
    background: rgba(255, 184, 51, 0.15);
    color: #ffb833;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    display: inline-block;
    border: 1px solid rgba(255, 184, 51, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: testPulse 2s infinite ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    z-index: 100;
}

@keyframes testPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* --- GESTÃÂO DE SERVIÃÂOS ATIVOS --- */
.menu-card.service-disabled {
    opacity: 0.4 !important;
    filter: grayscale(1) brightness(0.8) !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
}

.menu-card.service-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.menu-card.service-disabled i {
    color: #64748b !important;
}

/* --- MENU ADMINISTRATIVO COLAPSÃÂVEL --- */
.admin-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    margin: 10px 10px 5px 10px;
    background: rgba(0, 74, 153, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 74, 153, 0.1);
}

.admin-toggle span {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-toggle i {
    font-size: 12px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.admin-toggle:hover {
    background: rgba(0, 74, 153, 0.1);
}

.admin-toggle.active i {
    transform: rotate(180deg);
}

.admin-sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    padding-left: 10px;
}

.admin-sub-menu.open {
    max-height: 600px;
    /* Aumentado para garantir que todos os itens apareÃÂ§am sem corte */
    opacity: 1;
    margin-bottom: 10px;
}

/* --- OTIMIZAÇÃO PARA DESKTOP (Horizontal Content Mode) --- */
@media screen and (min-width: 1024px) {
    body {
        flex-direction: row !important;
        align-items: stretch !important;
        overflow-x: hidden !important;
        height: 100vh !important;
        background: var(--bg) !important;
    }

    /* Coluna 1: Bloco Azul Lateral (Hero) */
    .hero {
        width: 310px !important;
        /* Sidebar expandida */
        height: 100vh !important;
        position: sticky !important;
        top: 0 !important;
        border-radius: 0 40px 40px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px !important;
        z-index: 100 !important;
        /* Elevado para projetar sombra sobre o conteúdo */
        box-shadow: 30px 0 200px rgba(0, 74, 153, 0.5), 60px 0 400px rgba(0, 31, 63, 0.2) !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        /* Cortar as letras que vazarem do padrão */
    }

    .hero-branding-pattern {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: -10px !important;
        left: -10px !important;
        width: 150% !important;
        pointer-events: none !important;
        z-index: 0 !important;
        opacity: 0.12 !important;
    }

    .hero-branding-pattern span {
        font-size: 100px !important;
        font-weight: 950 !important;
        color: white !important;
        line-height: 0.75 !important;
        letter-spacing: -6px !important;
        text-transform: uppercase !important;
    }

    .hero-branding-pattern .stagger-1 {
        margin-left: 40px !important;
        opacity: 0.7 !important;
    }

    .hero-branding-pattern .stagger-2 {
        margin-left: -20px !important;
        opacity: 0.5 !important;
    }

    .hero-branding-pattern .stagger-3 {
        margin-left: 60px !important;
        opacity: 0.3 !important;
    }

    .hero-branding-pattern .stagger-4 { margin-left: 10px !important; color: transparent !important; -webkit-text-stroke: 1px rgba(255,255,255,0.1) !important; opacity: 0.05 !important; }

    .hero-footer-link {
        display: block !important;
        position: absolute !important;
        bottom: 40px !important;
        left: 40px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        color: rgba(255, 255, 255, 0.4) !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
        pointer-events: none !important;
    }

    .hero-footer-unit {
        display: block !important;
        position: absolute !important;
        bottom: 62px !important;
        left: 40px !important;
        font-size: 13px !important;
        font-weight: 850 !important;
        color: white !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        pointer-events: none !important;
    }

    .test-mode-badge {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        margin: 15px 0 10px 0 !important;
        width: max-content !important;
        font-size: 9px !important;
    }

    .hero h1 {
        font-size: 75px !important;
        text-align: left !important;
        line-height: 0.8 !important;
    }

    .hero-subtitle {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        margin-top: 10px !important;
    }

    /* Área de Conteúdo (Banner + Botões) */
    .main-content-desktop {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 40px !important;
        padding-bottom: 120px !important;
        gap: 40px !important;
        overflow-y: auto !important;
        height: 100vh !important;
    }

    /* Coluna 2: ÁREA DO BANNER */
    .center-column {
        width: 100% !important;
        max-width: 1100px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center !important;
    }

    #banner-container {
        width: 100% !important;
        max-width: 800px !important;
        height: auto !important;
        aspect-ratio: 16/9 !important;
        margin: 0 !important;
        border-radius: 30px !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
        position: relative !important;
    }

    /* Coluna 3: GRADE DE BOTÕES */
    .menu-container {
        width: 100% !important;
        max-width: 1100px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .buttons-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .menu-card {
        min-height: 100px !important;
        padding: 15px !important;
        border-radius: 20px !important;
    }

    .menu-card i {
        font-size: 32px !important;
    }

    /* CORREÇÃO: Botão de Menu DENTRO da área azul no canto esquerdo superior */
    .btn-nav {
        display: flex !important;
        position: fixed !important;
        left: 25px !important;
        top: 25px !important;
        width: 55px !important;
        height: 55px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        color: white !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        backdrop-filter: blur(5px) !important;
        z-index: 500 !important;
        /* Ajustado para ficar abaixo do Side-Menu (10001) */
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        font-size: 20px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .btn-nav:hover {
        background: rgba(255, 255, 255, 0.3) !important;
    }

    /* Rodapé e Versão */
    .footer-logo {
        position: fixed !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: fit-content !important;
        background: rgba(255, 255, 255, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid var(--border) !important;
        border-bottom: none !important;
        border-radius: 50px 50px 0 0 !important;
        padding: 10px 40px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        box-shadow: 0 -10px 40px rgba(0, 74, 153, 0.15) !important;
        z-index: 100 !important;
        margin: 0 !important;
    }

    /* EFEITO MARCA D'ÁGUA NO OVERLAY DO MENU */
    .overlay-brand-text {
        display: none !important;
    }

    .side-menu-overlay.active .overlay-brand-text {
        display: none !important;
    }

    @media screen and (min-width: 1024px) {
        .side-menu-overlay.active .overlay-brand-text {
            display: flex !important;
            position: fixed !important;
            top: 50% !important;
            left: 58% !important;
            /* Deslocado para o centro da área visível (descontando o menu lateral) */
            transform: translate(-50%, -50%) !important;
            font-size: 18vw !important;
            /* Escala monumental */
            font-weight: 900 !important;
            color: rgba(255, 255, 255, 0.07) !important;
            /* Sutilidade máxima */
            letter-spacing: 3vw !important;
            pointer-events: none !important;
            z-index: 10002 !important;
            text-transform: uppercase !important;
            font-family: 'Outfit', sans-serif !important;
            animation: fadeInOverlayText 0.5s ease-out !important;
            white-space: nowrap !important;
            filter: blur(3px) !important;
            /* Mantendo a integração suave */
        }

        @keyframes fadeInOverlayText {
            from {
                opacity: 0;
                transform: translate(-50%, -45%);
            }

            to {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }
    }

    /* AJUSTE ESPECÍFICO PARA TELA DE LOGIN (Sidebar na Esquerda) */
    .login-page .main-content-desktop {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 0 !important;
        /* Remove os 20px que afastavam a barra da borda */
        height: 100vh !important;
        max-width: none !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .login-page .login-container {
        flex-grow: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 60px !important;
        width: auto !important;
        max-width: none !important;
        background: #f8fafc;
        /* Um fundo levemente acinzentado para destacar o card branco */
    }

    .login-page .login-card {
        width: 100% !important;
        max-width: 550px !important;
        padding: 60px !important;
        border-radius: 45px !important;
        box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .login-page .login-header h2 {
        font-size: 42px !important;
        margin-bottom: 10px !important;
    }

    .login-page .login-header p {
        font-size: 18px !important;
        margin-bottom: 20px !important;
    }

    .login-page .input-group label {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }

    .login-page .input-group input {
        padding: 22px 25px 22px 65px !important;
        font-size: 18px !important;
        border-radius: 20px !important;
    }

    .login-page .input-group i:not(.password-toggle) {
        top: 52px !important;
        font-size: 20px !important;
        left: 25px !important;
    }

    .login-page .password-toggle {
        top: 52px !important;
        font-size: 20px !important;
        right: 25px !important;
    }

    .login-page .main-button {
        padding: 22px !important;
        font-size: 18px !important;
        border-radius: 20px !important;
        margin-top: 15px !important;
    }

    .login-page .login-footer {
        font-size: 16px !important;
        margin-top: 20px !important;
    }

    .login-page .hero {
        border-radius: 0 40px 40px 0 !important;
        /* Colada na esquerda, arredondada na direita */
        box-shadow: 20px 0 150px rgba(0, 74, 153, 0.5),
            0 20px 100px rgba(0, 74, 153, 0.2) !important;
    }

    :root.dark-mode .footer-logo {
        background: rgba(15, 23, 42, 0.7) !important;
    }

    .footer-logo img {
        width: 60px !important;
        margin-bottom: 0 !important;
    }

    footer {
        font-size: 10px !important;
        text-align: left !important;
        padding: 0 !important;
    }

    .version-card {
        margin-top: 0 !important;
        padding: 2px 10px !important;
    }

    /* Modais */
    .modal-content {
        margin-left: 0 !important;
    }
}

/* Pílula de Conhecimento (Dica do Dia) - Estilo Minimalista */
.daily-tip-container {
    margin: 3px auto;
    width: 85%;
    max-width: 450px;
    background: rgba(0, 74, 153, 0.03);
    border: 1px solid rgba(0, 74, 153, 0.08);
    border-radius: 12px;
    padding: 6px 1px;
    animation: tipFadeIn 0.8s ease;
    box-sizing: border-box;
}

:root.dark-mode .daily-tip-container {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.tip-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.tip-content i {
    font-size: 15px;
    color: var(--primary);
    opacity: 0.7;
}

.tip-content span {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-main);
    opacity: 0.9;
}

@keyframes tipFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste para Desktop */
@media screen and (min-width: 1024px) {
    .daily-tip-container {
        margin: 8px 0 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        /* Segue a largura do banner-container no desktop */
    }
}

/* --- ESPECIAL: BADGE DE GESTÃO GR NO MENU --- */
.user-avatar.gr-mode {
    width: auto !important;
    min-width: 65px;
    height: 38px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #f9b233 0%, #ffde9c 50%, #f9b233 100%) !important;
    box-shadow:
        0 8px 15px rgba(249, 178, 51, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.6) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 15px !important;
    position: relative;
    overflow: hidden;
    animation: floating-gr 3s infinite ease-in-out !important;
}

.user-avatar.gr-mode i.fas {
    display: none !important;
    /* Esconde o ícone de loja padrão se for GR */
}

/* Estilização agressiva do texto GR no badge */
.user-avatar.gr-mode #user-avatar-icon {
    font-family: 'Nunito', sans-serif !important;
    color: #1a1a1a !important;
    font-weight: 950 !important;
    font-style: italic !important;
    font-size: 20px !important;
    letter-spacing: 0px !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}

@keyframes floating-gr {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-4px) rotate(1deg);
    }
}