/* Estilos para la tarjeta SOL - UNIFICADO CON ESTILOS DE INVERTIR */
.sol-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    box-sizing: border-box;
}

/* Contenedor de botones - CORREGIDO CON MARGEN SUPERIOR */
.sol-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 15px 0 0 0; /* ← AGREGADO MARGEN SUPERIOR */
    padding: 0;
}

/* Botones - UNIFICADO COMPLETAMENTE CON INVERTIR-BTN */
.sol-btn {
    display: inline-block;
    padding: 0.75rem 0.8rem;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid #ffffff;
    border-radius: 36px;
    background: linear-gradient(135deg, #0F52AA 0%, #0F52AA 100%) !important;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 1s ease !important;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    box-shadow: none !important;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Efecto hover para ambos botones - UNIFICADO */
.sol-btn:hover {
    background: linear-gradient(135deg, #167BFF 0%, #167BFF 100%);
    box-shadow: none !important;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.sol-btn:active {
    box-shadow: none !important;
    border: 2px solid #ffffff;
    transform: translateY(0);
}

/* Botones Depositar y Retirar - Mismo estilo unificado */
.deposit-btn-sol {
    /* Hereda todos los estilos de .sol-btn */
}

.withdraw-btn-sol {
    /* Hereda todos los estilos de .sol-btn */
}

.metamask-btn-sol {
    /* Hereda todos los estilos de .sol-btn */
}

/* Modales */
.sol-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.sol-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Contenedor de formulario */
.modal-form-container-sol {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

/* ACCIONES DE MODAL - VERSIÓN CORREGIDA */
.sol-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 1px;
    margin-bottom: 1px;
    flex-wrap: wrap;
}

/* Contenido QR */
.qr-code-center-sol {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.wallet-address-display-sol {
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    word-break: break-all;
    color: #666666;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

#wallet-address-text-sol {
    font-family: monospace;
}

#copy-wallet-address-sol {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 0.75rem;
    padding: 0.25rem;
    border-radius: 4px;
}

#copy-wallet-address-sol:hover {
    background: #e0e5eb;
}

/* Formularios */
.sol-form-group label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.sol-form-group input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.sol-form-group input:focus {
    border-color: #0F52AA; /* Color azul unificado */
    outline: none;
}

#solBalance {
    font-size: 16px;
    font-weight: 600;
    color: #000 !important;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.modal-title-sol {
    color: #000 !important;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    text-align: center;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.password-input-container-sol {
    position: relative;
    width: 100%;
}

.toggle-password-sol {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: #f5f5f5;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.toggle-password-sol:hover {
    background: #e0e0e0;
}

.toggle-password-sol svg {
    width: 18px;
    height: 18px;
}

.status-message-sol {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.status-processing-sol {
    background-color: #e6f7ff;
    color: #1890ff;
}

.status-error-sol {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.status-success-sol {
    background-color: #f6ffed;
    color: #52c41a;
}

/* Estilos para advertencias */
.qr-warning-sol {
    background-color: #FFF8E6;
    border-left: 4px solid #FFA500;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #5E503F;
    line-height: 1.4;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.qr-warning-sol strong {
    color: #D9480F;
}

.qr-warning-sol svg {
    flex-shrink: 0;
}

.withdraw-warning-sol {
    display: flex;
    align-items: flex-start;
    background-color: #FFF8E6;
    border-left: 4px solid #FFA500;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    gap: 8px;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.withdraw-warning-sol strong {
    color: #D9480F;
}

.withdraw-warning-sol svg {
    margin-top: 2px;
    flex-shrink: 0;
}

.withdraw-warning-sol span {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/* Botones específicos del modal - CORREGIDO PARA MÓVILES */
.secondary-btn-sol {
    display: inline-block;
    padding: 0.75rem 0.8rem;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid #0F52AA;
    border-radius: 36px;
    background: #ffffff !important; /* FONDO BLANCO EXPLÍCITO PARA MÓVILES */
    color: #0F52AA;
    text-decoration: none;
    cursor: pointer;
    transition: all 1s ease !important;
    text-align: center;
    box-sizing: border-box;
    box-shadow: none !important;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.secondary-btn-sol:hover {
    background: #0F52AA !important;
    color: #ffffff;
    transform: translateY(-2px);
}

.primary-btn-sol {
    display: inline-block;
    padding: 0.75rem 0.8rem;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid #ffffff;
    border-radius: 36px;
    background: linear-gradient(135deg, #0F52AA 0%, #0F52AA 100%);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 1s ease !important;
    text-align: center;
    box-sizing: border-box;
    box-shadow: none !important;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.primary-btn-sol:hover {
    background: linear-gradient(135deg, #167BFF 0%, #167BFF 100%);
    box-shadow: none !important;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Botón de cerrar del modal QR */
#wallet-qr-modal-close-sol {
    display: inline-block;
    padding: 0.75rem 0.8rem;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid #ffffff;
    border-radius: 36px;
    background: linear-gradient(135deg, #0F52AA 0%, #0F52AA 100%);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 1s ease !important;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    box-shadow: none !important;
    margin-top: 15px;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

#wallet-qr-modal-close-sol:hover {
    background: linear-gradient(135deg, #167BFF 0%, #167BFF 100%);
    box-shadow: none !important;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* RESPONSIVE - UNIFICADO CON INVERTIR-CARD */
@media (max-width: 480px) {
    .sol-card {
        padding: 1rem;
    }
    
    .sol-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
        border: 2px solid #ffffff;
    }
    
    .secondary-btn-sol,
    .primary-btn-sol {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
    
    .sol-modal-actions {
        display: flex;
        gap: 12px;
        margin-top: 8px;
    }
    
    .withdraw-warning-sol, .qr-warning-sol {
        font-size: 13px;
        padding: 10px;
    }
    
    .sol-modal {
        top: 40px;
        bottom: 30px;
    }
    
    .sol-modal-content {
        padding: 20px;
    }
    
    .sol-modal-actions {
        flex-direction: column;
    }
    
    .secondary-btn-sol,
    .primary-btn-sol {
        width: 100%;
        min-width: 100%;
    }
    
    #wallet-qr-modal-close-sol {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
        border: 2px solid #ffffff;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .sol-btn {
        font-size: 10px;
        padding: 0.7rem 0.6rem;
        border: 2px solid #ffffff;
    }
    
    .secondary-btn-sol,
    .primary-btn-sol {
        font-size: 10px;
        padding: 0.7rem 0.6rem;
    }
    
    #wallet-qr-modal-close-sol {
        font-size: 10px;
        padding: 0.7rem 0.6rem;
        border: 2px solid #ffffff;
    }
}

@media (min-width: 769px) {
    .sol-btn {
        font-size: 11px;
        padding: 0.75rem 1rem;
        border: 2px solid #ffffff;
    }
    
    .secondary-btn-sol,
    .primary-btn-sol {
        font-size: 11px;
        padding: 0.75rem 1rem;
    }
    
    #wallet-qr-modal-close-sol {
        font-size: 11px;
        padding: 0.75rem 1rem;
        border: 2px solid #ffffff;
    }
}