/* NxtOps Authentication Modal & Navigation Controls */
.nxtops-auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 10, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.nxtops-auth-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.nxtops-auth-modal {
  width: 100%;
  max-width: 460px;
  background: rgba(15, 21, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(124, 228, 194, 0.15);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  color: #e2e8f0;
}

.nxtops-auth-backdrop.is-active .nxtops-auth-modal {
  transform: translateY(0) scale(1);
}

.nxtops-auth-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.nxtops-auth-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: scale(1.05);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ce4c2;
  background: rgba(124, 228, 194, 0.1);
  border: 1px solid rgba(124, 228, 194, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.auth-header h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.auth-header p {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0;
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.auth-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.auth-field input,
.auth-field select {
  width: 100%;
  background: rgba(8, 12, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: #7ce4c2;
  box-shadow: 0 0 0 3px rgba(124, 228, 194, 0.2);
}

.auth-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
  line-height: 1.4;
}

.auth-error.is-visible {
  display: block;
}

.auth-submit {
  margin-top: 8px;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
  filter: brightness(1.1);
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Pilot header navigation actions & badges */
.nav-status-slot,
.dashboard-actions,
.account {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.nav-admin-btn,
.nav-tracker-btn,
.pilot-user-pill {
  display: inline-flex !important;
  align-items: center !important;
  height: 38px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  border-radius: 999px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  letter-spacing: 0.15px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* Admin Console Pill Button */
.nav-admin-btn {
  gap: 7px !important;
  padding: 0 14px !important;
  background: rgba(234, 179, 8, 0.08) !important;
  border: 1px solid rgba(234, 179, 8, 0.28) !important;
  color: #fef08a !important;
  font-weight: 600 !important;
}
.nav-admin-btn svg {
  color: #facc15 !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease !important;
}
.nav-admin-btn:hover {
  background: rgba(234, 179, 8, 0.16) !important;
  border-color: rgba(234, 179, 8, 0.45) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.18) !important;
}
.nav-admin-btn:hover svg {
  transform: scale(1.15) !important;
}

/* Tracker Download Pill Button */
.nav-tracker-btn {
  gap: 7px !important;
  padding: 0 14px !important;
  background: rgba(124, 228, 194, 0.08) !important;
  border: 1px solid rgba(124, 228, 194, 0.24) !important;
  color: #7ce4c2 !important;
  font-weight: 600 !important;
}
.nav-tracker-btn svg {
  color: #7ce4c2 !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease !important;
}
.nav-tracker-btn:hover {
  background: rgba(124, 228, 194, 0.16) !important;
  border-color: rgba(124, 228, 194, 0.45) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(124, 228, 194, 0.18) !important;
}
.nav-tracker-btn:hover svg {
  transform: translateY(1px) !important;
}

/* Pilot Profile Pill */
.pilot-user-pill {
  gap: 9px !important;
  padding: 0 14px 0 12px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f4f2 !important;
  font-weight: 500 !important;
}
.pilot-user-pill:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.pilot-user-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6) !important;
  flex-shrink: 0 !important;
}

.pilot-user-name {
  color: #f1f4f2 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.pilot-user-divider {
  display: inline-block !important;
  width: 1px !important;
  height: 14px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  flex-shrink: 0 !important;
}

.pilot-logout-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 2px 4px !important;
  white-space: nowrap !important;
  transition: color 0.15s ease !important;
  line-height: 1 !important;
}

.pilot-logout-btn:hover {
  color: #f87171 !important;
}

/* ─── Mobile Viewport Adaptations for Auth Modal ─── */
@media (max-width: 480px) {
  .nxtops-auth-backdrop {
    padding: 10px;
  }
  .nxtops-auth-modal {
    padding: 24px 18px;
    border-radius: 20px;
  }
  .auth-header h2 {
    font-size: 21px;
  }
  .auth-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

