/* Споделени modals (PnvModal) */
body.pnv-modal-open {
    overflow: hidden;
}

.pnv-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

.pnv-modal[hidden] {
    display: none !important;
}

.pnv-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, 0.72);
    backdrop-filter: blur(4px);
}

.pnv-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    z-index: 1;
    animation: pnv-modal-in 0.22s ease-out;
}

@keyframes pnv-modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pnv-modal__content {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #121a2a 0%, #0c111c 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.pnv-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 0;
}

.pnv-modal__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.pnv-modal__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(240, 244, 250, 0.75);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pnv-modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.pnv-modal__close .icon {
    width: 18px;
    height: 18px;
}

.pnv-modal__body {
    padding: 14px 20px 4px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(240, 244, 250, 0.82);
}

.pnv-modal__body p {
    margin: 0;
}

.pnv-modal__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px 20px;
}

.pnv-modal__footer .btn-outline {
    height: auto;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e8ecf2;
    font-weight: 600;
    box-shadow: none;
}

.pnv-modal__footer .btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
    transform: none;
}

.pnv-modal__footer .btn-red {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 700;
}

.pnv-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10100;
    max-width: min(420px, calc(100vw - 32px));
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(20, 30, 48, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    color: #e8ecf2;
    font-size: 14px;
    text-align: center;
}

.pnv-toast[hidden] {
    display: none !important;
}
