    /*!
     * AutoHaul UI Styles — S4 Registration + OTP
     * Purpose  : Consumer/B2B tab registration form, OTP digit boxes, password strength meter.
     * Tokens   : CSS custom properties in :root — colors, radii, shadows, fonts.
     * Fonts    : Barlow Condensed (display/headings) + Barlow (body) via Google Fonts.
     * Layout   : Flexbox and CSS Grid, no external layout framework.
     * Responsive: Mobile-first breakpoints at 560px, 640px, 700px, and 760px.
     */
    .screen { display: block; }

    /* ── TOKENS ─────────────────────────────────────────────────────────── */
    :root {
      --navy:      #1B2A4A;
      --navy-dark: #0D1623;
      --navy-mid:  #243558;
      --red:       #C41230;
      --red-dark:  #A50F28;
      --white:     #FFFFFF;
      --off-white: #F8F9FC;
      --gray-50:   #F8FAFC;
      --gray-100:  #F1F5F9;
      --gray-200:  #E2E8F0;
      --gray-300:  #CBD5E1;
      --gray-400:  #94A3B8;
      --gray-600:  #475569;
      --gray-800:  #1E293B;
      --green:     #16A34A;
      --amber:     #D97706;
      --font-display: 'Barlow Condensed', sans-serif;
      --font-body:    'Barlow', sans-serif;
      --radius-sm:  6px;
      --radius-md:  10px;
      --radius-lg:  16px;
      --radius-xl:  24px;
      --shadow-sm:  0 1px 4px rgba(15,23,42,0.06);
      --shadow-md:  0 4px 20px rgba(15,23,42,0.08);
      --shadow-lg:  0 8px 40px rgba(15,23,42,0.12);
    }

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

    body {
      font-family: var(--font-body);
      background: var(--off-white);
      color: var(--gray-800);
      line-height: 1.6;
    }
    /* ── SCREEN WRAPPER ─────────────────────────────────────────────────── */
    .screen { display: none; }
    .screen.active { display: block; }

    /* ── SHARED NAV ─────────────────────────────────────────────────────── */
    .site-nav {
      background: var(--white);
      border-bottom: 1px solid var(--gray-200);
      padding: 0 40px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
    }
    .site-nav::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--navy) 50%, var(--red) 50%);
    }
    .nav-logo {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 26px;
      letter-spacing: -0.5px;
      line-height: 1;
    }
    .nav-logo .auto { color: var(--navy); }
    .nav-logo .haul { color: var(--red); }
    .nav-logo .dot  { color: var(--gray-400); font-size: 20px; }
    .nav-links { display: flex; gap: 28px; align-items: center; }
    .nav-links a {
      font-size: 14px;
      font-weight: 500;
      color: var(--gray-600);
      text-decoration: none;
      transition: color 0.15s;
    }
    .nav-links a:hover { color: var(--navy); }
    .nav-cta {
      background: var(--red);
      color: white !important;
      padding: 8px 18px;
      border-radius: var(--radius-md);
      font-weight: 600 !important;
    }
    .nav-cta:hover { background: var(--red-dark) !important; color: white !important; }

    /* ════════════════════════════════════════════════════════════════════ */
    /* S1 — HOME PAGE / HERO                                               */
    /* ════════════════════════════════════════════════════════════════════ */
    .s1-hero {
      background: var(--off-white);
      position: relative;
      overflow: hidden;
      min-height: calc(100vh - 60px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 24px 120px;
    }

    /* Grid texture */
    .s1-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--gray-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
      background-size: 40px 40px;
      opacity: 0.5;
    }

    /* Faded truck background right */
    .s1-truck {
      position: absolute;
      right: -30px;
      bottom: 80px;
      opacity: 0.06;
      pointer-events: none;
    }

    /* Faded car background left */
    .s1-car {
      position: absolute;
      left: 10px;
      bottom: 80px;
      opacity: 0.06;
      pointer-events: none;
    }

    /* Animated road */
    .s1-road {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 56px;
      background: var(--navy);
      overflow: hidden;
      z-index: 2;
    }
    .road-dashes {
      position: absolute;
      top: 50%; left: -84px;
      transform: translateY(-50%);
      display: flex;
      animation: road 1.4s linear infinite;
    }
    .road-dash {
      width: 48px; height: 4px;
      background: #E8A020;
      margin-right: 36px;
      flex-shrink: 0;
    }
    @keyframes road { from { transform: translateY(-50%) translateX(0); } to { transform: translateY(-50%) translateX(84px); } }

    /* Route dots */
    .s1-route {
      position: absolute;
      top: 60px;
      left: 0; right: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0.08;
      pointer-events: none;
    }
    .route-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
    .route-line { width: 32px; height: 1.5px; background: var(--navy); }

    /* Content */
    .s1-content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }

    .s1-logo {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 52px;
      letter-spacing: -1px;
      line-height: 1;
      margin-bottom: 4px;
    }
    .s1-logo .auto { color: var(--navy); }
    .s1-logo .haul { color: var(--red); }
    .s1-logo .dot  { color: var(--gray-400); font-size: 38px; }

    .s1-since {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 11px;
      letter-spacing: 4px;
      color: var(--gray-400);
      text-transform: uppercase;
      margin-bottom: 32px;
    }

    /* Stats */
    .s1-stats {
      display: flex;
      gap: 32px;
      margin-bottom: 32px;
      align-items: center;
      flex-wrap: wrap;
      justify-content: center;
    }
    .s1-stat { text-align: center; }
    .s1-stat-num {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 26px;
      color: var(--navy);
      line-height: 1;
    }
    .s1-stat-num em { color: var(--red); font-style: normal; }
    .s1-stat-lbl {
      font-size: 11px;
      color: var(--gray-400);
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-top: 2px;
    }
    .s1-stat-div { width: 1px; height: 32px; background: var(--gray-200); }

    .s1-headline {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 56px;
      line-height: 1.03;
      color: var(--navy-dark);
      text-align: center;
      max-width: 680px;
      margin-bottom: 36px;
      letter-spacing: -0.5px;
    }
    .s1-headline em { color: var(--red); font-style: normal; }

    /* AI Prompt box */
    .s1-prompt {
      width: 100%;
      max-width: 680px;
      background: white;
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .s1-prompt:focus-within {
      border-color: var(--red);
      box-shadow: 0 4px 32px rgba(196,18,48,0.12);
    }

    .prompt-top {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 18px 0;
    }
    .ai-badge {
      display: flex;
      align-items: center;
      gap: 5px;
      background: #FEF2F4;
      border: 1px solid #FECDD3;
      border-radius: 6px;
      padding: 2px 9px;
      font-size: 10px;
      font-weight: 700;
      color: #BE123C;
      letter-spacing: 1px;
      text-transform: uppercase;
    }
    .ai-pulse {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--red);
      animation: pulse 2s infinite;
    }
    @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
    .prompt-label { font-size: 11px; color: var(--gray-400); margin-left: auto; }

    .prompt-input {
      width: 100%;
      border: none;
      outline: none;
      resize: none;
      font-family: var(--font-body);
      font-size: 16px;
      color: var(--gray-800);
      padding: 12px 18px 8px;
      min-height: 78px;
      line-height: 1.6;
      background: transparent;
    }
    .prompt-input::placeholder { color: var(--gray-300); }

    .prompt-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      padding: 4px 18px 10px;
      border-top: 1px solid var(--gray-50);
    }
    .chip {
      display: flex;
      align-items: center;
      gap: 5px;
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: 20px;
      padding: 4px 12px;
      font-size: 12px;
      font-weight: 500;
      color: var(--gray-600);
      cursor: pointer;
      transition: all 0.15s;
    }
    .chip:hover { border-color: var(--red); color: var(--red); background: #FEF2F4; }
    .chip-icon { color: var(--red); font-size: 11px; }

    .prompt-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 18px 14px;
      background: var(--gray-50);
      border-top: 1px solid var(--gray-100);
    }
    .prompt-hint {
      font-size: 12px;
      color: var(--gray-400);
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .btn-quote {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--red);
      color: white;
      border: none;
      border-radius: var(--radius-md);
      padding: 10px 22px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 16px;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
    }
    .btn-quote:hover { background: var(--red-dark); }
    .btn-quote:active { transform: scale(0.97); }

    /* Path pills */
    .s1-paths {
      display: flex;
      gap: 10px;
      margin-top: 14px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .path-pill {
      display: flex;
      align-items: center;
      gap: 7px;
      border: 1px solid var(--gray-200);
      border-radius: 8px;
      padding: 7px 16px;
      font-size: 13px;
      color: var(--gray-600);
      font-weight: 500;
      background: white;
      box-shadow: var(--shadow-sm);
      cursor: pointer;
      transition: all 0.15s;
    }
    .path-pill:hover { border-color: var(--navy); color: var(--navy); }
    .path-dot { width: 8px; height: 8px; border-radius: 50%; }
    .dot-green { background: var(--green); }
    .dot-amber { background: var(--amber); }

    /* Trust bar */
    .s1-trust {
      display: flex;
      align-items: center;
      gap: 24px;
      margin-top: 24px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .trust-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-400); font-weight: 500; }
    .trust-check {
      width: 16px; height: 16px;
      border-radius: 50%;
      background: var(--red);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .trust-check svg { width: 8px; height: 8px; }
    .trust-div { width: 1px; height: 14px; background: var(--gray-200); }

    /* ════════════════════════════════════════════════════════════════════ */
    /* S2 — QUOTE FORM                                                     */
    /* ════════════════════════════════════════════════════════════════════ */
    .s2-wrap {
      min-height: calc(100vh - 60px);
      background: var(--off-white);
      position: relative;
      overflow: hidden;
    }
    .s2-wrap::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--gray-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
      background-size: 40px 40px;
      opacity: 0.4;
    }

    .s2-inner {
      position: relative;
      z-index: 1;
      max-width: 780px;
      margin: 0 auto;
      padding: 48px 24px 80px;
    }

    /* Progress bar */
    .s2-progress {
      display: flex;
      align-items: center;
      gap: 0;
      margin-bottom: 36px;
    }
    .prog-step {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
    }
    .prog-circle {
      width: 34px; height: 34px;
      border-radius: 50%;
      border: 2px solid var(--gray-200);
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 14px;
      color: var(--gray-400);
      background: white;
      position: relative;
      z-index: 1;
      transition: all 0.3s;
    }
    .prog-circle.active {
      border-color: var(--red);
      color: var(--red);
      box-shadow: 0 0 0 4px rgba(196,18,48,0.1);
    }
    .prog-circle.done {
      border-color: var(--green);
      background: var(--green);
      color: white;
    }
    .prog-lbl {
      font-size: 11px;
      color: var(--gray-400);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-weight: 600;
      margin-top: 6px;
      text-align: center;
    }
    .prog-lbl.active { color: var(--navy); }
    .prog-line {
      flex: 1;
      height: 2px;
      background: var(--gray-200);
      margin-bottom: 20px;
      max-width: 80px;
    }
    .prog-line.done { background: var(--green); }

    /* Section header */
    .s2-section-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }
    .s2-section-num {
      width: 28px; height: 28px;
      border-radius: 50%;
      background: var(--navy);
      color: white;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 13px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .s2-section-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 20px;
      color: var(--navy);
    }
    .s2-section-sub { font-size: 13px; color: var(--gray-400); font-weight: 400; margin-left: auto; }

    /* Card */
    .form-card {
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg);
      padding: 28px;
      margin-bottom: 20px;
      box-shadow: var(--shadow-sm);
    }

    /* VIN toggle tabs */
    .vin-toggle {
      display: flex;
      background: var(--gray-100);
      border-radius: var(--radius-md);
      padding: 4px;
      margin-bottom: 24px;
      gap: 4px;
    }
    .vin-tab {
      flex: 1;
      padding: 10px 16px;
      border-radius: 8px;
      border: none;
      background: transparent;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 600;
      color: var(--gray-400);
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
    }
    .vin-tab.active {
      background: white;
      color: var(--navy);
      box-shadow: var(--shadow-sm);
    }
    .vin-tab .tab-badge {
      font-size: 10px;
      font-weight: 700;
      background: var(--red);
      color: white;
      padding: 1px 6px;
      border-radius: 10px;
      letter-spacing: 0.3px;
    }
    .vin-tab.active .tab-badge { background: var(--red); }

    /* VIN panels */
    .vin-panel { display: none; }
    .vin-panel.active { display: block; }

    /* Form fields */
    .field-group { margin-bottom: 20px; }
    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
    .field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
    label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--navy);
      margin-bottom: 6px;
    }
    label .req { color: var(--red); margin-left: 2px; }
    label .opt { color: var(--gray-400); font-weight: 400; font-size: 11px; margin-left: 4px; }

    input[type="text"], input[type="date"], select, textarea {
      width: 100%;
      height: 44px;
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 0 14px;
      font-family: var(--font-body);
      font-size: 14px;
      color: var(--gray-800);
      background: white;
      outline: none;
      transition: border-color 0.15s, box-shadow 0.15s;
      appearance: none;
    }
    input:focus, select:focus, textarea:focus {
      border-color: var(--navy);
      box-shadow: 0 0 0 3px rgba(27,42,74,0.08);
    }
    input::placeholder, textarea::placeholder { color: var(--gray-300); }
    select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394A3B8' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

    /* VIN field special */
    .vin-field-wrap { position: relative; }
    .vin-field-wrap input {
      font-family: 'Courier New', monospace;
      font-size: 15px;
      letter-spacing: 2px;
      text-transform: uppercase;
      padding-right: 120px;
    }
    .vin-decode-btn {
      position: absolute;
      right: 6px;
      top: 50%;
      transform: translateY(-50%);
      background: var(--navy);
      color: white;
      border: none;
      border-radius: 6px;
      padding: 6px 14px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.15s;
    }
    .vin-decode-btn:hover { background: var(--navy-mid); }

    /* Auto-populated field */
    .auto-field { position: relative; }
    .auto-field input {
      background: var(--gray-50);
      color: var(--gray-600);
      border-style: dashed;
    }
    .auto-badge {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 10px;
      font-weight: 700;
      color: var(--green);
      background: #DCFCE7;
      padding: 2px 6px;
      border-radius: 4px;
      letter-spacing: 0.3px;
    }

    /* VIN hint box */
    .vin-hint {
      background: #EBF4FF;
      border: 1px solid #BFDBFE;
      border-radius: var(--radius-md);
      padding: 12px 16px;
      font-size: 13px;
      color: #1D4ED8;
      margin-bottom: 20px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }
    .vin-hint-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

    /* Toggle switch */
    .toggle-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 4px;
    }
    .toggle {
      position: relative;
      width: 48px; height: 26px;
    }
    .toggle input { opacity: 0; width: 0; height: 0; }
    .toggle-track {
      position: absolute;
      inset: 0;
      background: var(--gray-200);
      border-radius: 13px;
      cursor: pointer;
      transition: background 0.2s;
    }
    .toggle input:checked + .toggle-track { background: var(--navy); }
    .toggle-thumb {
      position: absolute;
      top: 3px; left: 3px;
      width: 20px; height: 20px;
      border-radius: 50%;
      background: white;
      box-shadow: 0 1px 4px rgba(0,0,0,0.2);
      transition: transform 0.2s;
      pointer-events: none;
    }
    .toggle input:checked ~ .toggle-thumb { transform: translateX(22px); }

    /* Transport selector */
    .transport-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .transport-card {
      border: 2px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 16px;
      cursor: pointer;
      transition: all 0.15s;
      position: relative;
    }
    .transport-card:hover { border-color: var(--navy); }
    .transport-card.selected { border-color: var(--navy); background: rgba(27,42,74,0.03); }
    .transport-card input[type="radio"] { position: absolute; opacity: 0; }
    .transport-icon { font-size: 24px; margin-bottom: 8px; }
    .transport-name { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
    .transport-desc { font-size: 12px; color: var(--gray-400); line-height: 1.5; }
    .transport-check {
      position: absolute;
      top: 12px; right: 12px;
      width: 20px; height: 20px;
      border-radius: 50%;
      border: 2px solid var(--gray-200);
      display: flex; align-items: center; justify-content: center;
      transition: all 0.15s;
    }
    .transport-card.selected .transport-check {
      border-color: var(--navy);
      background: var(--navy);
    }
    .transport-card.selected .transport-check::after {
      content: '';
      width: 8px; height: 8px;
      border-radius: 50%;
      background: white;
    }

    /* Divider with label */
    .section-divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 24px 0 20px;
    }
    .section-divider hr { flex: 1; border: none; border-top: 1px solid var(--gray-200); }
    .section-divider span {
      font-size: 12px;
      font-weight: 600;
      color: var(--gray-400);
      text-transform: uppercase;
      letter-spacing: 1px;
      white-space: nowrap;
    }

    /* Form actions */
    .form-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 8px;
    }
    .btn-back {
      display: flex;
      align-items: center;
      gap: 6px;
      background: transparent;
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 10px 20px;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 600;
      color: var(--gray-600);
      cursor: pointer;
      transition: all 0.15s;
    }
    .btn-back:hover { border-color: var(--navy); color: var(--navy); }
    .btn-next {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--red);
      color: white;
      border: none;
      border-radius: var(--radius-md);
      padding: 12px 28px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 17px;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
    }
    .btn-next:hover { background: var(--red-dark); }
    .btn-next:active { transform: scale(0.97); }

    /* Field note */
    .field-note {
      font-size: 12px;
      color: var(--gray-400);
      margin-top: 5px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    

    /* Summary box */
    .summary-box {
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 16px 20px;
      margin-bottom: 20px;
    }
    .summary-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--gray-400);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 12px;
    }
    .summary-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }
    .summary-item {}
    .summary-lbl { font-size: 11px; color: var(--gray-400); font-weight: 500; }
    .summary-val { font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 2px; }

    /* ── RESPONSIVE ─────────────────────────────────────────────────────── */
    @media (max-width: 640px) {
      .s1-headline { font-size: 38px; }
      .s1-logo { font-size: 38px; }
      .field-row, .field-row-3 { grid-template-columns: 1fr; }
      .transport-grid { grid-template-columns: 1fr; }
      .s2-inner { padding: 32px 16px 60px; }
      .form-card { padding: 20px; }
      .nav-links { display: none; }
      .s1-stat-div { display: none; }
      .trust-div { display: none; }
    }

    /* ════════════════════════════════════════════════════════════════════ */
    /* S3 — QUOTE RESULTS / PATH FORK                                      */
    /* ════════════════════════════════════════════════════════════════════ */
    .s3-wrap {
      min-height: calc(100vh - 60px);
      background: var(--off-white);
      position: relative;
      overflow: hidden;
    }
    .s3-wrap::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--gray-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
      background-size: 40px 40px;
      opacity: 0.4;
      pointer-events: none;
    }
    .s3-inner {
      position: relative;
      z-index: 1;
      max-width: 900px;
      margin: 0 auto;
      padding: 48px 24px 80px;
    }

    /* Vehicle summary strip */
    .s3-vehicle-strip {
      background: var(--navy);
      border-radius: var(--radius-lg);
      padding: 16px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 28px;
      flex-wrap: wrap;
      gap: 12px;
    }
    .s3-vehicle-info { display: flex; align-items: center; gap: 14px; }
    .s3-vehicle-icon {
      width: 44px; height: 44px;
      background: rgba(255,255,255,0.08);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 22px;
    }
    .s3-vehicle-name {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 20px;
      color: white;
      line-height: 1.1;
    }
    .s3-vehicle-meta {
      font-size: 13px;
      color: rgba(255,255,255,0.5);
      margin-top: 2px;
    }
    .s3-route {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .s3-route-city {
      text-align: center;
    }
    .s3-route-city-name {
      font-size: 13px;
      font-weight: 600;
      color: white;
    }
    .s3-route-city-zip {
      font-size: 11px;
      color: rgba(255,255,255,0.4);
    }
    .s3-route-arrow {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
    }
    .s3-route-line {
      width: 60px;
      height: 2px;
      background: rgba(255,255,255,0.2);
      position: relative;
    }
    .s3-route-line::after {
      content: '→';
      position: absolute;
      right: -6px;
      top: -9px;
      color: rgba(255,255,255,0.4);
      font-size: 12px;
    }
    .s3-route-distance {
      font-size: 10px;
      color: rgba(255,255,255,0.35);
      letter-spacing: 0.3px;
    }
    .s3-edit-btn {
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: var(--radius-md);
      color: rgba(255,255,255,0.6);
      font-size: 12px;
      font-weight: 600;
      padding: 7px 14px;
      cursor: pointer;
      font-family: var(--font-body);
      transition: all 0.15s;
    }
    .s3-edit-btn:hover { background: rgba(255,255,255,0.15); color: white; }

    /* Headline */
    .s3-headline {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 38px;
      color: var(--navy-dark);
      margin-bottom: 6px;
      letter-spacing: -0.3px;
    }
    .s3-sub {
      font-size: 15px;
      color: var(--gray-400);
      margin-bottom: 32px;
    }

    /* Path cards */
    .s3-paths {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-bottom: 28px;
    }

    .path-card {
      border: 2px solid var(--gray-200);
      border-radius: var(--radius-xl);
      padding: 0;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
      background: white;
      box-shadow: var(--shadow-sm);
    }
    .path-card:hover {
      box-shadow: var(--shadow-lg);
      transform: translateY(-2px);
    }
    .path-card.selected-a {
      border-color: var(--amber);
      box-shadow: 0 0 0 4px rgba(217,119,6,0.12), var(--shadow-md);
    }
    .path-card.selected-b {
      border-color: var(--navy);
      box-shadow: 0 0 0 4px rgba(27,42,74,0.12), var(--shadow-md);
    }

    .path-card-header {
      padding: 20px 24px 16px;
      border-bottom: 1px solid var(--gray-100);
    }
    .path-card-header-b { background: var(--navy); }
    .path-card-header-a { background: #FFFBF0; }

    .path-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      border-radius: 20px;
      padding: 3px 10px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      margin-bottom: 10px;
    }
    .badge-amber { background: #FEF3C7; color: #92400E; }
    .badge-navy  { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); }
    .badge-green { background: #DCFCE7; color: #166534; }

    .path-title-a {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 26px;
      color: var(--navy);
      line-height: 1.1;
      margin-bottom: 4px;
    }
    .path-title-b {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 26px;
      color: white;
      line-height: 1.1;
      margin-bottom: 4px;
    }
    .path-desc-a { font-size: 13px; color: var(--gray-400); }
    .path-desc-b { font-size: 13px; color: rgba(255,255,255,0.5); }

    .path-card-body { padding: 20px 24px 24px; }

    /* Price display */
    .price-display {
      margin-bottom: 20px;
    }
    .price-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--gray-400);
      margin-bottom: 4px;
    }
    .price-amount {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 48px;
      line-height: 1;
      letter-spacing: -1px;
    }
    .price-amount-b { color: var(--navy); }
    .price-amount-a { color: var(--navy); }
    .price-range {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .price-range-sep {
      font-size: 20px;
      color: var(--gray-300);
      font-weight: 300;
    }
    .price-guarantee {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 12px;
      font-weight: 600;
      color: var(--green);
      background: #DCFCE7;
      border-radius: 20px;
      padding: 3px 10px;
      margin-top: 6px;
    }
    .price-note {
      font-size: 12px;
      color: var(--gray-400);
      margin-top: 6px;
      line-height: 1.5;
    }

    /* Feature list */
    .path-features {
      list-style: none;
      margin-bottom: 20px;
    }
    .path-features li {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 13px;
      color: var(--gray-600);
      padding: 5px 0;
      border-bottom: 1px solid var(--gray-100);
    }
    .path-features li:last-child { border-bottom: none; }
    .feat-icon {
      width: 18px; height: 18px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      font-size: 10px;
      margin-top: 1px;
    }
    .feat-green { background: #DCFCE7; color: #16A34A; }
    .feat-amber { background: #FEF3C7; color: #D97706; }
    .feat-gray  { background: var(--gray-100); color: var(--gray-400); }

    /* Select path CTA */
    .path-cta-b {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      background: var(--navy);
      color: white;
      border: none;
      border-radius: var(--radius-md);
      padding: 13px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 17px;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
    }
    .path-cta-b:hover { background: var(--navy-mid); }
    .path-cta-b:active { transform: scale(0.98); }

    .path-cta-a {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      background: var(--amber);
      color: white;
      border: none;
      border-radius: var(--radius-md);
      padding: 13px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 17px;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
    }
    .path-cta-a:hover { background: #B45309; }
    .path-cta-a:active { transform: scale(0.98); }

    /* Popular badge */
    .popular-ribbon {
      position: absolute;
      top: 16px; right: 16px;
      background: var(--red);
      color: white;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      padding: 3px 10px;
      border-radius: 20px;
    }

    /* Expiry notice */
    .s3-expiry {
      display: flex;
      align-items: center;
      gap: 10px;
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 12px 16px;
      margin-bottom: 20px;
      font-size: 13px;
      color: var(--gray-600);
    }
    .s3-expiry-icon {
      width: 32px; height: 32px;
      border-radius: 8px;
      background: #FEF3C7;
      display: flex; align-items: center; justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }
    .s3-expiry strong { color: var(--navy); }
    .s3-expiry-countdown {
      margin-left: auto;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 20px;
      color: var(--amber);
      letter-spacing: 1px;
    }

    /* How it works strip */
    .s3-how {
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg);
      padding: 20px 24px;
      margin-bottom: 20px;
    }
    .s3-how-title {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--gray-400);
      margin-bottom: 16px;
    }
    .s3-how-steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
    }
    .s3-how-step {
      text-align: center;
      padding: 0 12px;
      position: relative;
    }
    .s3-how-step:not(:last-child)::after {
      content: '→';
      position: absolute;
      right: -4px;
      top: 16px;
      color: var(--gray-300);
      font-size: 14px;
    }
    .s3-how-num {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: var(--navy);
      color: white;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 14px;
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 8px;
    }
    .s3-how-lbl {
      font-size: 12px;
      color: var(--gray-600);
      font-weight: 500;
      line-height: 1.4;
    }

    /* CDHS backend info */
    .s3-backend {
      background: var(--gray-50);
      border: 1px dashed var(--gray-200);
      border-radius: var(--radius-md);
      padding: 14px 18px;
      margin-bottom: 20px;
    }
    .s3-backend-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--gray-400);
      margin-bottom: 10px;
    }
    .s3-backend-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
    .s3-backend-item {}
    .s3-backend-lbl { font-size: 11px; color: var(--gray-400); }
    .s3-backend-val { font-size: 13px; font-weight: 600; color: var(--navy); margin-top: 1px; }

    @media (max-width: 700px) {
      .s3-paths { grid-template-columns: 1fr; }
      .s3-how-steps { grid-template-columns: 1fr 1fr; gap: 16px; }
      .s3-how-step::after { display: none; }
      .s3-vehicle-strip { flex-direction: column; align-items: flex-start; }
      .s3-headline { font-size: 28px; }
    }

    /* ════════════════════════════════════════════════════════════════════ */
    /* S4 — REGISTRATION (Consumer + B2B) + OTP                           */
    /* ════════════════════════════════════════════════════════════════════ */
    .s4-wrap {
      min-height: calc(100vh - 60px);
      background: var(--off-white);
      position: relative;
      overflow: hidden;
    }
    .s4-wrap::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--gray-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
      background-size: 40px 40px;
      opacity: 0.4;
      pointer-events: none;
    }
    .s4-inner {
      position: relative;
      z-index: 1;
      max-width: 560px;
      margin: 0 auto;
      padding: 48px 24px 80px;
    }

    /* Account type tabs */
    .acct-toggle {
      display: flex;
      background: var(--gray-100);
      border-radius: var(--radius-lg);
      padding: 5px;
      margin-bottom: 28px;
      gap: 4px;
    }
    .acct-tab {
      flex: 1;
      padding: 12px 16px;
      border-radius: 11px;
      border: none;
      background: transparent;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 600;
      color: var(--gray-400);
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      line-height: 1.3;
      text-align: center;
    }
    .acct-tab.active {
      background: white;
      color: var(--navy);
      box-shadow: var(--shadow-sm);
    }
    .acct-tab .tab-icon { font-size: 18px; }

    /* Registration panels */
    .reg-panel { display: none; }
    .reg-panel.active { display: block; }

    /* Welcome header */
    .reg-header {
      text-align: center;
      margin-bottom: 28px;
    }
    .reg-icon {
      width: 56px; height: 56px;
      border-radius: 16px;
      background: var(--navy);
      display: flex; align-items: center; justify-content: center;
      font-size: 26px;
      margin: 0 auto 14px;
    }
    .reg-title {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 30px;
      color: var(--navy-dark);
      margin-bottom: 6px;
    }
    .reg-sub {
      font-size: 14px;
      color: var(--gray-400);
      line-height: 1.6;
    }

    /* Quote context pill */
    .quote-context {
      display: flex;
      align-items: center;
      gap: 10px;
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 10px 14px;
      margin-bottom: 24px;
      font-size: 13px;
    }
    .quote-context-icon {
      width: 32px; height: 32px;
      background: var(--navy);
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 15px;
      flex-shrink: 0;
    }
    .quote-context-info { flex: 1; }
    .quote-context-car { font-weight: 600; color: var(--navy); }
    .quote-context-route { color: var(--gray-400); font-size: 12px; }
    .quote-context-price {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 20px;
      color: var(--navy);
    }
    .quote-context-price span {
      font-size: 11px;
      font-weight: 500;
      color: var(--gray-400);
      font-family: var(--font-body);
      display: block;
    }

    /* Password strength */
    .pwd-wrap { position: relative; }
    .pwd-toggle {
      position: absolute;
      right: 12px; top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--gray-400);
      cursor: pointer;
      font-size: 14px;
      padding: 4px;
    }
    .pwd-strength {
      margin-top: 8px;
    }
    .pwd-bars {
      display: flex;
      gap: 4px;
      margin-bottom: 4px;
    }
    .pwd-bar {
      flex: 1;
      height: 3px;
      border-radius: 2px;
      background: var(--gray-200);
      transition: background 0.3s;
    }
    .pwd-bar.weak   { background: #EF4444; }
    .pwd-bar.fair   { background: var(--amber); }
    .pwd-bar.strong { background: var(--green); }
    .pwd-hint { font-size: 11px; color: var(--gray-400); }

    /* Phone input with country code */
    .phone-wrap {
      display: flex;
      gap: 8px;
    }
    .phone-country {
      width: 80px;
      flex-shrink: 0;
    }
    .phone-country select {
      height: 44px;
      font-size: 14px;
      text-align: center;
      padding: 0 8px;
    }

    /* Terms checkbox */
    .terms-wrap {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin: 20px 0;
      padding: 14px 16px;
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-md);
    }
    .terms-wrap input[type="checkbox"] {
      width: 18px; height: 18px;
      accent-color: var(--navy);
      flex-shrink: 0;
      margin-top: 1px;
      cursor: pointer;
    }
    .terms-text {
      font-size: 13px;
      color: var(--gray-600);
      line-height: 1.5;
    }
    .terms-text a { color: var(--navy); font-weight: 600; text-decoration: none; }
    .terms-text a:hover { text-decoration: underline; }

    /* Submit CTA */
    .btn-register {
      width: 100%;
      background: var(--red);
      color: white;
      border: none;
      border-radius: var(--radius-md);
      padding: 14px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
      margin-bottom: 16px;
    }
    .btn-register:hover { background: var(--red-dark); }
    .btn-register:active { transform: scale(0.98); }

    /* Login redirect */
    .login-redirect {
      text-align: center;
      font-size: 14px;
      color: var(--gray-400);
    }
    .login-redirect a {
      color: var(--navy);
      font-weight: 600;
      text-decoration: none;
    }
    .login-redirect a:hover { text-decoration: underline; }

    /* B2B extra fields */
    .b2b-section {
      border-top: 1px solid var(--gray-200);
      margin-top: 20px;
      padding-top: 20px;
    }
    .b2b-section-lbl {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--gray-400);
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .b2b-section-lbl::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--gray-200);
    }

    /* CSV upload zone */
    .csv-zone {
      border: 2px dashed var(--gray-200);
      border-radius: var(--radius-md);
      padding: 20px;
      text-align: center;
      cursor: pointer;
      transition: all 0.15s;
      margin-top: 8px;
    }
    .csv-zone:hover {
      border-color: var(--navy);
      background: rgba(27,42,74,0.02);
    }
    .csv-icon { font-size: 24px; margin-bottom: 6px; }
    .csv-title { font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
    .csv-sub { font-size: 12px; color: var(--gray-400); }
    .csv-link { color: var(--red); font-weight: 600; cursor: pointer; font-size: 12px; margin-top: 8px; display: inline-block; }

    /* ── OTP SCREEN ── */
    .otp-wrap {
      text-align: center;
      max-width: 420px;
      margin: 0 auto;
    }
    .otp-phone-icon {
      width: 64px; height: 64px;
      border-radius: 18px;
      background: var(--navy);
      display: flex; align-items: center; justify-content: center;
      font-size: 28px;
      margin: 0 auto 20px;
    }
    .otp-title {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 28px;
      color: var(--navy-dark);
      margin-bottom: 8px;
    }
    .otp-sub {
      font-size: 14px;
      color: var(--gray-400);
      margin-bottom: 8px;
      line-height: 1.6;
    }
    .otp-phone-display {
      font-weight: 600;
      color: var(--navy);
      font-size: 15px;
      margin-bottom: 32px;
    }

    /* OTP digit boxes */
    .otp-boxes {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-bottom: 24px;
    }
    .otp-box {
      width: 54px;
      height: 64px;
      border: 2px solid var(--gray-200);
      border-radius: var(--radius-md);
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 28px;
      color: var(--navy);
      text-align: center;
      outline: none;
      transition: all 0.15s;
      background: white;
    }
    .otp-box:focus {
      border-color: var(--navy);
      box-shadow: 0 0 0 3px rgba(27,42,74,0.1);
    }
    .otp-box.filled {
      border-color: var(--navy);
      background: rgba(27,42,74,0.03);
    }
    .otp-box.error {
      border-color: var(--red);
      background: #FEF2F4;
      animation: shake 0.4s ease;
    }
    @keyframes shake {
      0%,100%{ transform: translateX(0); }
      20%{ transform: translateX(-6px); }
      40%{ transform: translateX(6px); }
      60%{ transform: translateX(-4px); }
      80%{ transform: translateX(4px); }
    }

    .otp-attempts {
      font-size: 12px;
      color: var(--amber);
      margin-bottom: 16px;
      min-height: 18px;
      font-weight: 500;
    }
    .otp-attempts.danger { color: var(--red); }

    .btn-verify {
      width: 100%;
      background: var(--navy);
      color: white;
      border: none;
      border-radius: var(--radius-md);
      padding: 14px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
      margin-bottom: 20px;
    }
    .btn-verify:hover { background: var(--navy-mid); }
    .btn-verify:active { transform: scale(0.98); }

    .otp-resend {
      font-size: 14px;
      color: var(--gray-400);
      margin-bottom: 8px;
    }
    .otp-resend a {
      color: var(--navy);
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
    }
    .otp-resend a:hover { text-decoration: underline; }

    .otp-timer {
      font-size: 13px;
      color: var(--gray-400);
      font-weight: 500;
    }
    .otp-timer span {
      font-family: var(--font-display);
      font-weight: 700;
      color: var(--navy);
      font-size: 15px;
    }

    /* SMS consent note */
    .sms-consent {
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 10px 14px;
      font-size: 11px;
      color: var(--gray-400);
      line-height: 1.6;
      margin-top: 20px;
      text-align: left;
    }
    .sms-consent strong { color: var(--gray-600); }

    /* Social auth */
    .social-divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 20px 0;
    }
    .social-divider hr { flex: 1; border: none; border-top: 1px solid var(--gray-200); }
    .social-divider span { font-size: 12px; color: var(--gray-400); font-weight: 500; white-space: nowrap; }

    .btn-google {
      width: 100%;
      background: white;
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 11px;
      font-family: var(--font-body);
      font-weight: 600;
      font-size: 14px;
      color: var(--gray-800);
      cursor: pointer;
      transition: all 0.15s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-bottom: 10px;
    }
    .btn-google:hover { border-color: var(--navy); background: var(--gray-50); }

    /* Input validation states */
    input.valid   { border-color: var(--green) !important; }
    input.invalid { border-color: var(--red) !important; }
    .field-error {
      font-size: 12px;
      color: var(--red);
      margin-top: 4px;
      display: none;
    }
    .field-error.show { display: block; }
    .field-error.server-error {
      font-size: 13px;
      background: #FEF2F2;
      border: 1px solid var(--red, #C8102E);
      border-radius: 8px;
      padding: 10px 14px;
      margin-top: 8px;
      text-align: center;
    }

    @media (max-width: 560px) {
      .s4-inner { padding: 32px 16px 60px; }
      .otp-box { width: 44px; height: 54px; font-size: 22px; }
      .otp-boxes { gap: 6px; }
    }

    /* ════════════════════════════════════════════════════════════════════ */
    /* S5 — ORDER SUMMARY + ADDRESS & CONTACT ENTRY                       */
    /* ════════════════════════════════════════════════════════════════════ */
    .s5-wrap {
      min-height: calc(100vh - 60px);
      background: var(--off-white);
      position: relative;
      overflow: hidden;
    }
    .s5-wrap::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--gray-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
      background-size: 40px 40px;
      opacity: 0.4;
      pointer-events: none;
    }
    .s5-inner {
      position: relative;
      z-index: 1;
      max-width: 860px;
      margin: 0 auto;
      padding: 48px 24px 80px;
    }

    /* Two-column layout */
    .s5-layout {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 24px;
      align-items: start;
    }

    /* ── LEFT COLUMN — forms ── */
    .s5-forms {}

    /* Section card header */
    .form-section-head {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
    }
    .form-section-icon {
      width: 32px; height: 32px;
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }
    .icon-navy  { background: var(--navy); }
    .icon-red   { background: var(--red); }
    .icon-green { background: #DCFCE7; }
    .form-section-label {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      color: var(--navy);
    }
    .form-section-badge {
      margin-left: auto;
      font-size: 11px;
      font-weight: 700;
      background: var(--navy);
      color: white;
      padding: 2px 10px;
      border-radius: 20px;
      letter-spacing: 0.3px;
    }
    .form-section-badge.red { background: var(--red); }

    /* Saved address selector (B2B) */
    .saved-addr-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      background: #EBF4FF;
      border: 1px solid #BFDBFE;
      border-radius: var(--radius-md);
      padding: 10px 14px;
      margin-bottom: 16px;
      font-size: 13px;
    }
    .saved-addr-icon { font-size: 16px; }
    .saved-addr-text { color: #1D4ED8; font-weight: 500; }
    .saved-addr-link {
      margin-left: auto;
      color: var(--navy);
      font-weight: 700;
      font-size: 12px;
      cursor: pointer;
      white-space: nowrap;
      text-decoration: none;
    }
    .saved-addr-link:hover { text-decoration: underline; }

    /* Address divider */
    .addr-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 20px 0;
    }
    .addr-divider hr { flex: 1; border: none; border-top: 1px solid var(--gray-200); }
    .addr-swap-btn {
      display: flex;
      align-items: center;
      gap: 5px;
      background: white;
      border: 1.5px solid var(--gray-200);
      border-radius: 20px;
      padding: 5px 12px;
      font-size: 12px;
      font-weight: 600;
      color: var(--gray-600);
      cursor: pointer;
      transition: all 0.15s;
      white-space: nowrap;
    }
    .addr-swap-btn:hover { border-color: var(--navy); color: var(--navy); }

    /* Location pin icon in label */
    .label-icon { margin-right: 4px; font-size: 13px; }

    /* Access notes textarea */
    textarea.access-notes {
      height: 72px;
      resize: none;
      padding-top: 10px;
      line-height: 1.5;
    }

    /* Contact fields inline */
    .contact-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    /* Cancellation policy notice */
    .cancel-notice {
      background: #FEF3C7;
      border: 1px solid #FDE68A;
      border-radius: var(--radius-md);
      padding: 12px 16px;
      font-size: 13px;
      color: #92400E;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-top: 8px;
    }
    .cancel-notice-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
    .cancel-notice strong { display: block; font-weight: 700; margin-bottom: 3px; color: #78350F; }
    .cancel-ack-wrap {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-top: 14px;
      padding: 12px 14px;
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-md);
    }
    .cancel-ack-wrap input[type="checkbox"] {
      width: 17px; height: 17px;
      accent-color: var(--navy);
      flex-shrink: 0;
      margin-top: 2px;
    }
    .cancel-ack-text { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

    /* ── RIGHT COLUMN — sticky summary ── */
    .s5-sidebar {
      position: sticky;
      top: 72px;
    }

    .summary-card {
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      margin-bottom: 16px;
    }

    .summary-card-header {
      background: var(--navy);
      padding: 14px 18px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .summary-card-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 15px;
      color: white;
    }
    .summary-locked-badge {
      margin-left: auto;
      background: rgba(255,255,255,0.15);
      color: rgba(255,255,255,0.85);
      font-size: 10px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 10px;
      letter-spacing: 0.5px;
    }

    .summary-card-body { padding: 18px; }

    /* Vehicle row */
    .summary-vehicle {
      display: flex;
      align-items: center;
      gap: 10px;
      padding-bottom: 14px;
      margin-bottom: 14px;
      border-bottom: 1px solid var(--gray-100);
    }
    .summary-vehicle-icon {
      width: 40px; height: 40px;
      border-radius: 10px;
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      display: flex; align-items: center; justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }
    .summary-vehicle-name {
      font-weight: 600;
      font-size: 14px;
      color: var(--navy);
    }
    .summary-vehicle-meta {
      font-size: 12px;
      color: var(--gray-400);
      margin-top: 2px;
    }

    /* Route row */
    .summary-route {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--gray-600);
      padding-bottom: 14px;
      margin-bottom: 14px;
      border-bottom: 1px solid var(--gray-100);
    }
    .route-badge {
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: 6px;
      padding: 4px 8px;
      font-weight: 600;
      color: var(--navy);
      font-size: 12px;
      white-space: nowrap;
    }
    .route-arrow { color: var(--gray-300); font-size: 16px; }

    /* Price breakdown */
    .price-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
      color: var(--gray-600);
      padding: 5px 0;
    }
    .price-row.total {
      font-size: 15px;
      font-weight: 700;
      color: var(--navy);
      border-top: 1px solid var(--gray-200);
      margin-top: 8px;
      padding-top: 12px;
    }
    .price-row .label { display: flex; align-items: center; gap: 5px; }
    .price-row .info-icon {
      width: 14px; height: 14px;
      border-radius: 50%;
      background: var(--gray-100);
      display: flex; align-items: center; justify-content: center;
      font-size: 9px;
      color: var(--gray-400);
      cursor: pointer;
      flex-shrink: 0;
    }
    .price-highlight { color: var(--navy); font-weight: 600; }
    .price-total-amount {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 24px;
      color: var(--navy);
    }

    /* Escrow info */
    .escrow-note {
      background: #DCFCE7;
      border: 1px solid #BBF7D0;
      border-radius: var(--radius-md);
      padding: 10px 12px;
      font-size: 12px;
      color: #166534;
      display: flex;
      gap: 8px;
      align-items: flex-start;
      margin-top: 12px;
    }
    .escrow-note-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

    /* Path badge in summary */
    .summary-path-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      border-radius: 20px;
      padding: 3px 10px;
      font-size: 11px;
      font-weight: 700;
      margin-bottom: 12px;
    }
    .path-b-badge { background: #DBEAFE; color: #1E40AF; }
    .path-a-badge { background: #FEF3C7; color: #92400E; }

    /* Trust badges sidebar */
    .trust-card {
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg);
      padding: 16px 18px;
      box-shadow: var(--shadow-sm);
    }
    .trust-card-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--gray-400);
      margin-bottom: 12px;
    }
    .trust-row {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--gray-600);
      padding: 6px 0;
      border-bottom: 1px solid var(--gray-100);
    }
    .trust-row:last-child { border-bottom: none; }
    .trust-dot {
      width: 20px; height: 20px;
      border-radius: 50%;
      background: #DCFCE7;
      display: flex; align-items: center; justify-content: center;
      font-size: 10px;
      flex-shrink: 0;
      color: var(--green);
    }

    /* Submit CTA */
    .btn-proceed {
      width: 100%;
      background: var(--red);
      color: white;
      border: none;
      border-radius: var(--radius-md);
      padding: 14px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
      margin-top: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .btn-proceed:hover { background: var(--red-dark); }
    .btn-proceed:active { transform: scale(0.98); }

    /* Form step indicator inside card */
    .step-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: 20px;
      padding: 3px 10px;
      font-size: 12px;
      font-weight: 600;
      color: var(--gray-600);
      margin-bottom: 16px;
    }
    .step-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

    /* Responsive */
    @media (max-width: 760px) {
      .s5-layout { grid-template-columns: 1fr; }
      .s5-sidebar { position: static; }
      .contact-row { grid-template-columns: 1fr; }
    }

    /* ════════════════════════════════════════════════════════════════════ */
    /* S6 — PAYMENT / CHECKOUT (STRIPE)                                    */
    /* ════════════════════════════════════════════════════════════════════ */
    .s6-wrap {
      min-height: calc(100vh - 60px);
      background: var(--off-white);
      position: relative;
      overflow: hidden;
    }
    .s6-wrap::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--gray-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
      background-size: 40px 40px;
      opacity: 0.4;
      pointer-events: none;
    }
    .s6-inner {
      position: relative;
      z-index: 1;
      max-width: 920px;
      margin: 0 auto;
      padding: 48px 24px 80px;
    }
    .s6-layout {
      display: grid;
      grid-template-columns: 1fr 360px;
      gap: 24px;
      align-items: start;
    }

    /* ── Stripe secure banner ── */
    .stripe-banner {
      display: flex;
      align-items: center;
      gap: 10px;
      background: #F0FDF4;
      border: 1px solid #BBF7D0;
      border-radius: var(--radius-md);
      padding: 10px 16px;
      margin-bottom: 20px;
      font-size: 13px;
      color: #166534;
      font-weight: 500;
    }
    .stripe-banner-icon { font-size: 16px; }
    .stripe-logo {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      color: var(--gray-400);
    }
    .stripe-logo svg { opacity: 0.6; }

    /* ── Deposit notice ── */
    .deposit-notice {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      background: #DBEAFE;
      border: 1px solid #BFDBFE;
      border-radius: var(--radius-md);
      padding: 14px 16px;
      margin-bottom: 20px;
    }
    .deposit-notice-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
    .deposit-notice-title { font-weight: 700; font-size: 14px; color: #1E40AF; margin-bottom: 4px; }
    .deposit-notice-sub { font-size: 13px; color: #3B82F6; line-height: 1.5; }

    /* ── Card form ── */
    .card-input-wrap {
      position: relative;
      margin-bottom: 4px;
    }
    .card-input {
      width: 100%;
      height: 48px;
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 0 48px 0 14px;
      font-family: 'Courier New', monospace;
      font-size: 15px;
      letter-spacing: 2px;
      color: var(--gray-800);
      background: white;
      outline: none;
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .card-input:focus {
      border-color: var(--navy);
      box-shadow: 0 0 0 3px rgba(27,42,74,0.08);
    }
    .card-input::placeholder { letter-spacing: 1px; color: var(--gray-300); font-size: 14px; }
    .card-brand-icon {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 20px;
      pointer-events: none;
    }
    .card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

    /* Saved card option */
    .saved-card {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--gray-50);
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 12px 14px;
      margin-bottom: 14px;
      cursor: pointer;
      transition: all 0.15s;
      font-size: 13px;
    }
    .saved-card:hover { border-color: var(--navy); }
    .saved-card.active { border-color: var(--navy); background: rgba(27,42,74,0.03); }
    .saved-card input[type="radio"] { accent-color: var(--navy); }
    .card-chip { font-size: 18px; }
    .card-details { flex: 1; }
    .card-num { font-weight: 600; color: var(--navy); font-family: 'Courier New', monospace; letter-spacing: 1px; }
    .card-exp { font-size: 11px; color: var(--gray-400); margin-top: 1px; }
    .card-default-badge {
      font-size: 10px;
      font-weight: 700;
      background: #DCFCE7;
      color: #166534;
      padding: 2px 7px;
      border-radius: 10px;
    }

    /* New card toggle */
    .new-card-toggle {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 600;
      color: var(--navy);
      cursor: pointer;
      margin-bottom: 16px;
      padding: 10px 0;
      border-top: 1px solid var(--gray-100);
    }
    .new-card-toggle input[type="radio"] { accent-color: var(--navy); }

    /* Payment method tabs */
    .pay-method-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 20px;
    }
    .pay-tab {
      display: flex;
      align-items: center;
      gap: 7px;
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 9px 16px;
      font-size: 13px;
      font-weight: 600;
      color: var(--gray-600);
      cursor: pointer;
      transition: all 0.15s;
      background: white;
      font-family: var(--font-body);
    }
    .pay-tab.active { border-color: var(--navy); color: var(--navy); background: rgba(27,42,74,0.03); }
    .pay-tab:hover:not(.active) { border-color: var(--gray-400); }
    .pay-tab-icon { font-size: 16px; }

    /* Billing address toggle */
    .billing-same-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--gray-600);
      margin: 16px 0 4px;
    }
    .billing-same-wrap input { accent-color: var(--navy); width: 16px; height: 16px; }

    /* Pay button */
    .btn-pay {
      width: 100%;
      background: var(--navy);
      color: white;
      border: none;
      border-radius: var(--radius-md);
      padding: 16px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 20px;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
      margin-top: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      position: relative;
    }
    .btn-pay:hover { background: var(--navy-mid); }
    .btn-pay:active { transform: scale(0.98); }
    .btn-pay .pay-amount {
      font-size: 16px;
      opacity: 0.7;
      font-weight: 500;
    }

    /* Processing overlay */
    .pay-processing {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-size: 16px;
    }
    .pay-spinner {
      width: 20px; height: 20px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: white;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Fine print */
    .pay-fine-print {
      font-size: 11px;
      color: var(--gray-400);
      text-align: center;
      margin-top: 12px;
      line-height: 1.6;
    }
    .pay-fine-print a { color: var(--navy); text-decoration: none; }
    .pay-fine-print a:hover { text-decoration: underline; }

    /* Security icons row */
    .security-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin-top: 16px;
      flex-wrap: wrap;
    }
    .security-item {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      color: var(--gray-400);
      font-weight: 500;
    }
    .security-dot {
      width: 16px; height: 16px;
      border-radius: 50%;
      background: var(--gray-100);
      display: flex; align-items: center; justify-content: center;
      font-size: 9px;
      color: var(--green);
    }

    /* ── RIGHT SIDEBAR ── */
    .s6-sidebar { position: sticky; top: 72px; }

    .order-confirm-card {
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      margin-bottom: 16px;
    }
    .order-confirm-header {
      background: var(--navy);
      padding: 16px 18px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .order-confirm-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: white; }
    .order-confirm-body { padding: 18px; }

    .confirm-line {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      font-size: 13px;
      color: var(--gray-600);
      padding: 7px 0;
      border-bottom: 1px solid var(--gray-100);
    }
    .confirm-line:last-child { border-bottom: none; }
    .confirm-line .lbl { color: var(--gray-400); font-size: 12px; }
    .confirm-line .val { font-weight: 600; color: var(--navy); text-align: right; max-width: 60%; }

    /* Charge today vs escrow split */
    .charge-split {
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 14px;
      margin: 14px 0;
    }
    .charge-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
      padding: 4px 0;
    }
    .charge-row .charge-lbl { color: var(--gray-600); display: flex; align-items: center; gap: 5px; }
    .charge-row .charge-amt { font-weight: 700; }
    .charge-today { color: var(--red); }
    .charge-escrow { color: var(--navy); }
    .charge-divider { border: none; border-top: 1px dashed var(--gray-200); margin: 8px 0; }
    .charge-total-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 15px;
      font-weight: 700;
      color: var(--navy);
      padding-top: 8px;
      border-top: 1px solid var(--gray-200);
      margin-top: 8px;
    }
    .charge-total-amt {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 22px;
      color: var(--navy);
    }

    /* Escrow badge */
    .escrow-badge {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      background: #DCFCE7;
      border: 1px solid #BBF7D0;
      border-radius: var(--radius-md);
      padding: 10px 12px;
      font-size: 12px;
      color: #166534;
      margin-top: 2px;
    }

    /* What happens next */
    .next-steps-card {
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg);
      padding: 16px 18px;
      box-shadow: var(--shadow-sm);
    }
    .next-steps-title {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--gray-400);
      margin-bottom: 14px;
    }
    .next-step {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 8px 0;
      border-bottom: 1px solid var(--gray-100);
      font-size: 13px;
      color: var(--gray-600);
      line-height: 1.4;
    }
    .next-step:last-child { border-bottom: none; }
    .next-step-num {
      width: 22px; height: 22px;
      border-radius: 50%;
      background: var(--navy);
      color: white;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 12px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      margin-top: 1px;
    }

    /* ── S6 Confirmation screen (post-pay) ── */
    .s6-confirm-wrap { display: none; }
    .confirm-hero {
      text-align: center;
      padding: 40px 24px 32px;
      max-width: 560px;
      margin: 0 auto;
    }
    .confirm-check {
      width: 72px; height: 72px;
      border-radius: 50%;
      background: #DCFCE7;
      display: flex; align-items: center; justify-content: center;
      font-size: 36px;
      margin: 0 auto 20px;
      animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
    }
    @keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    .confirm-title {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 36px;
      color: var(--navy-dark);
      margin-bottom: 10px;
    }
    .confirm-title em { color: var(--green); font-style: normal; }
    .confirm-sub { font-size: 15px; color: var(--gray-400); line-height: 1.6; margin-bottom: 28px; }
    .confirm-ref {
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 12px 20px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
      margin-bottom: 28px;
    }
    .confirm-ref-lbl { color: var(--gray-400); font-size: 12px; }
    .confirm-ref-id { font-family: 'Courier New', monospace; font-weight: 700; color: var(--navy); font-size: 16px; letter-spacing: 1px; }
    .confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
    .btn-track {
      display: flex; align-items: center; gap: 8px;
      background: var(--navy); color: white; border: none;
      border-radius: var(--radius-md); padding: 12px 24px;
      font-family: var(--font-display); font-weight: 700; font-size: 16px;
      cursor: pointer; transition: background 0.15s;
    }
    .btn-track:hover { background: var(--navy-mid); }
    .btn-invoice {
      display: flex; align-items: center; gap: 8px;
      background: white; color: var(--navy);
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-md); padding: 12px 24px;
      font-family: var(--font-display); font-weight: 700; font-size: 16px;
      cursor: pointer; transition: all 0.15s;
    }
    .btn-invoice:hover { border-color: var(--navy); }

    @media (max-width: 760px) {
      .s6-layout { grid-template-columns: 1fr; }
      .s6-sidebar { position: static; }
      .card-row { grid-template-columns: 1fr; }
      .pay-method-tabs { flex-wrap: wrap; }
    }

    /* ════════════════════════════════════════════════════════════════════ */
    /* S7 — SHIPMENT TRACKER (LIVE GPS + STATUS)                           */
    /* ════════════════════════════════════════════════════════════════════ */
    .s7-wrap {
      min-height: calc(100vh - 60px);
      background: var(--off-white);
      position: relative;
    }
    .s7-inner {
      max-width: 980px;
      margin: 0 auto;
      padding: 32px 24px 80px;
    }

    /* ── Header bar ── */
    .s7-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      flex-wrap: wrap;
      gap: 12px;
    }
    .s7-header-left {}
    .s7-shipment-ref {
      font-size: 12px;
      color: var(--gray-400);
      font-weight: 500;
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .s7-shipment-id {
      font-family: 'Courier New', monospace;
      font-weight: 700;
      color: var(--navy);
      font-size: 13px;
    }
    .s7-page-title {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 28px;
      color: var(--navy-dark);
      letter-spacing: -0.3px;
    }
    .s7-status-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 14px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.3px;
    }
    .status-searching  { background: #FEF3C7; color: #92400E; }
    .status-assigned   { background: #DBEAFE; color: #1E40AF; }
    .status-intransit  { background: #DCFCE7; color: #166534; }
    .status-delivered  { background: #F0FDF4; color: var(--green); }
    .status-confirmed  { background: var(--gray-50); color: var(--navy); }
    .status-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: currentColor;
      animation: pulseDot 2s infinite;
    }
    .status-dot.static { animation: none; }
    @keyframes pulseDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.7)} }

    /* ── Main layout ── */
    .s7-layout {
      display: grid;
      grid-template-columns: 1fr 380px;
      gap: 20px;
      align-items: start;
    }
    .s7-left {}
    .s7-right { position: sticky; top: 72px; }

    /* ── Map placeholder ── */
    .s7-map {
      background: #E8EEF4;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg);
      height: 320px;
      position: relative;
      overflow: hidden;
      margin-bottom: 20px;
    }
    .map-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(27,42,74,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27,42,74,0.06) 1px, transparent 1px);
      background-size: 32px 32px;
    }
    /* Simulated route line */
    .map-route-svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }
    /* Origin pin */
    .map-pin {
      position: absolute;
      display: flex;
      flex-direction: column;
      align-items: center;
      transform: translateX(-50%);
    }
    .map-pin-circle {
      width: 32px; height: 32px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 14px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .pin-origin   { background: var(--navy); }
    .pin-dest     { background: var(--green); }
    .pin-truck    { background: var(--red); animation: truckPulse 2s infinite; }
    @keyframes truckPulse { 0%,100%{box-shadow:0 0 0 0 rgba(196,18,48,0.3)} 50%{box-shadow:0 0 0 8px rgba(196,18,48,0)} }
    .map-pin-label {
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: 6px;
      padding: 2px 8px;
      font-size: 11px;
      font-weight: 600;
      color: var(--navy);
      margin-top: 4px;
      white-space: nowrap;
      box-shadow: var(--shadow-sm);
    }
    /* Map legend */
    .map-legend {
      position: absolute;
      bottom: 12px; left: 12px;
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 8px 12px;
      font-size: 11px;
      color: var(--gray-600);
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .legend-item { display: flex; align-items: center; gap: 6px; }
    .legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
    /* Map ETA chip */
    .map-eta-chip {
      position: absolute;
      top: 12px; right: 12px;
      background: var(--navy);
      color: white;
      border-radius: var(--radius-md);
      padding: 8px 14px;
      font-size: 12px;
      font-weight: 600;
      box-shadow: var(--shadow-md);
    }
    .map-eta-chip .eta-label { opacity: 0.6; font-size: 10px; display: block; }
    .map-eta-chip .eta-val {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 18px;
    }
    /* CDHS tag on map */
    /* ── Timeline ── */
    .s7-timeline {
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg);
      padding: 20px 24px;
      margin-bottom: 20px;
      box-shadow: var(--shadow-sm);
    }
    .timeline-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 16px;
      color: var(--navy);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .timeline-list { position: relative; }
    .timeline-list::before {
      content: '';
      position: absolute;
      left: 15px;
      top: 8px;
      bottom: 8px;
      width: 2px;
      background: var(--gray-200);
    }
    .timeline-item {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 10px 0;
      position: relative;
    }
    .timeline-icon {
      width: 32px; height: 32px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 14px;
      flex-shrink: 0;
      position: relative;
      z-index: 1;
      border: 2px solid white;
    }
    .t-done    { background: var(--green); color: white; }
    .t-active  { background: var(--red); color: white; animation: truckPulse 2s infinite; }
    .t-pending { background: var(--gray-100); color: var(--gray-400); border: 2px solid var(--gray-200); }
    .timeline-content { flex: 1; padding-top: 4px; }
    .timeline-label {
      font-weight: 600;
      font-size: 14px;
      color: var(--navy);
      line-height: 1.2;
    }
    .timeline-label.pending { color: var(--gray-400); }
    .timeline-sub {
      font-size: 12px;
      color: var(--gray-400);
      margin-top: 3px;
      line-height: 1.5;
    }
    .timeline-time {
      font-size: 11px;
      color: var(--gray-400);
      white-space: nowrap;
      padding-top: 6px;
      font-weight: 500;
    }
    .timeline-time.active { color: var(--red); font-weight: 700; }

    /* ── Carrier card ── */
    .carrier-card {
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg);
      padding: 18px 20px;
      margin-bottom: 16px;
      box-shadow: var(--shadow-sm);
    }
    .carrier-card-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--gray-400);
      margin-bottom: 14px;
    }
    .carrier-info {
      display: flex;
      align-items: center;
      gap: 12px;
      padding-bottom: 14px;
      margin-bottom: 14px;
      border-bottom: 1px solid var(--gray-100);
    }
    .carrier-avatar {
      width: 44px; height: 44px;
      border-radius: 12px;
      background: var(--navy);
      display: flex; align-items: center; justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
      color: white;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
    }
    .carrier-name { font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 3px; }
    .carrier-meta { font-size: 12px; color: var(--gray-400); display: flex; align-items: center; gap: 8px; }
    .carrier-rating { color: var(--amber); font-weight: 600; }
    .carrier-contact-row {
      display: flex;
      gap: 10px;
    }
    .btn-call {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: var(--navy);
      color: white;
      border: none;
      border-radius: var(--radius-md);
      padding: 10px;
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s;
    }
    .btn-call:hover { background: var(--navy-mid); }
    .btn-sms {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: white;
      color: var(--navy);
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 10px;
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s;
    }
    .btn-sms:hover { border-color: var(--navy); }

    /* ── Shipment details ── */
    .shipment-details-card {
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg);
      padding: 18px 20px;
      margin-bottom: 16px;
      box-shadow: var(--shadow-sm);
    }
    .detail-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      font-size: 13px;
      padding: 8px 0;
      border-bottom: 1px solid var(--gray-100);
      gap: 12px;
    }
    .detail-row:last-child { border-bottom: none; }
    .detail-lbl { color: var(--gray-400); font-size: 12px; white-space: nowrap; }
    .detail-val { font-weight: 600; color: var(--navy); text-align: right; }

    /* ── ETA banner ── */
    .s7-eta-banner {
      background: var(--navy);
      border-radius: var(--radius-lg);
      padding: 16px 20px;
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 16px;
    }
    .eta-icon { font-size: 24px; }
    .eta-label-text { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
    .eta-time {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 22px;
      color: white;
      line-height: 1;
    }
    .eta-date { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
    .eta-updated {
      margin-left: auto;
      font-size: 11px;
      color: rgba(255,255,255,0.4);
      text-align: right;
    }

    /* ── Status switcher (demo) ── */
    .status-switcher {
      background: white;
      border: 1px dashed var(--gray-300);
      border-radius: var(--radius-md);
      padding: 12px 16px;
      margin-bottom: 20px;
      font-size: 12px;
      color: var(--gray-400);
    }
    .status-switcher-title {
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 8px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .status-btns { display: flex; gap: 6px; flex-wrap: wrap; }
    .status-btn {
      padding: 4px 12px;
      border-radius: 20px;
      border: 1px solid var(--gray-200);
      background: white;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s;
      font-family: var(--font-body);
      color: var(--gray-600);
    }
    .status-btn:hover { border-color: var(--navy); color: var(--navy); }
    .status-btn.active { background: var(--navy); color: white; border-color: var(--navy); }

    /* Notification toggle */
    .notif-card {
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg);
      padding: 14px 16px;
      margin-bottom: 16px;
      font-size: 13px;
    }
    .notif-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px 0;
    }
    .notif-lbl { color: var(--gray-600); display: flex; align-items: center; gap: 6px; }

    @media (max-width: 760px) {
      .s7-layout { grid-template-columns: 1fr; }
      .s7-right { position: static; }
      .s7-map { height: 220px; }
    }

    /* ════════════════════════════════════════════════════════════════════ */
    /* S8 — BID LIST (PATH A — REVIEW & SELECT CARRIER)                   */
    /* ════════════════════════════════════════════════════════════════════ */
    .s8-wrap {
      min-height: calc(100vh - 60px);
      background: var(--off-white);
      position: relative;
    }
    .s8-wrap::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--gray-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
      background-size: 40px 40px;
      opacity: 0.4;
      pointer-events: none;
    }
    .s8-inner {
      position: relative;
      z-index: 1;
      max-width: 920px;
      margin: 0 auto;
      padding: 36px 24px 80px;
    }

    /* ── Header ── */
    .s8-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 20px;
      flex-wrap: wrap;
      gap: 12px;
    }
    .s8-header-left {}
    .s8-ref {
      font-size: 12px;
      color: var(--gray-400);
      font-weight: 500;
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .s8-title {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 30px;
      color: var(--navy-dark);
      letter-spacing: -0.3px;
      margin-bottom: 4px;
    }
    .s8-sub {
      font-size: 14px;
      color: var(--gray-400);
    }

    /* Path A badge */
    .path-a-header-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #FEF3C7;
      border: 1px solid #FDE68A;
      border-radius: 20px;
      padding: 5px 14px;
      font-size: 12px;
      font-weight: 700;
      color: #92400E;
    }

    /* ── Vehicle strip ── */
    .s8-vehicle-strip {
      background: var(--navy);
      border-radius: var(--radius-lg);
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      flex-wrap: wrap;
      gap: 12px;
    }
    .s8-vehicle-info { display: flex; align-items: center; gap: 12px; }
    .s8-vehicle-icon { font-size: 24px; }
    .s8-vehicle-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: white; }
    .s8-vehicle-meta { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }
    .s8-route-info { display: flex; align-items: center; gap: 10px; }
    .s8-route-city { text-align: center; }
    .s8-route-city-name { font-size: 13px; font-weight: 600; color: white; }
    .s8-route-city-zip { font-size: 11px; color: rgba(255,255,255,0.4); }
    .s8-route-line { width: 52px; height: 2px; background: rgba(255,255,255,0.15); position: relative; }
    .s8-route-line::after { content: '→'; position: absolute; right: -7px; top: -9px; color: rgba(255,255,255,0.4); font-size: 12px; }
    .s8-expires {
      font-size: 12px;
      color: rgba(255,255,255,0.5);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .s8-expires strong { color: #FDE68A; }

    /* ── Controls bar ── */
    .s8-controls {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }
    .s8-count {
      font-size: 13px;
      color: var(--gray-600);
      font-weight: 500;
    }
    .s8-count strong { color: var(--navy); font-size: 15px; }
    .s8-sort {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--gray-600);
    }
    .s8-sort-label { font-weight: 500; white-space: nowrap; }
    .s8-sort select {
      height: 36px;
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 0 32px 0 12px;
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 600;
      color: var(--navy);
      background: white;
      outline: none;
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2394A3B8' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
    }
    .s8-sort select:focus { border-color: var(--navy); }

    /* Notification arrived banner */
    .notif-banner {
      display: flex;
      align-items: center;
      gap: 12px;
      background: #DCFCE7;
      border: 1px solid #BBF7D0;
      border-radius: var(--radius-md);
      padding: 12px 16px;
      margin-bottom: 16px;
      font-size: 13px;
      color: #166534;
    }
    .notif-banner-icon { font-size: 18px; flex-shrink: 0; }
    .notif-banner strong { font-weight: 700; }
    .notif-banner-close {
      margin-left: auto;
      background: none;
      border: none;
      color: #166534;
      font-size: 16px;
      cursor: pointer;
      opacity: 0.6;
      padding: 0 4px;
    }
    .notif-banner-close:hover { opacity: 1; }

    /* ── Bid card ── */
    .bid-card {
      background: white;
      border: 2px solid var(--gray-200);
      border-radius: var(--radius-xl);
      margin-bottom: 16px;
      overflow: hidden;
      transition: all 0.2s;
      cursor: pointer;
      position: relative;
    }
    .bid-card:hover {
      border-color: var(--navy);
      box-shadow: var(--shadow-md);
      transform: translateY(-1px);
    }
    .bid-card.selected {
      border-color: var(--navy);
      box-shadow: 0 0 0 4px rgba(27,42,74,0.1), var(--shadow-md);
    }
    .bid-card.best-value {
      border-color: var(--amber);
    }
    .bid-card.best-value:hover, .bid-card.best-value.selected {
      border-color: var(--amber);
      box-shadow: 0 0 0 4px rgba(217,119,6,0.12), var(--shadow-md);
    }

    /* Best value ribbon */
    .bid-ribbon {
      position: absolute;
      top: 0; left: 0;
      background: var(--amber);
      color: white;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.5px;
      padding: 4px 12px 4px 10px;
      border-radius: 0 0 var(--radius-md) 0;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    /* Bid card layout */
    .bid-card-main {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 0;
      align-items: stretch;
    }
    .bid-card-left { padding: 20px 24px 20px; }
    .bid-card-right {
      border-left: 1px solid var(--gray-100);
      padding: 20px 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-width: 180px;
      text-align: center;
      background: var(--gray-50);
    }

    /* Carrier info */
    .bid-carrier-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }
    .bid-carrier-avatar {
      width: 44px; height: 44px;
      border-radius: 12px;
      background: var(--navy);
      color: white;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 16px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .bid-carrier-name {
      font-weight: 700;
      font-size: 15px;
      color: var(--navy);
      margin-bottom: 3px;
    }
    .bid-carrier-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--gray-400);
      flex-wrap: wrap;
    }
    .bid-rating { color: var(--amber); font-weight: 600; }
    .bid-meta-dot { color: var(--gray-300); }
    .bid-verified-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 10px;
      font-weight: 700;
      background: #DCFCE7;
      color: #166534;
      padding: 1px 6px;
      border-radius: 10px;
    }

    /* Bid details grid */
    .bid-details {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
    .bid-detail {}
    .bid-detail-lbl {
      font-size: 11px;
      color: var(--gray-400);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.4px;
      margin-bottom: 3px;
    }
    .bid-detail-val {
      font-size: 14px;
      font-weight: 600;
      color: var(--navy);
      line-height: 1.3;
    }
    .bid-detail-sub {
      font-size: 11px;
      color: var(--gray-400);
      margin-top: 1px;
    }

    /* Right side price */
    .bid-price-label {
      font-size: 11px;
      color: var(--gray-400);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 4px;
    }
    .bid-price-amount {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 38px;
      color: var(--navy);
      line-height: 1;
      margin-bottom: 6px;
    }
    .bid-price-note {
      font-size: 11px;
      color: var(--gray-400);
      margin-bottom: 14px;
      line-height: 1.4;
    }
    .btn-select-bid {
      width: 100%;
      background: var(--navy);
      color: white;
      border: none;
      border-radius: var(--radius-md);
      padding: 10px 16px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.15s;
      letter-spacing: 0.3px;
    }
    .btn-select-bid:hover { background: var(--navy-mid); }
    .btn-select-bid.selected-state {
      background: var(--green);
    }
    .bid-card.best-value .btn-select-bid { background: var(--amber); }
    .bid-card.best-value .btn-select-bid:hover { background: #B45309; }
    .bid-card.best-value .btn-select-bid.selected-state { background: var(--green); }

    /* Truck type pill */
    .truck-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: 20px;
      padding: 2px 8px;
      font-size: 11px;
      font-weight: 600;
      color: var(--gray-600);
    }

    /* Expandable details */
    .bid-expand-toggle {
      padding: 10px 24px;
      border-top: 1px solid var(--gray-100);
      background: var(--gray-50);
      font-size: 12px;
      font-weight: 600;
      color: var(--navy);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: background 0.15s;
      user-select: none;
    }
    .bid-expand-toggle:hover { background: var(--gray-100); }
    .bid-expand-icon { transition: transform 0.2s; font-size: 10px; }
    .bid-expand-icon.open { transform: rotate(180deg); }

    .bid-expanded {
      display: none;
      padding: 16px 24px 20px;
      border-top: 1px solid var(--gray-100);
      background: white;
    }
    .bid-expanded.open { display: block; }

    .bid-expanded-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-bottom: 14px;
    }
    .expanded-item {}
    .expanded-lbl { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 3px; }
    .expanded-val { font-size: 13px; font-weight: 600; color: var(--navy); }

    /* Recent reviews */
    .bid-reviews { margin-top: 12px; }
    .review-title { font-size: 12px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
    .review-item {
      background: var(--gray-50);
      border: 1px solid var(--gray-100);
      border-radius: var(--radius-md);
      padding: 10px 14px;
      margin-bottom: 8px;
      font-size: 13px;
    }
    .review-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
    .review-stars { color: var(--amber); font-size: 12px; }
    .review-author { font-weight: 600; color: var(--navy); font-size: 12px; }
    .review-date { color: var(--gray-400); font-size: 11px; margin-left: auto; }
    .review-text { color: var(--gray-600); line-height: 1.5; }

    /* No bids yet state */
    .no-bids-state {
      text-align: center;
      padding: 60px 24px;
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-xl);
      margin-bottom: 20px;
    }
    .no-bids-icon { font-size: 48px; margin-bottom: 16px; }
    .no-bids-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--navy); margin-bottom: 8px; }
    .no-bids-sub { font-size: 14px; color: var(--gray-400); max-width: 400px; margin: 0 auto 20px; line-height: 1.6; }
    .no-bids-progress {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--gray-600);
    }
    .no-bids-spinner {
      width: 16px; height: 16px;
      border: 2px solid var(--gray-200);
      border-top-color: var(--navy);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    /* ── Confirmation modal overlay ── */
    .bid-confirm-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(13,22,35,0.6);
      z-index: 100;
      align-items: center;
      justify-content: center;
      padding: 24px;
      backdrop-filter: blur(3px);
    }
    .bid-confirm-overlay.open { display: flex; }
    .bid-confirm-modal {
      background: white;
      border-radius: var(--radius-xl);
      padding: 32px;
      max-width: 480px;
      width: 100%;
      box-shadow: 0 24px 64px rgba(13,22,35,0.2);
      animation: slideUp 0.25s cubic-bezier(0.34,1.2,0.64,1);
    }
    @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    .modal-icon { font-size: 36px; margin-bottom: 14px; }
    .modal-title { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--navy-dark); margin-bottom: 8px; }
    .modal-sub { font-size: 14px; color: var(--gray-400); line-height: 1.6; margin-bottom: 20px; }
    .modal-carrier-recap {
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      margin-bottom: 20px;
    }
    .modal-carrier-name { font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
    .modal-price { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--navy); }
    .modal-price-note { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
    .modal-actions { display: flex; gap: 12px; }
    .btn-modal-cancel {
      flex: 1;
      background: white;
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 12px;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 600;
      color: var(--gray-600);
      cursor: pointer;
      transition: all 0.15s;
    }
    .btn-modal-cancel:hover { border-color: var(--navy); color: var(--navy); }
    .btn-modal-confirm {
      flex: 2;
      background: var(--navy);
      border: none;
      border-radius: var(--radius-md);
      padding: 12px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 16px;
      color: white;
      cursor: pointer;
      transition: background 0.15s;
    }
    .btn-modal-confirm:hover { background: var(--navy-mid); }

    /* CDHS tag adjustments for dark strip */
    .s8-backend { margin-top: 24px; }

    @media (max-width: 700px) {
      .bid-card-main { grid-template-columns: 1fr; }
      .bid-card-right { border-left: none; border-top: 1px solid var(--gray-100); }
      .bid-details { grid-template-columns: 1fr 1fr; }
      .bid-expanded-grid { grid-template-columns: 1fr; }
      .s8-controls { flex-direction: column; align-items: flex-start; }
      .s8-sort { margin-left: 0; }
    }

    /* ════════════════════════════════════════════════════════════════════ */
    /* S9 — ORDER SUMMARY + ADDRESS (PATH A — POST BID SELECTION)          */
    /* S10 — PAYMENT / CHECKOUT (PATH A)                                   */
    /* ════════════════════════════════════════════════════════════════════ */

    /* Reuse most S5/S6 styles — only Path A specific overrides needed */

    .s9-wrap, .s10-wrap {
      min-height: calc(100vh - 60px);
      background: var(--off-white);
      position: relative;
      overflow: hidden;
    }
    .s9-wrap::before, .s10-wrap::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--gray-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
      background-size: 40px 40px;
      opacity: 0.4;
      pointer-events: none;
    }
    .s9-inner, .s10-inner {
      position: relative;
      z-index: 1;
      max-width: 860px;
      margin: 0 auto;
      padding: 48px 24px 80px;
    }
    .s10-inner { max-width: 920px; }

    /* Carrier selected banner (Path A specific) */
    .carrier-selected-banner {
      background: var(--navy);
      border-radius: var(--radius-lg);
      padding: 16px 22px;
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 24px;
      flex-wrap: wrap;
      gap: 12px;
    }
    .csb-icon { font-size: 26px; }
    .csb-info { flex: 1; }
    .csb-label { font-size: 11px; color: rgba(255,255,255,0.45); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
    .csb-carrier-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: white; line-height: 1.1; }
    .csb-meta { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 3px; }
    .csb-price-block { text-align: right; }
    .csb-price-label { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
    .csb-price { font-family: var(--font-display); font-weight: 900; font-size: 32px; color: white; line-height: 1; }
    .csb-price-note { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 3px; }

    /* Path A pricing note — full amount, no escrow split for Path A */
    .path-a-price-note {
      background: #FEF3C7;
      border: 1px solid #FDE68A;
      border-radius: var(--radius-md);
      padding: 10px 14px;
      font-size: 13px;
      color: #92400E;
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin-bottom: 16px;
    }

    /* Pickup window display */
    .pickup-window-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #DCFCE7;
      border: 1px solid #BBF7D0;
      border-radius: 20px;
      padding: 4px 12px;
      font-size: 12px;
      font-weight: 600;
      color: #166534;
      margin-bottom: 8px;
    }

    /* S10 Path A — full amount charged notice */
    .full-charge-notice {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      background: #DBEAFE;
      border: 1px solid #BFDBFE;
      border-radius: var(--radius-md);
      padding: 14px 16px;
      margin-bottom: 20px;
    }
    .fcn-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
    .fcn-title { font-weight: 700; font-size: 14px; color: #1E40AF; margin-bottom: 4px; }
    .fcn-sub { font-size: 13px; color: #3B82F6; line-height: 1.5; }

    /* S10 Path A charge breakdown — single charge, no deposit/escrow split */
    .single-charge-card {
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 16px;
      margin: 14px 0;
    }
    .single-charge-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
      padding: 5px 0;
      color: var(--gray-600);
    }
    .single-charge-total {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 16px;
      font-weight: 700;
      color: var(--navy);
      padding-top: 10px;
      border-top: 1px solid var(--gray-200);
      margin-top: 8px;
    }
    .single-charge-total-amt {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 26px;
      color: var(--navy);
    }

    /* Escrow note for Path A (carrier payment held until delivery) */
    .carrier-escrow-note {
      background: #EFF6FF;
      border: 1px solid #BFDBFE;
      border-radius: var(--radius-md);
      padding: 10px 12px;
      font-size: 12px;
      color: #1E40AF;
      display: flex;
      gap: 8px;
      align-items: flex-start;
      margin-top: 4px;
    }

    /* Path A next steps */
    .path-a-next-step {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 8px 0;
      border-bottom: 1px solid var(--gray-100);
      font-size: 13px;
      color: var(--gray-600);
      line-height: 1.4;
    }
    .path-a-next-step:last-child { border-bottom: none; }

    /* S9 layout reuse */
    .s9-layout {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 24px;
      align-items: start;
    }
    .s9-sidebar { position: sticky; top: 72px; }

    /* S10 layout */
    .s10-layout {
      display: grid;
      grid-template-columns: 1fr 360px;
      gap: 24px;
      align-items: start;
    }
    .s10-sidebar { position: sticky; top: 72px; }

    @media (max-width: 760px) {
      .s9-layout, .s10-layout { grid-template-columns: 1fr; }
      .s9-sidebar, .s10-sidebar { position: static; }
    }

    .s11-wrap,.s12-wrap,.s13-wrap,.s14-wrap{min-height:calc(100vh - 60px);background:var(--off-white);position:relative;overflow:hidden;}
    .s11-wrap::before,.s12-wrap::before,.s13-wrap::before,.s14-wrap::before{content:'';position:absolute;inset:0;background-image:linear-gradient(var(--gray-200) 1px,transparent 1px),linear-gradient(90deg,var(--gray-200) 1px,transparent 1px);background-size:40px 40px;opacity:0.4;pointer-events:none;}
    .s11-inner,.s12-inner,.s13-inner{position:relative;z-index:1;max-width:780px;margin:0 auto;padding:48px 24px 80px;}
    .s14-inner{position:relative;z-index:1;max-width:980px;margin:0 auto;padding:36px 24px 80px;}

    /* S11 */
    .delivery-hero{background:linear-gradient(135deg,var(--navy) 0%,#243A6A 100%);border-radius:var(--radius-xl);padding:28px 28px 24px;margin-bottom:24px;position:relative;overflow:hidden;}
    .delivery-hero::after{content:'🏁';position:absolute;right:24px;top:50%;transform:translateY(-50%);font-size:72px;opacity:0.12;}
    .delivery-hero-label{font-size:11px;font-weight:700;color:rgba(255,255,255,0.45);text-transform:uppercase;letter-spacing:1px;margin-bottom:6px;}
    .delivery-hero-title{font-family:var(--font-display);font-weight:800;font-size:30px;color:white;margin-bottom:4px;}
    .delivery-hero-sub{font-size:14px;color:rgba(255,255,255,0.5);margin-bottom:16px;}
    .delivery-hero-meta{display:flex;gap:20px;flex-wrap:wrap;}
    .delivery-meta-item{display:flex;flex-direction:column;}
    .delivery-meta-lbl{font-size:10px;color:rgba(255,255,255,0.4);font-weight:600;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:2px;}
    .delivery-meta-val{font-size:14px;font-weight:600;color:white;}
    .photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:8px;}
    .photo-slot{aspect-ratio:4/3;border:2px dashed var(--gray-200);border-radius:var(--radius-md);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s;position:relative;overflow:hidden;background:var(--gray-50);}
    .photo-slot:hover{border-color:var(--navy);background:rgba(27,42,74,0.02);}
    .photo-slot.uploaded{border:2px solid var(--green);background:#F0FDF4;}
    .photo-slot.uploaded::after{content:'✓';position:absolute;top:6px;right:8px;font-size:14px;font-weight:700;color:var(--green);}
    .photo-slot-icon{font-size:24px;margin-bottom:6px;opacity:0.4;}
    .photo-slot.uploaded .photo-slot-icon{opacity:1;font-size:28px;}
    .photo-slot-label{font-size:11px;font-weight:600;color:var(--gray-400);text-align:center;line-height:1.3;}
    .photo-slot.uploaded .photo-slot-label{color:var(--green);}
    .photo-progress-wrap{margin-bottom:20px;}
    .photo-progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:13px;}
    .photo-progress-label{font-weight:600;color:var(--navy);}
    .photo-progress-count{color:var(--gray-400);}
    .photo-progress-count strong{color:var(--green);}
    .photo-progress-bar{height:6px;background:var(--gray-100);border-radius:3px;overflow:hidden;}
    .photo-progress-fill{height:100%;background:var(--green);border-radius:3px;transition:width 0.4s cubic-bezier(0.34,1.2,0.64,1);}
    .vin-match-badge{display:flex;align-items:center;gap:8px;background:#DCFCE7;border:1px solid #BBF7D0;border-radius:var(--radius-md);padding:10px 14px;font-size:13px;color:#166534;font-weight:500;margin-bottom:20px;}
    .vin-match-badge.pending{background:#FEF3C7;border-color:#FDE68A;color:#92400E;}
    .damage-toggle-row{display:flex;align-items:center;gap:14px;padding:14px 16px;background:var(--gray-50);border:1.5px solid var(--gray-200);border-radius:var(--radius-md);margin-bottom:12px;}
    .damage-toggle-label{flex:1;font-size:14px;font-weight:600;color:var(--navy);}
    .damage-note-area{display:none;}
    .damage-note-area.visible{display:block;}
    .damage-alert{background:#FEF2F4;border:1px solid #FECDD3;border-radius:var(--radius-md);padding:10px 14px;font-size:13px;color:#BE123C;margin-bottom:10px;display:flex;align-items:flex-start;gap:8px;}
    .sig-pad-wrap{margin-bottom:20px;}
    .sig-canvas{width:100%;height:160px;border:2px solid var(--gray-200);border-radius:var(--radius-md);background:white;cursor:crosshair;display:block;touch-action:none;}
    .sig-canvas.active{border-color:var(--navy);}
    .sig-canvas.signed{border-color:var(--green);background:#F0FDF4;}
    .sig-controls{display:flex;align-items:center;gap:10px;margin-top:8px;}
    .sig-hint{font-size:12px;color:var(--gray-400);flex:1;}
    .btn-clear-sig{background:white;border:1.5px solid var(--gray-200);border-radius:var(--radius-md);padding:6px 14px;font-size:12px;font-weight:600;color:var(--gray-600);cursor:pointer;font-family:var(--font-body);transition:all 0.15s;}
    .btn-clear-sig:hover{border-color:var(--red);color:var(--red);}
    .bol-summary{background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius-md);padding:14px 16px;margin-bottom:20px;}
    .bol-summary-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;color:var(--gray-400);margin-bottom:10px;}
    .bol-row{display:flex;justify-content:space-between;font-size:13px;padding:4px 0;}
    .bol-lbl{color:var(--gray-400);}
    .bol-val{font-weight:600;color:var(--navy);}
    .btn-confirm-delivery{width:100%;background:var(--green);color:white;border:none;border-radius:var(--radius-md);padding:16px;font-family:var(--font-display);font-weight:700;font-size:20px;cursor:pointer;transition:background 0.15s,transform 0.1s;display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:12px;}
    .btn-confirm-delivery:hover{background:#15803D;}
    .delivery-fine-print{font-size:12px;color:var(--gray-400);text-align:center;line-height:1.6;}
    .s11-complete{display:none;}
    .delivery-complete-hero{text-align:center;padding:40px 0 32px;}
    .complete-icon-wrap{width:80px;height:80px;border-radius:50%;background:#DCFCE7;display:flex;align-items:center;justify-content:center;font-size:40px;margin:0 auto 20px;animation:popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);}
    .complete-title{font-family:var(--font-display);font-weight:800;font-size:36px;color:var(--navy-dark);margin-bottom:10px;}
    .complete-title em{color:var(--green);font-style:normal;}
    .complete-sub{font-size:15px;color:var(--gray-400);line-height:1.6;margin-bottom:28px;max-width:480px;margin-left:auto;margin-right:auto;}
    .escrow-released-card{background:var(--navy);border-radius:var(--radius-lg);padding:20px 24px;margin-bottom:20px;display:flex;align-items:center;gap:16px;}
    .escrow-released-icon{font-size:28px;flex-shrink:0;}
    .escrow-released-label{font-size:12px;color:rgba(255,255,255,0.45);margin-bottom:3px;}
    .escrow-released-title{font-family:var(--font-display);font-weight:800;font-size:22px;color:white;margin-bottom:2px;}
    .escrow-released-sub{font-size:12px;color:rgba(255,255,255,0.45);}
    .escrow-amount-chip{margin-left:auto;font-family:var(--font-display);font-weight:900;font-size:28px;color:white;}
    .complete-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:28px;}

    /* S12 */
    .invoice-doc{background:white;border:1px solid var(--gray-200);border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-lg);margin-bottom:24px;}
    .invoice-header{background:var(--navy);padding:28px 32px 24px;display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:16px;}
    .invoice-logo{font-family:var(--font-display);font-weight:900;font-size:32px;letter-spacing:-0.5px;line-height:1;}
    .invoice-logo .auto{color:rgba(255,255,255,0.9);}
    .invoice-logo .haul{color:var(--red);}
    .invoice-logo .dot{color:rgba(255,255,255,0.35);font-size:24px;}
    .invoice-tagline{font-size:12px;color:rgba(255,255,255,0.35);margin-top:4px;}
    .invoice-meta{text-align:right;}
    .invoice-num{font-family:'Courier New',monospace;font-size:14px;color:rgba(255,255,255,0.7);font-weight:700;margin-bottom:4px;}
    .invoice-date-lbl{font-size:11px;color:rgba(255,255,255,0.35);}
    .invoice-date-val{font-size:13px;color:rgba(255,255,255,0.6);font-weight:600;}
    .invoice-body{padding:28px 32px;}
    .invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid var(--gray-100);}
    .party-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--gray-400);margin-bottom:8px;}
    .party-name{font-weight:700;font-size:15px;color:var(--navy);margin-bottom:4px;}
    .party-detail{font-size:13px;color:var(--gray-400);line-height:1.5;}
    .invoice-table{width:100%;margin-bottom:24px;}
    .invoice-table-header{display:grid;grid-template-columns:1fr 100px 100px;gap:8px;padding:8px 0;border-bottom:2px solid var(--navy);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;color:var(--navy);margin-bottom:4px;}
    .invoice-table-row{display:grid;grid-template-columns:1fr 100px 100px;gap:8px;padding:10px 0;border-bottom:1px solid var(--gray-100);font-size:14px;color:var(--gray-800);align-items:start;}
    .invoice-table-row:last-child{border-bottom:none;}
    .inv-desc-main{font-weight:600;color:var(--navy);margin-bottom:3px;}
    .inv-desc-sub{font-size:12px;color:var(--gray-400);line-height:1.4;}
    .inv-qty{text-align:right;color:var(--gray-600);}
    .inv-amt{text-align:right;font-weight:600;color:var(--navy);}
    .invoice-totals{padding-top:16px;border-top:2px solid var(--navy);}
    .inv-total-row{display:flex;justify-content:space-between;font-size:14px;padding:5px 0;color:var(--gray-600);}
    .inv-total-row.grand{font-size:20px;font-weight:700;color:var(--navy);border-top:1px solid var(--gray-200);margin-top:8px;padding-top:12px;}
    .inv-total-row.grand .amt{font-family:var(--font-display);font-weight:800;font-size:26px;}
    .inv-payment-badge{display:flex;align-items:center;gap:8px;background:#DCFCE7;border:1px solid #BBF7D0;border-radius:var(--radius-md);padding:10px 14px;font-size:13px;color:#166534;font-weight:500;margin-top:16px;}
    .invoice-footer{background:var(--gray-50);border-top:1px solid var(--gray-100);padding:16px 32px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--gray-400);}
    .invoice-footer-brand{font-family:var(--font-display);font-weight:700;color:var(--navy);font-size:13px;}
    .invoice-actions{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap;}
    .btn-download{display:flex;align-items:center;gap:8px;background:var(--navy);color:white;border:none;border-radius:var(--radius-md);padding:12px 22px;font-family:var(--font-display);font-weight:700;font-size:16px;cursor:pointer;transition:background 0.15s;}
    .btn-download:hover{background:var(--navy-mid);}
    .btn-email-receipt{display:flex;align-items:center;gap:8px;background:white;color:var(--navy);border:1.5px solid var(--gray-200);border-radius:var(--radius-md);padding:12px 22px;font-family:var(--font-display);font-weight:700;font-size:16px;cursor:pointer;transition:all 0.15s;}
    .btn-email-receipt:hover{border-color:var(--navy);}
    .btn-rate-now{display:flex;align-items:center;gap:8px;background:var(--amber);color:white;border:none;border-radius:var(--radius-md);padding:12px 22px;font-family:var(--font-display);font-weight:700;font-size:16px;cursor:pointer;transition:background 0.15s;}
    .btn-rate-now:hover{background:#B45309;}
    .s12-next-card{background:white;border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:20px 24px;margin-bottom:20px;}
    .s12-next-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--gray-400);margin-bottom:14px;}

    /* S13 */
    .rating-recap{background:var(--navy);border-radius:var(--radius-lg);padding:18px 22px;display:flex;align-items:center;gap:14px;margin-bottom:24px;flex-wrap:wrap;}
    .recap-icon{font-size:28px;}
    .recap-info{flex:1;}
    .recap-vehicle{font-family:var(--font-display);font-weight:700;font-size:18px;color:white;margin-bottom:2px;}
    .recap-route{font-size:12px;color:rgba(255,255,255,0.45);}
    .recap-carrier{font-size:13px;color:rgba(255,255,255,0.6);font-weight:500;margin-top:3px;}
    .recap-date{font-size:12px;color:rgba(255,255,255,0.35);text-align:right;}
    .rating-section-title{font-family:var(--font-display);font-weight:700;font-size:16px;color:var(--navy);margin-bottom:4px;}
    .rating-section-sub{font-size:13px;color:var(--gray-400);margin-bottom:16px;}
    .stars{display:flex;gap:6px;margin-bottom:8px;}
    .star{font-size:38px;cursor:pointer;transition:transform 0.15s,filter 0.15s;filter:grayscale(1) opacity(0.3);user-select:none;line-height:1;}
    .star.active{filter:none;transform:scale(1.1);}
    .star:hover{filter:none;transform:scale(1.15);}
    .star-label{font-size:13px;font-weight:600;color:var(--gray-400);min-height:20px;}
    .star-label.active{color:var(--amber);}
    .aspect-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px;}
    .aspect-card{background:var(--gray-50);border:1.5px solid var(--gray-200);border-radius:var(--radius-md);padding:14px;transition:border-color 0.15s;}
    .aspect-card.rated{border-color:var(--amber);}
    .aspect-label{font-size:12px;font-weight:700;color:var(--navy);margin-bottom:8px;display:flex;align-items:center;gap:5px;}
    .aspect-stars{display:flex;gap:3px;}
    .aspect-star{font-size:20px;cursor:pointer;filter:grayscale(1) opacity(0.25);transition:filter 0.1s;user-select:none;}
    .aspect-star.on{filter:none;}
    .nps-wrap{margin-bottom:20px;}
    .nps-scale{display:flex;gap:6px;margin:10px 0 6px;flex-wrap:wrap;}
    .nps-btn{width:44px;height:44px;border:1.5px solid var(--gray-200);border-radius:var(--radius-md);background:white;font-size:14px;font-weight:600;color:var(--gray-600);cursor:pointer;transition:all 0.15s;font-family:var(--font-body);display:flex;align-items:center;justify-content:center;}
    .nps-btn:hover{border-color:var(--navy);color:var(--navy);}
    .nps-btn.selected{background:var(--navy);color:white;border-color:var(--navy);}
    .nps-btn.selected.promoter{background:var(--green);border-color:var(--green);}
    .nps-btn.selected.detractor{background:var(--red);border-color:var(--red);}
    .nps-labels{display:flex;justify-content:space-between;font-size:11px;color:var(--gray-400);}
    .review-textarea{width:100%;height:100px;border:1.5px solid var(--gray-200);border-radius:var(--radius-md);padding:12px 14px;font-family:var(--font-body);font-size:14px;color:var(--gray-800);resize:none;outline:none;line-height:1.6;transition:border-color 0.15s;}
    .review-textarea:focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(27,42,74,0.06);}
    .review-textarea::placeholder{color:var(--gray-300);}
    .char-count{font-size:11px;color:var(--gray-400);text-align:right;margin-top:4px;}
    .carrier-rating-header{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
    .carrier-rating-avatar{width:40px;height:40px;border-radius:10px;background:var(--navy);color:white;font-family:var(--font-display);font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
    .carrier-rating-name{font-weight:700;font-size:14px;color:var(--navy);}
    .carrier-rating-sub{font-size:12px;color:var(--gray-400);}
    .btn-submit-rating{width:100%;background:var(--amber);color:white;border:none;border-radius:var(--radius-md);padding:14px;font-family:var(--font-display);font-weight:700;font-size:18px;cursor:pointer;transition:background 0.15s,transform 0.1s;margin-bottom:12px;display:flex;align-items:center;justify-content:center;gap:8px;}
    .btn-submit-rating:hover{background:#B45309;}
    .rating-thanks{display:none;text-align:center;padding:40px 0;}
    .thanks-icon{font-size:56px;margin-bottom:16px;animation:popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);}
    .thanks-title{font-family:var(--font-display);font-weight:800;font-size:30px;color:var(--navy-dark);margin-bottom:8px;}
    .thanks-sub{font-size:15px;color:var(--gray-400);line-height:1.6;margin-bottom:24px;}

    /* S14 */
    .dash-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px;}
    .dash-stat-card{background:white;border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:18px 20px;box-shadow:var(--shadow-sm);}
    .dash-stat-icon{font-size:22px;margin-bottom:8px;}
    .dash-stat-num{font-family:var(--font-display);font-weight:800;font-size:28px;color:var(--navy);line-height:1;margin-bottom:4px;}
    .dash-stat-num em{color:var(--red);font-style:normal;}
    .dash-stat-lbl{font-size:12px;color:var(--gray-400);font-weight:500;}
    .active-shipment-banner{background:var(--navy);border-radius:var(--radius-lg);padding:18px 22px;display:flex;align-items:center;gap:16px;margin-bottom:24px;cursor:pointer;transition:opacity 0.15s;flex-wrap:wrap;}
    .active-shipment-banner:hover{opacity:0.92;}
    .asb-icon{font-size:28px;}
    .asb-info{flex:1;}
    .asb-label{font-size:11px;color:rgba(255,255,255,0.4);font-weight:700;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:3px;}
    .asb-title{font-family:var(--font-display);font-weight:700;font-size:20px;color:white;margin-bottom:2px;}
    .asb-meta{font-size:12px;color:rgba(255,255,255,0.45);}
    .asb-status-pill{background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.15);border-radius:20px;padding:5px 12px;font-size:12px;font-weight:700;color:white;display:flex;align-items:center;gap:5px;white-space:nowrap;}
    .asb-cta{display:flex;align-items:center;gap:6px;background:var(--red);color:white;border:none;border-radius:var(--radius-md);padding:9px 16px;font-family:var(--font-display);font-weight:700;font-size:14px;cursor:pointer;transition:background 0.15s;white-space:nowrap;}
    .asb-cta:hover{background:var(--red-dark);}
    .s14-layout{display:grid;grid-template-columns:1fr 300px;gap:20px;align-items:start;}
    .s14-side{position:sticky;top:72px;}
    .history-card{background:white;border:1px solid var(--gray-200);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm);margin-bottom:20px;}
    .history-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--gray-100);}
    .history-title{font-family:var(--font-display);font-weight:700;font-size:16px;color:var(--navy);}
    .history-filter-row{display:flex;gap:6px;}
    .history-filter-btn{background:var(--gray-50);border:1px solid var(--gray-200);border-radius:20px;padding:4px 12px;font-size:12px;font-weight:600;color:var(--gray-600);cursor:pointer;font-family:var(--font-body);transition:all 0.15s;}
    .history-filter-btn.active{background:var(--navy);color:white;border-color:var(--navy);}
    .shipment-row{display:grid;grid-template-columns:40px 1fr auto auto auto;align-items:center;gap:14px;padding:14px 20px;border-bottom:1px solid var(--gray-100);cursor:pointer;transition:background 0.12s;}
    .shipment-row:last-child{border-bottom:none;}
    .shipment-row:hover{background:var(--gray-50);}
    .shipment-vehicle-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
    .icon-bg-navy{background:rgba(27,42,74,0.08);}
    .icon-bg-amber{background:rgba(217,119,6,0.1);}
    .icon-bg-green{background:rgba(22,163,74,0.08);}
    .shipment-row-id{font-family:'Courier New',monospace;font-size:11px;color:var(--gray-400);font-weight:600;margin-bottom:2px;}
    .shipment-row-vehicle{font-weight:600;font-size:14px;color:var(--navy);margin-bottom:2px;}
    .shipment-row-route{font-size:12px;color:var(--gray-400);}
    .shipment-row-price{font-family:var(--font-display);font-weight:700;font-size:16px;color:var(--navy);text-align:right;white-space:nowrap;}
    .shipment-status-chip{border-radius:20px;padding:3px 10px;font-size:11px;font-weight:700;white-space:nowrap;}
    .chip-delivered{background:#DCFCE7;color:#166534;}
    .chip-intransit{background:#DBEAFE;color:#1E40AF;}
    .btn-rebook{display:flex;align-items:center;gap:5px;background:white;border:1.5px solid var(--gray-200);border-radius:var(--radius-md);padding:5px 12px;font-size:12px;font-weight:600;color:var(--navy);cursor:pointer;font-family:var(--font-body);transition:all 0.15s;white-space:nowrap;}
    .btn-rebook:hover{border-color:var(--navy);background:rgba(27,42,74,0.03);}
    .s14-side-card{background:white;border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:18px 20px;margin-bottom:16px;box-shadow:var(--shadow-sm);}
    .s14-side-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--gray-400);margin-bottom:14px;}
    .quick-ship-btn{width:100%;background:var(--red);color:white;border:none;border-radius:var(--radius-md);padding:12px;font-family:var(--font-display);font-weight:700;font-size:16px;cursor:pointer;transition:background 0.15s;display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px;}
    .quick-ship-btn:hover{background:var(--red-dark);}
    .saved-vehicle-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--gray-100);font-size:13px;}
    .saved-vehicle-row:last-child{border-bottom:none;}
    .sv-icon{font-size:18px;}
    .sv-name{font-weight:600;color:var(--navy);flex:1;}
    .sv-sub{font-size:11px;color:var(--gray-400);}
    .sv-ship-btn{font-size:11px;font-weight:700;color:var(--red);background:none;border:none;cursor:pointer;font-family:var(--font-body);padding:3px 0;}
    .sv-ship-btn:hover{text-decoration:underline;}
    .acct-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--gray-100);font-size:13px;}
    .acct-row:last-child{border-bottom:none;}
    .acct-lbl{color:var(--gray-400);font-size:12px;}
    .acct-val{font-weight:600;color:var(--navy);}
    .acct-val.green{color:var(--green);}
    .dash-notif-row{display:flex;align-items:center;justify-content:space-between;padding:7px 0;font-size:13px;color:var(--gray-600);border-bottom:1px solid var(--gray-100);}
    .dash-notif-row:last-child{border-bottom:none;}
    @media(max-width:760px){.s14-layout{grid-template-columns:1fr;}.s14-side{position:static;}.dash-stats{grid-template-columns:repeat(2,1fr);}.shipment-row{grid-template-columns:40px 1fr auto;}.shipment-row>:nth-child(4),.shipment-row>:nth-child(5){display:none;}.aspect-grid{grid-template-columns:1fr;}}
    @media(max-width:640px){.invoice-parties{grid-template-columns:1fr;}.invoice-header{flex-direction:column;}.invoice-actions{flex-direction:column;}}

    .s11-wrap,.s12-wrap,.s13-wrap,.s14-wrap{min-height:calc(100vh - 60px);background:var(--off-white);position:relative;overflow:hidden;}
    .s11-wrap::before,.s12-wrap::before,.s13-wrap::before,.s14-wrap::before{content:'';position:absolute;inset:0;background-image:linear-gradient(var(--gray-200) 1px,transparent 1px),linear-gradient(90deg,var(--gray-200) 1px,transparent 1px);background-size:40px 40px;opacity:0.4;pointer-events:none;}
    .s11-inner,.s12-inner,.s13-inner{position:relative;z-index:1;max-width:780px;margin:0 auto;padding:48px 24px 80px;}
    .s14-inner{position:relative;z-index:1;max-width:980px;margin:0 auto;padding:36px 24px 80px;}

    /* S11 */
    .delivery-hero{background:linear-gradient(135deg,var(--navy) 0%,#243A6A 100%);border-radius:var(--radius-xl);padding:28px 28px 24px;margin-bottom:24px;position:relative;overflow:hidden;}
    .delivery-hero::after{content:'🏁';position:absolute;right:24px;top:50%;transform:translateY(-50%);font-size:72px;opacity:0.12;}
    .delivery-hero-label{font-size:11px;font-weight:700;color:rgba(255,255,255,0.45);text-transform:uppercase;letter-spacing:1px;margin-bottom:6px;}
    .delivery-hero-title{font-family:var(--font-display);font-weight:800;font-size:30px;color:white;margin-bottom:4px;}
    .delivery-hero-sub{font-size:14px;color:rgba(255,255,255,0.5);margin-bottom:16px;}
    .delivery-hero-meta{display:flex;gap:20px;flex-wrap:wrap;}
    .delivery-meta-item{display:flex;flex-direction:column;}
    .delivery-meta-lbl{font-size:10px;color:rgba(255,255,255,0.4);font-weight:600;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:2px;}
    .delivery-meta-val{font-size:14px;font-weight:600;color:white;}
    .photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:8px;}
    .photo-slot{aspect-ratio:4/3;border:2px dashed var(--gray-200);border-radius:var(--radius-md);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s;position:relative;overflow:hidden;background:var(--gray-50);}
    .photo-slot:hover{border-color:var(--navy);background:rgba(27,42,74,0.02);}
    .photo-slot.uploaded{border:2px solid var(--green);background:#F0FDF4;}
    .photo-slot.uploaded::after{content:'✓';position:absolute;top:6px;right:8px;font-size:14px;font-weight:700;color:var(--green);}
    .photo-slot-icon{font-size:24px;margin-bottom:6px;opacity:0.4;}
    .photo-slot.uploaded .photo-slot-icon{opacity:1;font-size:28px;}
    .photo-slot-label{font-size:11px;font-weight:600;color:var(--gray-400);text-align:center;line-height:1.3;}
    .photo-slot.uploaded .photo-slot-label{color:var(--green);}
    .photo-progress-wrap{margin-bottom:20px;}
    .photo-progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:13px;}
    .photo-progress-label{font-weight:600;color:var(--navy);}
    .photo-progress-count{color:var(--gray-400);}
    .photo-progress-count strong{color:var(--green);}
    .photo-progress-bar{height:6px;background:var(--gray-100);border-radius:3px;overflow:hidden;}
    .photo-progress-fill{height:100%;background:var(--green);border-radius:3px;transition:width 0.4s cubic-bezier(0.34,1.2,0.64,1);}
    .vin-match-badge{display:flex;align-items:center;gap:8px;background:#DCFCE7;border:1px solid #BBF7D0;border-radius:var(--radius-md);padding:10px 14px;font-size:13px;color:#166534;font-weight:500;margin-bottom:20px;}
    .vin-match-badge.pending{background:#FEF3C7;border-color:#FDE68A;color:#92400E;}
    .damage-toggle-row{display:flex;align-items:center;gap:14px;padding:14px 16px;background:var(--gray-50);border:1.5px solid var(--gray-200);border-radius:var(--radius-md);margin-bottom:12px;}
    .damage-toggle-label{flex:1;font-size:14px;font-weight:600;color:var(--navy);}
    .damage-note-area{display:none;}
    .damage-note-area.visible{display:block;}
    .damage-alert{background:#FEF2F4;border:1px solid #FECDD3;border-radius:var(--radius-md);padding:10px 14px;font-size:13px;color:#BE123C;margin-bottom:10px;display:flex;align-items:flex-start;gap:8px;}
    .sig-pad-wrap{margin-bottom:20px;}
    .sig-canvas{width:100%;height:160px;border:2px solid var(--gray-200);border-radius:var(--radius-md);background:white;cursor:crosshair;display:block;touch-action:none;}
    .sig-canvas.active{border-color:var(--navy);}
    .sig-canvas.signed{border-color:var(--green);background:#F0FDF4;}
    .sig-controls{display:flex;align-items:center;gap:10px;margin-top:8px;}
    .sig-hint{font-size:12px;color:var(--gray-400);flex:1;}
    .btn-clear-sig{background:white;border:1.5px solid var(--gray-200);border-radius:var(--radius-md);padding:6px 14px;font-size:12px;font-weight:600;color:var(--gray-600);cursor:pointer;font-family:var(--font-body);transition:all 0.15s;}
    .btn-clear-sig:hover{border-color:var(--red);color:var(--red);}
    .bol-summary{background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius-md);padding:14px 16px;margin-bottom:20px;}
    .bol-summary-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;color:var(--gray-400);margin-bottom:10px;}
    .bol-row{display:flex;justify-content:space-between;font-size:13px;padding:4px 0;}
    .bol-lbl{color:var(--gray-400);}
    .bol-val{font-weight:600;color:var(--navy);}
    .btn-confirm-delivery{width:100%;background:var(--green);color:white;border:none;border-radius:var(--radius-md);padding:16px;font-family:var(--font-display);font-weight:700;font-size:20px;cursor:pointer;transition:background 0.15s,transform 0.1s;display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:12px;}
    .btn-confirm-delivery:hover{background:#15803D;}
    .delivery-fine-print{font-size:12px;color:var(--gray-400);text-align:center;line-height:1.6;}
    .s11-complete{display:none;}
    .delivery-complete-hero{text-align:center;padding:40px 0 32px;}
    .complete-icon-wrap{width:80px;height:80px;border-radius:50%;background:#DCFCE7;display:flex;align-items:center;justify-content:center;font-size:40px;margin:0 auto 20px;animation:popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);}
    .complete-title{font-family:var(--font-display);font-weight:800;font-size:36px;color:var(--navy-dark);margin-bottom:10px;}
    .complete-title em{color:var(--green);font-style:normal;}
    .complete-sub{font-size:15px;color:var(--gray-400);line-height:1.6;margin-bottom:28px;max-width:480px;margin-left:auto;margin-right:auto;}
    .escrow-released-card{background:var(--navy);border-radius:var(--radius-lg);padding:20px 24px;margin-bottom:20px;display:flex;align-items:center;gap:16px;}
    .escrow-released-icon{font-size:28px;flex-shrink:0;}
    .escrow-released-label{font-size:12px;color:rgba(255,255,255,0.45);margin-bottom:3px;}
    .escrow-released-title{font-family:var(--font-display);font-weight:800;font-size:22px;color:white;margin-bottom:2px;}
    .escrow-released-sub{font-size:12px;color:rgba(255,255,255,0.45);}
    .escrow-amount-chip{margin-left:auto;font-family:var(--font-display);font-weight:900;font-size:28px;color:white;}
    .complete-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:28px;}

    /* S12 */
    .invoice-doc{background:white;border:1px solid var(--gray-200);border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-lg);margin-bottom:24px;}
    .invoice-header{background:var(--navy);padding:28px 32px 24px;display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:16px;}
    .invoice-logo{font-family:var(--font-display);font-weight:900;font-size:32px;letter-spacing:-0.5px;line-height:1;}
    .invoice-logo .auto{color:rgba(255,255,255,0.9);}
    .invoice-logo .haul{color:var(--red);}
    .invoice-logo .dot{color:rgba(255,255,255,0.35);font-size:24px;}
    .invoice-tagline{font-size:12px;color:rgba(255,255,255,0.35);margin-top:4px;}
    .invoice-meta{text-align:right;}
    .invoice-num{font-family:'Courier New',monospace;font-size:14px;color:rgba(255,255,255,0.7);font-weight:700;margin-bottom:4px;}
    .invoice-date-lbl{font-size:11px;color:rgba(255,255,255,0.35);}
    .invoice-date-val{font-size:13px;color:rgba(255,255,255,0.6);font-weight:600;}
    .invoice-body{padding:28px 32px;}
    .invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid var(--gray-100);}
    .party-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--gray-400);margin-bottom:8px;}
    .party-name{font-weight:700;font-size:15px;color:var(--navy);margin-bottom:4px;}
    .party-detail{font-size:13px;color:var(--gray-400);line-height:1.5;}
    .invoice-table{width:100%;margin-bottom:24px;}
    .invoice-table-header{display:grid;grid-template-columns:1fr 100px 100px;gap:8px;padding:8px 0;border-bottom:2px solid var(--navy);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;color:var(--navy);margin-bottom:4px;}
    .invoice-table-row{display:grid;grid-template-columns:1fr 100px 100px;gap:8px;padding:10px 0;border-bottom:1px solid var(--gray-100);font-size:14px;color:var(--gray-800);align-items:start;}
    .invoice-table-row:last-child{border-bottom:none;}
    .inv-desc-main{font-weight:600;color:var(--navy);margin-bottom:3px;}
    .inv-desc-sub{font-size:12px;color:var(--gray-400);line-height:1.4;}
    .inv-qty{text-align:right;color:var(--gray-600);}
    .inv-amt{text-align:right;font-weight:600;color:var(--navy);}
    .invoice-totals{padding-top:16px;border-top:2px solid var(--navy);}
    .inv-total-row{display:flex;justify-content:space-between;font-size:14px;padding:5px 0;color:var(--gray-600);}
    .inv-total-row.grand{font-size:20px;font-weight:700;color:var(--navy);border-top:1px solid var(--gray-200);margin-top:8px;padding-top:12px;}
    .inv-total-row.grand .amt{font-family:var(--font-display);font-weight:800;font-size:26px;}
    .inv-payment-badge{display:flex;align-items:center;gap:8px;background:#DCFCE7;border:1px solid #BBF7D0;border-radius:var(--radius-md);padding:10px 14px;font-size:13px;color:#166534;font-weight:500;margin-top:16px;}
    .invoice-footer{background:var(--gray-50);border-top:1px solid var(--gray-100);padding:16px 32px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--gray-400);}
    .invoice-footer-brand{font-family:var(--font-display);font-weight:700;color:var(--navy);font-size:13px;}
    .invoice-actions{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap;}
    .btn-download{display:flex;align-items:center;gap:8px;background:var(--navy);color:white;border:none;border-radius:var(--radius-md);padding:12px 22px;font-family:var(--font-display);font-weight:700;font-size:16px;cursor:pointer;transition:background 0.15s;}
    .btn-download:hover{background:var(--navy-mid);}
    .btn-email-receipt{display:flex;align-items:center;gap:8px;background:white;color:var(--navy);border:1.5px solid var(--gray-200);border-radius:var(--radius-md);padding:12px 22px;font-family:var(--font-display);font-weight:700;font-size:16px;cursor:pointer;transition:all 0.15s;}
    .btn-email-receipt:hover{border-color:var(--navy);}
    .btn-rate-now{display:flex;align-items:center;gap:8px;background:var(--amber);color:white;border:none;border-radius:var(--radius-md);padding:12px 22px;font-family:var(--font-display);font-weight:700;font-size:16px;cursor:pointer;transition:background 0.15s;}
    .btn-rate-now:hover{background:#B45309;}
    .s12-next-card{background:white;border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:20px 24px;margin-bottom:20px;}
    .s12-next-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--gray-400);margin-bottom:14px;}

    /* S13 */
    .rating-recap{background:var(--navy);border-radius:var(--radius-lg);padding:18px 22px;display:flex;align-items:center;gap:14px;margin-bottom:24px;flex-wrap:wrap;}
    .recap-icon{font-size:28px;}
    .recap-info{flex:1;}
    .recap-vehicle{font-family:var(--font-display);font-weight:700;font-size:18px;color:white;margin-bottom:2px;}
    .recap-route{font-size:12px;color:rgba(255,255,255,0.45);}
    .recap-carrier{font-size:13px;color:rgba(255,255,255,0.6);font-weight:500;margin-top:3px;}
    .recap-date{font-size:12px;color:rgba(255,255,255,0.35);text-align:right;}
    .rating-section-title{font-family:var(--font-display);font-weight:700;font-size:16px;color:var(--navy);margin-bottom:4px;}
    .rating-section-sub{font-size:13px;color:var(--gray-400);margin-bottom:16px;}
    .stars{display:flex;gap:6px;margin-bottom:8px;}
    .star{font-size:38px;cursor:pointer;transition:transform 0.15s,filter 0.15s;filter:grayscale(1) opacity(0.3);user-select:none;line-height:1;}
    .star.active{filter:none;transform:scale(1.1);}
    .star:hover{filter:none;transform:scale(1.15);}
    .star-label{font-size:13px;font-weight:600;color:var(--gray-400);min-height:20px;}
    .star-label.active{color:var(--amber);}
    .aspect-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px;}
    .aspect-card{background:var(--gray-50);border:1.5px solid var(--gray-200);border-radius:var(--radius-md);padding:14px;transition:border-color 0.15s;}
    .aspect-card.rated{border-color:var(--amber);}
    .aspect-label{font-size:12px;font-weight:700;color:var(--navy);margin-bottom:8px;display:flex;align-items:center;gap:5px;}
    .aspect-stars{display:flex;gap:3px;}
    .aspect-star{font-size:20px;cursor:pointer;filter:grayscale(1) opacity(0.25);transition:filter 0.1s;user-select:none;}
    .aspect-star.on{filter:none;}
    .nps-wrap{margin-bottom:20px;}
    .nps-scale{display:flex;gap:6px;margin:10px 0 6px;flex-wrap:wrap;}
    .nps-btn{width:44px;height:44px;border:1.5px solid var(--gray-200);border-radius:var(--radius-md);background:white;font-size:14px;font-weight:600;color:var(--gray-600);cursor:pointer;transition:all 0.15s;font-family:var(--font-body);display:flex;align-items:center;justify-content:center;}
    .nps-btn:hover{border-color:var(--navy);color:var(--navy);}
    .nps-btn.selected{background:var(--navy);color:white;border-color:var(--navy);}
    .nps-btn.selected.promoter{background:var(--green);border-color:var(--green);}
    .nps-btn.selected.detractor{background:var(--red);border-color:var(--red);}
    .nps-labels{display:flex;justify-content:space-between;font-size:11px;color:var(--gray-400);}
    .review-textarea{width:100%;height:100px;border:1.5px solid var(--gray-200);border-radius:var(--radius-md);padding:12px 14px;font-family:var(--font-body);font-size:14px;color:var(--gray-800);resize:none;outline:none;line-height:1.6;transition:border-color 0.15s;}
    .review-textarea:focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(27,42,74,0.06);}
    .review-textarea::placeholder{color:var(--gray-300);}
    .char-count{font-size:11px;color:var(--gray-400);text-align:right;margin-top:4px;}
    .carrier-rating-header{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
    .carrier-rating-avatar{width:40px;height:40px;border-radius:10px;background:var(--navy);color:white;font-family:var(--font-display);font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
    .carrier-rating-name{font-weight:700;font-size:14px;color:var(--navy);}
    .carrier-rating-sub{font-size:12px;color:var(--gray-400);}
    .btn-submit-rating{width:100%;background:var(--amber);color:white;border:none;border-radius:var(--radius-md);padding:14px;font-family:var(--font-display);font-weight:700;font-size:18px;cursor:pointer;transition:background 0.15s,transform 0.1s;margin-bottom:12px;display:flex;align-items:center;justify-content:center;gap:8px;}
    .btn-submit-rating:hover{background:#B45309;}
    .rating-thanks{display:none;text-align:center;padding:40px 0;}
    .thanks-icon{font-size:56px;margin-bottom:16px;animation:popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);}
    .thanks-title{font-family:var(--font-display);font-weight:800;font-size:30px;color:var(--navy-dark);margin-bottom:8px;}
    .thanks-sub{font-size:15px;color:var(--gray-400);line-height:1.6;margin-bottom:24px;}

    /* S14 */
    .dash-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px;}
    .dash-stat-card{background:white;border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:18px 20px;box-shadow:var(--shadow-sm);}
    .dash-stat-icon{font-size:22px;margin-bottom:8px;}
    .dash-stat-num{font-family:var(--font-display);font-weight:800;font-size:28px;color:var(--navy);line-height:1;margin-bottom:4px;}
    .dash-stat-num em{color:var(--red);font-style:normal;}
    .dash-stat-lbl{font-size:12px;color:var(--gray-400);font-weight:500;}
    .active-shipment-banner{background:var(--navy);border-radius:var(--radius-lg);padding:18px 22px;display:flex;align-items:center;gap:16px;margin-bottom:24px;cursor:pointer;transition:opacity 0.15s;flex-wrap:wrap;}
    .active-shipment-banner:hover{opacity:0.92;}
    .asb-icon{font-size:28px;}
    .asb-info{flex:1;}
    .asb-label{font-size:11px;color:rgba(255,255,255,0.4);font-weight:700;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:3px;}
    .asb-title{font-family:var(--font-display);font-weight:700;font-size:20px;color:white;margin-bottom:2px;}
    .asb-meta{font-size:12px;color:rgba(255,255,255,0.45);}
    .asb-status-pill{background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.15);border-radius:20px;padding:5px 12px;font-size:12px;font-weight:700;color:white;display:flex;align-items:center;gap:5px;white-space:nowrap;}
    .asb-cta{display:flex;align-items:center;gap:6px;background:var(--red);color:white;border:none;border-radius:var(--radius-md);padding:9px 16px;font-family:var(--font-display);font-weight:700;font-size:14px;cursor:pointer;transition:background 0.15s;white-space:nowrap;}
    .asb-cta:hover{background:var(--red-dark);}
    .s14-layout{display:grid;grid-template-columns:1fr 300px;gap:20px;align-items:start;}
    .s14-side{position:sticky;top:72px;}
    .history-card{background:white;border:1px solid var(--gray-200);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm);margin-bottom:20px;}
    .history-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--gray-100);}
    .history-title{font-family:var(--font-display);font-weight:700;font-size:16px;color:var(--navy);}
    .history-filter-row{display:flex;gap:6px;}
    .history-filter-btn{background:var(--gray-50);border:1px solid var(--gray-200);border-radius:20px;padding:4px 12px;font-size:12px;font-weight:600;color:var(--gray-600);cursor:pointer;font-family:var(--font-body);transition:all 0.15s;}
    .history-filter-btn.active{background:var(--navy);color:white;border-color:var(--navy);}
    .shipment-row{display:grid;grid-template-columns:40px 1fr auto auto auto;align-items:center;gap:14px;padding:14px 20px;border-bottom:1px solid var(--gray-100);cursor:pointer;transition:background 0.12s;}
    .shipment-row:last-child{border-bottom:none;}
    .shipment-row:hover{background:var(--gray-50);}
    .shipment-vehicle-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
    .icon-bg-navy{background:rgba(27,42,74,0.08);}
    .icon-bg-amber{background:rgba(217,119,6,0.1);}
    .icon-bg-green{background:rgba(22,163,74,0.08);}
    .shipment-row-id{font-family:'Courier New',monospace;font-size:11px;color:var(--gray-400);font-weight:600;margin-bottom:2px;}
    .shipment-row-vehicle{font-weight:600;font-size:14px;color:var(--navy);margin-bottom:2px;}
    .shipment-row-route{font-size:12px;color:var(--gray-400);}
    .shipment-row-price{font-family:var(--font-display);font-weight:700;font-size:16px;color:var(--navy);text-align:right;white-space:nowrap;}
    .shipment-status-chip{border-radius:20px;padding:3px 10px;font-size:11px;font-weight:700;white-space:nowrap;}
    .chip-delivered{background:#DCFCE7;color:#166534;}
    .chip-intransit{background:#DBEAFE;color:#1E40AF;}
    .btn-rebook{display:flex;align-items:center;gap:5px;background:white;border:1.5px solid var(--gray-200);border-radius:var(--radius-md);padding:5px 12px;font-size:12px;font-weight:600;color:var(--navy);cursor:pointer;font-family:var(--font-body);transition:all 0.15s;white-space:nowrap;}
    .btn-rebook:hover{border-color:var(--navy);background:rgba(27,42,74,0.03);}
    .s14-side-card{background:white;border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:18px 20px;margin-bottom:16px;box-shadow:var(--shadow-sm);}
    .s14-side-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--gray-400);margin-bottom:14px;}
    .quick-ship-btn{width:100%;background:var(--red);color:white;border:none;border-radius:var(--radius-md);padding:12px;font-family:var(--font-display);font-weight:700;font-size:16px;cursor:pointer;transition:background 0.15s;display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px;}
    .quick-ship-btn:hover{background:var(--red-dark);}
    .saved-vehicle-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--gray-100);font-size:13px;}
    .saved-vehicle-row:last-child{border-bottom:none;}
    .sv-icon{font-size:18px;}
    .sv-name{font-weight:600;color:var(--navy);flex:1;}
    .sv-sub{font-size:11px;color:var(--gray-400);}
    .sv-ship-btn{font-size:11px;font-weight:700;color:var(--red);background:none;border:none;cursor:pointer;font-family:var(--font-body);padding:3px 0;}
    .sv-ship-btn:hover{text-decoration:underline;}
    .acct-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--gray-100);font-size:13px;}
    .acct-row:last-child{border-bottom:none;}
    .acct-lbl{color:var(--gray-400);font-size:12px;}
    .acct-val{font-weight:600;color:var(--navy);}
    .acct-val.green{color:var(--green);}
    .dash-notif-row{display:flex;align-items:center;justify-content:space-between;padding:7px 0;font-size:13px;color:var(--gray-600);border-bottom:1px solid var(--gray-100);}
    .dash-notif-row:last-child{border-bottom:none;}
    @media(max-width:760px){.s14-layout{grid-template-columns:1fr;}.s14-side{position:static;}.dash-stats{grid-template-columns:repeat(2,1fr);}.shipment-row{grid-template-columns:40px 1fr auto;}.shipment-row>:nth-child(4),.shipment-row>:nth-child(5){display:none;}.aspect-grid{grid-template-columns:1fr;}}
    @media(max-width:640px){.invoice-parties{grid-template-columns:1fr;}.invoice-header{flex-direction:column;}.invoice-actions{flex-direction:column;}}

    /* ══════════════════════════════════════════════════════════════════ */
    /* S15 — REBOOK                                                      */
    /* S16 — NOTIFICATION CENTER                                         */
    /* ══════════════════════════════════════════════════════════════════ */

    .s15-wrap, .s16-wrap {
      min-height: calc(100vh - 60px);
      background: var(--off-white);
      position: relative; overflow: hidden;
    }
    .s15-wrap::before, .s16-wrap::before {
      content: '';
      position: absolute; inset: 0;
      background-image: linear-gradient(var(--gray-200) 1px, transparent 1px), linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
      background-size: 40px 40px; opacity: 0.4; pointer-events: none;
    }
    .s15-inner, .s16-inner {
      position: relative; z-index: 1;
      max-width: 860px; margin: 0 auto; padding: 48px 24px 80px;
    }

    /* ── S15 REBOOK ── */
    .rebook-hero {
      background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
      border-radius: var(--radius-xl);
      padding: 28px 32px;
      margin-bottom: 28px;
      display: flex; align-items: center; gap: 20px;
      position: relative; overflow: hidden;
    }
    .rebook-hero::after {
      content: '🔄';
      position: absolute; right: 24px; top: 50%;
      transform: translateY(-50%);
      font-size: 80px; opacity: 0.08;
    }
    .rebook-hero-icon { font-size: 40px; }
    .rebook-hero-text {}
    .rebook-hero-label { font-size: 11px; color: rgba(255,255,255,0.4); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
    .rebook-hero-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: white; margin-bottom: 4px; }
    .rebook-hero-sub { font-size: 14px; color: rgba(255,255,255,0.5); }

    /* Layout */
    .s15-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

    /* Saved vehicle cards */
    .saved-vehicle-card {
      background: white;
      border: 2px solid var(--gray-200);
      border-radius: var(--radius-xl);
      overflow: hidden;
      transition: all 0.2s;
      cursor: pointer;
    }
    .saved-vehicle-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-1px); }
    .saved-vehicle-card.selected { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(27,42,74,0.1), var(--shadow-md); }

    .svc-header {
      background: var(--navy);
      padding: 16px 18px;
      display: flex; align-items: center; gap: 12px;
    }
    .svc-icon { font-size: 28px; }
    .svc-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: white; margin-bottom: 2px; }
    .svc-label { font-size: 11px; color: rgba(255,255,255,0.4); font-style: italic; }

    .svc-body { padding: 16px 18px; }
    .svc-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--gray-100); }
    .svc-row:last-child { border-bottom: none; }
    .svc-lbl { color: var(--gray-400); font-size: 12px; }
    .svc-val { font-weight: 600; color: var(--navy); font-family: 'Courier New', monospace; font-size: 12px; }
    .svc-val.normal { font-family: var(--font-body); font-size: 13px; }

    .svc-footer { padding: 12px 18px; background: var(--gray-50); border-top: 1px solid var(--gray-100); display: flex; gap: 8px; }
    .btn-select-vehicle {
      flex: 1;
      background: var(--navy); color: white; border: none;
      border-radius: var(--radius-md); padding: 9px;
      font-family: var(--font-display); font-weight: 700; font-size: 14px;
      cursor: pointer; transition: background 0.15s;
    }
    .btn-select-vehicle:hover { background: var(--navy-mid); }
    .btn-select-vehicle.selected-state { background: var(--green); }
    .btn-remove-vehicle {
      background: white; color: var(--red); border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-md); padding: 9px 12px;
      font-size: 13px; cursor: pointer; transition: all 0.15s;
    }
    .btn-remove-vehicle:hover { border-color: var(--red); }

    /* Last shipment badge */
    .last-ship-badge {
      display: inline-flex; align-items: center; gap: 4px;
      background: #DCFCE7; border: 1px solid #BBF7D0;
      border-radius: 20px; padding: 2px 8px;
      font-size: 10px; font-weight: 700; color: #166534;
      margin-top: 4px;
    }

    /* Add vehicle button */
    .add-vehicle-card {
      background: var(--gray-50);
      border: 2px dashed var(--gray-200);
      border-radius: var(--radius-xl);
      padding: 40px 24px;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      cursor: pointer; transition: all 0.15s; text-align: center;
    }
    .add-vehicle-card:hover { border-color: var(--navy); background: rgba(27,42,74,0.02); }
    .add-vehicle-card-icon { font-size: 32px; margin-bottom: 10px; opacity: 0.4; }
    .add-vehicle-card-label { font-weight: 600; color: var(--navy); font-size: 14px; margin-bottom: 4px; }
    .add-vehicle-card-sub { font-size: 12px; color: var(--gray-400); }

    /* Address library */
    .addr-lib-card {
      background: white; border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg); overflow: hidden;
      box-shadow: var(--shadow-sm); margin-bottom: 20px;
    }
    .addr-lib-header {
      padding: 14px 20px; border-bottom: 1px solid var(--gray-100);
      display: flex; align-items: center; justify-content: space-between;
    }
    .addr-lib-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--navy); }
    .btn-add-addr {
      display: flex; align-items: center; gap: 5px;
      background: var(--navy); color: white; border: none;
      border-radius: var(--radius-md); padding: 6px 14px;
      font-family: var(--font-body); font-size: 12px; font-weight: 600;
      cursor: pointer; transition: background 0.15s;
    }
    .btn-add-addr:hover { background: var(--navy-mid); }

    .addr-entry {
      display: grid; grid-template-columns: 28px 1fr auto auto;
      align-items: center; gap: 12px;
      padding: 12px 20px; border-bottom: 1px solid var(--gray-100);
      font-size: 13px;
    }
    .addr-entry:last-child { border-bottom: none; }
    .addr-entry-icon { font-size: 18px; }
    .addr-entry-name { font-weight: 600; color: var(--navy); margin-bottom: 2px; font-size: 14px; }
    .addr-entry-detail { font-size: 12px; color: var(--gray-400); }
    .addr-type-badge {
      font-size: 10px; font-weight: 700; padding: 2px 7px;
      border-radius: 10px; white-space: nowrap;
    }
    .badge-pickup { background: #EBF4FF; color: #1E40AF; }
    .badge-delivery { background: #F0FDF4; color: #166534; }
    .badge-both { background: #FEF3C7; color: #92400E; }
    .btn-use-addr {
      font-size: 11px; font-weight: 700; color: var(--red);
      background: none; border: none; cursor: pointer;
      font-family: var(--font-body); white-space: nowrap;
    }
    .btn-use-addr:hover { text-decoration: underline; }

    /* Rebook confirmation CTA */
    .rebook-cta-card {
      background: white; border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg); padding: 24px;
      margin-bottom: 20px; box-shadow: var(--shadow-sm);
    }
    .rebook-cta-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy); margin-bottom: 6px; }
    .rebook-cta-sub { font-size: 13px; color: var(--gray-400); margin-bottom: 20px; }
    .rebook-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
    .rebook-summary-item {}
    .rebook-summary-lbl { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 3px; }
    .rebook-summary-val { font-size: 14px; font-weight: 600; color: var(--navy); }
    .btn-start-rebook {
      width: 100%; background: var(--red); color: white; border: none;
      border-radius: var(--radius-md); padding: 14px;
      font-family: var(--font-display); font-weight: 700; font-size: 18px;
      cursor: pointer; transition: background 0.15s;
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .btn-start-rebook:hover { background: var(--red-dark); }

    /* ── S16 NOTIFICATION CENTER ── */
    .s16-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
    .s16-side { position: sticky; top: 72px; }

    /* Master toggle card */
    .notif-master-card {
      background: var(--navy); border-radius: var(--radius-lg);
      padding: 20px 24px; margin-bottom: 20px;
      display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    }
    .notif-master-icon { font-size: 28px; }
    .notif-master-info { flex: 1; }
    .notif-master-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: white; margin-bottom: 2px; }
    .notif-master-sub { font-size: 13px; color: rgba(255,255,255,0.45); }
    .notif-master-toggles { display: flex; gap: 16px; }
    .notif-channel-toggle { display: flex; flex-direction: column; align-items: center; gap: 6px; }
    .notif-channel-lbl { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

    /* Phone verified badge */
    .phone-verified-badge {
      display: inline-flex; align-items: center; gap: 5px;
      background: #DCFCE7; border: 1px solid #BBF7D0;
      border-radius: 20px; padding: 3px 10px;
      font-size: 11px; font-weight: 700; color: #166534;
      margin-top: 4px;
    }

    /* Notification category card */
    .notif-category {
      background: white; border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg); overflow: hidden;
      box-shadow: var(--shadow-sm); margin-bottom: 16px;
    }
    .notif-category-header {
      padding: 14px 20px; border-bottom: 1px solid var(--gray-100);
      display: flex; align-items: center; gap: 10px;
    }
    .notif-category-icon { font-size: 18px; }
    .notif-category-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--navy); flex: 1; }
    .notif-category-badge {
      font-size: 10px; font-weight: 700; padding: 2px 8px;
      border-radius: 10px; background: var(--navy); color: white; letter-spacing: 0.3px;
    }
    .notif-category-badge.amber { background: var(--amber); }
    .notif-category-badge.green { background: var(--green); }

    /* Notification item row */
    .notif-item {
      display: grid; grid-template-columns: 1fr auto auto;
      align-items: center; gap: 16px;
      padding: 14px 20px; border-bottom: 1px solid var(--gray-100);
    }
    .notif-item:last-child { border-bottom: none; }
    .notif-item-info {}
    .notif-item-title { font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 2px; }
    .notif-item-sub { font-size: 12px; color: var(--gray-400); line-height: 1.5; }
    .notif-path-tag {
      font-size: 10px; font-weight: 700; padding: 2px 7px;
      border-radius: 10px; white-space: nowrap; flex-shrink: 0;
    }
    .tag-both { background: #EBF0FA; color: var(--navy); }
    .tag-a    { background: #FEF3C7; color: #92400E; }
    .tag-b    { background: #FEF2F4; color: #BE123C; }

    /* Channel toggles per item */
    .notif-toggles { display: flex; gap: 10px; align-items: center; }
    .notif-toggle-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }
    .notif-toggle-lbl { font-size: 9px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; }

    /* Quiet hours */
    .quiet-hours-card {
      background: white; border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg); padding: 18px 20px;
      box-shadow: var(--shadow-sm); margin-bottom: 16px;
    }
    .quiet-hours-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
    .quiet-hours-title { font-weight: 700; color: var(--navy); font-size: 14px; flex: 1; }
    .time-range-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 10px; }
    .time-separator { font-size: 13px; color: var(--gray-400); text-align: center; font-weight: 600; }

    /* Notification history (right sidebar) */
    .notif-history-card {
      background: white; border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg); overflow: hidden;
      box-shadow: var(--shadow-sm); margin-bottom: 16px;
    }
    .notif-history-header { padding: 14px 18px; border-bottom: 1px solid var(--gray-100); }
    .notif-history-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--navy); }
    .notif-history-item {
      display: flex; gap: 10px; padding: 12px 18px;
      border-bottom: 1px solid var(--gray-100); font-size: 12px;
    }
    .notif-history-item:last-child { border-bottom: none; }
    .notif-history-dot {
      width: 8px; height: 8px; border-radius: 50%;
      flex-shrink: 0; margin-top: 4px;
    }
    .dot-email { background: var(--navy); }
    .dot-sms   { background: var(--green); }
    .notif-history-text { color: var(--gray-600); line-height: 1.5; flex: 1; }
    .notif-history-time { color: var(--gray-400); white-space: nowrap; flex-shrink: 0; font-size: 11px; }

    @media (max-width: 760px) {
      .s15-layout { grid-template-columns: 1fr; }
      .s16-layout { grid-template-columns: 1fr; }
      .s16-side { position: static; }
      .notif-master-card { flex-direction: column; align-items: flex-start; }
      .rebook-summary-grid { grid-template-columns: 1fr; }
    }

    /* ══════════════════════════════════════════════════════════════════ */
    /* S17 — CARRIER COMPANY REGISTRATION                                */
    /* S18 — DRIVER REGISTRATION                                         */
    /* ══════════════════════════════════════════════════════════════════ */

    /* Carrier portal uses a slightly different brand treatment —
       same navy/red but with a darker, more utilitarian feel */
    :root {
      --carrier-dark: #0D1A2E;
      --carrier-mid:  #14253D;
      --carrier-stripe: #C41230;
    }

    .s17-wrap, .s18-wrap {
      min-height: calc(100vh - 60px);
      background: #F0F3F8;
      position: relative; overflow: hidden;
    }
    .s17-wrap::before, .s18-wrap::before {
      content: '';
      position: absolute; inset: 0;
      background-image: linear-gradient(rgba(27,42,74,0.07) 1px, transparent 1px),
                        linear-gradient(90deg, rgba(27,42,74,0.07) 1px, transparent 1px);
      background-size: 40px 40px; opacity: 0.6; pointer-events: none;
    }
    .s17-inner, .s18-inner {
      position: relative; z-index: 1;
      max-width: 720px; margin: 0 auto; padding: 40px 24px 80px;
    }

    /* Carrier portal badge */
    .carrier-portal-badge {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--carrier-dark); color: rgba(255,255,255,0.6);
      border-radius: 8px; padding: 6px 14px;
      font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
      margin-bottom: 20px;
    }
    .carrier-portal-badge span { color: var(--carrier-stripe); }

    /* Registration hero */
    .carrier-reg-hero {
      background: linear-gradient(135deg, var(--carrier-dark) 0%, #1B2A4A 100%);
      border-radius: var(--radius-xl);
      padding: 32px;
      margin-bottom: 28px;
      position: relative; overflow: hidden;
    }
    .carrier-reg-hero::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0; height: 3px;
      background: var(--carrier-stripe);
    }
    .carrier-reg-hero::after {
      content: '🚛';
      position: absolute; right: 28px; top: 50%;
      transform: translateY(-50%);
      font-size: 80px; opacity: 0.08;
    }
    .crh-step-label {
      font-size: 11px; color: rgba(255,255,255,0.35);
      font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
      margin-bottom: 8px;
    }
    .crh-title {
      font-family: var(--font-display); font-weight: 800; font-size: 28px;
      color: white; margin-bottom: 6px; letter-spacing: -0.3px;
    }
    .crh-sub { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.6; }

    /* Approval badge */
    .manual-approval-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(196,18,48,0.15); border: 1px solid rgba(196,18,48,0.3);
      border-radius: 20px; padding: 4px 12px;
      font-size: 11px; font-weight: 700; color: #FC8181;
      text-transform: uppercase; letter-spacing: 0.5px;
      margin-top: 12px;
    }

    /* Step indicator */
    .reg-steps {
      display: flex; gap: 0; margin-bottom: 28px;
      background: white; border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg); overflow: hidden;
      box-shadow: var(--shadow-sm);
    }
    .reg-step {
      flex: 1; padding: 12px 8px; text-align: center;
      border-right: 1px solid var(--gray-200); cursor: pointer;
      transition: background 0.15s; position: relative;
    }
    .reg-step:last-child { border-right: none; }
    .reg-step.active { background: var(--navy); }
    .reg-step.done { background: #DCFCE7; }
    .reg-step-num {
      width: 24px; height: 24px; border-radius: 50%;
      background: var(--gray-200); color: var(--gray-600);
      font-family: var(--font-display); font-weight: 700; font-size: 12px;
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 5px;
    }
    .reg-step.active .reg-step-num { background: white; color: var(--navy); }
    .reg-step.done .reg-step-num { background: var(--green); color: white; }
    .reg-step-label {
      font-size: 11px; font-weight: 600; color: var(--gray-400);
      text-transform: uppercase; letter-spacing: 0.4px; line-height: 1.2;
    }
    .reg-step.active .reg-step-label { color: rgba(255,255,255,0.8); }
    .reg-step.done .reg-step-label { color: var(--green); }

    /* Document upload zone */
    .doc-upload-zone {
      border: 2px dashed var(--gray-200); border-radius: var(--radius-md);
      padding: 20px; text-align: center; cursor: pointer;
      transition: all 0.2s; background: var(--gray-50);
      position: relative;
    }
    .doc-upload-zone:hover { border-color: var(--navy); background: rgba(27,42,74,0.02); }
    .doc-upload-zone.uploaded { border-color: var(--green); background: #F0FDF4; border-style: solid; }
    .doc-upload-zone.uploaded::after {
      content: '✓ Uploaded';
      position: absolute; top: 8px; right: 10px;
      font-size: 10px; font-weight: 700; color: var(--green);
      background: #DCFCE7; padding: 2px 7px; border-radius: 10px;
    }
    .doc-upload-icon { font-size: 24px; margin-bottom: 6px; }
    .doc-upload-title { font-weight: 600; color: var(--navy); font-size: 14px; margin-bottom: 4px; }
    .doc-upload-sub { font-size: 12px; color: var(--gray-400); line-height: 1.5; }
    .doc-format-tags { display: flex; gap: 5px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
    .doc-format-tag {
      font-size: 10px; font-weight: 700; background: var(--gray-100);
      border: 1px solid var(--gray-200); border-radius: 4px; padding: 1px 6px;
      color: var(--gray-600);
    }

    /* Insurance fields grid */
    .insurance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

    /* MC/DOT validation */
    .mc-input-wrap { position: relative; }
    .mc-verify-btn {
      position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
      background: var(--navy); color: white; border: none; border-radius: 6px;
      padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
      font-family: var(--font-body); transition: background 0.15s; white-space: nowrap;
    }
    .mc-verify-btn:hover { background: var(--navy-mid); }
    .mc-verified-badge {
      display: flex; align-items: center; gap: 6px;
      font-size: 12px; color: var(--green); font-weight: 600;
      margin-top: 5px;
    }

    /* Agreement section */
    .agreement-card {
      background: var(--gray-50); border: 1px solid var(--gray-200);
      border-radius: var(--radius-md); padding: 16px; margin-bottom: 16px;
      max-height: 160px; overflow-y: auto; font-size: 12px;
      color: var(--gray-600); line-height: 1.7;
    }
    .agreement-card h4 { color: var(--navy); margin-bottom: 6px; font-size: 13px; }

    /* Submit CTA carrier style */
    .btn-carrier-submit {
      width: 100%; background: var(--navy); color: white; border: none;
      border-radius: var(--radius-md); padding: 15px;
      font-family: var(--font-display); font-weight: 700; font-size: 18px;
      cursor: pointer; transition: background 0.15s, transform 0.1s;
      display: flex; align-items: center; justify-content: center; gap: 10px;
      margin-bottom: 12px;
    }
    .btn-carrier-submit:hover { background: var(--navy-mid); }
    .btn-carrier-submit:active { transform: scale(0.98); }

    /* Pending approval state */
    .pending-approval { display: none; text-align: center; padding: 40px 0; }
    .pending-icon {
      width: 80px; height: 80px; border-radius: 50%; background: #DBEAFE;
      display: flex; align-items: center; justify-content: center; font-size: 36px;
      margin: 0 auto 20px; animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
    }
    .pending-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--navy-dark); margin-bottom: 8px; }
    .pending-sub { font-size: 15px; color: var(--gray-400); line-height: 1.6; margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }

    /* Review checklist */
    .review-checklist {
      background: white; border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 20px; text-align: left;
    }
    .review-checklist-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-400); margin-bottom: 12px; }
    .review-check-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; color: var(--gray-600); }
    .review-check-item:last-child { border-bottom: none; }
    .review-check-dot { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
    .rcd-pending { background: #FEF3C7; color: var(--amber); }
    .rcd-done    { background: #DCFCE7; color: var(--green); }

    /* S18 Driver specific */
    .driver-carrier-strip {
      background: var(--navy); border-radius: var(--radius-lg);
      padding: 14px 20px; display: flex; align-items: center; gap: 12px;
      margin-bottom: 20px;
    }
    .dcs-icon { font-size: 22px; }
    .dcs-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: white; }
    .dcs-meta { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }
    .dcs-verified { margin-left: auto; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.7); }

    /* CDL class selector */
    .cdl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cdl-card {
      border: 2px solid var(--gray-200); border-radius: var(--radius-md);
      padding: 12px; text-align: center; cursor: pointer; transition: all 0.15s;
      background: white;
    }
    .cdl-card:hover { border-color: var(--navy); }
    .cdl-card.selected { border-color: var(--navy); background: rgba(27,42,74,0.04); }
    .cdl-letter { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--navy); line-height: 1; margin-bottom: 4px; }
    .cdl-desc { font-size: 11px; color: var(--gray-400); line-height: 1.4; }

    /* HazMat / endorsement toggles */
    .endorsement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .endorsement-card {
      border: 1.5px solid var(--gray-200); border-radius: var(--radius-md);
      padding: 12px 14px; display: flex; align-items: center; gap: 10px;
      font-size: 13px; background: white; transition: border-color 0.15s;
    }
    .endorsement-card.active { border-color: var(--navy); background: rgba(27,42,74,0.02); }
    .endorsement-icon { font-size: 18px; flex-shrink: 0; }
    .endorsement-name { font-weight: 600; color: var(--navy); font-size: 13px; }
    .endorsement-sub { font-size: 11px; color: var(--gray-400); }
    .endorsement-card input[type="checkbox"] { accent-color: var(--navy); width: 16px; height: 16px; margin-left: auto; flex-shrink: 0; }

    @media (max-width: 640px) {
      .insurance-grid { grid-template-columns: 1fr; }
      .cdl-grid { grid-template-columns: 1fr 1fr; }
      .endorsement-grid { grid-template-columns: 1fr; }
      .reg-steps { flex-wrap: wrap; }
    }

  


/* Utility classes for phone/password fields */
.phone-input { flex: 1; }
.pwd-input { padding-right: 44px; }

/* ─── Truck Loader Animation ──────────────────────────────────────────────── */

.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: loaderFadeIn 0.3s ease;
}

@keyframes loaderFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loader-content {
  text-align: center;
  max-width: 460px;
  width: 100%;
  padding: 0 24px;
}

.loader-road-container {
  position: relative;
  height: 120px;
  margin-bottom: 32px;
  overflow: hidden;
}

.loader-road {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  height: 40px;
  background: #374151;
  border-radius: 4px;
  overflow: hidden;
}

.loader-road-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 200%;
  height: 3px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    90deg,
    #FCD34D 0px,
    #FCD34D 24px,
    transparent 24px,
    transparent 40px
  );
  animation: roadScroll 1s linear infinite;
}

@keyframes roadScroll {
  0% { transform: translateY(-50%) translateX(0); }
  100% { transform: translateY(-50%) translateX(-40px); }
}

.loader-truck {
  position: absolute;
  bottom: 32px;
  font-size: 48px;
  line-height: 1;
  animation: truckDrive 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

@keyframes truckDrive {
  0% { left: -60px; transform: scaleX(-1); }
  50% { left: calc(50% - 24px); transform: scaleX(-1) translateY(-4px); }
  100% { left: calc(100% + 60px); transform: scaleX(-1); }
}

.loader-text {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy, #0F1B2D);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.loader-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red, #C8102E);
  animation: dotPulse 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}
