
    .fc-header {
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
        position: relative;
        z-index: 100;
    }

    .fc-header-container {
        width: min(1180px, calc(100% - 32px));
        margin: 0 auto;
        min-height: 74px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 22px;
    }

    .fc-logo {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        color: #0f172a;
        text-decoration: none;
        flex-shrink: 0;
    }

    .fc-logo-marca {
        width: 42px;
        height: 42px;
        border-radius: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #2563eb, #1e40af);
        color: #ffffff;
        font-size: 24px;
        line-height: 1;
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    }

    .fc-logo-texto {
        display: flex;
        flex-direction: column;
        font-size: 1rem;
        font-weight: 900;
        line-height: 1.1;
        letter-spacing: -0.02em;
    }

    .fc-logo-texto small {
        margin-top: 3px;
        color: #64748b;
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: normal;
    }

    .fc-menu {
        display: none !important;
    }

    .fc-menu-mobile-btn,
    .fc-menu-drawer-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: none;
        border-radius: 999px;
        background: #2563eb;
        color: #ffffff;
        padding: 10px 16px;
        font-size: 0.95rem;
        font-weight: 900;
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
        white-space: nowrap;
        margin-left: auto;
    }

    .fc-menu-mobile-btn:hover,
    .fc-menu-drawer-btn:hover {
        background: #1d4ed8;
    }

    .fc-menu-badge {
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: #ef4444;
        color: #ffffff;
        font-size: 0.68rem;
        font-weight: 900;
        line-height: 18px;
        text-align: center;
        box-shadow: 0 0 0 2px #ffffff;
        flex-shrink: 0;
    }

    .fc-menu-badge-botao {
        min-width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 0.72rem;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
    }

    .fc-menu-badge-mobile {
        min-width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 0.7rem;
    }

    .fc-drawer-overlay[hidden],
    .fc-drawer-menu[hidden] {
        display: none !important;
    }

    .fc-drawer-overlay {
        position: fixed;
        inset: 0;
        z-index: 99990;
        background: rgba(15, 23, 42, 0.68);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: 0.25s ease;
    }

    .fc-drawer-overlay.ativo {
        opacity: 1;
        visibility: visible;
    }

    .fc-drawer-menu {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 99991;
        width: 82vw;
        max-width: 380px;
        height: 100dvh;
        max-height: 100dvh;
        background: #ffffff;
        box-shadow: -18px 0 45px rgba(15, 23, 42, 0.25);
        transform: translateX(105%);
        transition: transform 0.28s ease;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .fc-drawer-menu.ativo {
        transform: translateX(0);
    }

    .fc-drawer-topo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 20px;
        background: linear-gradient(135deg, #2563eb, #1e40af);
        color: #ffffff;
    }

    .fc-drawer-logo {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .fc-drawer-icone {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.16);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 27px;
    }

    .fc-drawer-logo strong {
        display: block;
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .fc-drawer-logo small {
        display: block;
        font-size: 0.78rem;
        opacity: 0.85;
        margin-top: 2px;
    }

    .fc-drawer-fechar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
    }

    .fc-drawer-usuario {
        padding: 16px 20px;
        border-bottom: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #475569;
    }

    .fc-drawer-usuario span {
        display: block;
        font-size: 0.85rem;
    }

    .fc-drawer-usuario strong {
        display: block;
        color: #0f172a;
        font-size: 1rem;
        margin-top: 2px;
    }

    .fc-drawer-links {
        display: flex;
        flex-direction: column;
        padding: 14px 14px calc(90px + env(safe-area-inset-bottom));
        gap: 6px;
        flex: 1;
    }

    .fc-drawer-links a {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 13px 14px;
        border-radius: 14px;
        color: #334155;
        text-decoration: none;
        font-size: 0.98rem;
        font-weight: 800;
        transition: 0.2s ease;
    }

    .fc-drawer-links a span:first-child {
        width: 24px;
        text-align: center;
        flex-shrink: 0;
    }

    .fc-drawer-links a:hover,
    .fc-drawer-links a.ativo {
        background: #eff6ff;
        color: #1d4ed8;
    }

    .fc-drawer-link-notificacao {
        justify-content: flex-start;
    }

    .fc-drawer-texto-link {
        width: auto !important;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-align: left !important;
    }

    .fc-drawer-texto-link .fc-menu-badge {
        flex-shrink: 0;
    }

    .fc-drawer-links .fc-drawer-admin {
        background: #fef3c7;
        color: #92400e;
    }

    .fc-drawer-links .fc-drawer-admin:hover,
    .fc-drawer-links .fc-drawer-admin.ativo {
        background: #fde68a;
        color: #78350f;
    }

    .fc-drawer-links .fc-drawer-sair {
        margin-top: 8px;
        margin-bottom: 24px;
        background: #fef2f2;
        color: #b91c1c;
    }

    body.fc-drawer-aberto {
        overflow: hidden;
    }

    .pwa-overlay-mobile {
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(15, 23, 42, 0.72);
        backdrop-filter: blur(6px);
        padding: 20px;
    }

    .pwa-overlay-mobile.ativo {
        display: flex;
    }

    .pwa-popup-mobile {
        width: 70vw;
        min-height: 70vh;
        max-height: 90dvh;
        overflow-y: auto;
        background: #ffffff;
        border-radius: 28px;
        padding: 28px;
        position: relative;
        box-shadow: 0 25px 70px rgba(15, 23, 42, 0.35);
        text-align: center;
        animation: pwaPopupEntrada 0.25s ease-out;
    }

    @keyframes pwaPopupEntrada {
        from { opacity: 0; transform: translateY(20px) scale(0.96); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .pwa-popup-fechar {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: none;
        background: #f1f5f9;
        color: #334155;
        font-size: 20px;
        font-weight: 700;
        cursor: pointer;
    }

    .pwa-popup-icone {
        width: 90px;
        height: 90px;
        margin: 0 auto 16px;
        border-radius: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #2563eb, #1e40af);
        color: #ffffff;
        font-size: 52px;
        box-shadow: 0 16px 35px rgba(37, 99, 235, 0.28);
    }

    .pwa-popup-mobile h2 {
        margin: 0 0 10px;
        color: #0f172a;
        font-size: 1.6rem;
        line-height: 1.25;
    }

    .pwa-popup-mobile p {
        margin: 0 auto 18px;
        max-width: 520px;
        color: #475569;
        font-size: 1rem;
        line-height: 1.55;
    }

    .pwa-popup-lista {
        width: 100%;
        max-width: 520px;
        margin: 18px auto 22px;
        display: grid;
        gap: 10px;
        text-align: left;
    }

    .pwa-popup-item {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 12px 14px;
        color: #334155;
        font-size: 0.95rem;
    }

    .pwa-popup-botoes {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    .pwa-btn-instalar {
        border: none;
        border-radius: 999px;
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: #ffffff;
        padding: 14px 22px;
        font-size: 1rem;
        font-weight: 800;
        cursor: pointer;
        box-shadow: 0 12px 25px rgba(37, 99, 235, 0.28);
    }

    .pwa-btn-depois {
        border: 1px solid #cbd5e1;
        border-radius: 999px;
        background: #ffffff;
        color: #334155;
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
    }

    .pwa-instrucoes-ios {
        display: none;
        margin-top: 14px;
        padding: 14px;
        border-radius: 16px;
        background: #eff6ff;
        color: #1e3a8a;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .pwa-instrucoes-ios.ativo {
        display: block;
    }

    @media (max-width: 768px) {
        .pwa-popup-mobile {
            width: 70vw;
            min-height: 70vh;
            padding: 24px 18px;
            border-radius: 24px;
        }

        .pwa-popup-mobile h2 {
            font-size: 1.35rem;
        }

        .pwa-popup-mobile p {
            font-size: 0.95rem;
        }

        .pwa-popup-icone {
            width: 78px;
            height: 78px;
            font-size: 44px;
        }
    }

    @media (max-width: 480px) {
        .fc-header-container {
            width: calc(100% - 24px);
            min-height: 68px;
            gap: 12px;
        }

        .fc-logo-texto {
            max-width: 155px;
            font-size: 0.92rem;
        }

        .fc-logo-texto small {
            font-size: 0.68rem;
        }

        .fc-logo-marca {
            width: 39px;
            height: 39px;
            border-radius: 14px;
            font-size: 21px;
        }

        .fc-menu-mobile-btn,
        .fc-menu-drawer-btn {
            padding: 9px 13px;
            font-size: 0.88rem;
        }

        .fc-drawer-menu {
            width: 86vw;
        }

        .pwa-popup-mobile {
            width: 70vw;
            min-height: 70vh;
            padding: 22px 16px;
        }

        .pwa-popup-botoes {
            flex-direction: column;
        }

        .pwa-btn-instalar,
        .pwa-btn-depois {
            width: 100%;
        }
    }
    
    /* ==========================================================================
   AJUSTE MOBILE/TABLET - HEADER DO ALUNO/USUÁRIO
   Mantém logo à esquerda e botão do menu à direita
   ========================================================================== */

@media (max-width: 920px) {
    .fc-header:not(.fc-header-admin) .fc-header-container {
        width: calc(100% - 28px) !important;
        min-height: 68px !important;
        padding: 10px 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        text-align: left !important;
    }

    .fc-header:not(.fc-header-admin) .fc-logo {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        text-align: left !important;
        max-width: calc(100% - 120px) !important;
        min-width: 0 !important;
        margin: 0 !important;
        flex-shrink: 1 !important;
    }

    .fc-header:not(.fc-header-admin) .fc-logo-marca {
        flex: 0 0 auto !important;
    }

    .fc-header:not(.fc-header-admin) .fc-logo-texto {
        align-items: flex-start !important;
        text-align: left !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .fc-header:not(.fc-header-admin) .fc-logo-texto small {
        text-align: left !important;
    }

    .fc-header:not(.fc-header-admin) .fc-menu-mobile-btn,
    .fc-header:not(.fc-header-admin) .fc-menu-drawer-btn {
        margin-left: auto !important;
        flex: 0 0 auto !important;
        align-self: center !important;
    }
}

@media (max-width: 480px) {
    .fc-header:not(.fc-header-admin) .fc-header-container {
        width: calc(100% - 22px) !important;
        min-height: 64px !important;
        gap: 8px !important;
    }

    .fc-header:not(.fc-header-admin) .fc-logo {
        max-width: calc(100% - 104px) !important;
        gap: 8px !important;
    }

    .fc-header:not(.fc-header-admin) .fc-logo-marca {
        width: 38px !important;
        height: 38px !important;
        border-radius: 13px !important;
        font-size: 20px !important;
    }

    .fc-header:not(.fc-header-admin) .fc-logo-texto {
        font-size: 0.88rem !important;
        line-height: 1.08 !important;
    }

    .fc-header:not(.fc-header-admin) .fc-logo-texto small {
        font-size: 0.66rem !important;
    }

    .fc-header:not(.fc-header-admin) .fc-menu-mobile-btn,
    .fc-header:not(.fc-header-admin) .fc-menu-drawer-btn {
        min-height: 38px !important;
        padding: 8px 11px !important;
        font-size: 0.82rem !important;
    }
}
    
    .fc-redes-sociais {
    margin: 14px 0 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.fc-redes-sociais a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.15rem;
}

.fc-redes-sociais a:hover {
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateY(-2px);
}
.fc-redes-sociais-area {
    margin: 12px 0 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.fc-redes-sociais-titulo {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 900;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.fc-redes-sociais {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.fc-redes-sociais a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
}

.fc-redes-sociais a:hover {
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateY(-2px);
}

.fc-redes-sociais a,
.fc-redes-sociais button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.fc-redes-sociais a:hover,
.fc-redes-sociais button:hover {
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateY(-2px);
}