/* ============================================
   TESTIMONIES / SOCIAL PROOF TICKER
   ============================================ */

#testimonyTicker {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.testimony-popup {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    max-width: 320px;
    pointer-events: all;

    /* Entry animation */
    animation: testimonyIn .4s cubic-bezier(.34,1.56,.64,1) forwards;
}

.testimony-popup.leaving {
    animation: testimonyOut .35s ease-in forwards;
}

@keyframes testimonyIn {
    from { opacity: 0; transform: translateX(-32px) scale(.94); }
    to   { opacity: 1; transform: translateX(0)     scale(1);   }
}

@keyframes testimonyOut {
    from { opacity: 1; transform: translateX(0)     scale(1);   }
    to   { opacity: 0; transform: translateX(-24px) scale(.94); }
}

/* Avatar circle with initials */
.testimony-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.testimony-text {
    flex: 1;
    min-width: 0;
}

.testimony-name {
    font-weight: 700;
    font-size: .82rem;
    color: var(--text-primary, #111);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimony-msg {
    font-size: .78rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.3;
}

.testimony-msg .highlight-amount {
    font-weight: 700;
    color: var(--success, #16a34a);
}

.testimony-msg .highlight-signup {
    font-weight: 600;
    color: var(--accent-primary, #D95F0E);
}

/* Icon on the right */
.testimony-icon {
    font-size: .95rem;
    flex-shrink: 0;
    margin-left: 4px;
}

.testimony-icon.profit { color: var(--success, #16a34a); }
.testimony-icon.signup { color: var(--accent-primary, #D95F0E); }

/* Dark theme */
[data-theme="dark"] .testimony-popup {
    background: var(--card-bg, #1c1c1c);
    border-color: var(--border, #2e2e2e);
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

/* Mobile: smaller, move to bottom center */
@media (max-width: 480px) {
    #testimonyTicker {
        left: 12px;
        right: 12px;
        bottom: 16px;
        align-items: center;
    }
    .testimony-popup { max-width: 100%; width: 100%; }
}