/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff88;
    --secondary-color: #1a1a1a;
    --background-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #333333;
    --success-color: #00ff88;
    --error-color: #ff4444;
    --warning-color: #ffaa00;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container de login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--background-color) 0%, #111111 100%);
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 600px;
}

/* Seção esquerda - Informações */
.login-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00cc6a 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.logo-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-align: center;
    position: relative;
}

.logo-main {
    display: block;
    margin-bottom: 10px;
}

.logo-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
}

.logo-icons i {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.welcome-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.welcome-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-item i {
    font-size: 1.5rem;
    color: white;
}

.feature-item span {
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

/* Seção direita - Formulário */
.login-form-section {
    background: var(--secondary-color);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Seletor de tipo de login */
.login-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
    border-radius: 12px;
    background: var(--background-secondary);
    padding: 6px;
}

.login-type-btn {
    background: transparent;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    user-select: none;
    outline: none;
}

.login-type-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
}

.login-type-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: none !important;
}


.login-type-btn i {
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.form-input {
    background: #2a2a2a;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00cc6a 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: var(--secondary-color);
    padding: 0 20px;
    color: var(--text-muted);
    font-weight: 600;
}

.register-btn {
    background: #2a2a2a;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.register-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
}

.modal-close:hover {
    color: var(--error-color);
}

.modal-body {
    padding: 30px;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.terms-link:hover {
    text-decoration: underline;
}

.register-submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00cc6a 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.register-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 100vh;
    background: var(--background-color);
}

/* Sidebar */
.sidebar {
    background: var(--secondary-color);
    padding: 30px 20px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.user-profile {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.balance-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.balance-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.balance-value.balance-updated {
    animation: balancePulse 0.5s ease;
}

@keyframes balancePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.balance-refresh-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    font-size: 12px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.balance-refresh-btn:hover {
    opacity: 1;
    color: var(--primary-color);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.deposit-btn {
    background: var(--primary-color);
    color: white;
}

.deposit-btn:hover {
    background: #00cc6a;
    transform: translateY(-2px);
}

.withdraw-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.withdraw-btn:hover {
    background: rgba(240, 10, 94, 0.12);
    transform: translateY(-2px);
}

.logout-btn {
    background: #2a2a2a;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.logout-btn:hover {
    background: var(--error-color);
    border-color: var(--error-color);
    color: white;
}

.menu-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-item {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary-color);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.menu-item.active .menu-link {
    color: var(--primary-color);
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.menu-link i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    padding: 40px;
    overflow-y: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.content-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.content-title i {
    color: var(--primary-color);
}

.recommended-badge {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filtros de categoria */
.category-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #2a2a2a;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Grid de jogos */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.game-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.recommended-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.game-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.popularity {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.popularity i {
    color: var(--warning-color);
}

.no-games {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-games i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.no-games h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* Loading e Toast */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--secondary-color);
    color: var(--text-primary);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.toast.error {
    border-left-color: var(--error-color);
}

.toast.success {
    border-left-color: var(--success-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal de saldo insuficiente */
.insufficient-balance-modal {
    max-width: 480px;
    text-align: center;
}

.insufficient-balance-modal .modal-header {
    background: var(--secondary-color);
    border-bottom: 3px solid var(--primary-color);
    padding: 30px 20px 20px 20px;
    position: relative;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.insufficient-balance-modal .modal-icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
}

.insufficient-balance-modal .modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.insufficient-balance-modal .modal-body {
    padding: 30px;
    background: var(--secondary-color);
}

.insufficient-balance-modal .modal-body p {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #e2e8f0;
    line-height: 1.6;
}

.insufficient-balance-modal .modal-body p strong {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.insufficient-balance-modal .modal-body p:last-child {
    margin-bottom: 0;
}

.insufficient-balance-modal .modal-footer {
    padding: 20px 30px;
    background: var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    justify-content: center;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.insufficient-balance-modal .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 14px;
}

.insufficient-balance-modal .btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.insufficient-balance-modal .btn-primary:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.insufficient-balance-modal .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.insufficient-balance-modal .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .insufficient-balance-modal {
        max-width: 90%;
        margin: 20px;
    }
    
    .insufficient-balance-modal .modal-icon {
        font-size: 48px;
    }
    
    .insufficient-balance-modal .modal-header h2 {
        font-size: 20px;
    }
    
    .insufficient-balance-modal .modal-body p {
        font-size: 14px;
    }
    
    .insufficient-balance-modal .modal-footer {
        flex-direction: column;
    }
    
    .insufficient-balance-modal .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mensagens de erro/sucesso no formato lendarios.bet */
.bd-callout {
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bd-callout-danger {
    background-color: rgba(255, 68, 68, 0.1);
    border-left-color: #ff4444;
    color: #ff6b6b;
}

.bd-callout-danger i {
    color: #ff4444;
    font-size: 18px;
}

.bd-callout-success {
    background-color: rgba(0, 255, 136, 0.1);
    border-left-color: #00ff88;
    color: #00ff88;
}

.bd-callout-success i {
    color: #00ff88;
    font-size: 18px;
}

.bd-callout-warning {
    background-color: rgba(255, 170, 0, 0.1);
    border-left-color: #ffaa00;
    color: #ffaa00;
}

.bd-callout-warning i {
    color: #ffaa00;
    font-size: 18px;
}

/* Container para mensagens de erro no formulário */
.login-form-messages {
    margin-bottom: 20px;
}

.register-form-messages {
    margin-bottom: 20px;
}

/* ===== Depósito PIX ===== */
.deposit-modal-content {
    max-width: 440px;
}

.deposit-subtitle {
    color: var(--text-secondary, #aaa);
    margin: 0 0 18px;
    text-align: center;
    font-size: 0.95rem;
}

.deposit-value-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.deposit-value-buttons button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color, #333);
    color: var(--text-primary, #fff);
    border-radius: 8px;
    padding: 10px 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.deposit-value-buttons button:hover {
    border-color: var(--primary-color, #f00a5e);
    color: var(--primary-color, #f00a5e);
}

.deposit-value-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.deposit-step-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #333);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary, #fff);
    font-size: 1.25rem;
    cursor: pointer;
}

.deposit-value-field,
.deposit-cupom-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.deposit-value-field label,
.deposit-cupom-field label {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
}

.deposit-value-field input,
.deposit-cupom-field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #333);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-primary, #fff);
    font-size: 1rem;
}

.deposit-cupom-field {
    margin-bottom: 18px;
}

.deposit-submit-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color, #f00a5e);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.deposit-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.deposit-message {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.deposit-message--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.deposit-message--success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.deposit-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.deposit-qr-success {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.deposit-qr-success h3 {
    margin: 0 0 6px;
    color: #34d399;
    font-size: 1.05rem;
}

.deposit-qr-image {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
}

.deposit-qr-hint {
    margin: 4px 0 0;
    font-weight: 600;
}

.deposit-qr-meta {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    word-break: break-all;
}

.deposit-qr-timer {
    margin: 0;
    color: #fbbf24;
    font-size: 0.9rem;
}

.deposit-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 6px;
}

.deposit-qr-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.deposit-qr-actions .btn-primary {
    background: #2563eb;
    color: #fff;
}

.deposit-qr-actions .btn-secondary {
    background: #4b5563;
    color: #fff;
}

.deposit-pix-code {
    width: 100%;
    min-height: 70px;
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #333);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-secondary, #ccc);
    font-size: 0.7rem;
    resize: none;
}

.deposit-paid-notice {
    margin: 8px 0 0;
    color: #34d399;
    font-weight: 700;
}

.deposit-approved-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 10px 0 4px;
}

.deposit-approved-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-size: 2.4rem;
}

.deposit-approved-wrap h3 {
    margin: 0;
    color: #34d399;
    font-size: 1.35rem;
}

.deposit-approved-text,
.deposit-approved-balance {
    margin: 0;
    color: var(--text-secondary, #ccc);
    font-size: 0.95rem;
}

.deposit-approved-balance strong {
    color: var(--text-primary, #fff);
}

/* ===== Saque ===== */
.withdraw-modal-content {
    max-width: 480px;
}

.withdraw-subtitle {
    color: var(--text-secondary, #aaa);
    margin: -6px 0 16px;
    text-align: center;
    font-size: 0.92rem;
}

.withdraw-balance-box {
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.withdraw-balance-box span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted, #888);
    margin-bottom: 4px;
}

.withdraw-balance-box strong {
    font-size: 1.6rem;
    color: var(--primary-color, #f00a5e);
}

.withdraw-limits {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted, #999);
    margin-bottom: 16px;
}

.withdraw-limits i {
    color: var(--primary-color, #f00a5e);
    margin-right: 4px;
}

.withdraw-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.withdraw-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.withdraw-field label {
    font-size: 0.82rem;
    color: var(--text-secondary, #ccc);
}

.withdraw-field label i {
    color: var(--primary-color, #f00a5e);
    margin-right: 4px;
}

.withdraw-field input,
.withdraw-field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #333);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-primary, #fff);
    font-size: 0.95rem;
}

.withdraw-field select option {
    background: #1a1a1a;
    color: #fff;
}

.withdraw-field input[readonly] {
    opacity: 0.75;
}

.withdraw-info-box {
    margin: 8px 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.08);
    border-left: 3px solid #fbbf24;
    color: var(--text-secondary, #ccc);
    font-size: 0.82rem;
}

.withdraw-info-box strong {
    display: block;
    margin-bottom: 6px;
    color: #fbbf24;
}

.withdraw-info-box ul {
    margin: 0;
    padding-left: 18px;
}

.withdraw-info-box li {
    margin-bottom: 4px;
}

.withdraw-kyc-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 8px 0;
}

.withdraw-kyc-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.withdraw-kyc-wrap--review .withdraw-kyc-icon {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.withdraw-kyc-wrap--rejected .withdraw-kyc-icon,
.withdraw-kyc-wrap--pending .withdraw-kyc-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.withdraw-kyc-wrap h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary, #fff);
}

.withdraw-kyc-text {
    margin: 0;
    color: var(--text-secondary, #ccc);
    font-size: 0.92rem;
    line-height: 1.5;
}

.withdraw-kyc-tips {
    text-align: left;
    margin: 0;
    padding-left: 18px;
    color: var(--text-muted, #aaa);
    font-size: 0.82rem;
    line-height: 1.5;
}

.withdraw-kyc-btn {
    width: 100%;
    text-decoration: none;
    margin-top: 4px;
}

.withdraw-kyc-close {
    background: transparent;
    border: 1px solid var(--border-color, #444);
    color: var(--text-secondary, #ccc);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .withdraw-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .deposit-value-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}