:root {
  --ink-strong: #171717;
  --ink-soft: #5a5f66;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --line: rgba(23, 23, 23, 0.08);
  --accent: #eb1000;
  --accent-strong: #c70f02;
  --human: #6f4bff;
  --teal: #0a7d75;
  --amber: #b76d12;
  --danger: #b42318;
  --success: #12784c;
  --shadow: 0 24px 72px rgba(24, 20, 20, 0.12);
  --garage-grid: rgba(23, 23, 23, 0.05);
  --pending: #5f6b7a;
  --customer: #0a7d75;
  --internal: #234c8f;
  --administrator: #7a1b6d;
  --agent: #eb1000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink-strong);
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(23, 23, 23, 0.02) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(235, 16, 0, 0.12), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(255, 109, 91, 0.14), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(111, 75, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #fff8f8 0%, #ffffff 42%, #f5f5f7 100%);
  background-size: 28px 28px, 28px 28px, auto, auto, auto, auto;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.app-shell,
.checkin-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.hero-card,
.panel,
.checkin-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 28px;
}

.summit-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.summit-brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 14px);
  gap: 4px;
}

.summit-brand-mark span {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff7c66 100%);
  box-shadow: 0 8px 20px rgba(235, 16, 0, 0.16);
}

.summit-brand-mark span:nth-child(2) {
  opacity: 0.94;
}

.summit-brand-mark span:nth-child(3) {
  opacity: 0.82;
}

.summit-brand-mark span:nth-child(4) {
  opacity: 0.7;
}

.summit-brand-copy {
  display: grid;
  gap: 1px;
}

.summit-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.summit-brand-caption {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(235, 16, 0, 0.1);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.checkin-card h1 {
  margin: 16px 0 12px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 0.98;
}

.hero p,
.checkin-card p,
.muted {
  color: var(--ink-soft);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hero-point,
.stat-card,
.quick-result,
.user-card,
.qr-card,
.success-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.hero-point {
  padding: 14px;
}

.hero-point strong,
.stat-card strong,
.user-card strong,
.success-card strong {
  display: block;
  margin-bottom: 4px;
}

.tab-bar {
  display: inline-flex;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 18px;
}

.tab-button,
.button,
.ghost-button,
.danger-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}

.tab-button {
  padding: 12px 18px;
  color: var(--ink-soft);
  background: transparent;
}

.tab-button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 10px 25px rgba(235, 16, 0, 0.22);
}

.button,
.ghost-button,
.danger-button {
  padding: 12px 16px;
  font-weight: 600;
}

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 12px 24px rgba(235, 16, 0, 0.22);
}

.ghost-button {
  color: var(--accent-strong);
  background: rgba(235, 16, 0, 0.08);
}

.danger-button {
  color: #fff;
  background: linear-gradient(135deg, #d8513b 0%, var(--danger) 100%);
}

.button:hover,
.ghost-button:hover,
.danger-button:hover,
.tab-button:hover {
  transform: translateY(-1px);
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-register {
  grid-template-columns: 1fr;
}

.hero-register .hero-side {
  width: min(760px, 100%);
  margin: 0 auto;
}

.hero-register .hero-card {
  position: relative;
  overflow: hidden;
}

.hero-register .hero-card::after {
  content: '';
  position: absolute;
  inset: auto -12% -25% 45%;
  height: 240px;
  background: radial-gradient(circle, rgba(235, 16, 0, 0.16) 0%, rgba(235, 16, 0, 0) 70%);
  pointer-events: none;
}

.panel {
  padding: 24px;
}

.panel h2,
.panel h3,
.qr-card h3 {
  margin: 0 0 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.form-grid,
.filters-grid,
.scanner-grid {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(83, 97, 112, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-strong);
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(235, 16, 0, 0.16);
  border-color: rgba(235, 16, 0, 0.35);
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(250, 250, 252, 0.88);
}

.mode-switch-option {
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
}

.mode-switch-option.active {
  color: #fff;
  background: linear-gradient(135deg, #141414 0%, #4a4f58 100%);
  box-shadow: 0 16px 28px rgba(20, 20, 20, 0.16);
}

.mode-switch-caption {
  margin-top: 8px;
  font-size: 0.92rem;
}

.subsection-intro {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: linear-gradient(135deg, rgba(235, 16, 0, 0.07) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.emoji-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.emoji-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0;
  border: 1px solid rgba(83, 97, 112, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.65rem;
  box-shadow: none;
}

.emoji-option.selected {
  border-color: rgba(235, 16, 0, 0.45);
  background: rgba(235, 16, 0, 0.1);
  box-shadow: 0 12px 24px rgba(235, 16, 0, 0.12);
}

.emoji-selection {
  font-size: 0.92rem;
}

.status-row,
.meta-row,
.action-row,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.error-banner,
.success-banner,
.scanner-banner {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.error-banner {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.success-banner {
  background: rgba(18, 120, 76, 0.12);
  color: var(--success);
}

.success-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.badge-ticket-grid {
  display: grid;
  gap: 16px;
}

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

.badge-ticket,
.prompt-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 252, 0.94) 100%);
  box-shadow: 0 18px 44px rgba(24, 20, 20, 0.1);
}

.badge-ticket {
  padding: 20px;
}

.badge-ticket::before,
.prompt-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #111111 0%, var(--accent) 46%, var(--human) 100%);
}

.badge-ticket.agent::after,
.badge-ticket.human::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -42px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
}

.badge-ticket.human::after {
  background: radial-gradient(circle, rgba(111, 75, 255, 0.12) 0%, rgba(111, 75, 255, 0) 70%);
}

.badge-ticket.agent::after {
  background: radial-gradient(circle, rgba(235, 16, 0, 0.14) 0%, rgba(235, 16, 0, 0) 70%);
}

.badge-ticket-top,
.prompt-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.badge-ticket-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.06);
  color: #141414;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-ticket-kicker {
  margin-top: 16px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-ticket h3,
.prompt-panel h3 {
  margin: 12px 0 10px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.02;
}

.badge-ticket-strip {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.badge-ticket-qr {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

.badge-ticket-qr img {
  width: min(100%, 280px);
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: #fff;
  box-shadow: 0 20px 40px rgba(24, 20, 20, 0.12);
}

.badge-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prompt-panel {
  margin-top: 18px;
  padding: 20px;
}

.prompt-panel-code {
  margin: 0;
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 18px;
  padding: 14px;
  line-height: 1.6;
}

.scanner-banner {
  background: rgba(10, 125, 117, 0.12);
  color: var(--teal);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 16px;
}

.stat-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

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

.users-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.72fr);
  gap: 18px;
}

.users-list {
  display: grid;
  gap: 12px;
}

.user-card,
.quick-result,
.qr-card,
.success-card {
  padding: 18px;
}

.user-card-header,
.qr-card-header,
.section-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.user-name-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(10, 125, 117, 0.12);
  color: var(--teal);
  flex-shrink: 0;
}

.avatar.agent {
  background: rgba(199, 119, 0, 0.15);
  color: var(--agent);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(95, 107, 122, 0.12);
  color: var(--pending);
}

.role-badge.human {
  color: var(--human);
  background: rgba(111, 75, 255, 0.12);
}

.role-badge.customer {
  color: var(--customer);
  background: rgba(10, 125, 117, 0.12);
}

.role-badge.internal {
  color: var(--internal);
  background: rgba(35, 76, 143, 0.12);
}

.role-badge.administrator {
  color: var(--administrator);
  background: rgba(122, 27, 109, 0.12);
}

.role-badge.agent {
  color: var(--agent);
  background: rgba(235, 16, 0, 0.1);
}

.role-badge svg {
  width: 14px;
  height: 14px;
}

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

.meta-item span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.attendance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.attendance-pill.present {
  color: var(--success);
  background: rgba(18, 120, 76, 0.12);
}

.attendance-pill.absent {
  color: var(--ink-soft);
  background: rgba(83, 97, 112, 0.12);
}

.qr-card img {
  width: min(100%, 320px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 16px;
}

.pass-qr {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

.pass-qr img {
  width: min(100%, 320px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 16px;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed rgba(83, 97, 112, 0.3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
}

.checkin-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkin-shell {
  width: min(760px, calc(100vw - 32px));
  padding: 24px 0;
}

.checkin-card {
  padding: 28px;
}

.checkin-card .action-row {
  margin-top: 18px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body.checkin-page-body {
  color: #1a1a1a;
  background:
    radial-gradient(circle at top left, rgba(235, 16, 0, 0.14), transparent 26%),
    radial-gradient(circle at 92% 8%, rgba(255, 126, 106, 0.12), transparent 18%),
    linear-gradient(180deg, #fff6f6 0%, #ffffff 46%, #f3f4f6 100%);
}

body.checkin-page-body .checkin-shell {
  width: min(1180px, calc(100vw - 40px));
  padding: 44px 0 64px;
}

body.checkin-page-body .checkin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 28px;
  align-items: stretch;
}

body.checkin-page-body .checkin-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.94) 100%);
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 28px 80px rgba(20, 16, 16, 0.12);
  backdrop-filter: blur(14px);
}

body.checkin-page-body .checkin-card h1,
body.checkin-page-body .checkin-card strong {
  color: #151515;
}

body.checkin-page-body .checkin-card p,
body.checkin-page-body .checkin-card span,
body.checkin-page-body .meta-item span,
body.checkin-page-body .muted {
  color: #5f636b;
}

body.checkin-page-body .checkin-card {
  padding: 40px;
}

.summit-eyebrow {
  background: rgba(235, 16, 0, 0.08);
  color: #c70f02;
  border: 1px solid rgba(235, 16, 0, 0.14);
}

.summit-lead {
  max-width: 36rem;
  font-size: 1.06rem;
  line-height: 1.7;
}

.summit-note,
.summit-highlight,
.summit-banner,
.status-pill {
  border-radius: 22px;
  border: 1px solid rgba(23, 23, 23, 0.08);
}

.summit-note {
  margin-top: 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(235, 16, 0, 0.08) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.summit-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.summit-highlight {
  padding: 18px;
  background: rgba(250, 250, 251, 0.96);
}

.summit-highlight span {
  display: block;
  margin-top: 6px;
  line-height: 1.55;
}

.summit-pass-card {
  display: grid;
  align-content: start;
}

.public-pass-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.public-pass-title {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.05;
}

.summit-banner,
body.checkin-page-body .scanner-banner {
  background: rgba(235, 16, 0, 0.08);
  color: #a41308;
}

body.checkin-page-body .error-banner {
  background: rgba(235, 16, 0, 0.08);
  color: #a41308;
}

.pass-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  margin: 18px 0 24px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background:
    radial-gradient(circle at top, rgba(235, 16, 0, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(250, 250, 251, 0.92) 0%, rgba(255, 255, 255, 1) 100%);
}

.pass-glow {
  position: absolute;
  inset: auto auto 28px 50%;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 16, 0, 0.18) 0%, rgba(235, 16, 0, 0) 72%);
  filter: blur(16px);
}

body.checkin-page-body .pass-qr {
  position: relative;
  z-index: 1;
  margin: 0;
}

body.checkin-page-body .pass-qr img {
  width: min(100%, 380px);
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(235, 16, 0, 0.16);
  background: #fff;
  box-shadow: 0 24px 60px rgba(27, 22, 22, 0.14);
}

.summit-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(235, 16, 0, 0.08);
  color: #a41308;
}

.summit-caption {
  font-size: 0.95rem;
}

.summit-meta-grid {
  margin-top: 18px;
}

body.checkin-page-body .meta-item {
  padding: 18px;
  border-radius: 20px;
  background: rgba(250, 250, 251, 0.96);
  border: 1px solid rgba(23, 23, 23, 0.07);
}

body.checkin-page-body .mono,
body.checkin-page-body .meta-item div {
  color: #151515;
}

@media (max-width: 980px) {
  .hero,
  .users-layout {
    grid-template-columns: 1fr;
  }

  .badge-ticket-grid.dual,
  body.checkin-page-body .checkin-layout,
  .summit-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell,
  .checkin-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 20px;
  }

  .hero-copy,
  .panel,
  .checkin-card {
    padding: 20px;
  }

  .form-grid,
  .filters-grid,
  .scanner-grid,
  .hero-points,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  body.checkin-page-body .checkin-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 20px;
  }

  body.checkin-page-body .checkin-card {
    padding: 24px;
  }

  .pass-stage {
    min-height: 320px;
  }

  body.checkin-page-body .pass-qr img {
    width: min(100%, 300px);
    padding: 16px;
  }

  .mode-switch,
  .badge-ticket-grid.dual {
    grid-template-columns: 1fr;
  }

  .badge-ticket-top,
  .prompt-panel-header,
  .public-pass-head,
  .user-card-header,
  .qr-card-header,
  .section-header {
    flex-direction: column;
  }

  .emoji-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
