/* ===== PREVENIR OVERFLOW LATERAL ===== */
* {
    box-sizing: border-box;
}

.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Asegurar que los modales no causen overflow */
.modal {
    overflow-x: hidden;
}

.modal-dialog {
    max-width: calc(100vw - 2rem);
    margin-left: auto;
    margin-right: auto;
}

.modal-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* Asegurar que los formularios no se salgan */
.form-control, .form-select, .form-check-input {
    max-width: 100%;
    box-sizing: border-box;
}

/* Asegurar que las cards no se salgan */
.card {
    max-width: 100%;
    box-sizing: border-box;
}

/* Asegurar que los botones no se salgan */
.btn {
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive adicional para prevenir overflow */
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100vw - 0.5rem);
    }
    
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* ===== ESTILOS DEL MODAL DE DEPÓSITO ===== */
#depositModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#depositModal .modal-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

#depositModal .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

#depositModal .btn-close {
    filter: invert(1);
}

#depositModal .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem !important;
}

#depositModal .form-label i {
    margin-right: 8px;
    color: #28a745;
}

#depositModal .input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    font-weight: 600;
    font-size: 0.95rem !important;
    padding: 8px 12px !important;
}

#depositModal .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 0.95rem !important;
    padding: 8px 12px !important;
    height: auto !important;
}

#depositModal .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

#depositModal .form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

#depositModal .card {
    border: none;
    border-radius: 10px;
}

#depositModal .card-title {
    color: #28a745;
    font-weight: 600;
}

#depositModal .card-title i {
    margin-right: 8px;
}

/* Estilos específicos para la tarjeta de datos del pago móvil */
#depositModal .card[style*="background: linear-gradient"] {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

#depositModal .card[style*="background: linear-gradient"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

#depositModal .card[style*="background: linear-gradient"] .card-title {
    font-size: 0.95rem;
    font-weight: 700;
}

#depositModal .card[style*="background: linear-gradient"] .fw-bold {
    font-size: 0.9rem;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
}

#depositModal .card[style*="background: linear-gradient"] .text-muted {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px !important;
}

#depositModal .card[style*="background: linear-gradient"] .fw-bold {
    margin-bottom: 0 !important;
}

/* Hacer la tarjeta más compacta */
#depositModal .card[style*="background: linear-gradient"] .card-body {
    padding: 0.75rem !important;
}

#depositModal .card[style*="background: linear-gradient"] .card-title {
    margin-bottom: 0.5rem !important;
}

/* Estilos para los botones de copia */
.copy-btn {
    padding: 2px 4px !important;
    font-size: 0.6rem !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    min-width: 24px !important;
    max-width: 30px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.copy-btn:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    transform: scale(1.1) !important;
}

.copy-btn:active {
    transform: scale(0.9) !important;
}

.copy-btn i {
    font-size: 0.8rem;
}

#depositModal .alert-info {
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
}

#depositModal .modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
}

#depositModal .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

#depositModal .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#depositModal .btn-secondary {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
}

/* Centrar modal verticalmente y animación de entrada */
#depositModal .modal-dialog {
    animation: fadeInScale 0.3s ease-out;
    margin: 1.75rem auto;
    min-height: calc(100vh - 3.5rem);
    display: flex;
    align-items: center;
}

@keyframes fadeInScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Estilos unificados para botones de depósito y retiro */
.btn-depositar,
.btn-retirar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-depositar:hover,
.btn-retirar:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-depositar:active,
.btn-retirar:active {
    transform: translateY(-1px) scale(0.98) !important;
    transition: all 0.1s ease !important;
}

.btn-depositar i,
.btn-retirar i {
    font-size: 1rem !important;
    transition: transform 0.3s ease !important;
}

.btn-depositar:hover i,
.btn-retirar:hover i {
    transform: scale(1.1) !important;
}

/* Efecto de brillo en hover */
.btn-depositar::before,
.btn-retirar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-depositar:hover::before,
.btn-retirar:hover::before {
    left: 100%;
}

/* Estilos para botones de retos y ranking */
.btn-retos,
.btn-ranking {
    background: linear-gradient(135deg, #ffda6b 0%, #eea024 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-retos:hover,
.btn-ranking:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-retos:active,
.btn-ranking:active {
    transform: translateY(-1px) scale(0.98) !important;
    transition: all 0.1s ease !important;
}

.btn-retos i,
.btn-ranking i {
    font-size: 1rem !important;
    transition: transform 0.3s ease !important;
}

.btn-retos:hover i,
.btn-ranking:hover i {
    transform: scale(1.1) !important;
}

/* Efecto de brillo en hover para retos y ranking */
.btn-retos::before,
.btn-ranking::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-retos:hover::before,
.btn-ranking:hover::before {
    left: 100%;
}

.btn-depositar:hover,
.btn-retirar:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-depositar:active,
.btn-retirar:active {
    transform: translateY(-1px) scale(0.98) !important;
    transition: all 0.1s ease !important;
}

.btn-depositar i,
.btn-retirar i {
    font-size: 1rem !important;
    transition: transform 0.3s ease !important;
}

.btn-depositar:hover i,
.btn-retirar:hover i {
    transform: scale(1.1) !important;
}

/* Efecto de brillo en hover */
.btn-depositar::before,
.btn-retirar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

/* Estilos para el modal de retiro */
.payment-missing-card {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.missing-content {
    max-width: 500px;
    margin: 0 auto;
}

.missing-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.missing-title {
    color: #856404;
    font-weight: bold;
    margin-bottom: 15px;
}

.missing-text {
    color: #856404;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.missing-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.missing-details p {
    color: #856404;
    font-weight: bold;
    margin-bottom: 10px;
}

.missing-details ul {
    color: #856404;
    text-align: left;
    margin: 0;
    padding-left: 20px;
}

.missing-details li {
    margin-bottom: 5px;
}

.missing-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.missing-actions .btn {
    min-width: 150px;
    font-weight: bold;
}

.withdraw-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.withdraw-summary h6 {
    color: #495057;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    color: #495057;
    font-weight: bold;
}
.alert.position-fixed {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* ===== ESTILOS FINALES PARA BOTONES DE COPIA - MÁXIMA PRIORIDAD ===== */
@media (max-width: 767px) {
    #depositModal .copy-btn {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
        min-width: 34px !important;
        max-width: 30px !important;
        height: 32px !important;
        background-color: #f8f9fa !important;
        border: 2px solid #28a745 !important;
        color: #28a745 !important;
        font-weight: 600 !important;
    }
    
    #depositModal .copy-btn i {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 768px) and (min-width: 768px) {
    #depositModal .copy-btn {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
        border-radius: 5px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 28px !important;
        background-color: #f8f9fa !important;
        border: 1px solid #28a745 !important;
        color: #28a745 !important;
    }
    
    #depositModal .copy-btn i {
        font-size: 0.9rem !important;
    }
}

/* ===== ESTILOS GENERALES ===== */
body {
    margin: 0;
    padding: 20px;
    background-color: #0a366a;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ===== CANVAS DEL JUEGO ===== */
#gameCanvas {
    width: 700px;
    height: 500px;
    background-color: rgb(240, 195, 115);
    background-image: url('../img/fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid #2E5B8C;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* ===== CONTROLES DENTRO DEL CANVAS ===== */
.game-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 90%;
    max-width: 400px;
}

/* ===== PAPAGAYO ===== */
#parrot {
    position: absolute;
    width: 300px;
    height: auto;
    top: 12%;
    left: 50%;
    transform: translateX(-50%) scale(1);
    transition: 0.8s;
    opacity: 1;
    z-index: 10;
    /*filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));*/
}

/* ===== GUACAMAYAS ===== */
#guacamaya1, #guacamaya2, #guacamaya3 {
    position: absolute;
    width: 100px;
    height: auto;
    top: 40%;
    left: -100px;
    z-index: 5;
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* ===== NUBES ===== */
.cloud {
    position: absolute;
    z-index: 3;
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.3));
    pointer-events: none;
}

.sky-element {
    position: absolute;
    z-index: 3;
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.3));
    pointer-events: none;
}

/* ===== BALANCE ===== */
.balance-display {
    text-align: center;
    margin-bottom: 20px;
}

.balance-card {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.balance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(46, 204, 113, 0.4);
}

.balance-card .card-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.balance-amount {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

/* ===== MULTIPLICADOR ===== */
.multiplier-display {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ===== BOTONES ===== */
#controlButton {
    padding: 15px 30px !important;
    font-size: 18px !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(33, 154, 252, 0.4) !important;
    transition: all 0.1s ease !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    height: 56px !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #219afc, #1e88e5) !important;
    /* Resetear todos los estilos de Bootstrap */
    outline: none !important;
    text-decoration: none !important;
}

/* Forzar estado normal - sin hover */
#controlButton:not(:hover):not(:active):not(:focus) {
    background: linear-gradient(135deg, #219afc, #1e88e5) !important;
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(33, 154, 252, 0.4) !important;
    height: 56px !important;
    line-height: 1.2 !important;
}

#controlButton:hover {
    background: linear-gradient(135deg, #1e88e5, #1976d2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(33, 154, 252, 0.6) !important;
    height: 56px !important;
    line-height: 1.2 !important;
}

#controlButton:active {
    background: linear-gradient(135deg, #219afc, #1e88e5) !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(33, 154, 252, 0.3) !important;
    height: 56px !important;
    line-height: 1.2 !important;
}

#controlButton:focus {
    background: linear-gradient(135deg, #219afc, #1e88e5) !important;
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(33, 154, 252, 0.4) !important;
    height: 56px !important;
    line-height: 1.2 !important;
    outline: none !important;
}

/* ===== BOTONES PEGADOS EN MÓVIL ===== */
@media (max-width: 767px) {
    .d-flex {
        border-radius: 0.375rem;
        overflow: hidden;
    }
    
    .d-flex .btn:first-child {
        flex: 0 0 60% !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-right: none !important;
        margin-right: 0 !important;
        padding: 0.875rem 0.5rem !important;
        font-size: 1rem !important;
        font-weight: bold !important;
        height: 56px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .d-flex .btn:last-child {
        flex: 0 0 40% !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        font-size: 0.9rem !important;
        padding: 0.875rem 0.5rem !important;
        font-weight: bold !important;
        height: 56px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Estilos específicos para botones de copia en móviles pequeños - MAYOR ESPECIFICIDAD */
    #depositModal .copy-btn,
    .modal .copy-btn,
    .copy-btn {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
        min-width: 32px !important;
        max-width: 30px !important;
        height: 30px !important;
        background-color: #f8f9fa !important;
        border: 1px solid #28a745 !important;
        color: #28a745 !important;
    }
    
    #depositModal .copy-btn i,
    .modal .copy-btn i,
    .copy-btn i {
        font-size: 1rem !important;
    }
    
    #depositModal .copy-btn:hover,
    .modal .copy-btn:hover,
    .copy-btn:hover {
        transform: scale(1.05) !important;
        background-color: #28a745 !important;
        color: white !important;
    }
    
    /* Ajustar el espaciado en móviles pequeños */
    #depositModal .card[style*="background: linear-gradient"] .d-flex {
        gap: 8px;
    }
    
    #depositModal .card[style*="background: linear-gradient"] .fw-bold {
        font-size: 0.9rem;
    }
    
    /* Campos del formulario más pequeños en móviles pequeños */
    #depositModal .form-control {
        font-size: 1rem !important;
        padding: 10px 14px !important;
    }
    
    #depositModal .form-label {
        font-size: 0.95rem !important;
    }
    
    #depositModal .form-text {
        font-size: 0.85rem !important;
    }
    
    #depositModal .input-group-text {
        font-size: 1rem !important;
        padding: 10px 14px !important;
    }
}

/* ===== BOTONES EN DESKTOP ===== */
@media (min-width: 768px) {
    .d-flex .btn:first-child {
        border-radius: 0.375rem !important;
        border-right: 1px solid rgba(255,255,255,0.2);
        font-weight: bold !important;
    }
    
    .d-flex .btn:last-child {
        border-radius: 0.375rem !important;
        font-weight: bold !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #gameCanvas {
        width: 90vw;
        height: 70vh;
        max-height: 600px;
    }
    
    .game-controls {
        width: 95%;
        max-width: 350px;
        bottom: 10px;
    }
    
    body {
        padding: 10px;
    }
    
    #parrot {
        width: 350px;
    }
    
    .multiplier-display {
        font-size: 40px;
    }
    
    /* Estilos del modal de depósito en móviles */
    #depositModal .modal-dialog {
        margin: 0.5rem;
        min-height: calc(100vh - 1rem);
    }
    
    #depositModal .modal-content {
        border-radius: 10px;
    }
    
    #depositModal .modal-header {
        border-radius: 10px 10px 0 0;
    }
    
    /* Estilos específicos para botones de copia en móviles medianos - MAYOR ESPECIFICIDAD */
    #depositModal .copy-btn,
    .modal .copy-btn,
    .copy-btn {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
        border-radius: 5px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 28px !important;
        background-color: #f8f9fa !important;
        border: 1px solid #28a745 !important;
        color: #28a745 !important;
    }
    
    #depositModal .copy-btn i,
    .modal .copy-btn i,
    .copy-btn i {
        font-size: 0.9rem !important;
    }
    
    #depositModal .copy-btn:hover,
    .modal .copy-btn:hover,
    .copy-btn:hover {
        transform: scale(1.05) !important;
        background-color: #28a745 !important;
        color: white !important;
    }
    
    /* Ajustar el espaciado en móviles medianos */
    #depositModal .card[style*="background: linear-gradient"] .d-flex {
        gap: 6px;
    }
    
    #depositModal .card[style*="background: linear-gradient"] .fw-bold {
        font-size: 0.85rem;
    }
    
    /* Campos del formulario más pequeños en móviles medianos */
    #depositModal .form-control {
        font-size: 0.98rem !important;
        padding: 9px 13px !important;
    }
    
    #depositModal .form-label {
        font-size: 0.92rem !important;
    }
    
    #depositModal .form-text {
        font-size: 0.82rem !important;
    }
    
    #depositModal .input-group-text {
        font-size: 0.98rem !important;
        padding: 9px 13px !important;
    }
}

/* ===== CONTENEDOR DE BOTONES ===== */
.d-flex.position-relative {
    z-index: 999999;
}

.game-controls .d-flex.position-relative {
    z-index: 999999;
}

/* ===== BOTBUJITA DE COUNTDOWN ===== */
.countdown-bubble {
    position: fixed !important;
    top: -60px !important;
    z-index: 9999999 !important;
    animation: floatBubble 2s ease-in-out infinite;
    pointer-events: none;
}

.bubble-content {
    background: white;
    color: #333;
    padding: 6px 10px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 60px;
    border: 1px solid #e0e0e0;
}

.bubble-text {
    display: block;
    font-size: 0.6rem;
    font-weight: 500;
    margin-bottom: 1px;
    color: #666;
}

.bubble-countdown {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
    color: #ff4757;
}

/* Flecha de la botbujita */
.bubble-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

/* Animación de flotación para la botbujita */
@keyframes floatBubble {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ===== ANIMACIÓN MULTIPLICADOR FINAL ===== */
.final-multiplier-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.final-multiplier-overlay.show {
    opacity: 1;
}

.final-multiplier-overlay.hide {
    opacity: 0;
}

.final-multiplier-content {
    text-align: center;
    transform: scale(0.5);
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.final-multiplier-overlay.show .final-multiplier-content {
    transform: scale(1);
}

.final-multiplier-text {
    font-size: 2rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.final-multiplier-number {
    font-size: 6rem;
    color: #2ecc71;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(46, 204, 113, 0.8);
    animation: glow 1s ease-in-out infinite alternate;
}

.final-multiplier-win {
    font-size: 2.5rem;
    color: #f39c12;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes glow {
    0% { 
        text-shadow: 0 0 20px rgba(46, 204, 113, 0.8);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 30px rgba(46, 204, 113, 1);
        transform: scale(1.05);
    }
}

/* ===== ANIMACIONES ===== */
@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); }
    100% { transform: translateX(-50%) scale(1.05); }
}

/* ===== BOTONES DE USUARIO ===== */
.user-info {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.user-name i,
.btn-logout i,
.btn-perfil i,
.btn-depositar i,
.btn-retirar i {
    margin-right: 6px;
}

.user-saldo {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-logout {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 15px !important;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-logout:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
    color: white;
    text-decoration: none;
}

.btn-perfil {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 15px !important;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-perfil:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

/* Estilos para el header del usuario */

/* ===== ESTILOS PARA CONVERSIÓN A BOLÍVARES ===== */
.bolivar-conversion-card {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    border: 2px solid #ff5252;
    animation: slideIn 0.5s ease-out;
}

.bolivar-content {
    text-align: center;
    color: white;
}

.bolivar-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bolivar-title i {
    margin-right: 8px;
    color: #fff;
}

.bolivar-amount {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    min-width: 120px;
}

.bolivar-rate {
    font-size: 11px;
    opacity: 0.85;
    font-style: italic;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseBolivar {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.bolivar-amount.pulse {
    animation: pulseBolivar 0.6s ease-in-out;
}

/* ===== ESTILOS PARA BOTÓN DE SUBIR ARCHIVO ===== */
.upload-container {
    position: relative;
}

.btn-upload-file {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: 2px solid #2c3e50;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-upload-file:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    border-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 62, 80, 0.3);
}

.btn-upload-file:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.btn-upload-file i {
    font-size: 1.1rem;
}

.file-info {
    margin-top: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out;
}

.file-info i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.file-info span {
    flex: 1;
    font-weight: 500;
    color: #155724;
    font-size: 0.9rem;
}

.btn-upload-file:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-upload-file:disabled:hover {
    background: #6c757d;
    border-color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* ===== ESTILOS PARA VALIDACIÓN DE PAGO ===== */
.payment-validation-card {
    margin-top: 20px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #2196f3;
    border-radius: 15px;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

.validation-content {
    color: #1565c0;
}

.validation-spinner {
    margin-bottom: 20px;
}

.validation-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

.validation-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.validation-text {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

.payment-result-card {
    margin-top: 20px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    border: 2px solid #4caf50;
    border-radius: 15px;
    animation: slideIn 0.5s ease-out;
}

.result-content {
    text-align: center;
    color: #2e7d32;
}

.result-icon {
    margin-bottom: 15px;
}

.result-icon i {
    font-size: 3rem;
}

.result-title {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #2e7d32;
}

.result-details {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #2e7d32;
}

.detail-value {
    font-weight: 600;
    color: #1b5e20;
}

.result-actions {
    margin-top: 20px;
    text-align: center;
}

.result-actions .btn {
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 250px;
}

.result-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}

@keyframes pulseValidation {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.payment-validation-card {
    animation: pulseValidation 2s ease-in-out infinite;
}

/* ===== ESTILOS PARA CARD DE PAGO NO ENCONTRADO ===== */
.payment-notfound-card {
    margin-top: 20px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 15px;
    animation: slideIn 0.5s ease-out;
}

.notfound-content {
    text-align: center;
    color: #856404;
}

.notfound-icon {
    margin-bottom: 15px;
}

.notfound-icon i {
    font-size: 3rem;
}

.notfound-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #856404;
}

.notfound-text {
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.notfound-reasons {
    text-align: left;
    margin-bottom: 25px;
    padding: 0 20px;
    color: #856404;
}

.notfound-reasons li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.notfound-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.notfound-buttons .btn {
    min-width: 180px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid;
}

.notfound-buttons .btn-warning {
    background: #fff;
    border-color: #856404;
    color: #856404;
}

.notfound-buttons .btn-warning:hover {
    background: #f8f9fa;
    border-color: #856404;
    color: #856404;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notfound-buttons .btn-primary {
    background: #fff;
    border-color: #6c757d;
    color: #6c757d;
}

.notfound-buttons .btn-primary:hover {
    background: #f8f9fa;
    border-color: #6c757d;
    color: #6c757d;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notfound-buttons .btn i {
    margin-right: 6px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .notfound-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .notfound-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== ESTILOS PARA CARD DE PAGO DUPLICADO ===== */
.payment-duplicate-card {
    margin-top: 20px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 2px solid #dc3545;
    border-radius: 15px;
    animation: slideIn 0.5s ease-out;
}

.duplicate-content {
    text-align: center;
    color: #721c24;
}

.duplicate-icon {
    margin-bottom: 15px;
}

.duplicate-icon i {
    font-size: 3rem;
}

.duplicate-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #721c24;
}

.duplicate-text {
    margin-bottom: 25px;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

.duplicate-buttons {
    display: flex;
    justify-content: center;
}

.duplicate-buttons .btn {
    min-width: 200px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid #856404;
    background: #fff;
    color: #856404;
}

.duplicate-buttons .btn:hover {
    background: #f8f9fa;
    border-color: #856404;
    color: #856404;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.duplicate-buttons .btn i {
    margin-right: 6px;
    font-size: 0.85rem;
}

/* ===== ESTILOS ESPECÍFICOS PARA MODAL DE RETIRO ===== */
#withdrawModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Centrar modal verticalmente y animación de entrada */
#withdrawModal .modal-dialog {
    animation: fadeInScale 0.3s ease-out !important;
    margin: 1.75rem auto !important;
    min-height: calc(100vh - 3.5rem) !important;
    display: flex !important;
    align-items: center !important;
}

#withdrawModal .modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

#withdrawModal .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

#withdrawModal .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 0.5rem;
    line-height: 1;
}

#withdrawModal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
    color: white;
}

#withdrawModal .btn-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    outline: none;
}

#withdrawModal .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem !important;
}

#withdrawModal .form-label i {
    margin-right: 8px;
    color: #dc3545;
}

#withdrawModal .form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

#withdrawModal .input-group-text {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-color: #dc3545;
    font-weight: 600;
}

#withdrawModal .form-control {
    border-color: #dc3545;
    transition: all 0.3s ease;
}

#withdrawModal .form-select {
    border-color: #dc3545;
    transition: all 0.3s ease;
}

#withdrawModal .form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#withdrawModal .form-select option {
    padding: 8px 12px;
}

#withdrawModal textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

#withdrawModal textarea.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Botones de copia específicos para retiro */
#withdrawModal .copy-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: #dc3545;
    color: white;
    transition: all 0.3s ease;
}

#withdrawModal .copy-btn:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3);
}

#withdrawModal .copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.3);
}

#withdrawModal .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#withdrawModal .form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

#withdrawModal .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

#withdrawModal .form-label i {
    margin-right: 8px;
    color: #dc3545;
}

#withdrawModal .input-group-text {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-color: #dc3545;
    font-weight: 600;
}

#withdrawModal .form-control {
    border-color: #dc3545;
    transition: all 0.3s ease;
}

#withdrawModal .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#withdrawModal .form-select {
    border-color: #dc3545;
    transition: all 0.3s ease;
}

#withdrawModal .form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#withdrawModal .form-select option {
    padding: 8px 12px;
}

#withdrawModal textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

#withdrawModal textarea.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Botones de copia específicos para retiro */
#withdrawModal .copy-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: #dc3545;
    color: white;
    transition: all 0.3s ease;
}

#withdrawModal .copy-btn:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3);
}

#withdrawModal .copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.3);
}

/* Responsive para modal de retiro */
@media (max-width: 768px) {
    #withdrawModal .modal-dialog {
        margin: 0.5rem;
        min-height: calc(100vh - 1rem);
    }
    
    #withdrawModal .modal-content {
        border-radius: 10px;
    }
    
    #withdrawModal .modal-header {
        border-radius: 10px 10px 0 0;
    }
    
    #withdrawModal .form-label {
        font-size: 0.95rem !important;
    }
    
    #withdrawModal .form-text {
        font-size: 0.85rem !important;
    }
    
    #withdrawModal .input-group-text {
        font-size: 1rem !important;
    }
    
    #withdrawModal .form-control {
        font-size: 0.95rem !important;
    }
    
    #withdrawModal .form-select {
        font-size: 0.95rem !important;
    }
    
    #withdrawModal .btn {
        font-size: 0.9rem !important;
        padding: 8px 16px !important;
    }
    
    #withdrawModal .copy-btn {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    #withdrawModal .modal-dialog {
        margin: 0.5rem;
        min-height: calc(100vh - 1rem);
    }
    
    #withdrawModal .form-label {
        font-size: 0.92rem !important;
    }
    
    #withdrawModal .form-text {
        font-size: 0.82rem !important;
    }
    
    #withdrawModal .input-group-text {
        font-size: 0.98rem !important;
    }
    
    #withdrawModal .form-control {
        font-size: 0.92rem !important;
    }
    
    #withdrawModal .form-select {
        font-size: 0.92rem !important;
    }
    
    #withdrawModal .btn {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
    }
    
    #withdrawModal .copy-btn {
        padding: 3px 6px !important;
        font-size: 0.7rem !important;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA MODAL DE PERFIL ===== */
#profileModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Centrar modal verticalmente y animación de entrada */
#profileModal .modal-dialog {
    animation: fadeInScale 0.3s ease-out !important;
    margin: 1.75rem auto !important;
    min-height: calc(100vh - 3.5rem) !important;
    display: flex !important;
    align-items: center !important;
}

#profileModal .modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

#profileModal .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

#profileModal .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 0.5rem;
    line-height: 1;
}

#profileModal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
    color: white;
}

#profileModal .btn-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    outline: none;
}

#profileModal .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem !important;
}

#profileModal .form-label i {
    margin-right: 8px;
    color: #3498db;
}

#profileModal .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

#profileModal .form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

#profileModal .form-select {
    border-color: #3498db;
    transition: all 0.3s ease;
}

#profileModal .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

#profileModal .form-control {
    border-color: #3498db;
    transition: all 0.3s ease;
}

/* Responsive para modal de perfil */
@media (max-width: 768px) {
    #profileModal .modal-dialog {
        margin: 0.5rem;
        min-height: calc(100vh - 1rem);
    }
    
    #profileModal .modal-content {
        border-radius: 10px;
    }
    
    #profileModal .modal-header {
        border-radius: 10px 10px 0 0;
    }
    
    #profileModal .form-label {
        font-size: 0.95rem !important;
    }
    
    #profileModal .form-text {
        font-size: 0.85rem !important;
    }
    
    #profileModal .form-control {
        font-size: 0.95rem !important;
    }
    
    #profileModal .form-select {
        font-size: 0.95rem !important;
    }
    
    #profileModal .btn {
        font-size: 0.9rem !important;
        padding: 8px 16px !important;
    }
}

@media (max-width: 480px) {
    #profileModal .modal-dialog {
        margin: 0.5rem;
        min-height: calc(100vh - 1rem);
    }
    
    #profileModal .form-label {
        font-size: 0.92rem !important;
    }
    
    #profileModal .form-text {
        font-size: 0.82rem !important;
    }
    
    #profileModal .form-control {
        font-size: 0.92rem !important;
    }
    
    #profileModal .form-select {
        font-size: 0.92rem !important;
    }
    
    #profileModal .btn {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
    }
}