/* ═══════════════════════════════════════════════════════════════════════
   NXTOPS DIGITAL PILOT PASSPORT & HUB MASTERY STYLES
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Compact Passport Card in Pilot Center ─── */
.pilot-passport-card {
  background: linear-gradient(145deg, #0e1726 0%, #070d19 100%);
  border: 1px solid rgba(241, 198, 93, 0.28);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.pilot-passport-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f1c65d, #eab308, #ca8a04);
}

.passport-cover-header {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.passport-emblem-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(241, 198, 93, 0.1);
  border: 1px solid rgba(241, 198, 93, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(241, 198, 93, 0.15);
}

.passport-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f1c65d;
  margin-bottom: 3px;
}

.passport-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

.passport-open-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(241, 198, 93, 0.12);
  border: 1px solid rgba(241, 198, 93, 0.35);
  color: #fce79a;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.passport-open-btn:hover {
  background: rgba(241, 198, 93, 0.24);
  color: #ffffff;
  border-color: #f1c65d;
  transform: translateY(-1px);
}

/* ─── Summary Strip ─── */
.passport-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.passport-mini-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.passport-mini-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.passport-mini-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.passport-mini-val strong {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.passport-mini-val small {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

/* ─── Stamps Preview Row ─── */
.passport-stamps-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.passport-stamps-preview-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.passport-stamps-preview-title small {
  color: #64748b;
}

.passport-stamps-row {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 4px 16px 4px;
}

.passport-stamp-badge {
  border: 2px dashed currentColor;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: "Courier New", Courier, monospace;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background: rgba(14, 23, 38, 0.6);
  flex-shrink: 0;
}

.stamp-country-code {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.stamp-port {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.stamp-date {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.stamp-type {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-top: 2px;
}

.passport-empty-stamps-hint {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 12.5px;
  color: #94a3b8;
  text-align: center;
}

/* ─── Hub Bar ─── */
.passport-hub-preview-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.passport-hub-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.passport-hub-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.passport-hub-fill {
  height: 100%;
  background: linear-gradient(90deg, #f1c65d, #00e676);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.passport-hubs-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.passport-hub-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.passport-hub-chip.is-mastered {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.4);
  color: #00e676;
}

/* ═══════════════════════════════════════════════════════════════════════
   FULL PASSPORT BOOKLET MODAL
   ═══════════════════════════════════════════════════════════════════════ */
.passport-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: passport-fade-in 0.25s ease;
}

@keyframes passport-fade-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.passport-booklet-shell {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: #0b1322;
  border: 2px solid rgba(241, 198, 93, 0.35);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.passport-booklet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(180deg, #162033 0%, #0e1726 100%);
  border-bottom: 1px solid rgba(241, 198, 93, 0.25);
}

.passport-booklet-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.passport-gold-star {
  color: #f1c65d;
  font-size: 16px;
}

.passport-booklet-header h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0;
}

.passport-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.passport-modal-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

/* Tabs */
.passport-tabs-nav {
  display: flex;
  background: #080d17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px;
  gap: 4px;
  overflow-x: auto;
}

.passport-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.passport-tab-btn:hover {
  color: #ffffff;
}

.passport-tab-btn.is-active {
  color: #f1c65d;
  border-bottom-color: #f1c65d;
}

/* Pages Viewport */
.passport-pages-viewport {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.passport-page.is-hidden {
  display: none !important;
}

/* ID Card Page */
.passport-id-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.passport-id-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.passport-id-doc-type {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #f1c65d;
}

.passport-id-reg {
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
}

.passport-id-main {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.passport-photo-frame {
  width: 120px;
  height: 150px;
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.passport-pilot-avatar {
  font-size: 48px;
  font-weight: 900;
  color: #f1c65d;
}

.passport-photo-seal {
  position: absolute;
  bottom: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 230, 118, 0.2);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: #00e676;
}

.passport-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  flex: 1;
}

.passport-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.passport-field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.passport-field strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.passport-mrz-zone {
  background: #020617;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.passport-mrz-zone code {
  font-family: "OCR-B", "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #94a3b8;
  white-space: nowrap;
}

/* Page Section Headings */
.passport-section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.passport-section-title h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.passport-section-title p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}

.passport-badge-ribbon {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(241, 198, 93, 0.12);
  border: 1px solid rgba(241, 198, 93, 0.35);
  color: #f1c65d;
}

.passport-badge-ribbon.is-complete {
  background: rgba(0, 230, 118, 0.15);
  border-color: rgba(0, 230, 118, 0.5);
  color: #00e676;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.25);
}

.passport-stat-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Hubs Grid */
.passport-hubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.passport-hub-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.passport-hub-card.is-mastered {
  background: rgba(0, 230, 118, 0.06);
  border-color: rgba(0, 230, 118, 0.3);
}

.passport-hub-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hub-icao-badge {
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.hub-status-pill {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #64748b;
}

.passport-hub-card.is-mastered .hub-status-pill {
  background: #00e676;
  color: #0c2340;
}

.passport-hub-card-body strong {
  display: block;
  font-size: 13.5px;
  color: #f1f5f9;
}

.passport-hub-card-body small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Visas Page */
.passport-visas-stamps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 10px;
}

.passport-visa-stamp-card {
  border: 2px dashed currentColor;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  font-family: "Courier New", Courier, monospace;
}

.visa-stamp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.visa-stamp-center {
  text-align: center;
  padding: 6px 0;
}

.visa-port {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.visa-city {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.visa-stamp-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.8;
  border-top: 1px dotted currentColor;
  padding-top: 6px;
}

.passport-empty-view {
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.passport-empty-icon {
  font-size: 42px;
}

.passport-empty-view h4 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.passport-empty-view p {
  font-size: 13px;
  color: #94a3b8;
  max-width: 380px;
  margin: 0;
}

/* Goals Grid */
.passport-goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.passport-goal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.passport-goal-card.is-unlocked {
  background: rgba(241, 198, 93, 0.06);
  border-color: rgba(241, 198, 93, 0.35);
}

.passport-goal-icon-frame {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  font-size: 20px;
}

.passport-goal-card.is-unlocked .passport-goal-icon-frame {
  background: rgba(241, 198, 93, 0.15);
}

.goal-star {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 12px;
  color: #f1c65d;
}

.passport-goal-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.goal-header h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.goal-reward {
  font-size: 10.5px;
  font-weight: 800;
  color: #f1c65d;
}

.goal-desc {
  font-size: 11px;
  color: #94a3b8;
  margin: 2px 0 6px 0;
  line-height: 1.35;
}

.goal-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.goal-progress-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.goal-progress-fill {
  height: 100%;
  background: #60a5fa;
  border-radius: 9999px;
}

.passport-goal-card.is-unlocked .goal-progress-fill {
  background: #00e676;
}

.goal-progress-text {
  font-size: 10px;
  font-weight: 800;
  color: #cbd5e1;
}

.passport-goal-card.is-unlocked .goal-progress-text {
  color: #00e676;
}
