/* Reset básico */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: pageFadeIn 0.5s ease-out forwards;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Layout Grid para PC */
.main-container {
    display: flex;
    flex: 1;
    background-color: var(--main-container-bg);
    z-index: 10;
}

/* Header */
header {
    background-color: rgba(0,0,0,0.2);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Sombra para baixo */
    position: relative;
    z-index: 20; /* Fica acima do conteúdo */
}

.logo img { max-height: 50px; }

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    padding: 1rem;
    border-right: 1px solid #e5e7eb;
    position: sticky; /* Fixa ao rolar */
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
}

.sidebar ul { list-style: none; }
.sidebar li { margin-bottom: 10px; }
.sidebar a {
    color: var(--sidebar-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    transition: background 0.3s;
    font-weight: 500;
}
.sidebar a:hover { background-color: #f3f4f6; color: var(--btn-bg-color); }
.sidebar a.active { background-color: #eef2ff; color: var(--btn-bg-color); font-weight: 600; }
.sidebar a .iconify { font-size: 1.2rem; }

/* Conteúdo Principal */
.content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 1200px; /* Limita a largura para não esticar demais */
    margin: 0 auto; /* Centraliza o conteúdo */
    width: 100%;
}

/* Botões (Estilo arredondado solicitado) */
.btn {
    background-color: var(--btn-bg-color);
    color: var(--btn-text-color);
    padding: 10px 20px;
    border: none;
    border-radius: 25px; /* Arredondado */
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s;
}
.btn:hover { opacity: 0.9; }

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: rgba(0,0,0,0.3);
    font-size: 0.9rem;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2); /* Sombra para cima */
    position: relative;
    z-index: 20;
}

/* Menu Inferior Mobile (Padrão: Escondido no PC) */
.mobile-bottom-nav { display: none; }

/* Responsividade Mobile */
@media (max-width: 768px) {
    body {
        padding-top: 70px;    /* Espaço para o Header Fixo */
        padding-bottom: 60px; /* Espaço para o Menu Inferior Fixo */
    }

    /* Esconder rodapé padrão no mobile para não sobrepor a navegação */
    footer {
        display: none;
    }

    /* Header Fixo */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        z-index: 1000;
        background-color: var(--bg-color); /* Garante que o fundo tape o conteúdo ao rolar */
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* Sombra no mobile também */
        padding: 0 10px; /* Reduz padding lateral para dar mais espaço ao conteúdo */
    }

    /* Ajuste Logo Mobile para não empurrar o resto */
    .logo img {
        max-height: 40px;
        max-width: 110px; /* Leve redução para garantir encaixe */
        object-fit: contain; /* Garante que o logo nunca fique achatado */
    }

    .main-container { display: block; }
    .content { padding: 0.5rem; } /* Ajuste para mobile (quase encostando nas laterais) */

    /* Ajuste específico para Banner Mobile */
    .banner-container {
        max-height: none; /* Remove limite de altura no mobile */
        margin-bottom: 1rem;
    }
    .banner-slide img { object-fit: contain; } /* Garante que a imagem apareça inteira */

    /* Reduz espaçamento geral no header mobile */
    .header-actions {
        gap: 5px;
        flex-shrink: 0; /* IMPEDE que os botões sejam esmagados/achatados */
    }

    /* Ajuste de Saldo no Mobile (Em linha única: Saldo + Bônus) */
    .balance-info-group {
        flex-direction: row; /* Linha única */
        gap: 2px;
        align-items: center;
        background-color: transparent !important;
        padding: 0;
        border: none !important;
        box-shadow: none !important;
        flex-wrap: nowrap;
        flex-shrink: 0; /* Garante que o saldo mantenha sua largura */
    }
    .user-balance-display {
        padding: 0;
        font-size: clamp(9px, 2.5vw, 12px); /* Diminui auto conforme a tela aperta */
        background-color: transparent;
        border: none !important;
        width: auto;
        display: flex;
        align-items: center;
        gap: 2px;
        line-height: 1;
        text-shadow: none !important;
        box-shadow: none !important;
        white-space: nowrap;
    }
    .user-balance-display .balance-label {
        display: inline-block;
        color: #ccc;
        font-size: 0.65rem;
    }
    /* Esconde label "Bônus:" no mobile e adiciona "+" */
    .user-balance-display.bonus-balance .balance-label {
        display: none !important;
    }
    .user-balance-display.bonus-balance span:last-child::before {
        content: "+ ";
        color: #4caf50;
        font-weight: bold;
    }
    
    /* Botão Depositar: Quadradinho com ícone no mobile */
    .btn-deposit-header.btn-icon-mobile {
        padding: 0 !important;
        width: 34px;
        height: 34px;
        min-width: 34px;
        justify-content: center;
    }
    .btn-deposit-header.btn-icon-mobile .deposit-label {
        display: none;
    }
    
    /* Botões Entrar/Registrar: Texto adapta e não vira quadrado */
    .btn-deposit-header.btn-text-mobile {
        width: auto;
        padding: 0 8px !important;
        height: 34px;
        font-size: clamp(10px, 3vw, 13px); /* Texto diminui se precisar */
        white-space: nowrap;
        flex-shrink: 0; /* Garante que o botão mantenha a largura do texto sem achatar */
    }

    /* Sidebar Escondida (Off-canvas) */
    .sidebar {
        position: fixed;
        top: 70px; /* Logo abaixo do header */
        left: -100%; /* Escondido para a esquerda */
        width: 260px;
        height: calc(100vh - 130px); /* Altura total menos header e footer */
        background-color: var(--bg-color); /* Volta para a cor do tema no mobile */
        border-right: 1px solid rgba(255,255,255,0.1);
        z-index: 999;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        position: fixed; /* Garante fixed no mobile */
    }
    
    .sidebar.active { left: 0; box-shadow: 5px 0 15px rgba(0,0,0,0.5); }
    
    /* Reverter estilos de link para mobile (texto claro) */
    .sidebar a { color: var(--text-color); }
    .sidebar a:hover { background-color: rgba(255,255,255,0.1); color: #fff; }
    .sidebar a.active { background-color: rgba(255,255,255,0.2); color: #fff; }
    

    /* Menu Inferior Fixo */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: var(--bg-color); /* bg-blue */
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
    }
    
    .nav-item {
        color: var(--text-color);
        text-decoration: none;
        font-size: 0.75rem;
        text-align: center;
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 8px;
        gap: 4px;
        transition: background-color 0.3s;
    }
    
    .nav-item:hover {
        background-color: rgba(255,255,255,0.1); /* hover:bg-blue-scale-70 */
        border-radius: 6px;
    }
    
    /* Ícones */
    .nav-item img, .nav-item svg, .nav-item .iconify {
        font-size: 20px; /* Tamanho base */
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    /* Botão Central "Apostar" (Estilo Personalizado) */
    .nav-item-bet-container {
        position: relative;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        flex: 1;
        z-index: 20;
        text-decoration: none;
    }
    
    .nav-item-bet-content {
        position: absolute;
        bottom: 0;
        height: 75px; /* Mais alto que a barra de 60px para sobrar em cima */
        width: 70px;  /* Largura fixa para o efeito quadrado */
        background-color: #ffb300; /* Amarelo escuro forçado */
        border-radius: 12px 12px 0 0; /* Arredondado em cima, reto embaixo */
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Alinha conteúdo no fundo (igual aos outros) */
        align-items: center;
        padding-bottom: 8px; /* Mesmo espaçamento interno dos outros itens */
        box-shadow: 0 -4px 8px rgba(0,0,0,0.15); /* Sombra para separar visualmente */
        transition: background-color 0.3s;
    }
    
    .bet-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px; /* Mesmo gap dos outros */
        width: 100%;
    }

    /* Texto e Ícone Azul Solicitado */
    .bet-inner span {
        font-size: 0.75rem;
        font-weight: bold;
        color: #0047AB; /* Azul forte */
    }

    .bet-inner .iconify, .bet-inner svg, .bet-inner img {
        color: #0047AB; /* Azul forte */
        font-size: 24px; /* Levemente maior */
        width: 24px;
        height: 24px;
        object-fit: contain;
    }
    
    .bet-shape { display: none; }
}

/* Regras Específicas para Desktop (Telas maiores que 768px) */
@media (min-width: 769px) {
    .banner-container {
        max-height: 350px; /* Limita altura no PC */
    }
    .banner-slide img {
        height: 350px; /* Força altura fixa no PC */
        object-fit: cover; /* Corta o excesso para preencher sem distorcer */
    }
}

/* Slider de Banners */
.banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.banner-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.banner-slide {
    min-width: 100%;
}
.banner-slide img {
    width: 100%;
    display: block;
    height: auto; /* Padrão mobile: altura automática */
}

/* --- SESSÃO STORIES --- */
.stories-section {
    background-color: var(--stories-bg);
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.stories-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #444;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 10px;
}
.stories-header h3 { font-size: 1.1rem; font-weight: bold; margin: 0; }
.stories-header svg { color: #0047AB; width: 20px; height: 20px; }
.stories-wrapper {
    display: flex;
    gap: 15px;
    justify-content: center; /* Centralizado se forem poucos */
    overflow-x: auto;
}
.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 70px;
}
.story-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); /* Gradiente Instagram */
}
.story-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}
.story-item span {
    font-size: 0.75rem;
    color: #333;
    margin-top: 5px;
    font-weight: 500;
}

/* --- SESSÃO SORTUDOS DO DIA (Estilo Customizado) --- */
.winners-section {
    background-color: var(--winners-bg);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}
.winners-header {
    color: #444; /* Texto escuro para contraste com fundo cinza claro */
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 10px;
}
.winners-header-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}
.winners-header h3 { font-size: 1.1rem; font-weight: bold; text-transform: uppercase; color: #444; margin: 0; }
.winners-header svg { color: #0047AB; width: 24px; height: 24px; }
.winners-header p { font-size: 0.9rem; line-height: 1.4; }
.winners-header .highlight { font-weight: bold; color: #0047AB; font-size: 1.1rem; }

/* Card do Ganhador */
.winner-card {
    background: transparent;
    border: 1px solid #fff9c4; /* border-yellow-100 */
    border-radius: 1.5rem 1.5rem 1rem 1rem; /* rounded-t-3xl rounded-b-2xl */
    overflow: hidden;
    position: relative;
    color: #0e1a40; /* text-blue */
}
.winner-badge {
    position: absolute;
    top: 0; right: 0;
    background-color: #ffb300; /* bg-yellow */
    color: #0e1a40;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 0 1.5rem 0 1rem; /* rounded-tr-3xl rounded-bl-2xl */
}
.winner-top {
    background-color: #fff9c4; /* bg-yellow-100 */
    padding: 10px;
    text-align: center;
    border-radius: 1.5rem 1.5rem 0 0;
}
.winner-body {
    background-color: #fffde7; /* bg-yellow-50 */
    padding: 15px;
    text-align: center;
    border-radius: 0 0 1rem 1rem;
}

/* --- SESSÃO JACKPOT (Estilo Solicitado) --- */
.jackpot-section {
    background-color: var(--jackpot-bg);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}
.jackpot-header {
    margin-bottom: 1.5rem;
}
.jackpot-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.jackpot-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.jackpot-title-group h2 {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #444;
    margin: 0;
    line-height: 1;
}
.jackpot-title-group .iconify {
    color: #444;
    font-size: 28px;
}
.jackpot-link {
    color: #0047AB;
    text-decoration: underline;
    font-size: 0.9rem;
}
.jackpot-desc {
    color: #0047AB;
    font-size: 0.95rem;
    padding-bottom: 0.75rem;
    display: block;
}
/* Reutiliza estilos de card do winner, mas com ajustes específicos se necessário */
.jackpot-card {
    background: transparent;
    border: 1px solid #fff9c4;
    border-radius: 1.5rem 1.5rem 1rem 1rem;
    overflow: hidden;
    position: relative;
    color: #0e1a40;
}

/* --- SESSÃO FAQ (Dúvidas Frequentes) --- */
.faq-section {
    background-color: var(--faq-bg);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}
.faq-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}
.faq-header h2 {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #444;
    margin: 0;
}
.faq-header .iconify {
    color: #444;
    font-size: 28px;
}
.faq-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.5rem;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
    font-weight: 600;
    color: #0047AB;
}
.faq-answer {
    display: none;
    padding: 0.5rem 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}
.faq-item.active .faq-answer {
    display: block;
}
.faq-item.active .faq-question .iconify {
    transform: rotate(180deg);
}

/* --- SESSÃO INFORMATIVA (SEO) --- */
.info-section {
    background-color: var(--info-bg);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    color: #444;
}
.info-section h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0047AB;
    margin-bottom: 10px;
    margin-top: 20px;
}
.info-section h3:first-child { margin-top: 0; }
.info-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

/* --- MODAL DE STORIES (Estilo Instagram) --- */
.story-modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Fundo preto total */
    z-index: 100000; /* Acima de tudo */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.story-modal.active {
    display: flex;
}
.story-content img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
}
.story-progress-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 4px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 2px;
    z-index: 100001;
}
.story-progress-bar {
    height: 100%;
    background-color: #fff;
    width: 0%;
    border-radius: 2px;
    /* A transição será controlada via JS */
}
.story-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background-color: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100003; /* Acima da navegação */
}

/* --- HEADER AUTH & BUTTONS --- */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.balance-info-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-auth {
    background-color: var(--btn-bg-color);
    color: var(--btn-text-color);
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px; /* Borda levemente arredondada (retangular) */
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Sombra */
    transition: all 0.3s;
    font-weight: 600;
}
.btn-auth:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.25);
}
.btn-auth.outline {
    background-color: transparent;
    border: 1px solid var(--btn-text-color);
}

.user-balance-display {
    background-color: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- AUTH MODALS --- */
.auth-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 200000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.auth-modal.active { display: flex; }

.auth-box {
    background-color: var(--modal-bg);
    width: 100%;
    max-width: 400px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    position: relative;
    color: var(--modal-text);
}
.auth-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer; color: #666;
}
.auth-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--btn-bg-color);
    text-align: center;
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; color: var(--modal-text); }
.form-control {
    width: 100%; padding: 10px;
    border: 1px solid #ddd; border-radius: 5px;
    font-size: 1rem;
}
.btn-full { width: 100%; text-align: center; margin-top: 10px; }

/* --- CUSTOM ALERTS (Notificações Bonitas) --- */
.custom-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #333;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 200001; /* Acima dos modais */
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 90%;
    animation: slideDown 0.4s ease-out;
    border-left: 5px solid #333;
}
.custom-alert.success { border-left-color: #28a745; }
.custom-alert.error { border-left-color: #dc3545; }
.custom-alert button { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #999; margin-left: 15px; }
@keyframes slideDown { from { top: -50px; opacity: 0; } to { top: 20px; opacity: 1; } }

/* Botão Depositar no Header */
.btn-deposit-header {
    background-color: #ffb300; /* Fundo Amarelo */
    color: #000; /* Texto Preto */
    border: 1px solid #0047AB; /* Borda Azul fina */
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Leve sombra */
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-deposit-header:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Botões de Valor Preset */
.btn-preset {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: all 0.2s;
}
.btn-preset:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* --- ANIMAÇÕES GERAIS --- */

/* Efeito de Clique em Botões */
button:active, .btn:active, .btn-auth:active, .btn-action:active, .nav-item:active {
    transform: scale(0.95);
}

/* Transições Suaves */
a, button, .card, input, select {
    transition: all 0.2s ease-in-out;
}

/* Animações de Modal */
.auth-modal {
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
    backdrop-filter: blur(0px);
}

.auth-modal.active {
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out forwards;
}

.auth-modal.closing {
    animation: modalFadeOut 0.3s ease-in forwards;
}

.auth-modal.active .auth-box {
    animation: modalBoxEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.auth-modal.closing .auth-box {
    animation: modalBoxExit 0.3s ease-in forwards;
}

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes modalBoxEnter { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes modalBoxExit { from { opacity: 1; transform: scale(1) translateY(0); } to { opacity: 0; transform: scale(0.9) translateY(20px); } }

/* Navegação Lateral Invisível */
.story-nav-left, .story-nav-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%; /* 30% da tela para cada lado */
    z-index: 100002; /* Acima da imagem, abaixo do fechar */
    cursor: pointer;
}
.story-nav-left { left: 0; }
.story-nav-right { right: 0; }

/* --- ESTILOS DINÂMICOS (Carteira & Livro) --- */
.wallet-card {
    background-color: var(--wallet-card-bg);
    color: var(--wallet-text);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.wallet-balance-box {
    background-color: var(--wallet-balance-bg);
    color: var(--wallet-text);
    border-radius: 8px;
    padding: 15px;
}
.dream-card {
    background-color: var(--dream-card-bg);
    color: var(--dream-text);
}
