@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
  --bg: #090c24;
  --bg-gradient: radial-gradient(circle at 50% -20%, #1e266d 0%, #090c24 70%);
  --card: rgba(15, 20, 56, 0.72);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-glow: rgba(0, 238, 252, 0.08);
  --text: #f0f4ff;
  --text-dim: #94a3b8;
  --muted: #a5b4fc;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-2: #00eefc;
  --accent-emerald: #10b981;
  --danger: #f43f5e;
  --warn: #f59e0b;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Sora', var(--font-main);
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background & Ambient Glow */
.registration-page {
  background-image: 
    linear-gradient(180deg, rgba(9, 12, 36, 0.75) 0%, rgba(9, 12, 36, 0.92) 100%),
    url('../images/FB%20theme%20for%20website%201400x800%20%282026%29.png');
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .registration-page {
    background-image: 
      linear-gradient(180deg, rgba(9, 12, 36, 0.8) 0%, rgba(9, 12, 36, 0.95) 100%),
      url('../images/FB%20theme%20for%20website%20840x525%20%282026%29.png');
    background-attachment: scroll;
  }
}

body::before, body::after {
  content: "";
  position: fixed;
  width: min(450px, 80vw);
  height: min(450px, 80vw);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  animation: ambient-drift 14s ease-in-out infinite alternate;
}
body::before { background: #4f46e5; top: -100px; right: -80px; }
body::after { background: #00eefc; bottom: -120px; left: -80px; animation-delay: -6s; }

@keyframes ambient-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, -24px, 0) scale(1.15); }
}

/* Layout Wrappers */
.wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  position: relative;
  z-index: 1;
}

.aetheris-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Top Header & Branding */
.reg-brand-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.logo-dark-mode {
  display: none !important;
}
.logo-light-mode {
  display: inline-block !important;
}

@media (prefers-color-scheme: dark) {
  .logo-light-mode {
    display: none !important;
  }
  .logo-dark-mode {
    display: inline-block !important;
  }
}

[data-theme="dark"] .logo-light-mode {
  display: none !important;
}
[data-theme="dark"] .logo-dark-mode {
  display: inline-block !important;
}

.event-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

/* Cards & Glassmorphism */
.card {
  background: var(--card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 44px);
  margin-bottom: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px inset rgba(255,255,255,0.06);
}

.reg-card {
  width: 100%;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Form Intro & Headers */
.form-intro {
  margin-bottom: 32px;
  text-align: left;
}

.badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  background: rgba(0, 238, 252, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 238, 252, 0.25);
  margin-bottom: 12px;
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 30%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: #cbd5e1;
  font-size: clamp(0.92rem, 2vw, 1.02rem);
  margin: 0 0 20px;
  line-height: 1.6;
}

.event-highlights-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #cbd5e1;
}

.highlight-item .h-icon {
  color: var(--accent-2);
  flex-shrink: 0;
}

/* Grid & Fields */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}

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

.field {
  display: flex;
  flex-direction: column;
  position: relative;
}

label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

label .req {
  color: var(--accent-2);
  font-weight: bold;
}

/* Inputs, Selects & Controls */
input[type=text],
input[type=email],
input[type=tel],
input[type=url],
input[type=password],
textarea,
select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 34, 0.7);
  color: #ffffff;
  font-size: 16px; /* Prevents auto-zoom on iOS mobile */
  font-family: var(--font-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
  font-size: 0.9rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-2);
  background: rgba(12, 17, 48, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 238, 252, 0.18), 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Field Feedback & Status */
input.is-invalid, select.is-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.25) !important;
}

input.is-valid {
  border-color: var(--accent-emerald) !important;
}

.field-feedback {
  display: block;
  font-size: 0.78rem;
  margin-top: 5px;
  min-height: 0;
  transition: all var(--transition-fast);
}

.field-feedback.show-error {
  color: var(--danger);
  font-weight: 500;
}

.field-feedback.show-success {
  color: var(--accent-emerald);
  font-weight: 500;
}

.field-hint {
  display: block;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 6px;
  line-height: 1.4;
}

.professional-email-note {
  color: #cbd5e1;
  font-weight: 500;
}

/* Select wrapper */
.select-wrap {
  position: relative;
  width: 100%;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 36px;
  background-color: rgba(8, 12, 34, 0.7);
  color-scheme: dark;
}

.select-wrap select option {
  background-color: #0d1230;
  color: #f1f5f9;
  padding: 8px 12px;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #94a3b8;
  font-size: 0.8rem;
}

.other-field-wrap {
  margin-top: 10px;
  animation: fadeInDown 0.25s ease both;
}

/* Phone Field Combination */
.phone-fields {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.country-picker {
  position: relative;
  flex: 0 0 130px;
  width: 130px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 34, 0.7);
  color: #ffffff;
  cursor: pointer;
}

.country-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.country-picker #countryCodeDisplay {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-2);
}

.country-select-chevron {
  font-size: 0.8rem;
  color: #94a3b8;
}

.phone-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.phone-input-wrap input {
  padding-right: 56px;
}

.digit-counter {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  pointer-events: none;
}

.digit-counter.is-matched {
  color: var(--accent-emerald);
}

.digit-counter.is-over {
  color: var(--danger);
}

/* Action Buttons */
.submit-action-wrap {
  margin-top: 28px;
}

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 700;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

button:active, .btn:active {
  transform: scale(0.985);
}

.btn-primary {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #00d2df 0%, #3b82f6 50%, #6366f1 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(0, 238, 252, 0.22);
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 238, 252, 0.35);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin-left: 10px;
}

.btn-primary.is-loading .btn-spinner {
  display: inline-block;
}

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

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 12px 20px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Global Alert / Messages */
.msg {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease both;
}

.msg.show {
  display: block;
}

.msg-error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fecdd3;
}

.msg-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

/* Success Confirmation Panel */
.registration-success-panel {
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  color: #f8fafc;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  text-align: left;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid rgba(16, 185, 129, 0.6);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.success-note-eyebrow {
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.registration-success-panel h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 8px 0 12px;
  color: #ffffff;
}

.success-lead {
  font-size: 1.02rem;
  color: #cbd5e1;
  margin: 0 0 24px;
  line-height: 1.6;
}

.success-steps-box {
  display: grid;
  gap: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-info strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.step-info span {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

.success-actions {
  display: flex;
  gap: 12px;
}

.btn-new-reg {
  width: 100%;
  height: 46px;
}

/* Footer */
.reg-footer {
  width: 100%;
  text-align: center;
  padding: 16px 0;
  font-size: 0.78rem;
  color: #64748b;
}

.reg-footer a {
  color: var(--accent-2);
  text-decoration: none;
}

.reg-footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 680px) {
  .wrap {
    padding: 20px 14px 36px;
  }
  
  .reg-brand-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }
  
  .brand-logo {
    height: 32px;
  }

  .event-meta-badge {
    font-size: 0.72rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 22px 16px;
    border-radius: var(--radius-sm);
  }

  .country-picker {
    flex: 0 0 110px;
    width: 110px;
  }

  .btn-primary {
    height: 48px;
    font-size: 1rem;
  }
}

/* =========================================================================
   DASHBOARD & SCANNER PAGES (Clean Admin Theme & Responsive Sidebar)
   ========================================================================= */

.dashboard-page {
  background: #f8fafc;
  color: #0f172a;
  font-family: var(--font-main);
  min-height: 100vh;
}
.dashboard-page::before, .dashboard-page::after { display: none; }
.dashboard-page .wrap { position: relative; max-width: 1440px; padding: 24px 28px 48px; }

/* Admin Login Card */
.admin-login-card {
  max-width: 440px;
  margin: 60px auto 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}
.admin-login-card h1 { color: #0f172a; font-family: var(--font-main); }
.admin-login-card .btn-primary { background: #0f172a; color: #fff; box-shadow: none; }
.admin-login-card .btn-primary:hover:not(:disabled) { background: #1e293b; }

/* Shell & Topbar */
.dashboard-page .dashboard-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 28px; align-items: start; }
.dashboard-page .dashboard-topbar { grid-column: 1 / -1; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; margin-bottom: 20px; border: 1px solid #e2e8f0; border-radius: 14px; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.dashboard-page .topbar-left { display: flex; align-items: center; gap: 14px; }
.dashboard-page .topbar-left .topbar-logo { height: 42px; width: auto; object-fit: contain; flex-shrink: 0; }
.dashboard-page .topbar-left h1 { font-size: 1.35rem; font-weight: 700; color: #0f172a; margin: 2px 0 0; }
.dashboard-page .topbar-right { display: flex; align-items: center; gap: 12px; }
.dashboard-page .sync-indicator { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: #10b981; background: #ecfdf5; padding: 4px 10px; border-radius: 999px; border: 1px solid #a7f3d0; }
.dashboard-page .eyebrow { color: #64748b; font-size: 0.68rem; letter-spacing: 0.16em; font-weight: 700; }

/* Sidebar Tabs */
.dashboard-page .dashboard-tabs { grid-column: 1; grid-row: 2; position: sticky; top: 20px; width: 240px; min-height: calc(100vh - 140px); display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; margin: 0; border: 1px solid #e2e8f0; border-radius: 14px; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.dashboard-page .dashboard-tabs::before { content: ''; display: block; height: 44px; margin: 2px 6px 14px; padding-bottom: 12px; background: url('/brand-logo.png') center / contain no-repeat; border-bottom: 1px solid #f1f5f9; }
.dashboard-page .dashboard-tab { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; text-align: left; color: #64748b; border-radius: 8px; font-weight: 600; font-size: 0.86rem; background: transparent; border: none; cursor: pointer; transition: all var(--transition-fast); }
.dashboard-page .dashboard-tab .tab-icon { font-size: 1.05rem; }
.dashboard-page .dashboard-tab:hover { background: #f1f5f9; color: #0f172a; }
.dashboard-page .dashboard-tab.active { background: #0f172a; color: #ffffff; }
.dashboard-page .dashboard-tab .tab-badge { margin-left: auto; background: #f43f5e; color: #fff; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }

/* Panel Basics */
.dashboard-page .dashboard-panel { grid-column: 2; grid-row: 2; min-width: 0; display: none; }
.dashboard-page .dashboard-panel.active-panel { display: block; animation: fadeInUp 0.22s ease both; }
.dashboard-page .dashboard-panel > .page-intro { padding: 2px 0 0; margin-bottom: 22px; }
.dashboard-page .dashboard-panel > .page-intro h2 { font-size: 1.85rem; margin: 4px 0 2px; color: #0f172a; font-family: var(--font-main); }
.dashboard-page .card { background: #ffffff; color: #0f172a; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); backdrop-filter: none; padding: 24px; margin-bottom: 20px; }

/* Stats Cards */
.dashboard-page .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.dashboard-page .summary-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-page .stat { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; min-height: 108px; display: flex; flex-direction: column; justify-content: space-between; transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.dashboard-page .stat:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.04); }
.dashboard-page .stat-header { display: flex; justify-content: space-between; align-items: center; }
.dashboard-page .stat-icon-pill { font-size: 1rem; }
.dashboard-page .stat .num { color: #0f172a; font-size: 1.85rem; font-weight: 800; font-family: var(--font-heading); margin-top: 6px; }
.dashboard-page .stat .label { color: #64748b; font-size: 0.8rem; font-weight: 600; }
.dashboard-page .stat-pending-highlight { border-color: #fde68a; background: #fffbeb; }
.dashboard-page .stat-pending-highlight .num { color: #b45309; }
.dashboard-page .stat-attended-highlight { border-color: #a7f3d0; background: #ecfdf5; }
.dashboard-page .stat-attended-highlight .num { color: #047857; }

/* Progress Bar */
.dashboard-page .attendance-progress-card { padding: 20px 24px; }
.dashboard-page .progress-track { width: 100%; height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.dashboard-page .progress-bar-fill { height: 100%; background: linear-gradient(90deg, #10b981 0%, #00eefc 100%); border-radius: 999px; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

/* Filter & Search Bar */
.dashboard-page .registration-filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.dashboard-page .search-input-wrap { flex: 1 1 300px; }
.dashboard-page .search-input-wrap input { width: 100%; height: 42px; padding: 0 14px; font-size: 0.92rem; border-radius: 8px; border: 1px solid #d4d4d8; background: #ffffff; color: #0f172a; }
.dashboard-page .export-toolbar { display: flex; align-items: center; gap: 8px; }

/* Tabs Bar */
.dashboard-page .tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid #e2e8f0; padding-bottom: 12px; }
.dashboard-page .tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 6px; background: transparent; border: 0; color: #64748b; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.dashboard-page .tab .tab-count { font-size: 0.72rem; padding: 2px 6px; border-radius: 999px; background: #e2e8f0; color: #475569; }
.dashboard-page .tab.active { background: #0f172a; color: #ffffff; }
.dashboard-page .tab.active .tab-count { background: #334155; color: #ffffff; }

/* Bulk Action Bar */
.dashboard-page .bulk-action-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: #0f172a; color: #ffffff; border-radius: 10px; margin-bottom: 16px; animation: fadeInDown 0.25s ease both; }
.dashboard-page .bulk-info { font-size: 0.88rem; }
.dashboard-page .bulk-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dashboard-page .bulk-delivery-override { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; }
.dashboard-page .bulk-delivery-override select { height: 32px; padding: 0 8px; font-size: 0.8rem; background: #1e293b; color: #fff; border: 1px solid #334155; border-radius: 6px; }

/* Tables */
.dashboard-page table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dashboard-page th { color: #64748b; border-bottom: 1px solid #e2e8f0; padding: 12px 10px; text-align: left; font-size: 0.78rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; }
.dashboard-page td { color: #1e293b; border-bottom: 1px solid #f1f5f9; padding: 12px 10px; vertical-align: top; }
.dashboard-page tr.row-selected { background: #f0f9ff; }
.dashboard-page tr:hover td { background-color: #f8fafc; }
.dashboard-page .contact-link { display: block; font-size: 0.82rem; color: #0284c7; text-decoration: none; }
.dashboard-page .contact-link.muted { color: #64748b; }
.dashboard-page .linkedin-chip { display: inline-block; font-size: 0.72rem; color: #0a66c2; text-decoration: none; margin-top: 4px; font-weight: 600; }
.dashboard-page .linkedin-chip:hover { text-decoration: underline; }

/* Badges & Pills */
.dashboard-page .badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: capitalize; }
.dashboard-page .badge-pending { background: #fef3c7; color: #b45309; }
.dashboard-page .badge-approved { background: #dcfce7; color: #15803d; }
.dashboard-page .badge-rejected { background: #ffe4e6; color: #be123c; }

.dashboard-page .pill { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; border: 1px solid #e2e8f0; color: #64748b; margin-right: 4px; margin-bottom: 4px; font-weight: 600; }
.dashboard-page .pill.ok { color: #15803d; border-color: #86efac; background: #f0fdf4; }
.dashboard-page .pill.fail { color: #be123c; border-color: #fca5a5; background: #fff1f2; }

/* Dashboard Action Buttons */
.dashboard-page button, .dashboard-page .btn { border-radius: 6px; font-family: var(--font-main); font-weight: 600; }
.dashboard-page .btn-primary { background: #0f172a; color: #ffffff; box-shadow: none; height: auto; padding: 9px 16px; font-size: 0.88rem; }
.dashboard-page .btn-primary:hover:not(:disabled) { background: #1e293b; box-shadow: none; }
.dashboard-page .btn-outline { color: #0f172a; border: 1px solid #d4d4d8; background: #ffffff; padding: 8px 14px; font-size: 0.85rem; }
.dashboard-page .btn-outline:hover { background: #f1f5f9; }
.dashboard-page .btn-success { background: #10b981; color: #fff; border: none; }
.dashboard-page .btn-success:hover:not(:disabled) { background: #059669; }
.dashboard-page .btn-danger { background: #f43f5e; color: #fff; border: none; }
.dashboard-page .btn-danger:hover:not(:disabled) { background: #e11d48; }

.dashboard-page .action-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.dashboard-page .action-buttons button.is-processing { opacity: 0.6; transform: scale(0.96); }
.dashboard-page .action-buttons button.action-complete { background: #10b981; color: #fff; }

/* Switch Options in Settings */
.dashboard-page .switch-group { display: flex; gap: 8px; }
.dashboard-page .switch-option { flex: 1; text-align: center; padding: 10px; border-radius: 8px; border: 1px solid #e2e8f0; background: #ffffff; color: #64748b; font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: all var(--transition-fast); }
.dashboard-page .switch-option:hover { background: #f8fafc; color: #0f172a; }
.dashboard-page .switch-option.active { background: #0f172a; border-color: #0f172a; color: #ffffff; }

/* Dashboard Inputs & Forms */
.dashboard-page input, .dashboard-page textarea, .dashboard-page select { color: #0f172a; background: #ffffff; border: 1px solid #d4d4d8; border-radius: 8px; font-size: 0.92rem; height: 42px; padding: 0 12px; }
.dashboard-page textarea { height: auto; padding: 10px 12px; font-family: monospace; font-size: 0.85rem; }
.dashboard-page input:focus, .dashboard-page textarea:focus, .dashboard-page select:focus { border-color: #0f172a; box-shadow: 0 0 0 2px rgba(15,23,42,0.1); background: #ffffff; }
.dashboard-page .settings-form { display: grid; gap: 16px; max-width: 720px; }
.dashboard-page .settings-inline { display: grid; grid-template-columns: 1fr 120px; gap: 14px; }
.dashboard-page .integration-divider { border-top: 1px solid #e2e8f0; padding-top: 18px; margin-top: 12px; font-weight: 700; font-size: 0.95rem; color: #0f172a; }

/* Registered Search Results */
.dashboard-page .registered-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; margin-top: 10px; }

/* QR Result Box in Admin */
.dashboard-page .manual-qr-result { display: flex; align-items: center; gap: 24px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 12px; padding: 24px; margin-top: 20px; }
.dashboard-page .manual-qr-result .qr-box { background: #ffffff; padding: 16px; border: 1px solid #e2e8f0; border-radius: 10px; }

/* Responsive Dashboard Media Queries */
@media (max-width: 1024px) {
  .dashboard-page .summary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .dashboard-page .wrap { padding: 16px 12px 36px; }
  .dashboard-page .dashboard-shell { display: block; }
  .dashboard-page .dashboard-tabs { position: static; width: 100%; min-height: auto; flex-direction: row; overflow-x: auto; margin-bottom: 18px; border-radius: 10px; padding: 8px; }
  .dashboard-page .dashboard-tabs::before { display: none; }
  .dashboard-page .dashboard-tab { width: auto; flex: 0 0 auto; white-space: nowrap; padding: 8px 12px; }
  .dashboard-page .dashboard-panel { width: 100%; }
  .dashboard-page .dashboard-topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dashboard-page .topbar-right { width: 100%; justify-content: space-between; }
  .dashboard-page .settings-inline { grid-template-columns: 1fr; gap: 10px; }
  .dashboard-page .manual-qr-result { flex-direction: column; text-align: center; }
  .dashboard-page .registration-filter-bar { flex-direction: column; align-items: stretch; }
  .dashboard-page .table-card { overflow-x: auto; margin-inline: -12px; border-radius: 0; border-inline: none; }
  .dashboard-page table { min-width: 700px; }
}

/* =========================================================================
   MINIMAL & PROFESSIONAL SCANNER WEB APP (scanner.kamranrazzaq.tech)
   ========================================================================= */

.mobile-scanner-app {
  margin: 0;
  padding: 0;
  background: #080c14;
  color: #f8fafc;
  font-family: var(--font-main, 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif);
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: fixed;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.mobile-scanner-app::before,
.mobile-scanner-app::after {
  display: none !important;
}

/* ---- Lock Screen / Terminal Pairing Overlay ---- */
.scanner-lock-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.12) 0%, #080c14 70%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.scanner-lock-screen .lock-card {
  width: 100%;
  max-width: 390px;
  background: rgba(13, 19, 34, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(14, 165, 233, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-align: center;
}
.scanner-lock-screen .pin-display-box {
  margin: 18px 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, rgba(56, 189, 248, 0.02) 100%);
  border: 1.5px dashed rgba(56, 189, 248, 0.35);
  border-radius: 18px;
}
.scanner-lock-screen .pin-value {
  font-family: 'Sora', monospace;
  font-size: 2.5rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 6px;
  margin: 4px 0;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}
.scanner-lock-screen input {
  height: 42px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
  padding: 0 12px;
  outline: none;
  transition: border-color 0.2s ease;
}
.scanner-lock-screen input:focus {
  border-color: #38bdf8;
}

/* ---- Main Scanner App Container ---- */
.scanner-mobile-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  position: relative;
  background: #080c14;
  overflow: hidden;
}

/* ---- Sleek Minimal Top Header ---- */
.scanner-app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(env(safe-area-inset-top, 14px), 14px) 16px 12px;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.95) 0%, rgba(8, 12, 20, 0.6) 80%, transparent 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scanner-app-header .header-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scanner-app-header .header-event-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.scanner-app-header .live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16, 185, 129, 0.6);
  animation: liveRadarPulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

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

.scanner-app-header .header-stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.scanner-app-header .station-tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.scanner-app-header .station-tag-btn:hover,
.scanner-app-header .station-tag-btn:active {
  background: rgba(56, 189, 248, 0.22);
}

.scanner-app-header .header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scanner-header-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.18s ease;
  padding: 0;
}
.scanner-header-btn svg,
.scanner-header-btn i {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}
.scanner-header-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}
.scanner-header-btn:active {
  transform: scale(0.92);
}
.scanner-header-btn.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* ---- App Main Content Viewport Switcher ---- */
.scanner-views-wrapper {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.scanner-tab-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease;
  transform: scale(0.99);
}

.scanner-tab-view.tab-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: scale(1);
}

/* =========================================================================
   TAB 1: LIVE CAMERA SCANNER (Clean & Minimal)
   ========================================================================= */

.scanner-camera-section {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.scanner-camera-section .camera-feed {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  border: none !important;
  background: #000 !important;
}

.scanner-camera-section .camera-feed video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Viewfinder Overlay */
.viewfinder-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
  padding-bottom: 50px;
}

.viewfinder-box {
  position: relative;
  width: min(72vw, 280px);
  height: min(72vw, 280px);
  border-radius: 24px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.48);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.viewfinder-box.pulse-detected {
  transform: scale(1.04);
  box-shadow: 0 0 0 9999px rgba(16, 185, 129, 0.35);
}

.viewfinder-box .corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #38bdf8;
  border-style: solid;
  border-width: 0;
  transition: border-color 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}
.viewfinder-box.pulse-detected .corner {
  border-color: #10b981;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.8));
}

.viewfinder-box .corner.top-left {
  top: -2px; left: -2px;
  border-top-width: 4px; border-left-width: 4px;
  border-top-left-radius: 20px;
}
.viewfinder-box .corner.top-right {
  top: -2px; right: -2px;
  border-top-width: 4px; border-right-width: 4px;
  border-top-right-radius: 20px;
}
.viewfinder-box .corner.bottom-left {
  bottom: -2px; left: -2px;
  border-bottom-width: 4px; border-left-width: 4px;
  border-bottom-left-radius: 20px;
}
.viewfinder-box .corner.bottom-right {
  bottom: -2px; right: -2px;
  border-bottom-width: 4px; border-right-width: 4px;
  border-bottom-right-radius: 20px;
}

.viewfinder-box .laser-beam {
  position: absolute;
  top: 0; left: 8px; right: 8px;
  height: 2.5px;
  background: linear-gradient(90deg, transparent 0%, #38bdf8 50%, transparent 100%);
  box-shadow: 0 0 12px #38bdf8, 0 0 24px #38bdf8;
  animation: laserScan 2.2s ease-in-out infinite alternate;
  border-radius: 2px;
}

@keyframes laserScan {
  0% { top: 6%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 92%; opacity: 0.3; }
}

.scanner-status-pill {
  margin-top: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(13, 19, 34, 0.8);
  padding: 6px 18px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Fallback Launch Button */
.camera-start-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 24px;
}
.camera-start-overlay .camera-launch-btn {
  height: 50px;
  padding: 0 28px;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.4);
}

/* =========================================================================
   SCAN RESULT POPUP / MODAL (Minimal & High Impact)
   ========================================================================= */

.scan-result-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.2s ease-out both;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scan-result-card {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  overflow: hidden;
  position: relative;
  animation: popInCard 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes popInCard {
  from { opacity: 0; transform: scale(0.92) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Result Card Type Variants */
.scan-result-card.type-success {
  border: 1.5px solid rgba(52, 211, 153, 0.6);
}
.scan-result-card.type-success .result-header-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-bottom: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
}

.scan-result-card.type-duplicate {
  border: 1.5px solid rgba(251, 191, 36, 0.6);
}
.scan-result-card.type-duplicate .result-header-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.1) 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  color: #fbbf24;
}

.scan-result-card.type-error,
.scan-result-card.type-rejected {
  border: 1.5px solid rgba(244, 63, 94, 0.6);
}
.scan-result-card.type-error .result-header-banner,
.scan-result-card.type-rejected .result-header-banner {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.3) 0%, rgba(225, 29, 72, 0.1) 100%);
  border-bottom: 1px solid rgba(244, 63, 94, 0.25);
  color: #fb7185;
}

/* Result Modal Inner */
.result-header-banner {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-status-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.result-status-title {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-close-x-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.result-close-x-btn:hover {
  color: #ffffff;
}

.result-body-content {
  padding: 22px 20px;
}

.result-name-text {
  font-family: 'Sora', var(--font-main);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.25;
  word-break: break-word;
}

.result-org-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
  margin: 0 0 14px;
  line-height: 1.4;
}

.result-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.result-meta-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.result-notice-box {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.result-action-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.result-confirm-btn {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: none;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
  background: #ffffff;
  color: #090d16;
}
.result-confirm-btn:active {
  transform: scale(0.97);
}

/* Auto-dismiss Countdown Progress Bar */
.popup-countdown-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3.5px;
  width: 100%;
  background: rgba(56, 189, 248, 0.8);
  transform-origin: left center;
}

/* =========================================================================
   TAB 2: ATTENDEES & GUEST LIST VIEW (Full Tab)
   ========================================================================= */

.scanner-attendees-view {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 72px 16px 85px; /* header + bottom nav offset */
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #080c14;
}

/* Metric Cards Grid */
.attendees-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-micro-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  backdrop-filter: blur(12px);
}
.stat-micro-card .stat-num {
  font-family: 'Sora', var(--font-main);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}
.stat-micro-card .stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-top: 2px;
}
.stat-micro-card.highlight {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.08);
}
.stat-micro-card.highlight .stat-num {
  color: #34d399;
}

/* Search Toolbar */
.attendees-search-box {
  position: relative;
  width: 100%;
}
.attendees-search-box input {
  width: 100%;
  height: 44px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0 40px 0 38px;
  font-size: 0.88rem;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.attendees-search-box input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.attendees-search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.attendees-search-box .clear-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Filter Chip Switchers */
.attendees-filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.attendees-filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-chip.active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #080c14;
}

/* Attendees Cards List */
.attendees-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attendee-row-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  backdrop-filter: blur(10px);
}
.attendee-row-card:hover,
.attendee-row-card:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.attendee-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.attendee-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.attendee-card-info {
  min-width: 0;
  flex: 1;
}

.attendee-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.attendee-card-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendee-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.attendee-time-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.manual-checkin-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: #38bdf8;
  border: none;
  color: #080c14;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.manual-checkin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Empty State */
.attendees-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}
.attendees-empty-state svg,
.attendees-empty-state i {
  width: 42px;
  height: 42px;
  stroke: #475569;
  margin-bottom: 10px;
}
.attendees-empty-state p {
  font-size: 0.85rem;
  margin: 0;
}

/* =========================================================================
   BOTTOM NAVIGATION BAR (2 Primary Tabs)
   ========================================================================= */

.scanner-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: max(calc(60px + env(safe-area-inset-bottom, 0px)), 64px);
  padding-bottom: env(safe-area-inset-bottom, 6px);
  background: rgba(10, 15, 28, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.nav-tab-button {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  padding: 6px 0;
}

.nav-tab-button svg,
.nav-tab-button i {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
  transition: transform 0.18s ease;
}

.nav-tab-button.active {
  color: #38bdf8;
}
.nav-tab-button.active svg,
.nav-tab-button.active i {
  transform: translateY(-1px);
}

.nav-badge-pill {
  position: absolute;
  top: 6px;
  right: calc(50% - 24px);
  background: #10b981;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 16px;
  text-align: center;
}

/* =========================================================================
   ATTENDEE FULL DETAIL MODAL
   ========================================================================= */

.attendee-detail-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.2s ease-out both;
}

.attendee-detail-card {
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
  padding: 24px 20px;
  position: relative;
  animation: popInCard 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.attendee-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.detail-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.detail-info-row:last-child {
  border-bottom: none;
}
.detail-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
}
.detail-info-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  word-break: break-word;
}




