/* Credit Notification Manager Popup Styles */

.cnm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cnm-popup-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 480px;
    width: 100%;
    text-align: center;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 32px;
}

.cnm-popup-overlay.show .cnm-popup-container {
    transform: scale(1) translateY(0);
}

.cnm-popup-icon-wrapper {
    margin-bottom: 20px;
}

.cnm-popup-icon-wrapper svg {
    width: 56px;
    height: 56px;
    color: #667eea;
}

.cnm-popup-title {
    margin: 0 0 12px 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.cnm-popup-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 24px;
}

.cnm-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cnm-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cnm-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.cnm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cnm-btn-secondary {
    background: #f1f5f9;
    color: #374151;
}
.cnm-btn-secondary:hover {
    background: #e2e8f0;
}

.cnm-popup-close-wrapper {
    margin-top: 16px;
}

.cnm-popup-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .cnm-popup-container { background: #1f2937; }
    .cnm-popup-title { color: #f9fafb; }
    .cnm-popup-message { color: #d1d5db; }
    .cnm-btn-secondary { background: #374151; color: #f3f4f6; }
    .cnm-btn-secondary:hover { background: #4b5563; }
    .cnm-popup-close { color: #9ca3af; }
}