/* ============================================================
   ESTILOS GENERALES Y STICKERS FLOTANTES (routters.vip)
   ============================================================ */

.q2a-boton-flotante {
    position: fixed;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FF9100, #007bff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: grab;
    z-index: 9999;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
    border: 2px solid white;
    user-select: none;
    transition: transform 0.1s;
}

.q2a-boton-flotante:active {
    cursor: grabbing;
    transform: scale(0.95);
}

/* Efecto Neón para cada 5 botones */
.q2a-boton-flotante.neon {
    background: #fff;
    border: 2px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.7);
    animation: pulse-blue 1.2s infinite alternate;
}

@keyframes pulse-blue {
    from { box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); }
    to { transform: scale(1.05); box-shadow: 0 0 20px rgba(0, 123, 255, 0.9); }
}

/* Tooltip de los stickers */
.tooltip-leyenda {
    position: absolute;
    bottom: -35px;
    background: rgba(255, 145, 0, 0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10001;
}

.tooltip-leyenda.mostrar {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   LA BOLSA / BOTONERA (CONTENEDOR)
   ============================================================ */

.q2a-bolsa-contenedor {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.q2a-bolsa-contenedor:hover {
    border-color: #FF9100;
    box-shadow: 0 4px 15px rgba(255, 145, 0, 0.3);
}

.bolsa-tag {
    font-size: 9px;
    color: #555;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: -5px;
}

.bolsa-icon { font-size: 24px; margin-top: 5px; }

.bolsa-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #FF9100;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.bolsa-leyenda-guia {
    position: absolute;
    top: -50px;
    left: 0;
    background: #FF9100;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.bolsa-leyenda-guia.mostrar {
    opacity: 1;
    visibility: visible;
    top: -60px;
}

.stashed { display: none !important; }

.shake-anim { animation: shake 0.5s ease-in-out; }
@keyframes shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* ============================================================
   RANKING WIDGET (UI/UX PREMIUM)
   ============================================================ */

.ranking-title {
    color: #007bff !important;
    margin-bottom: 15px !important;
    font-size: 1.1em !important;
    border-bottom: 2px solid #FF9100;
    padding-bottom: 5px;
    font-weight: bold;
}

.ranking-item-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0;
    border-bottom: 1px solid #f2f2f2;
    width: 100%;
}

.ranking-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
}

/* Fix para Avatares circulares sin deformación */
.ranking-avatar-circle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50% !important;
    overflow: hidden;
    border: 2px solid #007bff;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-avatar-circle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    border-radius: 0 !important;
}

.ranking-user-link {
    color: #333 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crown-icon { font-size: 14px; margin-left: 2px; }

.ranking-stats { flex-shrink: 0; margin-left: 5px; }

.badge-count-pill {
    color: #FF9100 !important;
    font-size: 12px;
    font-weight: bold;
    background: #fff5e6;
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid #ffe0b3;
    white-space: nowrap;
}

/* ============================================================
   POPUP Y OTROS
   ============================================================ */

.q2a-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
}

.q2a-popup-content {
    background: #fff; padding: 30px; border-radius: 10px;
    text-align: center; max-width: 350px;
}

.q2a-popup-content button {
    background: #FF9100; color: white; border: none;
    padding: 10px 20px; border-radius: 5px; font-weight: bold; cursor: pointer;
}