/* ==========================================================================
   SubEngineX — Master Stylesheet (Full Layout, Typography, Grid & Modal)
   ========================================================================== */

   :root {
    --bg-dark: #0B0F14;
    --bg-card: #141A23;
    --bg-card-hover: #1A222E;
    --card-border: #222D3D;
    --card-border-glow: rgba(255, 159, 28, 0.35);
    --logo-cyan: #FF9F1C;
    --accent-amber: #FF9F1C;
    --accent-amber-hover: #F77F00;
    --accent-cyan: #38BDF8;
    --accent-blue: #0284C7;
    --accent-green: #10B981;
    --accent-orange: #FF9F1C;
    --alert-red: #F87171;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
  
  body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  /* Ambient Mouse Glow */
  #ambient-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 159, 28, 0.06) 0%, rgba(11, 15, 20, 0) 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
  }
  
  .site-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }
  
  /* Header & Nav */
  .brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--card-border);
  }
  
  .brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  
  .brand-logo-text {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    user-select: none;
    text-transform: none;
    transition: opacity 0.2s ease;
  }

  .brand-logo-text:hover {
    opacity: 0.95;
  }

  .brand-logo-accent {
    color: var(--logo-cyan);
  }
  
  .logo-img {
    height: 128px;
    width: auto;
    min-width: 140px;
    display: block;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  
  .nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .nav-menu a:hover {
    color: #fff;
  }
  
  .nav-cta-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    padding: 8px 18px !important;
    border-radius: 20px;
    color: #fff !important;
    transition: all 0.2s ease;
  }
  
  .nav-cta-btn:hover {
    border-color: var(--logo-cyan);
    background: rgba(255, 159, 28, 0.12);
  }
  
  /* Typography & Badges */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 159, 28, 0.12);
    border: 1px solid rgba(255, 159, 28, 0.3);
    color: var(--logo-cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
  }
  
  .headline {
    font-size: clamp(2.3rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
  }
  
  .gradient-text {
    background: linear-gradient(135deg, #F8FAFC 35%, var(--logo-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 24px;
  }
  
  /* Hero Section Split */
  .hero-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    padding: 50px 0 60px;
  }
  
  @media (max-width: 960px) {
    .hero-split {
      grid-template-columns: 1fr;
    }
  }
  
  /* 5-Step System Grid Hero */
  .system-grid-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
  }
  
  .system-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 14px 16px;
  }
  
  .system-card h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
  }
  
  .system-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
  }
  
  .full-width-card {
    grid-column: 1 / -1;
  }
  
  .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .microcopy {
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
  }
  
  /* Digital Twin Mock Card */
  .mock-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  }
  
  .mock-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--card-border);
  }
  
  .mock-project {
    font-weight: 700;
    font-size: 1.05rem;
  }
  
  .mock-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
  }
  
  .status-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
  }
  
  .pill-green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.25);
  }
  
  .pill-blue {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.25);
  }
  
  .pill-orange {
    background: rgba(255, 159, 28, 0.12);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 159, 28, 0.3);
  }
  
  .section-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
  }
  
  .twin-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    margin-bottom: 8px;
  }
  
  .row-icon {
    color: var(--logo-cyan);
    font-size: 1.1rem;
  }
  
  .row-info {
    flex: 1;
  }
  
  .row-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #fff;
  }
  
  .row-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  
  .mock-caption {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 14px;
    text-align: center;
  }
  
  /* Manifesto Band */
  .manifesto-band {
    margin: 40px 0 60px;
    background: linear-gradient(90deg, rgba(255, 159, 28, 0.06), rgba(56, 189, 248, 0.06));
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px 30px;
  }
  
  .manifesto-inner strong {
    display: block;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 4px;
  }
  
  .manifesto-inner p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
  }
  
  /* Generic Content Sections */
  .content-section {
    padding: 60px 0;
    border-top: 1px solid var(--card-border);
  }
  
  .section-heading {
    margin-bottom: 36px;
    max-width: 780px;
  }
  
  .section-heading h2 {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 10px 0 8px;
  }
  
  .section-heading p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  @media (max-width: 860px) {
    .features-grid {
      grid-template-columns: 1fr !important;
    }
  }
  
  .glass-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
  }
  
  .glass-card:hover {
    transform: translateY(-2px);
    border-color: var(--card-border-glow);
  }
  
  .card-num {
    font-size: 0.72rem;
    font-family: monospace;
    color: var(--logo-cyan);
    font-weight: 700;
    letter-spacing: 1px;
  }
  
  .card-icon {
    font-size: 1.6rem;
    color: var(--logo-cyan);
    display: block;
    margin: 12px 0 8px;
  }
  
  .glass-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
  }
  
  .glass-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
  }
  
  /* Founder Doctrine Split */
  .split-doctrine {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
  }
  
  @media (max-width: 860px) {
    .split-doctrine {
      grid-template-columns: 1fr;
    }
  }
  
  .doctrine-title {
    font-size: 1.85rem;
    font-weight: 800;
    margin-top: 10px;
    line-height: 1.25;
  }
  
  .doctrine-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--logo-cyan);
    border-left: 2px solid var(--logo-cyan);
    padding-left: 16px;
    margin-bottom: 20px;
  }
  
  .doctrine-list {
    list-style: none;
  }
  
  .doctrine-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  .doctrine-list i {
    color: var(--accent-green);
    font-size: 1.1rem;
    margin-top: 2px;
  }
  
  .doctrine-list p {
    font-size: 0.88rem;
    color: var(--text-muted);
  }
  
  /* Bid Radar Controls & Cards */
  .filter-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
    flex-wrap: wrap;
  }
  
  .filter-btn {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .filter-btn.active, 
  .filter-btn:hover {
    border-color: var(--logo-cyan);
    background: var(--logo-cyan);
    color: #0B0F14;
    font-weight: 700;
  }
  
  .radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
  }
  
  .bid-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(12px);
  }
  
  .bid-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .bid-badge {
    font-size: 0.72rem;
    background: rgba(255, 159, 28, 0.12);
    color: var(--logo-cyan);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 700;
    border: 1px solid rgba(255, 159, 28, 0.25);
  }
  
  .closing-badge {
    font-size: 0.75rem;
    color: var(--alert-red);
    font-weight: 600;
  }
  
  .bid-title {
    margin: 12px 0 6px;
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 600;
  }
  
  .bid-agency {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
  }
  
  .bid-footer {
    border-top: 1px solid var(--card-border);
    padding-top: 14px;
    margin-top: 12px;
  }
  
  .bid-perks {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 12px;
  }
  
  .radar-empty {
    color: var(--text-muted);
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
  }
  
  /* Pilot Intake Form */
  .pilot-section {
    padding: 70px 0;
    border-top: 1px solid var(--card-border);
  }
  
  .pilot-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }
  
  @media (max-width: 860px) {
    .pilot-wrapper {
      grid-template-columns: 1fr;
    }
  }
  
  .pilot-pitch h2 {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 10px 0 12px;
  }
  
  .pilot-pitch p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  
  .glass-form {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 30px;
    backdrop-filter: blur(16px);
  }
  
  .input-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
  }
  
  .input-group label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
  }
  
  .input-group input, 
  .input-group select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    padding: 12px 14px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.92rem;
    outline: none;
  }
  
  .input-group input:focus, 
  .input-group select:focus {
    border-color: var(--logo-cyan);
  }
  
  /* CTIA Consent Layout */
  .consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  
  .consent-checkbox {
    accent-color: var(--logo-cyan);
  }
  
  .consent-label {
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--text-muted);
  }
  
  /* Buttons */
  .btn-primary {
    display: inline-block;
    text-align: center;
    background: var(--logo-cyan);
    color: #0B0F14;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 159, 28, 0.25);
  }
  
  .btn-primary:hover {
    background: var(--accent-amber-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 159, 28, 0.4);
    opacity: 1;
  }
  
  .btn-secondary {
    display: inline-block;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease;
  }
  
  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  
  /* Bid Details Modal & Dialogs */
  body.modal-open {
    overflow: hidden !important;
    touch-action: none;
  }

  .modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  
  .modal-container {
    background: #141A23;
    border: 1px solid var(--card-border-glow, rgba(255, 159, 28, 0.35));
    border-radius: 16px;
    max-width: 620px;
    width: 100%;
    max-height: calc(100dvh - 36px);
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 159, 28, 0.12);
    animation: modalFadeIn 0.2s ease-out;
    overflow: hidden;
    position: relative;
    margin: auto;
  }
  
  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: translateY(14px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding: 18px 24px 14px;
    flex-shrink: 0;
    background: #141A23;
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
  }

  .modal-footer {
    border-top: 1px solid var(--card-border);
    padding: 14px 24px 18px;
    flex-shrink: 0;
    background: #141A23;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    position: sticky;
    bottom: 0;
    z-index: 5;
  }
  
  .modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
  }
  
  .modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }
  
  /* Footer & Toast */
  footer {
    border-top: 1px solid var(--card-border);
    padding: 30px 0;
    margin-top: 40px;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-dim);
  }
  
  .footer-content a {
    color: var(--text-muted);
    text-decoration: none;
  }
  
  #toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #141A23;
    border: 1px solid var(--logo-cyan);
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }
  
  #toast.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* ==========================================================================
     Supabase Google OAuth & User Profile Navigation Styles
     ========================================================================== */

  .nav-auth-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  /* Sign-in button with Google G icon */
  .btn-nav-google {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .btn-nav-google:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--logo-cyan);
    box-shadow: 0 0 14px rgba(255, 159, 28, 0.25);
    transform: translateY(-1px);
  }

  .btn-nav-google .google-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  /* Authenticated User Navigation Bar */
  .nav-user-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .user-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #141A23;
    border: 1px solid rgba(255, 159, 28, 0.35);
    padding: 4px 12px 4px 4px;
    border-radius: 24px;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(255, 159, 28, 0.12);
  }

  .btn-nav-launch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--logo-cyan), var(--accent-amber-hover));
    color: #0B0F14;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 14px rgba(255, 159, 28, 0.35);
    white-space: nowrap;
  }

  .btn-nav-launch:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(255, 159, 28, 0.55);
    color: #0B0F14;
  }

  .btn-nav-signout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fca5a5;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .btn-nav-signout:hover {
    background: rgba(248, 113, 113, 0.25);
    border-color: var(--alert-red);
    color: #fff;
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.35);
    transform: translateY(-1px);
  }

  .user-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green, #4ade80);
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.9);
    display: inline-block;
    flex-shrink: 0;
  }

  .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--logo-cyan);
    flex-shrink: 0;
  }

  .user-avatar-initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--logo-cyan), var(--accent-amber-hover));
    color: #0B0F14;
    font-weight: 800;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
  }

  .user-name-label {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
  }

  .nav-caret {
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
  }

  /* Dropdown Popover */
  .user-dropdown-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: #141A23;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: modalFadeIn 0.15s ease-out;
  }

  .user-dropdown-header {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
    margin-bottom: 10px;
  }

  .user-dropdown-profile {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .user-dropdown-text {
    overflow: hidden;
  }

  .user-dropdown-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-dropdown-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .google-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: var(--accent-green);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
  }

  .user-dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.15s ease;
  }

  .user-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--logo-cyan);
  }

  .btn-dropdown-signout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #fca5a5;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.2s ease;
  }

  .btn-dropdown-signout:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: var(--alert-red);
    color: #fff;
  }

  /* ==========================================================================
     Pilot Intake Form Fast-Track with Google
     ========================================================================== */

  .pilot-auth-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
  }

  .pilot-auth-badge-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--logo-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }

  .pilot-auth-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .btn-google-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  }

  .btn-google-primary:hover {
    background: #f9fafb;
    box-shadow: 0 4px 14px rgba(255, 159, 28, 0.25);
    transform: translateY(-1px);
    border-color: var(--logo-cyan);
  }

  .btn-google-primary:active {
    transform: translateY(0);
  }

  .auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 14px 0 0;
    color: var(--text-dim);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .auth-divider::before,
  .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--card-border);
  }

  .auth-divider span {
    padding: 0 10px;
  }

  .pilot-auth-connected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .pilot-connected-user {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .pilot-connected-status {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .pilot-connected-email {
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  .btn-switch-account {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.76rem;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-switch-account:hover {
    color: #fff;
    border-color: var(--logo-cyan);
    background: rgba(255, 159, 28, 0.12);
  }

  /* ==========================================================================
     Dedicated Auth Modal Styles
     ========================================================================== */

  .auth-modal-container {
    max-width: 440px;
    border: 1px solid var(--card-border-glow, rgba(255, 159, 28, 0.35));
  }

  .auth-tag {
    font-size: 0.72rem;
    color: var(--logo-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(255, 159, 28, 0.12);
    border: 1px solid rgba(255, 159, 28, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
  }

  .auth-modal-body {
    text-align: center;
    padding: 24px 8px 12px;
  }

  .auth-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 159, 28, 0.15) 0%, rgba(11, 15, 20, 0) 70%);
    border: 1px solid rgba(255, 159, 28, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--logo-cyan);
    margin-bottom: 12px;
    box-shadow: 0 0 24px rgba(255, 159, 28, 0.15);
  }

  .auth-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
  }

  .auth-modal-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 340px;
    margin: 0 auto 20px;
  }

  .btn-modal-google {
    margin: 0 auto 20px;
  }

  .auth-modal-features {
    border-top: 1px solid var(--card-border);
    padding-top: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }

  .auth-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .auth-feature-item i {
    color: var(--logo-cyan);
    font-size: 1rem;
    flex-shrink: 0;
  }

  .auth-security-footer {
    font-size: 0.72rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  /* Modal Auth Banner */
  .modal-auth-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: var(--accent-green);
    margin-top: 12px;
  }

  /* ==========================================================================
     Responsive Header Layout
     ========================================================================== */

  @media (max-width: 980px) {
    .brand-header {
      flex-direction: column;
      gap: 16px;
      padding: 16px 0;
    }
    .nav-menu {
      flex-wrap: wrap;
      justify-content: center;
      gap: 14px;
    }
  }

  @media (max-width: 640px) {
    .nav-menu {
      gap: 10px;
    }
    .nav-menu a {
      font-size: 0.82rem;
    }
    .btn-nav-google {
      padding: 6px 10px;
      font-size: 0.8rem;
    }

    /* Modals Mobile Responsiveness */
    .modal-overlay {
      padding: 8px 6px;
      align-items: center;
    }

    .modal-container {
      max-height: calc(100dvh - 16px);
      max-height: calc(100vh - 16px);
      border-radius: 14px;
      width: 100%;
    }

    .modal-header {
      padding: 14px 16px 12px;
    }

    .modal-body {
      padding: 14px 16px;
    }

    .modal-footer {
      padding: 12px 16px 14px;
      flex-direction: column;
      gap: 10px;
    }

    .modal-footer a,
    .modal-footer button {
      width: 100% !important;
      text-align: center;
      justify-content: center;
      box-sizing: border-box;
      padding: 12px 14px !important;
      font-size: 0.85rem !important;
    }

    .auth-modal-body {
      padding: 20px 16px 14px;
    }

    .auth-modal-title {
      font-size: 1.2rem;
    }

    .btn-modal-google {
      width: 100% !important;
      box-sizing: border-box;
    }

    /* Radar Grid & Filters Mobile */
    .radar-grid {
      grid-template-columns: 1fr !important;
      gap: 14px;
    }

    .filter-wrapper {
      gap: 6px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 6px;
      flex-wrap: nowrap;
      scrollbar-width: none;
    }

    .filter-wrapper::-webkit-scrollbar {
      display: none;
    }

    .filter-btn {
      padding: 6px 12px;
      font-size: 0.76rem;
      flex-shrink: 0;
      white-space: nowrap;
    }

    .bid-card {
      padding: 16px;
    }

    .bid-card-header {
      flex-wrap: wrap;
      gap: 6px;
    }

    .closing-badge {
      font-size: 0.7rem;
    }

    /* Hero & System Grid Mobile */
    .hero-split {
      padding: 20px 0 32px;
    }

    .hero-headline {
      font-size: 1.95rem;
      line-height: 1.2;
    }

    .subtitle {
      font-size: 0.95rem;
      margin-bottom: 20px;
    }

    .hero-actions {
      flex-direction: column;
      width: 100%;
      gap: 10px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
      width: 100%;
      text-align: center;
      justify-content: center;
    }

    .system-grid-hero {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    /* Pilot & Cards Mobile */
    .pilot-section {
      padding: 40px 0;
    }

    .signup-card {
      padding: 20px 16px;
    }

    .twin-row {
      flex-wrap: wrap;
      gap: 8px;
    }

    .manifesto-band {
      padding: 16px;
      margin: 30px 0 40px;
    }
  }