.staff-portal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(3, 4, 7, 0.96);
  backdrop-filter: blur(25px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.2rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.staff-portal-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}
.portal-close-corner-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.portal-close-corner-btn:hover {
  background: #ff4757;
  border-color: #ff4757;
  transform: rotate(90deg);
}

/* Staff Login Card */
.staff-login-card {
  width: 100%;
  max-width: 450px;
  background: rgba(14, 18, 30, 0.95);
  border: 1px solid rgba(255, 71, 87, 0.4);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 15px 60px rgba(255, 71, 87, 0.2), 0 0 40px rgba(0,0,0,0.8);
  position: relative;
  margin-top: 5vh;
  animation: modalScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.staff-lock-icon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}
.lock-shield {
  position: absolute;
  bottom: 0;
  right: -8px;
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px #ff4757);
}
.portal-login-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.portal-login-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.8rem;
}
.login-hint-text {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 1.5rem;
}
.login-hint-text code {
  color: var(--cyan);
  background: rgba(0, 234, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Staff Console Dashboard */
.staff-console-card {
  width: 98%;
  max-width: 1540px;
  height: calc(100vh - 2.4rem);
  max-height: calc(100vh - 2.4rem);
  background: rgba(10, 13, 24, 0.98);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.95), 0 0 50px rgba(171, 0, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 auto;
  animation: modalScale 0.25s ease-out;
}
.staff-console-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.8rem;
  background: rgba(6, 8, 14, 0.95);
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 1rem;
}
.console-brand-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.console-logo {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}
.console-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
}
.console-title span {
  color: var(--cyan);
}
.console-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Console Integrated Website Navigation Bar */
.console-web-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.8rem;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
}
.web-nav-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-right: 0.2rem;
}
.btn-console-nav-home {
  background: rgba(0, 234, 255, 0.15);
  border: 1px solid rgba(0, 234, 255, 0.4);
  color: var(--cyan);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-console-nav-home:hover {
  background: var(--cyan);
  color: #000;
}
.btn-console-nav-link {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-console-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.portal-close-top-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.4);
  color: #ff4757;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}
.portal-close-top-btn:hover {
  background: #ff4757;
  color: #fff;
  transform: scale(1.1);
}

.console-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.console-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(171, 0, 255, 0.15);
  border: 1px solid rgba(171, 0, 255, 0.4);
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #e0aaff;
  font-weight: 700;
}
.console-clock {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  background: rgba(0, 234, 255, 0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 234, 255, 0.2);
}

/* Console Nav Tabs */
.console-nav-tabs {
  flex-shrink: 0;
  display: flex;
  background: rgba(8, 10, 18, 0.85);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.5rem 1.5rem 0;
  gap: 0.5rem;
  overflow-x: auto;
}
.console-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-brand);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition);
  white-space: nowrap;
}
.console-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}
.console-tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(0, 234, 255, 0.06);
}
.tab-counter-badge {
  background: #ffa502;
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}

/* Console Body & Panels (Butter-smooth scrolling, NO FREEZING!) */
.console-tab-body {
  padding: 1.8rem 2rem 3.5rem;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.console-tab-panel {
  display: none;
}
.console-tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}
.tab-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.panel-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 1px;
}
.panel-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

/* Database Toolbar */
.database-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  background: rgba(6, 8, 14, 0.6);
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border-glass);
}
.search-box-wrap {
  flex: 1;
  min-width: 280px;
}
.filter-controls-group {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Inline Management Forms */
.management-inline-card {
  background: rgba(14, 18, 32, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: slideToast 0.3s ease-out;
}

/* Settings Grid */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.settings-card {
  background: rgba(8, 10, 18, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 2rem;
}
.settings-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--cyan);
  margin-bottom: 1.4rem;
  letter-spacing: 1px;
}

/* Action Button Styles */
.btn-action-view {
  background: rgba(0, 234, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 234, 255, 0.35);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}
.btn-action-view:hover {
  background: var(--cyan);
  color: #000;
}
.btn-action-approve {
  background: rgba(46, 213, 115, 0.15);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.35);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}
.btn-action-approve:hover {
  background: #2ed573;
  color: #000;
}
.btn-action-reject {
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.35);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}
.btn-action-reject:hover {
  background: #ff4757;
  color: #fff;
}
.btn-action-delete {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: var(--transition);
}
.btn-action-delete:hover {
  color: #ff4757;
  border-color: #ff4757;
}

/* ==========================================================================
   APPLICATION DOSSIER INSPECTOR MODAL
   ========================================================================== */
.dossier-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: rgba(2, 3, 5, 0.92);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.dossier-card {
  width: 92%;
  max-width: 860px;
  max-height: 90vh;
  background: rgba(12, 15, 28, 0.98);
  border: 1px solid var(--border-glow);
  border-radius: 22px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: modalScale 0.25s ease-out;
}
.dossier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.8rem 2rem;
  background: rgba(8, 10, 18, 0.9);
  border-bottom: 1px solid var(--border-glass);
}
.dossier-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.dossier-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  margin: 0.2rem 0;
}
.dossier-ticket-ref {
  font-family: var(--font-mono);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 700;
}
.dossier-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}
.dossier-meta-bar {
  display: flex;
  gap: 2rem;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.dossier-meta-bar strong {
  color: #fff;
}
.dossier-section {
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
}
.dossier-section-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.dossier-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.92rem;
}
.dossier-field-grid label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 3px;
}
.dossier-text-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
}
.btn-mini-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  transition: var(--transition);
}
.btn-mini-copy:hover {
  background: var(--cyan);
  color: #000;
}
.dossier-footer {
  display: flex;
  gap: 1rem;
  padding: 1.4rem 2rem;
  background: rgba(8, 10, 18, 0.9);
  border-top: 1px solid var(--border-glass);
  flex-wrap: wrap;
}
.btn-approve {
  background: #2ed573;
  color: #000;
  font-weight: 800;
  font-family: var(--font-brand);
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  border: none;
  transition: var(--transition);
}
.btn-approve:hover {
  background: #26af5f;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(46, 213, 115, 0.4);
}
.btn-reject {
  background: #ff4757;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-brand);
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  border: none;
  transition: var(--transition);
}
.btn-reject:hover {
  background: #d63031;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .dossier-field-grid {
    grid-template-columns: 1fr;
  }
  .staff-console-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   OFFICIAL BRAND LOGOS PLACEMENT (MAIN LOGO 1 + TITLE BANNER 2)
   ========================================================================== */
.brand-logo, .brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

/* Navbar Main Emblem (Logo 1) */
.brand-img, .brand-logo-img {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 10px rgba(0, 234, 255, 0.6)) drop-shadow(0 0 16px rgba(171, 0, 255, 0.5));
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-logo:hover .brand-img {
  transform: scale(1.1) rotate(-3deg);
}

/* Hero Dual Brand Showcase */
.hero-brand-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.2rem auto 1.4rem;
  width: 100%;
}

.hero-banner-title-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 480px;
}

/* Wide Horizontal Title Banner */
.hero-banner-title-img {
  width: 100% !important;
  max-width: 440px !important;
  height: auto !important;
  display: block;
  filter: drop-shadow(0 0 30px rgba(0, 234, 255, 0.75)) drop-shadow(0 0 20px rgba(171, 0, 255, 0.6));
  animation: heroMainEmblemFloat 4s ease-in-out infinite alternate;
}

@keyframes heroMainEmblemFloat {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-7px) scale(1.02); }
}

@media (max-width: 768px) {
  .hero-main-logo-emblem {
    width: 110px !important;
    max-width: 110px !important;
  }
  .hero-banner-title-img {
    max-width: 290px !important;
  }
}


/* ==========================================================================
   OFFICIAL ENTRY TICKET / BOARDING PASS COLOR THEMES & SIZING FIX
   ========================================================================== */
#ticket-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100060 !important;
  background: rgba(3, 4, 8, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem !important;
}
#ticket-modal-overlay.active {
  display: flex !important;
}

.ticket-modal-container {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: modalScale 0.25s ease-out;
}

.flight-ticket {
  width: 100% !important;
  max-width: 820px !important;
  border-radius: 18px !important;
  display: flex !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95) !important;
  border: 1.5px solid var(--border-glow);
  transition: all 0.3s ease;
}

/* 1. APPROVED / ACCEPTED (Green Status Accent + Theme Left + Pure White Right Stub) */
.flight-ticket.ticket-approved {
  border-color: rgba(46, 213, 115, 0.6) !important;
  box-shadow: 0 25px 80px rgba(0,0,0,0.9), 0 0 35px rgba(46, 213, 115, 0.25) !important;
}
.flight-ticket.ticket-approved .ticket-left {
  background: linear-gradient(135deg, #0c0a1e 0%, #150f33 100%) !important;
  border-right-color: rgba(255, 255, 255, 0.15) !important;
}
.flight-ticket.ticket-approved .ticket-type-badge,
.flight-ticket.ticket-approved .flight-icon-center {
  color: #2ed573 !important;
  border-color: #2ed573 !important;
  background: rgba(46, 213, 115, 0.15) !important;
}
.flight-ticket.ticket-approved .ticket-right {
  background: #ffffff !important;
  color: #0f172a !important;
}
.flight-ticket.ticket-approved .stub-header {
  color: #0f172a !important;
  border-bottom: 2px solid #e2e8f0 !important;
}
.flight-ticket.ticket-approved .stub-lbl,
.flight-ticket.ticket-approved .qr-lbl {
  color: #64748b !important;
}
.flight-ticket.ticket-approved .stub-val {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* 2. REJECTED / DECLINED (Red Theme Left + Pure White Right Stub) */
.flight-ticket.ticket-rejected {
  border-color: rgba(255, 71, 87, 0.6) !important;
  box-shadow: 0 25px 80px rgba(0,0,0,0.9), 0 0 35px rgba(255, 71, 87, 0.25) !important;
}
.flight-ticket.ticket-rejected .ticket-left {
  background: linear-gradient(135deg, #0c0a1e 0%, #150f33 100%) !important;
  border-right-color: rgba(255, 255, 255, 0.15) !important;
}
.flight-ticket.ticket-rejected .ticket-type-badge,
.flight-ticket.ticket-rejected .flight-icon-center {
  color: #ff4757 !important;
  border-color: #ff4757 !important;
  background: rgba(255, 71, 87, 0.15) !important;
}
.flight-ticket.ticket-rejected .ticket-right {
  background: #ffffff !important;
  color: #0f172a !important;
}
.flight-ticket.ticket-rejected .stub-header {
  color: #0f172a !important;
  border-bottom: 2px solid #e2e8f0 !important;
}
.flight-ticket.ticket-rejected .stub-lbl,
.flight-ticket.ticket-rejected .qr-lbl {
  color: #64748b !important;
}
.flight-ticket.ticket-rejected .stub-val {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* 3. PENDING REVIEW (Amber Accent + Theme Left + Pure White Right Stub) */
.flight-ticket.ticket-pending {
  border-color: rgba(255, 165, 2, 0.6) !important;
  box-shadow: 0 25px 80px rgba(0,0,0,0.9), 0 0 35px rgba(255, 165, 2, 0.25) !important;
}
.flight-ticket.ticket-pending .ticket-left {
  background: linear-gradient(135deg, #0c0a1e 0%, #150f33 100%) !important;
  border-right-color: rgba(255, 255, 255, 0.15) !important;
}
.flight-ticket.ticket-pending .ticket-type-badge,
.flight-ticket.ticket-pending .flight-icon-center {
  color: #ffa502 !important;
  border-color: #ffa502 !important;
  background: rgba(255, 165, 2, 0.15) !important;
}
.flight-ticket.ticket-pending .ticket-right {
  background: #ffffff !important;
  color: #0f172a !important;
}
.flight-ticket.ticket-pending .stub-header {
  color: #0f172a !important;
  border-bottom: 2px solid #e2e8f0 !important;
}
.flight-ticket.ticket-pending .stub-lbl,
.flight-ticket.ticket-pending .qr-lbl {
  color: #64748b !important;
}
.flight-ticket.ticket-pending .stub-val {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* Ticket Details Values */
.val.status-approved {
  color: #2ed573 !important;
  font-weight: 800;
}
.val.status-rejected {
  color: #ff4757 !important;
  font-weight: 800;
}
.val.status-pending {
  color: #ffa502 !important;
  font-weight: 800;
}

/* Stub QR Box and Icon Constraint */
.stub-qr-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0.8rem 0 !important;
}
.qr-placeholder {
  width: 90px !important;
  height: 90px !important;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
  position: relative !important;
  overflow: hidden !important;
}
.qr-center-icon {
  width: 65px !important;
  height: 65px !important;
  max-width: 65px !important;
  max-height: 65px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 10px rgba(0, 234, 255, 0.4)) !important;
}
.qr-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-top: 6px;
  text-transform: uppercase;
}

/* Database Subnav Buttons */
.db-subnav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 8, 14, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  gap: 0.5rem;
}
.db-subnav-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.db-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.db-subnav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.db-subnav-btn.active {
  background: rgba(0, 234, 255, 0.12);
  border-color: rgba(0, 234, 255, 0.35);
  color: var(--cyan);
}
.db-pill-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.db-subnav-btn.active .db-pill-count {
  background: var(--cyan);
  color: #000;
  font-weight: 800;
}
.db-dept-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  background: rgba(10, 14, 24, 0.6);
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}
.dept-chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-brand);
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.dept-chip-btn:hover, .dept-chip-btn.active {
  background: rgba(171, 0, 255, 0.2);
  border-color: var(--primary-light);
  color: #fff;
}


/* ==========================================================================
   FUTURISTIC CYBERPUNK CURSOR SYSTEM
   ========================================================================== */
* {
  cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='3' fill='%2300ff88'/%3E%3Ccircle cx='12' cy='12' r='7' stroke='%2300ff88' stroke-width='1.2' stroke-dasharray='2 2' opacity='0.7'/%3E%3Cpath d='M12 2V5M12 19V22M2 12H5M19 12H22' stroke='%2300ff88' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 12 12, auto;
}

a, button, select, input, textarea, [role="button"], .clickable, .dept-chip-btn, .category-btn, .db-subnav-btn, .console-tab-btn {
  cursor: url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='13' cy='13' r='4' fill='%2300ff88'/%3E%3Ccircle cx='13' cy='13' r='9' stroke='%2300ff88' stroke-width='1.5' opacity='0.9'/%3E%3Cpath d='M13 1V5M13 21V25M1 13H5M21 13H25' stroke='%2300ff88' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") 13 13, pointer !important;
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  background: #00ff88;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%);
  transition: transform 0.03s ease-out;
  box-shadow: 0 0 10px #00ff88, 0 0 20px rgba(0, 255, 136, 0.8), 0 0 4px #ffffff;
}

/* ==========================================================================
   DISCORD AUTOMATION & RBAC STYLES
   ========================================================================== */
.auth-tabs-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}
.auth-tab-btn {
  flex: 1;
  padding: 0.7rem 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.auth-tab-btn.active {
  background: rgba(88, 101, 242, 0.22);
  border-color: #5865f2;
  color: #fff;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
}

.discord-subnav-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  background: rgba(6, 8, 14, 0.6);
  padding: 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}
.discord-subnav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.discord-subnav-btn:hover {
  background: rgba(88, 101, 242, 0.12);
  color: #fff;
  border-color: rgba(88, 101, 242, 0.3);
}
.discord-subnav-btn.active {
  background: rgba(88, 101, 242, 0.25);
  border-color: #5865f2;
  color: #fff;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.25);
}

.discord-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
}
.discord-role-pill .role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.webhook-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}
.webhook-status-badge.active {
  background: rgba(46, 213, 115, 0.15);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.3);
}
.webhook-status-badge.unset {
  background: rgba(255, 165, 2, 0.15);
  color: #ffa502;
  border: 1px solid rgba(255, 165, 2, 0.3);
}

/* Authentic Discord Message Simulator */
.discord-simulator-wrap {
  background: #313338;
  border-radius: 12px;
  padding: 1.4rem;
  border: 1px solid #232428;
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #dbdee1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  margin-top: 1.2rem;
}
.discord-msg-row {
  display: flex;
  gap: 1rem;
}
.discord-bot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.discord-msg-content {
  flex: 1;
}
.discord-msg-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.discord-bot-name {
  font-weight: 600;
  color: #f2f3f5;
  font-size: 0.95rem;
}
.discord-bot-tag {
  background: #5865f2;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.discord-msg-time {
  font-size: 0.72rem;
  color: #949ba4;
}
.discord-msg-body {
  font-size: 0.92rem;
  line-height: 1.4;
  white-space: pre-wrap;
  margin-bottom: 0.8rem;
}
.discord-user-mention {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.discord-embed-card {
  border-left: 4px solid #00ff88;
  background: #2b2d31;
  border-radius: 4px;
  padding: 0.8rem 1rem;
  max-width: 580px;
}
.discord-embed-thumb-wrap {
  margin-top: 0.6rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.discord-embed-thumb-img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

/* ==========================================================================
   DEPARTMENT APPLICATIONS DESK
   ========================================================================== */
.dept-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.dept-select-card {
  background: rgba(14, 18, 32, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.dept-select-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 234, 255, 0.15);
  background: rgba(20, 28, 48, 0.95);
}
.dept-select-card.active {
  border-color: var(--neon-cyan);
  background: linear-gradient(135deg, rgba(0, 234, 255, 0.15) 0%, rgba(14, 18, 32, 0.9) 100%);
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
}
.dept-select-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00eaff, #ab00ff);
}
.dept-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.dept-card-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.dept-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 165, 2, 0.2);
  color: #ffa502;
  border: 1px solid rgba(255, 165, 2, 0.4);
}
.dept-card-badge.has-pending {
  background: rgba(255, 71, 87, 0.25);
  color: #ff6b81;
  border-color: rgba(255, 71, 87, 0.6);
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}
.dept-card-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}
.dept-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.btn-dept-accept {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.6);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}
.btn-dept-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

