/* Backdrop */
#nbh-custom-amount-modal.nbhcam-backdrop {
    display: none; /* JS controls visibility */
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.55); /* dark glass backdrop */
    align-items: center;
    justify-content: center;
}

/* Modal card */
.nbhcam-modal {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 26px 22px;
    max-width: 420px;
    width: 92%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    position: relative;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
    animation: nbhcam-fadeInUp 0.22s ease-out;
}

/* Close icon (top-right) */
.nbhcam-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.nbhcam-close:hover {
    color: #0f172a;
}

.nbhcam-title {
    margin: 4px 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.nbhcam-subtitle {
    margin: 0 0 18px;
    font-size: 14px;
    color: #6b7280;
}

/* Buttons wrapper */
.nbhcam-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

/* Base button style */
.nbhcam-btn {
    width: 100%;
    border-radius: 999px;
    padding: 11px 16px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s;
}

/* Primary amount buttons */
.nbhcam-btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.nbhcam-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.45);
}

/* Ghost / cancel button */
.nbhcam-btn-ghost {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.nbhcam-btn-ghost:hover {
    background: #e5e7eb;
}

/* Animation */
@keyframes nbhcam-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .nbhcam-modal {
        padding: 20px 18px 18px;
    }
}
