#sp-popup {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #fff;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 12px 16px 10px;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transform: translateY(calc(100% + 32px));
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    z-index: 9999;
}

#sp-popup.sp-visible {
    transform: translateY(0);
    opacity: 1;
}

.sp-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-right: 18px;
}

.sp-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-icon--app      { background: #e6f1fb; color: #185fa5; }
.sp-icon--purchase { background: #eaf3de; color: #3b6d11; }

.sp-content { flex: 1; }

.sp-text {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 3px;
    line-height: 1.4;
}

.sp-time {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sp-time::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.sp-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.sp-close:hover { color: #888; }

.sp-bar-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f0f0f0;
}

.sp-bar {
    height: 100%;
    width: 100%;
    background: #1E8A7A;
}

@media (max-width: 768px) {
    #sp-popup {
        transform-origin: bottom left;
        scale: 0.78;
    }
    #sp-popup.sp-visible {
        transform: translateY(0);
    }
}
