/* ==========================================================================
   NOTAM LIVE - AVIATION COCKPIT DESIGN SYSTEM
   Theme: Tactical Aeronautic Dark / Glassmorphism
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-space: #050811;
  --bg-cockpit: #0a0f1d;
  --bg-card: rgba(14, 23, 42, 0.75);
  --bg-card-hover: rgba(20, 32, 58, 0.85);
  --bg-card-active: rgba(30, 48, 86, 0.9);
  --bg-input: rgba(10, 16, 30, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);
  --border-focus: #00f0ff;

  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.25);
  --accent-blue: #3a86ff;
  --accent-amber: #ffb703;
  --accent-amber-glow: rgba(255, 183, 3, 0.25);
  --accent-danger: #ff2a6d;
  --accent-danger-glow: rgba(255, 42, 109, 0.25);
  --accent-emerald: #05d59e;
  --accent-purple: #9d4edd;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-highlight: #ffffff;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Elevations */
  --header-height: 72px;
  --sidebar-width: 380px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-space);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(58, 134, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(5, 8, 17, 1) 0%, #03050a 100%);
}

/* Background Radar Sweeper & Grid Animation */
.radar-bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

.radar-sweep {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 330deg, rgba(0, 240, 255, 0.04) 360deg);
  border-radius: 50%;
  animation: radarRotate 18s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.radar-pulsing-icon {
  position: relative;
  width: 36px;
  height: 36px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.radar-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  animation: pulseEffect 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseEffect {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-njttech {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(56, 189, 248, 0.25) 100%);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.badge-njttech:hover {
  background: var(--accent-cyan, #00f0ff);
  color: #0b1120;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(5, 213, 158, 0.1);
  border: 1px solid rgba(5, 213, 158, 0.3);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-emerald);
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: blinkIndicator 1.8s ease-in-out infinite alternate;
}

@keyframes blinkIndicator {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.header-status-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 14px;
}

/* Zulu Clock */
.zulu-clock-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.zulu-label {
  font-size: 9px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.zulu-time {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.zulu-date {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff 0%, #0077ff 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glow);
  color: var(--accent-cyan);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(14, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.btn-sm:hover {
  color: #fff;
  border-color: var(--accent-cyan);
}

.btn-search-primary {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #00f0ff 0%, #0077ff 100%);
  color: #050811;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.3);
}

.btn-search-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.45);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.app-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  gap: 20px;
  padding: 20px 28px;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
}

/* Sidebar */
.query-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-section {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-highlight);
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* Tab Selector */
.tabs-group {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.tab-btn {
  flex: 1;
  padding: 7px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

/* Form Inputs */
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: var(--accent-cyan);
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 11px 36px 11px 38px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  background: rgba(14, 23, 42, 0.95);
}

.clear-input-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}

.clear-input-btn:hover {
  color: #fff;
}

/* Quick Hub Chips */
.quick-airports {
  margin-top: 14px;
}

.quick-label {
  font-size: 11px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 8px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--border-glow);
  color: var(--accent-cyan);
}

.chip.active {
  background: var(--accent-cyan);
  color: #050811;
  font-weight: 700;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* Geospatial Input Grid */
.geo-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-col input[type="number"] {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.radius-header {
  display: flex;
  justify-content: space-between;
}

.slider-input {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

/* Category Filters */
.category-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-badge:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.filter-badge.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
}

.dot-danger { background: var(--accent-danger); box-shadow: 0 0 8px var(--accent-danger); }
.dot-warning { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }
.dot-cyan { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.dot-amber { background: #f77f00; box-shadow: 0 0 8px #f77f00; }
.dot-purple { background: var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); }

.count-badge {
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Metrics Cards */
.metrics-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
}

.metric-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.metric-title {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.text-danger { color: var(--accent-danger); }
.text-warning { color: var(--accent-amber); }
.text-cyan { color: var(--accent-cyan); }

/* ==========================================================================
   MAIN CONTENT: MAP & FEED
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Map Card */
.map-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(10, 15, 29, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.map-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-icon {
  font-size: 20px;
}

.map-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-highlight);
}

.map-coords {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
}

.map-controls {
  display: flex;
  gap: 8px;
}

.aviation-map-canvas {
  height: 380px;
  width: 100%;
  background: #03050a;
}

/* Cockpit Glassmorphic Styling for Leaflet Layer Switcher */
.leaflet-control-layers {
  background: rgba(13, 22, 38, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 183, 3, 0.4) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
  color: #f1f5f9 !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 12px !important;
}

.leaflet-control-layers-toggle {
  filter: invert(1) hue-rotate(180deg) brightness(1.2);
}

.leaflet-control-layers-expanded {
  padding: 10px 14px !important;
}

.leaflet-control-layers-base label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  color: #cbd5e1;
  font-weight: 500;
  transition: all 0.15s ease;
}

.leaflet-control-layers-base label:hover {
  color: #ffb703;
  transform: translateX(2px);
}

.leaflet-control-layers-base input[type="radio"] {
  accent-color: #ffb703;
  cursor: pointer;
  transform: scale(1.1);
}

/* NOTAM Feed Container */
.notam-feed-container {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.feed-title-wrapper h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-highlight);
}

.feed-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.feed-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-search-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 8px 14px;
  font-size: 12px;
  min-width: 250px;
}

.feed-search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

/* NOTAM Card Component */
.notam-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notam-card {
  background: rgba(10, 16, 32, 0.7);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--border-glow);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notam-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.notam-card.severity-critical {
  border-left-color: var(--accent-danger);
}

.notam-card.severity-warning {
  border-left-color: var(--accent-amber);
}

.notam-card.severity-info {
  border-left-color: var(--accent-cyan);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.notam-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-id {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  border-radius: 4px;
}

.tag-severity {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tag-severity.critical {
  background: rgba(255, 42, 109, 0.15);
  color: var(--accent-danger);
  border: 1px solid rgba(255, 42, 109, 0.4);
}

.tag-severity.warning {
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 183, 3, 0.4);
}

.tag-severity.info {
  background: rgba(58, 134, 255, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(58, 134, 255, 0.4);
}

.tag-category {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-radius: 4px;
}

.validity-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.validity-pill {
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
}

.validity-pill.active {
  background: rgba(5, 213, 158, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(5, 213, 158, 0.3);
}

/* Decoded Plain Text Summary */
.decoded-summary {
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  font-weight: 500;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.decoded-highlight {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Raw Aviation NOTAM Text */
.raw-notam-details {
  background: rgba(3, 5, 10, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 12px;
}

.raw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
}

.raw-text-block {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--accent-amber);
  margin-top: 8px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Loading & Empty States */
.loading-state, .empty-state {
  text-align: center;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 240, 255, 0.15);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.empty-icon {
  font-size: 40px;
  opacity: 0.5;
}

/* ==========================================================================
   MODAL WINDOW
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 580px;
  background: var(--bg-cockpit);
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 23, 42, 0.6);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 24px;
}

.modal-title-group h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.modal-title-group p {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 70vh;
  overflow-y: auto;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-input, .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: all 0.2s;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.notice-box {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.notice-box code {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(10, 16, 32, 0.8);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   UTILITIES & RESPONSIVENESS
   ========================================================================== */
/* ==========================================================================
   FAVORITE AIRPORTS EDITOR & AIRPORT INFO BANNER
   ========================================================================== */
.quick-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.btn-manage-airports {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--accent-cyan);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-manage-airports:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.add-airport-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.add-airport-inputs {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.add-airport-inputs .icao-mini {
  width: 110px;
  text-transform: uppercase;
}

.airports-list-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.airport-editor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(14, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.airport-editor-row .editor-icao {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.airport-editor-row .editor-name-input {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
}

.airport-editor-row .editor-name-input:focus {
  outline: none;
  background: var(--bg-input);
  border-color: var(--accent-cyan);
}

.btn-delete-chip {
  background: rgba(255, 42, 109, 0.15);
  border: 1px solid rgba(255, 42, 109, 0.3);
  color: var(--accent-danger);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete-chip:hover {
  background: var(--accent-danger);
  color: #fff;
}

/* Airport Info Header Banner */
.airport-spec-banner {
  background: rgba(14, 23, 42, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.airport-spec-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.airport-spec-icao {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.airport-spec-details {
  display: flex;
  flex-direction: column;
}

.airport-spec-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.airport-spec-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.runway-badge {
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid rgba(255, 183, 3, 0.35);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ==========================================================================
   UTILITIES & GLOBAL INTERACTIVE FIXES
   ========================================================================== */
.hidden {
  display: none !important;
}

button, .btn, .btn-sm, .tab-btn, .filter-badge, .chip, .geo-tool-btn, .modal-close-btn, .tag-id, .tag-severity {
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   GEOSPATIAL TOOLS & MAP INTERACTION ENHANCEMENTS
   ========================================================================== */
.map-interactive-container {
  position: relative;
  width: 100%;
}

.map-selection-toast {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(10, 18, 36, 0.92);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.map-selection-toast.box-mode {
  border-color: #ffb703;
  box-shadow: 0 4px 20px rgba(255, 183, 3, 0.35);
  color: #ffb703;
}

.box-corner-pin {
  cursor: pointer;
  z-index: 1000 !important;
}

.btn-sm.active {
  background: rgba(0, 240, 255, 0.22) !important;
  border-color: var(--accent-cyan) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.geo-tool-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.geo-tool-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.geo-tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.geo-tool-btn.active {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

.geo-tool-hint {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(0, 240, 255, 0.08);
  border-left: 3px solid var(--accent-cyan);
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.geo-readonly-input {
  background: rgba(0, 0, 0, 0.4) !important;
  color: var(--accent-cyan) !important;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
}

.btn-download-notams {
  background: rgba(5, 213, 158, 0.16) !important;
  border-color: rgba(5, 213, 158, 0.45) !important;
  color: var(--accent-emerald) !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.btn-download-notams:hover {
  background: rgba(5, 213, 158, 0.32) !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(5, 213, 158, 0.45) !important;
  transform: translateY(-1px);
}

.btn-share-notams {
  background: rgba(0, 119, 255, 0.16) !important;
  border-color: rgba(0, 119, 255, 0.45) !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.btn-share-notams:hover {
  background: rgba(0, 119, 255, 0.35) !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(0, 119, 255, 0.5) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS OVERHAUL
   ========================================================================== */
@media (max-width: 960px) {
  .app-layout {
    flex-direction: column;
    padding: 12px 14px;
    gap: 16px;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .query-sidebar {
    width: 100%;
    min-width: 0;
  }
  .main-content {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .app-header {
    padding: 8px 12px;
    height: auto;
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Row 1: Brand Logo on Left, Real-Time Status & Pilot Access on Right */
  .header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .brand-logo {
    gap: 8px;
  }

  .brand-title-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
  }

  .brand-text h1 {
    font-size: 13px !important;
    letter-spacing: 0.02em;
    line-height: 1.1;
    white-space: nowrap;
  }

  .badge-njttech {
    font-size: 7.5px !important;
    padding: 1px 4px !important;
    line-height: 1;
    border-radius: 3px;
    letter-spacing: 0.3px;
  }

  .radar-pulsing-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  /* Status Cluster on Mobile (Zulu + Quota + Pilot) */
  .header-status-cluster {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  .zulu-clock-card {
    padding: 3px 5px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }

  .zulu-label {
    display: none;
  }

  .zulu-time {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .zulu-date {
    display: none;
  }

  .quota-pill {
    padding: 3px 5px !important;
    font-size: 10.5px !important;
    border-radius: 6px;
    gap: 2px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .quota-prefix {
    display: none; /* Shows '0/3' or '10/10' compactly on mobile */
  }

  .quota-icon {
    font-size: 10.5px;
  }

  .auth-trigger-btn {
    padding: 3px 6px;
    font-size: 11px;
    border-radius: 6px;
    gap: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
  }

  .auth-trigger-btn span {
    display: none; /* Hide 'Pilot Access' label on mobile to ensure 100% fit */
  }

  .auth-trigger-btn svg {
    width: 14px;
    height: 14px;
  }

  .user-profile-badge {
    padding: 2px 5px;
    max-width: 95px;
    border-radius: 6px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .user-info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }

  .user-email-text {
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    line-height: 1.1;
  }

  .user-verification-pill {
    display: none !important; /* Green avatar dot already confirms verification */
  }

  .btn-icon-tiny {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
  }

  /* Row 2: Touch-friendly 3-column action buttons (Refresh, Import PIB, Upgrade Pro) */
  .header-actions-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 6px;
    margin-left: 0;
  }

  .header-actions-group .btn {
    width: 100%;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 600;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    border-radius: 6px;
    gap: 5px;
  }

  .header-actions-group .btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  /* Quick chips horizontal scrollable carousel */
  .quick-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 6px;
    width: 100%;
    max-width: 100%;
  }

  .quick-chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 11px;
    padding: 5px 10px;
  }

  /* Map Header & Mobile Controls */
  .map-header {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 10px;
  }

  .map-title-group {
    gap: 8px;
  }

  .map-title {
    font-size: 13.5px;
  }

  .map-coords {
    font-size: 10px;
  }

  .map-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
  }

  .map-controls .btn-sm {
    padding: 7px 4px;
    font-size: 10.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    border-radius: 6px;
  }

  .aviation-map-canvas {
    height: 300px;
  }

  .map-selection-toast {
    font-size: 11px;
    padding: 6px 12px;
    width: max-content;
    max-width: 92%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    border-radius: 20px;
  }

  /* Feed Controls on Mobile */
  .feed-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .feed-title-wrapper h2 {
    font-size: 15px;
  }

  .feed-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .feed-search-input {
    width: 100%;
    order: -1;
  }

  .feed-tools .btn-sm {
    flex: 1 1 calc(33% - 5px);
    padding: 7px 4px;
    font-size: 10.5px;
    text-align: center;
    justify-content: center;
  }

  /* NOTAM Cards on Mobile */
  .notam-cards-list {
    padding: 8px;
    gap: 10px;
  }

  .notam-card {
    padding: 11px;
    border-radius: var(--radius-sm);
  }

  .card-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .validity-timer {
    font-size: 10px;
  }

  .decoded-summary {
    font-size: 12px;
    line-height: 1.5;
  }

  .raw-text-block {
    font-size: 10.5px;
    padding: 8px;
  }

  .airport-spec-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 8px;
  }

  .runway-badge {
    width: 100%;
    font-size: 11px;
    padding: 6px 10px;
    text-align: center;
  }

  .modal-card {
    width: 94%;
    margin: 12px;
    padding: 14px;
  }
}

/* ==========================================================================
   LEGAL DISCLAIMER & NJTTECH FOOTER
   ========================================================================== */
.app-disclaimer-footer {
  margin-top: 14px;
  padding: 12px 20px;
  background: rgba(10, 17, 34, 0.85);
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--text-muted, #7e9bb6);
  font-size: 11.5px;
  line-height: 1.5;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.disclaimer-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.disclaimer-badge .alert-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.disclaimer-text strong {
  color: #ffb703;
  letter-spacing: 0.5px;
}

.disclaimer-text span {
  color: #a4b8cc;
  margin-left: 4px;
}

.footer-brand {
  font-size: 11.5px;
  color: #7e9bb6;
  white-space: nowrap;
}

.footer-brand .brand-link {
  color: var(--accent-cyan, #00f0ff);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-cyan, #00f0ff);
  transition: all 0.2s ease;
}

.footer-brand .brand-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

/* ==========================================================================
   PIB IMPORT MODAL (FILE & CAMERA CARDS)
   ========================================================================== */
.pib-import-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.pib-card-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(18, 28, 52, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.pib-card-option:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-cyan, #00f0ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 240, 255, 0.15);
}

.pib-option-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.pib-option-info {
  display: flex;
  flex-direction: column;
}

.pib-option-info strong {
  font-size: 13px;
  color: #ffffff;
  font-family: var(--font-display, 'Outfit', sans-serif);
}

.pib-option-info span {
  font-size: 11px;
  color: #8da4be;
  margin-top: 2px;
}

.pib-ocr-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  color: var(--accent-cyan, #00f0ff);
  font-size: 12px;
  margin-top: 10px;
}

.spinner-mini {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--accent-cyan, #00f0ff);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@media (max-width: 640px) {
  .pib-import-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   AIRPORTS IN SELECTED AREA BAR (BOX / AREA MODE)
   ========================================================================== */
.area-airports-bar {
  padding: 12px 18px;
  background: rgba(10, 18, 36, 0.95);
  border-top: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.25s ease-out;
}

.area-airports-bar.hidden {
  display: none;
}

.area-airports-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.area-airports-icon {
  font-size: 16px;
}

.area-airports-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: #ffb703;
  letter-spacing: 0.5px;
}

.area-airports-hint {
  font-size: 11px;
  color: var(--text-muted, #7e9bb6);
}

.area-airports-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.area-airport-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(18, 32, 60, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-sm, 6px);
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.area-airport-chip:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--accent-cyan, #00f0ff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.25);
  color: var(--accent-cyan, #00f0ff);
}

.area-airport-chip .chip-icao {
  color: #00f0ff;
  font-weight: 700;
}

.area-airport-chip .chip-name {
  color: #cbd5e1;
  font-family: var(--font-body, sans-serif);
  font-size: 11px;
  font-weight: 400;
}

.area-airport-chip .chip-badge {
  padding: 2px 6px;
  background: rgba(255, 183, 3, 0.2);
  border: 1px solid rgba(255, 183, 3, 0.4);
  border-radius: 4px;
  color: #ffb703;
  font-size: 10.5px;
  font-weight: 700;
}

.area-airport-chip:hover .chip-badge {
  background: #ffb703;
  color: #0b1120;
}

/* ==========================================================================
   SEARCH QUOTA PILL (5 QUERIES / 3 HOURS)
   ========================================================================== */
.quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md, 8px);
  padding: 7px 12px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 600;
  color: #00f0ff;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quota-pill:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.quota-pill.warning {
  border-color: rgba(255, 183, 3, 0.5);
  color: #ffb703;
}

.quota-pill.exhausted {
  border-color: rgba(255, 42, 109, 0.6);
  color: #ff2a6d;
  background: rgba(255, 42, 109, 0.1);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 42, 109, 0.2); }
  50% { box-shadow: 0 0 18px rgba(255, 42, 109, 0.5); }
}

.quota-icon {
  font-size: 13px;
  line-height: 1;
}

.quota-label {
  letter-spacing: 0.3px;
}

/* ==========================================================================
   PILOT & USER AUTHENTICATION WIDGET & MODAL
   ========================================================================== */
.auth-header-container {
  display: flex;
  align-items: center;
  position: relative;
}

.auth-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 23, 42, 0.7);
  border: 1px solid var(--border-glow, rgba(0, 240, 255, 0.3));
  color: #e2e8f0;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-md, 8px);
  transition: all 0.2s ease;
}

.auth-trigger-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan, #00f0ff);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  transform: translateY(-1px);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md, 8px);
  padding: 6px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.user-avatar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ffaa;
  box-shadow: 0 0 8px #00ffaa;
  flex-shrink: 0;
}

.user-profile-badge.unverified-user .user-avatar-dot {
  background: #ffb703;
  box-shadow: 0 0 8px #ffb703;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-email-text {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 600;
  color: #f1f5f9;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-verification-pill {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.user-verification-pill.verified {
  color: #00ffaa;
}

.user-verification-pill.unverified {
  color: #ffb703;
}

.btn-icon-tiny {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-icon-tiny:hover {
  color: #ff2a6d;
  background: rgba(255, 42, 109, 0.15);
}

/* Unverified Email Alert Banner */
.unverified-banner {
  background: linear-gradient(90deg, rgba(255, 183, 3, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 183, 3, 0.35);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 90;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.unverified-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #ffd166;
  flex-wrap: wrap;
}

.btn-banner-action {
  background: rgba(255, 183, 3, 0.2);
  border: 1px solid #ffb703;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-banner-action:hover {
  background: #ffb703;
  color: #0b1120;
}

.btn-banner-check {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #a7f3d0;
}

.btn-banner-check:hover {
  background: #10b981;
  color: #042f2e;
}

.banner-close {
  background: transparent;
  border: none;
  color: #ffd166;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  line-height: 1;
}

/* Auth Modal Tabs */
.auth-tabs {
  display: flex;
  gap: 6px;
  background: rgba(3, 7, 18, 0.6);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-display, inherit);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.auth-tab-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab-btn.active {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* Auth Alert Box */
.auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 16px;
  animation: fadeIn 0.2s ease;
}

.auth-alert.success {
  background: rgba(0, 255, 170, 0.12);
  border: 1px solid rgba(0, 255, 170, 0.4);
  color: #00ffaa;
}

.auth-alert.error {
  background: rgba(255, 42, 109, 0.12);
  border: 1px solid rgba(255, 42, 109, 0.4);
  color: #ff6b8b;
}

.auth-alert.info {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
}

/* Auth Notices & Links */
.auth-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(14, 23, 42, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.auth-notice-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.auth-notice-box p {
  margin: 0;
}

.auth-link-forgot {
  font-size: 11.5px;
  color: var(--accent-cyan, #00f0ff);
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-link-forgot:hover {
  text-decoration: underline;
  color: #70f7ff;
}

.auth-switch-text {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #94a3b8;
}

.auth-switch-text a {
  color: var(--accent-cyan, #00f0ff);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.auth-switch-text a:hover {
  text-decoration: underline;
}

.btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 10px;
}

/* ==========================================================================
   PRO PILOT & STRIPE UPGRADE STYLES
   ========================================================================== */
.btn-pro-upgrade {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%);
  border: 1px solid #f59e0b;
  color: #fde047;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
  transition: all 0.25s ease;
}

.btn-pro-upgrade:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  color: #0b1120;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
}

.pro-sparkle {
  font-size: 13px;
  filter: drop-shadow(0 0 4px #f59e0b);
}

.pro-tag-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
  letter-spacing: 0.5px;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.pro-modal-icon {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  border-radius: 8px;
  font-size: 18px;
}

.pro-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 20px;
}

@media (max-width: 580px) {
  .pro-plans-grid {
    grid-template-columns: 1fr;
  }
}

.pro-plan-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.pro-plan-card.popular {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.plan-header {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.plan-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  margin-bottom: 6px;
}

.plan-badge.pro-badge {
  background: #f59e0b;
  color: #0b1120;
}

.plan-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.plan-price {
  font-size: 18px;
  font-weight: 800;
  color: #38bdf8;
}

.plan-price span {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

.pro-card .plan-price {
  color: #f59e0b;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #cbd5e1;
  line-height: 1.4;
}

.plan-features li.disabled {
  color: #64748b;
  opacity: 0.6;
}

.stripe-checkout-box {
  background: rgba(99, 91, 255, 0.08);
  border: 1px solid rgba(99, 91, 255, 0.3);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.btn-stripe {
  background: #635bff;
  color: #ffffff;
  border: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(99, 91, 255, 0.4);
}

.btn-stripe:hover {
  background: #7a73ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 91, 255, 0.6);
  color: #ffffff;
}

.stripe-subtext {
  font-size: 11px;
  color: #94a3b8;
  margin: 8px 0 0 0;
}



