:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-2: #081026;
  --glass: rgba(12, 22, 48, 0.74);
  --glass-strong: rgba(9, 17, 38, 0.9);
  --glass-border: rgba(148, 163, 184, 0.18);
  --text: #f1f7ff;
  --muted: #94a3b8;
  --cyan: #67e8f9;
  --blue: #3b82f6;
  --violet: #a855f7;
  --gold: #f6d48b;
  --green: #34d399;
  --danger: #fb7185;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(103, 232, 249, 0.18), transparent 32%),
    radial-gradient(circle at 82% 0%, rgba(168, 85, 247, 0.2), transparent 28%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 48%, #03040b 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 90%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(103, 232, 249, 0.035), transparent);
  transform: translateY(-100%);
  animation: scanline 8s linear infinite;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(22px);
}

.nav-inner {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  width: min(260px, 48vw);
  min-width: 148px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 46px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 18px rgba(103, 232, 249, 0.22));
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(103, 232, 249, 0.42);
  border-radius: 15px;
  color: #06111d;
  background: linear-gradient(135deg, var(--cyan), #d9fbff 48%, var(--gold));
  box-shadow: 0 0 34px rgba(103, 232, 249, 0.36);
  font-size: 24px;
  font-weight: 900;
}

.brand-lockup strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand-lockup em {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 999px;
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.8);
  animation: pulse 1.5s ease-in-out infinite;
}

.page-shell,
.admin-shell,
.qr-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(5, 8, 20, 0.72));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
}

.hero-section {
  min-height: 500px;
  padding: clamp(28px, 5vw, 58px);
}

#particles,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#particles {
  z-index: 1;
  opacity: 0.72;
}

.hero-grid {
  z-index: 0;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-section::after {
  position: absolute;
  right: -120px;
  bottom: -160px;
  z-index: 0;
  width: 430px;
  height: 430px;
  content: "";
  border: 1px solid rgba(103, 232, 249, 0.26);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.18), transparent 62%);
  box-shadow: 0 0 100px rgba(103, 232, 249, 0.18);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

h1 span,
.neon-text {
  color: transparent;
  background: linear-gradient(92deg, #ffffff 4%, var(--cyan) 42%, var(--violet) 94%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 24px rgba(103, 232, 249, 0.16);
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions,
.success-actions,
.quick-actions,
.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-link,
.secondary-link,
.submit-button,
.button-link,
.danger-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  padding: 0 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-link,
.submit-button,
.button-link {
  border: 0;
  color: #06111d;
  background: linear-gradient(135deg, var(--cyan), #d5faff 45%, var(--gold));
  box-shadow: 0 16px 38px rgba(103, 232, 249, 0.22);
}

.secondary-link {
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: rgba(241, 247, 255, 0.9);
  background: rgba(255, 255, 255, 0.065);
}

.danger-button {
  border: 1px solid rgba(251, 113, 133, 0.34);
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.1);
}

.primary-link:hover,
.secondary-link:hover,
.submit-button:hover,
.button-link:hover,
.danger-button:hover {
  transform: translateY(-2px);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0;
}

.info-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.info-card span,
.recent-title span,
.item-company,
.item-time,
.qr-caption,
.admin-hint {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.info-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 22px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
}

.form-panel,
.stats-panel,
.admin-panel,
.qr-panel {
  padding: clamp(22px, 4vw, 34px);
}

.section-title {
  margin-bottom: 24px;
}

.section-title.compact {
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.section-title span,
.section-title p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.checkin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-full,
.form-message,
.submit-button {
  grid-column: 1 / -1;
}

.field span {
  color: rgba(241, 247, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
}

.field b {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(7, 13, 30, 0.82);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input,
select {
  height: 52px;
  padding: 0 15px;
}

textarea {
  resize: vertical;
  min-height: 86px;
  padding: 14px 15px;
}

select option {
  color: #111827;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(103, 232, 249, 0.75);
  background: rgba(10, 18, 42, 0.96);
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.12), 0 0 26px rgba(168, 85, 247, 0.12);
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.6;
}

.submit-button {
  height: 56px;
  font-size: 16px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.success-panel {
  display: grid;
  justify-items: center;
  text-align: center;
}

.success-panel[hidden] {
  display: none;
}

.success-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(52, 211, 153, 0.36);
  border-radius: 50%;
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  box-shadow: 0 0 42px rgba(52, 211, 153, 0.18);
  font-size: 42px;
  font-weight: 900;
  animation: pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-panel h2 {
  margin: 0 0 10px;
  font-size: 38px;
}

.success-panel p {
  color: var(--muted);
}

.success-code {
  margin: 18px 0 24px;
  padding: 16px 22px;
  border: 1px solid rgba(168, 85, 247, 0.26);
  border-radius: 18px;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.24);
  font-family: Consolas, Monaco, monospace;
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.stats-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}

.stats-number strong {
  color: var(--cyan);
  font-size: 64px;
  line-height: 1;
}

.stats-number span {
  color: var(--muted);
}

.quick-actions {
  margin-bottom: 26px;
}

.quick-actions .secondary-link,
.admin-actions .secondary-link,
.admin-actions .danger-button {
  min-height: 40px;
  border-radius: 999px;
  font-size: 13px;
}

.recent-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.recent-title h3 {
  margin: 0;
  font-size: 18px;
}

.recent-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
}

.recent-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-size: 14px;
  font-weight: 900;
}

.item-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-company {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-time {
  text-align: right;
  white-space: nowrap;
}

.empty-state {
  display: block !important;
  padding: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.qr-shell {
  display: grid;
  min-height: calc(100vh - 66px);
  place-items: center;
}

.qr-panel {
  display: grid;
  width: min(680px, 100%);
  justify-items: center;
  text-align: center;
}

.qr-frame {
  width: min(320px, 80vw);
  height: min(320px, 80vw);
  margin: 24px 0;
  padding: 14px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(103, 232, 249, 0.2);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-url {
  width: 100%;
  overflow-wrap: anywhere;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
}

.admin-panel {
  min-height: 520px;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--cyan);
  background: rgba(103, 232, 249, 0.06);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.admin-table td {
  color: rgba(241, 247, 255, 0.86);
  font-size: 14px;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-empty {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  68%, 100% { transform: translateY(100%); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

@keyframes pop {
  0% { transform: scale(0.68); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 980px) {
  .info-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .stats-panel {
    order: -1;
  }
}

@media (max-width: 640px) {
  .nav-inner,
  .page-shell,
  .admin-shell,
  .qr-shell {
    width: min(100% - 20px, 1180px);
  }

  .nav-status {
    display: none;
  }

  .hero-section,
  .form-panel,
  .stats-panel,
  .admin-panel,
  .qr-panel {
    border-radius: 24px;
  }

  .hero-section {
    min-height: auto;
  }

  h1 {
    font-size: 46px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .checkin-form {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .recent-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .item-time {
    grid-column: 2;
    text-align: left;
  }
}

/* Mobile-first ceremony refresh */
.home-page {
  background:
    radial-gradient(circle at 50% -10%, rgba(103, 232, 249, 0.22), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(168, 85, 247, 0.2), transparent 30%),
    radial-gradient(circle at 10% 88%, rgba(246, 212, 139, 0.12), transparent 24%),
    linear-gradient(180deg, #050716 0%, #070b1d 48%, #03040a 100%);
}

.home-page::before {
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.04) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.11) 1px, transparent 1.5px);
  background-size: 32px 32px, 32px 32px, 68px 68px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.28) 72%, transparent);
}

.site-nav {
  top: env(safe-area-inset-top, 0);
}

.home-page .site-nav {
  border-bottom-color: rgba(103, 232, 249, 0.14);
  background: rgba(3, 6, 18, 0.66);
}

.home-page .page-shell {
  width: min(1080px, calc(100% - 28px));
  padding: 18px 0 max(78px, calc(48px + env(safe-area-inset-bottom, 0px)));
}

.home-page .hero-section {
  display: grid;
  min-height: min(680px, calc(100vh - 92px));
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 5vw, 54px);
  align-items: end;
  padding: clamp(28px, 5vw, 64px);
  border-color: rgba(103, 232, 249, 0.2);
  background:
    linear-gradient(145deg, rgba(6, 13, 34, 0.92), rgba(8, 11, 28, 0.78)),
    radial-gradient(circle at 70% 18%, rgba(103, 232, 249, 0.22), transparent 30%);
}

.home-page .hero-section::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background:
    linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.12) 45%, transparent 56% 100%),
    radial-gradient(circle at 18% 26%, rgba(103, 232, 249, 0.2), transparent 24%);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.home-page .hero-section::after {
  right: -190px;
  bottom: -190px;
  width: 520px;
  height: 520px;
  border-color: rgba(103, 232, 249, 0.2);
  background:
    radial-gradient(circle, rgba(103, 232, 249, 0.18), transparent 52%),
    conic-gradient(from 140deg, transparent, rgba(103, 232, 249, 0.28), transparent, rgba(168, 85, 247, 0.24), transparent);
  animation: slowRotate 18s linear infinite;
}

.hero-glow {
  position: absolute;
  right: 16%;
  top: 16%;
  z-index: 0;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.16);
  filter: blur(34px);
  animation: breatheGlow 4.2s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 999px;
}

.hero-orbit::after {
  position: absolute;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(103, 232, 249, 0.85);
}

.orbit-one {
  right: 8%;
  top: 18%;
  width: 260px;
  height: 260px;
  animation: slowRotate 15s linear infinite;
}

.orbit-one::after {
  right: 34px;
  top: 26px;
}

.orbit-two {
  right: -4%;
  top: 6%;
  width: 380px;
  height: 380px;
  border-style: dashed;
  opacity: 0.68;
  animation: slowRotate 26s linear infinite reverse;
}

.orbit-two::after {
  left: 72px;
  bottom: 40px;
  background: var(--violet);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.86);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 0 13px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  color: rgba(226, 246, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.85);
}

.home-page .eyebrow {
  margin-bottom: 10px;
  color: #89f7ff;
}

.home-page h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(50px, 8vw, 94px);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.home-page h1 span {
  background: linear-gradient(96deg, #ffffff 5%, #7df7ff 40%, #b993ff 72%, #f8d391 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.home-page .hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: rgba(210, 224, 244, 0.78);
  font-size: 16px;
  line-height: 1.85;
}

.home-page .hero-actions .primary-link,
.home-page .hero-actions .secondary-link {
  min-width: 136px;
}

.hero-dashboard {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.dashboard-card {
  position: relative;
  overflow: hidden;
  min-height: 110px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-card::after {
  position: absolute;
  right: -36px;
  top: -36px;
  width: 90px;
  height: 90px;
  content: "";
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.12);
  filter: blur(6px);
}

.dashboard-card span,
.mobile-event-strip span {
  display: block;
  margin-bottom: 8px;
  color: rgba(137, 247, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.dashboard-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.dashboard-card small {
  display: block;
  color: rgba(203, 213, 225, 0.72);
  line-height: 1.6;
}

.dashboard-card.main-date {
  min-height: 152px;
  border-color: rgba(103, 232, 249, 0.28);
  background:
    linear-gradient(145deg, rgba(103, 232, 249, 0.15), rgba(168, 85, 247, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.dashboard-card.main-date strong {
  color: #f8fbff;
  font-size: 56px;
  line-height: 0.95;
}

.mobile-event-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.mobile-event-strip article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.mobile-event-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.mobile-event-strip p {
  margin: 0;
  color: rgba(203, 213, 225, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.home-page .content-grid {
  display: block;
  max-width: 760px;
  margin: 18px auto 0;
}

.home-page .form-panel {
  border-color: rgba(103, 232, 249, 0.16);
  background:
    linear-gradient(145deg, rgba(13, 22, 47, 0.92), rgba(5, 8, 20, 0.82)),
    radial-gradient(circle at 0 0, rgba(103, 232, 249, 0.14), transparent 34%);
}

.home-page .section-title h2 {
  font-size: clamp(32px, 5vw, 44px);
}

.home-page .checkin-form {
  gap: 14px;
}

.home-page input,
.home-page select,
.home-page textarea {
  border-color: rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(2, 8, 23, 0.72);
}

.home-page input,
.home-page select {
  height: 54px;
}

.home-page .submit-button {
  height: 58px;
  border-radius: 20px;
  font-size: 17px;
  box-shadow: 0 18px 46px rgba(103, 232, 249, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.mobile-sticky-cta {
  display: none;
}

.screen-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(103, 232, 249, 0.24), transparent 30%),
    radial-gradient(circle at 12% 86%, rgba(168, 85, 247, 0.2), transparent 34%),
    linear-gradient(135deg, #02050e 0%, #081026 52%, #03040b 100%);
}

.screen-page .site-nav {
  display: none;
}

.screen-stage {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: min(3.2vw, 34px);
}

.screen-board {
  position: relative;
  display: grid;
  width: min(100vh - 48px, 100vw - 48px, 1120px);
  aspect-ratio: 1 / 1;
  grid-template-rows: auto auto 1fr;
  gap: clamp(18px, 2.4vw, 28px);
  padding: clamp(28px, 3.4vw, 46px);
  border-color: rgba(103, 232, 249, 0.26);
  background:
    linear-gradient(145deg, rgba(7, 16, 38, 0.9), rgba(4, 8, 22, 0.82)),
    rgba(2, 6, 23, 0.86);
  box-shadow: 0 0 80px rgba(103, 232, 249, 0.14), 0 34px 110px rgba(0, 0, 0, 0.58);
}

.screen-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.9), transparent 78%);
}

.screen-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}

.orb-a {
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  background: radial-gradient(circle, rgba(103, 232, 249, 0.16), transparent 64%);
  animation: breatheGlow 5s ease-in-out infinite;
}

.orb-b {
  left: -150px;
  bottom: -130px;
  width: 380px;
  height: 380px;
  border: 1px dashed rgba(168, 85, 247, 0.24);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.13), transparent 62%);
  animation: slowRotate 24s linear infinite;
}

.screen-header,
.screen-hero,
.screen-list-panel {
  position: relative;
  z-index: 1;
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.screen-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.screen-logo {
  width: clamp(170px, 20vw, 250px);
  height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 18px rgba(103, 232, 249, 0.25));
}

.screen-brand p,
.screen-section-title p,
.screen-count-card span,
.screen-label {
  margin: 0 0 8px;
  color: rgba(137, 247, 255, 0.82);
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 900;
  letter-spacing: 0.16em;
}

.screen-brand h1 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.screen-live {
  display: inline-grid;
  min-width: 148px;
  justify-items: end;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 20px;
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
}

.screen-live strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(14px, 1.5vw, 18px);
}

.screen-live em {
  color: rgba(187, 247, 208, 0.72);
  font-size: clamp(11px, 1.1vw, 13px);
  font-style: normal;
}

.screen-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(16px, 2vw, 26px);
}

.screen-count-card,
.screen-latest-card,
.screen-list-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.screen-count-card {
  display: grid;
  align-content: center;
  min-height: clamp(190px, 22vw, 258px);
  padding: clamp(22px, 3vw, 34px);
}

.screen-count-card strong {
  color: transparent;
  background: linear-gradient(92deg, #ffffff 4%, var(--cyan) 45%, var(--gold) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(94px, 15vw, 178px);
  line-height: 0.88;
  letter-spacing: -0.1em;
  text-shadow: 0 0 34px rgba(103, 232, 249, 0.18);
}

.screen-count-card small {
  color: rgba(203, 213, 225, 0.78);
  font-size: clamp(15px, 1.7vw, 22px);
}

.screen-latest-card {
  display: grid;
  align-content: center;
  min-height: clamp(190px, 22vw, 258px);
  padding: clamp(22px, 3vw, 34px);
}

.latest-guest {
  display: grid;
  gap: 10px;
}

.latest-guest span {
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 999px;
  color: #bff8ff;
  background: rgba(103, 232, 249, 0.08);
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 800;
}

.latest-guest strong {
  font-size: clamp(54px, 8.2vw, 98px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.latest-guest em {
  color: rgba(203, 213, 225, 0.8);
  font-size: clamp(15px, 1.7vw, 22px);
  font-style: normal;
}

.latest-guest.empty strong {
  font-size: clamp(32px, 4.5vw, 54px);
  letter-spacing: -0.06em;
}

.latest-guest.is-new strong {
  animation: guestPop 0.8s cubic-bezier(0.18, 0.9, 0.24, 1.2);
}

.screen-list-panel {
  min-height: 0;
  padding: clamp(20px, 2.5vw, 30px);
}

.screen-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.screen-section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.05em;
}

.screen-guest-list {
  display: grid;
  max-height: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 14px);
}

.screen-guest-card {
  display: grid;
  min-height: clamp(66px, 7.2vw, 88px);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(2, 8, 23, 0.42);
}

.screen-guest-card.first {
  border-color: rgba(103, 232, 249, 0.36);
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.14), rgba(168, 85, 247, 0.08));
}

.screen-guest-card > span {
  color: rgba(137, 247, 255, 0.72);
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 900;
}

.screen-guest-card strong,
.screen-guest-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-guest-card strong {
  font-size: clamp(17px, 1.7vw, 23px);
}

.screen-guest-card em,
.screen-guest-card small,
.screen-empty {
  color: rgba(203, 213, 225, 0.66);
  font-size: clamp(11px, 1.1vw, 14px);
  font-style: normal;
}

.screen-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 22px;
}

@keyframes guestPop {
  0% { opacity: 0; transform: translateY(18px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slowRotate {
  to { transform: rotate(360deg); }
}

@keyframes breatheGlow {
  0%, 100% { opacity: 0.48; transform: scale(0.88); }
  50% { opacity: 0.9; transform: scale(1.12); }
}

@media (max-width: 980px) {
  .home-page .hero-section,
  .home-page .content-grid,
  .mobile-event-strip {
    grid-template-columns: 1fr;
  }

  .hero-dashboard {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-page .stats-panel {
    position: relative;
    top: auto;
    order: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --radius-xl: 28px;
    --radius-lg: 22px;
  }

  body {
    min-height: 100svh;
  }

  .nav-inner,
  .page-shell,
  .admin-shell,
  .qr-shell {
    width: min(100% - 22px, 1180px);
  }

  .nav-inner {
    height: 58px;
  }

  .brand-lockup {
    width: min(186px, 58vw);
    min-width: 132px;
  }

  .brand-logo {
    height: 38px;
  }

  .home-page .page-shell {
    width: min(100% - 18px, 1080px);
    padding-top: 10px;
  }

  .home-page .hero-section {
    min-height: calc(100svh - 86px);
    align-content: end;
    gap: 18px;
    padding: 26px 18px 18px;
    border-radius: 30px;
  }

  .home-page .hero-section::after {
    right: -210px;
    bottom: -180px;
    width: 430px;
    height: 430px;
  }

  .hero-orbit {
    opacity: 0.72;
  }

  .orbit-one {
    right: -82px;
    top: 82px;
    width: 236px;
    height: 236px;
  }

  .orbit-two {
    right: -150px;
    top: 28px;
    width: 340px;
    height: 340px;
  }

  .hero-glow {
    right: 3%;
    top: 20%;
  }

  .hero-kicker {
    min-height: 30px;
    margin-bottom: 14px;
    padding: 0 11px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .home-page .eyebrow {
    font-size: 10px;
  }

  .home-page h1 {
    max-width: 330px;
    margin-bottom: 14px;
    font-size: clamp(52px, 16vw, 66px);
    line-height: 0.94;
  }

  .home-page .hero-copy {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.78;
  }

  .home-page .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .home-page .hero-actions .primary-link,
  .home-page .hero-actions .secondary-link {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 17px;
    font-size: 14px;
  }

  .hero-dashboard {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 10px;
  }

  .dashboard-card {
    min-height: 96px;
    padding: 14px;
    border-radius: 20px;
  }

  .dashboard-card.main-date {
    min-height: 128px;
    grid-row: span 2;
  }

  .dashboard-card.main-date strong {
    font-size: 46px;
  }

  .dashboard-card strong {
    font-size: 17px;
  }

  .dashboard-card small {
    font-size: 11px;
  }

  .mobile-event-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 12px -9px 12px 0;
    padding: 0 9px 4px;
    scroll-snap-type: x mandatory;
  }

  .mobile-event-strip article {
    min-width: 76vw;
    min-height: 118px;
    scroll-snap-align: start;
  }

  .home-page .content-grid {
    gap: 12px;
  }

  .home-page .form-panel,
  .home-page .stats-panel,
  .admin-panel,
  .qr-panel {
    padding: 20px 16px;
    border-radius: 26px;
  }

  .home-page .stats-panel {
    order: 2;
  }

  .home-page .section-title {
    margin-bottom: 18px;
  }

  .home-page .section-title h2 {
    font-size: 32px;
  }

  .home-page .section-title span {
    font-size: 13px;
  }

  .field {
    gap: 7px;
  }

  .field span {
    font-size: 13px;
  }

  input,
  select {
    height: 50px;
  }

  textarea {
    min-height: 78px;
  }

  .home-page .checkin-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-page .submit-button {
    height: 56px;
    margin-top: 2px;
    border-radius: 18px;
  }

  .stats-number strong {
    font-size: 52px;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-actions .secondary-link {
    width: 100%;
  }

  .recent-list {
    max-height: none;
  }

  .success-icon {
    width: 68px;
    height: 68px;
    font-size: 36px;
  }

  .success-panel h2 {
    font-size: 30px;
  }

  .success-code {
    width: 100%;
    padding: 14px 12px;
    font-size: 22px;
  }

  .mobile-sticky-cta {
    position: fixed;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    z-index: 30;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: #06111d;
    background: linear-gradient(135deg, var(--cyan), #effcff 48%, var(--gold));
    box-shadow: 0 18px 46px rgba(103, 232, 249, 0.34);
    font-size: 14px;
    font-weight: 900;
  }

  .qr-shell {
    min-height: calc(100svh - 58px);
    padding-top: 12px;
    padding-bottom: 24px;
  }

  .qr-panel h1 {
    font-size: 42px;
  }

  .qr-frame {
    width: min(290px, 76vw);
    height: min(290px, 76vw);
    margin: 18px 0;
    border-radius: 24px;
  }

  .qr-url {
    font-size: 11px;
  }

  .admin-shell {
    padding-top: 18px;
  }

  .admin-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-actions .secondary-link,
  .admin-actions .danger-button {
    width: 100%;
  }

  .admin-table-wrap {
    margin-inline: -4px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}