/* Validation Modal — Avant-Garde Minimal */
.vm-root {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.vm-root.vm-open { display: flex; }

.vm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: vmFade .18s ease-out;
}
@keyframes vmFade { from { opacity: 0; } to { opacity: 1; } }

.vm-dialog {
    position: relative;
    background: #fff;
    color: #1a1a1a;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 20px 22px 18px;
    font-family: 'Inter', system-ui, sans-serif;
    animation: vmPop .22s cubic-bezier(.2,.9,.3,1.2);
    border: 1px solid rgba(0,0,0,0.04);
}
@keyframes vmPop {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.vm-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.vm-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fef3c7;
    color: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vm-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
}
.vm-close {
    background: transparent;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background-color .15s ease, color .15s ease;
}
.vm-close:hover { background: #f3f4f6; color: #111827; }

.vm-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vm-list li {
    position: relative;
    padding: 12px 14px 12px 40px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #991b1b;
}
.vm-list li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dc2626;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/></svg>") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/></svg>") center/contain no-repeat;
}
.vm-list li strong { color: #7f1d1d; font-weight: 700; margin-right: 2px; }

.vm-footer {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}
.vm-btn-primary {
    background: #0a0a0a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color .15s ease, transform .1s ease;
}
.vm-btn-primary:hover { background: #1f2937; }
.vm-btn-primary:active { transform: translateY(1px); }
.vm-btn-primary:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }

/* Dark theme */
body.dark-mode .vm-dialog,
[data-theme="dark"] .vm-dialog {
    background: #1f2937;
    color: #f3f4f6;
    border-color: #374151;
}
body.dark-mode .vm-header,
[data-theme="dark"] .vm-header { border-bottom-color: #374151; }
body.dark-mode .vm-title,
[data-theme="dark"] .vm-title { color: #f9fafb; }
body.dark-mode .vm-close:hover,
[data-theme="dark"] .vm-close:hover { background: #374151; color: #f3f4f6; }
body.dark-mode .vm-list li,
[data-theme="dark"] .vm-list li {
    background: rgba(127, 29, 29, 0.25);
    border-color: #7f1d1d;
    color: #fecaca;
}

@media (max-width: 480px) {
    .vm-dialog { max-width: 100%; padding: 18px 16px 16px; border-radius: 14px; }
    .vm-icon { width: 38px; height: 38px; }
    .vm-title { font-size: 15px; }
}
