.bp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 18, 32, 0.58);
    backdrop-filter: blur(8px);
}

.bp-modal-overlay.is-visible {
    display: flex;
}

.bp-modal-card {
    width: min(420px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(8, 28, 44, 0.28);
    color: #102033;
    overflow: hidden;
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.bp-modal-overlay.is-visible .bp-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.bp-modal-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 22px 22px 12px;
}

.bp-modal-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 24px;
    color: #ffffff;
}

.bp-modal-icon.success {
    background: linear-gradient(135deg, #16a34a, #0f766e);
}

.bp-modal-icon.error {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.bp-modal-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #c2410c);
}

.bp-modal-icon.info {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.bp-modal-icon.loading {
    background: linear-gradient(135deg, #0aa5c3, #0f766e);
}

.bp-modal-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.42);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: bp-modal-spin 800ms linear infinite;
}

.bp-modal-copy-field {
    width: calc(100% - 44px);
    min-height: 92px;
    margin: 4px 22px 0;
    padding: 12px;
    resize: vertical;
    border: 1px solid #d8e3ec;
    border-radius: 12px;
    background: #f8fafc;
    color: #102033;
    font: 500 0.95rem/1.45 Inter, system-ui, sans-serif;
}

.bp-modal-content {
    min-width: 0;
}

.bp-modal-eyebrow {
    display: block;
    margin-bottom: 3px;
    font: 700 0.73rem/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.bp-modal-title {
    margin: 0;
    font: 800 1.25rem/1.2 Poppins, Inter, system-ui, sans-serif;
    color: #0f172a;
    letter-spacing: 0;
}

.bp-modal-message {
    margin: 8px 0 0;
    font: 500 0.95rem/1.55 Inter, system-ui, sans-serif;
    color: #475569;
}

.bp-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 22px 22px;
}

.bp-modal-button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    font: 800 0.92rem/1 Inter, system-ui, sans-serif;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.bp-modal-button:hover {
    transform: translateY(-1px);
}

.bp-modal-button.primary {
    background: #071d35;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(7, 29, 53, 0.2);
}

.bp-modal-button.secondary {
    background: #e8eef4;
    color: #243447;
}

.bp-modal-button.danger {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.18);
}

@keyframes bp-modal-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 520px) {
    .bp-modal-overlay {
        align-items: flex-end;
        padding: 14px;
    }

    .bp-modal-card {
        border-radius: 18px 18px 14px 14px;
    }

    .bp-modal-actions {
        flex-direction: column-reverse;
    }

    .bp-modal-button {
        width: 100%;
    }
}
