.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 24px 40px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, background .25s ease, backdrop-filter .25s ease;
    overflow-y: auto;
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
}

.modal-dialog {
    width: 100%;
    max-width: 520px;
    outline: none;
    position: relative;
    z-index: 1;
    margin-top: 5vh;
}

.modal-surface {
    position: relative;
    background: linear-gradient(160deg, rgba(28,28,26,.94), rgba(20,20,20,.92));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-shadow: 0 24px 48px -12px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
    animation: modal-in .35s cubic-bezier(.39, .575, .565, 1);
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    margin-bottom: 6px;
    padding-right: 48px;
    display: flex;
    flex-direction: column;
}

.modal-header h3 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-1);
    line-height: 1.3;
    display: block;
    width: 100%;
}

.modal-header-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-2);
    font-weight: 400;
    display: block;
    width: 100%;
}

.modal-body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-2);
    margin-top: 0;
}

.modal-list {
    margin: 0;
    padding: 0 0 0 8px;
    list-style: none;
    display: grid;
    gap: 8px;
}

.modal-list li {
    padding-left: 12px;
    line-height: 1.7;
    color: var(--ink-2);
    position: relative;
}

.modal-list li::before {
    content: '•';
    position: absolute;
    left: 0px;
    color: var(--ink-2);
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.6;
}

.modal-footer {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    color: var(--ink-2);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-close:hover {
    background: rgba(255,255,255,.16);
    transform: scale(1.05);
    color: var(--ink-1);
}

body.modal-open {
    overflow: hidden;
}

