/* ============================================
   SOCIAL PROOF NOTIFICATIONS - COMPACT DESIGN
   Thin, mobile-friendly, all info visible
   ============================================ */

/* ===== CONTAINER - RIGHT BOTTOM ===== */
.sp-container {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (max-width: 480px) {
    .sp-container {
        right: 8px;
        left: 8px;
        bottom: 8px;
        align-items: stretch;
    }
}

/* ===== POPUP - THIN & COMPACT ===== */
.sp-notification {
    background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(253,253,247,0.96) 100%);
    border: 1px solid rgba(253, 203, 110, 0.3);
    border-radius: 14px;
    padding: 10px 14px;
    min-width: 300px;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(253, 203, 110, 0.15), 0 3px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    cursor: default;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(60px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sp-notification.sp-show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.sp-notification.sp-hide {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.35s ease-in;
}

/* Left gold accent */
.sp-notification::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #fdcb6e, #f9ca24);
    border-radius: 14px 0 0 14px;
}

/* Shine sweep */
.sp-notification::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-15deg);
    animation: spShine 3s ease-in-out infinite;
}

@keyframes spShine {
    0% { left: -100%; }
    40%, 100% { left: 200%; }
}

/* ===== COMPACT AVATAR ===== */
.sp-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    border: 1.5px solid rgba(255,255,255,0.5);
}

/* ===== CONTENT AREA ===== */
.sp-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Row 1: Name + Verified + Amount (all in one line) */
.sp-top-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.sp-name {
    font-size: 12px;
    font-weight: 800;
    color: #2d3436;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.sp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    background: linear-gradient(135deg, #e8f8f5, #f0fff9);
    border: 1px solid #a9dfbf;
    border-radius: 4px;
    padding: 0px 4px;
    font-size: 7px;
    font-weight: 800;
    color: #00b894;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

/* Amount inline with name */
.sp-amount-inline {
    font-size: 13px;
    font-weight: 900;
    color: #00b894;
    margin-left: auto;
    flex-shrink: 0;
    letter-spacing: -0.3px;
}

/* Row 2: Location + Payment */
.sp-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sp-location {
    font-size: 10px;
    color: rgba(45,52,54,0.45);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.sp-location .sp-flag {
    font-size: 11px;
}

.sp-payment-method {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 5px;
    border: 1px solid rgba(253,203,110,0.15);
    background: rgba(253,203,110,0.06);
    color: rgba(45,52,54,0.5);
}

.sp-payment-method .sp-pay-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
}

/* Row 3: Withdrawal label + Time */
.sp-bottom-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1px;
}

.sp-withdrawal-label {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(45,52,54,0.4);
    background: rgba(253,203,110,0.1);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(253,203,110,0.15);
    flex-shrink: 0;
}

.sp-time-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.sp-live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b894, #00cec9);
    position: relative;
    flex-shrink: 0;
}

.sp-live-dot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: rgba(0,184,148,0.3);
    animation: spLivePulse 2s ease-in-out infinite;
}

@keyframes spLivePulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(2.5); opacity: 0; }
}

.sp-time-text {
    font-size: 9px;
    color: rgba(45,52,54,0.35);
    font-weight: 600;
}

/* ===== CLOSE BUTTON ===== */
.sp-close {
    position: absolute;
    top: 6px; right: 8px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(253,203,110,0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: rgba(45,52,54,0.3);
    opacity: 0;
    transition: all 0.3s;
    z-index: 2;
    font-weight: 700;
    padding: 0;
    line-height: 1;
}

.sp-notification:hover .sp-close {
    opacity: 1;
}

.sp-close:hover {
    background: rgba(231,76,60,0.15);
    color: #e74c3c;
}

/* ===== FLAG IMAGE ===== */
.sp-flag-img {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    flex-shrink: 0;
    display: inline-block;
}

/* ===== SOUND TOGGLE ===== */
.sp-sound-btn {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 99999;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fffdf5, #fefcf8);
    border: 1px solid rgba(253,203,110,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(253,203,110,0.2);
    font-size: 16px;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.sp-sound-btn:hover {
    transform: scale(1.1);
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
    .sp-notification {
        min-width: unset;
        max-width: unset;
        width: 100%;
        padding: 8px 12px;
        gap: 8px;
    }
    .sp-name {
        max-width: 100px;
        font-size: 11px;
    }
    .sp-amount-inline {
        font-size: 12px;
    }
    .sp-location {
        font-size: 9px;
    }
    .sp-sound-btn {
        bottom: 10px;
        left: 10px;
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}
