/* ==========================================================================
   01. DESIGN TOKENS: COLORS, TYPOGRAPHY, SPACING
   ========================================================================== */
:root {
    --front-primary: #34ad00;
    --front-primary-dark: #2f8f00;
    --front-secondary: #3f84b1;
    --front-secondary-dark: #2472a8;
    --front-text: #263238;
    --front-muted: #6c757d;
    --front-surface: #ffffff;
    --front-background: #f3f6f7;
    --front-border: #edf0f4;
    --front-success: #28a745;
    --front-warning: #ffc107;
    --front-danger: #dc3545;

    --front-font-family: Arial, sans-serif;
    --front-font-regular: 400;
    --front-font-semibold: 600;
    --front-font-bold: 700;
    --front-font-extrabold: 800;

    --front-text-xs: 0.75rem;
    --front-text-sm: 0.875rem;
    --front-text-base: 1rem;
    --front-text-lg: 1.125rem;
    --front-text-xl: 1.25rem;
    --front-text-2xl: 1.375rem;
    --front-text-3xl: 1.5rem;
    --front-text-4xl: 1.75rem;
    --front-text-5xl: 2rem;
    --front-text-6xl: 2.25rem;
    --front-text-display: 2.75rem;
    --front-icon-large: 4rem;
    --front-icon-watermark: 9.0625rem;

    --front-leading-tight: 1.2;
    --front-leading-base: 1.5;
}

/* Vehicle seat layout selector */
.front-booking-section {
    padding: 22px;
    margin-bottom: 28px;
    border: 1px solid var(--front-border);
    background: #f8fbfd;
}

.driver-edit-card .front-booking-section {
    padding: 0;
    margin-bottom: 0;
    border: 0;
    background: transparent;
}

.front-booking-heading {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.front-booking-heading__icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: 12px;
    background: #e8f4fb;
    color: var(--front-secondary);
    font-size: 18px;
}

.front-booking-heading h3 {
    margin: 0 0 4px;
    color: var(--front-secondary-dark);
    font-size: var(--front-text-lg);
    font-weight: var(--front-font-semibold);
}

.front-booking-heading p {
    margin: 0;
    color: var(--front-muted);
    font-size: var(--front-text-sm);
}

.front-booking-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.front-booking-option {
    margin: 0;
    cursor: pointer;
}

.front-booking-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.front-booking-option span {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid #dce4e8;
    background: var(--front-surface);
    color: var(--front-text);
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.front-booking-option i {
    margin-right: 9px;
    color: var(--front-muted);
}

.front-booking-option input:checked + span {
    border-color: var(--front-secondary);
    background: #edf7fc;
    color: var(--front-secondary-dark);
}

.front-booking-option input:checked + span i {
    color: var(--front-secondary);
}

.front-selected-layout,
.front-layout-empty {
    display: flex;
    align-items: center;
    padding: 14px;
    border: 1px solid #dce4e8;
    background: var(--front-surface);
}

.front-selected-layout img {
    width: 76px;
    height: 92px;
    margin-right: 14px;
    object-fit: contain;
}

.front-selected-layout__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.front-selected-layout__body small,
.front-selected-layout__body span {
    color: var(--front-muted);
}

.front-selected-layout__body strong {
    margin: 2px 0;
    color: var(--front-secondary-dark);
}

.front-layout-empty {
    justify-content: space-between;
    color: var(--front-muted);
}

.front-layout-empty i {
    margin-right: 7px;
    color: var(--front-secondary);
}

.front-booking-blocked {
    display: flex;
    align-items: flex-start;
    padding: 14px;
    margin-bottom: 18px;
    border-left: 3px solid #dc3545;
    background: #fff4f5;
}

.front-booking-blocked > i {
    margin: 3px 10px 0 0;
    color: #dc3545;
}

.front-booking-blocked div,
.front-booking-blocked span {
    display: flex;
    flex-direction: column;
}

.front-seat-type-modal {
    border: 0;
    border-radius: 0;
}

.front-seat-type-modal .modal-header,
.front-seat-type-modal .modal-footer {
    border-color: var(--front-border);
}

.front-seat-type-modal .modal-header p {
    margin: 4px 0 0;
    color: var(--front-muted);
    font-size: var(--front-text-sm);
}

.front-seat-type-modal .modal-footer span {
    margin-right: auto;
    color: var(--front-muted);
    font-size: var(--front-text-sm);
}

.front-seat-type-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 245px;
    padding: 12px;
    flex-direction: column;
    border: 2px solid #dce4e8;
    background: var(--front-surface);
    color: var(--front-text);
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.front-seat-type-card:hover,
.front-seat-type-card:focus,
.front-seat-type-card.is-selected {
    border-color: var(--front-secondary);
    box-shadow: 0 6px 18px rgba(25, 111, 156, .13);
    outline: none;
}

.front-seat-type-card__image {
    display: flex;
    height: 180px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    background: #f4f7f8;
}

.front-seat-type-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.front-seat-type-card small {
    margin-top: 3px;
    color: var(--front-muted);
}

.front-seat-type-card__check {
    position: absolute;
    top: 20px;
    right: 20px;
    display: none;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    background: var(--front-secondary);
    color: #fff;
}

.front-seat-type-card.is-selected .front-seat-type-card__check {
    display: flex;
}

.front-layout-empty-state {
    display: flex;
    padding: 30px;
    flex-direction: column;
    align-items: center;
    color: var(--front-muted);
    text-align: center;
}

.front-layout-empty-state > i {
    margin-bottom: 10px;
    color: var(--front-secondary);
    font-size: 30px;
}

@media (max-width: 575.98px) {
    .front-booking-section {
        padding: 16px;
    }

    .front-booking-toggle {
        grid-template-columns: 1fr;
    }

    .front-selected-layout,
    .front-layout-empty {
        align-items: stretch;
        flex-direction: column;
    }

    .front-selected-layout img {
        width: 100%;
        height: 150px;
        margin: 0 0 12px;
    }

    .front-selected-layout .btn,
    .front-layout-empty .btn {
        width: 100%;
        margin-top: 12px;
    }
}

.driver-seat-state {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .96);
    color: var(--front-secondary-dark);
}

.driver-seat-state__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.driver-seat-state__heading > div {
    display: grid;
}

.driver-seat-state__heading span {
    color: var(--front-muted);
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-bold);
    letter-spacing: .6px;
    text-transform: uppercase;
}

.driver-seat-state__heading strong {
    margin-top: 2px;
    font-size: var(--front-text-lg);
    font-weight: var(--front-font-semibold);
}

.driver-seat-reservations {
    margin-top: 18px;
    border-top: 1px solid var(--front-border);
}

.driver-seat-reservations h3 {
    margin: 16px 0 8px;
    color: var(--front-secondary-dark);
    font-size: var(--front-text-sm);
    font-weight: var(--front-font-semibold);
}

.driver-seat-reservation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--front-border);
    font-size: var(--front-text-sm);
}

.driver-seat-reservation:first-of-type {
    border-top: 0;
}

.driver-seat-reservation a {
    color: var(--front-secondary);
    font-weight: var(--front-font-semibold);
}

.driver-seat-reservation em,
.driver-seat-reservations__empty {
    margin: 0;
    color: var(--front-muted);
    font-size: var(--front-text-sm);
    font-style: normal;
}

.driver-seat-layout .public-seat.is-active {
    outline: 3px solid var(--front-primary);
    outline-offset: 2px;
}

.driver-seat-editor {
    max-width: 360px;
    margin: 16px auto 0;
    padding: 16px;
    border-top: 1px solid var(--front-border);
    background: var(--front-surface);
}

.driver-seat-editor__title {
    margin-bottom: 12px;
    color: var(--front-secondary-dark);
    font-size: var(--front-text-sm);
}

.driver-seat-editor__phone {
    margin-bottom: 12px;
}

.driver-seat-editor__phone label {
    color: var(--front-secondary-dark);
    font-size: var(--front-text-sm);
    font-weight: var(--front-font-semibold);
}

.driver-seat-editor__phone small {
    display: block;
    margin-top: 5px;
    color: var(--front-muted);
}

.driver-seat-editor__phone .form-control {
    min-height: 42px;
    border-color: var(--front-border);
    border-radius: 0;
}

.driver-seat-editor__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.driver-seat-editor__actions .btn {
    border-radius: 0;
    font-size: .8rem;
    font-weight: var(--front-font-semibold);
}

@media (max-width: 575.98px) {
    .driver-seat-state__heading,
    .driver-seat-reservation {
        align-items: stretch;
        flex-direction: column;
    }

    .driver-seat-state__heading .btn {
        width: 100%;
    }

    .driver-seat-editor__actions {
        display: grid;
    }
}

/* ==========================================================================
   02. GLOBAL LAYOUT, HEADER, NAVIGATION AND FOOTER
   ========================================================================== */

html,
body {
    min-height: 100%;
}

 body {
            margin: 0;
            font-family: var(--front-font-family);
            font-size: var(--front-text-base);
            line-height: var(--front-leading-base);
            color: #333;
            background: var(--front-background);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

button,
input,
select,
textarea {
    font-family: inherit;
}
        header {
    flex-shrink: 0;
}
/* Top utility bar */
.top-line {
            background: var(--front-secondary);
            color: var(--front-surface);
            font-size: var(--front-text-xs);
            height: 36px;
            display: flex;
            align-items: center;
        }
        .top-line a {
            color: var(--front-surface);
            text-decoration: none;
            font-weight: var(--front-font-semibold);
        }

        .top-line .top-login,
        .top-line .top-logout {
            padding: 0.25rem 0.5rem;
            border: 1px solid currentColor;
        }

        .top-line .top-logout {
            margin: 0;
            color: var(--front-surface);
            background: transparent;
            font-size: inherit;
            font-weight: var(--front-font-semibold);
            line-height: inherit;
            cursor: pointer;
        }

        .top-line .top-login:hover,
        .top-line .top-login:focus,
        .top-line .top-logout:hover,
        .top-line .top-logout:focus {
            color: var(--front-secondary-dark);
            background: var(--front-surface);
            outline: 0;
        }

        .top-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0.35rem;
            white-space: nowrap;
        }
/* Main header */
        .header-main {
            background: var(--front-surface);
            padding: 18px 0 16px;
        }
        .site-logo {
            font-size: var(--front-text-5xl);
            font-weight: var(--front-font-bold);
            line-height: 1;
            text-decoration: none;
            display: inline-block;
        }
        .site-logo:hover {
            text-decoration: none;
        }
        .logo-blue {
            color: var(--front-secondary);
        }
        .logo-green {
            color: var(--front-primary);
        }
                .header-links {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }
        .header-links a,
        .header-links span {
            color: var(--front-secondary);
            font-size: var(--front-text-sm);
            letter-spacing: 1px;
            margin: 0 24px;
            text-decoration: none;
        }
        .header-links a:hover {
            color: var(--front-primary);
        }
        .header-links .header-telegram-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 9px 14px;
            border: 1px solid var(--front-secondary);
            border-radius: 8px;
            transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
        }
        .header-links .header-telegram-link span { margin: 0; }
        .header-links .header-telegram-link i { color: #229ed9; font-size: 1.1rem; }
        .header-links .header-telegram-link:hover {
            border-color: var(--front-primary);
            background: rgba(34, 158, 217, 0.08);
            text-decoration: none;
        }
/* Primary navigation */
       .main-nav {
            background: var(--front-primary);
        }

        .main-nav .navbar {
            padding: 0;
        }

        .main-nav .nav-link {
            color: var(--front-surface) !important;
            padding: 13px 20px !important;
            font-size: var(--front-text-base);
        }
        .main-nav .nav-link:hover,
        .main-nav .nav-link.active {
            background: rgba(0, 0, 0, 0.12);
        }

        .navbar-toggler {
            border-color: rgba(255,255,255,.7);
            margin: 8px 0;
        }
        .navbar-toggler-icon-custom {
            color: var(--front-surface);
            font-size: var(--front-text-2xl);
        }
/* --------------------------------------------------------------------------
   03. HOME PAGE: HERO, ROUTE BOARD AND SERVICE SUMMARY
   -------------------------------------------------------------------------- */

/* Hero banner */
        .home-hero {
            min-height: 520px;
            display: flex;
            align-items: center;
            color: var(--front-surface);
            background:
                linear-gradient(90deg, rgba(20, 47, 60, 0.88), rgba(20, 47, 60, 0.3)),
                url('../images/home-hero.jpg') center / cover no-repeat;
        }

        .home-hero-content {
            width: 100%;
        }

        .home-hero-kicker {
            margin: 0 0 16px;
            color: var(--front-primary);
            font-size: var(--front-text-xs);
            font-weight: var(--front-font-bold);
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .home-hero h1 {
            max-width: 760px;
            margin: 0 0 22px;
            color: var(--front-surface);
            font-size: 3rem;
            font-weight: var(--front-font-semibold);
            line-height: 1.08;
        }

        .home-hero-lead {
            max-width: 620px;
            margin: 0 0 30px;
            color: rgba(255, 255, 255, 0.86);
            font-size: var(--front-text-lg);
        }

        .home-hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .home-hero-btn {
            min-height: 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 24px;
            font-weight: var(--front-font-bold);
            text-decoration: none;
        }

        .home-hero-btn:hover {
            text-decoration: none;
        }

        .home-hero-btn-primary {
            color: var(--front-surface);
            background: var(--front-primary);
        }

        .home-hero-btn-primary:hover {
            color: var(--front-surface);
            background: var(--front-primary-dark);
        }

        .home-hero-btn-light {
            color: var(--front-secondary-dark);
            background: var(--front-surface);
        }

        .home-hero-btn-light:hover {
            color: var(--front-secondary-dark);
            background: var(--front-border);
        }

/* Route introduction */
        .route-intro {
            background: var(--front-background);
        }

        .route-intro-inner {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            padding-top: 64px;
            padding-bottom: 36px;
        }

        .route-intro-kicker {
            margin: 0 0 16px;
            color: var(--front-primary);
            font-size: var(--front-text-xs);
            font-weight: var(--front-font-bold);
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .route-intro h1 {
            margin: 0 0 10px;
            color: var(--front-text);
            font-size: 2.5rem;
            font-weight: var(--front-font-regular);
            line-height: var(--front-leading-tight);
        }

        .route-intro-description {
            margin: 0;
            color: var(--front-muted);
        }

        .route-intro-date {
            display: grid;
            text-align: right;
        }

        .route-intro-date span {
            color: var(--front-muted);
            font-size: var(--front-text-sm);
        }

        .route-intro-date strong {
            color: var(--front-secondary);
            font-size: var(--front-text-4xl);
        }

/* Route board */
        .route-board {
            display: grid;
            gap: 36px;
            padding-bottom: 64px;
        }

        .route-board-group {
            min-width: 0;
        }

        .route-board-group-header {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 14px;
        }

        .route-board-group-header span {
            color: var(--front-muted);
            font-size: var(--front-text-xs);
            font-weight: var(--front-font-semibold);
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .route-board-group-header h2 {
            margin: 4px 0 0;
            color: var(--front-secondary-dark);
            font-size: var(--front-text-2xl);
            font-weight: var(--front-font-regular);
        }

        .route-board-list {
            display: grid;
            gap: 12px;
        }

        .route-board-item {
            min-height: 112px;
            display: grid;
            grid-template-columns: 90px minmax(0, 1fr);
            align-items: center;
            padding: 18px;
            background: var(--front-surface);
            border-left: 5px solid var(--front-primary);
            box-shadow: 0 4px 16px rgba(38, 50, 56, 0.05);
        }

        .route-board-number {
            color: var(--front-secondary);
            font-size: var(--front-text-4xl);
            font-weight: var(--front-font-extrabold);
        }

        .route-board-mobile-number {
            display: none;
        }

        .route-board-main {
            min-width: 0;
        }

        .route-board-main h3 {
            margin: 0 0 12px;
            overflow: hidden;
            color: var(--front-secondary-dark);
            font-size: var(--front-text-xl);
            font-weight: var(--front-font-regular);
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .route-board-directions {
            display: grid;
            gap: 8px;
        }

        .route-board-direction {
            min-height: 48px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding-left: 14px;
            background: var(--front-background);
        }

        .route-board-direction > div {
            min-width: 0;
            color: var(--front-text);
            font-size: var(--front-text-sm);
        }

        .route-board-direction > div i {
            margin: 0 8px;
            color: var(--front-primary);
        }

        .route-board-direction > div i:first-child {
            margin-left: 0;
        }

        .route-board-direction a {
            width: 48px;
            min-width: 48px;
            align-self: stretch;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--front-surface);
            background: var(--front-secondary);
        }

        .route-board-direction a:hover {
            color: var(--front-surface);
            text-decoration: none;
            background: var(--front-secondary-dark);
        }

        .route-board-empty {
            padding: 28px;
            color: var(--front-muted);
            text-align: center;
            background: var(--front-surface);
            border: 1px dashed #d4dde1;
        }

        .route-board-empty-main {
            display: grid;
            justify-items: center;
            gap: 8px;
            padding: 60px 24px;
        }

        .route-board-empty-main i {
            margin-bottom: 8px;
            color: var(--front-secondary);
            font-size: var(--front-text-5xl);
        }

/* Service summary */
        .service-summary {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 18px;
            padding-bottom: 60px;
        }

        .service-summary article {
            display: grid;
            grid-template-columns: 54px minmax(0, 1fr);
            padding: 22px;
            background: #e7f1f5;
        }

        .service-summary i {
            grid-row: span 2;
            align-self: center;
            color: var(--front-secondary);
            font-size: var(--front-text-3xl);
        }

        .service-summary strong {
            color: var(--front-secondary-dark);
            font-weight: var(--front-font-semibold);
        }

        .service-summary span {
            color: var(--front-muted);
            font-size: var(--front-text-sm);
        }
/* Main content area */
        .content {
            flex: 1 0 auto;
        }
/* Route statistics */
         .routes-stats {
        padding: 40px 0;
        background: #f8f9fa;
    }

    .routes-stat-card {
        background: var(--front-surface);
        padding: 25px;
        border-radius: 4px;
        height: 100%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .routes-stat-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        color: var(--front-secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--front-icon-large);
        margin-right: 28px;
    }

    .routes-stat-content h3 {
        margin: 0;
        font-size: var(--front-text-5xl);
        font-weight: var(--front-font-bold);
        color: var(--front-primary);
    }

    .routes-stat-content p {
        margin: 4px 0 0;
        font-size: var(--front-text-sm);
        text-transform: uppercase;
        color: #777;
    }
/* Footer */
        footer{
            background: var(--front-primary);
            text-align: center;
            padding: 0.5em 0;
            flex-shrink: 0;
        }
        footer p{
            color: var(--front-surface);
            font-size: var(--front-text-sm);
            line-height: 1.8em;
        }
        @media (min-width: 992px) {
            .main-nav .navbar-nav .nav-item:first-child .nav-link {
                padding-left: 0 !important;
            }
        }
        @media (max-width: 991px) {
            .route-board-item {
                grid-template-columns: 75px minmax(0, 1fr);
            }

            .header-main {
                padding: 15px 0;
            }

            .site-logo {
                font-size: var(--front-text-4xl);
            }

            .header-links {
                justify-content: flex-start;
                margin-top: 15px;
            }

            .header-links a,
            .header-links span {
                margin: 0 20px 0 0;
            }

            .home-hero {
                min-height: 460px;
            }

            .home-hero h1 {
                font-size: 2.6rem;
            }
        }

        @media (max-width: 575px) {
            .top-line {
                height: auto;
                padding: 7px 0;
                font-size: var(--front-text-xs);
            }

            .top-line .text-right {
                text-align: right !important;
            }

            .main-nav .nav-link {
                padding: 11px 0 !important;
            }

            .home-hero {
                min-height: 430px;
                background-position: 60% center;
            }

            .home-hero h1 {
                font-size: 2.1rem;
            }

            .home-hero-lead {
                font-size: var(--front-text-base);
            }

            .home-hero-kicker {
                margin-top: 0.5rem;
            }

            .home-hero-actions {
                margin-bottom: 0.5rem;
            }

            .route-intro-inner {
                align-items: flex-start;
                padding-top: 40px;
                padding-bottom: 28px;
            }

            .route-intro h1 {
                font-size: var(--front-text-xl);
            }

            .route-intro-date {
                display: none;
            }

            .route-board {
                gap: 28px;
                padding-bottom: 42px;
            }

            .service-summary {
                grid-template-columns: 1fr;
                gap: 12px;
                padding-bottom: 42px;
            }

            .route-board-group-header {
                align-items: flex-start;
            }

            .route-board-group-header h2 {
                font-size: var(--front-text-xl);
            }

            .route-board-item {
                grid-template-columns: minmax(0, 1fr);
                gap: 12px;
                padding: 16px 14px;
            }

            .route-board-number {
                display: none;
            }

            .route-board-mobile-number {
                display: inline;
                margin-right: 5px;
                color: var(--front-secondary);
                font-weight: var(--front-font-semibold);
            }

            .route-board-main {
                padding-right: 0;
            }

            .route-board-main h3 {
                font-size: var(--front-text-base);
                white-space: normal;
            }

            .route-board-direction {
                align-items: stretch;
                padding-left: 12px;
            }

            .route-board-direction > div {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                padding: 8px 0;
                line-height: 1.4;
            }

            .home-hero-btn {
                width: 100%;
            }
        }

/* Shared frontend form controls */
        .content .form-group > label {
            font-weight: var(--front-font-semibold);
        }

        .content .input-group-text {
            width: 44px;
            justify-content: center;
            background: #f8f9fa;
        }

/* ==========================================================================
   04. AUTHENTICATION: LOGIN PAGE
   ========================================================================== */

.login-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

.login-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.login-heading > a {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    place-items: center;
    color: var(--front-secondary);
    background: #edf5fb;
}

.login-heading span,
.login-aside > span {
    color: var(--front-primary);
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-bold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-heading h1 {
    margin: 2px 0 0;
    color: var(--front-secondary-dark);
    font-size: var(--front-text-4xl);
    font-weight: var(--front-font-regular);
}

.login-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 14px;
}

.login-aside {
    padding: 24px;
    color: var(--front-surface);
    background: var(--front-secondary-dark);
}

.login-aside h2 {
    margin: 10px 0 28px;
    color: var(--front-surface);
    font-size: var(--front-text-2xl);
    font-weight: var(--front-font-regular);
}

.login-aside ul {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.login-aside li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px;
    font-size: var(--front-text-sm);
}

.login-aside i {
    color: #8fd966;
}

    .login-box {
        padding: 28px;
        background: var(--front-surface);
    }

    .login-box-body label {
        color: var(--front-text);
        font-size: var(--front-text-xs);
        font-weight: var(--front-font-semibold);
    }

    .login-box .form-control {
        min-height: 44px;
        border-color: #dce4e8;
        border-radius: 0;
    }

    .login-box .input-group-text {
        color: var(--front-secondary);
        background: #edf5fb;
        border-color: #dce4e8;
        border-radius: 0;
    }

    .login-submit {
        background: var(--front-primary);
        border-color: var(--front-primary);
        color: var(--front-surface);
        font-weight: var(--front-font-bold);
        min-height: 46px;
        border-radius: 0;
    }

    .login-submit:hover {
        background: #218838;
        border-color: #1e7e34;
        color: var(--front-surface);
    }

    .login-links {
        margin-top: 18px;
        text-align: center;
        font-size: var(--front-text-base);
    }

    .login-links a {
        color: var(--front-secondary);
    }

    .login-links a:hover {
        color: var(--front-primary);
        text-decoration: none;
    }

    @media (max-width: 576px) {
        .login-wrap {
            padding: 24px 0 40px;
        }

        .login-heading {
            gap: 8px;
            margin-bottom: 14px;
        }

        .login-heading > a {
            width: 28px;
            min-width: 28px;
            height: 28px;
            font-size: var(--front-text-xs);
        }

        .login-heading span {
            display: none;
        }

        .login-heading h1 {
            margin: 0;
            font-size: var(--front-text-xl);
            white-space: nowrap;
        }

        .login-box {
            padding: 22px 0;
        }

        .login-links {
            font-size: var(--front-text-sm);
        }
    }

    @media (max-width: 800px) {
        .login-grid {
            grid-template-columns: 1fr;
        }

        .login-aside {
            padding: 14px 18px;
        }

        .login-aside > span,
        .login-aside h2 {
            display: none;
        }

        .login-aside ul {
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .login-aside li {
            grid-template-columns: auto 1fr;
            gap: 6px;
            font-size: var(--front-text-xs);
        }
    }

/* ==========================================================================
   05. DRIVER REGISTRATION
   ========================================================================== */

.driver-register-page {
    padding: 40px 0 60px;
}

.driver-register-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.driver-register-heading > a {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    place-items: center;
    color: var(--front-secondary);
    background: #edf5fb;
}

.driver-register-heading span,
.driver-register-aside > span {
    color: var(--front-primary);
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-bold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.driver-register-heading h1 {
    margin: 2px 0 4px;
    color: var(--front-secondary-dark);
    font-size: var(--front-text-4xl);
    font-weight: var(--front-font-regular);
}

.driver-register-heading p {
    margin: 0;
    color: var(--front-muted);
}

.driver-register-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.driver-register-aside {
    padding: 24px;
    color: var(--front-surface);
    background: var(--front-secondary-dark);
}

.driver-register-aside h2 {
    margin: 10px 0 28px;
    color: var(--front-surface);
    font-size: var(--front-text-2xl);
    font-weight: var(--front-font-regular);
}

.driver-register-aside ol {
    display: grid;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.driver-register-aside li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
}

.driver-register-aside li > i {
    padding-top: 2px;
    color: #8fd966;
}

.driver-register-aside b,
.driver-register-aside small {
    display: block;
}

.driver-register-aside b {
    font-weight: var(--front-font-regular);
}

.driver-register-aside small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.62);
}

    .driver-register-card {
        border: 0;
        background: var(--front-surface);
        border-radius: 0;
    }

    .driver-register-body {
        padding: 28px;
    }

    .driver-register-card .form-group > label {
        color: var(--front-text);
        font-size: var(--front-text-xs);
        font-weight: var(--front-font-semibold);
    }

    .driver-register-card .form-control {
        min-height: 44px;
        border-color: #dce4e8;
        border-radius: 0;
    }

    .driver-register-card .input-group-text,
    .driver-register-card .password-toggle {
        color: var(--front-secondary);
        background: #edf5fb;
        border-color: #dce4e8;
        border-radius: 0;
    }

    .form-section {
        margin-bottom: 34px;
    }

    .form-section:last-child {
        margin-bottom: 0;
    }

    .form-section-title {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--front-border);
        font-size: var(--front-text-xl);
        color: var(--front-secondary-dark);
        font-weight: var(--front-font-regular);
    }

    .form-section-title i {
        width: 28px;
        margin-right: 8px;
        color: var(--front-secondary);
        text-align: center;
    }

    .driver-register-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 28px;
        border-top: 1px solid var(--front-border);
        background: #fafbfc;
    }

    .driver-register-footer .btn {
        min-height: 44px;
        border-radius: 0;
    }

    .password-toggle {
        min-width: 44px;
        border-color: #ced4da;
        background: var(--front-surface);
    }

    .password-toggle:focus {
        box-shadow: none;
    }

    @media (max-width: 575.98px) {
        .driver-register-page {
            padding: 24px 0 40px;
        }

        .driver-register-heading {
            gap: 8px;
            margin-bottom: 14px;
        }

        .driver-register-heading > a {
            width: 28px;
            min-width: 28px;
            height: 28px;
            font-size: var(--front-text-xs);
        }

        .driver-register-heading span,
        .driver-register-heading p {
            display: none;
        }

        .driver-register-heading h1 {
            margin: 0;
            font-size: var(--front-text-xl);
            white-space: nowrap;
        }

        .driver-register-body,
        .driver-register-footer {
            padding-left: 0;
            padding-right: 0;
        }

        .driver-register-footer {
            flex-direction: column-reverse;
            align-items: stretch;
        }

        .driver-register-footer .btn {
            width: 100%;
        }

        .driver-register-footer .btn + .btn {
            margin-bottom: 10px;
        }
    }

    @media (max-width: 800px) {
        .driver-register-grid {
            grid-template-columns: 1fr;
        }

        .driver-register-aside {
            padding: 14px 18px;
        }

        .driver-register-aside > span,
        .driver-register-aside h2,
        .driver-register-aside small {
            display: none;
        }

        .driver-register-aside ol {
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .driver-register-aside li {
            grid-template-columns: auto 1fr;
            gap: 6px;
            font-size: var(--front-text-xs);
        }
    }

/* ==========================================================================
   06. INFORMATION PAGE
   ========================================================================== */

.info-page {
        padding: 34px 0 52px;
        color: var(--front-text);
    }

    .info-hero {
        padding: 36px 40px;
        margin-bottom: 24px;
        background: var(--front-secondary-dark);
        color: var(--front-surface);
    }

    .info-kicker {
        display: inline-block;
        margin-bottom: 14px;
        color: #b9ee9d;
        font-size: var(--front-text-xs);
        font-weight: var(--front-font-bold);
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .info-hero h1 {
        max-width: 700px;
        margin: 0 0 16px;
        font-size: var(--front-text-4xl);
        font-weight: var(--front-font-regular);
        line-height: 1.18;
    }

    .info-hero p {
        max-width: 680px;
        margin: 0 0 26px;
        color: rgba(255, 255, 255, .86);
        font-size: var(--front-text-lg);
        line-height: 1.65;
    }

    .info-actions {
        position: relative;
        z-index: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .info-btn {
        display: inline-flex;
        align-items: center;
        padding: 12px 20px;
        border: 1px solid transparent;
        border-radius: 0;
        font-weight: var(--front-font-semibold);
    }

    .info-btn i { margin-right: 9px; }
    .info-btn:hover { text-decoration: none; }
    .info-btn-primary { background: var(--front-primary); color: var(--front-surface); }
    .info-btn-primary:hover { background: var(--front-primary-dark); color: var(--front-surface); }
    .info-btn-light { border-color: rgba(255,255,255,.55); color: var(--front-surface); }
    .info-btn-light:hover { background: var(--front-surface); color: var(--front-secondary-dark); }

    .info-section {
        margin-top: 24px;
        padding: 30px;
        background: var(--front-surface);
        border: 0;
    }

    .info-section-heading { margin-bottom: 26px; }
    .info-section-heading h2 { margin: 0 0 8px; color: var(--front-secondary-dark); font-size: var(--front-text-3xl); font-weight: var(--front-font-regular); }
    .info-section-heading p { margin: 0; color: #6c777d; line-height: 1.6; }

    .info-steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .info-step {
        padding: 24px;
        background: var(--front-background);
        border-left: 4px solid var(--front-primary);
    }

    .info-step-number {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        margin-bottom: 17px;
        border-radius: 0;
        background: var(--front-secondary);
        color: var(--front-surface);
        font-weight: var(--front-font-bold);
    }

    .info-step h3 { margin: 0 0 9px; color: var(--front-secondary-dark); font-size: var(--front-text-lg); font-weight: var(--front-font-regular); }
    .info-step p { margin: 0; color: #657178; line-height: 1.55; }

    .info-audiences {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin-top: 24px;
    }

    .info-audience {
        padding: 30px;
        background: var(--front-surface);
        border: 0;
    }

    .info-audience-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        margin-bottom: 18px;
        border-radius: 0;
        background: #edf5fb;
        color: var(--front-secondary-dark);
        font-size: var(--front-text-xl);
    }

    .info-audience.driver .info-audience-icon { background: #e7f5df; color: var(--front-primary-dark); }
    .info-audience h2 { margin: 0 0 17px; color: var(--front-secondary-dark); font-size: var(--front-text-2xl); font-weight: var(--front-font-regular); }
    .info-list { padding: 0; margin: 0; list-style: none; }
    .info-list li { position: relative; padding: 0 0 13px 27px; color: #58646a; line-height: 1.5; }
    .info-list li:last-child { padding-bottom: 0; }
    .info-list i { position: absolute; top: 4px; left: 0; color: var(--front-primary); }

    .info-note {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 24px;
        padding: 27px 30px;
        color: var(--front-surface);
        background: var(--front-secondary-dark);
        border-left: 5px solid var(--front-primary);
    }

    .info-note h2 { margin: 0 0 6px; color: var(--front-surface); font-size: var(--front-text-xl); font-weight: var(--front-font-regular); }
    .info-note p { margin: 0; color: rgba(255, 255, 255, .72); }
    .info-phone { flex-shrink: 0; margin-left: 25px; color: #b9ee9d; font-size: var(--front-text-xl); font-weight: var(--front-font-semibold); }
    .info-phone:hover { color: var(--front-surface); text-decoration: none; }

    @media (max-width: 767px) {
        .info-page { padding: 20px 0 32px; }
        .info-hero { padding: 30px 22px; }
        .info-hero h1 { font-size: var(--front-text-4xl); }
        .info-hero p { font-size: var(--front-text-base); }
        .info-actions, .info-btn { width: 100%; }
        .info-btn { justify-content: center; }
        .info-section { padding: 25px 20px; }
        .info-steps, .info-audiences { grid-template-columns: 1fr; }
        .info-note { display: block; padding: 24px 20px; }
        .info-phone { display: inline-block; margin: 17px 0 0; }
    }

/* ==========================================================================
   07. HELP PAGE
   ========================================================================== */

.help-page {
        padding: 34px 0 52px;
        color: var(--front-text);
    }

    .help-header {
        padding: 36px 40px;
        margin-bottom: 24px;
        background: var(--front-secondary-dark);
        color: var(--front-surface);
    }

    .help-header-content { position: relative; z-index: 1; max-width: 720px; }
    .help-label {
        display: inline-block;
        margin-bottom: 12px;
        color: #b9ee9d;
        font-size: var(--front-text-xs);
        font-weight: var(--front-font-bold);
        letter-spacing: .09em;
        text-transform: uppercase;
    }
    .help-header h1 { margin: 0 0 13px; font-size: var(--front-text-4xl); font-weight: var(--front-font-regular); }
    .help-header p { margin: 0; color: rgba(255,255,255,.86); font-size: var(--front-text-lg); line-height: 1.6; }

    .help-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 24px;
        align-items: start;
    }

    .help-card {
        padding: 32px;
        background: var(--front-surface);
        border: 0;
    }

    .help-card-title { margin: 0 0 8px; color: var(--front-secondary-dark); font-size: var(--front-text-3xl); font-weight: var(--front-font-regular); }
    .help-card-intro { margin: 0 0 27px; color: #68747a; line-height: 1.6; }

    .help-steps { position: relative; }
    .help-step { position: relative; display: flex; padding-bottom: 28px; }
    .help-step:last-child { padding-bottom: 0; }
    .help-step:not(:last-child)::before {
        position: absolute;
        top: 43px;
        bottom: 6px;
        left: 20px;
        width: 2px;
        background: #dce8ee;
        content: '';
    }

    .help-step-icon {
        position: relative;
        z-index: 1;
        display: flex;
        flex: 0 0 42px;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-right: 18px;
        border-radius: 0;
        background: var(--front-secondary);
        color: var(--front-surface);
        font-weight: var(--front-font-bold);
    }

    .help-step-body { padding-top: 2px; }
    .help-step h2 { margin: 0 0 7px; color: var(--front-secondary-dark); font-size: var(--front-text-lg); font-weight: var(--front-font-regular); }
    .help-step p { margin: 0; color: #657178; line-height: 1.55; }
    .help-step-note {
        display: inline-block;
        margin-top: 9px;
        padding: 6px 10px;
        background: #f2f6f8;
        color: #526168;
        font-size: var(--front-text-xs);
    }

    .help-sidebar { display: grid; gap: 18px; }
    .help-side-card {
        padding: 25px;
        background: var(--front-surface);
        border: 0;
        border-left: 4px solid var(--front-secondary);
    }
    .help-side-icon { margin-bottom: 14px; color: var(--front-secondary-dark); font-size: var(--front-text-3xl); }
    .help-side-card h2 { margin: 0 0 9px; color: var(--front-secondary-dark); font-size: var(--front-text-lg); font-weight: var(--front-font-regular); }
    .help-side-card p { margin: 0 0 16px; color: #68747a; line-height: 1.5; }
    .help-side-card a { color: var(--front-secondary-dark); font-weight: var(--front-font-bold); }
    .help-side-card a:hover { color: var(--front-primary); text-decoration: none; }

    .help-action {
        display: block;
        padding: 12px 16px;
        background: var(--front-primary);
        color: var(--front-surface) !important;
        text-align: center;
        border-radius: 0;
    }
    .help-action:hover { background: var(--front-primary-dark); }

    .help-warning {
        padding: 22px 24px;
        margin-top: 24px;
        background: #fff9e8;
        border-left: 4px solid #e5aa18;
        color: #655724;
        line-height: 1.55;
    }
    .help-warning strong { display: block; margin-bottom: 4px; color: #4d431f; }

    @media (max-width: 991px) {
        .help-layout { grid-template-columns: 1fr; }
        .help-sidebar { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 767px) {
        .help-page { padding: 20px 0 32px; }
        .help-header { padding: 30px 22px; }
        .help-header h1 { font-size: var(--front-text-4xl); }
        .help-header p { font-size: var(--front-text-base); }
        .help-card { padding: 25px 20px; }
        .help-card-title { font-size: var(--front-text-3xl); }
        .help-sidebar { grid-template-columns: 1fr; }
        .help-step-icon { margin-right: 14px; }
    }

/* ==========================================================================
   08. ORDER CREATION
   ========================================================================== */

.order-compact-page {
    padding: 40px 0 56px;
}

.order-compact-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.order-compact-heading > a {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--front-secondary);
    background: #edf5fb;
}

.order-compact-heading span,
.order-compact-route > span {
    color: var(--front-primary);
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-bold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.order-compact-heading h1 {
    margin: 2px 0 0;
    color: var(--front-secondary-dark);
    font-size: var(--front-text-4xl);
    font-weight: var(--front-font-regular);
}

.order-compact-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 14px;
}

.order-compact-route {
    padding: 24px;
    color: var(--front-surface);
    background: var(--front-secondary-dark);
}

.order-compact-route h2 {
    margin: 10px 0 26px;
    color: var(--front-surface);
    font-size: var(--front-text-2xl);
    font-weight: var(--front-font-regular);
}

.order-compact-points {
    display: grid;
    gap: 14px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.order-compact-points i {
    color: #8fd966;
}

.order-compact-points strong {
    font-weight: var(--front-font-regular);
}

.order-compact-route dl {
    display: grid;
    gap: 1px;
    margin: 28px 0 0;
    background: rgba(255, 255, 255, 0.12);
}

.order-compact-route dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    background: var(--front-secondary-dark);
}

.order-compact-route dt {
    color: rgba(255, 255, 255, 0.65);
    font-weight: var(--front-font-regular);
}

.order-compact-route dd {
    margin: 0;
    text-align: right;
}

.order-compact-form {
    padding: 24px;
    background: var(--front-surface);
}

.order-compact-form .order-form-heading {
    margin-bottom: 20px;
}

.order-compact-form .order-type-title {
    color: var(--front-secondary-dark);
    font-size: var(--front-text-base);
    font-weight: var(--front-font-semibold);
}

.order-compact-form .form-group > label {
    color: var(--front-text);
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-semibold);
}

.order-compact-form .form-control {
    min-height: 44px;
    border-color: #dce4e8;
    border-radius: 0;
}

.order-compact-form textarea.form-control {
    min-height: 86px;
}

.order-compact-form .input-group-text {
    color: var(--front-secondary);
    background: #edf5fb;
    border-color: #dce4e8;
    border-radius: 0;
}

.order-compact-form .order-submit {
    min-height: 48px;
    border-radius: 0;
}

.order-compact-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.order-compact-tabs a {
    padding: 10px 16px;
    color: var(--front-muted);
    background: var(--front-background);
}

.order-compact-tabs a.active {
    color: var(--front-surface);
    background: var(--front-secondary);
}

@media (max-width: 800px) {
    .order-compact-grid {
        grid-template-columns: 1fr;
    }

    .order-compact-route {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px 24px;
        padding: 16px 18px;
    }

    .order-compact-route > span,
    .order-compact-route h2 {
        display: none;
    }

    .order-compact-points {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-left: 0;
        border-left: 0;
    }

    .order-compact-points i {
        transform: rotate(-90deg);
    }

    .order-compact-route dl {
        grid-template-columns: repeat(2, auto);
        gap: 20px;
        margin: 0;
        background: transparent;
    }

    .order-compact-route dl div {
        display: grid;
        gap: 0;
        padding: 0;
    }
}

@media (max-width: 575px) {
    .order-compact-page {
        padding: 24px 0 40px;
    }

    .order-compact-heading {
        gap: 8px;
        margin-bottom: 14px;
    }

    .order-compact-heading > a {
        width: 28px;
        min-width: 28px;
        height: 28px;
        font-size: var(--front-text-xs);
    }

    .order-compact-heading span {
        display: none;
    }

    .order-compact-heading h1 {
        margin: 0;
        font-size: var(--front-text-xl);
        white-space: nowrap;
    }

    .order-compact-route {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 14px;
    }

    .order-compact-points {
        font-size: var(--front-text-sm);
    }

    .order-compact-route dl {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        font-size: var(--front-text-xs);
    }

    .order-compact-form {
        padding: 18px 0;
    }

    .order-compact-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .order-compact-tabs a {
        padding: 9px 8px;
        font-size: var(--front-text-xs);
        text-align: center;
    }
}

.order-type-title {
    margin-bottom: 10px;
    font-size: var(--front-text-lg);
    font-weight: var(--front-font-bold);
    color: var(--front-text);
}

.order-form-heading {
    margin-bottom: 24px;
}

.order-opposite-link {
    font-size: var(--front-text-xs);
}

.order-submit {
    border-color: var(--front-primary);
    background: var(--front-primary);
}

.order-submit:hover,
.order-submit:focus {
    border-color: var(--front-primary-dark);
    background: var(--front-primary-dark);
}

/* ==========================================================================
   09. NEW ORDERS LIST
   ========================================================================== */

.orders-page {
    padding: 36px 0 55px;
}

.orders-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.orders-header > a {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    place-items: center;
    color: var(--front-secondary);
    background: #edf5fb;
}

.orders-header span {
    color: var(--front-primary);
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-bold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.orders-title {
    margin: 2px 0 4px;
    color: var(--front-secondary-dark);
    font-size: var(--front-text-4xl);
    font-weight: var(--front-font-regular);
}

.orders-subtitle {
    margin: 0;
    color: #607d8b;
}

.orders-route-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
    padding: 16px 20px;
    color: var(--front-surface);
    background: var(--front-secondary-dark);
}

.orders-route-summary-icon {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    place-items: center;
    color: #8fd966;
    background: rgba(255, 255, 255, .12);
}

.orders-route-summary span,
.orders-route-summary strong {
    display: block;
}

.orders-route-summary span {
    color: rgba(255, 255, 255, .65);
    font-size: var(--front-text-xs);
    letter-spacing: .6px;
    text-transform: uppercase;
}

.orders-route-summary strong {
    font-size: var(--front-text-lg);
    font-weight: var(--front-font-regular);
}

.orders-route-summary b {
    margin-left: 6px;
    color: #8fd966;
    font-weight: var(--front-font-regular);
}

.orders-direction-section {
    margin-bottom: 30px;
}

.orders-direction-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
    font-size: var(--front-text-xl);
    color: var(--front-secondary-dark);
    font-weight: var(--front-font-regular);
}

.orders-current-badge {
    margin-left: 4px;
    padding: 4px 8px;
    border-radius: 0;
    background: #eaf6e4;
    color: var(--front-primary-dark);
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-semibold);
}

.order-list-card {
    height: 100%;
    border: 0;
    border-left: 4px solid var(--front-primary);
    border-radius: 0;
    box-shadow: none;
}

.order-list-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.order-customer-name {
    margin-bottom: 12px;
    font-size: var(--front-text-lg);
    font-weight: var(--front-font-bold);
    color: var(--front-text);
}

.order-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 9px;
    color: #455a64;
    overflow-wrap: anywhere;
}

.order-detail > i {
    width: 22px;
    margin-top: 3px;
    color: var(--front-primary);
    flex: 0 0 22px;
}

.order-comment {
    margin: 5px 0 15px;
    padding: 10px 12px;
    border-radius: 0;
    background: #f5f7f8;
    color: #546e7a;
    overflow-wrap: anywhere;
}

.order-card-actions {
    margin-top: auto;
    padding-top: 7px;
}

.order-card-actions .btn,
.order-card-actions form {
    width: 100%;
}

.orders-empty {
    padding: 22px;
    border-radius: 0;
    background: #f5f7f8;
    color: #607d8b;
}

.contact-phone-number {
    font-size: var(--front-text-3xl);
    font-weight: var(--front-font-bold);
    color: var(--front-text);
}

.orders-page .order-list-card,
.orders-page .order-list-card .btn,
.orders-page .orders-back-link,
.orders-page + .modal .modal-content,
.orders-page + .modal .btn {
    border-radius: 0;
}

.orders-page .order-list-card {
    box-shadow: none;
}

.orders-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #dce4e8;
    background: #edf5fb;
    color: var(--front-secondary-dark);
    font-weight: var(--front-font-semibold);
}

.orders-back-link:hover,
.orders-back-link:focus {
    border-color: var(--front-secondary);
    background: var(--front-secondary);
    color: var(--front-surface);
    box-shadow: none;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .orders-page {
        padding-top: 24px;
    }

    .orders-title {
        font-size: var(--front-text-xl);
        white-space: nowrap;
    }

    .orders-header {
        gap: 8px;
        margin-bottom: 14px;
    }

    .orders-header > a {
        width: 28px;
        min-width: 28px;
        height: 28px;
        font-size: var(--front-text-xs);
    }

    .orders-header span,
    .orders-header p {
        display: none;
    }

    .orders-route-summary {
        padding: 12px 14px;
    }

    .orders-direction-title {
        align-items: flex-start;
        font-size: var(--front-text-base);
    }

    .orders-current-badge {
        width: 100%;
        margin: 2px 0 0;
        padding-left: 0;
        background: transparent;
        white-space: nowrap;
    }

    .order-list-card .card-body {
        padding: 17px;
    }

    .orders-back-link {
        width: 100%;
    }
}

/* ==========================================================================
   10. DRIVER CABINET AND DRIVER STATES
   ========================================================================== */

.driver-cabinet-page {
    min-height: calc(100vh - 160px);
    padding: 40px 0 55px;
}

.cabinet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.cabinet-kicker {
    color: var(--front-primary);
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-bold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cabinet-title {
    margin: 2px 0 4px;
    color: var(--front-secondary-dark);
    font-size: var(--front-text-4xl);
    font-weight: var(--front-font-regular);
}

.cabinet-subtitle {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    color: var(--front-muted);
    font-size: var(--front-text-base);
}

.cabinet-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.driver-cabinet-page .btn,
.btn-state-deactivate {
    border-radius: 0;
}

.driver-info-dropdown {
    display: inline-block;
    margin-left: 8px;
}

.driver-info-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--front-secondary);
    color: var(--front-surface);
    cursor: pointer;
    transition: .2s ease;
}

.driver-info-toggle:hover,
.driver-info-toggle:focus {
    background: #0056b3;
    color: var(--front-surface);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .15);
}

.driver-info-card {
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    width: 320px;
    margin: 0;
    padding: 0;
    transform: none !important;
    border: 0;
    border-radius: 0;
    background: var(--front-surface);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .14);
    overflow: hidden;
}

.driver-info-profile {
    display: flex;
    align-items: center;
    padding: 18px;
    background: #f7f9fc;
}

.driver-info-photo,
.driver-info-placeholder {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-right: 12px;
    border: 3px solid var(--front-surface);
    border-radius: 50%;
    background: #e9ecef;
    color: #9098a1;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.driver-info-name {
    color: #212529;
    font-size: var(--front-text-base);
    font-weight: var(--front-font-bold);
}

.driver-info-phone {
    margin-top: 2px;
    color: var(--front-muted);
    font-size: var(--front-text-sm);
}

.driver-info-vehicle {
    padding: 14px 18px 17px;
}

.driver-info-vehicle-title {
    margin-bottom: 8px;
    color: #7a828b;
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-bold);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.driver-info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: var(--front-muted);
    font-size: var(--front-text-sm);
}

.driver-info-row strong {
    padding-left: 12px;
    color: #242a30;
    text-align: right;
}

/* Pending moderation */

.pending-banner {
    max-width: 760px;
    margin: 35px auto;
    padding: 45px 35px;
    border-radius: 0;
    background: var(--front-surface);
    box-shadow: none;
    text-align: center;
}

.pending-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #fff3cd;
    color: #d39e00;
    font-size: var(--front-text-6xl);
}

.pending-banner-title {
    margin-bottom: 14px;
    color: #212529;
    font-size: var(--front-text-4xl);
    font-weight: var(--front-font-regular);
}

.pending-banner-text {
    max-width: 600px;
    margin: 0 auto;
    color: var(--front-muted);
    font-size: var(--front-text-base);
    line-height: 1.7;
}

/* Cabinet panels */

.cabinet-card {
    margin-bottom: 20px;
    border: 0;
    border-radius: 0;
    background: var(--front-surface);
    box-shadow: none;
    overflow: hidden;
}

.cabinet-card-header {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 15px 20px;
    border-bottom: 1px solid #edf0f3;
    background: var(--front-surface);
}

.cabinet-card-header>i {
    width: 31px;
    color: var(--front-secondary);
    font-size: var(--front-text-lg);
}

.cabinet-card-title {
    margin: 0;
    color: #292f36;
    font-size: var(--front-text-lg);
    font-weight: var(--front-font-regular);
}

.cabinet-card-body {
    padding: 20px;
}

.current-route-summary {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    border: 0;
    border-radius: 0;
    background: var(--front-secondary-dark);
    color: var(--front-surface);
    box-shadow: none;
}

.current-route-summary-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: 13px;
    border-radius: 0;
    background: rgba(255, 255, 255, .12);
    color: #8fd966;
    font-size: var(--front-text-lg);
}

.current-route-summary-label {
    margin-bottom: 2px;
    color: rgba(255, 255, 255, .65);
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-bold);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.current-route-summary-name {
    color: var(--front-surface);
    font-size: var(--front-text-lg);
    font-weight: var(--front-font-bold);
}

.current-route-summary-number {
    margin-left: 7px;
    color: #8fd966;
}

.current-route-order-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.current-route-orders-link {
    white-space: nowrap;
}

.current-direction-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.current-direction-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #ccd5df;
    border-radius: 0;
    background: var(--front-surface);
    color: #495057;
    font-weight: var(--front-font-semibold);
    text-align: center;
    transition: .2s ease;
}

.current-direction-button:hover,
.current-direction-button:focus {
    border-color: #007bff;
    color: #007bff;
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .08);
}

.current-direction-button.is-active {
    border-color: var(--front-secondary);
    background: var(--front-secondary);
    color: var(--front-surface);
    box-shadow: none;
}

.current-direction-button i {
    margin-right: 9px;
}

/* Current driver state */

.current-state-card {
    position: relative;
    margin-bottom: 20px;
    border-radius: 0;
    color: var(--front-surface);
    box-shadow: none;
    overflow: hidden;
}

.current-state-card::after {
    position: absolute;
    right: -20px;
    bottom: -50px;
    font-family: "Font Awesome 5 Free";
    font-size: var(--front-icon-watermark);
    font-weight: 900;
    opacity: .09;
}

.state-blocked {
    background: linear-gradient(135deg, #c82333, #8e1521);
}

.state-blocked::after {
    content: "\f05e";
}

.state-inactive {
    background: linear-gradient(135deg, var(--front-muted), #495057);
}

.state-inactive::after {
    content: "\f011";
}

.state-waiting {
    background: linear-gradient(135deg, #17a2b8, #087b8c);
}

.state-waiting::after {
    content: "\f017";
}

.state-queue {
    background: linear-gradient(135deg, #6f42c1, #4d2694);
}

.state-queue::after {
    content: "\f0cb";
}

.state-loading {
    background: linear-gradient(135deg, var(--front-success), #18782e);
}

.state-loading::after {
    content: "\f0c0";
}

.state-route {
    background: linear-gradient(135deg, #007bff, #0054ad);
}

.state-route::after {
    content: "\f4d7";
}

.state-unknown {
    background: linear-gradient(135deg, #343a40, #1f2327);
}

.state-unknown::after {
    content: "\f071";
}

.current-state-body {
    position: relative;
    z-index: 2;
    padding: 26px;
}

.current-state-body.has-state-action {
    padding-right: 26px;
}

.current-state-body.has-state-action .current-state-heading {
    padding-right: 184px;
}

.state-deactivate-form {
    position: absolute;
    top: 26px;
    right: 26px;
}

.btn-state-deactivate {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid var(--front-danger);
    border-radius: 0;
    background: var(--front-danger);
    color: var(--front-surface);
    font-weight: var(--front-font-semibold);
    white-space: nowrap;
    transition: .2s ease;
}

.btn-state-deactivate:hover,
.btn-state-deactivate:focus {
    border-color: #bd2130;
    background: #c82333;
    color: var(--front-surface);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .25);
}

.btn-state-deactivate:disabled {
    border-color: rgba(255, 255, 255, .45);
    background: rgba(220, 53, 69, .55);
    color: rgba(255, 255, 255, .8);
    cursor: not-allowed;
    box-shadow: none;
}

.current-state-heading {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.current-state-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    font-size: var(--front-text-xl);
}

.current-state-label {
    margin-bottom: 2px;
    font-size: var(--front-text-xs);
    text-transform: uppercase;
    letter-spacing: .8px;
    opacity: .82;
}

.current-state-title {
    margin-bottom: 0;
    font-size: var(--front-text-3xl);
    font-weight: var(--front-font-regular);
}

.current-state-text {
    max-width: 720px;
    margin-bottom: 0;
    line-height: 1.65;
    opacity: .94;
}

.waiting-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 17px;
}

.waiting-state-actions form {
    margin: 0;
}

.in-queue-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 17px;
}

.in-queue-loading-vehicle {
    display: flex;
    align-items: center;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
}

.in-queue-loading-icon {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .17);
}

.in-queue-loading-label,
.in-queue-loading-vehicle strong,
.in-queue-loading-vehicle a {
    display: block;
}

.in-queue-loading-label {
    margin-bottom: 2px;
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-bold);
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .78;
}

.in-queue-loading-vehicle strong {
    color: var(--front-surface);
    font-size: var(--front-text-sm);
}

.in-queue-loading-vehicle a {
    margin-top: 2px;
    color: var(--front-surface);
    font-size: var(--front-text-xs);
    opacity: .9;
}

.in-queue-loading-vehicle a:hover {
    color: var(--front-surface);
    opacity: 1;
}

.in-queue-stat {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    text-align: center;
}

.in-queue-stat strong,
.in-queue-stat span {
    display: block;
}

.in-queue-stat strong {
    margin-bottom: 2px;
    font-size: var(--front-text-3xl);
    line-height: 1.1;
}

.in-queue-stat span {
    font-size: var(--front-text-xs);
    opacity: .86;
}

.in-queue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.in-queue-actions form {
    margin: 0;
}

.queue-move-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    gap: 6px;
    box-shadow: none;
}

.queue-move-button.is-forward {
    border: 1px solid var(--front-surface);
    border-left: 4px solid #8fd966;
    background: var(--front-surface);
    color: var(--front-secondary-dark);
}

.queue-move-button.is-forward:hover,
.queue-move-button.is-forward:focus {
    border-color: #8fd966;
    background: #edf8e8;
    color: var(--front-secondary-dark);
    box-shadow: none;
}

.queue-move-button.is-back {
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .1);
    color: var(--front-surface);
}

.queue-move-button.is-back:hover,
.queue-move-button.is-back:focus {
    border-color: var(--front-surface);
    background: rgba(255, 255, 255, .2);
    color: var(--front-surface);
    box-shadow: none;
}

.loading-route-trigger {
    margin-top: 17px;
    border-color: #124f20;
    background: #124f20;
    color: var(--front-surface);
    box-shadow: none;
}

.loading-route-trigger:hover,
.loading-route-trigger:focus {
    border-color: #0c3f18;
    background: #0c3f18;
    color: var(--front-surface);
    box-shadow: none;
}

.loading-route-trigger:disabled,
.loading-route-trigger.disabled {
    border-color: #344c3a;
    background: #344c3a;
    color: rgba(255, 255, 255, .72);
    opacity: 1;
}

.loading-seats-modal {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 28, 40, .66);
    opacity: 0;
    transition: opacity .18s ease;
}

.loading-seats-modal[hidden] {
    display: none;
}

.loading-seats-modal.is-open {
    opacity: 1;
}

.loading-modal-open {
    overflow: hidden;
}

.loading-seats-dialog {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 28px;
    border-radius: 0;
    background: var(--front-surface);
    color: #212529;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
    text-align: center;
    transform: translateY(12px) scale(.98);
    transition: transform .18s ease;
}

.loading-seats-modal.is-open .loading-seats-dialog {
    transform: translateY(0) scale(1);
}

.loading-seats-close {
    position: absolute;
    top: 10px;
    right: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--front-muted);
    font-size: var(--front-text-4xl);
    line-height: 1;
    cursor: pointer;
}

.loading-seats-dialog-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 0;
    background: #e7f6eb;
    color: var(--front-success);
    font-size: var(--front-text-3xl);
}

.loading-seats-dialog h3 {
    margin-bottom: 7px;
    font-size: var(--front-text-3xl);
    color: var(--front-secondary-dark);
    font-weight: var(--front-font-regular);
}

.loading-seats-dialog > p {
    margin-bottom: 19px;
    color: var(--front-muted);
}

.loading-seats-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 18px;
}

.loading-seats-options label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.loading-seats-options input {
    position: absolute;
    opacity: 0;
}

.loading-seats-options span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 8px 16px;
    border: 1px solid #dce4e8;
    border-radius: 0;
    background: var(--front-surface);
    color: #495057;
    font-weight: var(--front-font-semibold);
}

.loading-seats-options input:checked + span {
    border-color: var(--front-secondary);
    background: #edf5fb;
    color: var(--front-secondary-dark);
    box-shadow: inset 4px 0 0 var(--front-primary);
}

.loading-seats-options input:focus + span {
    border-color: var(--front-secondary);
    outline: 0;
}

.loading-state-error {
    margin: -7px 0 13px;
    color: var(--front-danger);
    font-weight: var(--front-font-semibold);
}

.loading-seats-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.loading-seats-dialog-actions .btn {
    min-height: 44px;
    border-radius: 0;
}

.en-route-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    color: var(--front-surface);
    font-weight: var(--front-font-bold);
}

.en-route-availability.is-full {
    background: rgba(20, 31, 44, .22);
    color: #f1f3f5;
}

.en-route-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.en-route-actions form {
    margin: 0;
}

.vehicle-plate {
    display: inline-block;
    padding: 4px 10px;
    border: 2px solid #343a40;
    border-radius: 5px;
    background: var(--front-surface);
    color: #212529;
    font-weight: var(--front-font-bold);
    letter-spacing: 1px;
}

/* Driver state actions */

.action-box {
    padding: 20px;
    border: 1px solid #e6e9ed;
    border-radius: 12px;
    background: #fafbfc;
}

.action-box-title {
    margin-bottom: 7px;
    font-size: var(--front-text-lg);
    font-weight: var(--front-font-bold);
}

.action-box-text {
    margin-bottom: 17px;
    color: var(--front-muted);
    line-height: 1.55;
}

.btn-cabinet {
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 0;
    font-weight: var(--front-font-semibold);
}

.line-activation-card .cabinet-card-header {
    border-bottom-color: #dce4e8;
}

.line-activation-box {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--front-surface);
}

.line-activation-box .action-box-title {
    color: var(--front-secondary-dark);
    font-weight: var(--front-font-regular);
}

.line-activation-box .row {
    margin-right: -6px;
    margin-left: -6px;
}

.line-activation-box .row > div {
    padding-right: 6px;
    padding-left: 6px;
}

.direction-option {
    position: relative;
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
}

.direction-option input {
    position: absolute;
    opacity: 0;
}

.direction-content {
    display: flex;
    align-items: center;
    min-height: 78px;
    padding: 15px;
    border: 1px solid #dce4e8;
    border-radius: 0;
    background: var(--front-surface);
    transition: .2s ease;
}

.direction-content>i {
    flex: 0 0 35px;
    width: 35px;
    color: var(--front-secondary);
    font-size: var(--front-text-xl);
}

.direction-option input:checked+.direction-content {
    border-color: var(--front-secondary);
    background: #edf5fb;
    box-shadow: none;
}

.direction-title {
    display: block;
    color: #212529;
    font-weight: var(--front-font-regular);
}

@media (max-width: 767.98px) {
    .driver-cabinet-page {
        padding: 25px 0 40px;
    }

    .cabinet-title {
        font-size: var(--front-text-xl);
        white-space: nowrap;
    }

    .cabinet-header {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .cabinet-kicker {
        display: none;
    }

    .cabinet-header-actions {
        justify-content: stretch;
        margin-top: 0;
    }

    .cabinet-header-actions .btn {
        width: 100%;
    }

    .line-activation-card .cabinet-card-header,
    .line-activation-card .cabinet-card-body {
        padding-right: 0;
        padding-left: 0;
    }

    .line-activation-box .btn-cabinet {
        width: 100%;
    }

    .pending-banner {
        margin: 20px auto;
        padding: 32px 20px;
    }

    .pending-banner-title {
        font-size: var(--front-text-3xl);
    }

    .pending-banner-text {
        font-size: var(--front-text-base);
    }

    .driver-info-card {
        right: 0 !important;
        left: 0 !important;
        width: 100%;
        max-width: none;
    }

    .driver-info-dropdown {
        position: static;
    }

    .current-route-summary {
        padding: 14px 16px;
    }

    .current-route-summary-name {
        font-size: var(--front-text-base);
    }

    .current-direction-switch {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .current-state-body {
        padding: 21px;
    }

    .current-state-body.has-state-action {
        padding-right: 21px;
    }

    .current-state-body.has-state-action .current-state-heading {
        padding-right: 52px;
    }

    .state-deactivate-form {
        position: absolute;
        top: 18px;
        right: 18px;
        margin: 0;
    }

    .btn-state-deactivate {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        min-width: 42px;
        padding: 0;
        border-radius: 50%;
    }

    .btn-state-deactivate i {
        margin-right: 0 !important;
    }

    .state-deactivate-label {
        display: none;
    }

    .waiting-state-actions,
    .waiting-state-actions form,
    .waiting-state-actions .btn {
        width: 100%;
    }

    .in-queue-stats {
        grid-template-columns: 1fr 1fr;
    }

    .in-queue-stat:first-child {
        grid-column: 1 / -1;
    }

    .in-queue-actions,
    .in-queue-actions form,
    .in-queue-actions .btn {
        width: 100%;
    }

    .loading-route-trigger {
        width: 100%;
    }

    .loading-seats-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .loading-seats-dialog {
        max-width: none;
        padding: 25px 18px 18px;
        border-radius: 16px 16px 12px 12px;
    }

    .loading-seats-dialog-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .loading-seats-dialog-actions .btn {
        width: 100%;
    }

    .en-route-actions,
    .en-route-actions form,
    .en-route-actions .btn {
        width: 100%;
    }

    .current-state-title {
        font-size: var(--front-text-xl);
    }

    .current-route-summary {
        flex-wrap: wrap;
    }

    .current-route-order-actions {
        width: 100%;
        margin: 12px 0 0;
        flex-direction: column;
    }

    .current-route-orders-link {
        width: 100%;
    }

}

/* ==========================================================================
   11. DRIVER QUEUE VIEW
   ========================================================================== */

.route-page {
    padding: 40px 0;
    background: var(--front-background);
}

.route-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.driver-main-card {
    overflow: hidden;
    border-radius: 14px;
}

.driver-main-card.loading {
    border-left: 5px solid var(--front-success);
}

.driver-main-card.queue {
    border-left: 5px solid var(--front-warning);
}

.driver-main-title {
    margin-bottom: 18px;
    font-size: var(--front-text-2xl);
    font-weight: var(--front-font-bold);
}

.driver-info-row {
    margin-bottom: 10px;
    font-size: var(--front-text-base);
}

.driver-info-row:last-of-type {
    margin-bottom: 0;
}

.driver-info-row strong {
    display: inline-block;
    min-width: 95px;
    color: var(--front-text);
}

.route-action-buttons .btn {
    margin-right: 8px;
    margin-bottom: 8px;
}

.empty-route-box {
    padding: 25px;
    background: var(--front-surface);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.empty-route-box h5 {
    font-weight: var(--front-font-bold);
    color: var(--front-text);
}

.empty-route-box h5 i {
    margin-right: 7px;
    color: var(--front-warning);
}

.queue-count-box {
    border: 0;
    border-radius: 12px;
    font-size: var(--front-text-base);
}

.queue-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    font-size: var(--front-text-xl);
    font-weight: var(--front-font-bold);
    color: var(--front-text);
}

.queue-section-title i {
    width: 28px;
    color: var(--front-primary);
}

.queue-section-count {
    min-width: 32px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #edf7e8;
    color: var(--front-primary-dark);
    font-size: var(--front-text-sm);
    text-align: center;
}

.queue-table { margin: 0; }
.queue-table th, .queue-table td { vertical-align: middle; }
.queue-table .current-driver-row > td { background: #d4edda; }
.queue-empty {
    padding: 22px !important;
    color: var(--front-muted);
    text-align: center;
}

.queue-view-page {
    padding: 40px 0 55px;
    background: transparent;
}

.queue-view-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.queue-view-header > a {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    place-items: center;
    color: var(--front-secondary);
    background: #edf5fb;
}

.queue-view-header span {
    color: var(--front-primary);
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-bold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.queue-view-header h1 {
    margin: 2px 0 4px;
    color: var(--front-secondary-dark);
    font-size: var(--front-text-4xl);
    font-weight: var(--front-font-regular);
}

.queue-view-header p {
    margin: 0;
    color: var(--front-muted);
}

.queue-view-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 1px;
    margin-bottom: 24px;
    color: var(--front-surface);
    background: rgba(255, 255, 255, .14);
}

.queue-view-summary > div {
    display: grid;
    align-content: center;
    padding: 16px 20px;
    background: var(--front-secondary-dark);
}

.queue-view-summary span,
.queue-view-summary strong {
    display: block;
}

.queue-view-summary span {
    color: rgba(255, 255, 255, .65);
    font-size: var(--front-text-xs);
    letter-spacing: .6px;
    text-transform: uppercase;
}

.queue-view-summary strong {
    margin-top: 2px;
    font-weight: var(--front-font-regular);
}

.queue-view-summary strong b,
.queue-view-summary strong i {
    color: #8fd966;
    font-weight: var(--front-font-regular);
}

.queue-view-summary > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 18px;
    color: var(--front-surface);
    background: var(--front-primary);
    font-weight: var(--front-font-semibold);
    white-space: nowrap;
}

.queue-view-summary > a:hover,
.queue-view-summary > a:focus {
    color: var(--front-surface);
    background: var(--front-primary-dark);
    text-decoration: none;
}

.queue-view-page .route-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.queue-view-page .route-card .card-header {
    padding: 15px 20px !important;
    border-bottom: 1px solid var(--front-border) !important;
}

.queue-view-page .queue-section-title {
    color: var(--front-secondary-dark);
    font-weight: var(--front-font-regular);
}

.queue-view-page .queue-section-title i {
    color: var(--front-secondary);
}

.queue-view-page .queue-section-count {
    border-radius: 0;
}

.queue-view-page .queue-table thead th {
    border-top: 0;
    border-bottom: 1px solid #dce4e8;
    background: #edf5fb;
    color: var(--front-secondary-dark);
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-semibold);
    letter-spacing: .35px;
    text-transform: uppercase;
}

.queue-view-page .queue-table td {
    border-top-color: var(--front-border);
}

@media (max-width: 767.98px) {
    .queue-view-page .queue-table thead th.queue-col-phone,
    .queue-view-page .queue-table thead th.queue-col-capacity {
        font-size: 0;
        text-align: center;
    }

    .queue-view-page .queue-table thead th.queue-col-phone::after,
    .queue-view-page .queue-table thead th.queue-col-capacity::after {
        display: inline-grid;
        width: 24px;
        height: 24px;
        place-items: center;
        border: 1px solid #9fb8c8;
        color: var(--front-secondary-dark);
        background: transparent;
        font-family: "Font Awesome 5 Free";
        font-size: var(--front-text-xs);
        font-weight: 900;
    }

    .queue-view-page .queue-table thead th.queue-col-phone::after {
        content: "\f095";
    }

    .queue-view-page .queue-table thead th.queue-col-capacity::after {
        content: "\f6c0";
    }
}

@media (max-width: 575px) {
    .route-page {
        padding: 25px 0;
    }

    .route-action-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }

    .queue-view-page {
        padding: 24px 0 40px;
    }

    .queue-view-header {
        gap: 8px;
        margin-bottom: 14px;
    }

    .queue-view-header > a {
        width: 28px;
        min-width: 28px;
        height: 28px;
        font-size: var(--front-text-xs);
    }

    .queue-view-header span,
    .queue-view-header p {
        display: none;
    }

    .queue-view-header h1 {
        margin: 0;
        font-size: var(--front-text-xl);
        white-space: nowrap;
    }

    .queue-view-summary {
        grid-template-columns: 1fr;
        margin-bottom: 18px;
    }

    .queue-view-summary > div {
        padding: 12px 14px;
    }

    .queue-view-summary > a {
        min-height: 44px;
    }

    .queue-view-page .route-card .card-header {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .queue-view-page .queue-section-title {
        font-size: var(--front-text-base);
    }

    .queue-view-page .table-responsive {
        width: 100%;
        overflow-x: hidden;
    }

    .queue-view-page .queue-table {
        width: 100%;
        table-layout: fixed;
    }

    .queue-view-page .queue-table th,
    .queue-view-page .queue-table td {
        padding: 8px 0;
        font-size: var(--front-text-xs);
        overflow-wrap: anywhere;
    }

    .queue-view-page .route-card,
    .queue-view-page .route-card .card-header,
    .queue-view-page .route-card .card-body {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .queue-view-page .queue-col-position {
        width: 34px;
        text-align: center;
    }

    .queue-view-page .queue-col-driver {
        width: 29%;
    }

    .queue-view-page .queue-col-vehicle {
        width: auto;
    }

    .queue-view-page .queue-col-phone {
        width: 40px;
        text-align: center;
    }

    .queue-view-page td.queue-col-phone a {
        display: inline-grid;
        width: 30px;
        height: 30px;
        place-items: center;
        color: var(--front-surface);
        background: var(--front-secondary);
    }

    .queue-view-page td.queue-col-phone span {
        display: none;
    }

    .queue-view-page .queue-col-capacity {
        width: 34px;
        text-align: center;
    }

    .queue-view-page td.queue-col-capacity .badge {
        display: inline-block;
        width: 12px;
        height: 12px;
        padding: 0;
        border-radius: 0;
        font-size: 0;
    }
}

/* ==========================================================================
   12. DRIVER PROFILE EDITING
   ========================================================================== */

.driver-edit-page {
    padding: 40px 0 55px;
}

    .driver-edit-header {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 18px;
    }

    .driver-edit-header > a {
        display: grid;
        width: 42px;
        min-width: 42px;
        height: 42px;
        place-items: center;
        color: var(--front-secondary);
        background: #edf5fb;
    }

    .driver-edit-header span,
    .driver-edit-aside > span {
        color: var(--front-primary);
        font-size: var(--front-text-xs);
        font-weight: var(--front-font-bold);
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .driver-edit-title {
        margin: 2px 0 4px;
        color: var(--front-secondary-dark);
        font-size: var(--front-text-4xl);
        font-weight: var(--front-font-regular);
    }

    .driver-edit-description {
        margin-bottom: 0;
        color: var(--front-muted);
    }

    .driver-edit-grid {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .driver-edit-grid > form {
        min-width: 0;
    }

    .driver-edit-aside {
        padding: 24px;
        color: var(--front-surface);
        background: var(--front-secondary-dark);
    }

    .driver-edit-aside h2 {
        margin: 10px 0 28px;
        color: var(--front-surface);
        font-size: var(--front-text-2xl);
        font-weight: var(--front-font-regular);
    }

    .driver-edit-aside ul {
        display: grid;
        gap: 16px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .driver-edit-aside li {
        display: grid;
        grid-template-columns: 24px 1fr;
        gap: 8px;
        font-size: var(--front-text-sm);
    }

    .driver-edit-aside i {
        color: #8fd966;
    }

    .driver-edit-card {
        margin-bottom: 14px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .driver-edit-card .card-header {
        padding: 18px 22px;
        background: var(--front-surface);
        border-bottom: 1px solid var(--front-border);
        border-radius: 0;
    }

    .driver-edit-card .card-body {
        padding: 24px 22px;
    }

    .driver-edit-card-title {
        margin-bottom: 0;
        font-size: var(--front-text-lg);
        color: var(--front-secondary-dark);
        font-weight: var(--front-font-regular);
    }

    .driver-edit-card-title i {
        width: 25px;
        color: var(--front-secondary);
    }

    .driver-photo-wrapper {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
    }

    .driver-photo {
        width: 110px;
        height: 110px;
        margin-right: 20px;
        border: 4px solid var(--front-surface);
        border-radius: 0;
        box-shadow: none;
        object-fit: cover;
    }

    .driver-photo-placeholder {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 110px;
        height: 110px;
        margin-right: 20px;
        border-radius: 0;
        background: #edf5fb;
        color: var(--front-secondary);
        font-size: var(--front-text-display);
    }

    .driver-photo-text {
        color: var(--front-muted);
        font-size: var(--front-text-sm);
    }

    .driver-edit-card label {
        color: #343a40;
        font-size: var(--front-text-xs);
        font-weight: var(--front-font-semibold);
    }

    .driver-edit-card .form-control {
        min-height: 44px;
        border-color: #dce4e8;
        border-radius: 0;
    }

    .driver-edit-card .input-group-text,
    .driver-edit-card .custom-file-label {
        color: var(--front-secondary);
        background: #edf5fb;
        border-color: #dce4e8;
        border-radius: 0;
    }

    .driver-edit-card .custom-file-label::after {
        border-radius: 0;
    }

    .driver-edit-card .form-control:focus {
        border-color: var(--front-success);
        box-shadow: 0 0 0 .2rem rgba(40, 167, 69, .14);
    }

    .driver-edit-actions {
        display: flex;
        justify-content: space-between;
        padding-top: 5px;
    }

    .driver-edit-actions .btn {
        min-width: 150px;
        padding: 10px 20px;
        border-radius: 0;
        font-weight: var(--front-font-semibold);
    }

    @media (max-width: 575.98px) {
        .driver-edit-page {
            padding: 24px 0 40px;
        }

        .driver-edit-header {
            gap: 8px;
            margin-bottom: 14px;
        }

        .driver-edit-header > a {
            width: 28px;
            min-width: 28px;
            height: 28px;
            font-size: var(--front-text-xs);
        }

        .driver-edit-header span,
        .driver-edit-description {
            display: none;
        }

        .driver-edit-title {
            margin: 0;
            font-size: var(--front-text-xl);
            white-space: nowrap;
        }

        .driver-edit-card .card-header,
        .driver-edit-card .card-body {
            padding-right: 0;
            padding-left: 0;
        }

        .driver-photo-wrapper {
            flex-direction: column;
            align-items: flex-start;
        }

        .driver-photo,
        .driver-photo-placeholder {
            margin-right: 0;
            margin-bottom: 15px;
        }

        .driver-edit-actions {
            flex-direction: column-reverse;
        }

        .driver-edit-actions .btn {
            width: 100%;
            margin-bottom: 10px;
        }
    }

    @media (max-width: 800px) {
        .driver-edit-grid {
            grid-template-columns: 1fr;
        }

        .driver-edit-aside {
            padding: 14px 18px;
        }

        .driver-edit-aside > span,
        .driver-edit-aside h2 {
            display: none;
        }

        .driver-edit-aside ul {
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .driver-edit-aside li {
            grid-template-columns: auto 1fr;
            gap: 6px;
            font-size: var(--front-text-xs);
        }
    }

/* ==========================================================================
   13. DRIVER ORDERS
   ========================================================================== */

.driver-orders-page {
    padding: 36px 0 55px;
}

.driver-orders-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.driver-orders-header > a {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    place-items: center;
    color: var(--front-secondary);
    background: #edf5fb;
}

.driver-orders-header > div > span {
    color: var(--front-primary);
    font-size: var(--front-text-xs);
    font-weight: var(--front-font-bold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.driver-orders-title {
    margin: 2px 0 4px;
    color: var(--front-secondary-dark);
    font-size: var(--front-text-4xl);
    font-weight: var(--front-font-regular);
}

.driver-orders-subtitle {
    margin: 0;
    color: #607d8b;
}

.driver-orders-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, .14);
}

.driver-orders-summary > div {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    color: var(--front-surface);
    background: var(--front-secondary-dark);
}

.driver-orders-summary i {
    color: #8fd966;
}

.driver-orders-summary span {
    color: rgba(255, 255, 255, .72);
}

.driver-orders-summary strong {
    font-size: var(--front-text-xl);
    font-weight: var(--front-font-regular);
}

.driver-orders-section {
    margin-bottom: 34px;
}

.driver-orders-section-title {
    margin-bottom: 16px;
    color: var(--front-secondary-dark);
    font-size: var(--front-text-xl);
    font-weight: var(--front-font-regular);
}

.completed-order-card {
    border-left-color: #78909c;
    opacity: .92;
}

.driver-orders-page .driver-orders-empty,
.driver-orders-page .btn,
.driver-orders-page + .modal .modal-content,
.driver-orders-page + .modal .btn {
    border-radius: 0;
}

.driver-order-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: auto;
    padding-top: 8px;
}

.driver-order-actions form,
.driver-order-actions .btn {
    width: 100%;
}

.driver-orders-empty {
    padding: 22px;
    border-radius: 0;
    background: #f5f7f8;
    color: #607d8b;
}

.cancel-order-warning {
    color: #546e7a;
}

.driver-orders-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #dce4e8;
    background: #edf5fb;
    color: var(--front-secondary-dark);
    font-weight: var(--front-font-semibold);
}

.driver-orders-back-link:hover,
.driver-orders-back-link:focus {
    border-color: var(--front-secondary);
    background: var(--front-secondary);
    color: var(--front-surface);
    box-shadow: none;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .driver-orders-page {
        padding-top: 24px;
    }

    .driver-orders-header {
        gap: 8px;
        margin-bottom: 14px;
    }

    .driver-orders-header > a {
        width: 28px;
        min-width: 28px;
        height: 28px;
        font-size: var(--front-text-xs);
    }

    .driver-orders-header > div > span,
    .driver-orders-subtitle {
        display: none;
    }

    .driver-orders-title {
        margin: 0;
        font-size: var(--front-text-xl);
        white-space: nowrap;
    }

    .driver-orders-summary {
        gap: 1px;
        margin-bottom: 22px;
    }

    .driver-orders-summary > div {
        grid-template-columns: auto 1fr;
        gap: 4px 7px;
        padding: 12px 14px;
        font-size: var(--front-text-xs);
    }

    .driver-orders-summary strong {
        grid-column: 2;
        font-size: var(--front-text-lg);
    }

    .driver-order-actions {
        grid-template-columns: 1fr;
    }

    .driver-orders-back-link {
        width: 100%;
    }
}

/* ==========================================================================
   14. PUBLIC ROUTE DETAILS
   ========================================================================== */

.compact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 14px;
}

.concept-status {
    padding: 22px;
    background: var(--front-surface);
    border-left: 4px solid var(--front-primary);
}

.concept-status.is-queue {
    border-left-color: var(--front-warning);
}

.concept-status.is-empty {
    display: flex;
    align-items: center;
    gap: 18px;
    border-left-color: var(--front-muted);
}

.concept-status.is-empty p {
    margin: 4px 0 0;
    color: var(--front-muted);
}

.concept-empty-icon {
    width: 50px;
    min-width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: var(--front-secondary);
    background: #edf5fb;
    font-size: 1.4rem;
}

.concept-status-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    color: #28783b;
    font-size: 0.875rem;
    font-weight: 600;
}

.concept-status-heading span i {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 8px;
    background: var(--front-primary);
    border-radius: 50%;
}

.concept-status-heading b {
    color: var(--front-muted);
    font-size: 0.75rem;
}

.concept-driver {
    display: grid;
    grid-template-columns: 58px repeat(3, 1fr);
    gap: 18px;
    align-items: center;
}

.concept-driver-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: var(--front-secondary);
    background: #edf5fb;
    font-size: 1.35rem;
}

.concept-driver > div:not(.concept-driver-icon) {
    display: grid;
}

.concept-driver span {
    color: var(--front-muted);
    font-size: 0.75rem;
}

.concept-driver strong {
    font-size: 0.9rem;
    font-weight: 600;
}

.concept-contacts {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.concept-contacts a {
    padding: 9px 14px;
    color: var(--front-surface);
    background: var(--front-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.concept-contacts a:last-child {
    color: #28783b;
    background: #e7f6eb;
}

.concept-order {
    padding: 24px;
    color: var(--front-surface);
    background: var(--front-secondary-dark);
}

.concept-order > span {
    color: #b9ee9d;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.concept-order > span:nth-of-type(2) {
    display: none;
}

.concept-order h2 {
    margin: 10px 0;
    color: var(--front-surface);
    font-size: 1.35rem;
    font-weight: 500;
}

.concept-order p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
}

.concept-order > a {
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    color: var(--front-surface);
    background: var(--front-primary);
    font-weight: 600;
}

.concept-order > a:hover {
    color: var(--front-surface);
    text-decoration: none;
    background: var(--front-primary-dark);
}

@media (max-width: 800px) {
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .concept-driver {
        grid-template-columns: 50px 1fr;
    }

    .concept-driver > div:nth-child(3),
    .concept-driver > div:nth-child(4) {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .concept-status {
        padding: 16px;
    }

    .concept-status-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .concept-status-heading b {
        order: -1;
    }

    .concept-driver {
        gap: 10px;
    }

    .concept-contacts {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .concept-contacts a {
        text-align: center;
    }
}

.direction-page {
    padding: 38px 0 54px;
}

.direction-heading {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.direction-back {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--front-secondary);
    background: #edf5fb;
}

.direction-heading-main {
    min-width: 0;
}

.direction-heading-main > span {
    color: var(--front-muted);
    font-size: var(--front-text-xs);
    text-transform: uppercase;
}

.direction-heading-main h1 {
    margin: 3px 0;
    overflow: hidden;
    color: var(--front-secondary-dark);
    font-size: var(--front-text-4xl);
    font-weight: var(--front-font-regular);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.direction-heading-main p {
    margin: 0;
    color: var(--front-text);
}

.direction-heading-main p i {
    margin: 0 8px;
    color: var(--front-primary);
}

.direction-reverse {
    padding: 11px 16px;
    color: var(--front-secondary-dark);
    border: 1px solid var(--front-secondary);
    white-space: nowrap;
}

.direction-reverse:hover {
    color: var(--front-surface);
    text-decoration: none;
    background: var(--front-secondary);
}

.direction-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
    background: var(--front-surface);
}

.direction-facts div {
    display: grid;
    padding: 15px 20px;
    border-right: 1px solid var(--front-border);
}

.direction-facts div:last-child {
    border-right: 0;
}

.direction-facts span,
.direction-content .concept-driver span {
    color: var(--front-muted);
    font-size: var(--front-text-xs);
}

.direction-facts strong {
    margin-top: 3px;
    color: var(--front-secondary-dark);
    font-weight: var(--front-font-semibold);
}

.en-route-drivers-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 50%;
    margin-bottom: 14px;
    padding: 14px 18px;
    color: var(--front-surface);
    background: var(--front-primary);
    font-weight: var(--front-font-semibold);
}

.en-route-drivers-link:hover,
.en-route-drivers-link:focus {
    color: var(--front-surface);
    text-decoration: none;
    background: var(--front-primary-dark);
}

.en-route-drivers-link strong {
    display: grid;
    min-width: 30px;
    height: 30px;
    place-items: center;
    background: rgba(255, 255, 255, .2);
}

.en-route-drivers-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 14px 18px;
    border-left: 4px solid var(--front-primary);
    background: var(--front-surface);
    color: var(--front-muted);
}

.en-route-drivers-summary strong {
    color: var(--front-secondary-dark);
    font-size: var(--front-text-xl);
}

.en-route-driver-card {
    margin-bottom: 14px;
}

.concept-status.is-en-route {
    border-top: 4px solid var(--front-primary);
}

.en-route-drivers-empty {
    display: grid;
    justify-items: center;
    padding: 44px 24px;
    background: var(--front-surface);
    color: var(--front-muted);
    text-align: center;
}

.en-route-drivers-empty > i {
    margin-bottom: 14px;
    color: var(--front-secondary);
    font-size: 36px;
}

.en-route-drivers-empty strong {
    color: var(--front-secondary-dark);
    font-size: var(--front-text-lg);
}

.en-route-drivers-empty p {
    margin: 8px 0 0;
}

@media (max-width: 575px) {
    .direction-page {
        padding: 24px 0 38px;
    }

    .direction-heading {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
    }

    .direction-back {
        width: 36px;
        height: 36px;
    }

    .direction-heading-main h1 {
        font-size: var(--front-text-xl);
        white-space: normal;
    }

    .direction-heading-main p {
        font-size: var(--front-text-sm);
        line-height: 1.5;
    }

    .direction-reverse {
        grid-column: 1 / -1;
        text-align: center;
    }

    .direction-facts {
        grid-template-columns: 1fr;
    }

    .direction-facts div {
        padding: 10px 0 10px 0.5rem;
        border-right: 0;
        border-bottom: 1px solid var(--front-border);
        background: var(--front-surface);
    }

    .en-route-drivers-link {
        width: 100%;
    }

}
.public-seat-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--front-border);
    background: var(--front-surface);
}

.public-seat-summary span,
.public-seat-summary strong {
    display: block;
}

.public-seat-summary span {
    color: var(--front-muted);
    font-size: var(--front-text-xs);
}

.public-seat-summary strong {
    color: var(--front-secondary-dark);
    font-size: var(--front-text-lg);
    font-weight: var(--front-font-semibold);
}

.public-seat-summary__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border: 0;
    background: var(--front-primary);
    color: var(--front-surface);
    font-size: .8rem;
    font-weight: var(--front-font-semibold);
    cursor: pointer;
}

.public-seat-summary__actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.public-seat-summary__button--secondary {
    border: 1px solid var(--front-border);
    background: #edf5fb;
    color: var(--front-secondary);
}

.public-seat-summary__button--secondary:hover,
.public-seat-summary__button--secondary:focus {
    background: var(--front-secondary);
    color: var(--front-surface);
}

.public-seat-summary__button:hover,
.public-seat-summary__button:focus {
    background: var(--front-primary-dark);
    color: var(--front-surface);
}

.public-seat-modal {
    border: 0;
    border-radius: 0;
}

.public-seat-modal .modal-header,
.public-seat-modal .modal-footer {
    border-color: var(--front-border);
}

.public-seat-modal .modal-title {
    color: var(--front-secondary-dark);
    font-weight: var(--front-font-semibold);
}

.public-seat-modal .modal-header p {
    margin: 4px 0 0;
    color: var(--front-muted);
    font-size: var(--front-text-sm);
}

.public-seat-layout {
    display: grid;
    gap: 10px;
    max-width: 360px;
    margin: 0 auto;
    padding: 20px;
    border: 2px solid #dce3ec;
    background: #f5f7fa;
}

.public-seat {
    width: 100%;
    padding: 4px;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 15px;
}

button.public-seat {
    cursor: pointer;
}

button.public-seat:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.public-seat--free {
    border-color: #85d19a;
    background: #dff5e5;
    color: #176a31;
}

.public-seat--free.is-selected {
    border-color: #1769e0;
    background: #1769e0;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(23, 105, 224, .2);
}

.public-seat--occupied {
    border-color: #e38b92;
    background: #f9dfe1;
    color: #9e2730;
}

.public-seat--reserved {
    border-color: #e7c565;
    background: #fff2c9;
    color: #856404;
}

.public-seat--blocked {
    border-color: #aeb5bf;
    background: #e2e5e9;
    color: #5c6570;
}

.public-seat--driver,
.public-seat--service {
    border-color: #bac7d8;
    background: #e6edf6;
    color: #344b68;
}

.public-seat--driver small,
.public-seat--service small {
    font-size: 9px;
}

.public-seat--aisle,
.public-seat--empty {
    background: transparent;
}

.public-seat-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 18px;
    color: #5e6876;
    font-size: 13px;
}

.public-seat-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.public-seat-legend__mark {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.public-seat-legend__mark--free { background: #85d19a; }
.public-seat-legend__mark--occupied { background: #e38b92; }
.public-seat-legend__mark--reserved { background: #e7c565; }
.public-seat-legend__mark--blocked { background: #aeb5bf; }

.public-seat-selection {
    margin-top: 16px;
    padding: 10px 12px;
    border-left: 3px solid var(--front-primary);
    background: #edf5fb;
    color: var(--front-secondary-dark);
    text-align: center;
    font-weight: 600;
}

.public-seat-phone {
    max-width: 360px;
    margin: 14px auto 0;
}

.public-seat-phone small {
    display: block;
    margin-top: 5px;
    color: var(--front-muted);
}

.public-seat-phone label {
    color: var(--front-secondary-dark);
    font-size: var(--front-text-sm);
    font-weight: var(--front-font-semibold);
}

.public-seat-phone .form-control {
    min-height: 44px;
    border-color: var(--front-border);
    border-radius: 0;
    color: var(--front-secondary-dark);
}

.public-seat-phone .form-control:focus {
    border-color: var(--front-secondary);
    box-shadow: 0 0 0 .15rem rgba(27, 105, 149, .15);
}

.public-seat-modal .modal-footer .btn {
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 0;
    font-size: .8rem;
    font-weight: var(--front-font-semibold);
}

.public-seat-modal .modal-footer .btn-primary {
    border-color: var(--front-primary);
    background: var(--front-primary);
}

.public-seat-modal .modal-footer .btn-primary:hover,
.public-seat-modal .modal-footer .btn-primary:focus {
    border-color: var(--front-primary-dark);
    background: var(--front-primary-dark);
}

.public-seat-modal .modal-footer .btn-light {
    border-color: var(--front-border);
    background: #edf5fb;
    color: var(--front-secondary);
}

@media (max-width: 575.98px) {
    .public-seat-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .public-seat-summary__button {
        width: 100%;
    }

    .public-seat-summary__actions {
        flex-direction: column;
    }
}

/* Compact adaptive typography */
@media (max-width: 767.98px) {
    .cabinet-header-actions .cabinet-edit-button {
        display: inline-grid;
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;
        place-items: center;
    }

    .cabinet-edit-button span {
        display: none;
    }

    body h1,
    .home-hero h1,
    .direction-heading-main h1,
    .cabinet-title,
    .orders-title,
    .driver-edit-title,
    .driver-orders-title {
        font-size: 1.5rem;
        font-weight: 500;
        line-height: 1.25;
    }

    body h2,
    .home-hero h2,
    .current-state-title,
    .queue-section-title,
    .driver-orders-section-title {
        font-size: 1.2rem;
        font-weight: 500;
        line-height: 1.3;
    }

    body h3,
    .form-section-title,
    .action-box-title {
        font-size: 1.05rem;
        font-weight: 500;
        line-height: 1.35;
    }

    body .btn,
    body button:not(.public-seat),
    .home-hero-btn,
    .concept-order > a,
    .concept-contacts a,
    .public-seat-summary__button,
    .en-route-drivers-link {
        font-size: .875rem;
        font-weight: 500;
        line-height: 1.35;
    }
}

@media (max-width: 575.98px) {
    body h1,
    .home-hero h1,
    .direction-heading-main h1,
    .cabinet-title,
    .orders-title,
    .driver-edit-title,
    .driver-orders-title {
        font-size: 1.3rem;
    }

    body h2,
    .home-hero h2,
    .current-state-title,
    .queue-section-title,
    .driver-orders-section-title {
        font-size: 1.1rem;
    }

    body .btn,
    body button:not(.public-seat),
    .home-hero-btn,
    .concept-order > a,
    .concept-contacts a,
    .public-seat-summary__button,
    .en-route-drivers-link {
        font-size: .8125rem;
    }
}
