.demo-modal[hidden] { display: none; }
.demo-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; }
.demo-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(12, 20, 36, .62);
}
.demo-modal-panel {
  position: relative; z-index: 1;
  width: min(900px,100%);
  max-height: min(760px,calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(220, 230, 245, .95);
  border-radius: 28px;
  background: linear-gradient(160deg, #ffffff 0%, #f7fbff 55%, #f3f7fc 100%);
  box-shadow: inset 0 1px 0 #fff, 0 28px 70px -20px rgba(16, 28, 52, .55);
  animation: demoModalIn .32s cubic-bezier(.22,1,.36,1);
}
.demo-modal-close { position: absolute; top: 16px; right: 18px; width: 36px; height: 36px; border-radius: 50%; color: #53667d; font-size: 24px; line-height: 1; }
.demo-modal-close:hover { background: rgba(80,110,145,.1); }
.demo-modal-header { padding-right: 42px; }
.demo-modal-header h2 { margin: 0; color: #172535; font-size: 26px; font-weight: 650; }
.demo-modal-header p { margin: 8px 0 0; color: #6c7a8c; font-size: 13px; line-height: 1.75; }
.demo-modal-eyebrow { margin: 0 0 8px; color: #2476d8; font-size: 11px; font-weight: 700; letter-spacing: 0; }
.demo-access-list { display: grid; gap: 10px; margin-top: 22px; }
.demo-access-item {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr) 104px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(210, 222, 238, .95);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px -16px rgba(30, 50, 90, .28);
}
.demo-access-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.demo-access-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 9px; color: #fff; background: linear-gradient(135deg,#4e8df7,#7b68ee); font-size: 13px; font-weight: 700; }
.demo-access-item:nth-child(2) .demo-access-icon { background: linear-gradient(135deg,#12a8a0,#3181ce); }
.demo-access-item:nth-child(3) .demo-access-icon { background: linear-gradient(135deg,#ec8a54,#d84f75); }
.demo-access-name h3 { margin: 0; color: #24364b; font-size: 15px; font-weight: 650; }
.demo-access-name p { margin: 4px 0 0; color: #7a8797; font-size: 11px; line-height: 1.5; }
.demo-access-info { display: grid; grid-template-columns: minmax(140px,1fr) 105px 105px; gap: 10px; min-width: 0; }
.demo-field { min-width: 0; }
.demo-field dt { margin-bottom: 4px; color: #8a96a5; font-size: 10px; }
.demo-field dd { margin: 0; overflow: hidden; color: #3d4f64; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.demo-field dd.pending { color: #2476d8; font-weight: 500; }
.demo-card-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 14px; border-radius: 999px; color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg, oklch(0.58 0.17 245), oklch(0.56 0.18 285));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -12px oklch(0.55 0.18 270 / .5);
  font-size: 12px; font-weight: 650;
  transition: filter .2s ease, transform .2s ease;
}
.demo-card-action:hover { filter: brightness(1.06); transform: translateY(-1px); }
[data-demo-qr-host] { display: grid; gap: 10px; margin-top: 14px; }
[data-demo-qr-host][hidden] { display: none; }
.demo-qr-section {
  display: grid;
  grid-template-columns: minmax(0,1fr) 122px;
  gap: 22px;
  align-items: center;
  margin-top: 0;
  padding: 16px 20px 16px 18px;
  border: 1px solid rgba(210, 222, 238, .95);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f3f8ff);
  box-shadow: 0 8px 20px -16px rgba(30, 50, 90, .24);
}
[data-demo-qr-host] .demo-qr-section + .demo-qr-section { margin-top: 0; }
.demo-qr-label { display: inline-flex; margin-bottom: 7px; padding: 4px 8px; border-radius: 999px; color: #5c58bd; background: rgba(108,100,210,.1); font-size: 10px; font-weight: 700; }
.demo-qr-wrap { width: 112px; height: 112px; padding: 7px; border: 1px solid rgba(89,112,142,.12); border-radius: 8px; background: #fff; box-shadow: 0 10px 24px -18px rgba(24,45,74,.5); }
.demo-qr-wrap img { width: 100%; height: 100%; }
.demo-qr-copy h3 { margin: 0; color: #24364b; font-size: 16px; font-weight: 650; }
.demo-qr-copy p { margin: 6px 0 10px; color: #6d7b8d; font-size: 12px; line-height: 1.65; }
.demo-qr-account { display: flex; flex-wrap: wrap; gap: 8px; color: #53667c; font-size: 11px; }
.demo-qr-account span { padding: 5px 8px; border-radius: 5px; background: #eef4fb; }
.demo-modal-foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(52,78,108,.1); color: #8895a4; font-size: 11px; line-height: 1.7; }
.demo-toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; padding: 10px 16px; border-radius: 999px; color: #fff; background: rgba(24,42,67,.88); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%,10px); transition: all .25s ease; }
.demo-toast.show { opacity: 1; transform: translate(-50%,0); }
.nav-mobile .nav-login {
  display: flex;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 650;
  background: linear-gradient(135deg, oklch(0.65 0.18 250), oklch(0.62 0.2 290));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 12px 28px -10px oklch(0.6 0.2 270 / 0.55);
}
.nav-mobile .nav-login:hover {
  filter: brightness(1.06);
  color: #fff;
  background: linear-gradient(135deg, oklch(0.65 0.18 250), oklch(0.62 0.2 290));
}
@keyframes demoModalIn { from { opacity:0; transform:translateY(12px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width: 760px) { .demo-access-item { grid-template-columns:1fr auto; } .demo-access-info { grid-column:1/-1; grid-template-columns:minmax(130px,1fr) 92px 92px; } }
@media (max-width: 620px) { .demo-modal { padding:10px; } .demo-modal-panel { max-height:calc(100vh - 20px); padding:22px 14px; border-radius:12px; } .demo-modal-header h2 { font-size:23px; } .demo-access-item { grid-template-columns:1fr; gap:13px; padding:14px; } .demo-access-info { grid-column:auto; grid-template-columns:1fr 1fr; } .demo-field:first-child { grid-column:1/-1; } .demo-card-action { width:100%; } .demo-qr-section { grid-template-columns:minmax(0,1fr) 88px; gap:12px; padding:14px; } .demo-qr-wrap { width:88px; height:88px; } }
@media (prefers-reduced-motion: reduce) { .demo-modal-panel,.demo-toast { animation:none; transition:none; } }
