/* HaloGari app refresh */
:root {
    --hg-green: #245c36;
    --hg-green-2: #0e2e20;
    --hg-orange: #ee7911;
    --hg-gold: #ffbd59;
    --hg-ink: #17211b;
    --hg-muted: #647268;
    --hg-line: rgba(36, 92, 54, .14);
    --hg-surface: rgba(255, 255, 255, .86);
    --hg-shadow: 0 22px 70px rgba(23, 33, 27, .14);
    --hg-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hg-font-display: 'Fraunces', Georgia, serif;
    --hg-z-mobile-tabbar: 1020;
    --hg-z-navbar: 1030;
    --hg-z-helpbot: 1035;
    --hg-z-offcanvas-backdrop: 1040;
    --hg-z-offcanvas: 1045;
    --hg-z-modal-backdrop: 1050;
    --hg-z-modal: 1055;
    --hg-z-floating-control: 1065;
    --hg-z-swal: 20000;
    --hg-z-splash: 99999;
}

html {
    scroll-behavior: smooth;
}

body.app-shell {
    font-family: var(--hg-font-body);
    color: var(--hg-ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(238, 121, 17, .12), transparent 28rem),
        radial-gradient(circle at 90% 18%, rgba(36, 92, 54, .16), transparent 24rem),
        linear-gradient(180deg, #f7faf5 0%, #ffffff 42%, #f4f8f2 100%);
    overflow-x: hidden;
}

h1,
h2,
.app-page-header h1,
.app-hero__content h1 {
    font-family: var(--hg-font-display);
    letter-spacing: 0;
}

body.app-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: .32;
    background-image:
        linear-gradient(rgba(36, 92, 54, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 92, 54, .07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.app-main {
    padding-top: 7rem;
}

.app-navbar {
    min-height: 74px;
    z-index: var(--hg-z-navbar) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(23, 33, 27, .08);
}

@media screen and (min-width: 992px) {
    .app-navbar.fixed-top {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: 1180px;
        margin-right: auto;
        margin-left: auto;
        border: 1px solid rgba(255, 255, 255, .58);
        border-radius: 22px;
        padding: .35rem .55rem;
        transform: none;
        overflow: hidden;
    }

    .app-navbar > .container {
        max-width: none;
    }

    .app-is-scrolled .app-navbar.fixed-top {
        top: 10px;
        max-width: 1120px;
    }
}

@media screen and (max-width: 991.98px) {
    .app-navbar.fixed-top {
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }
}

.app-brand img {
    width: 126px;
    height: auto;
}

.app-nav-link,
.app-icon-link,
.app-user-button,
.app-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--hg-green);
    background: transparent;
    text-decoration: none;
    font-weight: 800;
    padding: .55rem .8rem;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.app-is-scrolled .app-navbar {
    min-height: 66px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 38px rgba(23, 33, 27, .12);
}

.app-nav-link:hover,
.app-nav-link.active,
.app-icon-link:hover,
.app-user-button:hover,
.app-menu-button:hover {
    color: var(--hg-green-2);
    background: rgba(36, 92, 54, .09);
    transform: translateY(-1px);
}

.app-icon-link,
.app-menu-button {
    width: 44px;
    padding: 0;
}

.app-user-button {
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 33, 27, .08);
}

.app-login-button {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 800;
}

.app-drawer {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(246, 250, 245, .95)),
        radial-gradient(circle at top right, rgba(238, 121, 17, .18), transparent 18rem);
    backdrop-filter: blur(20px);
}

.app-drawer__logo {
    max-width: 128px;
}

.app-drawer__actions {
    display: grid;
    gap: .65rem;
}

.app-drawer__actions a,
.app-drawer__actions button {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 50px;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background: #fff;
    color: var(--hg-ink);
    padding: .8rem .9rem;
    text-decoration: none;
    font-weight: 800;
    text-align: left;
}

.mobile-tabbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: var(--hg-z-mobile-tabbar);
    display: flex;
    justify-content: center;
    gap: .25rem;
    padding: .45rem;
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 45px rgba(23, 33, 27, .2);
}

.mobile-tabbar a {
    display: grid;
    flex: 1 1 0;
    place-items: center;
    gap: .12rem;
    min-height: 54px;
    border-radius: 14px;
    color: var(--hg-muted);
    text-decoration: none;
    font-size: .68rem;
    font-weight: 800;
}

.mobile-tabbar i {
    font-size: 1.15rem;
}

.mobile-tabbar a.active,
.mobile-tabbar a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--hg-green), #3a8a52);
}

.mobile-tabbar__main {
    color: inherit;
    background: transparent;
    box-shadow: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .62rem .95rem;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: 0;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}

.btn-sm {
    min-height: 34px;
    padding: .42rem .68rem;
    border-radius: 7px;
    font-size: .8rem;
    font-weight: 820;
}

.btn-lg {
    min-height: 50px;
    padding: .72rem 1.08rem;
    border-radius: 9px;
    font-size: .98rem;
    font-weight: 900;
}

.btn-orange,
.btn-vert,
.btn-primary,
.btn-success {
    box-shadow: 0 10px 24px rgba(23, 33, 27, .12);
}

.btn-orange {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--hg-orange), var(--hg-gold));
}

.btn-vert,
.btn-success {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--hg-green), #45a161);
}

.btn-primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--hg-green), #245c36);
}

.btn-outline-orange,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-warning {
    background-color: rgba(255, 255, 255, .86);
    box-shadow: inset 0 0 0 1px rgba(36, 92, 54, .04);
}

.btn-light {
    color: var(--hg-green);
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .9);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible {
    box-shadow: 0 0 0 .22rem rgba(31, 116, 71, .16);
}

.app-actions .btn,
.quick-search .btn,
.trust-strip .btn,
.hg-form-actions .btn {
    min-height: 48px;
}

.table .btn,
.ride-card .btn,
.list-group-item .btn {
    white-space: nowrap;
}

.is-pressing {
    transform: scale(.98) !important;
}

.form-control,
.form-select,
.input-group-text {
    border-color: var(--hg-line);
    border-radius: 8px;
    color: var(--hg-ink);
    background-color: rgba(255, 255, 255, .96);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.form-control,
.form-select {
    min-height: 52px;
    padding: .85rem 1rem;
    font-weight: 700;
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-floating > textarea.form-control.app-message-textarea,
textarea.form-control.app-message-textarea {
    min-height: 230px;
    padding-top: 1.45rem;
    line-height: 1.55;
}

@media screen and (max-width: 575.98px) {
    .form-floating > textarea.form-control.app-message-textarea,
    textarea.form-control.app-message-textarea {
        min-height: 260px;
    }
}

.form-control::placeholder {
    color: rgba(82, 93, 88, .62);
    font-weight: 650;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(31, 116, 71, .65);
    background-color: #fff;
    box-shadow: 0 0 0 .22rem rgba(31, 116, 71, .12), 0 12px 30px rgba(23, 33, 27, .08);
}

.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 .18rem rgba(220, 53, 69, .1);
}

.input-group .form-control,
.input-group .form-select,
.input-group .input-group-text {
    border-radius: 8px;
}

.input-group > .form-floating {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.password-input-group,
.input-group:has(input[type="password"]),
.input-group:has(input[type="text"][data-password-visible="true"]) {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.password-input-group > .form-floating,
.password-input-group > .form-control,
.input-group:has(input[type="password"]) > .form-floating,
.input-group:has(input[type="password"]) > .form-control,
.input-group:has(input[type="text"][data-password-visible="true"]) > .form-floating,
.input-group:has(input[type="text"][data-password-visible="true"]) > .form-control {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

.password-input-group .toggle-password,
.input-group:has(input[type="password"]) .toggle-password,
.input-group:has(input[type="text"][data-password-visible="true"]) .toggle-password {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    padding-right: 0;
    padding-left: 0;
}

.input-group > .form-floating > .form-control,
.input-group > .form-floating > .form-select {
    border-radius: 8px;
}

.input-group-text {
    min-width: 48px;
    justify-content: center;
    color: var(--hg-green);
    background: rgba(31, 116, 71, .08);
}

.form-floating > label {
    color: var(--hg-muted);
    font-weight: 750;
}

.form-floating > .form-control,
.form-floating > .form-select {
    min-height: 58px;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--hg-green);
    opacity: .88;
}

.hg-autocomplete {
    position: relative;
}

.form-floating > .hg-autocomplete {
    min-height: calc(3.5rem + 2px);
}

.form-floating > .hg-autocomplete > .form-control {
    height: calc(3.5rem + 2px);
    min-height: calc(3.5rem + 2px);
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}

.form-floating > .hg-autocomplete ~ label {
    color: var(--hg-muted);
    font-weight: 750;
    z-index: 2;
}

.form-floating > .hg-autocomplete:focus-within ~ label,
.form-floating > .hg-autocomplete:has(.form-control:not(:placeholder-shown)) ~ label {
    color: var(--hg-green);
    opacity: .88;
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}

.hg-autocomplete__panel {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    right: 0;
    z-index: var(--hg-z-floating-control);
    max-height: 260px;
    overflow-y: auto;
    padding: .35rem;
    border: 1px solid rgba(20, 34, 28, .12);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(20, 34, 28, .18);
}

.hg-autocomplete__option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .8rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--hg-ink);
    text-align: left;
    font-size: .95rem;
}

.hg-autocomplete__option:hover,
.hg-autocomplete__option.is-active {
    background: rgba(50, 98, 61, .1);
    color: var(--hg-green);
}

.hg-autocomplete__option span {
    color: rgba(20, 34, 28, .54);
    font-size: .8rem;
}

.hg-autocomplete__empty {
    padding: .75rem .85rem;
    color: rgba(20, 34, 28, .62);
    font-size: .9rem;
}

.form-label {
    margin-bottom: .45rem;
    color: var(--hg-ink);
    font-size: .92rem;
    font-weight: 850;
}

.field-hint {
    margin: .45rem 0 .8rem;
    color: var(--hg-muted);
    font-size: .88rem;
    font-weight: 720;
    line-height: 1.45;
}

.field-hint::before {
    content: "i";
    display: inline-grid;
    width: 1.05rem;
    height: 1.05rem;
    margin-right: .35rem;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--hg-green);
    font-size: .72rem;
    font-weight: 950;
}

.invalid-feedback {
    font-weight: 750;
}

.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .65rem;
}

.password-rules span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .62rem;
    border: 1px solid rgba(36, 92, 54, .12);
    border-radius: 999px;
    color: var(--hg-muted);
    background: rgba(247, 249, 245, .84);
    font-size: .82rem;
    font-weight: 850;
    line-height: 1.1;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.password-rules span::before {
    content: "";
    width: .48rem;
    height: .48rem;
    border-radius: 50%;
    background: rgba(82, 93, 88, .34);
}

.password-rules span.is-ok {
    color: var(--hg-green);
    border-color: rgba(31, 116, 71, .24);
    background: rgba(31, 116, 71, .09);
}

.password-rules span.is-ok::before {
    background: var(--hg-green);
    box-shadow: 0 0 0 4px rgba(31, 116, 71, .1);
}

.form-check-input {
    border-color: rgba(31, 116, 71, .35);
}

.form-check-input:checked {
    border-color: var(--hg-green);
    background-color: var(--hg-green);
}

.hg-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hg-form-full {
    grid-column: 1 / -1;
}

.hg-form-actions {
    display: grid;
    gap: .75rem;
    padding-top: .35rem;
}

.hg-form-actions .btn {
    min-height: 52px;
    font-weight: 900;
}

@media screen and (min-width: 768px) {
    .hg-form-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .hg-form-actions .btn {
        width: auto;
        min-width: 180px;
    }
}

.card,
.list-group-item,
.modal-content,
.app-panel,
.quick-search {
    border: 1px solid var(--hg-line) !important;
    border-radius: 8px !important;
    background: var(--hg-surface) !important;
    box-shadow: var(--hg-shadow);
}

.list-group {
    gap: .7rem;
}

.list-group-item {
    margin-bottom: .65rem;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.list-group-item:hover {
    transform: translateY(-2px);
    border-color: rgba(238, 121, 17, .42) !important;
}

.nav-tabs,
.nav-pills {
    border: 0;
}

.nav-tabs .nav-link,
.nav-pills .nav-link,
.app-tabs .nav-link {
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    color: var(--hg-green);
    background: rgba(255, 255, 255, .72);
    font-weight: 800;
}

.nav-tabs .nav-link.active,
.nav-pills .nav-link.active,
.app-tabs .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--hg-green), #3f9658);
    border-color: transparent;
}

.app-page-header {
    position: relative;
    padding: 7rem 0 3rem;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(14, 46, 32, .96), rgba(36, 92, 54, .8)),
        url('../images/carte de mayotte aves tous les villages.png') center/cover no-repeat;
}

.app-hero {
    min-height: 86vh;
    padding-top: 7.2rem;
}

.app-hero__content {
    transform: translateY(var(--hero-shift, 0px));
}

.app-hero__content h1 {
    max-width: 660px;
    line-height: .98;
    font-size: clamp(2.7rem, 4vw, 5.1rem);
}

.app-hero__lead {
    max-width: 560px;
}

.app-page-header::after,
.app-hero::after {
    content: '';
    position: absolute;
    inset: auto 8% -90px auto;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    animation: hgFloat 7s ease-in-out infinite;
}

.app-page-header--compact {
    padding-bottom: 2.2rem;
}

.app-page-header h1 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    text-align: left;
    font-size: clamp(2.3rem, 4vw, 4.5rem);
    font-weight: 900;
}

.app-hero__content h1,
.app-page-header h1,
.app-section-heading h2,
.app-main :is(h1, h2, h3):not(.modal-title):not(.offcanvas-title):not(.swal2-title):not(.navbar-brand) {
    position: relative;
    display: inline;
    z-index: 0;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.app-hero__content h1::after,
.app-page-header h1::after,
.app-section-heading h2::after,
.app-main :is(h1, h2, h3):not(.modal-title):not(.offcanvas-title):not(.swal2-title):not(.navbar-brand)::after {
    content: "";
    position: absolute;
    left: .03em;
    right: .02em;
    bottom: .035em;
    z-index: -1;
    height: .22em;
    border-radius: 999px 44% 999px 38%;
    background: linear-gradient(90deg, rgba(255, 189, 89, .95), rgba(238, 121, 17, .9) 48%, rgba(60, 168, 96, .9));
    filter: drop-shadow(0 8px 12px rgba(238, 121, 17, .18));
    opacity: .9;
    transform: scaleX(.08) rotate(-1deg);
    transform-origin: left center;
    animation: hgMarkerSwipe .9s cubic-bezier(.2, .8, .2, 1) .18s forwards;
}

.app-page-header h1::after {
    background: linear-gradient(90deg, rgba(255, 189, 89, .98), rgba(255, 255, 255, .72) 58%, rgba(60, 168, 96, .88));
    opacity: .78;
}

.app-section-heading h2::after {
    bottom: .01em;
    height: .18em;
    opacity: .68;
}

.app-main :is(h2, h3):not(.modal-title):not(.offcanvas-title):not(.swal2-title)::after {
    bottom: .02em;
    height: .16em;
    opacity: .58;
}

.app-page-header p:not(.app-kicker) {
    max-width: 650px;
    margin: .9rem 0 0;
    font-size: 1.12rem;
    color: rgba(255, 255, 255, .88);
}

.app-page-grid,
.app-results-layout,
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.2rem;
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.hg-account-section {
    padding-top: clamp(1.75rem, 3vw, 3rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

.app-results-layout {
    grid-template-columns: 340px minmax(0, 1fr);
}

.app-panel {
    padding: 1.2rem;
}

.app-panel--form,
.app-stack {
    display: grid;
    gap: .9rem;
}

.app-panel__header {
    display: flex;
    gap: .85rem;
    align-items: center;
    margin-bottom: .9rem;
}

.app-panel__header h2,
.app-panel h2 {
    margin: 0;
    color: var(--hg-ink);
    font-size: 1.35rem;
    font-weight: 900;
}

.app-panel__header p,
.app-panel p {
    margin: .2rem 0 0;
    color: var(--hg-muted);
}

.app-panel__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--hg-green), #4aa763);
    box-shadow: 0 12px 26px rgba(36, 92, 54, .22);
}

.hg-list-card {
    display: block;
    padding: 1rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 32px rgba(23, 33, 27, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hg-list-card:hover,
.hg-list-card:focus {
    border-color: rgba(36, 92, 54, .32);
    box-shadow: 0 18px 42px rgba(23, 33, 27, .11);
    transform: translateY(-2px);
}

.reservation-back-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1rem;
    color: var(--hg-green);
    font-weight: 800;
    text-decoration: none;
}

.reservation-back-link:hover,
.reservation-back-link:focus {
    color: var(--hg-green-2);
}

.reservation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.2rem;
    align-items: start;
}

.reservation-main,
.reservation-side {
    display: grid;
    gap: 1rem;
}

.reservation-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hg-line);
}

.reservation-route-kicker,
.reservation-stat span,
.reservation-info-list dt,
.reservation-confirmation__driver span,
.reservation-driver-card__identity span,
.reservation-route-card span {
    display: block;
    color: var(--hg-muted);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.reservation-hero h2,
.reservation-confirmation__intro h2 {
    margin: .2rem 0;
    color: var(--hg-ink);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
}

.reservation-hero p,
.reservation-confirmation__intro p {
    margin: 0;
    color: var(--hg-muted);
}

.reservation-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    width: max-content;
    max-width: 100%;
    padding: .48rem .75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--hg-ink);
    background: rgba(247, 249, 245, .9);
    font-size: .88rem;
    font-weight: 900;
    white-space: nowrap;
}

.reservation-status--en_attente,
.reservation-status--payment-autorise {
    color: #5f4600;
    background: rgba(255, 193, 7, .2);
    border-color: rgba(255, 193, 7, .38);
}

.reservation-status--acceptee,
.reservation-status--payee,
.reservation-status--payment-capture {
    color: #155b35;
    background: rgba(34, 139, 72, .14);
    border-color: rgba(34, 139, 72, .28);
}

.reservation-status--refusee,
.reservation-status--payment-echoue {
    color: #9a1f2d;
    background: rgba(220, 53, 69, .12);
    border-color: rgba(220, 53, 69, .26);
}

.reservation-status--annulee,
.reservation-status--payment-annule {
    color: #596168;
    background: rgba(108, 117, 125, .14);
    border-color: rgba(108, 117, 125, .24);
}

.reservation-status--payment-rembourse {
    color: #0a5870;
    background: rgba(13, 202, 240, .16);
    border-color: rgba(13, 202, 240, .28);
}

.reservation-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.reservation-confirmation .reservation-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reservation-stat {
    min-width: 0;
    padding: .9rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}

.reservation-stat strong {
    display: block;
    margin-top: .25rem;
    color: var(--hg-ink);
    font-size: 1.12rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.reservation-timeline,
.reservation-next-steps,
.reservation-info-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.reservation-timeline__item,
.reservation-next-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
    padding: .9rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .68);
}

.reservation-timeline__item > span,
.reservation-next-step > span,
.reservation-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: var(--hg-green);
    background: rgba(36, 92, 54, .1);
    font-size: 1.15rem;
}

.reservation-timeline__item.is-done > span,
.reservation-next-step.is-active > span,
.reservation-success-icon {
    color: #fff;
    background: linear-gradient(135deg, var(--hg-green), #4aa763);
}

.reservation-timeline__item.is-current {
    border-color: rgba(255, 193, 7, .55);
    background: rgba(255, 249, 232, .78);
}

.reservation-timeline__item.is-muted {
    opacity: .72;
}

.reservation-timeline__item strong,
.reservation-next-step p {
    margin: 0;
    color: var(--hg-ink);
    font-weight: 900;
}

.reservation-timeline__item p {
    margin: .15rem 0 0;
    color: var(--hg-muted);
}

.reservation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1rem;
}

.reservation-actions--center {
    justify-content: center;
}

.reservation-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
}

.reservation-note,
.reservation-rating {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding: .9rem;
    border-radius: 8px;
    background: rgba(36, 92, 54, .08);
    color: var(--hg-green-2);
}

.reservation-note p,
.reservation-rating p {
    margin: 0;
}

.reservation-rating {
    display: grid;
    color: var(--hg-ink);
    background: rgba(255, 193, 7, .12);
}

.reservation-driver-card__identity,
.reservation-confirmation__driver,
.reservation-passenger {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.reservation-driver-card__identity a,
.reservation-driver-card__identity strong {
    color: var(--hg-ink);
    font-size: 1.15rem;
    font-weight: 900;
    text-decoration: none;
}

.reservation-driver-card__identity a:hover {
    color: var(--hg-green);
}

.reservation-info-list {
    margin-bottom: 0;
}

.reservation-info-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    border-top: 1px solid var(--hg-line);
}

.reservation-info-list dd {
    margin: 0;
    color: var(--hg-ink);
    font-weight: 800;
    text-align: right;
}

.reservation-passenger-list {
    display: grid;
    gap: .7rem;
}

.reservation-passenger {
    padding: .7rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .7);
    font-weight: 800;
}

.reservation-danger h2 {
    font-size: 1.25rem;
}

.reservation-cancel-policy {
    border-color: rgba(255, 193, 7, .42);
    background: rgba(255, 249, 232, .78);
}

.reservation-cancel-policy h2 {
    font-size: 1.25rem;
}

.reservation-cancel-policy p,
.reservation-cancel-policy ul {
    color: var(--hg-ink);
}

.reservation-cancel-policy ul {
    margin: .75rem 0 0;
    padding-left: 1.1rem;
}

.reservation-cancel-policy li + li {
    margin-top: .35rem;
}

.reservation-confirmation {
    max-width: 940px;
}

.reservation-confirmation__card {
    display: grid;
    gap: 1rem;
    text-align: center;
}

.reservation-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    font-size: 1.7rem;
}

.reservation-route-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background: rgba(36, 92, 54, .06);
}

.reservation-route-card strong {
    color: var(--hg-ink);
    font-size: 1.25rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.reservation-route-card > i {
    color: var(--hg-green);
    font-size: 2rem;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 1.2rem;
    align-items: start;
}

.payment-summary,
.payment-card {
    display: grid;
    gap: 1rem;
}

.payment-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background: rgba(36, 92, 54, .06);
}

.payment-route span,
.payment-driver span,
.payment-total span {
    display: block;
    color: var(--hg-muted);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.payment-route strong {
    display: block;
    color: var(--hg-ink);
    font-size: 1.25rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.payment-route > i {
    color: var(--hg-green);
    font-size: 2rem;
}

.payment-driver {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .85rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}

.payment-driver strong {
    color: var(--hg-ink);
    font-weight: 900;
}

.payment-total {
    padding: 1rem;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--hg-green), #4aa763);
    box-shadow: 0 16px 36px rgba(36, 92, 54, .18);
}

.payment-total span {
    color: rgba(255, 255, 255, .78);
}

.payment-total strong {
    display: block;
    margin-top: .2rem;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
}

.payment-card-element {
    min-height: 46px;
    padding: .9rem 1rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
}

.payment-form {
    display: grid;
    gap: 1rem;
}

.payment-note {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .85rem;
    border-radius: 8px;
    color: var(--hg-green-2);
    background: rgba(36, 92, 54, .08);
}

.payment-note p {
    margin: 0;
}

.ride-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.2rem;
    align-items: start;
}

.ride-detail-main,
.ride-detail-side {
    display: grid;
    gap: 1rem;
}

.ride-detail-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ride-description-box {
    display: grid;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background: rgba(36, 92, 54, .05);
}

.ride-description-box p {
    margin: 0;
    color: var(--hg-muted);
    line-height: 1.65;
}

.ride-cancel-form {
    display: flex;
    justify-content: flex-end;
}

.ride-reservations-panel {
    margin-top: 1.2rem;
}

.ride-reservation-list {
    display: grid;
    gap: .85rem;
}

.ride-reservation-card {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, auto) minmax(260px, auto);
    gap: .9rem;
    align-items: center;
    padding: .9rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 32px rgba(23, 33, 27, .06);
}

.ride-reservation-card__user {
    display: flex;
    gap: .75rem;
    align-items: center;
    min-width: 0;
}

.ride-reservation-card__user strong,
.ride-reservation-card__user span {
    display: block;
}

.ride-reservation-card__user strong {
    color: var(--hg-ink);
    font-weight: 900;
}

.ride-reservation-card__user span {
    color: var(--hg-muted);
}

.ride-reservation-card__badges,
.ride-reservation-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.ride-reservation-card__actions form {
    margin: 0;
}

.ride-reservation-card__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.hg-photo-preview-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: .9rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background: rgba(36, 92, 54, .05);
}

.hg-photo-preview {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    object-fit: cover;
    border: 4px solid rgba(206, 212, 218, .95);
    border-radius: 50%;
    background: #fff;
}

.hg-profile-summary {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
}

.hg-profile-grid {
    grid-template-areas:
        "main main"
        "trust preferences"
        "presentation preferences";
}

.hg-profile-main {
    grid-area: main;
}

.hg-profile-grid > article:nth-of-type(2) {
    grid-area: trust;
}

.hg-profile-grid > article:nth-of-type(3) {
    grid-area: presentation;
}

.hg-profile-grid > aside {
    grid-area: preferences;
}

.hg-profile-photo-wrap {
    position: relative;
    width: 128px;
    height: 128px;
}

.hg-profile-photo {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border: 5px solid rgba(206, 212, 218, .95);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 16px 38px rgba(23, 33, 27, .14);
}

.hg-profile-photo-edit {
    position: absolute;
    top: 6px;
    right: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hg-avatar-wrap {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    line-height: 1;
    vertical-align: middle;
}

.hg-avatar-wrap .profile-avatar,
.hg-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hg-avatar-wrap.is-verified .profile-avatar,
.hg-avatar-wrap.is-verified img,
.hg-profile-photo-wrap.is-verified .hg-profile-photo {
    border-color: #22c55e;
}

.hg-verified-badge {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 42%);
    z-index: 2;
    width: clamp(16px, 38%, 24px);
    height: clamp(16px, 38%, 24px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid #22c55e;
    border-radius: 999px;
    background: linear-gradient(135deg, #166534, #22c55e);
    box-shadow: 0 6px 14px rgba(22, 101, 52, .28);
    font-size: clamp(.65rem, 45%, .9rem);
}

.hg-profile-photo-wrap .hg-verified-badge {
    width: 34px;
    height: 34px;
    left: 50%;
    bottom: 0;
    font-size: 1rem;
}

.profile-hero__avatar-wrap {
    width: 112px;
    height: 112px;
}

.profile-hero__avatar-wrap .profile-hero__avatar {
    width: 100%;
    height: 100%;
}

.hg-photo-preview-wrap {
    width: 88px;
    height: 88px;
}

.hg-photo-preview-wrap .hg-photo-preview {
    width: 100%;
    height: 100%;
}

.hg-chat-item__avatar-wrap {
    width: 44px;
    height: 44px;
}

.hg-chat-header__avatar-wrap {
    width: 56px;
    height: 56px;
}

.hg-message__avatar-wrap {
    width: 44px;
    height: 44px;
}

.hg-chat-section {
    padding-top: clamp(1.5rem, 3vw, 2.6rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

.hg-chat-shell {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.hg-chat-sidebar,
.hg-chat-panel {
    min-width: 0;
}

.hg-chat-sidebar {
    position: sticky;
    top: 112px;
    max-height: 760px;
    overflow: hidden;
}

.hg-chat-list {
    display: grid;
    gap: .65rem;
    max-height: 620px;
    overflow-y: auto;
    padding-right: .2rem;
}

.hg-chat-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: center;
    padding: .75rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, .68);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hg-chat-item:hover,
.hg-chat-item:focus,
.hg-chat-item.is-active {
    border-color: rgba(36, 92, 54, .36);
    box-shadow: 0 14px 32px rgba(23, 33, 27, .1);
    transform: translateY(-1px);
}

.hg-chat-item.is-active {
    background: rgba(36, 92, 54, .08);
}

.hg-chat-item__avatar,
.hg-chat-header__avatar,
.hg-message__avatar {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 2px solid rgba(206, 212, 218, .95);
    border-radius: 50%;
    background: #fff;
}

.hg-chat-item__body {
    min-width: 0;
}

.hg-chat-item__top {
    display: flex;
    gap: .5rem;
    justify-content: space-between;
    min-width: 0;
}

.hg-chat-item__top strong,
.hg-chat-item__route,
.hg-chat-item__preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hg-chat-item__top small,
.hg-chat-item__preview,
.hg-chat-item__route {
    color: var(--hg-muted);
    font-size: .82rem;
}

.hg-chat-item__route,
.hg-chat-item__preview {
    display: block;
}

.hg-chat-index {
    max-width: 880px;
    margin: 0 auto;
}

.hg-chat-index-list {
    display: grid;
    gap: .75rem;
}

.hg-chat-index-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: center;
    padding: .85rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, .72);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hg-chat-index-item:hover,
.hg-chat-index-item:focus {
    border-color: rgba(36, 92, 54, .36);
    box-shadow: 0 14px 32px rgba(23, 33, 27, .1);
    transform: translateY(-1px);
}

.hg-chat-panel {
    display: grid;
    grid-template-rows: auto minmax(360px, 1fr) auto;
    gap: .9rem;
}

.hg-chat-header {
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--hg-line);
}

.hg-chat-back {
    display: none;
    width: fit-content;
    margin-bottom: .85rem;
    font-weight: 800;
}

.hg-chat-header h2 {
    margin: 0;
}

.hg-chat-header p {
    margin: .15rem 0 0;
}

.hg-chat-header__avatar {
    width: 56px;
    height: 56px;
}

.hg-chat-messages {
    display: grid;
    align-content: start;
    gap: .85rem;
    min-height: 430px;
    max-height: 62vh;
    overflow-y: auto;
    padding: .75rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background:
        linear-gradient(rgba(255, 255, 255, .82), rgba(255, 255, 255, .82)),
        url('../images/logo.png') center/170px auto no-repeat;
}

.hg-message {
    display: flex;
    gap: .65rem;
    align-items: flex-end;
    max-width: min(82%, 720px);
}

.hg-message.is-mine {
    flex-direction: row-reverse;
    justify-self: end;
    text-align: right;
}

.hg-message__content {
    display: grid;
    gap: .25rem;
}

.hg-message__bubble {
    padding: .7rem .85rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(23, 33, 27, .07);
    overflow-wrap: anywhere;
}

.hg-message__text {
    white-space: pre-wrap;
}

.hg-message__image-link {
    position: relative;
    display: block;
    width: min(260px, 62vw);
    min-height: 170px;
    overflow: hidden;
    border-radius: 8px;
    color: inherit;
    background:
        linear-gradient(90deg, rgba(36, 92, 54, .06), rgba(255, 255, 255, .72), rgba(36, 92, 54, .06)),
        rgba(36, 92, 54, .08);
    background-size: 220% 100%;
    cursor: zoom-in;
    animation: hgImageLoading 1.15s ease-in-out infinite;
}

.hg-message__image {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0;
    transition: opacity .22s ease, transform .22s ease;
}

.hg-message__image-link.is-loaded {
    min-height: 0;
    background: transparent;
    animation: none;
}

.hg-message__image-link.is-loaded .hg-message__image {
    opacity: 1;
}

.hg-message__image-link:hover .hg-message__image {
    transform: scale(1.015);
}

.hg-message__image-link.is-error {
    min-height: 86px;
    display: grid;
    place-items: center;
    padding: .8rem;
    color: var(--hg-muted);
    background: rgba(220, 53, 69, .08);
    animation: none;
}

.hg-message__image-link.is-error::after {
    content: "Photo indisponible";
    font-size: .86rem;
    font-weight: 850;
}

.hg-message__image-link.is-error .hg-message__image,
.hg-message__image-link.is-error .hg-message__image-loader,
.hg-message__image-link.is-loaded .hg-message__image-loader {
    display: none;
}

.hg-message__image-loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: var(--hg-green);
    background: rgba(255, 255, 255, .28);
}

.hg-message__image + .hg-message__text,
.hg-message__image-link + .hg-message__text {
    margin-top: .55rem;
}

.hg-chat-image-modal .modal-dialog {
    max-width: min(1040px, calc(100vw - 1.5rem));
}

.hg-chat-image-modal .modal-content {
    position: relative;
    overflow: hidden;
    padding: .7rem;
    border-radius: 12px !important;
    background: rgba(10, 20, 15, .94) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
}

.hg-chat-image-modal__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .9);
    opacity: 1;
}

.hg-chat-image-modal__image {
    display: block;
    width: 100%;
    max-height: min(82vh, 820px);
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.hg-message.is-mine .hg-message__bubble {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--hg-green), #3f9658);
}

.hg-message__date {
    color: var(--hg-muted);
    font-size: .78rem;
}

.hg-chat-form {
    position: relative;
    display: grid;
    gap: 0;
}

.hg-chat-composer {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: .55rem;
    align-items: end;
    padding: .5rem;
    border: 1px solid rgba(36, 92, 54, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 34px rgba(23, 33, 27, .08);
}

.hg-chat-composer textarea.form-control {
    min-height: 52px;
    max-height: 132px;
    padding: .85rem 1rem;
    border: 0;
    border-radius: 24px;
    background: rgba(36, 92, 54, .06);
    box-shadow: none;
    resize: vertical;
}

.hg-chat-composer textarea.form-control:focus {
    background: #fff;
    box-shadow: inset 0 0 0 2px rgba(36, 92, 54, .18);
}

.hg-chat-photo-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--hg-green);
    background: rgba(36, 92, 54, .1);
    font-size: 1.15rem;
}

.hg-chat-send-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 1rem;
}

.hg-chat-image-preview {
    position: absolute;
    left: 3.15rem;
    bottom: calc(100% + .7rem);
    z-index: 4;
    display: block;
    pointer-events: none;
    animation: hgAttachmentPop .18s ease-out;
}

.hg-chat-image-preview[hidden] {
    display: none;
}

.hg-chat-preview-card {
    position: relative;
    width: min(220px, 58vw);
    margin: 0;
    overflow: hidden;
    border: 2px solid rgba(36, 92, 54, .18);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(23, 33, 27, .12);
    pointer-events: auto;
}

.hg-chat-preview-card img {
    display: block;
    width: 100%;
    max-height: 190px;
    object-fit: cover;
}

.hg-chat-preview-remove {
    position: absolute;
    top: .45rem;
    right: .45rem;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(16, 24, 20, .76);
    box-shadow: 0 8px 18px rgba(16, 24, 20, .2);
}

@keyframes hgAttachmentPop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hgImageLoading {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

@media screen and (max-width: 991.98px) {
    .hg-chat-shell {
        grid-template-columns: 1fr;
    }

    .hg-chat-sidebar {
        position: static;
        max-height: none;
    }

    .hg-chat-list {
        display: flex;
        gap: .65rem;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: .15rem .1rem .35rem;
        scroll-snap-type: x mandatory;
    }

    .hg-chat-item {
        width: min(82vw, 320px);
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .hg-chat-panel {
        grid-template-rows: auto minmax(360px, 58vh) auto;
    }

    .hg-chat-messages {
        min-height: 360px;
        max-height: 58vh;
    }

    .hg-message {
        max-width: 92%;
    }
}

@media screen and (max-width: 767.98px) {
    .hg-profile-summary {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .hg-photo-preview-row {
        align-items: flex-start;
    }

    .hg-chat-sidebar {
        display: none;
    }

    .hg-chat-back {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
    }

    .hg-chat-panel {
        grid-template-rows: auto minmax(320px, 52vh) auto;
    }

    .hg-chat-messages {
        min-height: 320px;
        max-height: 52vh;
    }

    .hg-chat-composer {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        padding: .45rem;
    }

    .hg-chat-photo-btn,
    .hg-chat-send-btn {
        width: 42px;
        height: 42px;
    }

    .hg-chat-image-preview {
        left: .45rem;
        right: .45rem;
        bottom: calc(100% + .55rem);
    }

    .hg-chat-preview-card {
        width: min(210px, 70vw);
    }

    .hg-chat-index-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .hg-chat-index-item > .badge {
        justify-self: start;
        grid-column: 2;
    }
}

.app-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: .9rem;
}

.tip-list {
    display: grid;
    gap: .65rem;
    margin-top: 1rem;
}

.tip-list span {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--hg-ink);
    font-weight: 700;
}

.tip-list i {
    color: var(--hg-orange);
}

.app-results-search {
    position: sticky;
    top: 92px;
}

.app-results-main {
    min-width: 0;
}

.app-search-sheet {
    height: auto !important;
    border-radius: 18px 18px 0 0;
}

.ride-list {
    display: grid;
    gap: .85rem;
}

.ride-card {
    position: relative;
    display: grid;
    grid-template-columns: 86px minmax(0, 1.4fr) minmax(120px, .7fr) 96px;
    gap: 1rem;
    align-items: center;
    min-height: 112px;
    padding: 1rem;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    color: var(--hg-ink);
    background: rgba(255, 255, 255, .9);
    text-decoration: none;
    box-shadow: 0 18px 48px rgba(23, 33, 27, .1);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ride-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--hg-orange), var(--hg-green));
}

.ride-card:hover {
    color: var(--hg-ink);
    border-color: rgba(238, 121, 17, .45);
    box-shadow: 0 24px 70px rgba(23, 33, 27, .16);
    transform: translateY(-3px);
}

.ride-card__time strong,
.ride-card__route span,
.ride-card__price strong {
    display: block;
    font-weight: 900;
}

.ride-card__time span,
.ride-card__route small,
.ride-card__price span {
    color: var(--hg-muted);
    font-size: .82rem;
}

.ride-card__route {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .55rem;
    align-items: center;
}

.ride-card__route small {
    flex-basis: 100%;
}

.ride-card__driver {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--hg-muted);
    font-weight: 800;
}

.ride-card__price {
    text-align: right;
}

.ride-card__price strong {
    color: var(--hg-orange);
    font-size: 1.65rem;
}

.ride-card__price sup {
    font-size: .7rem;
}

.ride-card.is-disabled {
    opacity: .58;
}

.ride-card__badge {
    position: absolute;
    top: .7rem;
    right: .7rem;
    border-radius: 999px;
    background: #6c757d;
    color: #fff;
    padding: .25rem .55rem;
    font-size: .7rem;
    font-weight: 800;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 2rem;
    border: 1px dashed rgba(36, 92, 54, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    text-align: center;
}

.empty-state i {
    color: var(--hg-orange);
    font-size: 2.6rem;
}

.empty-state h3 {
    margin: .7rem 0 .2rem;
    font-weight: 900;
}

.empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
    margin-top: 1rem;
}

.ride-scene {
    position: relative;
    height: 92px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(241, 248, 239, .92)),
        linear-gradient(90deg, rgba(36, 92, 54, .1), rgba(238, 121, 17, .14));
    overflow: hidden;
}

.ride-scene__road {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 25px;
    height: 8px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .95) 0 16px, transparent 16px 32px),
        linear-gradient(90deg, rgba(36, 92, 54, .34), rgba(238, 121, 17, .38));
    box-shadow: 0 8px 18px rgba(23, 33, 27, .1);
}

.ride-scene__sign {
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    background: #fff;
    color: var(--hg-green);
    padding: .25rem .55rem;
    font-size: .68rem;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(23, 33, 27, .1);
}

.ride-scene__sign--start {
    left: 14px;
}

.ride-scene__sign--end {
    right: 14px;
}

.ride-scene__van {
    position: absolute;
    left: 26px;
    bottom: 26px;
    z-index: 3;
    display: grid;
    width: 44px;
    height: 34px;
    place-items: center;
    grid-template-columns: 1fr;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--hg-orange), var(--hg-gold));
    box-shadow: 0 12px 24px rgba(238, 121, 17, .28);
    animation: hgRideShare 7.2s cubic-bezier(.65, 0, .35, 1) infinite;
}

.ride-scene__van i {
    font-size: 1.35rem;
}

.ride-scene__passengers {
    position: absolute;
    right: 6px;
    top: 6px;
    display: flex;
    gap: 2px;
    opacity: 0;
    animation: hgPassengerWindows 7.2s cubic-bezier(.65, 0, .35, 1) infinite;
}

.ride-scene__passengers span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 0 0 1px rgba(14, 46, 32, .14);
}

.ride-scene__group {
    position: absolute;
    z-index: 2;
    display: flex;
    gap: 4px;
}

.ride-scene__group span {
    position: relative;
    width: 12px;
    height: 20px;
    border-radius: 999px 999px 5px 5px;
    background: var(--hg-green);
    box-shadow: inset 0 7px 0 rgba(255, 255, 255, .26);
}

.ride-scene__group span::before {
    content: '';
    position: absolute;
    left: 2px;
    top: -7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6f4934;
}

.ride-scene__group--start {
    left: 78px;
    bottom: 31px;
    animation: hgPeopleWait 7.2s cubic-bezier(.65, 0, .35, 1) infinite;
}

.ride-scene__group--arrival {
    right: 20px;
    bottom: 31px;
    z-index: 4;
    opacity: 0;
    transform: translateX(-22px) scale(.82);
    animation: hgPeopleArrival 7.2s cubic-bezier(.65, 0, .35, 1) infinite;
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
}

.profile-hero {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
}

.profile-hero__avatar {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 16px 40px rgba(23, 33, 27, .18);
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-action {
    display: grid;
    gap: .35rem;
    color: var(--hg-ink);
    text-decoration: none;
    min-height: 150px;
}

.dashboard-action:hover {
    color: var(--hg-ink);
    transform: translateY(-3px);
}

.dashboard-action i {
    color: var(--hg-orange);
    font-size: 1.8rem;
}

.dashboard-action strong {
    font-size: 1.1rem;
    font-weight: 900;
}

.dashboard-action span {
    color: var(--hg-muted);
}

.app-reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 28px, 0) scale(.98);
}

.app-reveal--left {
    transform: translate3d(-18px, 28px, 0) scale(.98);
}

.app-reveal--right {
    transform: translate3d(18px, 28px, 0) scale(.98);
}

.app-reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
    transition:
        opacity .7s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay),
        transform .7s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay),
        filter .7s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay);
}

/* Legacy pages upgrade: applies to pages not yet rebuilt as components. */
.app-main > .container.py-5,
.app-main > .container.my-5,
.app-main > .container.mt-5,
.app-main > .container {
    position: relative;
}

.app-main > .container.py-5 > h1:first-child,
.app-main > .container.py-5 > h2:first-child,
.app-main > .container.my-5 > h1:first-child,
.app-main > .container.mt-5 > h1:first-child {
    margin: 0 auto 1.5rem;
    max-width: 860px;
    color: var(--hg-ink);
    text-align: center;
    font-family: var(--hg-font-display);
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    line-height: 1.02;
}

.app-main .container.py-5 > .row,
.app-main .container.my-5 > .row {
    border-radius: 12px;
}

.app-main form.bg-light,
.app-main .bg-light.p-4,
.app-main .shadow-sm.border,
.app-main .card,
.app-main .accordion,
.app-main .table-responsive,
.app-main .list-group {
    border-color: var(--hg-line) !important;
}

.app-main form.bg-light,
.app-main .bg-light.p-4,
.app-main .shadow-sm.border {
    background: rgba(255, 255, 255, .9) !important;
    box-shadow: var(--hg-shadow) !important;
}

.app-main .table {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    vertical-align: middle;
}

.app-main .table-responsive,
.app-main .table-responsive-sm,
.app-main .table-responsive-md,
.app-main .table-responsive-lg,
.app-main .table-responsive-xl,
.app-main .table-responsive-xxl {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

.app-main .table-responsive > .table,
.app-main .table-responsive-sm > .table,
.app-main .table-responsive-md > .table,
.app-main .table-responsive-lg > .table,
.app-main .table-responsive-xl > .table,
.app-main .table-responsive-xxl > .table {
    min-width: 720px;
    margin-bottom: 0;
}

.app-main .table thead th {
    border: 0;
    background: rgba(36, 92, 54, .09);
    color: var(--hg-green);
    font-weight: 900;
}

.app-main .table tbody tr {
    transition: background .18s ease, transform .18s ease;
}

.app-main .table tbody tr:hover {
    background: rgba(238, 121, 17, .06);
}

@media screen and (max-width: 767.98px) {
    .app-main .responsive-card-table {
        min-width: 0 !important;
        border-collapse: separate;
        border-spacing: 0 .85rem;
        background: transparent;
    }

    .app-main .responsive-card-table thead {
        display: none;
    }

    .app-main .responsive-card-table tbody,
    .app-main .responsive-card-table tr,
    .app-main .responsive-card-table td {
        display: block;
        width: 100%;
    }

    .app-main .responsive-card-table tbody tr {
        overflow: hidden;
        margin-bottom: .85rem;
        border: 1px solid var(--hg-line);
        border-radius: 8px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 14px 34px rgba(23, 33, 27, .08);
    }

    .app-main .responsive-card-table td {
        display: grid;
        grid-template-columns: minmax(112px, .42fr) minmax(0, 1fr);
        gap: .75rem;
        align-items: center;
        padding: .85rem .95rem;
        border: 0 !important;
        border-bottom: 1px solid rgba(36, 92, 54, .1) !important;
        text-align: left !important;
        word-break: break-word;
    }

    .app-main .responsive-card-table td:last-child {
        border-bottom: 0 !important;
    }

    .app-main .responsive-card-table td::before {
        content: attr(data-label);
        color: var(--hg-green);
        font-size: .78rem;
        font-weight: 900;
        letter-spacing: .02em;
        text-transform: uppercase;
    }

    .app-main .responsive-card-table td[data-label=""]::before,
    .app-main .responsive-card-table td[colspan]::before {
        display: none;
    }

    .app-main .responsive-card-table td[colspan] {
        display: block;
    }
}

.app-main .badge {
    border-radius: 999px;
    padding: .45rem .62rem;
    font-weight: 800;
}

.app-main .alert {
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(23, 33, 27, .08);
}

.app-main .accordion-item {
    margin-bottom: .7rem;
    overflow: hidden;
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(23, 33, 27, .08);
}

.app-main .accordion-button {
    font-weight: 900;
}

.app-main .modal-content {
    overflow: hidden;
}

.offcanvas-backdrop {
    z-index: var(--hg-z-offcanvas-backdrop) !important;
}

.offcanvas {
    z-index: var(--hg-z-offcanvas) !important;
}

.modal-backdrop {
    z-index: var(--hg-z-modal-backdrop) !important;
}

.modal {
    z-index: var(--hg-z-modal) !important;
}

.flatpickr-calendar {
    z-index: 1010 !important;
}

.modal .flatpickr-calendar {
    z-index: calc(var(--hg-z-modal) + 1) !important;
}

.offcanvas .flatpickr-calendar {
    z-index: calc(var(--hg-z-offcanvas) + 1) !important;
}

.swal2-container {
    z-index: var(--hg-z-swal) !important;
}

.ui-menu {
    z-index: var(--hg-z-floating-control) !important;
}

.app-main .nav-tabs,
.app-main .nav-pills {
    gap: .45rem;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.2rem;
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.auth-card {
    min-width: 0;
}

.auth-aside {
    position: sticky;
    top: 96px;
}

.auth-aside .tip-list {
    margin-top: 1.2rem;
}

.auth-form {
    gap: 1rem;
}

.auth-form__heading {
    display: flex;
    gap: .85rem;
    align-items: center;
    margin-bottom: .25rem;
}

.auth-form__heading > span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--hg-green), #4aa763);
}

.auth-form__heading h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 900;
}

.auth-form__heading p {
    margin: .15rem 0 0;
    color: var(--hg-muted);
}

.auth-input-group .form-control,
.auth-input-group .input-group-text,
.auth-input-group .btn {
    min-height: 52px;
}

.auth-form__links {
    display: flex;
    justify-content: flex-end;
    font-size: .95rem;
}

.auth-form__submit {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    font-weight: 900;
}

.auth-form__register {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--hg-line);
}

.auth-form__register span {
    color: var(--hg-muted);
}

.hg-helpbot {
    position: fixed;
    right: 0;
    top: 52%;
    bottom: auto;
    z-index: var(--hg-z-helpbot);
    font-family: var(--hg-font-body);
    transform: translateY(-50%);
}

.hg-helpbot__trigger {
    display: grid;
    width: 48px;
    height: 52px;
    place-items: center;
    padding: 0 0 0 .1rem;
    border: 0;
    border-radius: 15px 0 0 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--hg-green), #111f18);
    box-shadow: -10px 14px 34px rgba(23, 33, 27, .2);
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease;
}

.hg-helpbot__trigger-tip {
    position: absolute;
    right: calc(100% + .7rem);
    top: 50%;
    white-space: nowrap;
    padding: .58rem .78rem;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    color: var(--hg-green);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 34px rgba(23, 33, 27, .16);
    font-size: .88rem;
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(8px) scale(.96);
    transition: opacity .18s ease, transform .18s ease;
}

.hg-helpbot__trigger-tip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -.34rem;
    width: .68rem;
    height: .68rem;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid rgba(255, 255, 255, .72);
    border-right: 1px solid rgba(255, 255, 255, .72);
    transform: translateY(-50%) rotate(45deg);
}

.hg-helpbot__trigger:hover,
.hg-helpbot__trigger:focus-visible {
    transform: translateX(-4px);
    box-shadow: -14px 18px 44px rgba(23, 33, 27, .28);
}

.hg-helpbot__trigger:hover .hg-helpbot__trigger-tip,
.hg-helpbot__trigger:focus-visible .hg-helpbot__trigger-tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
}

.hg-helpbot__trigger-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: var(--hg-green);
    background: #fff;
    font-size: 1.15rem;
}

.hg-helpbot__panel {
    position: absolute;
    z-index: 1;
    right: calc(100% + .75rem);
    top: 50%;
    bottom: auto;
    width: min(380px, calc(100vw - 1.5rem));
    max-height: min(680px, calc(100vh - 7rem));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 26px 70px rgba(23, 33, 27, .22);
    transform: translateY(-50%);
    transform-origin: center right;
    animation: hgHelpbotIn .22s ease both;
}

.hg-helpbot__panel[hidden] {
    display: none;
}

.hg-helpbot__header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem .85rem;
    color: #fff;
    background:
        radial-gradient(circle at 92% 8%, rgba(238, 121, 17, .42), transparent 32%),
        linear-gradient(135deg, var(--hg-green), #13251b);
}

.hg-helpbot__eyebrow {
    display: block;
    color: rgba(255, 255, 255, .78);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hg-helpbot__header h2 {
    margin: .1rem 0 0;
    font-family: var(--hg-font-display);
    font-size: 1.45rem;
    letter-spacing: 0;
}

.hg-helpbot__close {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.hg-helpbot__intro {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    padding: .95rem 1rem;
    background: linear-gradient(180deg, rgba(31, 116, 71, .08), rgba(255, 255, 255, 0));
}

.hg-helpbot__avatar {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--hg-orange);
    font-size: 1.25rem;
    box-shadow: 0 12px 24px rgba(238, 121, 17, .24);
}

.hg-helpbot__intro p {
    margin: 0;
    color: var(--hg-muted);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.45;
}

.hg-helpbot__search {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: .55rem;
    align-items: center;
    margin: 0 1rem .75rem;
    padding: .7rem .85rem;
    border: 1px solid var(--hg-line);
    border-radius: 12px;
    background: rgba(247, 249, 245, .9);
    color: var(--hg-green);
}

.hg-helpbot__search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--hg-ink);
    font-weight: 800;
}

.hg-helpbot__search input::placeholder {
    color: rgba(82, 93, 88, .72);
}

.hg-helpbot__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
    padding: 0 1rem .8rem;
}

.hg-helpbot__tabs button {
    min-height: 42px;
    border: 1px solid var(--hg-line);
    border-radius: 999px;
    color: var(--hg-muted);
    background: #fff;
    font-weight: 900;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.hg-helpbot__tabs button.active {
    color: #fff;
    border-color: transparent;
    background: var(--hg-green);
}

.hg-helpbot__content {
    max-height: 190px;
    overflow-y: auto;
    padding: 0 1rem .8rem;
}

.hg-helpbot__group {
    display: none;
    gap: .45rem;
}

.hg-helpbot__group.active {
    display: grid;
}

.hg-helpbot__group button {
    width: 100%;
    padding: .78rem .85rem;
    border: 1px solid rgba(36, 92, 54, .12);
    border-radius: 12px;
    color: var(--hg-ink);
    background: rgba(247, 249, 245, .76);
    font-weight: 850;
    text-align: left;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.hg-helpbot__group button:hover,
.hg-helpbot__group button:focus-visible,
.hg-helpbot__group button.active {
    border-color: rgba(31, 116, 71, .42);
    background: #fff;
    transform: translateX(2px);
}

.hg-helpbot__answer {
    margin: 0 1rem 1rem;
    padding: 1rem;
    border-left: 4px solid var(--hg-orange);
    border-radius: 12px;
    color: #23352a;
    background: linear-gradient(135deg, rgba(255, 245, 234, .98), rgba(255, 255, 255, .98));
    box-shadow: 0 12px 28px rgba(23, 33, 27, .08);
    font-size: .95rem;
    font-weight: 760;
    line-height: 1.55;
}

.hg-helpbot__answer strong {
    display: block;
    margin-bottom: .25rem;
    color: var(--hg-green);
    font-weight: 950;
}

.hg-helpbot__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 0 1rem 1rem;
    min-height: 46px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--hg-orange), #d96109);
    font-weight: 900;
    text-decoration: none;
}

.hg-helpbot__empty {
    padding: .85rem;
    border: 1px dashed rgba(36, 92, 54, .22);
    border-radius: 12px;
    color: var(--hg-muted);
    background: rgba(247, 249, 245, .72);
    font-weight: 800;
}

@keyframes hgHelpbotIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(12px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1);
    }
}

@keyframes hgHelpbotMobileIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hgFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(-12px, -18px, 0) rotate(8deg); }
}

@keyframes hgMarkerSwipe {
    0% {
        transform: scaleX(.08) rotate(-1deg);
        opacity: 0;
    }
    55% {
        opacity: .95;
    }
    100% {
        transform: scaleX(1) rotate(-1deg);
        opacity: .9;
    }
}

@keyframes hgDrive {
    0% { transform: translateX(0); }
    50% { transform: translateX(320px); }
    100% { transform: translateX(0); }
}

@keyframes hgRideShare {
    0%, 12% { left: 26px; }
    24%, 42% { left: 96px; }
    68%, 92% { left: calc(100% - 92px); }
    100% { left: calc(100% + 20px); }
}

@keyframes hgPeopleWait {
    0%, 18% { opacity: 1; transform: translateY(0) scale(1); }
    24%, 31% { opacity: 1; transform: translateX(-7px) translateY(-3px) scale(.92); }
    36%, 100% { opacity: 0; transform: translateX(-14px) translateY(-8px) scale(.78); }
}

@keyframes hgPassengerWindows {
    0%, 30% { opacity: 0; transform: scale(.7); }
    36%, 82% { opacity: 1; transform: scale(1); }
    90%, 100% { opacity: 0; transform: scale(.72); }
}

@keyframes hgPeopleArrival {
    0%, 76% { opacity: 0; transform: translateX(-22px) translateY(-6px) scale(.78); }
    84%, 94% { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
    100% { opacity: 0; transform: translateX(14px) translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media screen and (max-width: 991.98px) {
    body.app-shell {
        padding-bottom: 86px;
    }

    .hg-helpbot {
        top: auto;
        right: 0;
        bottom: 104px;
        transform: none;
    }

    .hg-helpbot__trigger {
        width: 46px;
        height: 50px;
        border-radius: 14px 0 0 14px;
    }

    .hg-helpbot__trigger-icon {
        width: 34px;
        height: 34px;
        font-size: 1.08rem;
    }

    .hg-helpbot__panel {
        position: fixed;
        right: .75rem;
        bottom: 96px;
        top: auto;
        width: calc(100vw - 1.5rem);
        max-height: calc(100vh - 8rem);
        transform: none;
        transform-origin: bottom right;
    }

    .hg-helpbot__panel {
        animation-name: hgHelpbotMobileIn;
    }

    .app-page-grid,
    .app-results-layout,
    .auth-layout,
    .reservation-layout,
    .payment-layout,
    .ride-detail-layout,
    .ride-reservation-card {
        grid-template-columns: 1fr;
    }

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

    .reservation-side > .app-panel {
        min-width: 0;
    }

    .ride-detail-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ride-detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ride-reservation-card__badges,
    .ride-reservation-card__actions {
        justify-content: flex-start;
    }

    .hg-profile-grid {
        grid-template-areas:
            "main"
            "trust"
            "presentation"
            "preferences";
    }

    .auth-layout {
        padding-top: 1.2rem;
        padding-bottom: 2.5rem;
    }

    .auth-aside {
        position: static;
    }

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

    .ride-card {
        grid-template-columns: 70px minmax(0, 1fr) 82px;
    }

    .ride-card__driver {
        grid-column: 2 / 4;
    }
}

@media screen and (max-width: 575.98px) {
    .app-page-header {
        padding-top: 6rem;
    }

    .auth-page-header {
        padding-bottom: 2rem;
    }

    .auth-page-header h1 {
        font-size: 2rem;
    }

    .auth-form {
        padding: 1rem;
    }

    .auth-form__heading {
        align-items: flex-start;
    }

    .auth-form__heading h2 {
        font-size: 1.25rem;
    }

    .auth-input-group {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
    }

    .auth-input-group .input-group-text {
        flex: 0 0 48px;
    }

    .auth-input-group > .form-control {
        flex: 1 1 auto;
        width: 1%;
        min-width: 0;
    }

    .auth-input-group > .form-floating {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    .auth-input-group > .form-floating > .form-control {
        width: 100%;
        min-width: 0;
    }

    .auth-input-group .toggle-password {
        flex: 0 0 48px;
        padding-right: 0;
        padding-left: 0;
    }

    .auth-form__links {
        justify-content: center;
    }

    .auth-form__register .btn {
        width: 100%;
    }

    .app-form-row,
    .profile-hero,
    .hg-form-grid,
    .reservation-side,
    .ride-detail-side,
    .ride-detail-stats,
    .reservation-stats,
    .reservation-confirmation .reservation-stats {
        grid-template-columns: 1fr;
    }

    .reservation-hero {
        display: grid;
    }

    .reservation-status {
        width: 100%;
    }

    .reservation-actions {
        display: grid;
    }

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

    .ride-cancel-form,
    .ride-reservation-card__actions {
        display: grid;
        justify-content: stretch;
    }

    .ride-cancel-form .btn,
    .ride-reservation-card__actions .btn,
    .ride-reservation-card__actions form {
        width: 100%;
    }

    .reservation-timeline__item,
    .reservation-next-step {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: .8rem;
    }

    .reservation-timeline__item > span,
    .reservation-next-step > span {
        width: 40px;
        height: 40px;
    }

    .reservation-info-list > div {
        display: grid;
        gap: .2rem;
    }

    .reservation-info-list dd {
        text-align: left;
    }

    .reservation-route-card {
        grid-template-columns: 1fr;
    }

    .reservation-route-card > i {
        transform: rotate(90deg);
    }

    .payment-route {
        grid-template-columns: 1fr;
    }

    .payment-route > i {
        transform: rotate(90deg);
    }

    .hg-form-full {
        grid-column: auto;
    }

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

    .ride-card {
        grid-template-columns: 1fr;
        gap: .55rem;
    }

    .ride-card__time,
    .ride-card__price {
        text-align: left;
    }

    .ride-card__driver {
        grid-column: auto;
    }

    .mobile-tabbar span {
        font-size: .62rem;
    }
}
