:root {
  --void: #05060a;
  --panel: #0b0f18;
  --ink: #e8f4ff;
  --muted: #7d8b9c;
  --cyan: #3dffef;
  --magenta: #ff2bd6;
  --amber: #ffb020;
  --led: #b6ff4a;
  --line: rgba(61, 255, 239, 0.18);
  --danger: #ff4d6d;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
}

body.nexus {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 85% -8%, rgba(255, 43, 214, 0.22), transparent 55%),
    radial-gradient(700px 380px at -8% 100%, rgba(61, 255, 239, 0.14), transparent 50%),
    linear-gradient(180deg, #07080d 0%, #05060a 100%);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

body.nexus::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  z-index: 1;
}

.glow-orb { pointer-events: none; }

.ui-layer {
  position: relative;
  z-index: 2;
}

.page-pad {
  padding-left: max(1rem, var(--safe-left));
  padding-right: max(1rem, var(--safe-right));
}

.page-bottom {
  padding-bottom: calc(5.5rem + var(--safe-bottom));
}

@media (min-width: 768px) {
  .page-bottom {
    padding-bottom: calc(3rem + var(--safe-bottom));
  }
}

.display { font-family: Oxanium, sans-serif; }
.zh-mark {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.holo {
  background: linear-gradient(90deg, var(--cyan), #8eb0ff 42%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scan-grid {
  background-image:
    linear-gradient(rgba(61, 255, 239, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 255, 239, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.neon-frame {
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.08) inset,
    0 20px 80px rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, rgba(12, 16, 28, 0.92), rgba(7, 9, 16, 0.92));
}

.led-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--led);
  box-shadow: 0 0 12px var(--led);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes beam-sweep {
  0% { transform: translateX(-30%) rotate(-18deg); opacity: 0.15; }
  50% { opacity: 0.55; }
  100% { transform: translateX(130%) rotate(-18deg); opacity: 0.15; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes strobe {
  0%, 92%, 100% { opacity: 0.05; }
  94% { opacity: 0.35; }
  96% { opacity: 0.08; }
  98% { opacity: 0.28; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.laser-beam {
  position: absolute;
  top: -20%;
  left: 0;
  width: 2px;
  height: 160%;
  background: linear-gradient(to bottom, transparent, #ff2bd6, #3dffef, transparent);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.8);
  animation: beam-sweep 7s linear infinite;
  pointer-events: none;
}

.laser-beam.delay {
  animation-delay: 2.4s;
  left: 18%;
  opacity: 0.7;
}

.stage-ring {
  border: 1px solid rgba(61, 255, 239, 0.25);
  box-shadow: 0 0 40px rgba(255, 43, 214, 0.12) inset;
  animation: pulse 3.2s ease-in-out infinite;
}

.magic-badge {
  border: 1px solid rgba(255, 43, 214, 0.45);
  background: rgba(255, 43, 214, 0.08);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-watermark {
  pointer-events: none;
  user-select: none;
  font-family: Oxanium, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(61, 255, 239, 0.18);
  white-space: nowrap;
}

.strobe-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.35), transparent 42%);
  animation: strobe 4.8s ease-in-out infinite;
}

.float-card {
  animation: float-y 5.5s ease-in-out infinite;
}

.orbit {
  animation: spin-slow 28s linear infinite;
}

.btn-cyan, .btn-magenta, .btn-amber, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 3;
  min-height: 44px;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  font-family: Oxanium, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-cyan {
  background: var(--cyan);
  color: #041014;
  box-shadow: 0 0 24px rgba(61, 255, 239, 0.25);
}
.btn-magenta {
  background: var(--magenta);
  color: #1a0214;
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.28);
}
.btn-amber {
  background: var(--amber);
  color: #1a1202;
}
.btn-cyan:hover, .btn-magenta:hover, .btn-amber:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--cyan);
  background: transparent;
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem max(1rem, var(--safe-left)) calc(0.75rem + var(--safe-bottom)) max(1rem, var(--safe-right));
  background: linear-gradient(to top, rgba(5, 6, 10, 0.96), rgba(5, 6, 10, 0.82));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
@media (min-width: 768px) {
  .mobile-cta { display: none; }
}

.seat-btn {
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

input, select, button {
  font-size: 16px;
}
input, select {
  background: #070b12;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  min-height: 48px;
  width: 100%;
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
}
input:focus, select:focus {
  outline: 1px solid var(--cyan);
}

.inbox-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100dvh - 57px);
}
@media (min-width: 768px) {
  .inbox-shell {
    grid-template-columns: 280px 1fr;
  }
}
