[hidden] { display: none !important; }

html.lexora-motion body {
  opacity: 0;
  transition: opacity 150ms ease;
}

html.lexora-motion body.page-ready {
  opacity: 1;
}

html.lexora-motion body.page-leaving {
  opacity: 0;
  pointer-events: none;
}

.tour-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.tour-spotlight {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  border: 2px solid #65ddbd;
  border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(3, 6, 8, .76), 0 0 0 7px rgba(101, 221, 189, .12), 0 18px 60px rgba(0, 0, 0, .38);
  transition: left 140ms ease, top 140ms ease, width 140ms ease, height 140ms ease;
}

.tour-popover {
  position: fixed;
  left: 16px;
  top: 16px;
  width: min(360px, calc(100vw - 32px));
  padding: 21px;
  border: 1px solid rgba(101, 221, 189, .32);
  border-radius: 16px;
  background: #151b1f;
  color: #f2f5f3;
  box-shadow: 0 25px 85px rgba(0, 0, 0, .52);
  pointer-events: auto;
  transition: none;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  opacity: 1;
  filter: none;
  backdrop-filter: none;
  -webkit-font-smoothing: antialiased;
}

.tour-kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #65ddbd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tour-popover h2 {
  margin: 0 0 9px;
  color: #f2f5f3;
  font: 650 24px/1.08 "Aptos Display", Manrope, system-ui, sans-serif;
  letter-spacing: -.035em;
}

.tour-popover p {
  margin: 0;
  color: #aab3b3;
  font-size: 14px;
  line-height: 1.55;
}

.tour-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 19px;
}

.tour-actions button {
  min-height: 39px;
  padding: 8px 13px;
  border: 1px solid #30383d;
  border-radius: 9px;
  background: transparent;
  color: #dce3e0;
  cursor: pointer;
  font: 800 12px/1 system-ui, sans-serif;
}

.tour-actions button:hover,
.tour-actions button:focus-visible {
  border-color: #65ddbd;
  color: #65ddbd;
  outline: none;
}

.tour-actions .tour-next {
  margin-left: auto;
  border-color: #65ddbd;
  background: #65ddbd;
  color: #071b16;
}

.tour-actions .tour-next:hover,
.tour-actions .tour-next:focus-visible {
  background: #80e6ca;
  color: #071b16;
}

.entry-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 7, .8);
  backdrop-filter: blur(8px);
  animation: entryFade 180ms ease both;
}

.entry-modal {
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid #30383d;
  border-radius: 19px;
  background: #151b1f;
  color: #f2f5f3;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
  animation: entryModalIn 220ms cubic-bezier(.2,.8,.2,1) both;
}

.entry-modal small {
  color: #65ddbd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.entry-modal h2 {
  margin: 13px 0 10px;
  font: 650 31px/1.08 "Aptos Display", Manrope, system-ui, sans-serif;
  letter-spacing: -.04em;
}

.entry-modal p { margin: 0; color: #aab3b3; line-height: 1.6; }
.entry-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; }
.entry-modal-actions button { min-height: 44px; padding: 10px 15px; border: 1px solid #30383d; border-radius: 10px; background: transparent; color: #f2f5f3; cursor: pointer; font-weight: 800; }
.entry-modal-actions .primary { border-color: #65ddbd; background: #65ddbd; color: #071b16; }

@keyframes entryFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes entryModalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 620px) {
  .tour-popover { padding: 18px; }
  .tour-spotlight { border-radius: 12px; }
  .entry-modal { padding: 24px; }
  .entry-modal-actions { align-items: stretch; flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  html.lexora-motion body,
  html.lexora-motion body.page-ready,
  html.lexora-motion body.page-leaving,
  .tour-spotlight,
  .tour-popover { transition: none !important; transform-duration: 0s !important; }
}
