/* ==========================================================================
   SCOUTR — GHOSTWRITER DAYTIME SKY BLUE THEME
   Modular, responsive stylesheet for landing page and workspace command center.
   ========================================================================== */

:root {
  --sky-top: #2b6cb0;
  --sky-mid: #3182ce;
  --sky-light: #4299e1;
  --sky-soft: #63b3ed;
  --sky-pale: #ebf8ff;

  --bg-white: #ffffff;
  --bg-subtle: #f8fafc;
  --border-light: #e2e8f0;
  --border-glass: rgba(255, 255, 255, 0.45);

  --text-dark: #1a202c;
  --text-body: #4a5568;
  --text-muted: #718096;
  --text-white: #ffffff;

  --accent-blue: #3182ce;
  --accent-green: #38a169;
  --accent-green-bg: #f0fff4;
  --accent-amber: #d69e2e;
  --accent-amber-bg: #fffaf0;
  --accent-red: #e53e3e;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fragment Mono', ui-monospace, monospace;

  --shadow-window: 0 20px 50px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-pill: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--sky-soft);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
}

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

/* ==========================================================================
   1. FLOATING CAPSULE NAVBAR (LANDING)
   ========================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  transition: all 0.3s ease;
}

.capsule-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 7px 10px 7px 18px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 760px;
  transition: all 0.3s ease;
}

.navbar-wrapper.scrolled .capsule-nav {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar-wrapper.scrolled .nav-brand {
  color: var(--sky-top);
}

.brand-glyph {
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-white);
}

.navbar-wrapper.scrolled .nav-link {
  color: var(--text-body);
}

.navbar-wrapper.scrolled .nav-link:hover {
  color: var(--sky-top);
}

.nav-cta-group {
  display: flex;
  align-items: center;
}

.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: var(--text-white);
  color: var(--sky-top);
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-pill);
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.btn-nav-primary:hover {
  transform: translateY(-1px);
}

.navbar-wrapper.scrolled .btn-nav-primary {
  background: var(--sky-top);
  color: var(--text-white);
}

/* ==========================================================================
   2. HERO SECTION & ORGANIC CLOUDS
   ========================================================================== */
.hero-landing {
  position: relative;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 40%, var(--sky-light) 75%, var(--sky-soft) 100%);
  padding: 120px 24px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.clouds-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.25);
  filter: blur(35px);
  border-radius: 50%;
}

.cloud-1 { width: 440px; height: 280px; top: 8%; left: -60px; }
.cloud-2 { width: 480px; height: 300px; top: 12%; right: -80px; }
.cloud-3 { width: 600px; height: 220px; bottom: 25%; left: 25%; opacity: 0.35; }

/* GPU-Accelerated Entrance Animations */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(72, 187, 120, 0);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-bottom: 44px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 15px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  color: var(--text-white);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pulse-dot-hero {
  width: 7px;
  height: 7px;
  background: #48bb78;
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
}

.hero-heading {
  color: var(--text-white);
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-subheading {
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  max-width: 660px;
  margin: 0 auto 30px;
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.btn-hero-white {
  background: var(--text-white);
  color: var(--sky-top);
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease;
}

.btn-hero-white:hover { transform: translateY(-2px); }

.btn-hero-glass {
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--text-white);
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 9999px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease;
}

.btn-hero-glass:hover { background: rgba(255, 255, 255, 0.35); }

/* ==========================================================================
   3. LANDING PRODUCT PREVIEW CARD (MACOS MOCKUP)
   ========================================================================== */
.hero-mockup-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-mockup-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-window);
  border: 1px solid rgba(255, 255, 255, 0.9);
  text-align: left;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  gap: 10px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.mockup-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  background: #edf2f7;
  padding: 2px 8px;
  border-radius: 9999px;
  color: var(--accent-green);
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.mockup-body-preview {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mockup-job-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 245px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  transform-style: preserve-3d;
}

.mockup-job-card:hover {
  border-color: #cbd5e0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
}

.mjc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}

.mjc-top h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

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

.badge-blue {
  font-family: var(--font-mono);
  font-size: 10px;
  background: #ebf8ff;
  color: var(--sky-mid);
  border: 1px solid #bee3f8;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.mjc-star {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #ea580c;
  white-space: nowrap;
}

.mjc-desc {
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.45;
  margin-bottom: 12px;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mjc-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  overflow: hidden;
  margin-bottom: 10px;
}

.tag-green {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.tag-gray {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: #edf2f7;
  color: var(--text-body);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.mjc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
  margin-top: auto;
}

.loc-text {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.btn-mockup-apply {
  background: #2d3748;
  color: white;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease;
}

.btn-mockup-apply:hover { background: var(--sky-top); }

/* ==========================================================================
   4. FEATURES & PROCESS
   ========================================================================== */
.features-section {
  background: var(--sky-pale);
  padding: 84px 24px 60px;
  text-align: center;
}

.section-container { max-width: 1060px; margin: 0 auto; }

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  background: #bee3f8;
  color: var(--sky-top);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.features-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.features-subtitle {
  font-size: 16px;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto 32px;
}

.feature-pills-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}

.feature-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.feature-capsule i { width: 15px; height: 15px; color: var(--sky-mid); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}

.process-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  transform-style: preserve-3d;
}

.process-card:hover {
  border-color: #cbd5e0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: #bee3f8;
  margin-bottom: 14px;
}

.process-card h3 { font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.process-card p { font-size: 13px; color: var(--text-body); line-height: 1.55; }

/* ==========================================================================
   5. PHILOSOPHY & STORYTELLING SECTION (APPLE GRADE)
   ========================================================================== */
.philosophy-section {
  background: var(--sky-pale);
  padding: 30px 24px 80px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

.philosophy-card-media {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.media-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  height: 200px;
  margin-bottom: 20px;
}

.media-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.media-overlay-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.philosophy-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sky-top);
  margin-bottom: 8px;
}

.media-caption h3 { font-size: 17px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; line-height: 1.35; }
.media-caption p { font-size: 13px; color: var(--text-body); line-height: 1.55; }

.philosophy-card-editorial {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.editorial-inner { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.quote-header { margin-bottom: 12px; }

.apple-quote {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  border-left: 3px solid var(--sky-mid);
  padding-left: 14px;
}

.quote-attributions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-left: 14px;
}

.attr-primary { font-size: 13px; font-weight: 700; color: #475569; }
.attr-secondary { font-size: 13px; font-weight: 700; color: var(--sky-top); font-style: italic; }

.editorial-body h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.editorial-body p { font-size: 13px; color: var(--text-body); line-height: 1.55; margin-bottom: 22px; }

.editorial-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid #edf2f7;
  padding-top: 16px;
}

.stat-pill {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.stat-pill strong { font-size: 16px; font-weight: 800; color: var(--sky-top); display: block; }
.stat-pill span { font-size: 10.5px; color: var(--text-muted); font-weight: 600; }

/* ==========================================================================
   6. PRICING & FOOTER
   ========================================================================== */
.pricing-section { background: #ffffff; padding: 84px 24px 70px; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; margin-top: 36px; }
.price-card { background: #f7fafc; border: 1px solid var(--border-light); border-radius: 16px; padding: 32px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.highlight-card { background: #ebf8ff; border-color: #bee3f8; position: relative; }
.pill-best-val { position: absolute; top: -11px; right: 20px; background: var(--sky-top); color: white; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 9999px; }
.plan-name { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.plan-price { font-size: 36px; font-weight: 800; color: var(--text-dark); margin: 10px 0 18px; }
.plan-price span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; color: var(--text-body); margin-bottom: 28px; }
.btn-plan { display: block; text-align: center; background: #ffffff; border: 1px solid var(--border-light); color: var(--text-dark); text-decoration: none; font-weight: 600; font-size: 12.5px; padding: 9px; border-radius: 9999px; }
.btn-plan-dark { display: block; text-align: center; background: #2d3748; color: white; text-decoration: none; font-weight: 600; font-size: 12.5px; padding: 9px; border-radius: 9999px; }
.btn-plan-dark:hover { background: var(--sky-top); }

.bottom-cta-section { background: var(--sky-pale); padding: 70px 24px; text-align: center; }
.bottom-cta-box { max-width: 600px; margin: 0 auto; }
.bottom-cta-box h2 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.bottom-cta-box p { font-size: 15.5px; color: var(--text-body); margin-bottom: 24px; }
.btn-cta-large { display: inline-block; background: #2d3748; color: white; text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 12px 28px; border-radius: 9999px; transition: background 0.15s ease; }
.btn-cta-large:hover { background: var(--sky-top); }

.footer-section { background: var(--sky-pale); padding: 0 24px 44px; }
.footer-card { max-width: 1060px; margin: 0 auto; background: #bee3f8; border: 1px solid #90cdf4; border-radius: 18px; padding: 36px 40px; display: flex; justify-content: space-between; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; color: var(--sky-top); margin-bottom: 6px; }
.footer-copy { font-size: 12.5px; color: #2b6cb0; max-width: 300px; }
.footer-links { display: flex; gap: 40px; }
.link-col { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; }
.link-col strong { color: var(--text-dark); margin-bottom: 2px; }
.link-col a { color: var(--text-body); text-decoration: none; }
.link-col a:hover { color: var(--sky-top); }
.link-col span { color: var(--text-muted); }

/* ==========================================================================
   7. STANDALONE WORKSPACE (ROCK-SOLID FIXED GEOMETRY)
   ========================================================================== */
.app-mode-body {
  background: #f0f7ff;
  min-height: 100vh;
  padding: 24px;
}

.app-standalone-container {
  max-width: 1140px;
  margin: 0 auto;
}

.app-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 4px;
}

.brand-group { display: flex; align-items: center; gap: 14px; }
.app-brand-link { display: flex; align-items: center; gap: 8px; color: var(--sky-top); font-weight: 800; font-size: 18px; text-decoration: none; }
.telemetry-pill-light { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #ffffff; border: 1px solid var(--border-light); border-radius: 9999px; font-size: 11.5px; color: var(--text-muted); }
.pulse-dot { width: 6px; height: 6px; background-color: var(--accent-green); border-radius: 50%; }
.mono-badge { font-family: var(--font-mono); font-size: 10px; background: #edf2f7; padding: 1px 5px; border-radius: 9999px; color: var(--text-dark); }

.app-nav-actions { display: flex; align-items: center; gap: 8px; }
.btn-app-secondary { background: #ffffff; border: 1px solid var(--border-light); color: var(--text-dark); text-decoration: none; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; transition: all 0.15s ease; }
.btn-app-secondary:hover { background: #f7fafc; border-color: #cbd5e0; }

.user-pill { display: flex; align-items: center; gap: 6px; background: #ffffff; border: 1px solid var(--border-light); padding: 4px 10px; border-radius: 9999px; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.avatar { width: 16px; height: 16px; background: var(--sky-top); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; }

/* FIXED DESKTOP VIEWPORT WINDOW CONTAINER (ZERO TAB JITTER) */
.app-window-standalone {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-window);
  border: 1px solid var(--border-light);
  height: 840px;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.tab-label-short {
  display: none;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.window-controls { display: flex; align-items: center; gap: 6px; width: 60px; }
.window-tabs { display: flex; align-items: center; gap: 6px; }

.w-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.w-tab:hover { background: #edf2f7; }
.w-tab.active {
  background: #ffffff;
  border-color: var(--border-light);
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.w-badge { font-family: var(--font-mono); font-size: 10px; background: #edf2f7; padding: 1px 5px; border-radius: 9999px; }
.w-badge-healed { font-family: var(--font-mono); font-size: 9.5px; background: #f0fff4; color: #276749; padding: 1px 6px; border-radius: 9999px; font-weight: 600; }
.w-icon { width: 14px; height: 14px; }
.live-status-pill { font-size: 11px; font-weight: 600; color: var(--accent-green); }

/* INTERNAL SCROLLING BODY */
.window-body {
  padding: 24px 28px 36px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.view-pane { display: none; width: 100%; }
.view-pane.active { display: block; }

.feed-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; }
.section-desc { font-size: 13px; color: var(--text-muted); }
.active-profile-tag-pill {
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  color: var(--sky-top);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 9999px;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #edf2f7;
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

/* FILTER & SEARCH */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.search-input-wrap { position: relative; flex: 1; max-width: 440px; }
.search-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--text-muted); }
.search-input-wrap input { width: 100%; padding: 8px 12px 8px 32px; background: #f7fafc; border: 1px solid var(--border-light); border-radius: 8px; font-size: 12.5px; color: var(--text-dark); outline: none; }
.search-input-wrap input:focus { border-color: var(--sky-mid); background: #ffffff; }

.filter-pills-row { display: flex; gap: 5px; }
.f-pill { background: #f7fafc; border: 1px solid var(--border-light); padding: 5px 12px; border-radius: 9999px; font-size: 12px; font-weight: 500; color: var(--text-muted); cursor: pointer; }
.f-pill.active { background: #2d3748; border-color: #2d3748; color: #ffffff; }

/* SPLIT DISCOVERY EXPLORER */
.split-explorer-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: start;
}

.jobs-list-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 630px;
  overflow-y: auto;
  padding-right: 4px;
}

.job-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 125px;
}

.job-card:hover {
  border-color: #cbd5e0;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.job-card.selected {
  border-color: var(--sky-mid);
  background: #f8fbff;
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.18), 0 8px 20px rgba(0, 0, 0, 0.06);
}

.card-header-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card-title-group {
  flex: 1;
  min-width: 0;
}

.card-title-group h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 4px;
  word-break: break-word;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.card-meta strong {
  color: var(--text-dark);
  font-weight: 600;
}

.star-match-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fffaf0;
  border: 1px solid #feebc8;
  color: #c05621;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.star-match-pill.top-match {
  background: #f0fff4;
  border-color: #c6f6d5;
  color: #22543d;
}

.card-desc {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag-salary {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #276749;
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-tech {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-tech.tag-matched {
  color: var(--sky-top);
  background: #ebf8ff;
  border-color: #bee3f8;
  font-weight: 600;
}

.card-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 11.5px;
}

.loc-text {
  color: var(--text-muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-apply-cta {
  background: #edf2f7;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-apply-cta:hover {
  background: var(--sky-top);
  border-color: var(--sky-top);
  color: white;
}

/* SEARCH & LIVE SCRAPING PULSE ANIMATIONS */
.search-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
  text-align: center;
  width: 100%;
}

.searching-pulse-radar {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--sky-top);
  animation: radarPing 1.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.circle-1 { width: 22px; height: 22px; animation-delay: 0s; }
.circle-2 { width: 38px; height: 38px; animation-delay: 0.5s; opacity: 0.7; }
.circle-3 { width: 52px; height: 52px; animation-delay: 1s; opacity: 0.4; }

@keyframes radarPing {
  0% { transform: scale(0.6); opacity: 0.9; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.35); opacity: 0; }
}

.radar-icon {
  width: 20px;
  height: 20px;
  color: var(--sky-top);
  position: relative;
  z-index: 2;
  animation: spin 3s linear infinite;
}

.searching-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.searching-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.skeleton-cards-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-card-skeleton {
  height: 96px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 12px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* RIGHT DETAIL DRAWER */
.job-detail-pane {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 0;
}

.detail-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.detail-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.detail-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.detail-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.25;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.detail-dot { color: #cbd5e0; }

.detail-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.d-stat {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 10px;
}

.d-label {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.d-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-mono);
}

.detail-section {
  margin-bottom: 16px;
}

.detail-sec-heading {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.detail-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-desc-text {
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.6;
}

.detail-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  margin-top: 18px;
}

.btn-primary-apply {
  flex: 1;
  background: #1a202c;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-primary-apply:hover {
  background: var(--sky-top);
  transform: translateY(-1px);
}

.btn-secondary-action {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-secondary-action:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.modal-large {
  max-width: 680px;
}

/* ==========================================================================
   8. PROFILE & RESUMES BUILDER
   ========================================================================== */
.profile-pills-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.prof-tab-pill {
  background: #f7fafc;
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.prof-tab-pill:hover { border-color: #cbd5e0; }
.prof-tab-pill.active {
  background: var(--sky-top);
  border-color: var(--sky-top);
  color: #ffffff;
}

.profile-editor-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
  align-items: start;
}

.resume-ingest-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px;
}

.card-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.raw-resume-area {
  width: 100%;
  height: 240px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-dark);
  resize: vertical;
  margin-bottom: 12px;
  outline: none;
}

.raw-resume-area:focus { border-color: var(--sky-top); }

.btn-extract-resume {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e0;
  color: var(--sky-top);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-extract-resume:hover { background: #ebf8ff; border-color: #90cdf4; }

.profile-form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.form-label { font-size: 11.5px; font-weight: 600; color: var(--text-dark); }
.form-input {
  background: #f7fafc;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-dark);
  outline: none;
  font-family: var(--font-sans);
}

.form-input:focus { border-color: var(--sky-top); background: #ffffff; }
.form-textarea { resize: vertical; }

.profile-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.btn-danger-light {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: var(--accent-red);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* ==========================================================================
   9. TELEMETRY & SENTINEL TERMINAL
   ========================================================================== */
.telemetry-banner { background: #f0fff4; border: 1px solid #c6f6d5; border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.telemetry-banner-text h3 { font-size: 15px; font-weight: 700; color: #276749; margin-bottom: 2px; }
.telemetry-banner-text p { font-size: 12.5px; color: #2f855a; }
.btn-heal-action { background: #38a169; color: white; border: none; font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 6px; cursor: pointer; }

.collector-cards-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
.collector-box { background: #f7fafc; border: 1px solid var(--border-light); border-radius: 10px; padding: 16px; }
.collector-box-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); margin-bottom: 12px; }
.c-id { font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.c-status { font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; border-radius: 9999px; font-weight: 600; }
.status-healthy { background: #c6f6d5; color: #22543d; }
.status-healed { background: #feebc8; color: #7b341e; }
.c-details { display: flex; flex-direction: column; gap: 6px; }
.c-row { display: flex; justify-content: space-between; font-size: 12px; }
.c-row span { color: var(--text-muted); }

.clean-terminal { background: #1a202c; border-radius: 10px; overflow: hidden; font-family: var(--font-mono); }
.terminal-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: #2d3748; border-bottom: 1px solid #4a5568; }
.terminal-label { font-size: 10.5px; font-weight: 600; color: #a0aec0; }
.terminal-tag { font-size: 9.5px; color: #718096; }
.terminal-screen { padding: 14px 16px; font-size: 11.5px; line-height: 1.7; max-height: 180px; overflow-y: auto; }
.term-line { color: #e2e8f0; }
.term-time { color: #718096; }
.term-info { color: #63b3ed; font-weight: 600; }
.term-highlight { color: #f6e05e; font-weight: 600; }
.term-success { color: #68d391; font-weight: 600; }
.term-heal { color: #b794f4; font-weight: 600; }

/* ==========================================================================
   10. PIPELINE TABLE & STATUS SELECTOR
   ========================================================================== */
.pipeline-metrics-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.pipe-stat-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.pipe-stat-btn:hover {
  border-color: #cbd5e0;
  transform: translateY(-1px);
}

.pipe-stat-btn.active {
  background: #1a202c;
  border-color: #1a202c;
}

.pipe-stat-btn .p-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.pipe-stat-btn.active .p-label {
  color: #cbd5e0;
}

.pipe-stat-btn .p-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.pipe-stat-btn.active .p-count {
  color: #ffffff;
}

.pipeline-table-card { background: #ffffff; border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-card); }
.clean-table { width: 100%; border-collapse: collapse; text-align: left; }
.clean-table th { background: #f7fafc; padding: 10px 14px; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border-light); }
.clean-table td { padding: 12px 14px; font-size: 12.5px; color: var(--text-dark); border-bottom: 1px solid var(--border-light); }

.status-select-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.status-select-pill.status-applied { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.status-select-pill.status-clicked { background: #fefce8; color: #a16207; border-color: #fef08a; }
.status-select-pill.status-interviewing { background: #fdf4ff; color: #86198f; border-color: #f5d0fe; }
.status-select-pill.status-offer { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.status-select-pill.status-rejected { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.table-actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-table-icon {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-table-icon:hover {
  background: #edf2f7;
  color: var(--text-dark);
}

.empty-feed-state { text-align: center; padding: 40px 20px; }
.empty-ico { width: 32px; height: 32px; color: var(--text-muted); margin-bottom: 6px; }
.empty-headline { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.empty-sub { font-size: 12px; color: var(--text-muted); }

.ext-step-card { display: flex; align-items: flex-start; gap: 12px; background: #f7fafc; border: 1px solid var(--border-light); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.step-num-badge { font-family: var(--font-mono); font-size: 11px; font-weight: 700; background: var(--sky-top); color: white; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ext-step-card strong { font-size: 13px; color: var(--text-dark); display: block; margin-bottom: 2px; }
.ext-step-card p { font-size: 12px; color: var(--text-body); }
.ext-step-card code { font-family: var(--font-mono); font-size: 11px; background: #e2e8f0; padding: 1px 4px; border-radius: 3px; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-card { background: #ffffff; border-radius: 12px; width: 100%; max-width: 460px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); overflow: hidden; }
.onboarding-card { max-width: 580px; }
.onboard-header-title { display: flex; align-items: center; gap: 8px; }
.onboard-step-pill { font-family: var(--font-mono); font-size: 11px; background: #ebf8ff; color: var(--sky-top); padding: 3px 8px; border-radius: 4px; font-weight: 600; margin-bottom: 12px; display: inline-block; }

.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border-light); }
.modal-title { font-size: 15px; font-weight: 700; }
.btn-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; }
.modal-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 8px; }

.btn-cancel { background: #edf2f7; border: 1px solid var(--border-light); padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; }
.btn-save { background: var(--sky-top); color: white; border: none; padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; }

/* TOAST */
.toast { position: fixed; bottom: 20px; right: 20px; background: #1a202c; color: white; padding: 9px 16px; border-radius: 9999px; font-size: 12.5px; font-weight: 600; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); transform: translateY(60px); opacity: 0; transition: all 0.2s ease; z-index: 3000; }
.toast.show { transform: translateY(0); opacity: 1; }

.btn-mobile-back {
  display: none;
}

.tab-label-short {
  display: none;
}

/* ==========================================================================
   11. NATIVE-FEEL MOBILE MASTER-DETAIL & RESPONSIVE ARCHITECTURE
   ========================================================================== */
@media (max-width: 1024px) {
  .app-window-standalone {
    max-width: 100%;
    margin: 14px 14px 40px;
    min-height: calc(100dvh - 80px);
  }
  .split-explorer-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .jobs-list-pane {
    max-height: 480px;
  }
  .job-detail-pane {
    position: static;
    top: auto;
  }
  .profile-editor-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .profile-presets-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .btn-mobile-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--sky-top);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.15s ease;
  }
  .btn-mobile-back:hover {
    background: #edf2f7;
    transform: translateX(-2px);
  }

  /* Mobile Master-Detail View Switching */
  .split-explorer-layout {
    display: block;
  }
  .split-explorer-layout .jobs-list-pane {
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow: visible;
  }
  .split-explorer-layout .job-detail-pane {
    display: none;
  }

  /* When a job is active on mobile */
  .split-explorer-layout.mobile-detail-open .jobs-list-pane {
    display: none;
  }
  .split-explorer-layout.mobile-detail-open .job-detail-pane {
    display: block;
    animation: mobileSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .split-explorer-layout.mobile-detail-open ~ #job-pagination-container {
    display: none !important;
  }


  @keyframes mobileSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .feed-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .detail-actions-row {
    flex-direction: column;
    gap: 8px;
  }
  .btn-detail-apply, .btn-detail-pitch, .btn-detail-track {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  body.app-mode-body {
    padding: 6px 6px 24px;
  }
  .tab-label-full {
    display: none !important;
  }
  .tab-label-short {
    display: inline !important;
  }
  .app-header, .app-top-header {
    padding: 4px 4px 8px;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  #user-name-display {
    display: none !important;
  }

  .app-window-standalone {
    margin: 4px 0 24px;
    border-radius: 12px;
    min-height: calc(100dvh - 65px);
  }
  .window-body {
    padding: 12px;
  }
  .hero-heading { font-size: 36px; }
  .mockup-body-preview { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .collector-cards-row { grid-template-columns: 1fr; }
  .footer-card { flex-direction: column; gap: 20px; padding: 24px; }
  .nav-links { display: none; }
  
  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .filter-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .pipeline-metrics-bar {
    -webkit-overflow-scrolling: touch;
    gap: 6px;
  }
  .pipe-stat-btn {
    padding: 6px 10px;
  }
  .pipeline-table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .clean-table {
    min-width: 540px;
  }

  .modal-card {
    width: calc(100vw - 20px);
    max-height: 92vh;
    margin: 10px;
  }
  .modal-body {
    max-height: calc(92vh - 110px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  body.app-mode-body {
    padding: 4px 4px 20px;
  }
  .telemetry-pill-light {
    display: none !important;
  }
  .brand-title {
    font-size: 16px;
  }
  .app-top-header {
    padding: 2px 2px 6px;
    margin-bottom: 4px;
  }
  .app-nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  .btn-app-secondary span {
    display: none !important;
  }
  .btn-app-secondary {
    padding: 5px 7px;
    min-width: 28px;
    height: 28px;
    justify-content: center;
    border-radius: 6px;
  }
  .user-pill {
    padding: 2px;
    border-radius: 9999px;
    gap: 0;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border-light);
  }
  .user-pill .avatar {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  #user-name-display {
    display: none !important;
  }

  .hero-landing { padding: 75px 12px 35px; }
  .hero-heading { font-size: 26px; }
  .hero-subheading { font-size: 13.5px; }
  .hero-buttons { flex-direction: column; width: 100%; gap: 8px; }
  .btn-hero-white, .btn-hero-glass { width: 100%; text-align: center; justify-content: center; }
  .capsule-nav { padding: 4px 8px; }
  
  .hero-badge {
    font-size: 11px;
    padding: 4px 10px;
    text-align: center;
    line-height: 1.4;
    max-width: 90%;
    margin: 0 auto 16px;
  }
  .mockup-topbar {
    padding: 8px 12px;
  }
  .mockup-pill {
    display: none;
  }
  .mockup-title {
    font-size: 11.5px;
    text-align: left;
  }
  .mockup-body-preview {
    padding: 12px;
    gap: 12px;
  }
  .mockup-job-card {
    height: auto;
    min-height: 190px;
    padding: 14px;
  }

  .features-section {
    padding: 50px 14px 40px;
  }
  .features-title {
    font-size: 26px;
    line-height: 1.25;
  }
  .features-subtitle {
    font-size: 13.5px;
    margin-bottom: 22px;
  }
  .feature-pills-cluster {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 360px;
    margin: 0 auto 30px;
  }
  .feature-capsule {
    padding: 8px 10px;
    font-size: 11.5px;
    justify-content: center;
    text-align: center;
    gap: 6px;
    white-space: nowrap;
    border-radius: 9999px;
  }
  .feature-capsule i {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  .window-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 6px 10px;
  }
  .window-controls { display: none; }
  .window-tag-group { display: none; }
  .window-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }
  .w-tab {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .job-card {
    padding: 12px 14px;
  }
  .job-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .mjc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .job-header-card {
    padding: 12px;
  }
  .job-title-large {
    font-size: 16px;
  }
}

/* ==========================================================================
   PAGINATION CONTROLS (DESKTOP & MOBILE RESPONSIVE)
   ========================================================================== */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px 8px;
  margin-top: 12px;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.pagination-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.page-numbers-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-page-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn-page-nav:hover:not(:disabled) {
  background: var(--sky-pale);
  border-color: var(--sky-light);
  color: var(--sky-top);
  transform: translateY(-1px);
}

.btn-page-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
}

.btn-page-num {
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-page-num:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.btn-page-num.active {
  background: #1a202c;
  color: #ffffff;
  border-color: #1a202c;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.page-gap {
  font-size: 14px;
  color: var(--text-muted);
  padding: 0 4px;
}

.page-mobile-summary {
  display: none;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .page-numbers-group {
    display: none;
  }
  .page-mobile-summary {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    text-align: center;
  }
  .btn-page-nav {
    padding: 7px 11px;
    font-size: 11.5px;
  }
  .pagination-bar {
    padding: 12px 4px 6px;
  }
}
