html {
    scrollbar-gutter: stable;
}

.private-vault-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.private-vault-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.private-vault-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.private-vault-modal__dialog {
    position: relative;
    width: min(100%, 28rem);
    padding: 2.4rem 1.5rem 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #15171d 0%, #101115 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.private-vault-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: rgba(227, 229, 240, 0.5);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.private-vault-modal__lock {
    width: 3.4rem;
    height: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d7c2d4;
}

.private-vault-modal__lock svg {
    width: 2.7rem;
    height: 2.7rem;
    display: block;
}

.private-vault-modal__title {
    margin: 0.9rem 0 0;
    color: #f2f3f7;
    font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.private-vault-modal__summary {
    margin: 0.95rem 0 0;
    color: rgba(227, 229, 240, 0.58);
    font-size: 0.92rem;
    line-height: 1.7;
}

.private-vault-modal__message {
    margin: 0.9rem 0 0;
    color: rgba(227, 229, 240, 0.68);
    font-size: 0.9rem;
    line-height: 1.6;
}

.private-vault-modal__message--error {
    color: #efc2cd;
}

.private-vault-modal__dialog .private-vault-modal__form {
    width: 100%;
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.private-vault-modal__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.private-vault-modal__dialog .private-vault-modal__input {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(203, 208, 224, 0.2);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    background-clip: padding-box;
    color: #e3e5f0;
    text-align: center;
}

.private-vault-modal__dialog .private-vault-modal__input::placeholder {
    color: rgba(227, 229, 240, 0.38);
}

.private-vault-modal__dialog .private-vault-modal__input:focus {
    outline: none;
    border-color: rgba(215, 194, 212, 0.46);
    background: rgba(255, 255, 255, 0.03);
}

.private-vault-modal__dialog .private-vault-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    border: 1px solid rgba(203, 208, 224, 0.32);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.015);
    background-clip: padding-box;
    color: #e3e5f0;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.private-vault-modal__dialog .private-vault-modal__submit:hover,
.private-vault-modal__dialog .private-vault-modal__close:hover {
    border-color: rgba(215, 194, 212, 0.54);
    color: #fff8f8;
}

.private-vault-modal__dialog .private-vault-modal__submit:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.03);
}

body.private-vault-modal-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow-y: scroll;
}
