:root {
  --bg: #07100f;
  --ink: #f4fbfa;
  --muted: #9db0ac;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(8, 18, 18, 0.72);
  --panel-strong: rgba(12, 27, 27, 0.9);
  --blue: #49b7ff;
  --teal: #4df4c4;
  --rose: #ff6c92;
  --gold: #ffd36a;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  --ease-premium: cubic-bezier(.22, 1, .36, 1);
  --ease-snappy: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(73, 183, 255, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 14%, rgba(255, 108, 146, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 48% 8%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 12%, #153734 0%, #07100f 52%, #030606 100%);
  overflow-x: hidden;
  transition: background 420ms ease;
}

body[data-page="admin"] {
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(145deg, rgba(73, 183, 255, 0.16), transparent 28%),
    linear-gradient(210deg, transparent 42%, rgba(255, 108, 146, 0.1) 64%, transparent 84%),
    #050b0d;
}

body.scene-day {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 207, 74, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.38) 0 2px, transparent 3px),
    radial-gradient(circle at 52% 8%, rgba(255, 246, 202, 0.58) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 14%, #fff8de 0%, #f9f7e8 38%, #d9e6df 70%, #819e9c 100%);
}

button,
input {
  font: inherit;
}

#gateScene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

body.doors-mode {
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  color: #0c1d32;
  background:
    radial-gradient(circle at 50% 20%, rgba(40, 168, 224, 0.16), transparent 0 30%),
    radial-gradient(circle at 16% 74%, rgba(95, 197, 255, 0.13), transparent 0 32%),
    linear-gradient(180deg, #fbfeff 0%, #f1fbff 48%, #e9f7fd 100%);
}

body.doors-mode #gateScene,
body.doors-mode .scene-mode-toggle {
  display: none;
}

body.doors-mode::before,
body.doors-mode::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.doors-mode::before {
  background:
    radial-gradient(circle at 18% 24%, rgba(42, 175, 225, 0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 17%, rgba(67, 151, 244, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 34%, rgba(255, 255, 255, 0.92) 0 1px, transparent 2px),
    linear-gradient(90deg, transparent, rgba(60, 175, 230, 0.1), transparent);
  opacity: 0.64;
}

body.doors-mode::after {
  top: auto;
  height: 38vh;
  background:
    linear-gradient(180deg, transparent, rgba(201, 235, 248, 0.58) 34%, rgba(239, 250, 255, 0.96)),
    repeating-linear-gradient(90deg, rgba(59, 170, 220, 0.12) 0 1px, transparent 1px 95px);
  transform: perspective(560px) rotateX(58deg);
  transform-origin: bottom;
  opacity: 0.78;
}

body.doors-mode .kiosk-shell {
  width: min(1480px, calc(100% - 28px));
  min-height: 100svh;
  padding: 14px 0 20px;
}

body.doors-mode .kiosk-hero {
  min-height: 100svh;
  align-items: stretch;
  overflow-x: hidden;
  overflow-x: clip;
}

body.doors-mode .kiosk-topbar {
  position: relative;
  z-index: 5;
  min-height: 48px;
}

body.doors-mode .language-select {
  border-color: rgba(70, 166, 216, 0.2);
  color: #0c2540;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 251, 255, 0.86));
  box-shadow:
    0 12px 36px rgba(40, 140, 190, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.door-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(16px, 3vh, 34px);
  min-height: calc(100svh - 92px);
  padding: clamp(6px, 1vh, 12px) 0 clamp(74px, 12vh, 126px);
  overflow-x: hidden;
  overflow-x: clip;
}

.door-brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: left;
  width: max-content;
  padding: 10px 18px 10px 12px;
  border: 1px solid rgba(80, 179, 224, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 252, 255, 0.74));
  box-shadow:
    0 18px 50px rgba(28, 124, 176, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(1.18);
  pointer-events: none;
}

.door-brand img {
  width: clamp(42px, 4.5vw, 62px);
  height: clamp(42px, 4.5vw, 62px);
  object-fit: contain;
  filter:
    saturate(1.08)
    drop-shadow(0 10px 20px rgba(42, 175, 225, 0.22));
}

.door-brand span {
  display: block;
  color: #071833;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 34px);
  align-items: end;
  perspective: 1200px;
}

.door-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: clamp(380px, 61vh, 650px);
  padding: 0;
  border: 0;
  color: #dfefff;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform-style: preserve-3d;
  transition:
    transform 180ms var(--ease-snappy),
    filter 180ms ease;
}

.door-card::before {
  content: "";
  position: absolute;
  inset: 7% -4% -8%;
  border-radius: 10px 10px 28px 28px;
  background:
    linear-gradient(90deg, rgba(185, 225, 242, 0.52), rgba(255, 255, 255, 0.48) 12%, transparent 24% 76%, rgba(255, 255, 255, 0.48) 88%, rgba(185, 225, 242, 0.52)),
    radial-gradient(ellipse at 50% 100%, rgba(86, 176, 255, 0.18), transparent 61%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 34px 80px rgba(64, 148, 194, 0.14);
  opacity: 0.82;
  pointer-events: none;
}

.door-card:hover,
.door-card:focus-visible,
.door-card.active-location {
  transform: translateY(-5px);
  filter: brightness(1.12);
}

.door-card:focus-visible {
  outline: 2px solid rgba(154, 213, 255, 0.86);
  outline-offset: 7px;
}

.door-name {
  justify-self: center;
  min-width: min(82%, 320px);
  padding: 13px 18px;
  border: 1px solid rgba(70, 166, 216, 0.22);
  border-radius: 8px 8px 2px 2px;
  color: #0c2540;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(233, 248, 255, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(86, 176, 255, 0.24),
    0 16px 42px rgba(28, 124, 176, 0.12);
  font-size: clamp(14px, 1.45vw, 20px);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.door-frame {
  position: relative;
  display: grid;
  align-items: stretch;
  width: min(100%, 410px);
  min-height: clamp(320px, 52vh, 560px);
  justify-self: center;
  padding: clamp(22px, 2.5vw, 34px);
  border: 1px solid rgba(158, 218, 255, 0.24);
  border-radius: 6px 6px 2px 2px;
  background:
    linear-gradient(90deg, rgba(218, 241, 250, 0.96), rgba(255, 255, 255, 0.86) 10%, rgba(233, 248, 255, 0.98) 21% 79%, rgba(255, 255, 255, 0.86) 90%, rgba(218, 241, 250, 0.96)),
    linear-gradient(180deg, rgba(114, 200, 255, 0.18), transparent 24%),
    radial-gradient(ellipse at 50% 0%, rgba(70, 179, 230, 0.18), transparent 52%),
    #f7fdff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.86),
    inset 0 12px 24px rgba(255, 255, 255, 0.72),
    inset 16px 0 20px rgba(55, 158, 220, 0.055),
    inset -16px 0 20px rgba(55, 158, 220, 0.055),
    0 0 42px rgba(69, 154, 255, 0.16),
    0 34px 70px rgba(51, 134, 177, 0.18);
}

.door-frame::before,
.door-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.door-frame::before {
  left: 12%;
  right: 12%;
  top: 11px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), rgba(42, 175, 225, 0.82), rgba(255, 255, 255, 0.78), transparent);
  box-shadow:
    0 0 18px rgba(42, 175, 225, 0.54),
    0 0 44px rgba(42, 175, 225, 0.18);
}

.door-frame::after {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(42, 175, 225, 0.5) 10%, transparent 11% 89%, rgba(42, 175, 225, 0.5) 90%, transparent 91% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), transparent 15%, transparent 82%, rgba(92, 180, 255, 0.15));
  opacity: 0.56;
  filter: drop-shadow(0 0 12px rgba(42, 175, 225, 0.32));
}

.door-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(185, 231, 255, 0.34);
  border-radius: 3px 3px 1px 1px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), transparent 49.45%, rgba(64, 180, 230, 0.42) 50%, transparent 50.55%, rgba(255, 255, 255, 0.52)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 1px 12%, rgba(77, 183, 232, 0.07) 12.3%, transparent 13%),
    radial-gradient(circle at 50% 57%, rgba(54, 174, 230, 0.2), transparent 0 30%),
    linear-gradient(180deg, rgba(214, 243, 255, 0.88), rgba(160, 218, 244, 0.68) 48%, rgba(224, 246, 255, 0.96));
  box-shadow:
    inset 0 0 54px rgba(92, 184, 232, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 12px 0 18px rgba(255, 255, 255, 0.46),
    inset -12px 0 18px rgba(255, 255, 255, 0.46);
}

.door-panel::before,
.door-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.door-panel::before {
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 19%, rgba(255, 255, 255, 0.5) 28%, transparent 39% 100%),
    linear-gradient(64deg, transparent 0 59%, rgba(255, 255, 255, 0.28) 68%, transparent 78% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent 17%, transparent);
  opacity: 0.76;
}

.door-panel::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(64, 180, 230, 0.44);
  box-shadow: 0 0 16px rgba(82, 189, 235, 0.44);
}

.door-skyline {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 30%;
  height: 33%;
  opacity: 0.48;
  background:
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 7% 72% / 19% 2px no-repeat,
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 20% 58% / 2px 38% no-repeat,
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 38% 42% / 2px 54% no-repeat,
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 54% 64% / 19% 2px no-repeat,
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 76% 54% / 2px 46% no-repeat,
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 91% 70% / 18% 2px no-repeat;
  filter: drop-shadow(0 0 10px rgba(124, 201, 255, 0.38));
}

.skyline-lipjan {
  top: 27%;
  background:
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 12% 78% / 2px 38% no-repeat,
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 22% 68% / 18% 2px no-repeat,
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 42% 52% / 2px 56% no-repeat,
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 58% 66% / 18% 2px no-repeat,
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 78% 38% / 2px 70% no-repeat,
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 86% 38% / 14% 2px no-repeat;
}

.skyline-vushtrri {
  top: 32%;
  background:
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 5% 70% / 22% 2px no-repeat,
    linear-gradient(24deg, transparent 47%, rgba(19, 93, 132, 0.52) 48% 52%, transparent 53%) 22% 55% / 40% 40% no-repeat,
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 58% 66% / 2px 36% no-repeat,
    linear-gradient(rgba(19, 93, 132, 0.52), rgba(19, 93, 132, 0.52)) 72% 55% / 26% 2px no-repeat,
    linear-gradient(-15deg, transparent 47%, rgba(19, 93, 132, 0.52) 48% 52%, transparent 53%) 70% 44% / 26% 42% no-repeat;
}

.touch-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(62px, 7vw, 92px);
  height: clamp(62px, 7vw, 92px);
  border: 1px solid rgba(72, 180, 230, 0.5);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.96), transparent 0 42%),
    rgba(255, 255, 255, 0.62);
  box-shadow:
    0 0 0 10px rgba(42, 175, 225, 0.08),
    0 0 28px rgba(42, 175, 225, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  animation: touchFloat 2.9s ease-in-out infinite;
}

.touch-icon::before,
.touch-icon::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(184, 229, 255, 0.34);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.84);
  animation: touchPulse 2.35s var(--ease-premium) infinite;
}

.touch-icon::after {
  inset: -17px;
  animation-delay: 0.55s;
  border-color: rgba(95, 188, 255, 0.22);
}

.touch-icon svg {
  width: 44%;
  height: 44%;
  fill: none;
  stroke: #0c7ebf;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(50, 174, 230, 0.34));
}

@keyframes touchFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.035);
  }
}

@keyframes touchPulse {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }

  38% {
    opacity: 0.82;
  }

  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

.door-card::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -8%;
  height: 22%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(80, 171, 255, 0.32), transparent 68%);
  filter: blur(2px);
  transform: perspective(360px) rotateX(64deg);
  pointer-events: none;
}

body.doors-mode.action-ready .door-stage {
  opacity: 0.82;
}

body.doors-mode.action-ready .door-grid {
  transform: translateY(-2vh) scale(0.96);
  transition: transform 180ms ease;
}

body.doors-mode .kiosk-workspace {
  left: 50%;
  right: auto;
  bottom: clamp(14px, 2.5vh, 28px);
  z-index: 4;
  width: min(680px, calc(100vw - 28px));
  transform: translateX(-50%);
}

body.doors-mode .kiosk-workspace .view-card {
  margin-inline: auto;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle at 15% 0%, rgba(108, 191, 255, 0.2), transparent 0 38%),
    rgba(247, 253, 255, 0.86);
  border-color: rgba(78, 172, 220, 0.28);
  color: #0c2540;
  backdrop-filter: blur(22px) saturate(1.16);
}

body.doors-mode #choiceView {
  min-height: auto;
  padding: 18px;
}

body.doors-mode #choiceView .card-head {
  margin-bottom: 14px;
}

body.doors-mode #choiceView .card-head p,
body.doors-mode #choiceView .card-head span {
  color: rgba(12, 37, 64, 0.58);
}

body.doors-mode #choiceView .secondary {
  border-color: rgba(70, 166, 216, 0.24);
  color: #0c2540;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(230, 247, 255, 0.86));
  box-shadow:
    0 12px 30px rgba(40, 140, 190, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.doors-mode #choiceView .action-card {
  min-height: 118px;
}

body.doors-mode #choiceView .action-card strong {
  font-size: clamp(24px, 3vw, 34px);
}

@media (max-width: 640px) {
  body.doors-mode {
    overflow-y: auto;
  }

  body.doors-mode .kiosk-shell {
    width: min(100% - 18px, 720px);
  }

  body.doors-mode .kiosk-hero {
    min-height: auto;
  }

  .door-stage {
    min-height: auto;
    padding-bottom: 230px;
  }

  .door-brand {
    justify-content: flex-start;
    justify-self: start;
  }

  .door-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .door-card {
    min-height: 210px;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
  }

  .door-name {
    align-self: auto;
    display: grid;
    place-items: center;
    width: min(100%, 260px);
    min-width: 0;
    padding: 11px 16px;
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.16em;
  }

  .door-frame {
    width: 100%;
    min-height: 210px;
    padding: 16px;
  }

  .door-skyline {
    top: 22%;
    height: 38%;
  }

  body.doors-mode.action-ready .door-grid {
    transform: none;
  }

  body.doors-mode .kiosk-workspace {
    position: fixed;
    bottom: 10px;
  }
}

@media (max-width: 520px) {
  body.doors-mode .kiosk-shell {
    width: min(100% - 12px, 420px);
    padding-top: 8px;
  }

  .door-stage {
    padding-bottom: 200px;
  }

  .door-brand img {
    width: 40px;
    height: 40px;
  }

  .door-brand {
    padding: 8px 14px 8px 10px;
  }

  .door-brand span {
    font-size: 34px;
  }

  .door-card {
    min-height: 184px;
    gap: 8px;
  }

  .door-frame {
    min-height: 162px;
    padding: 12px;
  }

  .touch-icon {
    width: 56px;
    height: 56px;
  }

  body.doors-mode #choiceView {
    padding: 14px;
  }

  body.doors-mode #choiceView .action-grid {
    gap: 10px;
  }

  body.doors-mode #choiceView .action-card {
    min-height: 88px;
    padding: 16px;
  }
}

body.doors-mode .kiosk-shell {
  width: min(100%, 1320px);
  padding-inline: clamp(8px, 1.6vw, 18px);
}

body.doors-mode .kiosk-hero {
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  justify-items: stretch;
}

body.doors-mode .kiosk-topbar {
  min-height: 0;
}

body.doors-mode .door-stage {
  width: 100%;
  min-height: calc(100svh - 50px);
  grid-template-rows: auto auto;
  align-content: center;
  gap: clamp(16px, 4vh, 46px);
  padding: clamp(8px, 2vh, 20px) 0 clamp(24px, 6vh, 72px);
}

body.doors-mode .door-brand {
  justify-self: center;
  transform: translateY(clamp(-4px, -1vh, 0px));
}

body.doors-mode .door-grid {
  position: relative;
  width: min(100%, 1160px);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(7px, 2.2vw, 32px);
  align-items: end;
  padding: clamp(8px, 1.2vw, 16px) 0 0;
}

body.doors-mode .door-grid::before {
  content: "";
  position: absolute;
  left: clamp(-18px, -1.4vw, -8px);
  right: clamp(-18px, -1.4vw, -8px);
  top: 17%;
  bottom: 0;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(7, 18, 27, 0.82), rgba(14, 38, 54, 0.42) 16%, rgba(245, 253, 255, 0.1) 50%, rgba(14, 38, 54, 0.42) 84%, rgba(7, 18, 27, 0.82)),
    linear-gradient(180deg, rgba(8, 24, 34, 0.6), rgba(232, 250, 255, 0.18) 46%, rgba(7, 20, 30, 0.42));
  box-shadow:
    0 30px 70px rgba(51, 134, 177, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  opacity: 0.38;
  pointer-events: none;
}

body.doors-mode .door-card {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  min-height: 0;
  gap: clamp(4px, 0.7vw, 10px);
}

body.doors-mode .door-card::before {
  inset: 18% -2% -5%;
  border-radius: 6px 6px 18px 18px;
}

body.doors-mode .door-name {
  align-self: auto;
  justify-self: center;
  width: min(90%, 310px);
  min-width: 0;
  padding: clamp(5px, 0.8vw, 12px) clamp(6px, 1.2vw, 18px);
  writing-mode: horizontal-tb;
  transform: none;
  font-size: clamp(8px, 1.35vw, 18px);
  letter-spacing: clamp(0.08em, 0.7vw, 0.18em);
  white-space: nowrap;
}

body.doors-mode .door-frame {
  width: 100%;
  min-height: 0;
  height: clamp(156px, 42vw, 420px);
  padding: clamp(10px, 1.7vw, 28px);
  align-self: end;
}

body.doors-mode .door-panel {
  min-height: 100%;
}

body.doors-mode .door-skyline {
  left: 14%;
  right: 14%;
  top: 30%;
  height: 30%;
}

body.doors-mode .touch-icon {
  width: clamp(34px, 7vw, 86px);
  height: clamp(34px, 7vw, 86px);
}

@media (max-width: 520px) {
  body.doors-mode .kiosk-shell {
    width: 100%;
    padding-inline: 6px;
  }

  body.doors-mode .kiosk-topbar {
    padding-inline: 6px;
  }

  body.doors-mode .language-select {
    height: 38px;
    min-width: 88px;
    padding-inline: 9px;
    font-size: 13px;
  }

  body.doors-mode .door-stage {
    min-height: calc(100svh - 44px);
    gap: clamp(14px, 5vh, 42px);
    padding-top: clamp(42px, 12vh, 110px);
    padding-bottom: clamp(42px, 16vh, 140px);
  }

  body.doors-mode .door-brand {
    transform: none;
    padding: 0;
  }

  body.doors-mode .door-brand img {
    width: clamp(180px, 58vw, 230px);
    height: auto;
  }

  body.doors-mode .door-brand span {
    font-size: 30px;
  }

  body.doors-mode .door-grid {
    gap: 5px;
    padding-inline: 0;
  }

  body.doors-mode .door-name {
    width: 92%;
    padding: 5px 4px;
    border-radius: 6px 6px 2px 2px;
    font-size: clamp(7px, 2.1vw, 10px);
    letter-spacing: 0.08em;
  }

  body.doors-mode .door-frame {
    height: clamp(142px, 42vw, 176px);
    padding: 8px;
  }

  body.doors-mode .door-frame::before {
    top: 6px;
    height: 3px;
  }

  body.doors-mode .touch-icon {
    width: clamp(30px, 8vw, 38px);
    height: clamp(30px, 8vw, 38px);
  }

  body.doors-mode .door-skyline {
    opacity: 0.36;
  }
}

body.doors-mode {
  background:
    radial-gradient(circle at 50% 18%, rgba(43, 177, 231, 0.16), transparent 0 24%),
    radial-gradient(circle at 50% 58%, rgba(12, 45, 68, 0.22), transparent 0 44%),
    linear-gradient(180deg, #f7fdff 0%, #eefbff 33%, #dff3fb 49%, #edfaff 100%);
}

body.doors-mode::before {
  background:
    linear-gradient(180deg, transparent 0 35%, rgba(2, 14, 25, 0.06) 35% 41%, rgba(4, 19, 32, 0.78) 41% 69%, rgba(11, 43, 62, 0.18) 69% 100%),
    radial-gradient(ellipse at 50% 48%, rgba(72, 190, 236, 0.28), transparent 0 36%),
    linear-gradient(90deg, transparent, rgba(42, 175, 225, 0.1), transparent);
  opacity: 1;
}

body.doors-mode::after {
  top: auto;
  height: 40vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.8), transparent 0 42%),
    repeating-linear-gradient(90deg, rgba(28, 117, 158, 0.13) 0 1px, transparent 1px 118px),
    linear-gradient(180deg, rgba(7, 28, 42, 0.2), rgba(231, 248, 255, 0.92));
  opacity: 0.92;
}

body.doors-mode .door-brand {
  min-width: 0;
  min-height: auto;
  padding: clamp(8px, 1vw, 12px) clamp(14px, 2vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(42, 175, 225, 0.18);
  border-radius: clamp(12px, 2.7vw, 24px);
  background: rgba(246, 253, 255, 0.94);
  box-shadow:
    0 18px 56px rgba(12, 77, 112, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

body.doors-mode .door-brand img {
  display: block;
  width: clamp(178px, 42vw, 330px);
  height: auto;
  filter: none;
}

body.doors-mode .door-brand span {
  display: none;
}

body.doors-mode .door-grid::before {
  left: clamp(-12px, -1vw, -6px);
  right: clamp(-12px, -1vw, -6px);
  top: 20%;
  bottom: -7%;
  background:
    linear-gradient(90deg, rgba(1, 10, 19, 0.82), rgba(5, 24, 38, 0.6) 12%, rgba(6, 28, 44, 0.5) 50%, rgba(5, 24, 38, 0.6) 88%, rgba(1, 10, 19, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 33.33%),
    radial-gradient(ellipse at 50% 0%, rgba(104, 204, 245, 0.26), transparent 0 62%);
  box-shadow:
    0 30px 80px rgba(2, 21, 35, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  opacity: 0.88;
}

body.doors-mode .door-card,
body.doors-mode .door-card:hover,
body.doors-mode .door-card:focus-visible,
body.doors-mode .door-card.active-location {
  transform: none !important;
}

body.doors-mode .door-card:hover,
body.doors-mode .door-card:focus-visible,
body.doors-mode .door-card.active-location {
  filter: brightness(1.04);
}

body.doors-mode .door-card::before {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(42, 175, 225, 0.22), transparent 65%),
    linear-gradient(90deg, rgba(3, 17, 29, 0.5), rgba(255, 255, 255, 0.12) 14%, transparent 27% 73%, rgba(255, 255, 255, 0.12) 86%, rgba(3, 17, 29, 0.5));
  opacity: 1;
}

body.doors-mode .door-name {
  height: clamp(28px, 4.2vw, 54px);
  display: grid;
  place-items: center;
  color: #071833;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 248, 255, 0.92));
  border-color: rgba(42, 175, 225, 0.24);
  box-shadow:
    0 8px 28px rgba(3, 22, 36, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

body.doors-mode .door-frame {
  border-color: rgba(143, 222, 255, 0.4);
  background:
    linear-gradient(90deg, rgba(5, 19, 31, 0.96), rgba(22, 59, 82, 0.76) 11%, rgba(238, 250, 255, 0.22) 22% 78%, rgba(22, 59, 82, 0.76) 89%, rgba(5, 19, 31, 0.96)),
    linear-gradient(180deg, rgba(210, 244, 255, 0.2), transparent 24%),
    #071827;
  box-shadow:
    0 18px 42px rgba(3, 20, 34, 0.22),
    inset 0 10px 24px rgba(255, 255, 255, 0.07),
    inset 14px 0 20px rgba(255, 255, 255, 0.05),
    inset -14px 0 20px rgba(255, 255, 255, 0.05);
}

body.doors-mode .door-frame::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), rgba(42, 175, 225, 0.96), rgba(255, 255, 255, 0.42), transparent);
  box-shadow:
    0 0 16px rgba(42, 175, 225, 0.76),
    0 0 36px rgba(42, 175, 225, 0.32);
}

body.doors-mode .door-frame::after {
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(109, 214, 255, 0.58) 9%, transparent 10% 90%, rgba(109, 214, 255, 0.58) 91%, transparent 92% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 17%, transparent 82%, rgba(92, 180, 255, 0.2));
  opacity: 0.82;
}

body.doors-mode .door-panel {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.17), transparent 49.45%, rgba(143, 225, 255, 0.74) 50%, transparent 50.55%, rgba(255, 255, 255, 0.17)),
    radial-gradient(circle at 50% 55%, rgba(72, 190, 236, 0.3), transparent 0 31%),
    linear-gradient(180deg, rgba(229, 248, 255, 0.72), rgba(122, 195, 226, 0.62) 48%, rgba(18, 64, 89, 0.72));
  box-shadow:
    inset 0 0 48px rgba(42, 175, 225, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

body.doors-mode .door-skyline {
  background:
    linear-gradient(rgba(219, 246, 255, 0.5), rgba(219, 246, 255, 0.5)) 7% 72% / 19% 2px no-repeat,
    linear-gradient(rgba(219, 246, 255, 0.5), rgba(219, 246, 255, 0.5)) 20% 58% / 2px 38% no-repeat,
    linear-gradient(rgba(219, 246, 255, 0.5), rgba(219, 246, 255, 0.5)) 38% 42% / 2px 54% no-repeat,
    linear-gradient(rgba(219, 246, 255, 0.5), rgba(219, 246, 255, 0.5)) 54% 64% / 19% 2px no-repeat,
    linear-gradient(rgba(219, 246, 255, 0.5), rgba(219, 246, 255, 0.5)) 76% 54% / 2px 46% no-repeat,
    linear-gradient(rgba(219, 246, 255, 0.5), rgba(219, 246, 255, 0.5)) 91% 70% / 18% 2px no-repeat;
  opacity: 0.48;
}

body.doors-mode .door-card,
body.doors-mode .door-card:hover,
body.doors-mode .door-card:focus-visible,
body.doors-mode .door-card.active-location {
  filter: brightness(1.04) !important;
}

body.doors-mode .door-card .door-frame,
body.doors-mode .door-card .door-panel {
  opacity: 1 !important;
}

body.doors-mode .door-card .door-panel {
  display: grid !important;
  place-items: center !important;
}

body.doors-mode .door-card .door-panel::before {
  inset: 0 !important;
  opacity: 0.76 !important;
  background:
    linear-gradient(112deg, transparent 0 19%, rgba(255, 255, 255, 0.48) 28%, transparent 39% 100%),
    linear-gradient(64deg, transparent 0 59%, rgba(255, 255, 255, 0.22) 68%, transparent 78% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 17%, transparent) !important;
}

body.doors-mode .door-card .door-panel::after {
  opacity: 1 !important;
}

body.doors-mode .skyline-prishtine,
body.doors-mode .skyline-lipjan,
body.doors-mode .skyline-vushtrri {
  left: 14% !important;
  right: 14% !important;
  top: 30% !important;
  height: 30% !important;
  opacity: 0.46 !important;
  background:
    linear-gradient(rgba(219, 246, 255, 0.52), rgba(219, 246, 255, 0.52)) 7% 72% / 19% 2px no-repeat,
    linear-gradient(rgba(219, 246, 255, 0.52), rgba(219, 246, 255, 0.52)) 20% 58% / 2px 38% no-repeat,
    linear-gradient(rgba(219, 246, 255, 0.52), rgba(219, 246, 255, 0.52)) 38% 42% / 2px 54% no-repeat,
    linear-gradient(rgba(219, 246, 255, 0.52), rgba(219, 246, 255, 0.52)) 54% 64% / 19% 2px no-repeat,
    linear-gradient(rgba(219, 246, 255, 0.52), rgba(219, 246, 255, 0.52)) 76% 54% / 2px 46% no-repeat,
    linear-gradient(rgba(219, 246, 255, 0.52), rgba(219, 246, 255, 0.52)) 91% 70% / 18% 2px no-repeat !important;
}

body.doors-mode .door-card .touch-icon {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  z-index: 6 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, -50%) !important;
  display: grid !important;
  place-items: center !important;
}

body.doors-mode .door-card .touch-icon svg {
  opacity: 1 !important;
}

body.doors-mode .kiosk-hero::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 47%, rgba(28, 156, 213, 0.22), transparent 0 28%),
    linear-gradient(180deg, #000 0%, #02070d 100%);
  animation: doorsCurtainOut 1050ms cubic-bezier(.22, 1, .36, 1) forwards;
}

body.doors-mode .kiosk-hero::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 31;
  width: min(78vw, 520px);
  aspect-ratio: 1450 / 500;
  pointer-events: none;
  border: 1px solid rgba(105, 206, 245, 0.22);
  border-radius: clamp(10px, 2.4vw, 22px);
  background:
    url("/assets/fline-logo-clean-blue.png") center / 88% auto no-repeat,
    rgba(246, 253, 255, 0.96);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(42, 175, 225, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%) scale(0.96);
  animation: doorsIntroLogoOut 1050ms cubic-bezier(.22, 1, .36, 1) forwards;
}

body.doors-mode .door-brand {
  animation: doorsBrandIn 950ms cubic-bezier(.16, 1, .3, 1) 180ms both;
}

body.doors-mode .door-grid {
  animation: doorsRowIn 980ms cubic-bezier(.16, 1, .3, 1) 260ms both;
}

@keyframes doorsCurtainOut {
  0% {
    opacity: 1;
  }

  58% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes doorsIntroLogoOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.96);
  }

  58% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(1.02);
  }
}

@keyframes doorsBrandIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(clamp(-4px, -1vh, 0px)) scale(1);
  }
}

@keyframes doorsRowIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .door-card,
  .door-grid,
  .touch-icon,
  .touch-icon::before,
  .touch-icon::after {
    animation: none !important;
    transition: none !important;
  }

  body.doors-mode .kiosk-hero::before {
    display: none !important;
  }

  body.doors-mode .kiosk-hero::after {
    display: none !important;
  }
}

.scene-mode-toggle {
  position: fixed;
  top: clamp(12px, 2.4vh, 28px);
  left: 50%;
  z-index: 3;
  width: clamp(118px, 13vw, 174px);
  height: clamp(118px, 13vw, 174px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  transform: translateX(-50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.scene-mode-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 6px;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(77, 244, 196, 0.24), transparent 0 18%, rgba(73, 183, 255, 0.12) 28%, transparent 54%),
    rgba(3, 6, 6, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

body.scene-day .app-loader {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 211, 82, 0.26), transparent 0 18%, rgba(255, 255, 255, 0.28) 28%, transparent 54%),
    rgba(255, 252, 239, 0.96);
}

body.scene-day .app-loader strong {
  color: #061111;
}

.app-loader img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(77, 244, 196, 0.55));
  animation: loaderPulse 1200ms ease-in-out infinite;
}

.app-loader strong {
  color: white;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
}

body.doors-mode .app-loader {
  gap: 0;
  background:
    radial-gradient(circle at 50% 47%, rgba(28, 156, 213, 0.22), transparent 0 28%),
    linear-gradient(180deg, #000 0%, #02070d 100%);
}

body.doors-mode .app-loader img {
  width: min(78vw, 520px);
  height: auto;
  padding: clamp(10px, 2.2vw, 18px) clamp(16px, 3.2vw, 28px);
  border: 1px solid rgba(105, 206, 245, 0.22);
  border-radius: clamp(10px, 2.4vw, 22px);
  background: rgba(246, 253, 255, 0.96);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(42, 175, 225, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  filter: none;
  animation: none;
}

body.doors-mode .app-loader strong {
  display: none;
}

body.doors-mode .app-loader {
  background:
    radial-gradient(circle at 50% 42%, rgba(42, 175, 225, 0.18), transparent 0 24%),
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.86), transparent 0 36%),
    linear-gradient(180deg, #f7fdff 0%, #edfaff 54%, #dff3fb 100%);
}

body.doors-mode .app-loader img {
  width: clamp(108px, 26vw, 168px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter:
    drop-shadow(0 18px 36px rgba(42, 175, 225, 0.18))
    drop-shadow(0 0 28px rgba(42, 175, 225, 0.16));
}

body.app-loading .app-loader {
  opacity: 1;
  visibility: visible;
}

body.loader-done .app-loader {
  opacity: 0 !important;
  visibility: hidden !important;
}

@keyframes loaderPulse {
  0%, 100% {
    transform: scale(0.94);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  perspective: 1200px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.2), transparent 0 8%, rgba(77, 244, 196, 0.18) 18%, transparent 44%),
    radial-gradient(circle, rgba(77, 244, 196, 0.18), rgba(4, 9, 12, 0.88) 58%, rgba(2, 4, 6, 0.96));
  transition: opacity 180ms ease;
}

.portal-overlay.opening {
  opacity: 1;
}

.portal-door {
  position: relative;
  width: min(430px, 70vw);
  height: min(560px, 68vh);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  overflow: visible;
  transform-style: preserve-3d;
  transform: translateZ(-260px) scale(0.56);
  box-shadow:
    0 0 40px rgba(255, 255, 255, 0.16),
    0 0 90px rgba(77, 244, 196, 0.42),
    inset 0 0 60px rgba(73, 183, 255, 0.2);
}

.portal-door::before,
.portal-door::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
}

.portal-door::before {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.98), rgba(77, 244, 196, 0.55) 22%, rgba(73, 183, 255, 0.2) 48%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(77, 244, 196, 0.05));
  opacity: 0;
  transform: translateZ(-32px) scale(0.72);
}

.portal-door::after {
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 0 0 1px rgba(77, 244, 196, 0.18),
    inset 0 0 26px rgba(255, 255, 255, 0.1),
    inset 0 0 90px rgba(77, 244, 196, 0.18);
}

.portal-door span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 34%, rgba(0, 0, 0, 0.28)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 44px),
    linear-gradient(180deg, rgba(73, 183, 255, 0.34), rgba(255, 108, 146, 0.18) 52%, rgba(77, 244, 196, 0.24));
  box-shadow:
    inset 0 0 42px rgba(255, 255, 255, 0.12),
    inset 0 0 90px rgba(7, 16, 15, 0.42);
  transition: transform 780ms cubic-bezier(.16,.92,.18,1), filter 780ms ease;
  transition-delay: 540ms;
}

.portal-door span:first-child {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.portal-door span:last-child {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.portal-overlay.opening .portal-door {
  animation: doorShowThenApproach 1420ms cubic-bezier(.16,.92,.18,1) both;
}

.portal-overlay.opening .portal-door::before {
  animation: portalLight 1420ms cubic-bezier(.16,.92,.18,1) both;
}

.portal-overlay.opening .portal-door span:first-child {
  transform: rotateY(-108deg) translateX(-4%);
  filter: brightness(1.18);
}

.portal-overlay.opening .portal-door span:last-child {
  transform: rotateY(108deg) translateX(4%);
  filter: brightness(1.18);
}

.portal-overlay p {
  margin: 18px 0 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes doorShowThenApproach {
  0% { opacity: 0; transform: translateZ(-430px) scale(0.34) rotateX(8deg); filter: brightness(0.62) blur(2px); }
  18% { opacity: 1; transform: translateZ(-280px) scale(0.56) rotateX(5deg); filter: brightness(0.9) blur(0); }
  42% { opacity: 1; transform: translateZ(-80px) scale(0.9) rotateX(1deg); filter: brightness(1.32); }
  62% { opacity: 1; transform: translateZ(-22px) scale(0.98) rotateX(0); filter: brightness(1.18); }
  100% { opacity: 1; transform: translateZ(92px) scale(1.1) rotateX(0); filter: brightness(1.12); }
}

@keyframes portalLight {
  0%, 38% { opacity: 0; transform: translateZ(-60px) scale(0.62); }
  58% { opacity: 0.26; transform: translateZ(-36px) scale(0.82); }
  82% { opacity: 0.96; transform: translateZ(-18px) scale(1.04); }
  100% { opacity: 0.72; transform: translateZ(-12px) scale(1.14); }
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.kiosk-shell {
  width: min(1120px, calc(100% - 36px));
}

.admin-shell {
  width: min(1500px, calc(100% - 36px));
  padding-top: 18px;
}

.hero {
  min-height: 54vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
}

.kiosk-hero {
  min-height: 78vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kiosk-topbar {
  justify-content: flex-end;
}

.brand,
.hero-actions,
.view-card,
.location-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  width: max-content;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 112px;
  height: auto;
  border-radius: 8px;
  background: rgba(4, 16, 24, 0.72);
  padding: 7px;
}

.brand p,
.brand span,
.panel-head p,
.panel-head span,
.card-head p,
.eyebrow,
.subcopy {
  margin: 0;
}

.brand p {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-link {
  color: #061111;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.language-select {
  height: 44px;
  min-width: 116px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  color: white;
  background: rgba(5, 14, 17, 0.72);
  font-weight: 800;
  outline: none;
}

body[data-page="admin"] .brand,
body[data-page="admin"] .hero-actions,
body[data-page="admin"] .view-card,
body[data-page="admin"] .location-panel {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), transparent 34%),
    rgba(7, 16, 18, 0.78);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(1.14);
}

body[data-page="admin"] .topbar {
  position: sticky;
  top: 12px;
  z-index: 6;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(5, 12, 14, 0.78);
  box-shadow:
    0 20px 58px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(22px) saturate(1.12);
}

body[data-page="admin"] .brand {
  min-height: 56px;
  padding: 8px 12px;
  box-shadow: none;
}

body[data-page="admin"] .brand img {
  width: 104px;
  background: rgba(0, 0, 0, 0.22);
}

body[data-page="admin"] .admin-link {
  color: #041111;
  background: linear-gradient(135deg, #f4fbfa, #a9fff0);
  box-shadow: 0 12px 30px rgba(77, 244, 196, 0.16);
}

body[data-page="admin"] .language-select,
body[data-page="admin"] .secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.06);
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), transparent 32%),
    rgba(6, 15, 17, 0.86);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(1.12);
}

.login-card h1 {
  margin: 4px 0 0;
  font-size: 34px;
}

body[data-page="admin"]:not(.admin-locked) .admin-login {
  display: none;
}

body[data-page="admin"].admin-locked .admin-shell {
  display: none;
}

.brand span,
.panel-head span,
.card-head p,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 690px;
  padding-top: 70px;
}

.hero-copy h1 {
  margin: 8px 0 14px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.subcopy {
  max-width: 560px;
  color: #c9d8d5;
  font-size: 18px;
  line-height: 1.55;
}

.focus-chip {
  display: inline-grid;
  gap: 5px;
  margin-top: 28px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(8, 18, 18, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.screen-reader-action {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.focus-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.focus-chip strong {
  font-size: 28px;
}

.hero-actions {
  width: max-content;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
}

.idle-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(860px, 100%);
  margin-top: 22px;
  perspective: 900px;
}

.building-card {
  position: relative;
  min-height: 172px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: white;
  background: rgba(8, 18, 18, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  cursor: pointer;
  text-align: left;
  transform: scale(0.88) translateY(12px);
  opacity: 0.54;
  transition: transform 420ms ease, opacity 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

.building-card::before,
.building-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.building-card::before {
  inset: auto -20% -38% -20%;
  height: 110px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 62%);
}

.building-card::after {
  top: 20px;
  right: 18px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  opacity: 0.16;
  animation: breathe 2.8s ease-in-out infinite;
}

.building-card.prishtine {
  color: var(--blue);
}

.building-card.lipjan {
  color: white;
}

.building-card.vushtrri {
  color: var(--rose);
}

.building-card strong,
.building-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.building-card strong {
  margin-top: 18px;
  color: var(--ink);
  font-size: 24px;
}

.building-card.active-location {
  transform: scale(1.04) translateY(-6px);
  opacity: 1;
  border-color: currentColor;
  box-shadow: 0 0 34px color-mix(in srgb, currentColor 45%, transparent), var(--shadow);
}

.building-card.portal-open {
  animation: portalOpen 780ms ease both;
}

.building-card small {
  margin-top: 6px;
  color: #c6d8d4;
  font-size: 13px;
}

.tower {
  position: relative;
  z-index: 1;
  display: block;
  width: 62px;
  height: 82px;
  border-radius: 8px 8px 3px 3px;
  background:
    linear-gradient(currentColor, currentColor) 15px 15px / 8px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 38px 15px / 8px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 15px 38px / 8px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 38px 38px / 8px 8px no-repeat,
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
  border: 1px solid currentColor;
  box-shadow: 0 0 28px currentColor;
  animation: towerFloat 3.4s ease-in-out infinite;
}

.tower::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -18px;
  width: 34px;
  height: 34px;
  transform: rotate(45deg);
  border: 1px solid currentColor;
  border-right: 0;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.06);
}

.choice-card {
  min-height: auto;
}

body[data-page="kiosk"]:not(.action-ready) #choiceView.active {
  display: none;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compact-actions .action-card {
  min-height: 126px;
}

.action-card {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  min-height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  padding: 22px;
  box-shadow: var(--shadow);
  transition:
    transform 220ms var(--ease-snappy),
    border-color 220ms ease,
    filter 220ms ease,
    box-shadow 220ms ease;
}

.action-card::before,
.action-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.action-card::before {
  inset: -1px;
  background: radial-gradient(
    360px circle at var(--mx, 76%) var(--my, 18%),
    rgba(255, 255, 255, 0.28),
    transparent 44%
  );
  opacity: 0.34;
  transition: opacity 220ms ease;
}

.action-card::after {
  left: 18px;
  right: 18px;
  top: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  opacity: 0.36;
}

.action-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  text-transform: uppercase;
}

.action-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  font-size: 34px;
}

.entry-action {
  background: linear-gradient(135deg, rgba(77, 244, 196, 0.58), rgba(38, 213, 128, 0.4));
  border-color: rgba(77, 244, 196, 0.46);
}

.exit-action {
  background: linear-gradient(135deg, rgba(255, 42, 86, 0.62), rgba(155, 12, 36, 0.38));
  border-color: rgba(255, 86, 116, 0.56);
}

@media (hover: hover) and (pointer: fine) {
  .action-card:hover,
  .visitor-pick:hover,
  .location-tab:hover {
    transform: translateY(-3px);
    filter: saturate(1.08);
  }

  .action-card:hover::before {
    opacity: 0.72;
  }
}

.success-panel {
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.success-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.success-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: 0;
}

.success-panel p {
  margin: 10px 0 0;
  color: #d9e8e5;
}

.qr-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.qr-box canvas {
  width: 104px;
  height: 104px;
  padding: 6px;
  border-radius: 8px;
  background: white;
}

.qr-box small {
  color: #d9e8e5;
  font-size: 13px;
  font-weight: 700;
}

.active-picker {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mini-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-head strong {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #061111;
  background: var(--teal);
}

.active-visitor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.visitor-pick {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
  transition:
    transform 200ms var(--ease-snappy),
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.visitor-pick::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    260px circle at var(--mx, 78%) var(--my, 18%),
    rgba(255, 255, 255, 0.16),
    transparent 44%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.visitor-pick:hover::before,
.visitor-pick.selected::before {
  opacity: 1;
}

.visitor-pick strong,
.visitor-pick span {
  position: relative;
  z-index: 1;
  display: block;
}

.visitor-pick strong {
  font-size: 18px;
}

.visitor-pick span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.visitor-pick.selected {
  border-color: var(--gold);
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 211, 106, 0.2), transparent 34%),
    rgba(255, 211, 106, 0.13);
  box-shadow: 0 0 0 3px rgba(255, 211, 106, 0.1), 0 16px 36px rgba(0, 0, 0, 0.22);
}

.empty-picker {
  padding: 14px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  text-align: center;
}

.checkout-panel strong {
  color: var(--teal);
}

@keyframes breathe {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.12;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.24;
  }
}

@keyframes portalOpen {
  0% {
    transform: scale(1.04) translateY(-6px);
    filter: brightness(1);
  }
  45% {
    transform: scale(1.14) translateY(-12px);
    filter: brightness(1.8);
  }
  100% {
    transform: scale(0.96) translateY(0);
    filter: brightness(1);
  }
}

@keyframes towerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.mode-btn,
.secondary,
.primary,
.location-tab,
#clearSignature {
  border: 0;
  cursor: pointer;
  color: var(--ink);
  border-radius: 8px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.mode-btn {
  min-width: 92px;
  padding: 12px 16px;
  background: transparent;
  color: #b7c9c5;
}

.mode-btn.active {
  background: linear-gradient(135deg, rgba(77, 244, 196, 0.22), rgba(73, 183, 255, 0.2));
  color: white;
}

body[data-page="admin"] .hero-actions {
  position: relative;
  gap: 6px;
  padding: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
}

body[data-page="admin"] .mode-btn {
  min-width: 104px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  color: #c5d6d3;
  font-size: 13px;
  font-weight: 800;
}

body[data-page="admin"] .mode-btn:hover,
body[data-page="admin"] .mode-btn:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

body[data-page="admin"] .mode-btn.active {
  color: #041111;
  border-color: rgba(77, 244, 196, 0.52);
  background: linear-gradient(135deg, #54f6cf, #70c7ff);
  box-shadow:
    0 14px 34px rgba(77, 244, 196, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.kiosk-workspace {
  position: fixed;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  width: min(620px, calc(100vw - 40px));
  pointer-events: none;
}

.kiosk-workspace .view-card {
  position: relative;
  isolation: isolate;
  max-width: 620px;
  max-height: min(92vh, 690px);
  min-height: 0;
  overflow: auto;
  margin-left: auto;
  margin-right: 0;
  pointer-events: auto;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 28%),
    radial-gradient(circle at 18% 8%, rgba(77, 244, 196, 0.14), transparent 0 34%),
    radial-gradient(circle at 92% 0%, rgba(73, 183, 255, 0.16), transparent 0 38%),
    rgba(7, 17, 18, 0.66);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(77, 244, 196, 0.08);
  backdrop-filter: blur(24px) saturate(1.18);
}

.kiosk-workspace .view-card::before,
.kiosk-workspace .view-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.kiosk-workspace .view-card > * {
  position: relative;
  z-index: 1;
}

.kiosk-workspace .view-card::before {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent) 0 0 / 220% 1px no-repeat,
    radial-gradient(420px circle at var(--mx, 72%) var(--my, 0%), rgba(255, 255, 255, 0.18), transparent 46%);
  opacity: 0.62;
}

.kiosk-workspace .view-card::after {
  inset: auto 18px 10px 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 244, 196, 0.42), rgba(255, 211, 106, 0.34), transparent);
  opacity: 0.58;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin: 30px 0 18px;
  padding: 0 2px;
}

.admin-header h1 {
  margin: 6px 0 0;
  max-width: 680px;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
}

.admin-topbar {
  margin-bottom: 8px;
}

.location-panel,
.view-card {
  border-radius: 8px;
}

.location-panel {
  position: sticky;
  top: 94px;
  padding: 18px;
  overflow: hidden;
}

body[data-page="admin"] .location-panel::before,
body[data-page="admin"] .view-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent) 0 0 / 220% 1px no-repeat,
    radial-gradient(460px circle at 8% 0%, rgba(77, 244, 196, 0.12), transparent 44%);
}

body[data-page="admin"] .location-panel > *,
body[data-page="admin"] .view-card > * {
  position: relative;
  z-index: 1;
}

.panel-head,
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-head p,
.card-head h2 {
  font-size: 22px;
  font-weight: 800;
}

.card-head h2 {
  margin: 3px 0 0;
}

.location-tabs {
  display: grid;
  gap: 10px;
}

.export-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
}

.date-filter {
  min-width: 170px;
  margin: 0;
}

.date-filter span {
  margin-bottom: 6px;
  font-size: 11px;
  color: #b7c9c5;
}

.date-filter input[type="date"] {
  height: 38px;
  color-scheme: dark;
}

.emergency-tab {
  color: #ffd5df;
}

.emergency-view {
  border-color: rgba(255, 42, 86, 0.28);
}

.emergency-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 42, 86, 0.26);
  border-radius: 8px;
  background: rgba(255, 42, 86, 0.1);
}

.emergency-summary span {
  display: block;
  color: #ffd5df;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.emergency-summary strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-size: 42px;
}

.emergency-summary p {
  margin: 0;
  color: #d9e8e5;
}

.emergency-list {
  display: grid;
  gap: 14px;
}

.emergency-location {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.emergency-location header,
.emergency-person {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.emergency-location header {
  padding: 12px 14px;
  background: rgba(255, 42, 86, 0.18);
}

.emergency-location header strong,
.emergency-person strong {
  color: white;
}

.emergency-location header span,
.emergency-person span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.emergency-person {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.emergency-clear {
  padding: 12px 14px;
  color: var(--teal);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-weight: 800;
}

.location-tab {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.04);
  text-align: left;
  font-weight: 800;
}

.location-tab:hover,
.location-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
}

.location-tab.active {
  color: #041111;
  border-color: rgba(77, 244, 196, 0.72);
  background: linear-gradient(135deg, #54f6cf, #70c7ff);
  box-shadow: 0 14px 32px rgba(77, 244, 196, 0.16);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.stat-grid div {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.045);
}

.stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stat-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.view-card {
  display: none;
  min-height: 540px;
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.view-card.active {
  display: block;
  animation: panelIn 260ms ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

body[data-page="kiosk"] .kiosk-workspace .view-card {
  padding: 14px;
}

body[data-page="kiosk"] .kiosk-workspace .card-head {
  align-items: center;
  margin-bottom: 12px;
}

body[data-page="kiosk"] .kiosk-workspace .card-head h2 {
  font-size: 18px;
}

body[data-page="kiosk"] .kiosk-workspace .card-head p,
body[data-page="kiosk"] .kiosk-workspace label span,
body[data-page="kiosk"] .kiosk-workspace legend,
body[data-page="kiosk"] .kiosk-workspace .signature-box span {
  font-size: 11px;
  margin-bottom: 5px;
}

body[data-page="kiosk"] .kiosk-workspace input[type="text"],
body[data-page="kiosk"] .kiosk-workspace input[type="tel"],
body[data-page="kiosk"] .kiosk-workspace .primary {
  height: 38px;
}

body[data-page="kiosk"] #entryView {
  max-width: 590px;
}

body[data-page="kiosk"] #entryView .form-grid {
  gap: 7px 9px;
}

body[data-page="kiosk"] #entryView fieldset,
body[data-page="kiosk"] #entryView .signature-box {
  padding: 7px;
}

body[data-page="kiosk"] #entryView .choice-row,
body[data-page="kiosk"] #entryView .choice-grid,
body[data-page="kiosk"] #entryView .consent-list {
  gap: 6px;
}

body[data-page="kiosk"] #entryView .choice-row label,
body[data-page="kiosk"] #entryView .choice-grid label,
body[data-page="kiosk"] #entryView .consent-list label {
  gap: 7px;
  font-size: 12px;
  line-height: 1.25;
}

body[data-page="kiosk"] #entryView #signaturePad {
  height: 76px;
}

body[data-page="kiosk"] #entryView .primary.wide {
  height: 40px;
}

.status-pill {
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: 999px;
  color: #bdf7e8;
  border: 1px solid rgba(77, 244, 196, 0.38);
  background: rgba(77, 244, 196, 0.11);
  font-size: 12px;
  font-weight: 800;
}

.status-pill.rose {
  color: #ffd5df;
  border-color: rgba(255, 108, 146, 0.4);
  background: rgba(255, 108, 146, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide,
.primary.wide {
  grid-column: 1 / -1;
}

label span,
legend,
.signature-box span {
  display: block;
  margin-bottom: 8px;
  color: #dbe7e5;
  font-weight: 700;
  font-size: 13px;
}

input[type="text"],
input[type="tel"],
input[type="password"],
input[type="date"],
.form-select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 0 13px;
  color: white;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.065)),
    rgba(255, 255, 255, 0.08);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

input:focus,
.form-select:focus {
  border-color: rgba(77, 244, 196, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.075)),
    rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 0 3px rgba(77, 244, 196, 0.11),
    0 0 26px rgba(77, 244, 196, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.form-select {
  appearance: none;
  cursor: pointer;
}

fieldset {
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.choice-row,
.choice-grid,
.consent-list {
  display: grid;
  gap: 9px;
}

.choice-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-row.compact {
  height: 48px;
  align-items: center;
  grid-template-columns: repeat(3, max-content);
  gap: 12px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-row label,
.choice-grid label,
.consent-list label {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0;
  color: #d8e5e2;
  font-size: 14px;
}

.choice-row .auto-location {
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(77, 244, 196, 0.3);
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(135deg, rgba(77, 244, 196, 0.17), rgba(73, 183, 255, 0.14)),
    rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.choice-row .auto-location span {
  margin: 0;
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.signature-box {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.signature-box > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

#signaturePad {
  width: 100%;
  height: 170px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  cursor: crosshair;
}

#clearSignature,
.secondary {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.065)),
    rgba(255, 255, 255, 0.08);
  transition:
    transform 180ms var(--ease-snappy),
    border-color 180ms ease,
    background 180ms ease;
}

.primary {
  position: relative;
  overflow: hidden;
  height: 52px;
  background: linear-gradient(135deg, #36f0a4, #36d76b);
  color: #041111;
  font-weight: 800;
  box-shadow:
    0 16px 34px rgba(54, 240, 164, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  transition:
    transform 180ms var(--ease-snappy),
    filter 180ms ease,
    box-shadow 180ms ease;
}

.primary.rose {
  background: linear-gradient(135deg, #ff315f, #b20d2e);
  color: white;
  box-shadow:
    0 16px 34px rgba(255, 49, 95, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: translateX(-130%);
  transition: transform 520ms var(--ease-premium);
  pointer-events: none;
}

.primary:hover::before,
.primary:focus-visible::before {
  transform: translateX(130%);
}

.primary:hover,
.primary:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.secondary:hover,
.secondary:focus-visible,
#clearSignature:hover,
#clearSignature:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.user-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(150px, 0.75fr) 150px;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 36%),
    rgba(255, 255, 255, 0.045);
}

.security-form {
  grid-template-columns: minmax(180px, 0.95fr) repeat(3, minmax(160px, 1fr)) 170px;
  border-color: rgba(77, 244, 196, 0.15);
}

.security-head {
  align-self: center;
}

.security-head strong,
.security-head span {
  display: block;
}

.security-head strong {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.security-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.user-list {
  display: grid;
  gap: 10px;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(77, 244, 196, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.055);
}

.user-row:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(77, 244, 196, 0.11), transparent 38%),
    rgba(255, 255, 255, 0.075);
}

.user-row strong,
.user-row span {
  display: block;
}

.user-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.exit-grid {
  display: grid;
  grid-template-columns: 1fr 260px 160px;
  gap: 14px;
  align-items: end;
}

.exit-grid.public-exit {
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 1fr) 220px 160px;
}

body[data-page="kiosk"] #exitView {
  max-width: 520px;
}

body[data-page="kiosk"] #exitView .active-picker {
  margin: 0 0 10px;
  padding: 10px;
}

body[data-page="kiosk"] #exitView .mini-head {
  margin-bottom: 8px;
}

body[data-page="kiosk"] #exitView .mini-head strong {
  min-width: 28px;
  min-height: 28px;
}

body[data-page="kiosk"] #exitView .active-visitor-list {
  grid-template-columns: 1fr;
  max-height: 186px;
  overflow: auto;
  gap: 7px;
  padding-right: 2px;
}

body[data-page="kiosk"] #exitView .visitor-pick {
  min-height: 58px;
  padding: 9px 10px;
}

body[data-page="kiosk"] #exitView .visitor-pick strong {
  font-size: 15px;
}

body[data-page="kiosk"] #exitView .visitor-pick span {
  margin-top: 3px;
  font-size: 11px;
}

body[data-page="kiosk"] #exitForm.public-exit {
  position: sticky;
  bottom: 0;
  z-index: 4;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 9px;
  align-items: end;
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(8, 18, 18, 0), rgba(8, 18, 18, 0.92) 18%);
}

body[data-page="kiosk"] #exitForm .exit-location-field {
  grid-column: 1 / -1;
}

body[data-page="kiosk"] #exitForm .exit-time-field {
  display: none;
}

body[data-page="kiosk"] #exitForm .choice-row.compact {
  height: 40px;
  padding: 0 10px;
}

body[data-page="kiosk"] #exitForm.ready-submit .primary {
  box-shadow: 0 0 0 3px rgba(255, 211, 106, 0.24), 0 0 28px rgba(255, 211, 106, 0.28);
  transform: translateY(-1px);
}

body[data-page="kiosk"] #exitView .result-panel {
  margin: 10px 0 0;
  min-height: 40px;
  padding: 10px;
  font-size: 12px;
}

.result-panel {
  margin: 18px 0;
  padding: 14px;
  min-height: 52px;
  border-radius: 8px;
  color: #d4e2df;
  background: rgba(255, 255, 255, 0.07);
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.table-wrap.tall {
  max-height: 510px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  font-size: 14px;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, rgba(20, 36, 39, 0.96), rgba(12, 24, 27, 0.96));
  backdrop-filter: blur(12px);
}

td {
  color: #e8f3f1;
}

tbody tr {
  transition:
    background 160ms ease,
    color 160ms ease;
}

tbody tr:hover {
  background: rgba(77, 244, 196, 0.055);
}

.empty-row td {
  color: var(--muted);
  text-align: center;
}

#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #061111;
  background: var(--teal);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(100% + 44px));
  transition: transform 220ms ease, opacity 180ms ease, visibility 0s linear 220ms;
  font-weight: 700;
}

#toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

@media (max-width: 980px) {
  .workspace,
  .form-grid,
  .exit-grid,
  .user-form {
    grid-template-columns: 1fr;
  }

  .exit-grid.public-exit {
    grid-template-columns: 1fr;
  }

  .admin-header {
    display: block;
  }

  .admin-header .hero-actions {
    margin-top: 18px;
  }

  .location-panel {
    position: static;
  }

  .hero-actions {
    width: 100%;
    overflow-x: auto;
  }

  body[data-page="admin"] .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  body[data-page="admin"] .mode-btn {
    width: 100%;
    min-width: 0;
  }

  .topbar,
  .top-actions {
    flex-wrap: wrap;
  }

  .idle-map,
  .action-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    color: #061111;
    background: white;
  }

  #gateScene,
  .admin-login,
  .topbar,
  .admin-header,
  .location-panel,
  #liveView,
  #historyView,
  #usersView,
  #toast {
    display: none !important;
  }

  .shell,
  .admin-shell,
  .workspace {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    display: block;
  }

  #emergencyView {
    display: block !important;
    min-height: 0;
    padding: 0;
    border: 0;
    color: #061111;
    background: white;
    box-shadow: none;
  }

  #emergencyView .card-head,
  .emergency-summary,
  .emergency-location,
  .emergency-person {
    color: #061111;
    border-color: #cbd5d2;
    background: white;
  }

  #emergencyView .export-actions {
    display: none;
  }

  .emergency-location header {
    color: #061111;
    background: #f1f5f4;
  }

  .emergency-location header strong,
  .emergency-person strong,
  .emergency-summary strong {
    color: #061111;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 22px, 1440px);
  }

  .hero {
    min-height: 62vh;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .choice-row,
  .choice-grid,
  .active-visitor-list {
    grid-template-columns: 1fr;
  }

  .choice-row.compact {
    height: auto;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 12px;
  }

  .panel-head,
  .card-head {
    display: block;
  }

  .status-pill {
    display: inline-block;
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Doors live polish: integrated brand, readable forms, no pasted-card logo. */
body.doors-mode .door-brand {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.doors-mode .door-brand img {
  width: clamp(188px, 34vw, 350px);
  filter:
    drop-shadow(0 14px 28px rgba(42, 175, 225, 0.12))
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.45));
}

body.doors-mode .kiosk-hero::after {
  width: clamp(116px, 30vw, 178px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  background:
    url("/assets/fline-logo-blue-mark.png") center / contain no-repeat;
  box-shadow: none;
  filter:
    drop-shadow(0 18px 34px rgba(42, 175, 225, 0.2))
    drop-shadow(0 0 30px rgba(42, 175, 225, 0.18));
}

body.doors-mode .kiosk-workspace .view-card {
  color: #071833;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 248, 255, 0.91) 48%, rgba(245, 253, 255, 0.96)),
    rgba(248, 253, 255, 0.96);
  border: 1px solid rgba(42, 175, 225, 0.28);
  box-shadow:
    0 24px 70px rgba(3, 24, 40, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px) saturate(1.06);
}

body.doors-mode .kiosk-workspace .view-card::before {
  opacity: 0.28;
  background:
    radial-gradient(420px circle at 12% 0%, rgba(42, 175, 225, 0.16), transparent 50%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent) 0 0 / 220% 1px no-repeat;
}

body.doors-mode .kiosk-workspace .view-card::after {
  opacity: 0.22;
  background: linear-gradient(90deg, transparent, rgba(42, 175, 225, 0.55), transparent);
}

body.doors-mode .kiosk-workspace .card-head h2,
body.doors-mode .kiosk-workspace .success-panel strong {
  color: #071833;
}

body.doors-mode .kiosk-workspace .card-head p,
body.doors-mode .kiosk-workspace label span,
body.doors-mode .kiosk-workspace legend,
body.doors-mode .kiosk-workspace .signature-box span {
  color: #526b7f;
}

body.doors-mode .kiosk-workspace input[type="text"],
body.doors-mode .kiosk-workspace input[type="tel"],
body.doors-mode .kiosk-workspace input[type="password"],
body.doors-mode .kiosk-workspace input[type="date"],
body.doors-mode .kiosk-workspace .form-select {
  color: #071833;
  border-color: rgba(42, 175, 225, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 250, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 10px 26px rgba(42, 175, 225, 0.08);
}

body.doors-mode .kiosk-workspace input::placeholder {
  color: rgba(7, 24, 51, 0.44);
}

body.doors-mode .kiosk-workspace input:focus,
body.doors-mode .kiosk-workspace .form-select:focus {
  border-color: rgba(42, 175, 225, 0.68);
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(42, 175, 225, 0.14),
    0 14px 34px rgba(42, 175, 225, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

body.doors-mode .kiosk-workspace fieldset,
body.doors-mode .kiosk-workspace .signature-box,
body.doors-mode #exitForm .choice-row.compact {
  border-color: rgba(42, 175, 225, 0.2);
  background: rgba(255, 255, 255, 0.58);
}

body.doors-mode #entryView .choice-row label,
body.doors-mode #entryView .choice-grid label,
body.doors-mode #entryView .consent-list label,
body.doors-mode #exitView .choice-row label {
  color: #1b344c;
}

body.doors-mode .choice-row .auto-location {
  color: #071833;
  border-color: rgba(42, 175, 225, 0.28);
  background:
    linear-gradient(135deg, rgba(226, 249, 255, 0.98), rgba(207, 242, 255, 0.82)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 10px 28px rgba(42, 175, 225, 0.1);
}

body.doors-mode .choice-row .auto-location span {
  color: #071833;
}

body.doors-mode .kiosk-workspace .secondary {
  color: #071833;
  border-color: rgba(42, 175, 225, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 248, 255, 0.92));
  box-shadow: 0 10px 24px rgba(42, 175, 225, 0.1);
}

body.doors-mode .kiosk-workspace .primary {
  color: #fff;
  background:
    linear-gradient(135deg, #2aafe1, #1184c4);
  box-shadow:
    0 14px 34px rgba(17, 132, 196, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

body.doors-mode #entryView #signaturePad {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 250, 255, 0.92));
  border-color: rgba(42, 175, 225, 0.2);
}

@media (max-width: 640px) {
  body.doors-mode .door-brand img {
    width: clamp(160px, 52vw, 220px);
  }

  body.doors-mode .kiosk-workspace .view-card {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(232, 248, 255, 0.93) 48%, rgba(245, 253, 255, 0.97)),
      rgba(248, 253, 255, 0.97);
  }
}

/* Choice polish: keep original door scale, only add a little breathing room. */
body.doors-mode .door-stage {
  gap: clamp(16px, 4vh, 46px);
  padding-inline: clamp(6px, 2.2vw, 34px);
}

body.doors-mode .door-brand img {
  width: clamp(188px, 34vw, 350px);
}

body.doors-mode .welcome-mark {
  justify-self: center;
  position: absolute;
  left: 50%;
  bottom: clamp(88px, 12.5vh, 136px);
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: clamp(28px, 4vh, 46px);
  transform: translateX(-50%);
  pointer-events: none;
}

body.doors-mode .welcome-mark span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(7, 24, 51, 0.78);
  background: transparent;
  box-shadow: none;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.62),
    0 16px 34px rgba(42, 175, 225, 0.16);
}

body.doors-mode::before {
  background:
    linear-gradient(180deg, rgba(4, 19, 32, 0.08) 0%, rgba(4, 19, 32, 0.1) 20%, rgba(4, 19, 32, 0.2) 31%, rgba(4, 19, 32, 0.8) 38% 70%, rgba(11, 43, 62, 0.18) 70% 100%),
    radial-gradient(ellipse at 50% 40%, rgba(72, 190, 236, 0.3), transparent 0 35%),
    linear-gradient(90deg, transparent, rgba(42, 175, 225, 0.11), transparent);
}

body.doors-mode .door-grid {
  width: min(100%, 1180px);
  gap: clamp(16px, 3.5vw, 52px);
  z-index: 2;
}

body.doors-mode .door-card {
  min-height: 0;
}

body.doors-mode .kiosk-workspace {
  width: min(680px, calc(100vw - 28px));
  bottom: clamp(14px, 2.5vh, 28px);
}

body.doors-mode #choiceView {
  padding: 18px;
}

body.doors-mode #choiceView .action-grid {
  gap: 16px;
}

body.doors-mode #choiceView .action-card {
  min-height: 118px;
  padding: 22px;
  color: #fff;
}

body.doors-mode #choiceView .action-card span,
body.doors-mode #choiceView .action-card strong {
  color: #fff;
  text-shadow: 0 1px 10px rgba(4, 17, 29, 0.16);
}

body.doors-mode #choiceView .entry-action,
body.doors-mode .compact-actions .entry-action {
  background:
    radial-gradient(circle at 82% 6%, rgba(255, 255, 255, 0.28), transparent 0 38%),
    linear-gradient(135deg, #60f3c8 0%, #35dea1 48%, #18b978 100%);
  border-color: rgba(47, 213, 151, 0.62);
  box-shadow:
    0 18px 38px rgba(24, 185, 120, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

body.doors-mode #choiceView .exit-action,
body.doors-mode .compact-actions .exit-action {
  background:
    radial-gradient(circle at 82% 6%, rgba(255, 255, 255, 0.24), transparent 0 38%),
    linear-gradient(135deg, #ff6a8a 0%, #ef3e63 48%, #c5163b 100%);
  border-color: rgba(239, 62, 99, 0.72);
  box-shadow:
    0 18px 38px rgba(197, 22, 59, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

@media (max-width: 640px) {
  body.doors-mode::before {
    background:
      linear-gradient(180deg, rgba(4, 19, 32, 0.08) 0%, rgba(4, 19, 32, 0.1) 22%, rgba(4, 19, 32, 0.2) 34%, rgba(4, 19, 32, 0.8) 40% 72%, rgba(11, 43, 62, 0.16) 72% 100%),
      radial-gradient(ellipse at 50% 42%, rgba(72, 190, 236, 0.28), transparent 0 38%),
      linear-gradient(90deg, transparent, rgba(42, 175, 225, 0.11), transparent);
  }

  body.doors-mode .welcome-mark {
    min-height: 28px;
    bottom: clamp(28px, 5.8vh, 58px);
  }

  body.doors-mode .welcome-mark span {
    min-width: 0;
    padding: 0;
    font-size: clamp(18px, 4.4vw, 24px);
    letter-spacing: 0.14em;
  }

  body.doors-mode .door-grid {
    width: min(100%, 1160px);
    gap: clamp(8px, 3.2vw, 16px);
  }

  body.doors-mode .door-brand img {
    width: clamp(160px, 52vw, 220px);
  }

  body.doors-mode .kiosk-workspace {
    width: min(680px, calc(100vw - 28px));
  }
}

@media (min-width: 641px) and (max-height: 820px) {
  body.doors-mode .door-stage {
    gap: clamp(8px, 1.8vh, 16px);
    padding-inline: clamp(18px, 3vw, 42px);
    padding-bottom: clamp(128px, 17vh, 170px);
  }

  body.doors-mode .door-brand img {
    width: clamp(190px, 27vw, 286px);
  }

  body.doors-mode .door-grid {
    width: min(93%, 1040px);
    gap: clamp(24px, 4vw, 58px);
  }

  body.doors-mode .door-frame {
    height: clamp(230px, 31vw, 326px);
  }

  body.doors-mode .welcome-mark {
    bottom: clamp(24px, 4.4vh, 42px);
    z-index: 3;
  }
}

@media (min-width: 641px) and (max-height: 700px) {
  body.doors-mode .door-stage {
    gap: clamp(6px, 1.2vh, 12px);
    padding-bottom: clamp(112px, 18vh, 138px);
  }

  body.doors-mode .door-brand img {
    width: clamp(174px, 23vw, 246px);
  }

  body.doors-mode .door-grid {
    width: min(90%, 980px);
    gap: clamp(28px, 4.4vw, 62px);
  }

  body.doors-mode .door-frame {
    height: clamp(205px, 24vw, 260px);
  }

  body.doors-mode .welcome-mark {
    bottom: clamp(18px, 4vh, 30px);
  }

  body.doors-mode .welcome-mark span {
    font-size: clamp(22px, 2.5vw, 30px);
  }
}
