@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

@font-face {
  font-family: tedx-display;
  src: url('/fonts/tedx-display.ttf');
}

:root {
  --bg: #000000;
  --surface: #0b0b0b;
  --surface-2: #121212;
  --surface-3: #1a1a1a;
  --text: #f5f5f5;
  --muted: #a6a6a6;
  --accent: #eb0028;
  --accent-2: #ff2f52;
  --success: #18a957;
  --danger: #d43f3f;
  --warning: #f4b000;
  --border: #232323;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 3rem;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container,
.header-container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.main-content {
  flex: 1;
  padding: var(--space-7) 0;
}

.stack-md > * + * {
  margin-top: var(--space-5);
}

.stack-lg > * + * {
  margin-top: var(--space-7);
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* TEDx header */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
}

.logo-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-logo-link {
  display: inline-flex;
}

.logo-img {
  width: 190px;
  height: auto;
}

.logo-subtitle {
  margin: 0;
  color: #f3f3f3;
  font-size: 0.62rem;
  letter-spacing: 0.2px;
}

.logo-subtitle strong {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #2d2d2d;
  background: #101010;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-icon-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.nav-menu {
  display: flex;
  border-top: 1px solid var(--border);
  background: #101010;
  padding: var(--space-3) var(--space-4) var(--space-4);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.nav-menu.open {
  display: flex;
}

.nav-link {
  color: #f1f1f1;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: #1d1d1d;
  color: #fff;
}

.ticket-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.ticket-button:hover {
  background: var(--accent-2);
}

/* Footer */
.tedx-unique-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #060606, #000);
  padding: var(--space-7) 0 var(--space-5);
}

.tedx-unique-wrapper {
  display: grid;
  gap: var(--space-5);
}

.tedx-unique-main-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}

.tedx-unique-logo {
  width: 180px;
}

.tedx-unique-event-subtitle,
.tedx-unique-contact-detail,
.tedx-unique-legal-info {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.35rem 0;
}

.tedx-unique-event-subtitle strong,
.tedx-unique-highlight {
  color: var(--accent);
}

.tedx-unique-social-icons {
  display: flex;
  gap: var(--space-2);
}

.tedx-unique-social-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #373737;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f2f2f2;
  font-size: 0.75rem;
}

.tedx-unique-separator {
  border: 0;
  border-top: 1px solid var(--border);
  width: 100%;
}

.tedx-footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tedx-footer-link {
  color: #dedede;
  font-size: 0.9rem;
}

.tedx-footer-sep {
  color: #555;
}

/* Page content */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.page-title {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.page-subtitle {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  max-width: 760px;
}

.section-title {
  margin: 0 0 var(--space-3);
  font-size: 1.1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.7));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  padding: clamp(1.5rem, 5vw, 3rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/tedx/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.25;
  transform: scale(1.06);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-family: tedx-display, 'Inter', sans-serif;
  letter-spacing: 0.5px;
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.hero p {
  margin: 0;
  color: #d4d4d4;
  max-width: 760px;
}

.card {
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.98), rgba(17, 17, 17, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.card-muted {
  background: #0f0f0f;
  border: 1px solid #202020;
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.kpi-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #0d0d0d;
  padding: var(--space-4);
}

.kpi-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.kpi-value {
  margin-top: var(--space-2);
  font-size: 1.35rem;
  font-weight: 700;
}

.btn,
.btn-secondary,
.btn-ghost,
.btn-danger {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.95rem;
  text-decoration: none;
  font-size: 0.94rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn {
  background: var(--accent);
  color: #fff;
}

.btn:hover {
  background: var(--accent-2);
}

.btn-secondary {
  background: #1b1b1b;
  border-color: #2a2a2a;
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #404040;
}

.btn-ghost {
  background: transparent;
  border-color: #303030;
  color: var(--text);
}

.btn-danger {
  background: #4f1618;
  border-color: #652022;
  color: #ffd9d9;
}

.form-grid {
  display: grid;
  gap: var(--space-3);
}

label {
  display: block;
  margin-bottom: var(--space-2);
  color: #d7d7d7;
  font-size: 0.9rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid #2c2c2c;
  background: #0b0b0b;
  color: var(--text);
  padding: 0.62rem 0.7rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #5b5b5b;
}

.form-help {
  color: var(--muted);
  font-size: 0.82rem;
}

.alert {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.64rem 0.8rem;
  font-size: 0.92rem;
}

.alert-success {
  background: #0f2a1b;
  border-color: #1f5f3b;
  color: #c5f4d9;
}

.alert-error {
  background: #311719;
  border-color: #6a2a2d;
  color: #ffd6d8;
}

.alert-info {
  background: #171f31;
  border-color: #24395f;
  color: #d8e6ff;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 0.62rem;
  vertical-align: top;
  font-size: 0.92rem;
}

.table th {
  color: #d0d0d0;
  font-weight: 600;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.75rem;
  background: #1c1c1c;
  border: 1px solid #2d2d2d;
}

.badge-accent {
  background: #3a1315;
  border-color: #572024;
  color: #ffd5d8;
}

.badge-success {
  background: #11301f;
  border-color: #1f5f3b;
  color: #bff0d3;
}

.badge-warn {
  background: #3a2c12;
  border-color: #60461a;
  color: #ffe8ba;
}

.empty-state {
  border: 1px dashed #353535;
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  color: var(--muted);
}

.auth-shell {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(460px, 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.pricing-card {
  border: 1px solid #292929;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: linear-gradient(180deg, #101010, #0a0a0a);
}

.pricing-card.active-category {
  border-color: #6a2327;
  box-shadow: 0 0 0 1px #6a2327;
}

.pricing-card.highlight {
  border-color: rgba(235, 0, 40, 0.65);
  box-shadow: 0 18px 60px rgba(235, 0, 40, 0.09);
}

.price-tag {
  margin: var(--space-3) 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.actions-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.feature-list {
  margin: 0 0 var(--space-3);
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.3rem;
}

.category-info-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(235, 0, 40, 0.22);
  background: rgba(235, 0, 40, 0.1);
  color: #ffd5dc;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.pricing-cta {
  margin-top: var(--space-4);
}

.pricing-accent {
  border-color: #6a2327;
}

.pricing-outline {
  border-style: dashed;
}

.selected-category {
  outline: 1px solid #883236;
}

.speaker-showcase {
  display: grid;
  gap: var(--space-5);
}

.speaker-feature-card {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: var(--space-5);
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: linear-gradient(135deg, #101010, #060606);
}

.speaker-feature-card.reverse {
  grid-template-columns: 1fr 0.78fr;
}

.speaker-feature-card.reverse .speaker-feature-image {
  order: 2;
}

.speaker-feature-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.speaker-feature-copy h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--surface-2);
}

.ticket-summary-grid,
.ticket-category-list {
  display: grid;
  gap: var(--space-4);
}

.ticket-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ticket-summary-card,
.ticket-category-panel {
  border: 1px solid #292929;
  border-radius: var(--radius-md);
  background: #0f0f0f;
  padding: var(--space-4);
}

.ticket-category-panel {
  background: linear-gradient(180deg, #101010, #090909);
}

.ticket-price-option {
  border: 1px solid #252525;
  border-radius: var(--radius-sm);
  background: #0b0b0b;
  padding: var(--space-3);
}

.ticket-price-option strong {
  display: block;
  margin-bottom: var(--space-2);
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.dashboard-center-card {
  text-align: center;
}

.dashboard-center-card .ticket-head {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.dashboard-center-card .ticket-head > div {
  display: grid;
  justify-items: center;
}

.quick-entry-content {
  max-width: 760px;
  margin-inline: auto;
  align-items: center;
  text-align: center;
}

.quick-entry-content > div {
  display: grid;
  justify-items: center;
}

.ticket-area-card .ticket-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 340px));
  justify-content: center;
}

.ticket-area-card .ticket-summary-card {
  text-align: center;
}

.ticket-area-card .grid-3 {
  justify-items: center;
}

.ticket-qr {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: inline-flex;
  padding: var(--space-2);
  background: #fff;
}

.ticket-qr img {
  width: 180px;
  height: 180px;
}

.inline-user-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-2);
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.checkbox-inline input {
  width: auto;
}

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

.scanner-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.scanner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.qr-reader {
  width: 100%;
  max-width: 360px;
}

#qr-reader {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.demo-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--surface);
}

.loader {
  width: 38px;
  height: 38px;
  border: 3px solid #2f2f2f;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loader-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

@media (max-width: 860px) {
  .main-content {
    padding-top: var(--space-5);
  }

  .logo-img {
    width: 160px;
  }

  .nav-menu {
    display: none;
    justify-content: flex-start;
    align-items: stretch;
    padding: var(--space-4) var(--space-4) var(--space-5);
    flex-direction: column;
  }

  .menu-button {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .scanner-form {
    grid-template-columns: 1fr;
  }
}

.tedx-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.tedx-person-card {
  overflow: hidden;
  padding: 0;
}

.tedx-person-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.tedx-person-body {
  padding: var(--space-4);
}

.tedx-person-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.tedx-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5);
}

.tedx-image-stack {
  display: grid;
  gap: var(--space-3);
}

.tedx-image-stack img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  height: 220px;
  object-fit: cover;
}

.sponsor-strip {
  min-height: 120px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: #090909;
}

.sponsor-logo {
  max-width: 240px;
  width: 100%;
  object-fit: contain;
}

.error-shell {
  min-height: 54vh;
  display: grid;
  place-items: center;
}

.error-card {
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.error-title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4.5rem);
  line-height: 1;
  font-family: tedx-display, 'Inter', sans-serif;
  letter-spacing: 0;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.profile-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dashboard-sidebar {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  align-items: start;
}

.sidebar-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  align-items: start;
}

.sidebar-link {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 0.75rem;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--muted);
  background: var(--surface-2);
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.sidebar-link i {
  width: 1rem;
  text-align: center;
  flex: 0 0 1rem;
}

.sidebar-link span {
  min-width: 0;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #fff;
  border-color: rgba(235, 0, 40, 0.52);
  background: rgba(235, 0, 40, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .tedx-split {
    grid-template-columns: 1fr;
  }

  .speaker-feature-card,
  .speaker-feature-card.reverse {
    grid-template-columns: 1fr;
  }

  .speaker-feature-card.reverse .speaker-feature-image {
    order: 0;
  }
}

/* Production UX layer */
.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-wide {
  width: 100%;
  min-height: 48px;
}

.subtle-link {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-experience {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 460px);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: stretch;
}

.auth-story-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 4vw, 2.5rem);
  background:
    linear-gradient(135deg, rgba(235, 0, 40, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
}

.auth-story-panel h1,
.auth-title {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-story-panel h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.auth-story-panel p {
  color: #d8d8d8;
  max-width: 620px;
}

.auth-card {
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.trust-list {
  display: grid;
  gap: 0.75rem;
}

.trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #f4f4f4;
}

.trust-list i,
.journey-icon,
.empty-icon {
  color: var(--accent-2);
}

.input-with-action {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid #2c2c2c;
  border-radius: var(--radius-sm);
  background: #0b0b0b;
}

.input-with-action:focus-within {
  border-color: #5b5b5b;
}

.input-with-action input {
  border: 0;
  background: transparent;
}

.input-with-action button {
  border: 0;
  background: transparent;
  color: var(--accent-2);
  padding: 0 0.75rem;
  cursor: pointer;
}

.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.compact-check {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.welcome-panel,
.admin-command-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: center;
  border: 1px solid rgba(235, 0, 40, 0.24);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(235, 0, 40, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(12, 12, 12, 0.92);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

.welcome-panel h2,
.admin-command-panel h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.welcome-panel p,
.admin-command-panel p {
  color: var(--muted);
  max-width: 760px;
}

.event-mini-card {
  display: grid;
  gap: 0.25rem;
  min-width: 230px;
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.event-mini-card strong {
  font-size: 1.2rem;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}

.journey-card {
  display: grid;
  gap: 0.65rem;
  min-height: 150px;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.journey-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.journey-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(235, 0, 40, 0.12);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: fit-content;
  border-radius: 999px;
  padding: 0.28rem 0.64rem;
  border: 1px solid #333;
  background: #181818;
  color: #f2f2f2;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: currentColor;
}

.status-paid,
.status-captured,
.status-ticket_issued,
.status-issued,
.status-active,
.status-checked_in {
  border-color: rgba(24, 169, 87, 0.42);
  background: rgba(24, 169, 87, 0.12);
  color: #bff0d3;
}

.status-pending,
.status-created {
  border-color: rgba(244, 176, 0, 0.42);
  background: rgba(244, 176, 0, 0.12);
  color: #ffe4a3;
}

.status-failed,
.status-cancelled,
.status-expired,
.status-inactive {
  border-color: rgba(212, 63, 63, 0.48);
  background: rgba(212, 63, 63, 0.14);
  color: #ffd1d1;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 0, 40, 0.35);
  background: rgba(235, 0, 40, 0.1);
  font-weight: 800;
}

.registration-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: var(--space-5);
  align-items: start;
}

.registration-shell-full {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
}

.registration-form-card {
  width: 100%;
  max-width: none;
}

.registration-aside {
  position: sticky;
  top: 112px;
}

.registration-aside h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.price-stack {
  display: grid;
  gap: 0.7rem;
}

.price-stack div,
.order-summary-card div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.65rem;
}

.price-stack span,
.order-summary-card span {
  color: var(--muted);
}

.secure-note {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: #dcdcdc;
  font-size: 0.9rem;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.wizard-progress span {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  color: var(--muted);
  background: #0c0c0c;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
}

.wizard-progress span.is-active,
.wizard-progress span.is-complete {
  color: #fff;
  border-color: rgba(235, 0, 40, 0.52);
  background: rgba(235, 0, 40, 0.12);
}

.wizard-step {
  display: grid;
  gap: var(--space-4);
  animation: wizardSlideInForward 280ms ease both;
  will-change: transform, opacity;
}

.wizard-step[hidden] {
  display: none !important;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.order-summary-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid rgba(235, 0, 40, 0.25);
  border-radius: var(--radius-md);
  background: rgba(235, 0, 40, 0.08);
}

.payment-loading-overlay,
.qr-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 2147483000;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(10px);
}

.payment-is-loading .payment-loading-overlay,
.qr-modal {
  display: grid;
}

.payment-loading-overlay > div,
.payment-loading-overlay > p,
.qr-modal-card {
  position: relative;
}

.payment-loading-overlay p {
  margin-top: 4.5rem;
  color: #fff;
  font-weight: 700;
}

.qr-preview-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.qr-modal-card {
  width: min(92vw, 420px);
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: #101010;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5);
}

.qr-modal-card img {
  width: min(72vw, 300px);
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.qr-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #181818;
  color: #fff;
  cursor: pointer;
}

.filter-card form {
  align-items: end;
}

.admin-command-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.scanner-hero,
.scanner-workspace {
  border-color: rgba(235, 0, 40, 0.24);
}

.scanner-camera-panel,
.scanner-live-card,
.scanner-result-card {
  min-height: 280px;
}

.field-needs-attention input,
.field-needs-attention select {
  border-color: var(--accent);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wizardSlideInForward {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wizardSlideInBack {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 860px) {
  .auth-experience,
  .registration-shell,
  .welcome-panel,
  .admin-command-panel {
    grid-template-columns: 1fr;
  }

  .auth-story-panel,
  .registration-aside {
    min-height: auto;
    position: static;
  }

  .wizard-progress {
    grid-template-columns: 1fr;
  }

  .wizard-actions,
  .admin-command-actions {
    justify-content: stretch;
  }

  .wizard-actions .btn,
  .wizard-actions .btn-secondary,
  .admin-command-actions .btn,
  .admin-command-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .event-mini-card {
    min-width: 0;
  }
}

/* Premium product refresh */

body {
  background:
    radial-gradient(circle at top, rgba(235, 0, 40, 0.18), transparent 32%),
    linear-gradient(180deg, #040404 0%, #090909 42%, #050505 100%);
  color: #f7f7f8;
}

.container,
.header-container {
  width: min(1240px, calc(100% - 1.5rem));
}

.main-content {
  padding: 2rem 0 4rem;
}

.card,
.card-muted,
.kpi-card,
.ticket-category-panel,
.empty-state,
.auth-card,
.dashboard-sidebar,
.admin-command-panel,
.welcome-panel,
.scanner-live-result-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(23, 23, 23, 0.92), rgba(11, 11, 11, 0.95));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.card,
.card-muted,
.auth-card,
.ticket-category-panel,
.empty-state,
.welcome-panel,
.admin-command-panel {
  border-radius: 20px;
}

.card,
.card-muted,
.auth-card,
.ticket-category-panel,
.empty-state,
.kpi-card {
  padding: 1.35rem;
}

.ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ticket-head h2,
.ticket-head h3,
.ticket-head h4,
.section-title {
  margin: 0;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 0.25rem 0 0.5rem;
}

.page-header-copy {
  max-width: 760px;
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.page-subtitle {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
}

.page-header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn,
.btn-secondary,
.desktop-ticket-btn,
.ticket-button,
.mob-ticket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.btn,
.desktop-ticket-btn,
.ticket-button,
.mob-ticket-btn {
  background: linear-gradient(135deg, #eb0028, #ff355e);
  box-shadow: 0 12px 34px rgba(235, 0, 40, 0.28);
}

.btn:hover,
.desktop-ticket-btn:hover,
.ticket-button:hover,
.mob-ticket-btn:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f7f7f8;
}

.btn[disabled],
.btn-secondary[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.alert {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(24, 169, 87, 0.12);
  border-color: rgba(24, 169, 87, 0.25);
}

.alert-error {
  background: rgba(212, 63, 63, 0.13);
  border-color: rgba(212, 63, 63, 0.24);
}

.alert-info {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.status-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 32px;
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-badge {
  background: rgba(255, 255, 255, 0.04);
}

.status-pending,
.status-created,
.badge-warn {
  color: #ffd37b;
  background: rgba(244, 176, 0, 0.12);
  border-color: rgba(244, 176, 0, 0.18);
}

.status-paid,
.status-captured,
.status-checked_in,
.status-issued,
.status-ticket_issued,
.badge-success {
  color: #8ee2ad;
  background: rgba(24, 169, 87, 0.12);
  border-color: rgba(24, 169, 87, 0.2);
}

.status-failed,
.status-cancelled,
.status-invalid {
  color: #ff9696;
  background: rgba(212, 63, 63, 0.12);
  border-color: rgba(212, 63, 63, 0.2);
}

.status-active,
.status-success,
.status-already_checked_in,
.badge-accent {
  color: #ffc8d1;
  background: rgba(235, 0, 40, 0.12);
  border-color: rgba(235, 0, 40, 0.22);
}

.status-expired,
.status-inactive {
  color: #c7cad1;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

select option {
  color: #111;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 47, 82, 0.55);
  box-shadow: 0 0 0 4px rgba(235, 0, 40, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.form-help {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  line-height: 1.5;
}

.input-with-action {
  position: relative;
}

.input-with-action button {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  cursor: pointer;
}

.auth-shell,
.registration-shell,
.dashboard-grid,
.scanner-grid,
.welcome-panel,
.admin-command-panel {
  display: grid;
  gap: 1.25rem;
}

.auth-experience,
.registration-shell,
.dashboard-grid,
.admin-command-panel {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.auth-story-panel,
.registration-aside {
  position: sticky;
  top: 112px;
  align-self: start;
  min-height: 420px;
  border-radius: 22px;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(235, 0, 40, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(19, 19, 19, 0.98), rgba(7, 7, 7, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.auth-story-panel h1,
.registration-aside h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.auth-story-panel p,
.registration-aside p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.auth-highlight-card,
.inline-info-card,
.hero-meta-card,
.event-mini-card,
.analytics-card {
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-highlight-card strong,
.hero-meta-card strong,
.event-mini-card strong,
.inline-info-card strong,
.analytics-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
}

.trust-list {
  display: grid;
  gap: 0.8rem;
}

.trust-list span,
.payment-trust-line {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.82);
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.wizard-progress span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.wizard-progress span.is-active,
.wizard-progress span.is-complete {
  color: #fff;
  background: rgba(235, 0, 40, 0.13);
  border-color: rgba(235, 0, 40, 0.2);
}

.wizard-step {
  display: grid;
  gap: 1.2rem;
  animation: wizardSlideInForward 280ms ease both;
  will-change: transform, opacity;
}

.registration-wizard {
  overflow-x: hidden;
}

.registration-wizard[data-step-direction="back"] .wizard-step.is-active {
  animation-name: wizardSlideInBack;
}

.wizard-step[hidden] {
  display: none !important;
}

.wizard-intro h3 {
  font-size: 1.45rem;
}

.wizard-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.sticky-action-bar {
  position: sticky;
  bottom: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(9, 9, 9, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.category-selector-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.ticket-summary-grid,
.analytics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 768px) {
  .category-selector-grid {
    grid-template-columns: 1fr;
  }
}

.category-selector-card,
.premium-category-card {
  display: block;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(7, 7, 7, 0.92);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category-selector-card:hover,
.premium-category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(235, 0, 40, 0.3);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
}

.category-selector-card.selected,
.premium-category-card.has-ticket {
  border-color: rgba(235, 0, 40, 0.35);
  box-shadow: 0 20px 48px rgba(235, 0, 40, 0.1);
}

.price-stack,
.info-list {
  display: grid;
  gap: 0.9rem;
}

.price-stack > div,
.info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.price-stack > div:last-child,
.info-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-list span,
.price-stack span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.info-list strong,
.price-stack strong {
  text-align: right;
}

.info-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.inline-info-grid,
.hero-meta-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.aside-timeline {
  display: grid;
  gap: 0.9rem;
}

.aside-timeline > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.aside-timeline span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(235, 0, 40, 0.16);
  color: #fff;
  font-weight: 700;
}

.order-summary-card {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.order-summary-card > div {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.order-summary-card span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
}

.summary-total {
  background: rgba(235, 0, 40, 0.1) !important;
  border-color: rgba(235, 0, 40, 0.2) !important;
}

.dashboard-sidebar {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  align-items: start;
}

.sidebar-header {
  padding: 0.45rem 0.35rem 0.9rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  margin-right: 0.2rem;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.sidebar-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
  align-content: start;
  align-items: start;
}

.sidebar-link {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(235, 0, 40, 0.34);
  transform: translateY(-1px);
}

.sidebar-link i {
  width: 1rem;
  text-align: center;
  flex: 0 0 1rem;
}

.sidebar-link span {
  min-width: 0;
}

.premium-hero-panel {
  padding: 1.4rem;
  border-radius: 22px;
}

.welcome-panel,
.admin-command-panel {
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  align-items: stretch;
}

.hero-chip-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.premium-next-step {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.85fr);
  align-items: start;
}

.summary-card {
  border-radius: 18px;
}

.ticket-focus-card .quick-entry-content {
  align-items: center;
}

.qr-preview-surface {
  width: 100%;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.activity-list {
  display: grid;
  gap: 0.8rem;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.activity-item strong,
.activity-item p {
  margin: 0;
}

.activity-item p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

.activity-meta {
  display: grid;
  justify-items: end;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(14, 14, 14, 0.95);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.table tr:last-child td {
  border-bottom: 0;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.scanner-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
}

.qr-reader {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0b0b;
}

.scanner-live-result-card,
.scanner-result-card {
  min-height: 100%;
}

.empty-state {
  text-align: left;
}

.empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(235, 0, 40, 0.12);
  color: #fff;
}

.empty-state h3 {
  margin: 0 0 0.4rem;
}

.empty-state p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.62);
}

.kpi-card {
  border-radius: 18px;
}

.kpi-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.kpi-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.kpi-value {
  margin: 1rem 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
}

.kpi-trend {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.kpi-success .kpi-icon {
  background: rgba(24, 169, 87, 0.14);
  color: #8ee2ad;
}

.kpi-warning .kpi-icon {
  background: rgba(244, 176, 0, 0.14);
  color: #ffd37b;
}

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

.payment-loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(0, 0, 0, 0.82);
  z-index: 999;
}

.payment-is-loading .payment-loading-overlay {
  display: flex;
}

.loader {
  width: 54px;
  height: 54px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #eb0028;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@media (max-width: 1080px) {
  .auth-experience,
  .registration-shell,
  .dashboard-grid,
  .admin-command-panel {
    grid-template-columns: 1fr;
  }

  .auth-story-panel,
  .registration-aside {
    position: static;
    min-height: auto;
  }

  .dashboard-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-header {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-right: 0;
    padding-bottom: 0.9rem;
  }
}

@media (max-width: 860px) {
  .page-header,
  .welcome-panel,
  .admin-command-panel,
  .scanner-grid {
    grid-template-columns: 1fr;
  }

  .page-header-actions,
  .wizard-actions,
  .actions-row,
  .admin-command-actions {
    width: 100%;
  }

  .page-header-actions > *,
  .wizard-actions > *,
  .actions-row > *,
  .admin-command-actions > * {
    flex: 1 1 100%;
  }

  .sticky-action-bar {
    bottom: 0.5rem;
  }

  .table {
    min-width: 560px;
  }
}

@media (max-width: 640px) {
  .container,
  .header-container {
    width: min(100%, calc(100% - 1rem));
  }

  .main-content {
    padding-top: 1.25rem;
  }

  .page-title {
    font-size: 1.9rem;
  }

  .auth-story-panel,
  .card,
  .card-muted,
  .auth-card,
  .ticket-category-panel,
  .empty-state,
  .kpi-card,
  .premium-hero-panel {
    padding: 1rem;
    border-radius: 18px;
  }

  .wizard-progress {
    grid-template-columns: 1fr;
  }

  .category-selector-grid,
  .ticket-summary-grid,
  .analytics-grid,
  .order-summary-card,
  .hero-meta-grid,
  .inline-info-grid {
    grid-template-columns: 1fr;
  }

  .table {
    min-width: 0;
  }

  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    padding: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .table td {
    padding: 0.4rem 0;
    border: 0;
  }
}

/* Dashboard navigation refresh */

.dashboard-sidebar {
  position: sticky;
  top: 96px;
  z-index: 30;
  overflow: hidden;
  padding: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(235, 0, 40, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(19, 19, 19, 0.96), rgba(8, 8, 8, 0.98));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.dashboard-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%);
  pointer-events: none;
}

.sidebar-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) minmax(180px, 230px);
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sidebar-brand-mark {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(235, 0, 40, 0.2), rgba(235, 0, 40, 0.06));
  border: 1px solid rgba(235, 0, 40, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-brand-mark span {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.sidebar-brand-copy {
  min-width: 0;
}

.sidebar-brand-copy .eyebrow {
  margin-bottom: 0.3rem;
}

.sidebar-brand-copy h2 {
  margin: 0;
  font-size: 1.18rem;
}

.sidebar-brand-copy .form-help {
  margin-top: 0.25rem;
  font-size: 0.88rem;
}

.sidebar-nav {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.sidebar-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.sidebar-link i {
  width: 1rem;
  text-align: center;
  flex: 0 0 1rem;
  color: rgba(255, 255, 255, 0.86);
}

.sidebar-link span {
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
}

.sidebar-link:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(235, 0, 40, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-link.active {
  color: #fff;
  border-color: rgba(235, 0, 40, 0.3);
  background: linear-gradient(135deg, rgba(235, 0, 40, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow:
    0 10px 24px rgba(235, 0, 40, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-meta {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.sidebar-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.sidebar-role-badge {
  border-color: rgba(235, 0, 40, 0.22);
  color: #ffd2da;
  background: rgba(235, 0, 40, 0.1);
}

@media (max-width: 1200px) {
  .sidebar-shell {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .sidebar-nav {
    justify-content: flex-start;
  }

  .sidebar-meta {
    justify-items: start;
    grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
  }
}

@media (max-width: 860px) {
  .dashboard-sidebar {
    top: 82px;
    border-radius: 20px;
  }

  .sidebar-shell {
    padding: 1rem;
  }

  .sidebar-header {
    align-items: flex-start;
  }

  .sidebar-nav {
    justify-content: stretch;
  }

  .sidebar-link {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .dashboard-sidebar {
    position: static;
  }

  .sidebar-header {
    gap: 0.85rem;
  }

  .sidebar-brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sidebar-link,
  .sidebar-meta-badge {
    width: 100%;
  }

  .sidebar-meta {
    grid-template-columns: 1fr;
  }
}

/* Real dashboard sidebar */

.dashboard-frame {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-sidebar {
  display: block;
  grid-template-columns: none;
  position: sticky;
  top: 94px;
  width: 100%;
  padding: 0;
  z-index: 20;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(235, 0, 40, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(19, 19, 19, 0.96), rgba(8, 8, 8, 0.98));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.sidebar-shell {
  display: block;
  grid-template-columns: none;
  position: relative;
  padding: 0.9rem;
}

.sidebar-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
}

.sidebar-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(235, 0, 40, 0.2), rgba(235, 0, 40, 0.06));
  border: 1px solid rgba(235, 0, 40, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-brand-mark span {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.sidebar-brand-copy h2 {
  margin: 0;
  font-size: 1.08rem;
}

.sidebar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 0.1rem;
}

.sidebar-nav > * {
  flex: 0 0 auto;
}

.sidebar-link {
  width: auto;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.06);
}

.sidebar-link.active {
  background: linear-gradient(180deg, rgba(235, 0, 40, 0.14), rgba(255, 255, 255, 0.03));
  border-color: rgba(235, 0, 40, 0.2);
  color: #fff;
}

.sidebar-link i {
  width: 1rem;
  text-align: center;
  flex: 0 0 1rem;
  color: rgba(255, 255, 255, 0.86);
}

.sidebar-link span {
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
}

.sidebar-meta {
  display: grid;
  gap: 0.55rem;
}

.sidebar-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 34px;
  padding: 0.55rem 0.85rem;
  justify-content: flex-start;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.sidebar-role-badge {
  border-color: rgba(235, 0, 40, 0.22);
  color: #ffd2da;
  background: rgba(235, 0, 40, 0.1);
}

@media (max-width: 980px) {
  .dashboard-frame {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    top: 82px;
  }

  .sidebar-shell {
    padding: 0.8rem;
  }

  .sidebar-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(235, 0, 40, 0.4) transparent;
  }

  .sidebar-nav::-webkit-scrollbar {
    height: 6px;
  }

  .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(235, 0, 40, 0.35);
    border-radius: 999px;
  }

  .sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
  }
}
