/* Navbar "VRChat" dialog */
.vl-modal { position: fixed; inset: 0; z-index: 7000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vl-modal[hidden] { display: none; }
.vl-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); animation: vl-fade 0.2s ease; }
@keyframes vl-fade { from { opacity: 0; } to { opacity: 1; } }
.vl-card {
  position: relative; width: min(640px, 100%); max-height: 92vh; overflow-y: auto; padding: 28px; border-radius: 22px;
  background: rgba(24, 24, 28, 0.97); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
  color: #fff; animation: vl-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes vl-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.vl-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; }
.vl-x:hover { background: var(--primary-color, #e50914); }
.vl-loading { padding: 50px; text-align: center; color: #aaa; font-size: 22px; }

.vl-head { display: flex; gap: 16px; align-items: center; padding-right: 36px; margin-bottom: 22px; }
.vl-icon { flex: 0 0 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, #7c5cff, #b04cff); box-shadow: 0 10px 28px rgba(124, 92, 255, 0.4); }
.vl-head h2 { font-family: var(--font-title, inherit); font-size: 24px; letter-spacing: -0.3px; }
.vl-head p { color: #a9a9b1; font-size: 14px; margin-top: 3px; line-height: 1.45; }

.vl-label { margin: 22px 0 9px; font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: #9c9ca4; }
.vl-label em { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; color: #7d7d85; margin-left: 6px; }
.vl-link input { width: 100%; padding: 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.35); color: #fff; font: 700 15px ui-monospace, Consolas, monospace; text-align: center; }
.vl-actions { display: flex; gap: 10px; margin-top: 12px; }
.vl-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: #ddd; font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.vl-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.vl-copy { position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border: 0; border-radius: 12px; background: #fff; color: #111; font-family: inherit; font-weight: 800; font-size: 15px; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.vl-copy:hover { transform: translateY(-1px); }
.vl-copy-icons { position: relative; width: 16px; height: 16px; display: inline-block; }
.vl-copy-icons i { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s; }
.vl-copy-icons i:last-child { opacity: 0; transform: scale(0.2) rotate(-100deg); }
.vl-copy.done { background: #46d369; animation: vl-bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.vl-copy.done .vl-copy-icons i:first-child { opacity: 0; transform: scale(0.2) rotate(100deg); }
.vl-copy.done .vl-copy-icons i:last-child { opacity: 1; transform: none; }
.vl-copy.done::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #46d369; animation: vl-ring 0.7s ease-out forwards; pointer-events: none; }
@keyframes vl-bump { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes vl-ring { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

.vl-warn { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(240, 173, 78, 0.1); border: 1px solid rgba(240, 173, 78, 0.3); color: #f3d7a8; font-size: 13px; line-height: 1.5; }
.vl-warn i { margin-top: 3px; }
.vl-warn code, .vl-steps code, .vl-cheat code { background: rgba(0, 0, 0, 0.4); padding: 1px 6px; border-radius: 5px; word-break: break-all; }

.vl-steps { padding-left: 20px; color: #bcbcc4; font-size: 14px; line-height: 1.6; display: flex; flex-direction: column; gap: 8px; }
.vl-steps b { color: #fff; }
.vl-cheat { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.vl-cheat div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 13px; }
.vl-cheat code { color: #ddd; }
.vl-cheat span { color: #8f8f98; white-space: nowrap; }

.vl-list { display: flex; flex-direction: column; gap: 8px; }
.vl-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.vl-item-main { flex: 1; min-width: 0; }
.vl-item-title { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-item-title span { color: #8f8f98; font-weight: 500; margin-left: 6px; }
.vl-item-meta { color: #9a9aa3; font-size: 12px; margin-top: 3px; }
.vl-del { width: 34px; height: 34px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, 0.07); color: #cfcfd4; cursor: pointer; }
.vl-del:hover { background: rgba(229, 9, 20, 0.85); color: #fff; }
.vl-empty { padding: 14px; color: #8f8f98; font-size: 13px; text-align: center; border: 1px dashed rgba(255, 255, 255, 0.12); border-radius: 12px; }

.nav-vr-icon { margin-right: 6px; font-size: 12px; color: #9d8cff; }
@media (max-width: 820px) { .nav-vr-icon { display: none; } }
@media (max-width: 620px) { .vl-card { padding: 20px; } .vl-cheat div { flex-direction: column; align-items: flex-start; gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .vl-copy.done::after { animation: none; opacity: 0; } }
