/* ========================================================
   Cargo4U v2 — Base Styles
   Builds on top of v1 assets/css/style.css (loaded first)
   ======================================================== */

/* Ultra-discrete clear draft nudge below Next button */
.v2-clear-draft-nudge {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    color: #bbb;
}

.v2-clear-draft-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 11px;
    color: #bbb;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.15s;
}

.v2-clear-draft-btn:hover {
    color: #888;
}

/* Draft restore banner - kept for reference but no longer rendered */
.v2-draft-banner {
    display: none;
}

[x-cloak] {
    display: none !important;
}

/* Ensure the v2 main content starts below the fixed navbar */
.v2-main-content {
    padding-top: 90px;
}

/* Draft restore banner — compact/discrete, like price breakdown section */
.v2-draft-banner {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.v2-draft-banner .draft-text {
    font-size: 11.5px;
    color: #856404;
    line-height: 1.3;
}

.v2-draft-banner .draft-actions .btn {
    font-size: 11px;
    padding: 2px 8px;
    line-height: 1.4;
}

/* Booking form card — flush panel like Google Maps sidebar (no card shell) */
.v2-booking-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* Shipment mode tabs — full-width underline, like Delivery/Ride */
.v2-shipment-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
}

.v2-shipment-tabs .nav-item {
    flex: 1;
}

.v2-shipment-tabs {
    margin-bottom: 1rem; /* was mb-3 utility class in blade — now controlled here */
}

.v2-shipment-tabs .nav-link {
    font-weight: 600;
    color: #adb5bd;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 0;
    width: 100%;
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    line-height: 1.2; /* explicit — prevents inheriting Bootstrap body's 24px line-height */
    text-align: center;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -2px;
    display: block;
}

.v2-ltl-mode-selector {
    margin-bottom: 0.75rem; /* was mb-3 utility class in blade — now controlled here */
}

.v2-shipment-tabs .nav-link.active {
    color: var(--blue-color, #1a73e8);
    border-bottom: 3px solid var(--blue-color, #1a73e8);
    background: transparent;
}

.v2-shipment-tabs .nav-link:hover:not(.active) {
    color: #555;
    background: transparent;
}

/* Truck type option cards */
.v2-option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.v2-option-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.v2-option-card:hover {
    border-color: var(--blue-color, #1a73e8);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
}

.v2-option-card.selected {
    border-color: var(--blue-color, #1a73e8);
    background: rgba(26, 115, 232, 0.05);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.v2-option-card img {
    max-width: 80px;
    max-height: 60px;
    margin-bottom: 8px;
}

.v2-option-card .option-label {
    font-size: 13px;
    font-weight: 600;
}

/* Price display */
.v2-price-display {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue-color, #1a73e8);
}

.v2-price-display small {
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
}

/* ========================================================
   Order Summary — Minimalist Lalamove-style
   ======================================================== */
.v2-order-summary {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
}

/* Submitting backdrop overlay */
.v2-summary-backdrop {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.v2-summary-backdrop-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
}

.v2-summary-backdrop-spinner span {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.01em;
}

/* Truck loader animation */
.v2-truck-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.v2-truck-loader-truck {
    font-size: 28px;
    color: var(--blue-color, #1a73e8);
    animation: v2TruckBounce 0.45s ease-in-out infinite alternate;
    line-height: 1;
}

.v2-truck-loader-road-wrap {
    width: 64px;
    height: 6px;
    background: #d5d9e0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.v2-truck-loader-road-line {
    position: absolute;
    top: 2px;
    left: 0;
    width: 300%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #fff 0, #fff 10px,
        transparent 10px, transparent 18px
    );
    animation: v2RoadScroll 0.42s linear infinite;
}

@keyframes v2TruckBounce {
    from { transform: translateY(0px); }
    to   { transform: translateY(-3px); }
}

@keyframes v2RoadScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-28px); }
}

.v2-summary-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
}

/* Schedule rows */
.v2-summary-schedule {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

/* Two-column side-by-side date layout */
.v2-summary-schedule-cols {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.v2-summary-schedule-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.v2-summary-schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
}

.v2-summary-schedule-label {
    font-size: 13px;
    color: #888;
}

.v2-summary-schedule-value {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* Route timeline */
.v2-summary-route {
    padding: 4px 0 14px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}

.v2-summary-route-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 48px;
    padding: 4px 0;
}

.v2-summary-route-timeline {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 18px;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    padding-top: 3px;
}

/* Dashed connector line extending into the next row */
.v2-summary-route-timeline.has-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    top: calc(3px + 14px); /* padding-top + dot height */
    bottom: -8px;          /* crosses the 8px row gap (4px padding each side) */
    background: repeating-linear-gradient(
        to bottom,
        #9aa0a6 0px,
        #9aa0a6 5px,
        transparent 5px,
        transparent 9px
    );
}

.v2-summary-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.v2-summary-dot.pickup {
    background: #fff;
    border: 2.5px solid #1a73e8;
    box-shadow: none;
}

.v2-summary-dot.stop {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #00897b;
    box-shadow: none;
}

/* Legacy line div — no longer rendered but keep rule harmless */
.v2-summary-line {
    display: none;
}

/* Dropoff icon (inline SVG — no color/font-size needed) */
.v2-summary-dropoff-icon {
    margin-top: -1px;
    display: block;
    flex-shrink: 0;
    overflow: visible; /* counteract Bootstrap svg{overflow:hidden} */
}

.v2-summary-route-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.v2-summary-route-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    word-break: break-word;
}

.v2-summary-route-addr {
    font-size: 12px;
    color: #999;
    line-height: 1.3;
    word-break: break-word;
}

/* Legacy — kept for compatibility */
.v2-summary-route-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
    padding-top: 0;
}

/* Info rows (truck type, notes) */
.v2-summary-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.v2-summary-info-label {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 1px;
}

.v2-summary-info-text {
    font-size: 13px;
    color: #333;
    text-align: right;
    flex: 1;
}

/* Breakdown toggle button */
.v2-breakdown-toggle-btn {
    background: none;
    border: none;
    padding: 0 2px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.v2-breakdown-toggle-btn:hover {
    opacity: 1;
}

/* Cost breakdown (collapsible) */
.v2-summary-costs {
    padding: 10px 0 4px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 6px;
}

.v2-summary-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
    color: #444;
}

.v2-summary-cost-row > span:last-child {
    font-weight: 600;
    color: #222;
}

/* Promo */
.v2-summary-promo {
    padding: 8px 0;
}

.v2-summary-promo .input-group .form-control {
    border-radius: 8px 0 0 8px !important;
    border-right: none;
    font-size: 13px;
}

.v2-summary-promo .btn-apply {
    background: var(--blue-color, #1a73e8);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0 !important;
    font-size: 13px;
    font-weight: 600;
    padding: 0 16px;
    transition: background 0.15s;
}

.v2-summary-promo .btn-apply:hover {
    background: #1558b0;
    color: #fff;
}

/* Total */
.v2-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 0;
    border-top: 2px solid var(--blue-color, #1a73e8);
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-color, #1a73e8);
}

.v2-summary-total-value {
    font-size: 22px;
    font-style: italic;
}

/* Toned-down variant for success card "Paid by Credits" row */
.v2-summary-total--muted {
    border-top-color: #e9ecef;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.v2-summary-total--muted .v2-summary-total-value {
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    color: #333;
}

.v2-summary-balance {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.v2-balance-deficit-hint {
    font-size: 11px;
    font-style: italic;
    color: #e65100;
}

.v2-balance-login-hint {
    font-size: 11px;
    font-style: italic;
    color: #e65100;
}

/* Place order button */
.v2-place-order-btn {
    border-radius: 10px;
    font-size: 16px;
    padding: 10px 0;
}

/* Edit button — square icon */
.v2-edit-btn {
    border-radius: 10px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid #dadce0;
    background: #fff;
    color: #555;
    font-size: 15px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.v2-edit-btn:hover {
    background: #f1f3f4;
    border-color: #bbb;
    color: #222;
}

/* Credit deficit prompt */
.v2-credit-prompt {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

/* Order confirmed — success icon */
.v2-success-icon-wrap {
    font-size: 48px;
    color: #34a853;
    line-height: 1;
}

.v2-order-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-color, #1a73e8);
    letter-spacing: 0.3px;
}

.v2-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 12px;
    border-radius: 20px;
}

.v2-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

/* ---- v1-style Validation Feedback ---- */

/* Validation alert bar above Next button */
.v2-validation-alert {
    color: #dc3545;
    padding: 8px 12px;
    margin-top: 10px;
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 5px;
    background: #ffebee;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* Schedule adjustment notice: a heads-up, not a failure. Never restyle as .v2-validation-alert.
   The booking column is height-capped and its scrollbar is hidden, so this panel is billed in
   vertical pixels everywhere, not just on phones. It stays deliberately compact by default. */
.v2-adjust-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 9px 12px;
    border: 1px solid rgba(26, 137, 200, 0.28);
    border-radius: 8px;
    background: #F1F7FB;
    text-align: left;
}

.v2-adjust-notice-icon {
    flex: 0 0 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(26, 137, 200, 0.13);
    color: var(--blue-color, #1A89C8);
    font-size: 11px;
}

.v2-adjust-notice-body {
    flex: 1 1 auto;
    min-width: 0;
}

.v2-adjust-notice-title {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.1px;
    color: #0F3A5A;
}

.v2-adjust-notice-text {
    margin: 1px 0 0;
    max-width: 62ch;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #46647C;
}

/* Label and value share one baseline row: the stacked pair cost a whole extra
   line of height for no added meaning. The value still outsizes the title. */
.v2-adjust-notice-slot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(26, 137, 200, 0.22);
    border-radius: 6px;
    background: #fff;
}

.v2-adjust-notice-slot-label {
    flex: 0 0 auto;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #55707F;
}

.v2-adjust-notice-slot-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.2px;
    text-align: right;
    color: #0F2F57;
}

.v2-adjust-notice-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 8px;
}

.v2-adjust-notice-actions .btn {
    min-height: 36px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
}

/* Bootstrap's #6c757d label only reaches 4.34:1 on this panel's tinted surface.
   One step darker clears AA; hover keeps Bootstrap's filled treatment. */
.v2-adjust-notice-actions .btn-outline-secondary {
    color: #5C6773;
}

.v2-adjust-notice-actions .btn-outline-secondary:hover,
.v2-adjust-notice-actions .btn-outline-secondary:focus,
.v2-adjust-notice-actions .btn-outline-secondary:active {
    color: #fff;
}

/* Phones: the base rules already carry the compact type and spacing. Only the
   narrow-width specifics stay. The slot stacks again because the value alone
   ("Wednesday, 17 September at 10:00 AM" is 285px at 15px/700) is wider than
   this row's 277px content box, so no label-plus-value row can hold it
   unclipped. The action labels are short enough to share one row on one line. */
@media (max-width: 575.98px) {
    .v2-adjust-notice {
        gap: 9px;
        padding: 8px 11px;
    }

    .v2-adjust-notice-slot {
        display: block;
        margin-top: 6px;
        padding: 5px 9px;
    }

    .v2-adjust-notice-slot-label {
        display: block;
        line-height: 1.15;
    }

    .v2-adjust-notice-slot-value {
        display: block;
        font-size: 15px;
        line-height: 1.15;
        text-align: left;
    }

    .v2-adjust-notice-actions {
        gap: 7px;
        margin-top: 7px;
    }

    .v2-adjust-notice-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 5px 8px;
        font-size: 11.5px;
    }
}

/* Soft glow highlight on invalid fields / sections */
.v2-field-invalid {
    border: 2px solid rgba(220, 53, 69, 0.55) !important;
    border-radius: 8px;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.18), 0 0 16px rgba(220, 53, 69, 0.2) !important;
    outline: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Schedule col individual highlight */
.v2-schedule-col.v2-field-invalid {
    border: 2px solid rgba(220, 53, 69, 0.55) !important;
    border-radius: 6px;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15), 0 0 12px rgba(220, 53, 69, 0.18) !important;
}

/* Truck type card highlight — needs border to appear since it has none by default */
.v2-additional-services.v2-field-invalid {
    border: 2px solid rgba(220, 53, 69, 0.55) !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.18), 0 0 16px rgba(220, 53, 69, 0.18) !important;
}

/* ---- Floating Notifications (v1-style) ---- */
.v2-toast-container {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 40px);
    max-width: 520px;
}

.v2-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: v2SlideInLeft 0.3s ease-out;
}

.v2-toast.hide {
    animation: v2SlideOutLeft 0.3s ease-in forwards;
}

.v2-toast--success {
    background: #28a745;
}

.v2-toast--error {
    background: #dc3545;
}

.v2-toast--warning {
    background: #f0ad4e;
}

.v2-toast i {
    font-size: 18px;
}

@keyframes v2SlideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes v2SlideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* ---- Guest Auth Links (AirAsia style) ---- */
.v2-guest-auth {
    gap: 0;
}

.v2-guest-auth-link {
    text-decoration: none;
    color: var(--black-color);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    transition: color 0.15s;
}

.v2-guest-auth-link:hover {
    color: var(--primary-color, #0d6efd);
}

.v2-guest-auth-divider {
    color: #ccc;
    font-size: 14px;
    user-select: none;
}

@media (max-width: 767.98px) {
    .v2-mobile-user-icons {
        align-items: center;
        gap: 4px;
    }

    .v2-notif-bell-icon {
        font-size: 1.15rem;
        line-height: 1;
        display: block;
    }

    .v2-notif-bell-icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        line-height: 1;
    }

    .v2-notif-bell-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px 8px;
        border-radius: 8px;
        transition: color 0.18s ease, background 0.18s ease;
    }

    .v2-notif-bell-btn:hover {
        color: #ffe44d;
        background: rgba(255, 255, 255, 0.08);
    }

    .v2-mobile-user-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px 8px;
        background: transparent;
        border: none;
        border-radius: 8px;
        color: #ffffff;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.18s ease, background 0.18s ease;
        line-height: 1;
    }

    .v2-mobile-user-icon i {
        font-size: 1.15rem;
        line-height: 1;
    }

    .v2-mobile-logout-glyph {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1;
        color: inherit;
    }

    .v2-mobile-user-icon:hover {
        color: #ffe44d;
        background: rgba(255, 255, 255, 0.08);
    }

    .v2-mobile-user-icon--logout {
        color: rgba(255, 140, 140, 0.95);
    }

    .v2-mobile-user-icon--logout:hover {
        color: #ff8f8f;
        background: rgba(255, 80, 80, 0.12);
    }

    .v2-mobile-icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        line-height: 1;
    }

    .v2-mobile-icon-badge {
        position: absolute;
        top: -3px;
        right: -5px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #f7e50f;
        box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.4);
        pointer-events: none;
    }

    .v2-mobile-user-icon-form {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }

    /* Open mobile menu -- alignment parity with /book.
       book.css:1214-1243 gives the collapsed panel a right-aligned stack:
       the link column hugs the right edge and the icon row sits under it on
       the same edge. The portal never received those rules, so it fell back
       to style-v3.css:5288 (`text-align: center` on the link column) plus
       style-v3.css:232 (`margin-left: 25px`) and style-v3.css:5306
       (`margin-top: 1rem`) on `.button-group`, which left the icon row
       pinned to the LEFT while the links sat centred -- the two rows never
       agreed. Alignment and spacing only; the palette stays per-page.
       Scoped away from /book so the reference page is untouched. */
    body:not(.v3-book-page) #navbar .navbar-collapse .navbar-nav {
        text-align: right;
        align-items: flex-end;
        padding-top: 6px;
        padding-right: 10px;
    }

    body:not(.v3-book-page) #navbar .navbar-collapse .button-group {
        justify-content: flex-end;
        margin: 0;
        padding: 2px 10px 10px;
        gap: 4px;
    }

    /* The open panel spills past `#navbar`'s fixed 65px height
       (style-v3.css:141) and draws over whatever the page has underneath, so
       the icon row needs the same lift the link column already has. Exact
       values reused from the nav-link rules the portal pages ship --
       credits.css:37 and credits-history.css:39 -- not a new treatment. */
    body:not(.v3-book-page) #navbar .navbar-collapse .v2-mobile-user-icon,
    body:not(.v3-book-page) #navbar .navbar-collapse .v2-notif-bell-btn {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    }

    /* Counters are solid chips, not glyphs -- a shadow only muddies them. */
    body:not(.v3-book-page) #navbar .navbar-collapse .v2-notif-bell-icon-wrap .badge {
        text-shadow: none;
    }
}

/* ---- Unified Address Dropdown (Recent + Google Suggestions) ---- */
.v2-address-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.05);
    z-index: 1100;
    overflow-y: auto;
    max-height: 200px;
    /* Default: opens downward */
    top: 100%;
    bottom: auto;
    margin-top: 4px;
    margin-bottom: 0;
}
/* On mobile inside the form panel, open UPWARD so full list is visible */
@media (max-width: 767.98px) {
    .v2-address-dropdown {
        /* top: auto;
        bottom: 100%;
        margin-top: 0;
        margin-bottom: 4px; */
        max-height: 150px;
    }
}

.v2-address-section + .v2-address-section {
    border-top: 1px solid rgba(0,0,0,0.06);
}

.v2-address-section:last-child {
    padding-bottom: 6px;
}

.v2-address-dropdown-header {
    font-size: 10.5px;
    font-weight: 700;
    color: #b0b7be;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 8px 14px 3px;
}

.v2-address-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.12s;
}

.v2-address-dropdown-item:hover {
    background: #f5f6f7;
}

/* Mobile: compact single-line address display */
@media (max-width: 767.98px) {
    .v2-address-dropdown-item {
        padding: 5px 8px;
        gap: 6px;
    }
    .v2-addr-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1;
    }
    .v2-addr-text .v2-addr-main {
        font-size: 11.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
    .v2-addr-text .v2-addr-sub {
        display: none; /* hide secondary line — keep single line */
    }
    .v2-addr-icon-wrap {
        width: 24px;
        height: 24px;
        font-size: 11px;
        flex-shrink: 0;
    }
    .v2-address-dropdown-header {
        font-size: 9.5px;
        padding: 5px 10px 2px;
    }
}

/* Icon badge wrapper */
.v2-addr-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 13px;
}

.v2-addr-icon-wrap--recent {
    background: #f0f1f3;
    color: #8a9099;
}

.v2-addr-icon-wrap--suggestion {
    background: #f0f1f3;
    color: #70757a;
}

.v2-addr-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.v2-addr-main {
    font-size: 13px;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.v2-addr-secondary {
    font-size: 11.5px;
    color: #9aa0a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
    line-height: 1.3;
}



/* Stop input rows */
.v2-stop-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.v2-stop-row input {
    flex: 1;
}

/* LCL pallet card */
.v2-pallet-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

/* Bell label — hidden globally, shown only inside the mobile media query */
.v2-notif-bell-label { display: none; }

/* Profile dropdown toggle button + bell icon (non-home pages) */
.user-btn,
.v2-notif-bell-btn {
    color: #555;
    transition: color 0.18s ease;
}
.user-btn:hover,
.v2-notif-bell-btn:hover {
    color: #1A89C8;
}

/* Uniform icon sizing & button geometry on desktop */
.user-btn,
.v2-notif-bell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 8px;
}
.v2-notif-bell-icon,
.user-btn > i {
    font-size: 1.1rem;
    line-height: 1;
    display: block;
}

/* Incomplete-profile indicator dot (desktop profile button) */
.notification-badge {
    position: absolute;
    top: -1px;
    right: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f7e50f;
    box-shadow: 0 0 0 1.5px rgba(0,0,0,0.25);
    pointer-events: none;
    display: block;
}
/* Inline variant used inside dropdown items */
.notification-badge-inline {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f7e50f;
    box-shadow: 0 0 0 1.5px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* Notification dropdown */
.v2-notification-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    padding: 8px 0;
}

/* ── Notification mobile modal (bottom sheet) ─────────────────────────── */
.v2-notif-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Backdrop fade transition */
.v2-notif-bd-in  { transition: opacity 0.3s ease-out; }
.v2-notif-bd-out { transition: opacity 0.26s ease-in; }
.v2-notif-bd-hidden { opacity: 0; }
.v2-notif-bd-shown  { opacity: 1; }

/* Sheet slide — driven by backdrop's transition phase class */
.v2-notif-bd-in  .v2-notif-modal-sheet {
    animation: v2NotifSlideUp   0.3s  cubic-bezier(0.22, 1, 0.36, 1) both;
}
.v2-notif-bd-out .v2-notif-modal-sheet {
    animation: v2NotifSlideDown 0.26s ease-in both;
}

@keyframes v2NotifSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0);    }
}
@keyframes v2NotifSlideDown {
    from { transform: translateY(0);    }
    to   { transform: translateY(100%); }
}

.v2-notif-modal-sheet {
    width: 100%;
    max-height: 75dvh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.18);
}

.v2-notif-modal-handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
}

.v2-notif-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.v2-notif-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 4px;
}

.v2-notif-modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    padding: 0 5px;
    margin-left: 4px;
}

.v2-notif-modal-markall {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.78rem;
    color: var(--blue-color, #1A89C8);
    font-weight: 600;
    cursor: pointer;
}
.v2-notif-modal-markall:hover { text-decoration: underline; }

.v2-notif-modal-close {
    background: none;
    border: none;
    padding: 4px 6px;
    font-size: 1.1rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.15s;
}
.v2-notif-modal-close:hover { background: #f3f4f6; color: #1a1a2e; }

.v2-notif-modal-list {
    overflow-y: auto;
    flex: 1;
    padding: 6px 0 env(safe-area-inset-bottom, 12px);
}

.v2-notif-modal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    color: #9ca3af;
}
.v2-notif-modal-empty i { font-size: 2rem; }
.v2-notif-modal-empty p { margin: 0; font-size: 0.9rem; }

.v2-notif-modal-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 18px;
    text-decoration: none;
    color: #1a1a2e;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}
.v2-notif-modal-item:last-child { border-bottom: none; }
.v2-notif-modal-item:hover { background: #f8f9fa; text-decoration: none; }
.v2-notif-modal-item.is-unread { background: #eef6ff; }
.v2-notif-modal-item.is-unread:hover { background: #e2f0fb; }

.v2-notif-modal-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: var(--blue-color, #1A89C8);
    margin-top: 5px;
}

.v2-notif-modal-item-body { flex: 1; min-width: 0; }

.v2-notif-modal-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a2e;
}

.v2-notif-modal-item-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 2px;
}

.v2-notification-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.v2-notification-item:hover {
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.v2-notification-item.unread {
    background: #e8f0fe;
}

.v2-notification-item .notif-title {
    font-size: 13px;
    font-weight: 600;
}

.v2-notification-item .notif-time {
    font-size: 11px;
    color: #999;
}

/* ========================================================
   Auth Modal — v2 overlay login/signup
   ======================================================== */
.v2-auth-modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.v2-auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.v2-auth-modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    margin: 0 16px;
    animation: v2ModalSlideDown 0.25s ease-out;
}

.v2-auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}

.v2-auth-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Auth tabs */
.v2-auth-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    gap: 0;
}

.v2-auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.v2-auth-tab.active {
    color: var(--blue-color, #1a73e8);
    border-bottom-color: var(--blue-color, #1a73e8);
}

.v2-auth-tab:hover:not(.active) {
    color: #555;
}

@keyframes v2ModalSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   Order Summary + Success screen — mobile overrides
   ======================================================== */
@media (max-width: 767.98px) {
    /* Card container — tighter padding */
    .v2-order-summary {
        padding: 14px 12px;
        border-radius: 10px;
    }

    /* Section titles */
    .v2-summary-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* Schedule two-column block */
    .v2-summary-schedule {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    .v2-summary-schedule-cols {
        gap: 12px;
    }
    .v2-summary-schedule-label {
        font-size: 11px;
    }
    .v2-summary-schedule-value {
        font-size: 12px;
    }

    /* Route timeline rows */
    .v2-summary-route {
        padding: 2px 0 10px;
        margin-bottom: 8px;
    }
    .v2-summary-route-row {
        min-height: 38px;
        gap: 8px;
        padding: 3px 0;
    }
    .v2-summary-dot {
        width: 11px;
        height: 11px;
    }
    .v2-summary-dot.stop {
        width: 9px;
        height: 9px;
    }
    .v2-summary-route-name {
        font-size: 12px;
    }
    .v2-summary-route-addr {
        font-size: 11px;
    }

    /* Info rows (truck type, notes) */
    .v2-summary-info-row {
        padding: 6px 0;
        font-size: 12px;
        gap: 8px;
    }
    .v2-summary-info-label {
        font-size: 11px;
    }
    .v2-summary-info-text {
        font-size: 12px;
    }

    /* Cost breakdown */
    .v2-summary-costs {
        padding: 8px 0 2px;
    }
    .v2-summary-cost-row {
        padding: 4px 0;
        font-size: 12px;
    }

    /* Total row */
    .v2-summary-total {
        padding: 10px 0 0;
        font-size: 13px;
    }
    .v2-summary-total-value {
        font-size: 18px;
    }
    .v2-summary-total--muted {
        font-size: 12px;
    }
    .v2-summary-total--muted .v2-summary-total-value {
        font-size: 12px;
    }
    .v2-summary-balance {
        font-size: 11px;
    }

    /* Place order + edit buttons */
    .v2-place-order-btn {
        font-size: 14px;
        padding: 9px 0;
    }
    .v2-edit-btn {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    /* ── Success / Order Confirmed screen ── */
    .v2-success-icon-wrap {
        font-size: 36px;
    }
    .v2-order-number {
        font-size: 11px;
    }
    .v2-status-badge {
        font-size: 10px;
        padding: 2px 10px;
    }

    /* Truck loader animation — smaller on mobile */
    .v2-truck-loader-truck {
        font-size: 22px;
    }
    .v2-truck-loader-road-wrap {
        width: 50px;
        height: 5px;
    }
    .v2-summary-backdrop-spinner span {
        font-size: 12px;
    }
}

/* Auth card styles (shared by modal + standalone auth pages) */
.v2-auth-modal-card.v2-auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    padding: 26px 28px 22px;
}

.v2-auth-modal-card .v2-auth-logo {
    max-height: 44px;
}

/* General error alert */
.v2-auth-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    margin-bottom: 12px;
}

/* Fields container */
.v2-auth-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 14px;
}

/* Border-label field wrapper — matches v2-dir-field pattern */
.v2-auth-field {
    position: relative;
    margin-top: 6px;
}

.v2-auth-field-label {
    position: absolute;
    top: -8px;
    left: 10px;
    background: #fff;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}

/* Base input */
.v2-auth-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.v2-auth-input:focus {
    background: #fff;
    border-color: var(--blue-color, #1A89C8);
    box-shadow: 0 0 0 3px rgba(26, 137, 200, 0.14);
}

.v2-auth-input.is-invalid {
    border-color: #ef4444;
}

.v2-auth-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Password field — extra right padding for eye toggle */
.v2-auth-input--pw {
    padding-right: 42px;
}

.v2-auth-pw-toggle {
    position: absolute;
    top: 12px;
    right: 10px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.v2-auth-pw-toggle:hover {
    color: #64748b;
}

/* Phone field */
.v2-auth-phone-wrap {
    display: flex;
    align-items: stretch;
    height: 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.v2-auth-phone-wrap:focus-within {
    background: #fff;
    border-color: var(--blue-color, #1A89C8);
    box-shadow: 0 0 0 3px rgba(26, 137, 200, 0.14);
}

.v2-auth-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border-right: 1.5px solid #e2e8f0;
    white-space: nowrap;
    flex-shrink: 0;
}

.v2-auth-input--phone {
    flex: 1;
    height: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 12px;
    outline: none;
    box-shadow: none !important;
}

/* Remember me + forgot password row */
.v2-auth-row-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.v2-auth-remember {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: #64748b;
    cursor: pointer;
    margin: 0;
}

.v2-auth-remember input[type="checkbox"] {
    accent-color: var(--blue-color, #1A89C8);
    width: 14px;
    height: 14px;
}

.v2-auth-link-small {
    font-size: 12.5px;
    color: var(--blue-color, #1A89C8);
    text-decoration: none;
}

.v2-auth-link-small:hover {
    text-decoration: underline;
}

/* Submit button — solid blue pill */
.v2-auth-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--blue-color, #1A89C8);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(26, 137, 200, 0.28);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    margin-bottom: 4px;
}

.v2-auth-submit:hover:not(:disabled) {
    background: #1570a8;
    box-shadow: 0 6px 20px rgba(26, 137, 200, 0.38);
    transform: translateY(-1px);
}

.v2-auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Divider */
.v2-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    font-size: 11.5px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v2-auth-divider::before,
.v2-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8ecf3;
}

/* OAuth buttons */
.v2-auth-oauth-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-auth-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.v2-auth-oauth-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #374151;
    text-decoration: none;
}

.v2-auth-oauth-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Password requirement hint */
.v2-auth-pw-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 5px;
    line-height: 1.4;
}

/* Inline field error */
.v2-auth-error {
    color: #ef4444;
    font-size: 11.5px;
    margin-top: 4px;
    line-height: 1.3;
}

/* Bottom toggle row */
.v2-auth-toggle-row {
    text-align: center;
    margin-top: 14px;
    font-size: 12.5px;
    color: #64748b;
}

.v2-auth-link {
    font-size: 12.5px;
    color: var(--blue-color, #1A89C8);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.v2-auth-link:hover {
    text-decoration: underline;
}

/* Smooth tab-pane crossfade */
.v2-auth-tab-pane {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.v2-auth-tab-pane.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: modal slides up as a sheet from bottom */
@media (max-width: 575.98px) {
    .v2-auth-modal-backdrop {
        padding-top: 0;
        align-items: flex-end;
    }

    .v2-auth-modal-card {
        max-width: 100%;
        margin: 0;
        max-height: 92vh;
        border-radius: 20px 20px 0 0 !important;
    }

    .v2-auth-modal-card.v2-auth-card {
        border-radius: 20px 20px 0 0;
        padding: 20px 18px 28px;
    }

    .v2-auth-fields {
        gap: 14px;
    }

    .v2-auth-input {
        height: 42px;
        font-size: 13.5px;
    }

    .v2-auth-phone-wrap {
        height: 42px;
    }

    .v2-auth-submit {
        padding: 11px;
        font-size: 0.92rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP LAYOUT FIX — Override V1 style.css leaks
   ═══════════════════════════════════════════════════════════ */

/* V1 style.css sets body { display:flex; justify-content:center; align-items:center }
   which shrinks .main-content to content-width instead of full viewport.
   Reset to block layout for all V2 pages. */
body.v2-home-page {
    display: block;
}

body.v2-home-page .main-content {
    margin-top: 65px !important;
    padding-top: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   KEYBOARD FOCUS VISIBILITY — WCAG 2.4.7
   ═══════════════════════════════════════════════════════════
   V3 shipped with no focus indicator on any surface. This is the
   single generic treatment; page stylesheets should match these
   token values rather than invent a second ring.

   Dual ring: dark ink outline + near-white halo filling the outline
   offset, so it stays legible on the white page AND on the blue navbar.

   `!important` is deliberate: ~24 pre-existing `outline: none` rules in
   style-v3.css sit on `:focus`, which is also active during
   `:focus-visible`, and several of those already carry `!important`.
   Those rules are correct for pointer users and are left in place.
   Nothing here fires on mouse or touch. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
.nav-link:focus-visible,
.dropdown-toggle:focus-visible,
.dropdown-item:focus-visible,
.navbar-toggler:focus-visible {
    outline: var(--v3-focus-width, 2px) solid var(--v3-focus-ring, #0A3D5C) !important;
    outline-offset: var(--v3-focus-offset, 2px) !important;
    box-shadow: 0 0 0 var(--v3-focus-offset, 2px) var(--v3-focus-halo, #F7FBFE);
}

/* Dropdown rows are edge-to-edge inside the menu, so an offset ring would be
   clipped by the menu's overflow. Pull it inside instead. */
.navbar .dropdown-item:focus-visible {
    outline-offset: calc(-1 * var(--v3-focus-width, 2px)) !important;
    box-shadow: none;
    background-color: #f8f9fa;
}

/* ═══════════════════════════════════════════════════════════
   SHARED FOOTER CHROME — v3/partials/footer.blade.php
   ═══════════════════════════════════════════════════════════
   The footer partial is included by every v3 page, but its rules
   only ever existed in public/css/v3/home.css (loaded by /book)
   and, re-scoped, in public/css/v3/orders.css. Any page that
   loads neither — /PrivacyPolicy — rendered the footer unstyled.
   This layout stylesheet is the one file every v3 page loads, so
   the family lives here now.

   Verbatim relocation of home.css:2735-2834 plus its 991.98px,
   575.98px, 1400px and 1920px variants. The scoped copies in
   home.css and orders.css are now redundant; they are left in
   place because they belong to other work in flight, and they
   still win on those pages (later file / higher specificity,
   identical declarations). */
.v2-footer-section {
    background: #111827 !important;
    border-top: none !important;
    padding: 0;
    position: relative;
    z-index: 1;
    clear: both;
    overflow: hidden;
}
.v2-footer-main {
    padding: 40px 0 28px;
}
.v2-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 32px;
}
.v2-footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f7e50f;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.v2-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.v2-footer-col ul li {
    margin-bottom: 8px;
}
.v2-footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.v2-footer-col ul li a:hover {
    color: #f7e50f;
}
.v2-footer-col p {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 6px;
}
.v2-footer-col p i {
    width: 18px;
    text-align: center;
    margin-right: 6px;
    color: rgba(255,255,255,0.45);
}
.v2-footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.v2-footer-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    transition: all 0.25s ease;
    text-decoration: none;
}
.v2-footer-social:hover {
    border-color: #f7e50f;
    color: #f7e50f;
    transform: translateY(-2px);
}
.v2-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.v2-footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
}
.v2-footer-bottom a {
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.2s;
}
.v2-footer-bottom a:hover {
    color: #f7e50f;
}

/* The generic focus ring above is dark ink on a near-white halo, which is
   unreadable on #111827. orders.css carries a yellow variant for the same
   reason, but without `!important` it never beat the generic rule and has
   been inert. This one wins. */
.v2-footer-section a:focus-visible {
    outline: var(--v3-focus-width, 2px) solid #f7e50f !important;
    outline-offset: var(--v3-focus-offset, 2px) !important;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    /* Footer — 2x2 on tablet */
    .v2-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 32px;
    }
}

@media (max-width: 575.98px) {
    /* Footer — minimalist on mobile */
    .v2-footer-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .v2-footer-col:nth-child(1),
    .v2-footer-col:nth-child(2) {
        display: none;
    }
    .v2-footer-col h4 {
        font-size: 0.82rem;
        margin-bottom: 10px;
    }
    .v2-footer-col p {
        font-size: 0.8rem;
    }
    .v2-footer-main {
        padding: 20px 0 14px;
    }
    .v2-footer-bottom {
        gap: 4px;
    }
    .v2-footer-bottom p,
    .v2-footer-bottom a {
        font-size: 0.72rem;
    }
}

@media (min-width: 1400px) {
    .v2-footer-grid { gap: 48px; }
}

@media (min-width: 1920px) {
    .v2-footer-grid { gap: 64px; }
}

/* ═══════════════════════════════════════════════════════════
   PRIVACY POLICY PAGE
   ═══════════════════════════════════════════════════════════
   style-v3.css:64-79 makes `body` a centring flex container, so
   `.main-content` shrink-to-fits its widest child instead of
   filling the viewport. Every other v3 page opts out via a body
   class; this page had none, which is why its footer was trapped
   in the article column rather than running full-bleed. */
body.v3-privacy-view {
    display: block;
}

body.v3-privacy-view .main-content {
    margin-top: 65px !important;
    padding-top: 0 !important;
}

/* The blue header is not shared chrome — style-v3.css:134 paints the
   navbar white and each page opts into the gradient (book.css:979-987
   for /book, orders.css:41-48 for the order pages). This page was
   simply never opted in. Mirrors the orders.css treatment. */
body.v3-privacy-view #navbar {
    background: linear-gradient(125deg, #0f3d78 0%, #1158aa 58%, #1b6cd2 100%) !important;
    border-bottom: none !important;
    box-shadow: 0 8px 24px rgba(16, 61, 120, 0.22) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.v3-privacy-view #navbar.scrolled {
    background: linear-gradient(125deg, #0f3d78 0%, #1158aa 58%, #1b6cd2 100%) !important;
    border-bottom: none !important;
}

body.v3-privacy-view #navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.93) !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

body.v3-privacy-view #navbar .navbar-nav .nav-link:hover,
body.v3-privacy-view #navbar .navbar-nav .nav-link.active {
    color: #ffffff !important;
}

body.v3-privacy-view #navbar .navbar-nav .nav-link.active::after {
    width: 80%;
    background: var(--yellow-color, #f4c531);
}

body.v3-privacy-view #navbar .user-btn,
body.v3-privacy-view #navbar .user-btn i,
body.v3-privacy-view #navbar .v2-notif-bell-btn,
body.v3-privacy-view #navbar .v2-notif-bell-icon,
body.v3-privacy-view #navbar .v2-mobile-user-icon,
body.v3-privacy-view #navbar .v2-mobile-user-icon i {
    color: #ffffff !important;
}

body.v3-privacy-view #navbar .dropdown-toggle::after {
    border-top-color: #ffffff !important;
}

/* Unlike the order pages this one is public, so the guest links and the
   mobile toggler also have to survive the dark bar (book.css:1011-1040). */
body.v3-privacy-view #navbar .v2-guest-auth-link {
    color: rgba(255, 255, 255, 0.88);
}

body.v3-privacy-view #navbar .v2-guest-auth-link:hover {
    color: #f7e50f;
}

body.v3-privacy-view #navbar .v2-guest-auth-divider {
    color: rgba(255, 255, 255, 0.22);
}

body.v3-privacy-view #navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

body.v3-privacy-view #navbar .navbar-toggler-icon {
    filter: invert(1);
}

/* The article column keeps its own measure; the footer is its sibling and
   must not inherit it. */
body.v3-privacy-view .Termscontainer {
    padding-bottom: 48px;
}
