/* VARIÁVEIS DE TEMA (Modo Claro Padrão) */
:root {
    --bg-sky: #d4f6ff;
    --brightness-assets: 1;
    --sun-opacity: 1;
    --moon-opacity: 0;
}

/* MODO ESCURO (Noite) */
body.dark-mode {
    --bg-sky: #1a233a;
    --brightness-assets: 0.6;
    --sun-opacity: 0;
    --moon-opacity: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Baloo 2', cursive;
}

body {
    padding-top: 85px;
    background-color: var(--bg-sky);
    transition: background-color 0.8s ease;
    min-height: 150vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* =========================================
           BACKGROUND PARALLAX (Camadas)
           ========================================= */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* SOL E LUA */
.sun,
.moon {
    position: absolute;
    top: 25%;
    left: 8%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 26;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.sun {
    background: radial-gradient(circle at 30% 30%, #ffeb3b, #ff9800);
    opacity: var(--sun-opacity);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.moon {
    background: radial-gradient(circle at 30% 30%, #e0e0e0, #9e9e9e);
    opacity: var(--moon-opacity);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Crateras da lua */
.moon::before,
.moon::after {
    content: '';
    position: absolute;
    background: rgba(160, 160, 160, 0.5);
    border-radius: 50%;
}

.moon::before {
    width: 15px;
    height: 15px;
    top: 20px;
    left: 15px;
}

.moon::after {
    width: 10px;
    height: 10px;
    top: 45px;
    left: 50px;
}

/* Raios do sol */
.sun::before,
.sun::after {
    content: '';
    position: absolute;
    background: radial-gradient(circle, #ffeb3b, transparent);
    border-radius: 50%;
    pointer-events: none;
}

.sun::before {
    width: 120px;
    height: 120px;
    top: -20px;
    left: -20px;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.sun::after {
    width: 160px;
    height: 160px;
    top: -40px;
    left: -40px;
    opacity: 0.15;
    animation: pulse 3s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* Estrelas para o modo noturno */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

body.dark-mode .star {
    opacity: var(--star-opacity, 0.8);
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Nuvens animadas - Múltiplas nuvens com posições diferentes */
.cloud {
    position: absolute;
    background-image: url('../img/background/cloud.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    filter: brightness(var(--brightness-assets));
    transition: filter 0.8s ease;
    animation: floatCloud linear infinite;
    z-index: 27;
}

@keyframes floatCloud {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(calc(100vw + 100px));
    }
}

/* Nuvem 1 */
.cloud-1 {
    top: 5%;
    left: -150px;
    width: 180px;
    height: 100px;
    animation-duration: 35s;
    animation-delay: 0s;
}

/* Nuvem 2 */
.cloud-2 {
    top: 15%;
    left: -200px;
    width: 250px;
    height: 140px;
    animation-duration: 45s;
    animation-delay: -10s;
}

/* Nuvem 3 */
.cloud-3 {
    top: 25%;
    left: -120px;
    width: 160px;
    height: 90px;
    animation-duration: 30s;
    animation-delay: -20s;
}

/* Nuvem 4 */
.cloud-4 {
    top: 8%;
    left: -300px;
    width: 220px;
    height: 120px;
    animation-duration: 50s;
    animation-delay: -5s;
}

/* Nuvem 5 */
.cloud-5 {
    top: 20%;
    left: -180px;
    width: 140px;
    height: 80px;
    animation-duration: 38s;
    animation-delay: -15s;
}

/* Escola e Árvores - Atrás do chão */
.layer-school {
    position: absolute;
    bottom: 30%;
    left: 2%;
    width: 350px;
    filter: brightness(var(--brightness-assets));
    transition: filter 0.8s ease;
    z-index: 1;
}

.layer-tree-1 {
    position: absolute;
    bottom: 30%;
    right: 15%;
    width: 100px;
    filter: brightness(var(--brightness-assets));
    transition: filter 0.8s ease;
    z-index: 1;
}

.layer-tree-2 {
    position: absolute;
    bottom: 33%;
    right: 8%;
    width: 80px;
    filter: brightness(var(--brightness-assets));
    transition: filter 0.8s ease;
    z-index: 1;
}

/* Chão 1 - Fundo (ground02.png - montanha) */
.layer-ground-back {
    position: absolute;
    bottom: 35%;
    left: 0;
    width: 100%;
    height: 35vh;
    background-image: url('..//img/background/ground02.png');
    background-size: cover;
    background-position: top center;
    background-repeat: repeat-x;
    filter: brightness(var(--brightness-assets));
    transition: filter 0.8s ease;
    z-index: 0;
}

/* Chão 2 - Meio */
.layer-ground-mid {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 100%;
    height: 30vh;
    background-image: url('..//img/background/ground02.png');
    background-size: cover;
    background-position: top center;
    background-repeat: repeat-x;
    filter: brightness(var(--brightness-assets));
    transition: filter 0.8s ease;
    z-index: 2;
    opacity: 0.9;
}

/* Chão 3 - Frente (ground.png) */
.layer-ground-front {
    position: absolute;
    bottom: -10%;
    left: 0;
    width: 100%;
    height: 50vh;
    background-image: url('..//img/background/ground.png');
    background-size: cover;
    background-position: top center;
    background-repeat: repeat-x;
    filter: brightness(var(--brightness-assets));
    transition: filter 0.8s ease;
    z-index: 3;
}

/* Folhas caindo - Múltiplas folhas com posições e animações diferentes */
.leaf {
    position: absolute;
    background-image: url('..//img/background/leave.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    filter: brightness(var(--brightness-assets));
    transition: filter 0.8s ease;
    pointer-events: none;
    width: 25px;
    height: 25px;
}

@keyframes fallLeaf1 {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fallLeaf2 {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(100vh) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes fallLeaf3 {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* =========================================
           INTERFACE (Header e Main)
           ========================================= */
header {
    background-color: rgba(255, 255, 255, 0.39);
    padding: 0px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo img {
    height: 67.5px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
    display: block;
}

nav {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

.bg-blue {
    background-color: #4f91e8;
}

.bg-orange {
    background-color: #ffa45b;
}

.bg-yellow {
    background-color: #ffcc14;
}

.bg-red {
    background-color: #ff6b6b;
}

.bg-green {
    background-color: #92b165;
}

.user-area {
    margin-left: 10px;
}

.user-badge {
    background-color: #92b165;
    padding: 5px 8px 5px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.user-badge i {
    cursor: pointer;
    transition: transform 0.2s;
}

.user-badge i:hover {
    transform: scale(1.2);
}

.user-name {
    font-weight: 700;
    font-size: 16px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    position: relative;
    z-index: 1;
}

.main-title {
    color: #4f91e8;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 50px;
    text-shadow: 2px 2px 0px white, -2px -2px 0px white, 2px -2px 0px white, -2px 2px 0px white;
    text-align: center;
    padding: 0 20px;
}

.cards-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    padding: 0 20px;
}

.card {
    width: 240px;
    height: 240px;
    border-radius: 25px;
    border: 4px solid white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), inset 0 -5px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.card:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.card i {
    font-size: 70px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.card-subtitle {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
    opacity: 0.9;
}

.card-orange {
    background-color: #ffa45b;
}

.card-yellow {
    background-color: #ffcc14;
}

.card-blue {
    background-color: #4f91e8;
}

/* =========================================
           ESTILOS DO ASSISTENTE (adicionado)
           ========================================= */

/* ASSISTENTE RESPONSIVO */
.assistant-wrapper {
    position: fixed;
    bottom: clamp(20px, 8vw, 30px);
    right: clamp(15px, 5vw, 20px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    max-width: min(90vw, 500px);
}

.assistant-wrapper.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.speech-bubble {
    position: relative;
    background: white;
    border: 3px solid #FF69B4;
    border-radius: 20px 20px 20px 5px;
    padding: clamp(12px, 4vw, 20px) clamp(15px, 5vw, 25px);
    margin-bottom: 10px;
    width: 100%;
    color: #5E3A5E;
    font-weight: 600;
    font-size: clamp(0.8rem, 3.5vw, 1.1rem);
    box-shadow: 0 5px 0 #FFB6C1, 0 8px 15px rgba(0, 0, 0, 0.1);
    word-break: break-word;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: clamp(30px, 10vw, 60px);
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: #FF69B4 transparent;
}

.assistant-char-img {
    width: clamp(120px, 25vw, 200px);
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-right: 10px;
}

.assistant-char-img:hover {
    transform: scale(1.1) rotate(3deg);
}

.assistant-char-img:active {
    transform: scale(0.95);
}

/* HELP EMOJI RESPONSIVO */
.help-emoji {
    position: fixed;
    bottom: clamp(20px, 8vw, 35px);
    right: clamp(15px, 5vw, 35px);
    background: #FF69B4;
    color: white;
    width: clamp(50px, 15vw, 70px);
    height: clamp(50px, 15vw, 70px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    cursor: pointer;
    box-shadow: 0 8px 0 #FFB6C1, 0 10px 20px rgba(255, 105, 180, 0.4);
    transition: all 0.3s ease;
    border: 3px solid white;
    animation: wiggle 2s infinite;
    z-index: 999;
    touch-action: manipulation;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-10deg);
    }
}

.help-emoji:hover {
    transform: scale(1.1);
}

.help-emoji:active {
    transform: scale(0.95);
    box-shadow: 0 4px 0 #FFB6C1, 0 8px 15px rgba(255, 105, 180, 0.4);
}

/* TOAST MÁGICO RESPONSIVO */
.magic-toast {
    position: fixed;
    bottom: clamp(20px, 8vw, 30px);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #FFF0F5;
    color: #5E3A5E;
    padding: clamp(10px, 3vw, 15px) clamp(15px, 5vw, 30px);
    border-radius: min(40px, 8vw);
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    font-weight: 600;
    box-shadow: 0 8px 0 #FFB6C1, 0 12px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: clamp(8px, 3vw, 15px);
    max-width: min(90vw, 400px);
    width: max-content;
    pointer-events: none;
}

.magic-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.magic-toast i {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    color: #FF69B4;
}

/* CONFETTI */
.confetti {
    position: absolute;
    width: clamp(6px, 2vw, 10px);
    height: clamp(6px, 2vw, 10px);
    background: var(--brand-coral, #FF6B6B);
    opacity: 0.7;
    animation: confettiFall 3s linear infinite;
    pointer-events: none;
    border-radius: 50% 50% 0 50%;
    z-index: 20;
}

@keyframes confettiFall {
    from {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Ajuste no modo escuro para o assistente */
body.dark-mode .speech-bubble {
    background: #2E1B4A;
    color: #FFE6F0;
    border-color: #B983FF;
}

body.dark-mode .speech-bubble::after {
    border-color: #B983FF transparent;
}

body.dark-mode .magic-toast {
    background: #2E1B4A;
    color: #FFE6F0;
}

body.dark-mode .help-emoji {
    background: #B983FF;
    box-shadow: 0 8px 0 #9B6BDF;
}

/* =========================================
           RESPONSIVIDADE
           ========================================= */

/* Tablets (até 1024px) */
@media (max-width: 1024px) {
    body {
        padding-top: 75px;
    }

    header {
        padding: 0px 20px;
    }

    .logo img {
        height: 55px;
    }

    nav {
        gap: 10px;
    }

    .nav-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .user-badge {
        padding: 5px 8px 5px 12px;
        gap: 8px;
    }

    .user-name {
        font-size: 14px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .main-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .cards-container {
        gap: 25px;
    }

    .card {
        width: 220px;
        height: 220px;
    }

    .card i {
        font-size: 60px;
    }

    .card-title {
        font-size: 22px;
    }

    .sun,
    .moon {
        width: 60px;
        height: 60px;
        top: 5%;
        right: 5%;
    }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 130px;
    }

    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .logo img {
        height: 50px;
    }

    nav {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .nav-btn i {
        font-size: 14px;
    }

    .user-area {
        margin-left: 0;
    }

    .user-badge {
        padding: 5px 10px 5px 12px;
        gap: 8px;
    }

    .user-name {
        font-size: 13px;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
    }

    .main-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .cards-container {
        gap: 20px;
        flex-direction: column;
    }

    .card {
        width: 260px;
        height: 260px;
    }

    .card i {
        font-size: 70px;
    }

    .card-title {
        font-size: 24px;
    }

    /* Ajuste das nuvens para mobile */
    .cloud-1,
    .cloud-2,
    .cloud-3,
    .cloud-4,
    .cloud-5 {
        transform: scale(0.7);
    }

    .layer-school {
        width: 250px;
        bottom: 25%;
    }

    .layer-tree-1 {
        width: 70px;
        right: 10%;
    }

    .layer-tree-2 {
        width: 55px;
        right: 3%;
    }

    .speech-bubble {
        max-width: 250px;
    }

    .assistant-wrapper {
        max-width: 280px;
    }

    .sun,
    .moon {
        width: 50px;
        height: 50px;
        top: 10%;
        right: 5%;
    }
}

/* Mobile pequeno (até 500px) */
@media (max-width: 500px) {
    body {
        padding-top: 140px;
    }

    header {
        padding: 12px 15px;
        flex-direction: column;
    }

    .logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .logo img {
        max-width: 100%;
        height: auto;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .nav-btn i {
        font-size: 12px;
    }

    .user-badge {
        padding: 4px 8px 4px 10px;
        gap: 6px;
    }

    .user-name {
        font-size: 12px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

    .main-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .cards-container {
        gap: 15px;
    }

    .card {
        width: 240px;
        height: 240px;
    }

    .card i {
        font-size: 60px;
    }

    .card-title {
        font-size: 22px;
    }

    .card-subtitle {
        font-size: 11px;
    }

    /* Ajustes do paralax para mobile */
    .layer-ground-back,
    .layer-ground-mid,
    .layer-ground-front {
        background-size: 100% 100%;
    }

    .layer-ground-back {
        height: 40vh;
        bottom: 30%;
    }

    .layer-ground-mid {
        height: 35vh;
        bottom: 10%;
    }

    .layer-ground-front {
        height: 45vh;
        bottom: -5%;
    }

    .layer-school {
        width: 200px;
        bottom: 35%;
        left: 10px;
    }

    .layer-tree-1 {
        width: 55px;
        bottom: 35%;
        right: 30px;
    }

    .layer-tree-2 {
        width: 45px;
        bottom: 37%;
        right: 10px;
    }

    .help-emoji {
        width: 55px;
        height: 55px;
        font-size: 2rem;
        bottom: 15px;
        right: 15px;
    }

    .assistant-wrapper {
        bottom: 80px;
        right: 15px;
        max-width: 250px;
    }

    .speech-bubble {
        padding: 12px;
        font-size: 0.9rem;
    }

    .magic-toast {
        font-size: 0.9rem;
        padding: 10px 15px;
        max-width: 90%;
    }

    .sun,
    .moon {
        width: 40px;
        height: 40px;
        top: 12%;
        right: 5%;
    }
}

/* Ajuste para telas muito grandes */
@media (min-width: 1920px) {
    .layer-school {
        width: 450px;
    }

    .layer-tree-1 {
        width: 130px;
    }

    .layer-tree-2 {
        width: 100px;
    }

    .card {
        width: 280px;
        height: 280px;
    }

    .card i {
        font-size: 85px;
    }

    .card-title {
        font-size: 28px;
    }

    .main-title {
        font-size: 38px;
    }

    .sun,
    .moon {
        width: 100px;
        height: 100px;
    }
}

/* ORIENTAÇÃO PAISAGEM EM MOBILE */
@media (max-height: 500px) and (orientation: landscape) {
    .help-emoji {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        bottom: 10px;
        right: 10px;
    }

    .assistant-wrapper {
        bottom: 60px;
        right: 10px;
    }

    .speech-bubble {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .sun,
    .moon {
        width: 35px;
        height: 35px;
        top: 5%;
        right: 5%;
    }
}

/* =========================================
           MENU HAMBÚRGUER RESPONSIVO
           ========================================= */

/* Botão do menu hambúrguer */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #4f91e8;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* Overlay para fechar o menu ao clicar fora */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 30px;
}

.mobile-menu.active {
    right: 0;
}

/* Cabeçalho do menu mobile */
.mobile-menu-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffa45b;
}

.mobile-menu-header span {
    font-size: 18px;
    font-weight: 700;
    color: #4f91e8;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: #ff6b6b;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-menu:hover {
    transform: scale(1.1);
}

/* Links do menu mobile */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.mobile-nav .nav-btn {
    justify-content: center;
    padding: 12px;
    font-size: 16px;
    border-radius: 30px;
}

.mobile-user-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.mobile-user-area .user-badge {
    justify-content: center;
    background-color: #92b165;
}

/* Estilo para o modo escuro */
body.dark-mode .mobile-menu {
    background: linear-gradient(135deg, #2a2a3a, #1a1a2a);
}

body.dark-mode .mobile-menu-header span {
    color: #b983ff;
}

body.dark-mode .close-menu {
    color: #ff8c8c;
}

/* Responsividade */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    /* Esconder navegação normal no mobile */
    nav .nav-btn:not(.menu-toggle),
    nav .user-area {
        display: none;
    }

    nav {
        justify-content: space-between;
        width: 100%;
    }
}

/* =========================================
           BOTÕES RESPONSIVOS (MAIS FINOS NO MOBILE)
           ========================================= */

/* Botões principais - versão desktop padrão */
.cards-container .card {
    transition: all 0.3s ease;
}

/* Para tablets (entre 769px e 1024px) - botões um pouco menores */
@media (max-width: 1024px) and (min-width: 769px) {
    .cards-container .card {
        width: 200px;
        height: 200px;
    }

    .cards-container .card i {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .cards-container .card-title {
        font-size: 20px;
    }

    .cards-container .card-subtitle {
        font-size: 10px;
    }
}

/* Para mobile (até 768px) - botões mais finos e compactos */
@media (max-width: 768px) {
    .cards-container {
        gap: 20px;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 15px;
    }

    .cards-container .card {
        width: 90%;
        max-width: 280px;
        height: auto;
        min-height: 180px;
        padding: 20px 15px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
        border-radius: 20px;
    }

    .cards-container .card i {
        font-size: 45px;
        margin-bottom: 0;
        width: 55px;
        text-align: center;
    }

    .cards-container .card-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .cards-container .card-title {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .cards-container .card-subtitle {
        font-size: 11px;
        margin-top: 0;
        opacity: 0.85;
    }
}

/* Para mobile pequeno (até 500px) - ainda mais fino */
@media (max-width: 500px) {
    .cards-container {
        gap: 15px;
    }

    .cards-container .card {
        max-width: 260px;
        min-height: 150px;
        padding: 15px 12px;
        gap: 15px;
    }

    .cards-container .card i {
        font-size: 38px;
        width: 45px;
    }

    .cards-container .card-title {
        font-size: 16px;
    }

    .cards-container .card-subtitle {
        font-size: 10px;
    }
}

/* Versão horizontal para tablets em paisagem */
@media (max-width: 1024px) and (orientation: landscape) {
    .cards-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .cards-container .card {
        width: 200px;
        height: 180px;
        flex-direction: column;
        padding: 20px;
    }

    .cards-container .card i {
        font-size: 45px;
        margin-bottom: 10px;
    }

    .cards-container .card-title {
        font-size: 16px;
    }
}

/* Estilo ultra-fino para mobile (opcional) */
@media (max-width: 768px) {
    .cards-container .card {
        border-radius: 50px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .cards-container .card:hover {
        transform: translateX(5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    }

    .cards-container .card i {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        padding: 10px;
        width: auto;
    }
}

/* Para telas muito pequenas - versão ainda mais compacta */
@media (max-width: 380px) {
    .cards-container .card {
        max-width: 170px;
        min-height: 130px;
        padding: 12px 10px;
        gap: 12px;
    }

    .cards-container .card i {
        font-size: 32px;
        padding: 8px;
    }

    .cards-container .card-title {
        font-size: 14px;
    }

    .cards-container .card-subtitle {
        font-size: 9px;
    }
}