/* Estilos para modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* NUEVO: fuerza que el modal activo quede al frente */
.modal.front {
    z-index: 3000;
}

/* Modal de Anuncio/Promoción */
.announcement-modal {
    position: relative;
    background: radial-gradient(circle at 50% 45%, #0f1e44 0%, #0a1533 60%, #071025 100%);
    border-radius: 18px;
    border: 2px solid rgba(255, 210, 0, 0.25);
    box-shadow:
        0 0 25px rgba(255, 210, 0, 0.35),
        0 0 60px rgba(255, 210, 0, 0.18),
        inset 0 0 12px rgba(255, 210, 0, 0.15);
    padding: 28px;
}

.announcement-modal .modal-title {
    color: #ffd54f;
    text-align: center;
    margin-bottom: 16px;
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 12px rgba(255, 210, 0, 0.35);
}

.announcement-body {
    color: #e6e6e6;
    text-align: center;
}

.announcement-logo {
    margin-bottom: 8px;
}
.announcement-logo img {
    max-height: 60px;
    filter: drop-shadow(0 0 10px rgba(255, 210, 0, 0.25));
}

.announcement-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 18px 0;
    display: inline-block;
    text-align: left;
}
.announcement-list li {
    margin: 8px 0;
    font-size: 16px;
    color: #dcdcdc;
}
.announcement-list i {
    color: #ffd54f;
    margin-right: 8px;
}

.announcement-actions {
    margin-top: 10px;
}
.announcement-actions .submit-button {
    background: linear-gradient(135deg, #ffb300, #ff9100);
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(255, 145, 0, 0.35);
    font-weight: 800;
}
.announcement-actions .submit-button:hover {
    background: linear-gradient(135deg, #ff9100, #ffb300);
    transform: translateY(-1px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.9), rgba(64, 160, 255, 0.9));
    margin: 5% auto;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 128, 255, 0.5);
    border: 1px solid rgba(64, 160, 255, 0.3);
    width: 80%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalFadeIn 0.4s;
}

/* Estilo específico para el modal de registro - Color azul eléctrico */
.register-modal {
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.9), rgba(64, 160, 255, 0.9));
    box-shadow: 0 0 25px rgba(0, 128, 255, 0.6);
    border: 1px solid rgba(64, 160, 255, 0.3);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.modal-title {
    color: #40A0FF;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(64, 160, 255, 0.5);
}

/* Título específico para el modal de registro */
.register-modal .modal-title {
    color: #40A0FF;
    text-shadow: 0 0 10px rgba(64, 160, 255, 0.5);
}

/* Estilos para el formulario de registro */
.register-form-container {
    padding: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ddd;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(64, 160, 255, 0.5);
    background-color: rgba(0, 32, 64, 0.6);
    color: white;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #40A0FF;
    box-shadow: 0 0 8px rgba(64, 160, 255, 0.8);
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-container input {
    width: 150px;
}

.captcha-container img {
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
}

.form-actions {
    margin-top: 25px;
    text-align: center;
}

.submit-button {
    background: linear-gradient(to right, #0080FF, #40A0FF);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 128, 255, 0.3);
}

.submit-button:hover {
    background: linear-gradient(to right, #40A0FF, #0080FF);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 160, 255, 0.4);
}

/* Estilos base para botones flotantes */
.floating-button {
    position: fixed;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    min-width: 140px;
    justify-content: center;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Contenedor para centrar los botones */
.floating-buttons-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

/* Posicionamiento específico para cada botón - Usuario NO logueado */
.floating-button.login-button {
    background: linear-gradient(135deg, #0080FF, #0060CC);
    color: white;
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    box-shadow: 0 6px 20px rgba(0, 128, 255, 0.4);
}

.floating-button.register-button {
    background: linear-gradient(135deg, #40A0FF, #0080FF);
    color: white;
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    box-shadow: 0 6px 20px rgba(64, 160, 255, 0.4);
}

/* Botón de ranking - siempre visible */
.floating-button.ranking-button {
    background: linear-gradient(135deg, #00BFFF, #0080FF);
    color: white;
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

/* Botones para usuario logueado */
.floating-button.user-info-button {
    background: linear-gradient(135deg, #0099FF, #0060CC);
    color: white;
    cursor: default;
    pointer-events: none;
    font-size: 14px;
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4);
}

.floating-button.logout-button {
    background: linear-gradient(135deg, #0080FF, #0060CC);
    color: white;
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    box-shadow: 0 6px 20px rgba(0, 128, 255, 0.4);
}

.floating-button.downloads-button {
    background: linear-gradient(135deg, #40A0FF, #0080FF);
    color: white;
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    box-shadow: 0 6px 20px rgba(64, 160, 255, 0.4);
}

/* Efectos hover para botones interactivos */
.floating-button.login-button:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, #0099FF, #0080FF);
    box-shadow: 0 12px 30px rgba(0, 128, 255, 0.8);
}

.floating-button.register-button:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, #00BFFF, #40A0FF);
    box-shadow: 0 12px 30px rgba(64, 160, 255, 0.8);
}

.floating-button.ranking-button:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, #40A0FF, #00BFFF);
    box-shadow: 0 12px 30px rgba(0, 191, 255, 0.8);
}

.floating-button.logout-button:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, #0099FF, #0080FF);
    box-shadow: 0 12px 30px rgba(0, 128, 255, 0.8);
}

.floating-button.downloads-button:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, #60B0FF, #40A0FF);
    box-shadow: 0 12px 30px rgba(64, 160, 255, 0.8);
}

/* Responsividad para dispositivos móviles */
@media (max-width: 768px) {
    .floating-buttons-container {
        bottom: 20px;
        gap: 15px;
        flex-wrap: wrap;
        max-width: 90%;
    }
    
    .floating-button {
        min-width: 120px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .floating-buttons-container {
        bottom: 15px;
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .floating-button {
        min-width: 160px;
        padding: 15px 25px;
        font-size: 15px;
    }
}

/* Estilos específicos para el modal de ranking */
.modal-content.ranking-modal {
    background: linear-gradient(135deg, #0060CC 0%, #0080FF 100%);
    border: 1px solid #0080FF;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0, 128, 255, 0.4);
}

.ranking-modal .modal-title {
    color: #40A0FF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #00BFFF;
}

.ranking-container {
    padding: 20px;
    color: #fff;
}

/* Estilos para las pestañas de ranking */
.ranking-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #0080FF;
}

.tab-button {
    background-color: transparent;
    color: #40A0FF;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 128, 255, 0.2);
}

.tab-button:hover {
    background-color: rgba(0, 128, 255, 0.3);
    color: #00BFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.4);
}

.tab-button.active {
    background: linear-gradient(135deg, #0080FF, #0060CC);
    color: white;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(0, 128, 255, 0.6);
}

/* Estilos para el contenido de las pestañas */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Estilos para las tablas de ranking - Estilo Acacias */
.ranking-box {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
    border: 1px solid #444;
    overflow: hidden;
}

.ranking-subtitle {
    color: #40A0FF;
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0, 128, 255, 0.3);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    color: #fff;
    font-size: 14px;
    background-color: #2a2a2a;
}

.ranking-table th {
    background: linear-gradient(to bottom, #4a4a4a, #3a3a3a);
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    border: 1px solid #555;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-table td {
    padding: 10px 8px;
    border: 1px solid #444;
    text-align: center;
    background-color: #2a2a2a;
    vertical-align: middle;
}

.ranking-table tr:hover {
    background-color: rgba(255, 165, 0, 0.1);
}

.ranking-table tr:nth-child(even) td {
    background-color: #333;
}

.ranking-table tr:nth-child(odd) td {
    background-color: #2a2a2a;
}

/* Estilos específicos para columnas */
.ranking-table .rank-col {
    width: 8%;
    font-weight: bold;
    color: #ffa500;
}

.ranking-table .name-col {
    width: 20%;
    text-align: left;
    padding-left: 15px;
    color: #87ceeb;
    font-weight: bold;
}

.ranking-table .class-col {
    width: 18%;
    color: #98fb98;
}

.ranking-table .level-col {
    width: 12%;
    color: #ffd700;
    font-weight: bold;
}

.ranking-table .reset-col {
    width: 12%;
    color: #ff6347;
    font-weight: bold;
}

.ranking-table .guild-col {
    width: 15%;
    color: #40A0FF;
}

.ranking-table .status-col {
    width: 10%;
}

.ranking-table .contribution-col {
    width: 15%;
    color: #90ee90;
    font-weight: bold;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #40A0FF;
    font-style: italic;
}

/* Estilos para iconos y elementos especiales */
.country-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    display: inline-block;
    margin: 0 auto;
}

.gens-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.gens-devil {
    background-color: #8B0000;
}

.gens-angel {
    background-color: #4169E1;
}

.online-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

.status-offline {
    background-color: #ff0000;
    box-shadow: 0 0 5px #ff0000;
}

.contribution-number {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Efectos especiales para top 3 */
.ranking-table tr.rank-1 td {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-color: #ffd700;
}

.ranking-table tr.rank-2 td {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.1));
    border-color: #c0c0c0;
}

.ranking-table tr.rank-3 td {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.1));
    border-color: #cd7f32;
}

/* Estilos para las estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 128, 255, 0.3);
}

.stat-icon {
    font-size: 30px;
    color: #00BFFF;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    color: #40A0FF;
    font-size: 14px;
}

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

/* ===== ESTILOS ADICIONALES PARA RANKING DINÁMICO ===== */

/* Botón de refresh en el título del modal */
.modal-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #40A0FF;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.refresh-btn .fa-spin {
    animation: spin 1s linear infinite;
}

/* Indicador de carga */
.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #40A0FF;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
}

.loading-indicator i {
    margin-right: 10px;
    color: #00BFFF;
}

/* Estilos para jugadores online */
.online-player {
    background-color: rgba(76, 175, 80, 0.1) !important;
    border-left: 3px solid #4caf50;
}

.online-player:hover {
    background-color: rgba(76, 175, 80, 0.2) !important;
}

/* Estilos para iconos de estado */
.text-success {
    color: #4caf50 !important;
}

.text-muted {
    color: #757575 !important;
}

/* Estilos para números de ranking */
.rank-number {
    font-weight: bold;
    color: #ffd700;
    font-size: 16px;
}

.rank-number:nth-child(1) {
    color: #ffd700; /* Oro para el primer lugar */
}

tr:nth-child(2) .rank-number {
    color: #c0c0c0; /* Plata para el segundo lugar */
}

tr:nth-child(3) .rank-number {
    color: #cd7f32; /* Bronce para el tercer lugar */
}

/* Estilos para nombres de personajes */
.character-name {
    font-weight: bold;
    color: #fff;
}

.character-class {
    color: #00BFFF;
    font-style: italic;
}

.character-level {
    color: #81c784;
    font-weight: bold;
}

.character-resets {
    color: #ffb74d;
    font-weight: bold;
}

/* Estilos para guilds */
.guild-name {
    font-weight: bold;
    color: #fff;
}

.guild-master {
    color: #ffd54f;
}

.guild-members {
    color: #81c784;
}

.guild-score {
    color: #ffb74d;
    font-weight: bold;
}

/* Animación para estadísticas actualizadas */
.stat-updated {
    animation: statPulse 0.5s ease;
}

@keyframes statPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #4caf50; }
    100% { transform: scale(1); }
}

/* Grid responsivo para estadísticas */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-modal {
        width: 95%;
        margin: 2% auto;
    }
    
    .ranking-table {
        font-size: 14px;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 8px 5px;
    }
}

/* Estilos para mensajes de error */
.no-data.error {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-weight: 500;
}

.no-data.error i {
    color: #f44336;
    margin-right: 8px;
    font-size: 16px;
}

/* Estilos para estado de carga */
.no-data.loading {
    color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-weight: 500;
}

.no-data.loading i {
    color: #2196f3;
    margin-right: 8px;
    font-size: 16px;
}

/* Estilos para mensajes informativos */
.no-data {
    color: #757575;
    background: rgba(117, 117, 117, 0.1);
    border: 1px solid rgba(117, 117, 117, 0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-weight: 500;
}

.no-data i {
    color: #757575;
    margin-right: 8px;
    font-size: 16px;
}

/* Botón de reintentar */
.retry-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.retry-btn:active {
    transform: translateY(0);
}

/* Mejoras en los subtítulos */
.ranking-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ranking-subtitle i {
    color: #00BFFF;
}

/* Estilos para el grid de estadísticas expandido */
.stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ===== ESTILOS PARA MODAL DE DESCARGAS ===== */
.downloads-modal {
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.95), rgba(64, 160, 255, 0.95));
    box-shadow: 0 0 30px rgba(0, 128, 255, 0.7);
    border: 2px solid rgba(64, 160, 255, 0.4);
    max-width: 800px;
    width: 90%;
}

.downloads-modal .modal-title {
    color: #40A0FF;
    text-shadow: 0 0 10px rgba(64, 160, 255, 0.5);
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
}

.downloads-info {
    text-align: center;
    color: #E0F0FF;
    margin-bottom: 30px;
    font-size: 1.1em;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(64, 160, 255, 0.3);
}

.download-platform {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(64, 160, 255, 0.3);
    transition: all 0.3s ease;
}

.download-platform:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(64, 160, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 255, 0.3);
}

.platform-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.platform-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: bold;
}

.mediafire-icon {
    background: linear-gradient(135deg, #1e74fd, #0066cc);
    box-shadow: 0 0 15px rgba(30, 116, 253, 0.4);
}

.mega-icon {
    background: linear-gradient(135deg, #d9272e, #b71c1c);
    box-shadow: 0 0 15px rgba(217, 39, 46, 0.4);
}

.platform-info h3 {
    color: #40A0FF;
    margin: 0 0 5px 0;
    font-size: 1.4em;
    text-shadow: 0 0 8px rgba(64, 160, 255, 0.5);
}

.platform-info p {
    color: #B0D0FF;
    margin: 0;
    font-size: 0.95em;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.download-btn {
    background: linear-gradient(135deg, #0080FF, #40A0FF);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0, 128, 255, 0.3);
    border: 1px solid rgba(64, 160, 255, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, #40A0FF, #60B0FF);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 255, 0.5);
    border-color: rgba(64, 160, 255, 0.6);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn i {
    font-size: 1.1em;
}

/* Botones específicos para MEGA (rojos) */
.mega-platform .download-btn {
    background: linear-gradient(135deg, #d9272e, #ff4444);
    box-shadow: 0 3px 10px rgba(217, 39, 46, 0.3);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.mega-platform .download-btn:hover {
    background: linear-gradient(135deg, #ff4444, #ff6666);
    box-shadow: 0 5px 15px rgba(217, 39, 46, 0.5);
    border-color: rgba(255, 68, 68, 0.6);
}

.downloads-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(64, 160, 255, 0.3);
    text-align: center;
}

.support-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.support-link {
    color: #40A0FF;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(64, 160, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-link:hover {
    background: rgba(64, 160, 255, 0.2);
    border-color: rgba(64, 160, 255, 0.5);
    transform: translateY(-1px);
    text-decoration: none;
    color: #60B0FF;
}

/* Responsive para modal de descargas */
@media (max-width: 768px) {
    .downloads-modal {
        width: 95%;
        margin: 2% auto;
    }
    
    .download-buttons {
        grid-template-columns: 1fr;
    }
    
    .platform-header {
        flex-direction: column;
        text-align: center;
    }
    
    .platform-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .support-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* User Dashboard Modal Styles */
.user-dashboard-modal {
    background: linear-gradient(135deg, rgba(16,16,16,0.95), rgba(32,32,32,0.95));
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(64, 160, 255, 0.2);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.dashboard-item {
    background: rgba(0, 32, 64, 0.35);
    border: 1px solid rgba(64, 160, 255, 0.25);
    border-radius: 8px;
    padding: 12px;
    color: #ddd;
}

.dashboard-title {
    font-weight: bold;
    margin-bottom: 6px;
    color: #40A0FF;
}

.dashboard-value {
    font-size: 14px;
    color: #fff;
}

.dashboard-button {
    background: linear-gradient(135deg, #40A0FF, #0080FF);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.dashboard-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 160, 255, 0.4);
}

.dashboard-list {
    margin-top: 15px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(64, 160, 255, 0.25);
    border-radius: 8px;
    padding: 10px;
}

.list-title {
    color: #40A0FF;
    font-weight: bold;
    margin-bottom: 8px;
}

.list-item {
    display: grid;
    grid-template-columns: 28px 1fr 90px 80px 110px;
    gap: 8px;
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
}
.list-item:last-child { border-bottom: none; }
.rank { color: #40A0FF; font-weight: bold; }
.name { font-weight: bold; }
.class, .level, .reset { color: #ddd; }