/* ==========================================================================
   曜境·造物现场 — High-Tech Mobile-First Registration Design System
   河北曜境智能科技有限公司
   ========================================================================== */

:root {
  --bg-deep: #040712;
  --bg-surface: rgba(11, 18, 38, 0.74);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-glow: rgba(0, 240, 255, 0.36);

  --cyan: #00f0ff;
  --indigo: #6366f1;
  --violet: #a855f7;
  --emerald: #10b981;
  --danger: #f43f5e;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Fira Code", Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.mono {
  font-family: var(--font-mono);
}

.accent-text {
  color: var(--cyan);
}

/* ==========================================================================
   Dynamic Background Stage
   ========================================================================== */

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 20% 10%, #0b1535 0%, #050816 55%, #03050d 100%);
}

#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.cyber-grid {
  position: absolute;
  inset: -20% -10% -40% -10%;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(680px) rotateX(62deg) translateY(160px);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 72%);
  animation: gridDrift 18s linear infinite;
  pointer-events: none;
}

@keyframes gridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 0 56px; }
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.orb-1 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  top: -140px;
  left: -100px;
}

.orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--indigo), transparent 70%);
  bottom: -160px;
  right: -120px;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  top: 42%;
  left: 42%;
  opacity: 0.16;
  animation-delay: -9s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(32px, -24px) scale(1.08); }
}

.scanline-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0) 3px,
    rgba(0, 240, 255, 0.015) 4px
  );
  pointer-events: none;
}

/* ==========================================================================
   Layout & Glassmorphism
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass-surface {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Top Brand Bar
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(4, 7, 18, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.topbar-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  min-width: 0;
}

.brand-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.76), rgba(99, 102, 241, 0.48));
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.brand:hover .brand-logo-wrap {
  transform: scale(1.06);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.56);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  opacity: 0.85;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.58);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
}

.ghost-btn svg {
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

.ghost-btn:hover {
  border-color: var(--border-glow);
  background: rgba(0, 240, 255, 0.09);
  transform: translateY(-1px);
}

/* ==========================================================================
   Main Split Grid
   ========================================================================== */

.main-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 5.6fr);
  gap: 44px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 52px;
}

.reveal {
  animation: fadeUp 0.72s var(--ease-out) both;
}

.form-panel.reveal {
  animation-delay: 0.08s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Left Hero Panel */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-floating-logo {
  width: 172px;
  height: 172px;
  object-fit: contain;
  display: block;
  align-self: center;
  margin: 0 auto 2px;
  filter: drop-shadow(0 8px 26px rgba(0, 240, 255, 0.42));
  animation: heroLogoFloat 3.8s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

@keyframes heroLogoFloat {
  0%, 100% {
    transform: translateY(0px);
    filter: drop-shadow(0 10px 26px rgba(0, 240, 255, 0.34));
  }
  50% {
    transform: translateY(-12px);
    filter: drop-shadow(0 18px 34px rgba(0, 240, 255, 0.52));
  }
}

.hud-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.28);
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.12em;
  overflow: hidden;
}

.hud-badge-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(0, 240, 255, 0.26) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: sheen 4.2s ease-in-out infinite;
}

@keyframes sheen {
  0%, 55% { transform: translateX(-100%); }
  100% { transform: translateX(120%); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title-glitch {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.12;
  background: linear-gradient(125deg, #ffffff 12%, #a5f3fc 52%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(0, 240, 255, 0.24));
}

.title-sub {
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  max-width: 480px;
}

/* Countdown Card */
.countdown-card {
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.countdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cd-unit {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(4, 9, 24, 0.68);
  border: 1px solid rgba(0, 240, 255, 0.14);
}

.cd-unit strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

.cd-unit span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.cd-sep {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--cyan);
  opacity: 0.65;
}

/* Info Tiles */
.info-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-tile {
  border-radius: var(--radius-md);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tile-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.info-tile strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Right Panel: Spotlight Form Card
   ========================================================================== */

.card-shell {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px 30px 28px;
  overflow: hidden;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 20%),
    rgba(0, 240, 255, 0.11),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  border-color: var(--cyan);
  opacity: 0.72;
}
.hud-corner.tl { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 4px; }
.hud-corner.tr { top: 10px; right: 10px; border-top: 2px solid; border-right: 2px solid; border-top-right-radius: 4px; }
.hud-corner.bl { bottom: 10px; left: 10px; border-bottom: 2px solid; border-left: 2px solid; border-bottom-left-radius: 4px; }
.hud-corner.br { bottom: 10px; right: 10px; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 4px; }

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

.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 4px;
}

.card-head h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.mode-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.08);
  color: var(--cyan);
}

#registerForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
}

.req {
  color: var(--cyan);
  font-weight: 700;
}

.opt {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.1);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"] {
  width: 100%;
  min-height: 48px;
  background: rgba(5, 10, 24, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 12px 14px 12px 44px;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

input::placeholder {
  color: #475569;
  font-size: 14px;
}

input:focus {
  border-color: var(--cyan);
  background: rgba(7, 14, 34, 0.94);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.14), 0 0 18px rgba(0, 240, 255, 0.12);
}

.input-wrap:focus-within .input-icon {
  color: var(--cyan);
}

.field-group.has-error input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.14);
}

.field-error {
  font-size: 12.5px;
  color: #fb7185;
  min-height: 0;
}

.form-alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.cyber-submit {
  position: relative;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(110deg, #0ea5e9 0%, #00e5ff 48%, #6366f1 100%);
  color: #030712;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 28px rgba(0, 229, 255, 0.28);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s ease;
}

.cyber-submit.compact {
  height: 46px;
  font-size: 14.5px;
}

.cyber-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 240, 255, 0.42);
  filter: brightness(1.06);
}

.cyber-submit:active {
  transform: translateY(0);
}

.cyber-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.btn-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.48) 50%, transparent 75%);
  transform: translateX(-120%);
  animation: sheen 3.2s ease-in-out infinite;
}

.btn-content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-content svg {
  width: 18px;
  height: 18px;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.2px solid rgba(3, 7, 18, 0.25);
  border-top-color: #030712;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.cyber-submit.loading .btn-content { display: none; }
.cyber-submit.loading .btn-spinner { display: inline-block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.privacy-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Holographic 3D Electronic Pass
   ========================================================================== */

.pass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.36);
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 600;
}

.success-badge svg {
  width: 16px;
  height: 16px;
}

.text-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.text-btn:hover { color: var(--cyan); }

.holo-stage {
  perspective: 1100px;
  margin-bottom: 20px;
}

.holo-pass {
  position: relative;
  border-radius: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 88% 14%, rgba(0, 240, 255, 0.22), transparent 46%),
    radial-gradient(circle at 12% 92%, rgba(99, 102, 241, 0.24), transparent 50%),
    linear-gradient(145deg, #0b142d 0%, #070d1f 100%);
  border: 1px solid rgba(0, 240, 255, 0.36);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.52),
    inset 0 0 28px rgba(0, 240, 255, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  overflow: hidden;
}

.holo-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.16),
    transparent 65%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.holo-pass:hover .holo-glare { opacity: 1; }

.holo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(0, 240, 255, 0.24);
  margin-bottom: 16px;
}

.holo-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.holo-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.28);
}

.holo-eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.holo-top h3 {
  font-size: 17px;
  margin-top: 2px;
}

.verified-chip {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.14);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

.holo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 16px;
  align-items: center;
}

.holo-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.holo-field span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.holo-field strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  word-break: break-all;
}

.holo-field strong.small-text { font-size: 13px; }

.holo-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid rgba(0, 240, 255, 0.55);
}

#qrCanvas {
  border-radius: 4px;
  display: block;
}

.qr-code-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #030712;
}

.holo-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 240, 255, 0.2);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.verified-text { color: #34d399; }

.pass-actions {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
}

.secondary-btn {
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.68);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ==========================================================================
   Footer & Modal & Toast
   ========================================================================== */

.footer {
  padding-top: 16px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 5, 14, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop[hidden] { display: none; }

.modal-card {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 24px;
  animation: fadeUp 0.26s var(--ease-out);
}

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

.modal-head h3 { font-size: 19px; }

.icon-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 15px;
}

.icon-close:hover {
  color: #fff;
  border-color: var(--cyan);
}

.lookup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lookup-form input { padding-left: 14px; }

.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 80;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(9, 17, 38, 0.94);
  border: 1px solid rgba(0, 240, 255, 0.42);
  color: #e2e8f0;
  font-size: 13.5px;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 240, 255, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s var(--ease-out);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Mobile-First Responsive Optimization (Phones & Tablets)
   ========================================================================== */

@media (max-width: 920px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 22px;
    padding-bottom: 36px;
  }
  .live-pill { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .topbar-inner { min-height: 62px; }
  .brand-logo-wrap { width: 34px; height: 34px; border-radius: 9px; }
  .brand-text strong { font-size: 13.5px; }
  .brand-text small { font-size: 9px; }
  .ghost-btn { padding: 7px 11px; font-size: 12px; }

  .hero-panel { gap: 16px; }
  .hero-floating-logo { width: 132px; height: 132px; }
  .hero-desc { font-size: 14px; }
  .countdown-card { padding: 14px 14px; }
  .cd-unit strong { font-size: 22px; }
  .info-tiles { grid-template-columns: 1fr; gap: 10px; }

  .card-shell { padding: 24px 18px 22px; border-radius: 18px; }
  .card-head { margin-bottom: 20px; }
  .card-head h2 { font-size: 20px; }
  #registerForm { gap: 16px; }

  .holo-body { grid-template-columns: 1fr; }
  .holo-qr-box { width: fit-content; margin: 4px auto 0; }
  .pass-actions { grid-template-columns: 1fr; }
}

/* Minimal Tech Success View */
.success-only-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 64px 20px;
  text-align: center;
  animation: fadeUp 0.45s var(--ease-out) both;
}

.success-only-view[hidden] {
  display: none;
}

.success-icon-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #34d399;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22), rgba(0, 240, 255, 0.08));
  border: 1.5px solid rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.34), inset 0 0 18px rgba(0, 240, 255, 0.16);
}

.success-icon-ring svg {
  width: 36px;
  height: 36px;
}

.success-only-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(120deg, #ffffff 15%, #6ee7b7 65%, #00f0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
