/* Demo wrapper only (gate, loader, role picker, pill). The app itself keeps its own styles. */
.gate, .loading {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(900px 400px at 85% -10%, #2b4470 0%, transparent 60%), linear-gradient(160deg, #13213a 0%, #0e1830 100%);
  font-family: "Segoe UI", system-ui, sans-serif; color: #1b2333; overflow: auto;
}
.gate[hidden], .loading[hidden], .demo-roles[hidden], .demo-toast[hidden] { display: none; }
.gate-card, .load-card { background: #fff; border-radius: 18px; padding: 32px; width: 100%; max-width: 460px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.gate-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 2px; color: #13213a; text-decoration: none; margin-bottom: 18px; }
.badge { position: relative; width: 34px; height: 34px; border-radius: 9px; background: #13213a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: 0; }
.badge i { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #f08a24; }
.gate h1 { font-size: 1.7rem; margin: 0 0 8px; }
.gate .lead { color: #5b6474; margin: 0 0 20px; line-height: 1.5; }
.gate label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.gate input { display: block; width: 100%; box-sizing: border-box; margin-top: 5px; padding: 11px 12px; border: 1px solid #d5d9e2; border-radius: 10px; font: inherit; }
.gate input:focus { outline: 2px solid #f08a24; border-color: transparent; }
.gate .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.gate button { width: 100%; margin-top: 6px; padding: 13px; border: 0; border-radius: 10px; background: #f08a24; color: #fff; font: 700 1rem "Segoe UI", sans-serif; cursor: pointer; }
.gate button:hover { background: #d9741a; }
.gate button:disabled { opacity: .7; cursor: wait; }
.small { font-size: .82rem; color: #5b6474; margin-top: 12px; }
.load-card h2 { margin: 0 0 16px; font-size: 1.2rem; }
.track { height: 10px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
.bar { height: 100%; width: 0; background: #f08a24; transition: width .2s; }

.demo-pill {
  position: fixed; right: 16px; bottom: 16px; z-index: 9000; display: flex; align-items: center; gap: 12px;
  background: #13213a; color: #fff; padding: 8px 8px 8px 16px; border-radius: 99px; font: 13px "Segoe UI", sans-serif;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.demo-pill a { background: #f08a24; color: #fff; text-decoration: none; font-weight: 700; padding: 7px 14px; border-radius: 99px; }
.demo-roles {
  position: fixed; left: 24px; top: 50%; transform: translateY(-50%); z-index: 9000; width: 300px;
  background: #fff; border: 1px solid #e6e8ee; border-radius: 16px; padding: 18px; box-shadow: 0 16px 40px rgba(19,33,58,.15);
  font-family: "Segoe UI", sans-serif;
}
.demo-roles h3 { margin: 0 0 12px; font-size: 1rem; color: #13213a; }
.demo-roles button { display: block; width: 100%; text-align: left; margin-bottom: 8px; padding: 10px 12px; border: 1px solid #e6e8ee; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; }
.demo-roles button:hover { border-color: #f08a24; background: #fff8f0; }
.demo-roles b { display: block; color: #13213a; }
.demo-roles span { font-size: .8rem; color: #5b6474; }
.demo-roles p { font-size: .78rem; color: #5b6474; margin: 8px 0 0; }
@media (max-width: 1100px) {
  .demo-roles { top: auto; bottom: 64px; left: 12px; right: 12px; width: auto; transform: none; padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .demo-roles[hidden] { display: none; }
  .demo-roles h3, .demo-roles p { grid-column: 1 / -1; margin: 0; }
  .demo-roles button { margin: 0; padding: 8px 10px; }
  .demo-roles span { display: none; }
}
.demo-toast {
  position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 9500; max-width: 560px;
  background: #13213a; color: #fff; padding: 12px 18px; border-radius: 12px; font: 14px "Segoe UI", sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
@media print { .demo-pill, .demo-roles, .demo-toast, .demo-guide { display: none !important; } }

/* Phones / small tablets get the desktop layout scaled down: make the demo extras easy to tap. */
.demo-small .demo-pill { font-size: 22px; padding: 12px 12px 12px 24px; }
.demo-small .demo-pill a { padding: 12px 22px; }
.demo-small .demo-roles { width: 380px; font-size: 18px; }
.demo-small .demo-toast { font-size: 22px; max-width: 900px; bottom: 110px; }

.demo-try { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: 600 13px "Segoe UI", sans-serif; padding: 6px 12px; border-radius: 99px; cursor: pointer; }
.demo-try:hover { border-color: #f08a24; }
.demo-guide {
  position: fixed; right: 16px; bottom: 70px; z-index: 9100; width: 380px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid #e6e8ee; border-radius: 16px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(19,33,58,.22);
  font: 13.5px/1.5 "Segoe UI", sans-serif; color: #1b2333;
}
.demo-guide[hidden] { display: none; }
.demo-guide h3 { margin: 0 0 8px; font-size: 1rem; color: #13213a; }
.demo-guide ol { margin: 0 0 10px; padding-left: 20px; }
.demo-guide li { margin-bottom: 7px; }
.demo-guide i { font-style: normal; font-weight: 600; color: #d9741a; }
.demo-guide p { margin: 0; color: #5b6474; }
.demo-guide a { color: #d9741a; font-weight: 700; }
.demo-guide-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; line-height: 1; color: #5b6474; cursor: pointer; }
.demo-small .demo-guide { width: 560px; font-size: 20px; bottom: 110px; }
.demo-small .demo-try { font-size: 20px; padding: 10px 18px; }
