/* Popup Component Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    background: #ffffff;
    width: 85%;
    max-width: 400px; /* Reduced from 520px */
    border-radius: 20px;
    padding: 24px 20px; /* Reduced from 36px 32px 32px 32px */
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box;
}

.popup-overlay.active .popup-box {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 32px; /* Slightly smaller close button */
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
}

.close-btn:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    transform: rotate(90deg);
}

.close-btn svg {
    width: 14px;
    height: 14px;
}

.icon-container {
    width: 48px; /* Reduced from 60px */
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 12px auto;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
    color: #ffffff;
    font-size: 22px;
}

.popup-content h2 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.popup-content > p {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: left;
}

.info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 6px;
    font-weight: 500;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item span {
    margin-right: 8px;
    font-size: 1rem;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.action-btn {
    flex: 1;
    display: inline-block;
    padding: 10px 14px; /* Slightly tighter button padding */
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: #ffffff;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.btn-secondary:hover {
    background: #f5f3ff;
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(1px);
}