:root {
    --taxi-yellow: #ffd23f;
    --taxi-yellow-dark: #d8a900;
    --taxi-ink: #111827;
    --taxi-panel: #171b22;
    --taxi-muted: #6b7280;
    --taxi-border: #e5e7eb;
    --taxi-surface: #ffffff;
    --taxi-bg: #f4f6f8;
}

.section-footnotes {
    background: #0f172a;
    color: #f8fafc;
    padding: 14px 12px;
}

.section-footnotes .inner-wrapper {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    text-align: center;
}

.section-footnotes a {
    align-items: center;
    display: inline-flex;
}

.section-footnotes .footnote-brand-link {
    color: #f8fafc;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    text-decoration: none;
}

.section-footnotes .footnote-brand-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.footnote-heart {
    color: #ef4444;
    font-size: 1rem;
    line-height: 1;
}

.section-footnotes img {
    height: 22px;
    margin-left: 2px;
    vertical-align: middle;
    width: auto;
}

.pwa-install-button {
    align-items: center;
    background: var(--taxi-yellow);
    border: 0;
    border-radius: 999px;
    bottom: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
    color: #111827;
    display: none;
    font-weight: 800;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    position: fixed;
    right: 18px;
    z-index: 1400;
}

.pwa-install-button.is-visible {
    display: inline-flex;
}

.pwa-install-button:hover {
    background: var(--taxi-yellow-dark);
}

.section-footnotes a:hover img {
    opacity: 0.86;
}

.seo-page {
    background: #f7f8fb;
    color: #1f2933;
}

.taxi-home-hero,
.seo-hero {
    min-height: 78vh;
    padding: 120px 0 72px;
    color: #fff;
    background: linear-gradient(135deg, rgba(10, 15, 24, 0.96), rgba(33, 33, 33, 0.92)), url("../assets/img/taxi-1.jpg") center/cover no-repeat;
}

.seo-kicker {
    color: #fed136;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.taxi-home-hero h1,
.seo-hero h1 {
    max-width: 760px;
    font-size: 42px;
    line-height: 1.12;
    font-weight: 700;
    margin-bottom: 18px;
}

.taxi-home-hero .lead,
.seo-hero .lead {
    max-width: 680px;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.86);
}

.seo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.seo-proof,
.seo-feature {
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

.seo-proof {
    padding: 28px;
    color: #17202a;
}

.seo-proof h2 {
    font-size: 26px;
    margin-bottom: 14px;
}

.seo-content {
    padding-top: 48px;
    padding-bottom: 48px;
}

.seo-feature {
    height: 100%;
    padding: 24px;
}

.seo-feature i {
    color: #c79500;
    font-size: 30px;
    margin-bottom: 14px;
}

.seo-feature h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.seo-breadcrumb {
    background: transparent;
    padding-left: 0;
}

.seo-breadcrumb,
.seo-breadcrumb a,
.seo-breadcrumb .active {
    color: rgba(255, 255, 255, 0.82);
}

.seo-list {
    padding-left: 20px;
}

.seo-list li {
    margin-bottom: 8px;
}

.seo-admin-page .card {
    border-radius: 8px;
}

@media (max-width: 767.98px) {
    .taxi-home-hero,
    .seo-hero {
        min-height: auto;
        padding: 96px 0 48px;
    }

    .taxi-home-hero h1,
    .seo-hero h1 {
        font-size: 30px;
    }

    .taxi-home-hero .lead,
    .seo-hero .lead {
        font-size: 17px;
    }

    .seo-actions .btn {
        width: 100%;
    }

    .seo-proof {
        margin-top: 24px;
    }
}

html {
    min-width: 320px;
}

body {
    background: var(--taxi-bg);
    color: var(--taxi-ink);
    overflow-x: hidden;
}

img,
iframe,
video,
canvas {
    max-width: 100%;
}

.container,
.container-fluid {
    max-width: 100%;
}

#mainNav {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

#mainNav .container {
    gap: 10px;
    max-width: 1480px;
    padding-left: clamp(14px, 2vw, 28px);
    padding-right: clamp(22px, 3vw, 44px);
}

#mainNav .navbar-brand {
    align-items: center;
    display: inline-flex;
    font-weight: 700;
    min-height: 44px;
    white-space: nowrap;
}

#mainNav .navbar-nav {
    align-items: stretch;
    gap: 6px;
    justify-content: flex-end;
    min-width: 0;
}

#mainNav .admin-nav-compact {
    gap: 5px;
}

#mainNav .nav-item {
    margin-top: 0 !important;
}

#mainNav .btn,
#secundaryNav .btn {
    align-items: center;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 0.8rem;
    white-space: normal;
}

#mainNav .admin-nav-compact .btn {
    font-size: 0.78rem;
    min-height: 38px;
    padding: 0.45rem 0.62rem;
}

#mainNav .dropdown-menu {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
    margin-top: 8px;
    min-width: 190px;
    padding: 8px;
}

#mainNav .dropdown-item {
    border-radius: 6px;
    color: #111827;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 10px;
    text-transform: none;
}

#mainNav .dropdown-item:hover,
#mainNav .dropdown-item:focus {
    background: #fff3bf;
    color: #111827;
}

#mainNav .btn-primary,
#secundaryNav .btn-primary,
.btn-primary {
    background: var(--taxi-yellow);
    border-color: var(--taxi-yellow);
    color: #151515 !important;
    font-weight: 700;
}

#mainNav .btn-primary:hover,
#secundaryNav .btn-primary:hover,
.btn-primary:hover {
    background: var(--taxi-yellow-dark);
    border-color: var(--taxi-yellow-dark);
}

.btn {
    border-radius: 8px;
    min-height: 40px;
}

.form-control,
.custom-select,
select.form-control {
    border-radius: 8px;
    min-height: 44px;
}

textarea.form-control {
    min-height: 88px;
}

.card {
    border: 1px solid var(--taxi-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.card-header {
    background: #fff;
    border-bottom-color: var(--taxi-border);
}

.table-responsive {
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    min-width: 760px;
}

.badge-trip {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
}

.badge-trip-pending {
    background: #fff7d6;
    color: #7a5300;
}

.badge-trip-assigned,
.badge-trip-accepted,
.badge-trip-on_way,
.badge-trip-arrived,
.badge-trip-in_progress {
    background: #e0f2fe;
    color: #075985;
}

.badge-trip-completed {
    background: #dcfce7;
    color: #166534;
}

.badge-trip-cancelled,
.badge-trip-rejected {
    background: #fee2e2;
    color: #991b1b;
}

#trip_map,
#trip_show_map,
#fleet_map,
#passenger_tracking_map,
#root_access_map {
    min-height: 360px;
    width: 100%;
}

.leaflet-container {
    font: inherit;
    touch-action: pan-x pan-y;
}

.central-page {
    padding-top: 118px;
}

.root-access-page .form-label {
    color: #374151;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.root-stat-card {
    background: #ffffff;
    border: 1px solid var(--taxi-border);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    min-height: 92px;
    padding: 16px;
}

.root-stat-card span {
    color: var(--taxi-muted);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.root-stat-card strong {
    color: #111827;
    font-size: 1.85rem;
    line-height: 1;
}

.root-stat-card.warning strong {
    color: #dc2626;
}

.root-card-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.root-access-map {
    height: min(56vh, 520px);
    min-height: 360px;
}

.root-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.root-access-table th,
.root-access-table td {
    vertical-align: middle;
}

.root-user-agent {
    max-width: 360px;
    min-width: 220px;
    white-space: normal;
    word-break: break-word;
}

.dataTables_wrapper {
    padding: 12px;
}

.table-responsive .dataTables_wrapper {
    min-width: 100%;
}

.dataTables_wrapper .row {
    align-items: center;
    margin-left: 0;
    margin-right: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #475569;
    font-size: 0.88rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    min-height: 38px;
}

.datatable-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    padding-top: 12px;
}

.dataTables_wrapper .pagination {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    margin: 0;
}

.dataTables_wrapper .page-link {
    border-radius: 7px;
    color: #111827;
    min-height: 36px;
}

.dataTables_wrapper .page-item.active .page-link {
    background: var(--taxi-yellow);
    border-color: var(--taxi-yellow);
    color: #111827;
    font-weight: 800;
}

.settings-page,
.seo-admin-page {
    padding-top: 118px;
}

.settings-hero {
    align-items: center;
    background: #111827;
    border-radius: 8px;
    color: #fff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 24px;
}

.settings-kicker {
    color: #fed136;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.settings-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.settings-hero p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}

.settings-demo-state {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    min-width: 150px;
    padding: 14px;
    text-align: center;
}

.settings-demo-state span {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 0.85rem;
}

.settings-demo-state strong {
    color: #fed136;
    font-size: 1.3rem;
}

.settings-section {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: 260px minmax(0, 1fr);
    margin-bottom: 18px;
}

.settings-section-copy h2 {
    font-size: 1.25rem;
    font-weight: 800;
}

.settings-section-copy p {
    color: #6b7280;
}

.settings-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 20px;
}

.settings-palette-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.settings-palette-option {
    cursor: pointer;
    margin: 0;
}

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

.palette-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    display: block;
    min-height: 94px;
    padding: 12px;
    text-align: center;
}

.settings-palette-option input:checked + .palette-card {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(254, 209, 54, 0.45);
}

.palette-swatches {
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 10px;
}

.palette-swatches span {
    border-radius: 6px;
    height: 30px;
}

.settings-note {
    background: #eff6ff;
    border-radius: 8px;
    color: #1e3a8a;
    padding: 12px;
}

.settings-panel .input-group {
    align-items: stretch;
}

.settings-panel .input-group > .form-control,
.settings-panel .input-group > .input-group-append > .input-group-text {
    height: 44px;
    min-height: 44px;
}

.settings-panel .input-group > .input-group-append > .input-group-text {
    align-items: center;
    display: flex;
}

.settings-image-upload {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 86px minmax(0, 1fr);
    padding: 10px;
}

.settings-image-preview {
    align-items: center;
    background: #111827;
    border-radius: 8px;
    color: #fed136;
    display: flex;
    font-size: 0.85rem;
    font-weight: 800;
    height: 74px;
    justify-content: center;
    overflow: hidden;
    width: 74px;
}

.settings-image-preview img {
    height: 100%;
    object-fit: contain;
    padding: 6px;
    width: 100%;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.seo-upload-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-upload-card {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 132px minmax(0, 1fr);
    padding: 14px;
}

.seo-upload-preview {
    align-items: center;
    background: #111827;
    border-radius: 8px;
    color: #fed136;
    display: flex;
    font-weight: 800;
    height: 110px;
    justify-content: center;
    overflow: hidden;
    width: 110px;
}

.seo-upload-preview-wide {
    aspect-ratio: 1.91 / 1;
    height: auto;
    min-height: 72px;
    width: 124px;
}

.seo-upload-preview img {
    height: 100%;
    object-fit: contain;
    padding: 8px;
    width: 100%;
}

.seo-upload-content label {
    color: #111827;
    display: block;
    font-weight: 800;
    margin-bottom: 4px;
}

.seo-upload-content p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.seo-upload-help {
    color: #4b5563;
    display: block;
    line-height: 1.45;
    margin-top: 8px;
}

.taxi-location-dialog-backdrop {
    align-items: center;
    background: rgba(17, 24, 39, 0.72);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 18px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2000;
}

.taxi-location-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
    max-width: 440px;
    padding: 24px;
    text-align: center;
    width: 100%;
}

.taxi-location-dialog-icon {
    align-items: center;
    background: #fff7ed;
    border: 2px solid #f59e0b;
    border-radius: 999px;
    color: #b45309;
    display: inline-flex;
    font-size: 1.6rem;
    font-weight: 900;
    height: 54px;
    justify-content: center;
    margin-bottom: 12px;
    width: 54px;
}

.taxi-location-dialog h2 {
    color: #111827;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.taxi-location-dialog p {
    margin-bottom: 8px;
}

.taxi-location-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

.taxi-location-dialog-actions .btn {
    min-height: 44px;
}

.user-search-control {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 22px minmax(0, 1fr);
}

.user-search-control i {
    color: #6b7280;
}

.user-avatar-row {
    align-items: center;
    display: flex;
    gap: 10px;
}

.user-avatar {
    align-items: center;
    background: #111827;
    border-radius: 999px;
    color: #fed136;
    display: inline-flex;
    flex: 0 0 42px;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.driver-photo-thumb {
    border-radius: 999px;
    flex: 0 0 46px;
    height: 46px;
    object-fit: cover;
    width: 46px;
}

.mobile-user-list {
    display: none;
}

.mobile-user-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 12px;
    padding: 14px;
}

.mobile-user-meta {
    color: #6b7280;
    display: grid;
    gap: 2px;
    margin: 12px 0;
}

.mobile-user-badges,
.mobile-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-user-actions {
    margin-top: 12px;
}

.mobile-user-actions .btn {
    flex: 1 1 120px;
}

.central-toolbar {
    gap: 12px;
}

.central-actions {
    gap: 8px;
}

.notification-center {
    position: relative;
}

.notification-toggle {
    position: relative;
}

.notification-count {
    align-items: center;
    background: #dc3545;
    border-radius: 999px;
    color: #fff;
    display: none;
    font-size: 0.72rem;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 5px;
    position: absolute;
    right: -6px;
    top: -8px;
}

.notification-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    max-height: 420px;
    overflow: auto;
    position: absolute;
    right: 0;
    top: 44px;
    width: min(360px, calc(100vw - 24px));
    z-index: 1100;
}

.notification-panel-header {
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

.notification-item,
.notification-empty {
    border-bottom: 1px solid #f1f3f5;
    color: #1f2933;
    display: block;
    padding: 10px 12px;
}

.notification-item:hover {
    background: #f8fafc;
    color: #111827;
    text-decoration: none;
}

.notification-item small,
.notification-item span {
    color: #6b7280;
    display: block;
}

.notification-item p {
    margin: 4px 0;
}

.central-stat-card .card-body {
    min-height: 104px;
}

.mobile-trip-card {
    display: none;
}

.login-shell {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 210, 63, 0.22), transparent 28%),
        linear-gradient(135deg, #0b0f16 0%, #161b24 48%, #222832 100%);
    height: 100vh;
    overflow: hidden;
    padding: 78px 16px 14px;
}

.login-wrap {
    align-items: center;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    margin: 0 auto;
    max-width: 1100px;
    height: calc(100vh - 92px);
}

.login-copy {
    color: #fff;
    max-width: 580px;
}

.login-kicker {
    align-items: center;
    color: var(--taxi-yellow);
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.login-title {
    color: #fff;
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
    margin-bottom: 12px;
}

.login-subtitle {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 16px;
}

.login-feature-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-feature {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #f9fafb;
    display: flex;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    max-height: calc(100vh - 104px);
    overflow: hidden;
    padding: 20px;
}

.login-card-header {
    margin-bottom: 12px;
}

.login-logo {
    align-items: center;
    background: #111827;
    border-radius: 8px;
    color: var(--taxi-yellow);
    display: inline-flex;
    font-size: 1.1rem;
    height: 40px;
    justify-content: center;
    margin-bottom: 10px;
    width: 40px;
}

.login-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.login-card p {
    color: var(--taxi-muted);
    margin-bottom: 0;
}

.login-card label {
    font-weight: 700;
}

.login-card .form-control {
    font-size: 0.95rem;
    min-height: 42px;
}

.login-submit {
    font-size: 0.95rem;
    min-height: 42px;
}

.login-helper {
    color: var(--taxi-muted);
    display: block;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

.login-alert {
    border-radius: 8px;
}

.login-location-status {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 8px 0 12px;
    padding: 8px 10px;
}

.login-location-status.is-ok {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.login-location-status.is-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.login-location-status.is-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.login-card .form-group {
    margin-bottom: 10px;
}

.login-demo-box {
    border-top: 1px solid #e5e7eb;
    margin-top: 12px;
    padding-top: 12px;
}

.login-demo-title {
    color: #111827;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.login-demo-actions {
    display: grid;
    gap: 8px;
}

.login-demo-actions form {
    margin: 0;
}

.login-manual-links {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
}

.login-manual-card {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    display: flex;
    font-size: 0.84rem;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 8px;
    text-align: center;
}

.login-manual-card:hover {
    background: #111827;
    color: #fed136;
    text-decoration: none;
}

.login-manual-card i {
    font-size: 1rem;
}

.driver-picker-form label {
    font-weight: 800;
}

.driver-picker-control {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr) auto;
}

.driver-picker-search {
    position: relative;
}

.driver-picker-search i {
    color: #6b7280;
    left: 12px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.driver-picker-search .form-control {
    padding-left: 36px;
}

.manual-page {
    background: #f7f8fb;
    min-height: 100vh;
    padding: 0 0 56px;
}

.manual-hero {
    background: linear-gradient(135deg, rgba(10, 15, 24, 0.96), rgba(31, 41, 55, 0.92)), url("../assets/img/taxi-1.jpg") center/cover no-repeat;
    color: #fff;
    padding: 118px 0 46px;
}

.manual-hero-grid {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.manual-kicker {
    color: #fed136;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.manual-hero h1 {
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 14px;
}

.manual-lead {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
    line-height: 1.55;
    max-width: 720px;
}

.manual-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.manual-summary {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    color: #111827;
    padding: 22px;
}

.manual-summary h2 {
    font-size: 1.2rem;
    font-weight: 800;
}

.manual-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: 250px minmax(0, 1fr);
    padding-top: 28px;
}

.manual-nav {
    align-self: start;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 16px;
    position: sticky;
    top: 96px;
}

.manual-nav strong,
.manual-nav a {
    display: block;
}

.manual-nav strong {
    margin-bottom: 10px;
}

.manual-nav a {
    border-radius: 6px;
    color: #374151;
    padding: 8px 10px;
}

.manual-nav a:hover {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.manual-content {
    display: grid;
    gap: 16px;
}

.manual-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 24px;
    position: relative;
}

.manual-card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.manual-step {
    align-items: center;
    background: #111827;
    border-radius: 999px;
    color: #fed136;
    display: inline-flex;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    margin-bottom: 12px;
    width: 32px;
}

.manual-checklist {
    padding-left: 20px;
}

.manual-checklist li {
    margin-bottom: 8px;
}

.manual-tip {
    background: #fff8db;
    border-left: 4px solid #fed136;
    border-radius: 6px;
    color: #3f2f00;
    padding: 12px 14px;
}

.manual-status-grid {
    display: grid;
    gap: 8px 12px;
    grid-template-columns: 130px minmax(0, 1fr);
}

.manual-status-grid span {
    background: #111827;
    border-radius: 999px;
    color: #fed136;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 6px 10px;
    text-align: center;
}

.manual-status-grid p {
    margin: 0;
    padding: 5px 0;
}

@media (max-width: 991.98px) {
    #mainNav .navbar-collapse {
        background: #212529;
        border-radius: 8px;
        margin-top: 10px;
        padding: 10px;
    }

    #mainNav .navbar-nav {
        width: 100%;
    }

    #mainNav .btn,
    #mainNav form,
    #mainNav form button {
        width: 100%;
    }

    .login-wrap {
        grid-template-columns: 1fr;
        height: calc(100vh - 92px);
    }

    .login-copy {
        display: none;
        max-width: none;
        text-align: left;
    }

    .login-title {
        font-size: 2.35rem;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .central-page,
    section.container,
    section.container-fluid {
        padding-top: 76px !important;
    }

    section[style*="margin-top"] {
        margin-top: 0 !important;
    }

    h1,
    .h1 {
        font-size: 1.65rem;
    }

    h2,
    .h2 {
        font-size: 1.35rem;
    }

    .h3,
    h3 {
        font-size: 1.25rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn,
    .form-control,
    select.form-control {
        font-size: 1rem;
    }

    .btn-block-mobile {
        width: 100%;
    }

    .form-row {
        display: block;
    }

    .form-row > [class*="col-"] {
        max-width: 100%;
        width: 100%;
    }

    #trip_map,
    #trip_show_map,
    #fleet_map,
    #passenger_tracking_map {
        height: 58vh !important;
        min-height: 340px;
    }

    .desktop-trip-table {
        display: none;
    }

    .mobile-trip-card {
        display: block;
    }

    .mobile-trip-card .card {
        margin-bottom: 12px;
    }

    .mobile-trip-actions {
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr;
    }

    .table {
        font-size: 0.9rem;
        min-width: 680px;
    }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .login-shell {
        padding: 70px 10px 10px;
    }

    .login-title {
        font-size: 2rem;
    }

    .login-feature-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        max-height: calc(100vh - 82px);
        padding: 14px;
    }

    .manual-hero-grid,
    .manual-layout,
    .settings-section,
    .seo-upload-grid {
        grid-template-columns: 1fr;
    }

    .manual-nav {
        position: static;
    }

    .settings-palette-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .desktop-user-table {
        display: none;
    }

    .mobile-user-list {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .manual-hero {
        padding: 94px 0 34px;
    }

    .manual-hero h1 {
        font-size: 2rem;
    }

    .manual-actions .btn {
        width: 100%;
    }

    .manual-status-grid {
        grid-template-columns: 1fr;
    }

    .manual-status-grid span {
        text-align: left;
    }

    .settings-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-demo-state {
        width: 100%;
    }

    .settings-palette-grid {
        grid-template-columns: 1fr;
    }

    .seo-upload-card {
        grid-template-columns: 1fr;
    }

    .settings-image-upload {
        grid-template-columns: 1fr;
    }

    .seo-upload-preview,
    .seo-upload-preview-wide,
    .settings-image-preview {
        width: 100%;
    }

    .taxi-location-dialog {
        padding: 18px;
    }

    .taxi-location-dialog-actions {
        flex-direction: column-reverse;
    }
}

@media (max-width: 420px) {
    #mainNav .navbar-brand {
        font-size: 1rem;
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .login-title {
        font-size: 1.72rem;
    }

    .login-subtitle {
        font-size: 0.98rem;
    }

    .login-logo,
    .login-card-header p {
        display: none;
    }

    .login-card h2 {
        font-size: 1.1rem;
    }

    .login-demo-actions .btn {
        white-space: normal;
    }

    .login-manual-links,
    .driver-picker-control {
        grid-template-columns: 1fr;
    }

    #trip_map,
    #trip_show_map,
    #fleet_map,
    #passenger_tracking_map {
        min-height: 310px;
    }
}
