/* ============================================================
   DTA-PILOT Design System
   Palette from spec: Midnight Navy / Electric Cyan / Signal Lime
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy:      #071B2D;
  --navy-2:    #0B3D5C;
  --cyan:      #00AEEF;
  --cyan-dark: #0090C8;
  --lime:      #B5FF2E;
  --lime-dark: #9ADE1E;
  --white:     #F7FAFC;
  --slate:     #334155;
  --slate-2:   #475569;
  --line:      #E2E8F0;
  --line-2:    #CBD5E1;
  --bg:        #F7FAFC;
  --card:      #FFFFFF;
  --green:     #16A34A;
  --amber:     #F59E0B;
  --red:       #DC2626;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(7,27,45,.10);
  --shadow-md: 0 8px 40px rgba(7,27,45,.15);
  --transition: 200ms ease;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--slate);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--cyan-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy-2); }

img { max-width: 100%; display: block; }
code { background: #EEF2F6; padding: .1rem .35rem; border-radius: 5px; font-size: .85em; }

/* ── Utility ─────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--slate-2); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: .5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.d-flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .95rem;
  padding: .65rem 1.4rem; border-radius: var(--radius-sm); border: none;
  cursor: pointer; text-decoration: none; transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: var(--cyan-dark); color: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,174,239,.35); }
.btn-lime    { background: var(--lime); color: var(--navy); }
.btn-lime:hover { background: var(--lime-dark); color: var(--navy); transform: translateY(-1px); }
.btn-navy    { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--line-2); color: var(--slate); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,.4); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-danger  { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm      { font-size: .82rem; padding: .4rem .9rem; }
.btn-lg      { font-size: 1.05rem; padding: .8rem 1.8rem; }
.btn-block   { width: 100%; justify-content: center; }
.btn:disabled, .btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ── Public Layout ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(7,27,45,.25);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.5rem;
}
.site-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-logo { width: 36px; height: 36px; background: var(--cyan); border-radius: 8px;
              display: flex; align-items: center; justify-content: center; }
.brand-logo svg { width: 22px; height: 22px; fill: var(--navy); }
.brand-text { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 800; color: #fff; }
.brand-text span { color: var(--cyan); }

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { color: rgba(255,255,255,.75); padding: .5rem .75rem; border-radius: var(--radius-sm);
              font-weight: 500; font-size: .9rem; transition: all var(--transition); }
.site-nav a:hover, .site-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.site-nav .nav-cta { background: var(--cyan); color: var(--navy) !important; margin-left: .5rem; font-weight: 700; }
.site-nav .nav-cta:hover { background: var(--lime) !important; }

.site-footer {
  background: var(--navy); color: rgba(255,255,255,.6);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .brand-text { font-size: 1.3rem; margin-bottom: .6rem; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase;
                  letter-spacing: .8px; margin-bottom: .9rem; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: .88rem; padding: .2rem 0;
                transition: color var(--transition); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem;
                  display: flex; justify-content: space-between; align-items: center; font-size: .82rem; }
.footer-bottom .ver-badge { background: rgba(255,255,255,.08); padding: .2rem .7rem; border-radius: 999px; }

.page-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.section { padding: 4rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0d4a70 100%);
  padding: 5rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,174,239,.12) 0%, transparent 60%);
}
.hero-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem;
                background: rgba(0,174,239,.15); border: 1px solid rgba(0,174,239,.3);
                color: var(--cyan); padding: .3rem 1rem; border-radius: 999px;
                font-size: .82rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
                margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; margin-bottom: 1rem; font-weight: 800; }
.hero h1 .accent { color: var(--cyan); }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.75); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* ── Search Box ──────────────────────────────────────────────── */
.search-box {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 1.25rem;
  display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap;
  max-width: 860px; margin: 0 auto;
}
.search-group { flex: 1; min-width: 180px; }
.search-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--slate);
                       margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .4px; }
.search-input, .search-select {
  width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-size: .95rem; color: var(--navy);
  background: var(--bg); transition: border-color var(--transition);
  font-family: 'Inter', sans-serif;
}
.search-input:focus, .search-select:focus { outline: none; border-color: var(--cyan); background: #fff; }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 1.25rem; }
.card-header { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line);
               display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 1rem; font-weight: 700; }
.card-footer { padding: .9rem 1.25rem; border-top: 1px solid var(--line); background: #FAFBFD; }

/* ── Pilot Card ──────────────────────────────────────────────── */
.pilot-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: all var(--transition);
  display: flex; flex-direction: column;
}
.pilot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--cyan); }
.pilot-card-logo {
  width: 56px; height: 56px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--cyan);
}
.pilot-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.pilot-card-head { padding: 1.1rem 1.1rem .6rem; display: flex; gap: .75rem; align-items: flex-start; }
.pilot-card-info { flex: 1; min-width: 0; }
.pilot-card-info h3 { font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pilot-card-location { font-size: .82rem; color: var(--slate-2); margin-top: .15rem; }
.pilot-card-body { padding: 0 1.1rem .8rem; flex: 1; }
.pilot-card-bio { font-size: .85rem; color: var(--slate-2); line-height: 1.5;
                   display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pilot-card-services { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.pilot-card-footer { padding: .75rem 1.1rem; border-top: 1px solid var(--line); display: flex; gap: .5rem; align-items: center; justify-content: space-between; }
.pilot-card-distance { font-size: .8rem; color: var(--slate-2); font-weight: 600; }

/* ── Chips / Badges ──────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
  white-space: nowrap;
}
.chip-service { background: rgba(0,174,239,.1); color: var(--cyan-dark); border: 1px solid rgba(0,174,239,.25); }
.chip-navy    { background: rgba(7,27,45,.08); color: var(--navy-2); border: 1px solid var(--line); }

.badge { display: inline-flex; align-items: center; gap: .3rem;
         padding: .2rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.badge-green     { background: rgba(22,163,74,.12); color: var(--green); border: 1px solid rgba(22,163,74,.3); }
.badge-blue      { background: rgba(0,174,239,.12); color: var(--cyan-dark); border: 1px solid rgba(0,174,239,.3); }
.badge-grey      { background: rgba(51,65,85,.08); color: var(--slate); border: 1px solid var(--line); }
.badge-amber     { background: rgba(245,158,11,.12); color: #b45309; border: 1px solid rgba(245,158,11,.3); }
.badge-red       { background: rgba(220,38,38,.1); color: var(--red); border: 1px solid rgba(220,38,38,.25); }
.badge-lime      { background: rgba(181,255,46,.2); color: #3d6600; border: 1px solid rgba(181,255,46,.4); }
.badge-navy      { background: var(--navy); color: var(--cyan); }
.badge-verified-green { background: rgba(22,163,74,.12); color: var(--green); border: 1px solid rgba(22,163,74,.3); }
.badge-contact-blue   { background: rgba(0,174,239,.12); color: var(--cyan-dark); border: 1px solid rgba(0,174,239,.25); }
.badge-listed-grey    { background: var(--line); color: var(--slate-2); }
.badge-draft          { background: #F1F5F9; color: #94A3B8; }

/* ── Verification Shield ─────────────────────────────────────── */
.vbadge { position: relative; display: inline-flex; align-items: center; gap: .3rem;
           padding: .25rem .7rem; border-radius: 999px; font-size: .73rem; font-weight: 700; cursor: help; }
.vbadge[data-level="0"] { background: #F1F5F9; color: #94A3B8; border: 1px solid var(--line); }
.vbadge[data-level="1"] { background: #E2E8F0; color: #64748B; border: 1px solid var(--line-2); }
.vbadge[data-level="2"] { background: rgba(0,174,239,.1); color: var(--cyan-dark); border: 1px solid rgba(0,174,239,.25); }
.vbadge[data-level="3"] { background: rgba(0,174,239,.15); color: var(--cyan-dark); border: 1px solid rgba(0,174,239,.3); }
.vbadge[data-level="4"] { background: rgba(22,163,74,.12); color: var(--green); border: 1px solid rgba(22,163,74,.3); }
.vbadge[data-level="5"] { background: rgba(22,163,74,.18); color: #15803d; border: 1px solid rgba(22,163,74,.4); }
.vbadge[data-level="6"] { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--cyan); border: none; }

/* ── Forms ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.form-label .req { color: var(--red); margin-left: .15rem; }
.form-control {
  display: block; width: 100%; padding: .65rem .95rem;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: .95rem; color: var(--navy); background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: 'Inter', sans-serif;
}
.form-control:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,174,239,.15); }
.form-control.is-invalid { border-color: var(--red); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23334155' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
               background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-hint { font-size: .8rem; color: var(--slate-2); margin-top: .3rem; }
.form-error { font-size: .82rem; color: var(--red); margin-top: .3rem; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-check { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .6rem; }
.form-check-input { width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 4px;
                     background: #fff; cursor: pointer; flex-shrink: 0; margin-top: 2px;
                     accent-color: var(--cyan); }

/* ── Alerts ───────────────────────────────────────────────────── */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius-sm); font-size: .9rem;
          border-left: 4px solid; margin-bottom: 1rem; }
.alert-success { background: rgba(22,163,74,.08); border-color: var(--green); color: #15803d; }
.alert-error   { background: rgba(220,38,38,.08); border-color: var(--red); color: #991b1b; }
.alert-warning { background: rgba(245,158,11,.08); border-color: var(--amber); color: #92400e; }
.alert-info    { background: rgba(0,174,239,.08); border-color: var(--cyan); color: var(--navy-2); }

/* ── Dashboard Shell ─────────────────────────────────────────── */
.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 250px; flex-shrink: 0; background: var(--navy); color: #fff;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dash-sidebar-brand { padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.dash-sidebar-brand .brand-text { font-size: 1rem; }
.dash-sidebar-nav { padding: .75rem .5rem; flex: 1; }
.dash-nav-section { margin-bottom: 1.25rem; }
.dash-nav-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
                   color: rgba(255,255,255,.35); padding: .4rem .75rem; }
.dash-nav-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .75rem; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.65); font-size: .88rem; font-weight: 500;
  transition: all var(--transition); text-decoration: none;
}
.dash-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.dash-nav-link.active { background: rgba(0,174,239,.2); color: var(--cyan); }
.dash-nav-link .icon { width: 18px; text-align: center; flex-shrink: 0; }
.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-topbar {
  background: #fff; border-bottom: 1px solid var(--line); padding: .85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.dash-topbar-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.dash-content { padding: 1.75rem; flex: 1; }

/* ── Stat Cards ──────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; display: flex; align-items: flex-start; gap: 1rem;
}
.stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-icon-cyan  { background: rgba(0,174,239,.12); }
.stat-icon-green { background: rgba(22,163,74,.12); }
.stat-icon-amber { background: rgba(245,158,11,.12); }
.stat-icon-navy  { background: rgba(7,27,45,.08); }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1; font-family: 'Space Grotesk', sans-serif; }
.stat-label { font-size: .8rem; color: var(--slate-2); margin-top: .2rem; }

/* ── Map ─────────────────────────────────────────────────────── */
#pilot-map { width: 100%; height: 550px; border-radius: var(--radius); overflow: hidden;
              border: 1px solid var(--line); z-index: 0; }
.map-list-layout { display: grid; grid-template-columns: 1fr 420px; gap: 1.25rem; }
.map-col { position: sticky; top: 80px; height: calc(100vh - 120px); }
.list-col { overflow-y: auto; max-height: calc(100vh - 120px); padding-right: .25rem; }
.list-col::-webkit-scrollbar { width: 4px; }
.list-col::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }

/* ── Progress Bar ────────────────────────────────────────────── */
.profile-progress { margin-bottom: 1.5rem; }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.progress-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan) 0%, var(--lime) 100%);
                  transition: width .5s ease; }
.profile-checklist { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.profile-check-item { display: flex; align-items: center; gap: .6rem; font-size: .88rem; }
.check-done  { color: var(--green); }
.check-todo  { color: var(--line-2); }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
thead th { background: #F8FAFC; border-bottom: 1px solid var(--line); padding: .75rem 1rem;
            text-align: left; font-size: .8rem; font-weight: 700; color: var(--slate);
            text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
tbody td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #F8FAFC; }

/* ── Pilot Profile Page ──────────────────────────────────────── */
.profile-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 2.5rem 1.5rem;
}
.profile-hero-inner { max-width: 960px; margin: 0 auto; display: flex; gap: 1.75rem; align-items: flex-start; flex-wrap: wrap; }
.profile-avatar { width: 90px; height: 90px; border-radius: 16px; border: 3px solid rgba(255,255,255,.2);
                   background: var(--cyan); display: flex; align-items: center; justify-content: center;
                   font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 800; color: var(--navy);
                   flex-shrink: 0; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-meta { flex: 1; }
.profile-meta h1 { color: #fff; font-size: 1.75rem; margin-bottom: .3rem; }
.profile-meta-sub { color: rgba(255,255,255,.65); font-size: .92rem; margin-bottom: .75rem; }
.profile-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.profile-sections { max-width: 960px; margin: 0 auto; padding: 1.75rem; display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; }

/* ── Portfolio Gallery ───────────────────────────────────────── */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.portfolio-thumb { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden;
                    background: var(--line); cursor: pointer; position: relative; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.portfolio-thumb:hover img { transform: scale(1.05); }
.portfolio-overlay { position: absolute; inset: 0; background: rgba(7,27,45,.5);
                      display: flex; align-items: center; justify-content: center;
                      opacity: 0; transition: opacity .2s ease; color: #fff; font-size: 1.5rem; }
.portfolio-thumb:hover .portfolio-overlay { opacity: 1; }

/* ── Wizard ──────────────────────────────────────────────────── */
.wizard-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 2rem; flex-wrap: wrap; }
.wizard-step { display: flex; align-items: center; gap: .4rem; }
.wizard-step-num { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
                    font-weight: 700; font-size: .85rem; border: 2px solid var(--line-2); color: var(--slate-2); }
.wizard-step.active .wizard-step-num  { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.wizard-step.done .wizard-step-num   { background: var(--green); border-color: var(--green); color: #fff; }
.wizard-step-label { font-size: .82rem; font-weight: 600; color: var(--slate-2); }
.wizard-step.active .wizard-step-label { color: var(--navy); }
.wizard-connector { width: 40px; height: 2px; background: var(--line-2); margin: 0 .25rem; }
.wizard-connector.done { background: var(--green); }
.wizard-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
                 padding: 2rem; box-shadow: var(--shadow); }

/* ── Score pill ─────────────────────────────────────────────── */
.score-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem;
               border-radius: 999px; font-weight: 700; font-size: .82rem; }
.score-high { background: rgba(22,163,74,.12); color: var(--green); }
.score-mid  { background: rgba(245,158,11,.12); color: #b45309; }
.score-low  { background: rgba(220,38,38,.1); color: var(--red); }

/* ── Utility sections ────────────────────────────────────────── */
.section-title { font-size: 1.75rem; font-weight: 800; color: var(--navy); margin-bottom: .4rem; }
.section-sub   { font-size: 1rem; color: var(--slate-2); margin-bottom: 2rem; }
.pilots-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.service-card  { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
                  padding: 1.25rem; transition: all var(--transition); text-align: center; }
.service-card:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card .icon { font-size: 2rem; margin-bottom: .6rem; }
.service-card h4 { font-size: .95rem; font-weight: 700; color: var(--navy); }

/* ── Leaflet overrides ───────────────────────────────────────── */
.leaflet-popup-content-wrapper { border-radius: 12px !important; box-shadow: var(--shadow-md) !important; border: 1px solid var(--line) !important; }
.leaflet-popup-content { margin: 12px 14px !important; }
.map-popup h4 { font-family: 'Space Grotesk', sans-serif; font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .2rem; }
.map-popup p  { font-size: .8rem; color: var(--slate-2); margin: 0 0 .5rem; }
.map-popup a  { font-size: .82rem; font-weight: 600; color: var(--cyan-dark); }

/* ── No results ──────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state-icon { font-size: 3rem; margin-bottom: .75rem; opacity: .4; }
.empty-state h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: .4rem; }
.empty-state p { color: var(--slate-2); font-size: .9rem; max-width: 380px; margin: 0 auto 1.25rem; }

/* ── Divider ─────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--line); margin: 1.5rem 0; }

/* ── Mobile nav toggle ───────────────────────────────────────── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: #fff; font-size: 1.5rem; }

/* ── Blazor error / reconnect ────────────────────────────────── */
#blazor-error-ui { background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2);
                    display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 2000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
.reconnect-modal { display: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .map-list-layout { grid-template-columns: 1fr; }
  .map-col { position: static; height: 400px; }
  #pilot-map { height: 400px; }
  .list-col { max-height: none; }
  .profile-sections { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0;
                    background: var(--navy); padding: 1rem; z-index: 200; }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }
  .dash-sidebar { display: none; }
  .dash-sidebar.open { display: flex; position: fixed; inset: 0; width: 260px; z-index: 300; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .hero h1 { font-size: 1.8rem; }
  .pilots-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
