/* =============================================================
   ADHRON — app.css  (Sprint 1 — Text Clarity Update)
   Primary: #1a2235  Accent: #5b8dee
   Text clarity raised throughout for outdoor/mobile readability
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css');

/* =========================
   RESET
========================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f0f2f5;
    color: #1a2235;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   CONTAINER
========================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* =========================
   HEADER
========================= */

.app-header {
    background: #1a2235;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #253045;
}

.app-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 32px;
    max-width: 1200px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.top-nav a {
    color: #a8b8d0;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 11px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.top-nav a:hover {
    color: #fff;
    background: #253045;
}

.top-nav a.active {
    color: #fff;
    background: #253045;
}

/* =========================
   HAMBURGER
========================= */

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    gap: 0;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #a8b8d0;
    margin: 4px 0;
    border-radius: 2px;
    transition: background 0.15s;
}

.nav-hamburger:hover span {
    background: #ffffff;
}

/* =========================
   MAIN / FOOTER
========================= */

main.container {
    padding-top: 24px;
    padding-bottom: 48px;
}

.app-footer {
    padding: 20px 28px;
    text-align: center;
    font-size: 13px;
    color: #6b7a94;
    border-top: 1px solid #e5e9f0;
    margin-top: 40px;
}

/* =========================
   GENERIC CARD
========================= */

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 0.5px solid #dde1e9;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a2235;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    background: #1a2235;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    font-family: inherit;
    line-height: 1;
}

.btn:hover {
    background: #253045;
}

.btn-outline {
    background: transparent;
    border: 0.5px solid #dde1e9;
    color: #1a2235;
}

.btn-outline:hover {
    background: #f5f7fa;
}

.btn-accent {
    background: #5b8dee;
    color: #fff;
}

.btn-accent:hover {
    background: #4a7de0;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a2235;
    color: #fff;
    padding: 8px 16px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    line-height: 1;
}

.primary-btn:hover {
    background: #253045;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #5b8dee;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.cta-btn:hover {
    text-decoration: underline;
}

/* =========================
   GLOBAL FORM ELEMENTS
========================= */

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #3d4a5c;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dde1e9;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1a2235;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    margin-bottom: 16px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #5b8dee;
    box-shadow: 0 0 0 3px rgba(91,141,238,0.1);
}

input::placeholder,
textarea::placeholder {
    color: #9aa5b8;
}

/* =========================
   LOGIN PAGE
========================= */

.login-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: stretch;
    background: #f0f2f5;
}

.login-split {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 64px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin: 0 auto;
    max-width: 1000px;
    border-radius: 20px;
    overflow: hidden;
    align-self: center;
}

.login-left {
    flex: 0 0 58%;
    background: #1a2235;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 56px 52px 52px;
    overflow: hidden;
}

.login-left-inner {
    position: relative;
    z-index: 2;
}

.login-brand {
    margin-bottom: 48px;
}

.login-logo {
    height: 72px;
    width: auto;
    display: block;
}

.login-brand-text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.login-headline {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.login-subline {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.login-texture {
    display: none;
}

.login-texture::after {
    display: none;
}

.login-right {
    flex: 0 0 42%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
}

.login-form-header {
    margin-bottom: 32px;
}

.login-form-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a2235;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.login-form-sub {
    font-size: 15px;
    color: #4a5568;
    font-weight: 400;
}

.login-right label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1a2235;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.phone-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: 1.5px solid #c8d2e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-row:focus-within {
    border-color: #5b8dee;
    box-shadow: 0 0 0 3px rgba(91,141,238,0.12);
}

.country-code {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f5f7fb;
    border-right: 1.5px solid #c8d2e8;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #1a2235;
    white-space: nowrap;
    flex-shrink: 0;
    height: 50px;
    width: auto;
    margin: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
    border-radius: 0;
    outline: none;
}

.phone-row input.phone-input {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    font-size: 16px;
    font-family: inherit;
    color: #1a2235;
    background: #fff;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    margin: 0;
    transition: none;
}

.phone-row input.phone-input::placeholder {
    color: #b8c4d8;
    font-size: 14px;
}

.login-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    background: #1a2235;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin: 0;
}

.login-send-btn:hover {
    background: #253045;
}

.login-send-btn:active {
    transform: scale(0.99);
}

.login-send-btn i {
    font-size: 17px;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8ecf4;
}

.login-divider span {
    position: relative;
    background: #fff;
    padding: 0 12px;
    font-size: 10px;
    font-weight: 700;
    color: #6b7a94;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-otp-hint {
    background: #f5f7ff;
    border: 1px solid #dde6f8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.login-otp-hint p {
    font-size: 14px;
    color: #3d4a5c;
    line-height: 1.6;
}

.login-form-footer {
    font-size: 13px;
    color: #3d4a5c;
    text-align: center;
    margin-top: 4px;
    font-weight: 500;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.otp-timer {
    font-size: 13px;
    font-weight: 500;
    color: #ef4444;
    margin-bottom: 8px;
    min-height: 18px;
}

@media (max-width: 768px) {
    .login-split {
        flex-direction: column;
        margin: 0;
        border-radius: 0;
        min-height: calc(100vh - 64px);
    }
    .login-left {
        flex: 0 0 auto;
        padding: 40px 28px 36px;
    }
    .login-headline {
        font-size: 24px;
    }
    .login-brand {
        margin-bottom: 32px;
    }
    .login-right {
        flex: 1;
        padding: 36px 28px;
    }
}

/* =========================
   DASHBOARD
========================= */

.dashboard-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.dashboard-welcome {
    margin-bottom: 24px;
}

.dashboard-welcome h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a2235;
    margin-bottom: 6px;
}

.dashboard-welcome p {
    font-size: 15px;
    color: #4a5568;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .dashboard-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 500px) {
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
    background: #fff;
    border: 0.5px solid #dde1e9;
    border-radius: 12px;
    padding: 16px 14px;
}

.stat-card-val {
    font-size: 32px;
    font-weight: 700;
    color: #1a2235;
    margin-bottom: 6px;
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-card-lbl {
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .quick-actions { grid-template-columns: 1fr; }
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 0.5px solid #dde1e9;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1a2235;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.quick-action-btn:hover {
    background: #f5f7fa;
    border-color: #c5cdd8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.quick-action-btn i {
    font-size: 22px;
    color: #5b8dee;
}

.quick-action-btn.quick-action-primary {
    background: #1a2235;
    color: #fff;
    border-color: #1a2235;
}

.quick-action-btn.quick-action-primary i {
    color: #fff;
}

.quick-action-btn.quick-action-primary:hover {
    background: #253045;
    border-color: #253045;
    box-shadow: 0 4px 12px rgba(26,34,53,0.3);
}

.load-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f0f5ff;
    border: 0.5px solid #c5d5f8;
    border-left: 4px solid #5b8dee;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #1a2235;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.15s;
    text-decoration: none;
}

.load-summary:hover {
    background: #e0eaff;
}

.load-summary .right {
    font-size: 13px;
    color: #5b8dee;
    font-weight: 600;
}

/* =========================
   MY LOADS PAGE
========================= */

.my-loads-page { }

.ml-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ml-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a2235;
    margin-bottom: 4px;
}

.ml-page-sub {
    font-size: 15px;
    color: #4a5568;
}

.ml-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 700px) {
    .ml-stats { grid-template-columns: repeat(2, 1fr); }
}

.ml-stat-card {
    border-radius: 12px;
    padding: 16px 18px;
    border: 1.5px solid #dde1e9;
    text-decoration: none;
    display: block;
    transition: box-shadow 0.15s, transform 0.1s;
}

.ml-stat-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.ml-stat-label {
    font-size: 12px;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ml-stat-label i {
    font-size: 13px;
}

.ml-stat-val {
    font-size: 32px;
    font-weight: 800;
    color: #1a2235;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.ml-stat-sub {
    font-size: 12px;
    color: #6b7a94;
}

.ml-group {
    margin-bottom: 28px;
}

.ml-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #e8ecf4;
}

.ml-group-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2235;
    flex: 1;
}

.ml-group-count {
    font-size: 12px;
    font-weight: 700;
    background: #f0f2f5;
    color: #6b7a94;
    padding: 2px 10px;
    border-radius: 20px;
}

.ml-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 900px) {
    .ml-card-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================
   LOAD CARD
========================= */

.load-card {
    background: #fff;
    border: 0.5px solid #dde1e9;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
}

.load-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.load-card-inner {
    padding: 16px 18px 14px 22px;
}

/* Status left border */
.load-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.status-draft::before            { background: #9ca3af; }
.status-internal_matching::before { background: #f59e0b; }
.status-open_for_bids::before    { background: #f59e0b; }
.status-bid_selected::before     { background: #a78bfa; }
.status-contact_unlocked::before { background: #5b8dee; }
.status-booked::before           { background: #5b8dee; }
.status-vehicle_placed::before   { background: #5b8dee; }
.status-loading_in_progress::before { background: #06b6d4; }
.status-picked_up::before        { background: #5b8dee; }
.status-in_transit::before       { background: #06b6d4; }
.status-delivered::before        { background: #22c55e; }
.status-pod_uploaded::before     { background: #22c55e; }
.status-completed::before        { background: #22c55e; }
.status-cancelled::before        { background: #9ca3af; }

/* Card layout */
.load-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 8px;
}

.route {
    font-size: 17px;
    font-weight: 700;
    color: #1a2235;
    flex: 1;
    line-height: 1.2;
}

/* Status badge */
.status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-muted    { background: #f3f4f6; color: #374151; }
.status-warning  { background: #fef3c7; color: #92400e; }
.status-info     { background: #dbeafe; color: #1e40af; }
.status-strong   { background: #ede9fe; color: #5b21b6; }
.status-success  { background: #dcfce7; color: #15803d; }

/* Load meta */
.load-meta {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 8px;
}

.payment-cycle {
    color: #4a5568;
    font-weight: 500;
}

.no-bids {
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 5px;
}

.lowest-bid {
    color: #1e40af;
    font-weight: 700;
}

/* Price */
.ml-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.ml-price {
    font-size: 22px;
    font-weight: 800;
    color: #1a2235;
    letter-spacing: -0.3px;
    line-height: 1;
}

.ml-price-meta {
    font-size: 13px;
    color: #6b7a94;
    font-weight: 500;
}

/* Pickup */
.ml-pickup {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1a2235;
    margin-bottom: 6px;
}

.ml-pickup i {
    font-size: 15px;
    color: #5b8dee;
}

.ml-urgent-chip {
    font-size: 11px;
    font-weight: 700;
    background: #fef2f2;
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 20px;
    border: 0.5px solid #fecaca;
    margin-left: 4px;
}

/* Weight */
.ml-weight {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #3d4a5c;
    margin-bottom: 10px;
}

.ml-weight i {
    font-size: 14px;
    color: #6b7a94;
}

/* Locations panel */
.ml-locations {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.ml-loc-block { flex: 1; }

.ml-loc-label {
    font-size: 10px;
    font-weight: 700;
    color: #6b7a94;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.ml-loc-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a2235;
}

.ml-loc-arrow {
    font-size: 16px;
    color: #c5cdd8;
    flex-shrink: 0;
}

/* Bid info */
.ml-bid-info {
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: inline-block;
}

.ml-no-bids  { background: #fef3c7; color: #92400e; }
.ml-has-bids { background: #f0f5ff; color: #1e40af; }

/* Hint */
.load-hint {
    background: #fff8ed;
    border: 0.5px solid #fde68a;
    border-radius: 6px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.load-hint::before {
    content: '\ea06';
    font-family: 'tabler-icons';
    font-size: 14px;
    color: #f59e0b;
    flex-shrink: 0;
}

.load-hint-urgent {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
}

/* Three-tier CTA */
.ml-cta-tier1 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #1a2235;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    line-height: 1;
}

.ml-cta-tier1:hover { background: #253045; }

.ml-cta-tier2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #5b8dee;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    line-height: 1;
}

.ml-cta-tier2:hover { background: #4a7de0; }

.ml-cta-tier3 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    color: #1a2235;
    border: 1.5px solid #c5cdd8;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    line-height: 1;
}

.ml-cta-tier3:hover {
    border-color: #5b8dee;
    color: #5b8dee;
    background: #f5f7fa;
}

/* Card footer */
.ml-card-footer {
    border-top: 0.5px solid #f0f2f5;
    padding-top: 10px;
    margin-top: 4px;
}

.ml-cta-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ml-cta-row form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

/* Group tinting */
.ml-group-needs_action .load-card { border-left-color: #ef4444; background: #fffafa; }
.ml-group-in_motion    .load-card { border-left-color: #5b8dee; background: #f8faff; }
.ml-group-open_waiting .load-card { border-left-color: #f59e0b; background: #fffdf5; }
.ml-group-closed       .load-card { border-left-color: #22c55e; background: #f8fdf9; }
.ml-group-needs_action .load-card.action-needed { border-left-color: #ef4444; }

.action-needed  { border-left-color: #f59e0b !important; }
.pickup-urgent  { border-left-color: #ef4444 !important; }

/* Load group header */
.load-group-header {
    font-size: 12px;
    font-weight: 800;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 0;
    margin-bottom: 10px;
    border-bottom: 1.5px solid #e8ecf4;
}

.load-list-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 900px) {
    .load-list-inner { grid-template-columns: 1fr 1fr; }
}

/* Load footer */
.load-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 0.5px solid #f0f2f5;
    gap: 8px;
    flex-wrap: wrap;
}

/* Compat */
.locations {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
}

/* =========================
   BIDS PAGE
========================= */

.bids-list {
    display: grid;
    gap: 12px;
}

.bid-card {
    background: #fff;
    border: 0.5px solid #dde1e9;
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bid-card:hover {
    border-color: #5b8dee;
    box-shadow: 0 4px 12px rgba(91,141,238,0.1);
}

.bid-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a2235;
    margin-bottom: 8px;
}

.bid-meta {
    font-size: 14px;
    color: #3d4a5c;
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.bid-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-primary {
    background: #5b8dee;
    color: #fff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.btn-primary:hover { background: #4a7de0; }

/* Contact box */
.contact-box {
    font-size: 14px;
    font-weight: 600;
    color: #1a2235;
    background: #f0f5ff;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #c5d5f8;
}

.status-locked {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    align-items: flex-start;
}

.timeline-item .time {
    font-size: 12px;
    color: #6b7a94;
    font-weight: 600;
    min-width: 90px;
    padding-top: 2px;
    font-family: 'DM Sans', sans-serif;
}

.timeline-item .event {
    font-size: 14px;
    color: #1a2235;
    font-weight: 500;
    line-height: 1.4;
}

.timeline-item.done .event { color: #1a2235; }

/* =========================
   CREATE LOAD PAGE
========================= */

.cl-page {
    max-width: 680px;
    margin: 0 auto;
}

.cl-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cl-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a2235;
    margin-bottom: 4px;
}

.cl-back-link {
    font-size: 14px;
    color: #4a5568;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.cl-back-link:hover { color: #5b8dee; }

.cl-summary-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    position: sticky;
    top: 64px;
    z-index: 10;
    background: #f0f2f5;
    padding: 10px 0;
}

.cl-summary-item {
    background: #fff;
    border: 0.5px solid #dde1e9;
    border-radius: 10px;
    padding: 12px 14px;
}

.cl-summary-label {
    font-size: 10px;
    font-weight: 700;
    color: #6b7a94;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cl-summary-val {
    font-size: 14px;
    font-weight: 600;
    color: #1a2235;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cl-section {
    background: #fff;
    border: 0.5px solid #dde1e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 14px;
}

.cl-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7a94;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid #f0f2f5;
}

.cl-field { margin-bottom: 16px; }
.cl-field:last-child { margin-bottom: 0; }

.cl-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1a2235;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.cl-field input, .cl-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #dde1e9;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1a2235;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    margin-bottom: 0;
}

.cl-field input:focus, .cl-field select:focus {
    border-color: #5b8dee;
    box-shadow: 0 0 0 3px rgba(91,141,238,0.1);
}

.cl-field input::placeholder { color: #9aa5b8; }

.cl-hint {
    font-size: 13px;
    color: #6b7a94;
    margin-top: 6px;
}

.cl-hint a { color: #5b8dee; }

.cl-search-wrap { position: relative; }

.cl-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dde1e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cl-dropdown div {
    padding: 10px 14px;
    font-size: 14px;
    color: #1a2235;
    cursor: pointer;
    border-bottom: 0.5px solid #f0f2f5;
}

.cl-dropdown div:hover, .cl-dropdown div.active-item { background: #f0f5ff; }

.cl-location-error {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #ef4444;
    margin-top: 6px;
}

.cl-advance-hint {
    font-size: 13px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 8px;
    border: 0.5px solid transparent;
}

.cl-adv-weak   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.cl-adv-medium { background: #fef3c7; color: #78350f; border-color: #fde68a; }
.cl-adv-strong { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

.cl-advance-calc {
    font-size: 13px;
    color: #3d4a5c;
    margin-top: 8px;
    line-height: 1.6;
}

.cl-suggest-box {
    display: none;
    margin-top: 12px;
    padding: 14px;
    background: #f0f5ff;
    border: 1px solid #c5d5f8;
    border-radius: 10px;
}

.cl-suggest-label {
    font-size: 13px;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 4px;
}

.cl-suggest-amounts {
    font-size: 12px;
    color: #3d4a5c;
    margin-bottom: 10px;
}

.cl-suggest-btn {
    padding: 9px 18px;
    background: #1a2235;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.cl-suggest-btn:hover { background: #253045; }

.cl-in-range {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #15803d;
    font-weight: 600;
    margin-top: 8px;
}

.cl-above-range {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #d97706;
    font-weight: 600;
    margin-top: 8px;
}

.cl-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: #1a2235;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 4px;
}

.cl-submit-btn:hover { background: #253045; }
.cl-submit-btn i { font-size: 20px; }

/* =========================
   AI PANEL
========================= */

.cl-ai-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 100;
}

.cl-ai-overlay.open { display: block; }

.cl-ai-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 360px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    z-index: 101;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}

.cl-ai-panel.open { right: 0; }

@media (max-width: 600px) {
    .cl-ai-panel {
        top: auto;
        bottom: -100%;
        right: 0;
        width: 100%;
        height: 92vh;
        border-radius: 18px 18px 0 0;
        transition: bottom 0.3s ease;
    }
    .cl-ai-panel.open { bottom: 0; }
}

.cl-ai-header {
    padding: 16px 18px;
    background: #1a2235;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cl-ai-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.cl-ai-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.cl-ai-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(91,141,238,0.3);
    color: #a0c0ff;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.cl-ai-close {
    background: none;
    border: none;
    color: #8a9bb8;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.cl-ai-close:hover { color: #fff; }

.cl-ai-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}

.cl-ai-input-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a2235;
    margin-bottom: 8px;
}

.cl-ai-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.cl-ai-input {
    flex: 1;
    border: 1.5px solid #dde1e9;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #1a2235;
    outline: none;
    transition: border-color 0.15s;
}

.cl-ai-input:focus { border-color: #5b8dee; }

.cl-ai-mic {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #1a2235;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.cl-ai-mic:hover { background: #253045; }

.cl-ai-mic.recording {
    background: #ef4444;
    animation: pulse 1s infinite;
}

.cl-ai-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #5b8dee;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.cl-ai-send:hover { background: #4a7de0; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

.cl-ai-example {
    background: #f5f7fa;
    border: 0.5px solid #dde1e9;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.cl-ai-example-label {
    font-size: 11px;
    font-weight: 700;
    color: #5b8dee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cl-ai-example-hindi {
    font-size: 14px;
    font-weight: 500;
    color: #1a2235;
    line-height: 1.6;
    margin-bottom: 6px;
}

.cl-ai-example-en {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
}

.cl-ai-status {
    font-size: 13px;
    color: #5b8dee;
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
    min-height: 18px;
}

.cl-ai-partial-warn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #fff8ed;
    border: 0.5px solid #fde68a;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 10px;
}

.cl-ai-partial-warn.visible { display: flex; }

.cl-ai-skip {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #8a9bb8;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-bottom: 16px;
    transition: color 0.15s;
}

.cl-ai-skip:hover { color: #5b8dee; }

.cl-ai-extracted {
    display: none;
    margin-top: 4px;
}

.cl-ai-extracted-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a2235;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cl-ai-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 0.5px solid #f0f2f5;
    font-size: 13px;
}

.cl-ai-field-label {
    color: #6b7a94;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    padding-right: 10px;
    padding-top: 1px;
}

.cl-ai-field-val {
    color: #1a2235;
    font-weight: 600;
    text-align: right;
}

.cl-ai-missing {
    color: #ef4444;
    font-weight: 400;
    font-style: italic;
}

.cl-ai-footer {
    padding: 14px 18px;
    border-top: 0.5px solid #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.cl-ai-use-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: #1a2235;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s;
}

.cl-ai-use-btn:hover { background: #253045; }

.cl-ai-edit-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: #fff;
    color: #1a2235;
    border: 1px solid #dde1e9;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s;
}

.cl-ai-edit-btn:hover { background: #f5f7fa; }

.cl-ai-disclaimer {
    font-size: 11px;
    color: #b0bac8;
    text-align: center;
}

/* =========================
   COMPAT
========================= */

.summary-bar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: #1a2235;
    color: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
}

.summary-bar div {
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.card.route   { border-left: 4px solid #94a3b8; }
.card.schedule { border-left: 4px solid #f59e0b; }
.card.load    { border-left: 4px solid #5b8dee; }
.card.pricing { border-left: 4px solid #a78bfa; }

/* =========================
   STATS GRID (My Loads)
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 14px 0 16px;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

.stat-card-clickable {
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: box-shadow 0.15s, transform 0.1s;
}

.stat-card-clickable:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transform: translateY(-1px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .app-header .container { padding: 0 16px; }
    .top-nav a { font-size: 13px; padding: 6px 8px; }
    main.container { padding: 16px 16px 40px; }
}

@media (max-width: 768px) {

    /* Show hamburger */
    .nav-hamburger {
        display: flex;
    }

    /* Hide nav by default, show as dropdown when toggled */
    .top-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #1a2235;
        flex-direction: column;
        padding: 8px 0 16px;
        border-top: 1px solid #253045;
        z-index: 99;
        gap: 0;
    }

    .top-nav.nav-open {
        display: flex;
    }

    .top-nav a {
        padding: 13px 24px;
        font-size: 15px;
        border-radius: 0;
        width: 100%;
    }

    /* Prevent iOS zoom on inputs */
    input, select, textarea { font-size: 16px !important; }

    body        { font-size: 15px; }
    .route      { font-size: 16px; }
    .load-meta  { font-size: 13px; }
    .status     { font-size: 12px; }
    .primary-btn { font-size: 14px; padding: 9px 16px; }
    .load-hint  { font-size: 13px; }
}

/* NOTE: the old @media (max-width: 640px) block that shrunk nav links
   has been intentionally removed — it was overriding the mobile nav. */

/* =========================
   PROFILE DROPDOWN
========================= */

.nav-profile-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 8px;
    transition: background 0.15s;
    font-family: inherit;
}

.nav-profile-btn:hover {
    background: #253045;
}

.nav-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #5b8dee;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-profile-name {
    color: #a8b8d0;
    font-size: 13px;
    font-weight: 500;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-profile-chevron {
    color: #6b7a94;
    font-size: 13px;
    transition: transform 0.15s;
}

.nav-profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 0.5px solid #dde1e9;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 160px;
    z-index: 200;
    overflow: hidden;
}

.nav-profile-dropdown.open {
    display: block;
}

.nav-profile-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1a2235;
    text-decoration: none;
    transition: background 0.15s;
}

.nav-profile-item:hover {
    background: #f5f7fa;
}

.nav-profile-item i {
    font-size: 15px;
    color: #6b7a94;
}

.nav-profile-divider {
    height: 1px;
    background: #f0f2f5;
    margin: 2px 0;
}

.nav-profile-logout {
    color: #ef4444;
}

.nav-profile-logout i {
    color: #ef4444;
}

.nav-profile-logout:hover {
    background: #fef2f2;
}

/* Mobile — profile dropdown in nav */
@media (max-width: 768px) {
    .nav-profile-wrap {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-profile-btn {
        padding: 13px 24px;
        width: 100%;
        border-radius: 0;
    }

    .nav-profile-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid #253045;
        border-radius: 0;
        width: 100%;
        background: #1e2d45;
    }

    .nav-profile-item {
        padding: 12px 32px;
        color: #a8b8d0;
        font-size: 15px;
    }

    .nav-profile-item:hover {
        background: #253045;
        color: #fff;
    }

    .nav-profile-logout {
        color: #fca5a5;
    }

    .nav-profile-divider {
        background: #253045;
    }
}