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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #f9f9f9;
  --gray-100: #f2f2f2;
  --gray-200: #e5e5e5;
  --gray-400: #a3a3a3;
  --gray-600: #525252;
  --gray-800: #262626;
  --accent: #0a0a0a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 40px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--black);
  text-decoration: none;
}

.nav-logo span { color: var(--gray-400); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--black); }

.nav-cta {
  display: flex; align-items: center; gap: 12px;
}

.btn-ghost {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  background: none;
  border: 1px solid var(--gray-200);
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-ghost:hover { border-color: var(--black); background: var(--gray-50); }

.btn-solid {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--black);
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-solid:hover { background: var(--gray-800); }

/* ── HERO ── */
.hero {
  padding: 140px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-label::before {
  content: '';
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--black);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gray-400);
}

/* Screen-reader-only utility — keeps headline text in the DOM for SEO/a11y
   while the visual is replaced by the drone image. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Hero headline replaced with a hovering drone image */
.hero-drone-h1 {
  margin: 8px 0 28px;
  display: block;
}
.hero-drone-img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  /* Continuous vertical bob — ease in / ease out matches a real drone holding
     altitude with tiny corrections. Hover boosts the amplitude + tightens the
     period so the drone "responds" to attention. */
  animation: drone-hover 4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  filter: drop-shadow(0 32px 36px rgba(0, 0, 0, 0.18));
  transition: filter 0.5s ease, transform 0.5s ease;
  transform-origin: center;
  will-change: transform;
}
.hero-drone-img:hover {
  animation: drone-hover-strong 2.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  filter: drop-shadow(0 40px 48px rgba(0, 0, 0, 0.28));
}
@keyframes drone-hover {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes drone-hover-strong {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-22px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-drone-img,
  .hero-drone-img:hover { animation: none; }
}

.hero p {
  font-size: 17px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 14px 32px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-hero:hover { background: var(--gray-800); transform: translateY(-1px); }

.btn-hero-outline {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  background: transparent;
  border: 1px solid var(--gray-200);
  padding: 14px 32px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-hero-outline:hover { border-color: var(--black); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ── HERO VISUAL ── */
.hero-visual {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-map-card {
  width: 100%;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
}

.map-bg {
  height: 280px;
  background: #e8efe8;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.map-grid {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?w=800&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.map-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform var(--transition);
}

.map-pin:hover { transform: translateY(-3px); }

.pin-dot {
  width: 36px; height: 36px;
  background: var(--black);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.pin-dot span {
  transform: rotate(45deg);
  font-size: 14px;
}

.pin-label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
  background: white;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
}

.map-route {
  position: absolute;
  border: 2px dashed var(--gray-400);
  border-radius: 50%;
  pointer-events: none;
}

.live-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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

.booking-info h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}

.booking-info p {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 2px;
}

.book-btn {
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition);
}

.book-btn:hover { background: var(--gray-800); }

.floating-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(1) { top: 20px; right: 20px; animation-delay: 0s; z-index: 10; }
.floating-card:nth-child(2) { bottom: 100px; left: 10px; animation-delay: 1.5s; z-index: 10; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.fc-label { font-size: 11px; color: var(--gray-400); font-weight: 400; }
.fc-value { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--black); margin-top: 2px; }
.fc-sub { font-size: 11px; color: #22c55e; font-weight: 500; }

/* ── STATS BAR ── */
.stats-bar {
  padding: 60px 40px;
  border-bottom: 1px solid var(--gray-200);
}

/* ── HERO DRONE CAROUSEL ── */
.hero-drone-carousel {
  text-align: center;
  padding: 0;
  max-width: 460px;
  margin: 0 auto;
}

.hero-drone-stage {
  position: relative;
  height: 360px;
  margin-bottom: 28px;
  overflow: hidden;
}

.hero-drone-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateX(80px);
  transition: none;
}

.hero-drone-slide.entering {
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
  opacity: 1;
  transform: translateX(0);
}

.hero-drone-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.hero-drone-slide.exiting {
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
  opacity: 0;
  transform: translateX(-80px);
  pointer-events: none;
}

.hero-drone-slide img {
  max-height: 320px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.18));
}

/* Pilot info row */
.hero-drone-pilot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
  min-height: 48px;
  overflow: hidden;
}

.hero-drone-pilot-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-drone-pilot-inner.exiting {
  opacity: 0;
  transform: translateX(-30px);
}

.hero-drone-pilot-inner.entering {
  opacity: 0;
  transform: translateX(30px);
  transition: none;
}

.hero-pilot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-pilot-details {
  text-align: left;
}

.hero-pilot-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.hero-pilot-meta {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 300;
}

.hero-pilot-rate {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.5px;
}

.hero-pilot-rate span {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-400);
}

.hero-drone-info {
  margin-bottom: 20px;
  min-height: 56px;
  overflow: hidden;
}

.hero-drone-info-inner {
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-drone-info-inner.exiting {
  opacity: 0;
  transform: translateX(-30px);
}

.hero-drone-info-inner.entering {
  opacity: 0;
  transform: translateX(30px);
  transition: none;
}

.hero-drone-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.8px;
  margin-bottom: 4px;
}

.hero-drone-sub {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 300;
}

.hero-drone-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.hero-drone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-drone-dot.active {
  background: var(--black);
  width: 24px;
  border-radius: 100px;
}

.hero-book-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* ── 3D PILOT CAROUSEL ── */
.carousel-section {
  padding: 100px 40px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}

.carousel-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 140px;
  position: relative;
  z-index: 5;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
}

.carousel-scene {
  width: 320px;
  height: 460px;
  perspective: 1200px;
  margin: 0 auto;
  position: relative;
}

.carousel-ring {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-ring.auto-rotate {
  animation: carouselSpin 32s linear infinite;
}

.carousel-ring:hover,
.carousel-ring.paused {
  animation-play-state: paused;
}

@keyframes carouselSpin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(-360deg); }
}

.pilot-card {
  position: absolute;
  width: 280px;
  left: 50%;
  top: 0;
  margin-left: -140px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.pilot-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.pilot-card-img {
  height: 160px;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}

.pilot-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pilot-card-img .service-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
}

.pilot-card-img .price-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
}

.pilot-card-body {
  padding: 20px;
  text-align: center;
}

.pilot-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--white);
  object-fit: cover;
  margin-top: -46px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.pilot-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
  margin-top: 8px;
  margin-bottom: 2px;
}

.pilot-drone {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 400;
  margin-bottom: 12px;
}

.pilot-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pilot-meta-item {
  font-size: 12px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 4px;
}

.pilot-book-btn {
  width: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.pilot-book-btn:hover { background: var(--gray-800); }

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--black);
  transition: all var(--transition);
}

.carousel-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--black);
  width: 24px;
  border-radius: 100px;
}

@media (max-width: 900px) {
  .carousel-section { padding: 70px 20px; }
  .carousel-header { margin-bottom: 100px; }
  .carousel-scene { width: 260px; height: 420px; }
  .pilot-card { width: 240px; margin-left: -120px; }
}

@media (max-width: 600px) {
  .carousel-header { margin-bottom: 80px; }
  .carousel-wrapper { height: 460px; }
}

/* ── SECTIONS ── */
section { padding: 100px 40px; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--black);
  margin-bottom: 48px;
}

.section-title span { color: var(--gray-400); }

/* ── SEARCH ── */
.search-section {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 60px 40px;
}

.search-bar {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  padding: 8px 8px 8px 24px;
  gap: 12px;
  transition: border-color var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.search-bar:focus-within { border-color: var(--black); }

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  background: none;
}

.search-bar input::placeholder { color: var(--gray-400); }

.search-btn {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.search-btn:hover { background: var(--gray-800); }

/* ── FILTERS ── */
.filter-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  align-items: center;
}

.filter-label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 400;
  margin-right: 4px;
}

.filter-chip {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-chip:hover { border-color: var(--gray-600); color: var(--black); }

.filter-chip.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  font-weight: 500;
}

/* ── DRONE GRID ── */
.drone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.drone-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.drone-card:hover {
  border-color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.drone-card-img {
  height: 180px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.drone-card-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.5s ease;
}
.drone-card:hover .drone-card-photo {
  transform: translateY(-4px) scale(1.04);
}

/* Drone-grid gate (homepage teaser for logged-out visitors)
   Pulled up to overlay the BOTTOM ROW of cards (one row ≈ 480px tall on
   desktop). The ::before pseudo is a tall fade strip — transparent above
   so row 1 stays crisp, dense white below so row 2 visually disappears.
   The CTA card sits centered over row 2. */
.drone-gate {
  position: relative;
  margin-top: -480px;          /* lift entire gate up over row 2 */
  padding: 200px 20px 60px;     /* CTA card lands ~middle of row 2 */
  z-index: 5;
  pointer-events: none;
  min-height: 480px;
}
.drone-gate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 480px;                /* covers full row 2 */
  background: linear-gradient(180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.4) 25%,
    rgba(255,255,255,0.85) 55%,
    rgba(255,255,255,0.98) 80%,
    var(--white) 100%
  );
  pointer-events: none;
}

/* On smaller screens the grid is single-column so cards stack — pulling up
   480px would cover too many. Reduce the overlap and let the gate behave
   like the original simple "below the grid" pattern. */
@media (max-width: 768px) {
  .drone-gate {
    margin-top: -200px;
    padding: 220px 20px 40px;
    min-height: 0;
  }
  .drone-gate::before { height: 240px; }
}
.drone-gate-card {
  pointer-events: auto;
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px 32px 26px;
  text-align: center;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.18);
}
.drone-gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  font-size: 24px;
  background: var(--gray-100);
  border-radius: 50%;
  margin-bottom: 14px;
}
.drone-gate-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--black);
  margin: 0 0 10px;
  line-height: 1.2;
}
.drone-gate-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-600);
  margin: 0 0 22px;
}
.drone-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.drone-gate-actions .btn-hero,
.drone-gate-actions .btn-hero-outline {
  width: 100%;
  text-align: center;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Modal drone image (replaces emoji header) */
.modal-drone-img-wrap {
  text-align: center;
  margin-bottom: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 16px;
}
.modal-drone-img {
  width: 100%;
  max-width: 320px;
  height: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.drone-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
}

.price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
}

.drone-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.drone-card-mfr {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.drone-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.drone-card-desc {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.drone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.drone-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 100px;
}

.drone-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.drone-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
}

.drone-card-rating span { color: var(--gray-400); font-weight: 400; }

.book-drone-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition);
}

.book-drone-btn:hover { background: var(--gray-800); }

/* ── HOW IT WORKS ── */
.how-bg {
  background: var(--black);
  color: var(--white);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.how-step {
  background: var(--black);
  padding: 48px 40px;
  transition: background var(--transition);
}

.how-step:hover { background: var(--gray-800); }

.step-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -3px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.step-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-400);
  line-height: 1.7;
}

.how-section .section-title { color: var(--white); }
.how-section .section-title span { color: var(--gray-600); }
.how-section .section-eyebrow { color: var(--gray-600); }

/* ── INDUSTRIES ── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.industry-card {
  background: var(--black);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.industry-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: opacity var(--transition);
}

.industry-card:hover .industry-card-bg {
  opacity: 0.5;
}

.industry-card > *:not(.industry-card-bg) {
  position: relative;
  z-index: 1;
}

.industry-card:hover {
  border-color: var(--black);
  transform: translateY(-2px);
}

.ind-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  transition: background var(--transition);
}

.ind-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  transition: color var(--transition);
  letter-spacing: -0.2px;
}

.ind-count {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  transition: color var(--transition);
}

/* ── PROVIDERS CTA ── */
.providers-section {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.providers-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.providers-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 16px;
}

.providers-text h2 span { color: var(--gray-400); }

.providers-text p {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 32px;
}

.perks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.perk {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.perk-icon {
  width: 40px; height: 40px;
  background: var(--black);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  flex-shrink: 0;
}

.perk-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.perk-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-600);
}

.earnings-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.earnings-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.earnings-big {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 8px;
}

.earnings-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-400);
  margin-bottom: 36px;
}

.earnings-bar-label {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.earnings-bar-bg {
  height: 6px;
  background: var(--gray-800);
  border-radius: 100px;
  margin-bottom: 16px;
  overflow: hidden;
}

.earnings-bar-fill {
  height: 100%;
  background: var(--white);
  border-radius: 100px;
  transition: width 1s ease;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 40px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--gray-800);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.footer-brand span { color: var(--gray-600); }

.footer-tagline {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.footer-links a {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-600);
}

/* ── HIDDEN / SHOW LOGIC ── */
.drone-card.hidden { display: none; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 540px;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.modal-close {
  width: 36px; height: 36px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.modal-close:hover { background: var(--gray-200); }

.modal-drone-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--black);
  margin-bottom: 6px;
}

.modal-mfr {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.modal-highlights {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 20px;
  font-weight: 300;
  line-height: 1.6;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.modal-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--gray-100);
  color: var(--gray-600);
}

.modal-book-btn {
  width: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 16px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.modal-book-btn:hover { background: var(--gray-800); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* ── HERO LANES (dual-audience CTA split) ── */
.hero-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 480px;
}

.hero-lane {
  display: block;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all var(--transition);
}

.hero-lane:hover {
  border-color: var(--black);
  transform: translateY(-2px);
}

.hero-lane-business {
  background: var(--black);
  border-color: var(--black);
}
.hero-lane-business .hero-lane-eyebrow,
.hero-lane-business .hero-lane-sub { color: var(--gray-400); }
.hero-lane-business .hero-lane-title { color: var(--white); }

.hero-lane-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.hero-lane-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--black);
  margin-bottom: 4px;
}

.hero-lane-sub {
  font-size: 12px;
  color: var(--gray-600);
}

/* ── LIVE JOB FEED CARD ── */
.job-feed-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.25), 0 4px 12px -4px rgba(0,0,0,0.06);
}

.job-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 14px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 8px;
}

.job-feed-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
}

.job-feed-pulse {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: jobPulse 2s infinite;
}

@keyframes jobPulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.job-feed-all {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition);
}
.job-feed-all:hover { color: var(--black); }

.job-feed-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 360px;
  overflow: hidden;
}

/* ── Hero feed CAROUSEL stage (overrides flex layout when active) ──
   Activated by adding .job-feed-stage in JS once the carousel mounts.
   3 visible cards: top=next (30%), middle=current (100%), bottom=prev (30%).
   Auto-advances every 4s; cards transition between states with a soft
   slide+fade. */
.job-feed-stage {
  position: relative;
  display: block;
  height: 240px;
  overflow: hidden;
  /* Soft fade at top + bottom edges so cards drift in/out gracefully */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.job-feed-stage .carousel-card {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  /* Centered on stage; transforms below offset by ±card height */
  transform: translateY(-50%);
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  pointer-events: none;
  border-top: none !important;
  background: var(--white);
}
.job-feed-stage .carousel-card.state-next {
  transform: translateY(calc(-50% - 78px)) scale(0.94);
  opacity: 0.3;
}
.job-feed-stage .carousel-card.state-current {
  transform: translateY(-50%) scale(1);
  opacity: 1;
  pointer-events: auto;
  /* Subtle highlight on the focused card */
  background: var(--gray-50);
  box-shadow: 0 8px 22px -16px rgba(0,0,0,0.18);
}
.job-feed-stage .carousel-card.state-prev {
  transform: translateY(calc(-50% + 78px)) scale(0.94);
  opacity: 0.3;
}
.job-feed-stage .carousel-card.state-hidden-top {
  transform: translateY(calc(-50% - 160px)) scale(0.88);
  opacity: 0;
}
.job-feed-stage .carousel-card.state-hidden-bottom {
  transform: translateY(calc(-50% + 160px)) scale(0.88);
  opacity: 0;
}

/* When carousel is active, drop the divider lines that .job-row + .job-row adds */
.job-feed-stage .carousel-card + .carousel-card { border-top: none; }

.job-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.job-row:hover { background: var(--gray-50); }

.job-row + .job-row { border-top: 1px solid var(--gray-100); }

.job-row-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100);
  border-radius: 10px;
  font-size: 16px;
}

.job-row-main { min-width: 0; }

.job-row-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.job-row-meta {
  font-size: 12px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.job-row-meta .dot { width: 3px; height: 3px; background: var(--gray-400); border-radius: 50%; display: inline-block; }

.job-row-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
}

.job-row-budget {
  text-align: right;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
}

.job-feed-cta {
  width: 100%;
  text-align: center;
  margin-top: 14px;
  padding: 12px 24px !important;
  font-size: 14px !important;
}

.nav-login { display: inline-flex; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-login { display: none; }
  .hero { grid-template-columns: 1fr; padding: 120px 20px 60px; min-height: auto; gap: 40px; }
  .hero-visual { height: auto; }
  .hero-lanes { max-width: 100%; }
  .job-feed-card { max-width: 100%; }
  section { padding: 70px 20px; }
  .search-section { padding: 40px 20px; }
  .how-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .providers-inner { grid-template-columns: 1fr; gap: 40px; }
  .drone-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 600px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-lanes { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   ROLE-AWARE HOME (pilot / business signed-in)
   ───────────────────────────────────────── */

.role-home {
  padding-top: 64px; /* clear fixed nav */
}

.role-announce {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 40px;
  font-size: 13px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.role-announce-pill {
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 100px;
}

.role-section {
  padding: 32px 40px;
}
.role-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Featured "ad post" — top promoted job/pilot */
.ad-post {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1f2937 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
.ad-post::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(245,158,11,0.18), transparent 70%);
  pointer-events: none;
}
.ad-post-business {
  background: linear-gradient(135deg, #0a0a0a 0%, #0f766e 100%);
}
.ad-post-business::before {
  background: radial-gradient(circle, rgba(34,197,94,0.18), transparent 70%);
}
.ad-post-side { position: relative; z-index: 1; max-width: 640px; }
.ad-post-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251,191,36,0.15);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.ad-post-business .ad-post-tag {
  color: #6ee7b7;
  background: rgba(110,231,183,0.12);
}
.ad-post-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 12px;
  color: var(--white);
}
.ad-post-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  margin: 0 0 14px;
  font-weight: 300;
}
.ad-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.ad-post-meta .dot { width: 3px; height: 3px; background: rgba(255,255,255,0.4); border-radius: 50%; display: inline-block; }
.ad-post-meta .ad-pill {
  background: rgba(255,255,255,0.1);
  padding: 3px 10px;
  border-radius: 100px;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
}
.ad-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ad-post-actions .btn-hero {
  background: var(--white);
  color: var(--black);
}
.ad-post-actions .btn-hero:hover { background: var(--gray-200); }
.ad-post-actions .btn-hero-outline {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.ad-post-actions .btn-hero-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

.ad-post-pay {
  position: relative;
  z-index: 1;
  text-align: right;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.ad-post-pay-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.ad-post-pay-amount {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--white);
  line-height: 1;
}
.ad-post-pay-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.role-board-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.role-board-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
}
.role-board-title span { color: var(--gray-400); }

@media (max-width: 900px) {
  .role-section { padding: 24px 20px; }
  .role-announce { padding: 10px 20px; font-size: 12px; }
  .ad-post { grid-template-columns: 1fr; padding: 28px; gap: 20px; }
  .ad-post-pay { border-left: none; border-top: 1px solid rgba(255,255,255,0.12); padding-left: 0; padding-top: 16px; text-align: left; }
  .role-board-header { flex-direction: column; align-items: stretch; }
}

/* ─────────────────────────────────────────
   PILOT GATE — sign-up gate on pilots.html for logged-out visitors
   Shown beneath the 6-card preview with a gradient fade-up so the
   visible cards bleed into the CTA panel.
   ───────────────────────────────────────── */
/* Tall absolute fade strip sits on top of the bottom of the pilot grid —
   transparent at the top → solid white at the bottom — so the last row
   of pilot cards visually melts into the sign-up panel below. */
.pilot-gate {
  position: relative;
  margin-top: -260px;
  padding: 280px 20px 40px;
  z-index: 5;
  pointer-events: none;
}
.pilot-gate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 280px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.55) 45%,
    rgba(255,255,255,0.95) 80%,
    var(--white) 100%
  );
  pointer-events: none;
}
.pilot-gate-card {
  pointer-events: auto;
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px 32px 26px;
  text-align: center;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.18);
}
.pilot-gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  font-size: 24px;
  background: var(--gray-100);
  border-radius: 50%;
  margin-bottom: 14px;
}
.pilot-gate-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--black);
  margin: 0 0 10px;
  line-height: 1.2;
}
.pilot-gate-title span { color: var(--black); }
.pilot-gate-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-600);
  margin: 0 0 22px;
}
.pilot-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.pilot-gate-actions .btn-hero,
.pilot-gate-actions .btn-hero-outline {
  width: 100%;
  text-align: center;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
}
.pilot-gate-foot {
  font-size: 12px;
  color: var(--gray-400);
  margin: 14px 0 0;
}

/* ─────────────────────────────────────────
   PILOT HOME MAP BOARD — map + side panel layout
   ───────────────────────────────────────── */
.map-board {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  margin-top: 16px;
  align-items: stretch;
}
.map-board-map-wrap {
  position: relative;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.map-board-map {
  height: 540px;
  width: 100%;
  background: var(--gray-100);
}

/* Right-side scrollable gig list */
.map-board-side {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 540px;
}
.map-board-side-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
  color: var(--gray-600);
  background: var(--gray-50);
}
.map-board-side-head strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--black);
}
.map-board-side-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.map-side-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
}

/* Compact gig card in the side panel */
.map-side-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
}
.map-side-card + .map-side-card { margin-top: 2px; }
.map-side-card:hover { background: var(--gray-50); }
.map-side-card.is-active {
  background: var(--white);
  border-color: var(--black);
  box-shadow: 0 4px 12px -6px rgba(0,0,0,0.18);
}
.map-side-card-icon {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--white);
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}
.map-side-card-main { min-width: 0; }
.map-side-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-side-card-meta {
  font-size: 11px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.map-side-card-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  background: #fef3c7;
  padding: 1px 5px;
  border-radius: 3px;
}
.map-side-card-budget {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* Full vertical list below the map — shows every filtered gig */
.pilot-home-list-block {
  margin-top: 28px;
}
.pilot-home-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.pilot-home-list-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--black);
  margin: 0;
}
.pilot-home-list-count {
  font-size: 13px;
  color: var(--gray-600);
}
.pilot-home-list-count strong {
  color: var(--black);
  font-weight: 700;
}

/* Stack on smaller screens */
@media (max-width: 1000px) {
  .map-board {
    grid-template-columns: 1fr;
  }
  .map-board-map { height: 420px; }
  .map-board-side { height: 360px; }
}

/* ─────────────────────────────────────────
   JOBS MAP VIEW (Leaflet)
   ───────────────────────────────────────── */

/* List / Map toggle pill in the results header */
.view-toggle {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: 100px;
  padding: 3px;
  gap: 0;
}
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.view-toggle-btn:hover { color: var(--black); }
.view-toggle-btn.is-active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Map container */
.job-map-wrap {
  position: relative;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.job-map {
  height: 640px;
  width: 100%;
  background: var(--gray-100);
}

/* Floating banner at the top of the map showing how many jobs are in view */
.job-map-banner {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.18);
  z-index: 500;
  max-width: calc(100% - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-map-pulse {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: jobPulse 2s infinite;
  flex-shrink: 0;
}

/* Job pins — pill-shaped with industry color, icon, and budget */
.job-pin {
  background: transparent !important;
  border: none !important;
}
.job-pin-inner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 6px;
  border-radius: 100px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.25),
    0 0 0 2px var(--white);
  transition: transform 0.15s ease;
  cursor: pointer;
}
.job-pin-inner:hover { transform: translateY(-2px) scale(1.05); }
.job-pin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  font-size: 11px;
}
.job-pin-budget { padding-right: 2px; }

/* User-location marker (pulsing blue dot) */
.user-loc-marker {
  position: relative;
  background: transparent !important;
  border: none !important;
}
.user-loc-dot {
  position: absolute;
  inset: 4px;
  background: #2563eb;
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.4);
  z-index: 2;
}
.user-loc-pulse {
  position: absolute;
  inset: 0;
  background: rgba(37,99,235,0.4);
  border-radius: 50%;
  animation: userLocPulse 2s ease-out infinite;
  z-index: 1;
}
@keyframes userLocPulse {
  0%   { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(2); opacity: 0; }
}

/* Map popup styling */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  padding: 0 !important;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.25) !important;
}
.leaflet-popup-content { margin: 0 !important; padding: 14px 16px !important; }
.map-popup-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--black);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-popup-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
}
.map-popup-meta {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.map-popup-client {
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.map-popup-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-100);
  padding-top: 10px;
}
.map-popup-budget {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--black);
}
.map-popup-apply {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.map-popup-apply:hover { background: var(--gray-800); }

@media (max-width: 768px) {
  .job-map { height: 480px; }
}

/* ─────────────────────────────────────────
   APPLY BUTTON — LOCKED STATE
   Painted by applyLockState() when the signed-in user can't apply yet.
   Click still routes through applyToJob() which shows the explanatory modal.
   ───────────────────────────────────────── */
.job-mkt-apply.is-locked {
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: not-allowed;
  font-weight: 500;
  position: relative;
}
.job-mkt-apply.is-locked:hover {
  background: var(--gray-200);
  color: var(--black);
}

/* Whole job card gets a subtle muted look when locked */
.job-mkt-card.is-locked {
  opacity: 0.78;
}
.job-mkt-card.is-locked:hover {
  opacity: 1;
  border-color: var(--gray-400);
  /* Still hoverable so users discover the gate, but no lift animation */
  transform: none;
  box-shadow: 0 8px 16px -12px rgba(0,0,0,0.12);
}
.job-mkt-card.is-locked .job-mkt-budget {
  color: var(--gray-600);
}

/* Hero job-row (homepage widget) — small lock indicator on hover */
.job-row.is-locked {
  opacity: 0.7;
  position: relative;
}
.job-row.is-locked:hover { opacity: 1; }
.job-row.is-locked::after {
  content: '🔒';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  opacity: 0.5;
}

/* ─────────────────────────────────────────
   APPLY GATE MODAL — shown when an unverified pilot tries to apply to a job
   ───────────────────────────────────────── */
.apply-gate-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,10,10,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.apply-gate-overlay.is-visible { opacity: 1; }
.apply-gate-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px 28px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s ease;
}
.apply-gate-overlay.is-visible .apply-gate-card { transform: translateY(0) scale(1); }
.apply-gate-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.15s ease;
}
.apply-gate-close:hover { background: var(--gray-200); color: var(--black); }
.apply-gate-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: inline-block;
  width: 64px; height: 64px;
  line-height: 64px;
  background: var(--gray-100);
  border-radius: 50%;
}
.apply-gate-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 8px 0 12px;
  color: var(--black);
}
.apply-gate-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-600);
  margin-bottom: 24px;
}
.apply-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.apply-gate-actions .btn-hero,
.apply-gate-actions .btn-hero-outline {
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
}

/* ─────────────────────────────────────────
   PROFILE PAGE
   ───────────────────────────────────────── */

.profile-hero {
  padding: 120px 40px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.profile-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.profile-avatar-wrap { flex-shrink: 0; }
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.18);
  display: block;
}
.profile-avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
}
.profile-id { flex: 1; min-width: 0; }
.profile-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--black);
  margin: 0 0 6px;
  line-height: 1.1;
}
.profile-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-600);
  flex-wrap: wrap;
}
.profile-meta .dot { width: 3px; height: 3px; background: var(--gray-400); border-radius: 50%; display: inline-block; }
.profile-role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--gray-100);
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.profile-role-badge.is-pilot { background: #fef3c7; }
.profile-role-badge.is-business { background: #dbeafe; }

.profile-section {
  padding: 16px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.onboarding-banner {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.onboarding-banner-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.onboarding-banner-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
}
.onboarding-banner-sub {
  color: var(--gray-400);
  font-size: 13px;
  margin-bottom: 14px;
}
.onboarding-banner-bar {
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
  max-width: 480px;
}
.onboarding-banner-bar-fill {
  height: 100%;
  background: var(--white);
  border-radius: 100px;
  transition: width 0.5s ease;
}
.onboarding-banner-steps {
  font-size: 12px;
  color: var(--gray-400);
}
.onboarding-banner-steps strong { color: var(--white); }
.onboarding-banner .btn-hero {
  background: var(--white);
  color: var(--black);
  white-space: nowrap;
}
.onboarding-banner .btn-hero:hover { background: var(--gray-200); }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}
.profile-main { display: flex; flex-direction: column; gap: 16px; }
.profile-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }

.profile-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.profile-card-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--black);
  margin: 0;
}
.profile-card-edit {
  font-size: 12px;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
}
.profile-card-edit:hover { color: var(--black); text-decoration: underline; }
.profile-card-body { display: flex; flex-direction: column; gap: 16px; }

.profile-detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.profile-detail-value {
  font-size: 14px;
  color: var(--black);
}
.profile-detail-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}
.profile-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.profile-chip {
  background: var(--gray-100);
  color: var(--black);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
}
.profile-empty {
  font-size: 13px;
  color: var(--gray-400);
  font-style: italic;
}

.profile-side-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-600);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.profile-side-row:last-child { border-bottom: none; }
.profile-side-row strong { color: var(--black); font-weight: 600; }
.status-verified { color: #16a34a !important; }
.status-rejected { color: #dc2626 !important; }
.status-flagged { color: #d97706 !important; }

.profile-stat-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.profile-stat-row:last-of-type { border-bottom: none; }
.profile-stat-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
}
.profile-stat-label {
  font-size: 12px;
  color: var(--gray-600);
}

.profile-job-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 16px;
}
.profile-job-row:last-child { border-bottom: none; padding-bottom: 0; }
.profile-job-title { font-size: 14px; font-weight: 500; color: var(--black); margin-bottom: 2px; }
.profile-job-meta { font-size: 12px; color: var(--gray-600); }
.profile-job-budget {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .profile-hero { padding: 100px 20px 16px; }
  .profile-section { padding: 12px 20px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-side { position: static; }
  .onboarding-banner { grid-template-columns: 1fr; padding: 20px; }
}

/* ─────────────────────────────────────────
   SIDE DRAWER — collapses center nav into a hamburger when signed in
   ───────────────────────────────────────── */

/* Hamburger button (injected by JS, sits before the logo) */
.nav-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  color: var(--black);
  cursor: pointer;
  padding: 0;
  margin-right: 8px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.nav-hamburger:hover {
  background: var(--gray-50);
  border-color: var(--black);
}

/* When the drawer is installed, hide the center nav-links to clean up the bar */
body.has-side-drawer nav .nav-links { display: none; }

/* Backdrop overlay */
.side-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(10, 10, 10, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.side-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* The drawer itself */
/* Drawer container — block layout (NOT flex column) so children stack
   predictably regardless of what's nested inside them. Earlier flex column
   caused overlap glitches when child flex-items collapsed. */
.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  background: var(--white);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 8px 0 32px -12px rgba(0,0,0,0.25);
  overflow-y: auto;
  overflow-x: hidden;
}
.side-drawer.is-open { transform: translateX(0); }
/* Each top-level child is its own block — no flex collisions */
.side-drawer > * { display: block; }

.side-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.side-drawer-head .nav-logo { flex-shrink: 0; }
.side-drawer-close {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}
.side-drawer-close:hover { background: var(--gray-200); color: var(--black); }

/* User card — its own block, flex laid out internally */
.side-drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s ease;
  /* Prevent the flex children from breaking the row */
  overflow: hidden;
}
.side-drawer-user:hover { background: var(--gray-100); }
.side-drawer-user .nav-avatar {
  width: 40px; height: 40px;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gray-200);
  flex-shrink: 0;
}
.side-drawer-user-text {
  /* min-width:0 lets text truncate inside a flex parent — without this,
     a long name bleeds out of the user card and overlaps the nav below */
  min-width: 0;
  flex: 1 1 auto;
}
.side-drawer-user-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-drawer-user-role {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav — block layout, sections stack naturally */
.side-drawer-nav {
  display: block;
  padding: 4px 12px 20px;
}
.side-drawer-section {
  padding: 8px 0;
  border-top: 1px solid var(--gray-100);
}
.side-drawer-section:first-child { border-top: none; }
.side-drawer-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 10px 8px 6px;
}
.side-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.side-drawer-item:hover { background: var(--gray-50); }
.side-drawer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--gray-100);
  border-radius: 8px;
  font-size: 14px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .side-drawer { width: 300px; }
}

/* ─────────────────────────────────────────
   NAV PROFILE — avatar + onboarding progress ring
   ───────────────────────────────────────── */

.nav-profile {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--white);
}

.nav-avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-progress-ring {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 3;
}

.ring-fg {
  fill: none;
  stroke: var(--black);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease;
}

.nav-progress-ring .nav-avatar {
  width: 28px;
  height: 28px;
  border: none;
  position: relative;
  z-index: 1;
}

.ring-pct {
  position: absolute;
  bottom: -4px;
  right: -8px;
  background: var(--black);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.2px;
  padding: 2px 5px;
  border-radius: 100px;
  border: 1.5px solid var(--white);
  z-index: 2;
  font-family: var(--font-body);
  line-height: 1.1;
}

.nav-logout-link {
  font-size: 13px;
}

@media (max-width: 900px) {
  .nav-logout-link { display: none; }
}

/* ─────────────────────────────────────────
   MARKETPLACE PAGES (pilots.html, jobs.html)
   ───────────────────────────────────────── */

.mkt-hero {
  padding: 120px 40px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.mkt-hero-inner { max-width: 760px; }

.mkt-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--black);
  margin: 12px 0 16px;
}
.mkt-title span { color: var(--gray-400); }

.mkt-sub {
  font-size: 16px;
  color: var(--gray-600);
  font-weight: 300;
  max-width: 580px;
  line-height: 1.6;
}

.mkt-search {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 6px 6px 6px 22px;
  max-width: 640px;
  box-shadow: 0 4px 14px -8px rgba(0,0,0,0.08);
}
.mkt-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
}
.mkt-search input::placeholder { color: var(--gray-400); }
.mkt-search-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition);
}
.mkt-search-btn:hover { background: var(--gray-800); }

.mkt-body {
  padding: 20px 40px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.mkt-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Filter sidebar ── */
.mkt-filters {
  position: sticky;
  top: 84px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.mkt-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.mkt-filter-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--black);
}
.mkt-filter-clear {
  font-size: 12px;
  color: var(--gray-600);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}
.mkt-filter-clear:hover { color: var(--black); }

.mkt-filter-group { padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.mkt-filter-group:last-child { border-bottom: none; }

.mkt-filter-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.mkt-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mkt-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--black);
  cursor: pointer;
  user-select: none;
}
.mkt-check input { accent-color: var(--black); width: 14px; height: 14px; cursor: pointer; }
.mkt-check .mkt-check-count { color: var(--gray-400); margin-left: auto; font-size: 12px; }

.mkt-range-vals {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.mkt-range input[type="range"] {
  width: 100%;
  accent-color: var(--black);
  cursor: pointer;
}

.mkt-rating-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mkt-pill {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.mkt-pill:hover { border-color: var(--black); color: var(--black); }
.mkt-pill.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ── Results header ── */
.mkt-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 18px;
}
.mkt-results-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
}
.mkt-results-count span { font-weight: 700; }
.mkt-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}
.mkt-sort select {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 6px 14px;
  cursor: pointer;
  outline: none;
}

/* ── Pilot grid + cards ── */
.pilot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.pilot-mkt-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.pilot-mkt-card:hover {
  border-color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.18);
}

.pilot-mkt-cover {
  position: relative;
  height: 180px;
  background: var(--gray-100);
  overflow: hidden;
}
.pilot-mkt-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.pilot-mkt-card:hover .pilot-mkt-cover img { transform: scale(1.06); }

.pilot-mkt-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pilot-mkt-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 4px;
}
.pilot-mkt-badge.top { background: #fef3c7; }
.pilot-mkt-badge.verified { background: #dbeafe; }

.pilot-mkt-rate-tag {
  position: absolute;
  bottom: 12px; right: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
}
.pilot-mkt-rate-tag span { font-size: 11px; font-weight: 400; opacity: 0.7; }

.pilot-mkt-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.pilot-mkt-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pilot-mkt-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gray-200);
}
.pilot-mkt-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}
.pilot-mkt-loc {
  font-size: 12px;
  color: var(--gray-400);
}

.pilot-mkt-headline {
  font-size: 14px;
  color: var(--black);
  line-height: 1.4;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.pilot-mkt-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--black);
}
.pilot-mkt-stars { color: #f59e0b; letter-spacing: -1px; }
.pilot-mkt-rating-num { font-weight: 600; }
.pilot-mkt-reviews { color: var(--gray-400); font-size: 12px; }

.pilot-mkt-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--gray-600);
}
.pilot-mkt-chip {
  background: var(--gray-100);
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

.pilot-mkt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--gray-100);
  font-size: 12px;
  color: var(--gray-600);
}
.pilot-mkt-book {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}
.pilot-mkt-book:hover { background: var(--gray-800); }

/* ── Job grid + cards ── */
.job-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-mkt-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all var(--transition);
  cursor: pointer;
}
.job-mkt-card:hover {
  border-color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -20px rgba(0,0,0,0.18);
}

.job-mkt-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100);
  border-radius: 14px;
  font-size: 24px;
}

.job-mkt-main { min-width: 0; }
.job-mkt-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.job-mkt-title-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
}
.job-mkt-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
  flex-wrap: wrap;
}
.job-mkt-meta .dot { width: 3px; height: 3px; background: var(--gray-400); border-radius: 50%; display: inline-block; }
.job-mkt-client {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 6px;
}

.job-mkt-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.job-mkt-budget {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
}
.job-mkt-apply {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}
.job-mkt-apply:hover { background: var(--gray-800); }

/* Marketplace responsive */
@media (max-width: 900px) {
  .mkt-hero { padding: 100px 20px 24px; }
  .mkt-body { padding: 16px 20px 60px; }
  .mkt-layout { grid-template-columns: 1fr; gap: 20px; }
  .mkt-filters { position: static; }
  .pilot-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .job-mkt-card { grid-template-columns: 48px 1fr; }
  .job-mkt-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
