@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; }
}

/* =========================================================================
   MOBILE-FIRST QR SCANNER WEB APPLICATION (scanner.kamranrazzaq.tech)
   ========================================================================= */

.mobile-scanner-app {
  margin: 0;
  padding: 0;
  background: #090d16;
  color: #f8fafc;
  font-family: var(--font-main);
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: fixed;
  user-select: none;
  -webkit-user-select: none;
}
.mobile-scanner-app::before, .mobile-scanner-app::after { display: none; }

/* Lock Screen */
.scanner-lock-screen {
  position: fixed;
  inset: 0;
  background: #090d16;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.scanner-lock-screen .lock-card {
  width: 100%;
  max-width: 380px;
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.scanner-lock-screen input {
  height: 48px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  padding: 0 14px;
}

/* Scanner Container */
.scanner-mobile-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  position: relative;
  background: #000;
}

/* App 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, 12px), 12px) 16px 12px;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.92) 0%, rgba(9, 13, 22, 0.6) 70%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.scanner-app-header .header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.scanner-app-header .brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.scanner-app-header .counter-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.16);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  width: fit-content;
}

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

.scanner-app-header .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.scanner-app-header .icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.25);
}

/* Camera Feed & Viewfinder */
.scanner-camera-section {
  flex: 1;
  position: relative;
  width: 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;
}

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

/* Custom 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;
}

.viewfinder-box {
  position: relative;
  width: min(74vw, 290px);
  height: min(74vw, 290px);
  border-radius: 20px;
  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.3);
}

/* Futuristic Framing Corners */
.viewfinder-box .corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: #00eefc;
  border-style: solid;
  border-width: 0;
  transition: border-color 0.2s ease;
}
.viewfinder-box.pulse-detected .corner {
  border-color: #10b981;
}

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

/* Animated Laser Beam */
.viewfinder-box .laser-beam {
  position: absolute;
  top: 0; left: 6px; right: 6px;
  height: 2.5px;
  background: linear-gradient(90deg, transparent 0%, #00eefc 50%, transparent 100%);
  box-shadow: 0 0 12px #00eefc, 0 0 20px #00eefc;
  animation: laserScan 2.4s ease-in-out infinite alternate;
  border-radius: 2px;
}

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

.viewfinder-hint {
  margin-top: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.65);
  padding: 6px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.02em;
}

/* Camera Launch Fallback */
.camera-start-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 24px;
}
.camera-launch-btn {
  height: 52px;
  padding: 0 28px;
  font-size: 1rem;
  font-weight: 700;
}

/* Slide-up Result Card */
.scan-result-drawer {
  position: absolute;
  bottom: 120px;
  left: 16px;
  right: 16px;
  z-index: 100;
  animation: slideUpSpring 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUpSpring {
  from { opacity: 0; transform: translateY(60px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.result-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
}

.result-card-inner.card-type-success {
  background: rgba(16, 185, 129, 0.92);
  border: 1.5px solid #34d399;
  color: #ffffff;
}

.result-card-inner.card-type-duplicate {
  background: rgba(245, 158, 11, 0.94);
  border: 1.5px solid #fde68a;
  color: #111827;
}

.result-card-inner.card-type-error {
  background: rgba(244, 63, 94, 0.94);
  border: 1.5px solid #fecdd3;
  color: #ffffff;
}

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

.result-details {
  flex: 1;
  min-width: 0;
}

.result-status-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.22);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.result-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 2px;
  line-height: 1.25;
  word-break: break-word;
}

.result-company {
  font-size: 0.85rem;
  opacity: 0.95;
  margin: 0 0 4px;
  font-weight: 500;
}

.result-meta {
  font-size: 0.74rem;
  opacity: 0.85;
}

.result-close-btn {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
}

/* Bottom Collapsible Tray */
.scanner-bottom-tray {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-bottom: max(env(safe-area-inset-bottom, 8px), 8px);
}

.tray-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tray-tab {
  flex: 1;
  height: 40px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.tray-tab.active {
  color: #00eefc;
  border-bottom-color: #00eefc;
  background: rgba(0, 238, 252, 0.05);
}

.tray-content {
  padding: 10px 14px;
  max-height: 140px;
  overflow-y: auto;
}

.arrivals-scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arrival-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
}

.arrival-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.arrival-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arrival-text strong { color: #fff; margin-right: 6px; }
.arrival-text small { color: #94a3b8; }

.arrival-pill time {
  color: #64748b;
  font-size: 0.72rem;
}

/* Mobile Search in Tray */
.mobile-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.mobile-search-bar input {
  flex: 1;
  height: 38px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  padding: 0 10px;
}
.mobile-search-bar .btn-primary {
  height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.mobile-lookup-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.8rem;
}
.mobile-search-item strong { display: block; color: #ffffff; }
.mobile-search-item .muted { color: #94a3b8; font-size: 0.75rem; }



