:root {
    --primary: #4361ee;
    --secondary: #7209b7;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #ffbe0b;
    --card-bg: rgba(255, 255, 255, 0.92);
    --text: #333333;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text);
    transition: all 0.3s ease;
}

/* MODO ESCURO MELHORADO */
body.dark-mode {
    --card-bg: rgba(255, 255, 255, 0.95);
    --text: #000000;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #000000;
}

/* Ajustes específicos para modo escuro */
body.dark-mode .main-card {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .main-card h2 {
    color: #000000;
}

body.dark-mode .main-card h3 {
    color: #000000;
}

body.dark-mode .sidebar {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
}

body.dark-mode .sidebar-content button {
    background: rgba(67, 97, 238, 0.15);
    color: #000000;
    border: 1px solid rgba(67, 97, 238, 0.3);
}

body.dark-mode .sidebar-content button:hover {
    background: var(--primary);
    color: #ffffff;
}

body.dark-mode .modal-content {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
}

body.dark-mode .modal-content h2 {
    color: #000000;
}

body.dark-mode .modal-content p {
    color: #000000;
}

body.dark-mode .close-btn {
    color: #000000;
}

body.dark-mode .close-btn:hover {
    color: var(--accent);
}

/* Header moderno */
.menu-bar {
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.menu-bar h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.menu-icon {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

.menu-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Conteúdo principal */
main {
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.main-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

body.dark-mode .main-card {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.main-card h2 {
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 800;
    font-size: 2rem;
}

.main-card h2 span {
    color: var(--accent);
}

.main-card h3 {
    color: var(--secondary);
    margin-bottom: 28px;
    font-weight: 600;
    font-size: 1.3rem;
}

/* Botões modernos */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.button-group {
    position: relative;
    display: flex;
}

.button-group button {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
}

.button-group button:hover {
    background: #3651d3;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(67, 97, 238, 0.4);
}

.info {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--warning);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Sidebar moderna */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--card-bg);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-header h3 {
    margin: 0;
    color: var(--primary);
    font-weight: 700;
}

.sidebar-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    transition: color 0.3s;
}

.sidebar-header button:hover {
    color: var(--accent);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-content button {
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-content button:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* Modal moderno */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
    padding: 20px;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    box-shadow: var(--shadow);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    margin-bottom: 16px;
    color: var(--primary);
    font-weight: 700;
}

.modal-content p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 24px;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text);
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent);
}

/* Elementos decorativos modernos */
.decoration {
    position: absolute;
    z-index: -1;
    opacity: 0.6;
}

.circle-1 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--success);
    top: 10%;
    left: 10%;
    opacity: 0.2;
}

.circle-2 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent);
    bottom: 15%;
    right: 15%;
    opacity: 0.2;
}

/* Responsividade com Bootstrap */
@media (max-width: 576px) {
    .menu-bar {
        padding: 14px 20px;
    }
    
    .menu-bar h1 {
        font-size: 1.6rem;
    }
    
    .main-card {
        padding: 24px;
        border-radius: 16px;
    }
    
    .main-card h2 {
        font-size: 1.7rem;
    }
    
    .main-card h3 {
        font-size: 1.1rem;
    }
    
    .sidebar {
        width: 280px;
        right: -280px;
    }
    
    .button-group button {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .info {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    .main-card {
        padding: 20px 16px;
    }
    
    .main-card h2 {
        font-size: 1.5rem;
    }
    
    .main-card h3 {
        font-size: 1rem;
    }
    
    .button-group button {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}

/* Animações suaves */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-card {
    animation: fadeIn 0.6s ease-out;
}

/* Estilo para os botões de modo de jogo */
.game-mode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.game-mode i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.game-mode .daily {
    color: var(--success);
}

.game-mode .unlimited {
    color: var(--accent);
}