/* ==========================================================================
   EVENT ENTRY MANAGEMENT SYSTEM - DESIGN SYSTEM & STYLESHEET
   Clean, modern, premium SaaS administration interface
   ========================================================================== */

:root {
  /* Color Palette - Curated Slate, Royal Blue & Status Colors */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;

  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  --navy-500: #64748b;
  --navy-400: #94a3b8;
  --navy-300: #cbd5e1;
  --navy-200: #e2e8f0;
  --navy-100: #f1f5f9;
  --navy-50: #f8fafc;

  --white: #ffffff;
  
  --success-50: #f0fdf4;
  --success-100: #dcfce7;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --success-700: #15803d;

  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;

  --danger-50: #fef2f2;
  --danger-100: #fee2e2;
  --danger-500: #ef4444;
  --danger-600: #dc2626;
  --danger-700: #b91c1c;

  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-600: #9333ea;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Layout dimensions */
  --sidebar-width: 260px;
  --header-height: 70px;
}

/* Base Reset & Standards */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-family);
  background-color: var(--navy-50);
  color: var(--navy-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--primary-800);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   App Layout (Sidebar + Main Content)
   -------------------------------------------------------------------------- */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--white);
  border-right: 1px solid var(--navy-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  transition: transform 0.25s ease;
}

.sidebar-header {
  height: var(--header-height);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--navy-100);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.2;
}
.brand-text span {
  font-size: 0.75rem;
  color: var(--navy-500);
  font-weight: 500;
}

.sidebar-nav {
  padding: 1.25rem 0.875rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-400);
  padding: 0.75rem 0.75rem 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  color: var(--navy-600);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.nav-link:hover {
  background-color: var(--navy-100);
  color: var(--navy-900);
}

.nav-link.active {
  background-color: var(--primary-50);
  color: var(--primary-700);
  font-weight: 600;
}

.nav-link i, .nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--navy-100);
  background: var(--navy-50);
}

.event-pill {
  padding: 0.625rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.event-pill-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-pill-meta {
  font-size: 0.725rem;
  color: var(--navy-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Main Area */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-navbar {
  height: var(--header-height);
  background-color: var(--white);
  border-bottom: 1px solid var(--navy-200);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--navy-500);
}
.page-breadcrumb .current {
  color: var(--navy-900);
  font-weight: 600;
}

.top-navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy-700);
  border-radius: var(--radius-sm);
}
.mobile-menu-btn:hover {
  background-color: var(--navy-100);
}

.main-content {
  padding: 2rem;
  flex: 1;
}

/* --------------------------------------------------------------------------
   Typography & Headers
   -------------------------------------------------------------------------- */
.page-header {
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--navy-500);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Buttons & Form Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.25;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
}

.btn-primary {
  background-color: var(--primary-600);
  color: var(--white);
  border-color: var(--primary-600);
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-700);
  border-color: var(--primary-700);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--navy-700);
  border-color: var(--navy-300);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover:not(:disabled) {
  background-color: var(--navy-100);
  color: var(--navy-900);
}

.btn-success {
  background-color: var(--success-600);
  color: var(--white);
  border-color: var(--success-600);
}
.btn-success:hover:not(:disabled) {
  background-color: var(--success-700);
}

.btn-danger {
  background-color: var(--danger-600);
  color: var(--white);
  border-color: var(--danger-600);
}
.btn-danger:hover:not(:disabled) {
  background-color: var(--danger-700);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.775rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.btn-icon-only {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 0.375rem;
}

.form-label.required::after {
  content: " *";
  color: var(--danger-600);
}

.form-control {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--navy-300);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--navy-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control.is-invalid {
  border-color: var(--danger-500);
  background-color: var(--danger-50);
}

.invalid-feedback {
  font-size: 0.75rem;
  color: var(--danger-600);
  margin-top: 0.25rem;
  display: block;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--navy-500);
  margin-top: 0.25rem;
}

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

/* --------------------------------------------------------------------------
   Cards & Content Surfaces
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--navy-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
}

.card-subtitle {
  font-size: 0.8125rem;
  color: var(--navy-500);
  margin-top: 0.15rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--navy-100);
  background-color: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Metrics & Stats Cards (Dashboard)
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stat-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-500);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.primary { background: var(--primary-50); color: var(--primary-600); }
.stat-icon.success { background: var(--success-50); color: var(--success-600); }
.stat-icon.warning { background: var(--warning-50); color: var(--warning-600); }
.stat-icon.danger { background: var(--danger-50); color: var(--danger-600); }
.stat-icon.purple { background: var(--purple-50); color: var(--purple-600); }
.stat-icon.slate { background: var(--navy-100); color: var(--navy-700); }

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-footer {
  font-size: 0.75rem;
  color: var(--navy-500);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* --------------------------------------------------------------------------
   Badges & Status Tags
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-success { background: var(--success-100); color: var(--success-700); }
.badge-success .badge-dot { background: var(--success-500); }

.badge-warning { background: var(--warning-100); color: var(--warning-700); }
.badge-warning .badge-dot { background: var(--warning-500); }

.badge-danger { background: var(--danger-100); color: var(--danger-700); }
.badge-danger .badge-dot { background: var(--danger-500); }

.badge-primary { background: var(--primary-100); color: var(--primary-800); }
.badge-primary .badge-dot { background: var(--primary-600); }

.badge-neutral { background: var(--navy-100); color: var(--navy-700); }
.badge-neutral .badge-dot { background: var(--navy-500); }

.badge-purple { background: var(--purple-100); color: var(--purple-600); }
.badge-purple .badge-dot { background: var(--purple-600); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.table th {
  background-color: var(--navy-50);
  color: var(--navy-600);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--navy-200);
  white-space: nowrap;
}

.table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--navy-100);
  color: var(--navy-800);
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: #fafbfc;
}

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

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background-color: var(--navy-50);
  border-bottom: 1px solid var(--navy-200);
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.search-input-wrapper {
  position: relative;
  min-width: 240px;
}
.search-input-wrapper i, .search-input-wrapper svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy-400);
  width: 16px;
  height: 16px;
}
.search-input-wrapper input {
  padding-left: 2.25rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.35rem;
}

.empty-state-desc {
  font-size: 0.875rem;
  color: var(--navy-500);
  max-width: 420px;
  margin: 0 auto 1.25rem;
}

/* --------------------------------------------------------------------------
   Modals & Dialogs
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 1rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.modal form,
.modal > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.modal-backdrop.active .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--navy-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-900);
}

.modal-close {
  background: none;
  border: none;
  color: var(--navy-400);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background-color: var(--navy-100);
  color: var(--navy-700);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--navy-100);
  background-color: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--navy-200);
  box-shadow: var(--shadow-lg);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  min-width: 320px;
  max-width: 420px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.toast.success { border-left: 4px solid var(--success-600); }
.toast.success .toast-icon { color: var(--success-600); }

.toast.error { border-left: 4px solid var(--danger-600); }
.toast.error .toast-icon { color: var(--danger-600); }

.toast.warning { border-left: 4px solid var(--warning-600); }
.toast.warning .toast-icon { color: var(--warning-600); }

.toast.info { border-left: 4px solid var(--primary-600); }
.toast.info .toast-icon { color: var(--primary-600); }

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
}

.toast-message {
  font-size: 0.8125rem;
  color: var(--navy-600);
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   QR Scanner Mobile-First & Entrance UI
   -------------------------------------------------------------------------- */
.scanner-viewport-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#reader {
  width: 100% !important;
  border: none !important;
}

#reader video {
  width: 100% !important;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.scanner-overlay-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border: 2px dashed rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-overlay-reticle::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  animation: scanline 2.2s ease-in-out infinite;
}

@keyframes scanline {
  0% { transform: translateY(-110px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(110px); opacity: 0; }
}

/* Scan Result Big Card Banner */
.scan-result-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
  margin-top: 1.25rem;
}

.scan-result-card.accepted {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px solid var(--success-500);
  color: #064e3b;
}

.scan-result-card.rejected {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2px solid var(--danger-500);
  color: #7f1d1d;
}

.scan-result-status {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.scan-result-attendee {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.scan-result-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.875rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  text-align: left;
  font-size: 0.8125rem;
}

.scan-result-detail-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--navy-500);
  font-weight: 600;
}
.scan-result-detail-item .val {
  font-weight: 700;
  color: var(--navy-900);
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   Ticket Display (Attendee-facing & Print Layout)
   -------------------------------------------------------------------------- */
.ticket-wrapper {
  max-width: 540px;
  margin: 2rem auto;
}

.ticket-card {
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.ticket-header-band {
  background: linear-gradient(135deg, var(--navy-900), var(--primary-800));
  color: var(--white);
  padding: 1.75rem 2rem;
  text-align: center;
  position: relative;
}

.ticket-event-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.ticket-event-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ticket-body {
  padding: 2rem;
}

.ticket-qr-area {
  background: var(--navy-50);
  border: 2px dashed var(--navy-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

#ticket-qrcode {
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticket-token-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--navy-500);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
  background: var(--navy-100);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--navy-100);
  padding-top: 1.25rem;
}

.ticket-info-item .info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--navy-400);
  letter-spacing: 0.03em;
}

.ticket-info-item .info-val {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-top: 0.2rem;
}

/* Print Layout */
@media print {
  body {
    background: #fff !important;
  }
  .app-sidebar,
  .top-navbar,
  .ticket-actions-bar,
  .no-print,
  .toast-container {
    display: none !important;
  }
  .app-main {
    margin-left: 0 !important;
  }
  .main-content {
    padding: 0 !important;
  }
  .ticket-wrapper {
    margin: 0 auto !important;
    max-width: 100% !important;
    box-shadow: none !important;
  }
  .ticket-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}

/* --------------------------------------------------------------------------
   Public Registration Clean Container
   -------------------------------------------------------------------------- */
.public-registration-container {
  max-width: 680px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.public-card {
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.public-header {
  background: linear-gradient(135deg, var(--navy-900), var(--primary-700));
  color: var(--white);
  padding: 2.25rem 2rem;
  text-align: center;
}

.public-header h1 {
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.public-meta-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
}

.public-body {
  padding: 2rem;
}


/* --------------------------------------------------------------------------
   Responsive Layout Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }
  .app-main {
    margin-left: 0;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .main-content {
    padding: 1.25rem;
  }
  .top-navbar {
    padding: 0 1.25rem;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    width: 100%;
  }
  .search-input-wrapper {
    width: 100%;
  }
  .ticket-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   DEVICE SELECTION LANDING SCREEN (index.html)
   ========================================================================== */
.device-selector-page {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 10%, #1e293b 0%, #0f172a 100%);
  color: var(--navy-50);
  display: flex;
  flex-direction: column;
}

.device-header {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.device-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.device-main-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.device-main-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 620px;
  margin: 0 auto;
}

.device-cards-container {
  max-width: 1060px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}

.device-card {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.device-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.device-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
}

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

.device-illustration-wrap {
  height: 190px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* CSS Mock Monitor Illustration */
.mock-monitor {
  width: 170px;
  height: 115px;
  background: #1e293b;
  border: 2px solid #475569;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-monitor::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 12px;
  background: #334155;
  border-radius: 0 0 4px 4px;
}
.mock-monitor-screen {
  background: #0f172a;
  border-radius: 4px;
  flex: 1;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-monitor-header {
  height: 8px;
  background: #2563eb;
  border-radius: 2px;
  width: 60%;
}
.mock-monitor-grid {
  display: flex;
  gap: 4px;
}
.mock-monitor-card {
  flex: 1;
  height: 22px;
  background: #1e293b;
  border-radius: 2px;
  border: 1px solid #334155;
}
.mock-monitor-chart {
  flex: 1;
  background: rgba(59, 130, 246, 0.15);
  border: 1px dashed rgba(59, 130, 246, 0.4);
  border-radius: 3px;
}

/* CSS Mock Phone Illustration */
.mock-phone {
  width: 86px;
  height: 150px;
  background: #0f172a;
  border: 2px solid #475569;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  position: relative;
  padding: 5px;
  display: flex;
  flex-direction: column;
}
.mock-phone-island {
  width: 32px;
  height: 6px;
  background: #000;
  border-radius: 10px;
  margin: 1px auto 4px;
}
.mock-phone-screen {
  background: #1e293b;
  border-radius: 12px;
  flex: 1;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
.mock-phone-qr {
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-phone-reticle {
  width: 32px;
  height: 32px;
  border: 2px solid #22c55e;
  border-radius: 3px;
}
.mock-phone-btn {
  width: 80%;
  height: 10px;
  background: #2563eb;
  border-radius: 3px;
}

.device-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.device-target-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #60a5fa;
}

.device-card-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.device-card-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.device-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.device-features-list li {
  font-size: 0.8125rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.device-features-list li svg,
.device-features-list li i {
  color: #3b82f6;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   REALISTIC SMARTPHONE MOCKUP FRAME (mobile.html)
   ========================================================================== */
.phone-demo-wrapper {
  min-height: 100vh;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.25rem 1rem 2.5rem;
  box-sizing: border-box;
}

.phone-control-toolbar {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.25rem;
  backdrop-filter: blur(8px);
}

.phone-control-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phone-frame {
  width: 390px;
  max-width: 100%;
  height: 820px;
  max-height: 92vh;
  background: #000000;
  border-radius: 48px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 0 10px #1e293b,
    0 0 0 12px #334155,
    0 0 0 14px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Dynamic Island */
.phone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 116px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.island-camera-lens {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #111827;
  border: 1.5px solid #1f2937;
  position: relative;
}
.island-camera-lens::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  background: rgba(96, 165, 250, 0.6);
  border-radius: 50%;
}

.island-sensor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f2937;
}

/* Simulated Mobile Status Bar */
.phone-status-bar {
  height: 44px;
  padding: 10px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--white);
  z-index: 90;
  user-select: none;
}

.phone-status-left {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.phone-status-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Phone Screen / Application Viewport */
.phone-screen {
  flex: 1;
  background: var(--navy-50);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Sub-Views */
.mobile-view {
  display: none;
  padding: 1rem;
  flex: 1;
  padding-bottom: 5rem; /* space for fixed bottom nav */
}
.mobile-view.active {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

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

/* Mobile Fixed Bottom Navigation Bar */
.mobile-bottom-nav {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--navy-200);
  display: flex;
  align-items: center;
  justify-content: stretch;
  z-index: 80;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  padding: 0 0.5rem;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--navy-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  font-size: 0.725rem;
  font-weight: 600;
  transition: all 0.15s ease;
  text-decoration: none;
}

.mobile-nav-item i,
.mobile-nav-item svg {
  width: 20px;
  height: 20px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.mobile-nav-item.active {
  color: var(--primary-600);
  font-weight: 700;
}

.mobile-nav-item.active i,
.mobile-nav-item.active svg {
  color: var(--primary-600);
  stroke-width: 2.25px;
}

.mobile-nav-item:hover:not(.active) {
  color: var(--navy-700);
}

/* Mobile Filter Chips */
.mobile-filter-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
  scrollbar-width: none;
}
.mobile-filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--navy-200);
  color: var(--navy-600);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--primary-600);
  color: var(--white);
  border-color: var(--primary-600);
}

/* Mobile Attendee Card */
.mobile-attendee-card {
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-xs);
}

.mobile-attendee-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.mobile-attendee-meta {
  font-size: 0.75rem;
  color: var(--navy-500);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* ==========================================================================
   Mobile Attendee Detail & Audit Subpage View
   ========================================================================== */
.mobile-subpage-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--navy-200);
}

.mobile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--navy-100);
  border: 1px solid var(--navy-200);
  color: var(--navy-700);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-back-btn:hover {
  background: var(--navy-200);
  color: var(--navy-900);
}

.mobile-subpage-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero Profile Card */
.mobile-audit-hero {
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-xs);
}

.mobile-audit-profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mobile-audit-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-600), #7c3aed);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.mobile-audit-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.mobile-audit-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--navy-100);
  font-size: 0.75rem;
  color: var(--navy-600);
}

.mobile-audit-contact-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
}

.mobile-audit-contact-item i,
.mobile-audit-contact-item svg {
  color: var(--navy-400);
  flex-shrink: 0;
}

/* Info & Policy Card */
.mobile-audit-card {
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-xs);
}

.mobile-audit-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy-800);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mobile-audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.5rem;
  font-size: 0.775rem;
}

.mobile-audit-field-label {
  font-size: 0.675rem;
  color: var(--navy-500);
  margin-bottom: 2px;
}

.mobile-audit-field-val {
  font-weight: 700;
  color: var(--navy-900);
}

.mobile-audit-field-mono {
  font-family: monospace;
  background: var(--navy-100);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--navy-900);
  display: inline-block;
}

/* Usage Progress Bar */
.mobile-audit-progress-wrap {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--navy-100);
}

.mobile-audit-progress-bar {
  height: 6px;
  background: var(--navy-100);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.35rem;
}

/* History Timeline Feed */
.mobile-timeline-feed {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mobile-timeline-card {
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-left: 3px solid var(--primary-600);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  box-shadow: var(--shadow-xs);
}

.mobile-timeline-card.rejected {
  border-left-color: var(--danger-500);
}

.mobile-timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.mobile-timeline-entry-num {
  font-weight: 800;
  color: var(--primary-700);
  font-size: 0.75rem;
}

.mobile-timeline-entry-id {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--navy-600);
  background: var(--navy-50);
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid var(--navy-200);
}

.mobile-timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--navy-600);
  font-size: 0.725rem;
}

.mobile-timeline-meta-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mobile-timeline-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--navy-50);
  border: 1px dashed var(--navy-200);
  border-radius: 12px;
  color: var(--navy-500);
  font-size: 0.75rem;
}

/* Real Mobile Viewport Optimization: Strip Decorative Frame */
@media (max-width: 600px) {
  .phone-demo-wrapper {
    padding: 0;
    background: var(--navy-50);
  }
  .phone-control-toolbar {
    display: none;
  }
  .phone-frame {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
  .phone-dynamic-island {
    display: none;
  }
  .phone-status-bar {
    display: none;
  }
  .phone-screen {
    height: 100vh;
  }
}

/* ==========================================================================
   Event Hub & Multi-Event Management Styles
   ========================================================================== */

/* Hero Banner */
.hub-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  color: var(--white);
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3), 0 8px 10px -6px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-hero-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hub-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hub-hero-title-group h2 {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hub-hero-title-group p {
  color: #94a3b8;
  font-size: 0.875rem;
  max-width: 620px;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.hub-hero-tags {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.hub-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hub-hero-tag.active-workspace {
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.4);
}

.hub-hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Event Filter Toolbar */
.hub-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hub-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 420px;
  min-width: 260px;
}

.hub-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy-400);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.hub-search-input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.375rem;
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.875rem;
  color: var(--navy-900);
  transition: all 0.15s ease;
}

.hub-search-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hub-status-tabs {
  display: flex;
  background: var(--navy-100);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  gap: 0.25rem;
}

.hub-status-tab {
  padding: 0.4rem 0.875rem;
  border: none;
  background: transparent;
  color: var(--navy-600);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.hub-status-tab:hover {
  color: var(--navy-900);
}

.hub-status-tab.active {
  background: var(--white);
  color: var(--primary-700);
  box-shadow: var(--shadow-xs);
}

.hub-status-count {
  font-size: 0.6875rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background: var(--navy-200);
  color: var(--navy-700);
}

.hub-status-tab.active .hub-status-count {
  background: var(--primary-100);
  color: var(--primary-800);
}

/* Event Cards Grid & Cards */
.hub-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08), 0 4px 8px -4px rgba(15, 23, 42, 0.04);
}

.event-card.is-active {
  border-color: var(--primary-500);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15), 0 4px 6px -2px rgba(37, 99, 235, 0.05);
}

.event-card-stripe {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.event-card.is-active .event-card-stripe {
  background: linear-gradient(90deg, var(--primary-600), #8b5cf6);
}

.event-card-body {
  padding: 1.5rem;
  flex: 1;
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.active-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border: 1px solid #bfdbfe;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #2563eb;
  position: relative;
  display: inline-block;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.4);
  animation: pulseAnimation 2s infinite ease-out;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.event-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.35;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-desc {
  font-size: 0.8125rem;
  color: var(--navy-600);
  line-height: 1.45;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.35rem;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78125rem;
  color: var(--navy-600);
  margin-bottom: 1.25rem;
  background: var(--navy-50);
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-100);
}

.event-card-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-card-meta-row i {
  color: var(--navy-400);
  flex-shrink: 0;
}

/* Turnout progress bar */
.event-turnout-section {
  margin-bottom: 1.25rem;
}

.event-turnout-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.turnout-track {
  height: 6px;
  background: var(--navy-100);
  border-radius: 9999px;
  overflow: hidden;
}

.turnout-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), #8b5cf6);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* Metric quad */
.event-metrics-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.event-metric-cell {
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.75rem;
  transition: background-color 0.15s ease;
}

.event-metric-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--navy-500);
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.event-metric-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-900);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

/* Card footer */
.event-card-footer {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--navy-100);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Premium Modern Mobile Scanner UI
   -------------------------------------------------------------------------- */
.scanner-modern-container {
  background: #090d16;
  color: #f8fafc;
  min-height: 100%;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.scanner-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
}

.scanner-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.scanner-live-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.scanner-gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 9px;
  border-radius: 9999px;
}

.scanner-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scanner-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.05);
}

.scanner-auto-detect-tag {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.725rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.scanner-auto-detect-tag i,
.scanner-auto-detect-tag svg {
  color: #60a5fa;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.scanner-stats-capsule {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.scanner-stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scanner-stat-col:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.scanner-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
}

.scanner-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 1px;
}

.scanner-stat-num.text-success {
  color: #34d399;
}

.scanner-stat-num.text-danger {
  color: #f87171;
}

.scanner-viewfinder-card {
  position: relative;
  background: #020617;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), 0 0 24px rgba(16, 185, 129, 0.08);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scanner-standby-view {
  padding: 2.25rem 1.25rem;
  text-align: center;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.8) 0%, rgba(2, 6, 23, 0.98) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scanner-qr-pulse-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(16, 185, 129, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.scanner-standby-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.scanner-standby-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  max-width: 250px;
  margin: 0 auto 1.15rem;
  line-height: 1.4;
}

.scanner-primary-btn {
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #ffffff;
  border: none;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
}

.scanner-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.scanner-primary-btn:active {
  transform: translateY(1px);
}

.scanner-reticle-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  border-radius: 12px;
}

.scanner-reticle-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: 
    linear-gradient(to right, #10b981 20px, transparent 20px) 0 0,
    linear-gradient(to bottom, #10b981 20px, transparent 20px) 0 0,
    linear-gradient(to left, #10b981 20px, transparent 20px) 100% 0,
    linear-gradient(to bottom, #10b981 20px, transparent 20px) 100% 0,
    linear-gradient(to right, #10b981 20px, transparent 20px) 0 100%,
    linear-gradient(to top, #10b981 20px, transparent 20px) 0 100%,
    linear-gradient(to left, #10b981 20px, transparent 20px) 100% 100%,
    linear-gradient(to top, #10b981 20px, transparent 20px) 100% 100%;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

.scanner-reticle-box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #34d399, transparent);
  box-shadow: 0 0 8px #34d399;
  animation: laserScan 2s ease-in-out infinite;
}

@keyframes laserScan {
  0% { top: 5%; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { top: 95%; opacity: 0; }
}

.scanner-stop-control {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.scanner-stop-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.scanner-stop-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
  border-color: #ef4444;
}

.scan-result-card-premium {
  border-radius: 18px;
  padding: 1.25rem 1rem;
  text-align: center;
  animation: slideUpResult 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

@keyframes slideUpResult {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.scan-result-card-premium.accepted {
  background: linear-gradient(180deg, #064e3b 0%, #022c22 100%);
  border: 1.5px solid #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
  color: #ffffff;
}

.scan-result-card-premium.accepted::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #34d399, #10b981);
}

.accept-badge-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.25);
  border: 2px solid #34d399;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  margin: 0 auto 0.5rem;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.accept-status-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ecfdf5;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.accept-event-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  margin: 0.45rem 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.775rem;
  font-weight: 700;
  color: #d1fae5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.accept-event-pill i,
.accept-event-pill svg {
  color: #34d399;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.accept-attendee-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.accept-meta-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #a7f3d0;
  margin-bottom: 1rem;
}

.accept-meta-item {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.accept-next-action-btn {
  width: 100%;
  background: #10b981;
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transition: all 0.15s ease;
}

.accept-next-action-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.scan-result-card-premium.rejected {
  background: linear-gradient(180deg, #7f1d1d 0%, #450a0a 100%);
  border: 1.5px solid #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

.scan-result-card-premium.rejected::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.reject-badge-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.25);
  border: 2px solid #f87171;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  margin: 0 auto 0.5rem;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
}

.reject-status-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fee2e2;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.reject-event-pill {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  margin: 0.35rem 0 0.65rem;
  font-size: 0.725rem;
  color: #fca5a5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.reject-reason-text {
  font-size: 0.925rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.4rem 0 1rem;
  line-height: 1.35;
}

.reject-dismiss-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reject-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.scanner-manual-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.85rem;
  backdrop-filter: blur(8px);
}

.scanner-manual-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.scanner-token-input {
  background: rgba(2, 6, 23, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 0.75rem !important;
  padding: 0.45rem 0.65rem !important;
  border-radius: 8px !important;
}

.scanner-token-input:focus {
  border-color: #3b82f6 !important;
  outline: none !important;
}

.test-chip-pill {
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.test-chip-pill:hover {
  transform: translateY(-1px);
}


