/* Visa Popup Premium Styles */
:root {
    --vp-primary: #10b981;
    --vp-primary-dark: #059669;
    --vp-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --vp-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
}

.visa-popup {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 360px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: var(--vp-shadow);
    padding: 0;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    /* Initially hidden interaction */
}

/* Visibility State */
.visa-popup.vp-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header Section */
.vp-header {
    background: #f8fafc;
    padding: 20px 24px 16px;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.vp-agent-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Online Indicator */
.vp-agent-avatar-wrap {
    position: relative;
    display: inline-block;
}

.vp-agent-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
}

.vp-agent-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.vp-agent-info p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vp-verified-badge {
    color: #0ea5e9;
    font-size: 12px;
}

/* Close Button */
.vp-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.vp-close-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

/* Body Section */
.vp-body {
    padding: 24px;
    text-align: center;
}

.vp-message-bubble {
    background: #f0fdf4;
    color: #166534;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.5;
    position: relative;
    border: 1px solid #dcfce7;
}

.vp-message-bubble::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 12px;
    height: 12px;
    background: #f0fdf4;
    /* Match bubble background */
    border-bottom: 1px solid #dcfce7;
    border-left: 1px solid #dcfce7;
    transform: rotate(-15deg) skew(-15deg);
    /* Clip path to create triangle shape overlaying border */
    clip-path: polygon(0 0, 0% 100%, 100% 0);
}


/* Action Button */
.vp-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--vp-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    text-decoration: none;
}

.vp-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.vp-action-btn:active {
    transform: translateY(0);
}

/* Footer Section */
.vp-footer {
    padding-top: 16px;
    text-align: center;
}

.vp-terms {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

.vp-terms a {
    color: #64748b;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .visa-popup {
        width: 100%;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 24px 24px 0 0;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
        transform: translateY(100%);
    }

    .visa-popup.vp-visible {
        transform: translateY(0);
    }
}