/* =====================================================
   MDT Optimizer Proof — optimizer-proof.css
   Paleta: Branco · Roxo escuro em gradiente · Preto
   ===================================================== */

#mdt-op-popup {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999999;
    width: 320px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Gradiente roxo escuro → preto */
    background: linear-gradient(135deg, #1a0a3a 0%, #2d1457 40%, #0d0d14 100%);
    border: 1px solid rgba(124,58,237,0.4);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.5),
        0 0 0 1px rgba(124,58,237,0.15),
        inset 0 1px 0 rgba(255,255,255,0.06);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#mdt-op-popup.mdt-op-right { left: auto; right: 24px; }

#mdt-op-popup:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 40px rgba(0,0,0,0.6),
        0 0 0 1px rgba(124,58,237,0.35),
        0 0 24px rgba(91,33,182,0.25),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── Oculto ── */
#mdt-op-popup.mdt-op-hidden {
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
}

/* ── Animações ── */
#mdt-op-popup.mdt-op-enter {
    animation: mdt-op-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
#mdt-op-popup.mdt-op-leave {
    animation: mdt-op-out 0.3s ease-in forwards;
}

@keyframes mdt-op-in {
    from { opacity: 0; transform: translateY(32px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes mdt-op-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(16px); }
}

/* ── Faixa topo colorida ── */
#mdt-op-popup .mdt-op-stripe-top {
    height: 3px;
    background: linear-gradient(90deg, #5b21b6, #a78bfa, #7c3aed, #5b21b6);
    background-size: 200% 100%;
    animation: mdt-op-shimmer 2.5s linear infinite;
}
@keyframes mdt-op-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Conteúdo ── */
#mdt-op-popup .mdt-op-inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 14px 16px 12px;
    position: relative;
}

/* ── Textos ── */
#mdt-op-popup .mdt-op-body {
    flex: 1;
    min-width: 0;
}

#mdt-op-popup .mdt-op-name {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mdt-op-popup .mdt-op-action {
    font-size: 11px;
    color: #a78bfa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 3px 0 4px;
}

#mdt-op-popup .mdt-op-product {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

#mdt-op-popup .mdt-op-location {
    font-size: 11.5px;
    color: #c4b5fd;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Rodapé com tempo ── */
#mdt-op-popup .mdt-op-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 16px 11px;
    border-top: 1px solid rgba(124,58,237,0.2);
}

#mdt-op-popup .mdt-op-time {
    font-size: 10.5px;
    color: rgba(196,181,253,0.7);
    display: flex;
    align-items: center;
    gap: 4px;
}

#mdt-op-popup .mdt-op-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: mdt-op-pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes mdt-op-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.7); }
}

#mdt-op-popup .mdt-op-live {
    font-size: 10px;
    color: #22c55e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Fechar ── */
#mdt-op-popup .mdt-op-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 13px;
    color: rgba(196,181,253,0.5);
    cursor: pointer;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    z-index: 2;
}
#mdt-op-popup .mdt-op-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ── Barra de progresso ── */
#mdt-op-popup .mdt-op-progress {
    height: 2px;
    background: linear-gradient(90deg, #a78bfa, #5b21b6);
    transform-origin: left;
    animation: mdt-op-progress linear forwards;
}
@keyframes mdt-op-progress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* ── Selo verificado ── */
#mdt-op-popup .mdt-op-verified {
    font-size: 10px;
    color: rgba(167,139,250,0.7);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    #mdt-op-popup {
        width: calc(100vw - 28px);
        left: 14px;
        bottom: 14px;
    }
    #mdt-op-popup.mdt-op-right {
        left: 14px;
        right: auto;
    }
}
