:root {
    --bg: #d7dbc9;
    --road: rgba(255, 255, 255, 0.8);
    --road-soft: rgba(255, 255, 255, 0.45);
    --block: rgba(120, 140, 105, 0.18);
    --park: rgba(125, 176, 105, 0.22);
    --water: rgba(107, 169, 196, 0.18);
    --panel: rgba(20, 24, 22, 0.92);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text: #f6f2e9;
    --muted: rgba(246, 242, 233, 0.72);
    --accent: #ff7a1a;
    --accent-dark: #d65500;
    --shadow: 0 24px 70px rgba(17, 23, 20, 0.3);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
textarea,
select,
[role="button"],
.setting-tile,
.notification-item,
.driver-option,
.nav-button,
.brand-button {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

a,
button,
input,
textarea,
select {
    font: inherit;
}

button {
    touch-action: manipulation;
    user-select: none;
}

button:focus,
a:focus,
[role="button"]:focus,
.setting-tile:focus,
.notification-item:focus,
.driver-option:focus,
.nav-button:focus,
.brand-button:focus {
    outline: none;
}

button:focus-visible {
    outline: 2px solid rgba(255, 122, 26, 0.65);
    outline-offset: 3px;
}

.setting-tile:focus-visible,
.notification-item:focus-visible,
.driver-option:focus-visible,
.nav-button:focus-visible,
.brand-button:focus-visible {
    outline: 2px solid rgba(255, 122, 26, 0.65);
    outline-offset: 3px;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.34) 0, rgba(255, 255, 255, 0.34) 6px, transparent 7px),
        radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.28) 0, rgba(255, 255, 255, 0.28) 5px, transparent 6px),
        linear-gradient(115deg, transparent 0 12%, var(--road) 12% 14%, transparent 14% 100%),
        linear-gradient(180deg, transparent 0 27%, var(--road-soft) 27% 30%, transparent 30% 100%),
        linear-gradient(38deg, transparent 0 52%, rgba(255, 255, 255, 0.58) 52% 55%, transparent 55% 100%),
        linear-gradient(90deg, transparent 0 66%, rgba(255, 255, 255, 0.5) 66% 69%, transparent 69% 100%),
        linear-gradient(0deg, transparent 0 72%, rgba(255, 255, 255, 0.4) 72% 74%, transparent 74% 100%),
        linear-gradient(140deg, var(--park) 0 18%, transparent 18% 100%),
        linear-gradient(220deg, transparent 0 76%, var(--water) 76% 100%),
        linear-gradient(90deg, transparent 0 24%, var(--block) 24% 36%, transparent 36% 100%),
        linear-gradient(0deg, transparent 0 44%, var(--block) 44% 56%, transparent 56% 100%),
        linear-gradient(135deg, #cfd7bf 0%, #d8dcc7 48%, #c2ccb6 100%);
    background-size:
        220px 220px,
        320px 320px,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        240px 240px,
        200px 200px,
        100% 100%;
    background-position:
        0 0,
        0 0,
        center,
        center,
        center,
        center,
        center,
        center,
        center,
        0 0,
        90px 70px,
        center;
}

.app {
    position: relative;
    width: 100%;
    height: 100%;
}

.top-bar {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    z-index: 2;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    background: rgba(20, 24, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-button {
    border: 0;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    background: transparent;
}

.brand-button:hover,
.brand-button:focus-visible {
    background: transparent;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.status-pill {
    color: var(--muted);
    font-size: 0.92rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #66d17a;
    box-shadow: 0 0 0 5px rgba(102, 209, 122, 0.2);
}

.notification-button {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 30;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 18px;
    color: #fff7ed;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.notification-button.is-hidden {
    display: none;
}

.notification-button:hover,
.notification-button:focus-visible {
    background: transparent;
}

.notification-button svg {
    width: 25px;
    height: 25px;
}

.notification-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff7ed;
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 8px 20px rgba(214, 85, 0, 0.34);
}

.notification-dot[hidden] {
    display: none;
}

.update-toast {
    position: fixed;
    top: 18px;
    right: 84px;
    z-index: 31;
    display: grid;
    gap: 2px;
    min-width: 210px;
    padding: 12px 16px;
    border-radius: 18px;
    color: var(--text);
    background: rgba(20, 24, 22, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.update-toast[hidden] {
    display: none;
}

.update-toast span {
    color: var(--muted);
    font-size: 0.86rem;
}

.update-screen {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    color: var(--text);
    background: rgba(12, 16, 14, 0.98);
}

.update-screen[hidden] {
    display: none;
}

.update-screen__card {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.update-screen__loader {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--accent);
    animation: kabra-spin 900ms linear infinite;
}

.update-screen__message {
    display: grid;
    gap: 6px;
    text-align: center;
}

.update-screen__message[hidden] {
    display: none;
}

.update-screen__message strong {
    font-size: 1.35rem;
}

.update-screen__message span {
    color: var(--muted);
}

@keyframes kabra-spin {
    to {
        transform: rotate(360deg);
    }
}

.map-pin,
.map-pin::before {
    position: absolute;
    border-radius: 999px;
}

.map-pin {
    width: 22px;
    height: 22px;
    z-index: 1;
    box-shadow: 0 12px 26px rgba(17, 23, 20, 0.2);
}

.map-pin::before {
    content: "";
    inset: 5px;
    background: rgba(255, 255, 255, 0.9);
}

.map-pin--user {
    top: 28%;
    left: 44%;
    background: #1d4ed8;
}

.map-pin--driver {
    top: 43%;
    left: 60%;
    background: var(--accent);
}

.map-pin--hotspot {
    top: 58%;
    left: 34%;
    background: #15803d;
}

.route-line {
    position: absolute;
    top: 31%;
    left: 45%;
    width: 18%;
    height: 13%;
    border: 3px dashed rgba(20, 24, 22, 0.34);
    border-color: rgba(20, 24, 22, 0.34) transparent transparent transparent;
    border-radius: 999px 999px 0 0;
    transform: rotate(14deg);
    z-index: 0;
}

.control-panel {
    position: absolute;
    left: 18px;
    top: 92px;
    bottom: 18px;
    width: min(420px, calc(100vw - 36px));
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 18px;
    border-radius: 28px;
    z-index: 2;
    backdrop-filter: blur(18px);
    background: rgba(20, 24, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.demo-panel {
    min-width: 0;
    min-height: 0;
    display: flex;
    height: 100%;
    overflow: hidden;
    --tab-index: 1;
}

.demo-panel__tab {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transform: translateX(calc(var(--tab-index) * -100%));
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.demo-panel__tab::-webkit-scrollbar,
.notification-list::-webkit-scrollbar {
    display: none;
}

.demo-panel__tab[data-tab="book"] {
    overflow: hidden;
}

.demo-panel__tab.is-active {
    display: block;
}

.demo-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 244, 233, 0.86);
    background: rgba(255, 255, 255, 0.08);
}

.demo-panel h2,
.demo-panel p,
.demo-panel h3 {
    margin-top: 0;
}

.demo-panel h2 {
    margin-bottom: 8px;
    font-size: 1.7rem;
    line-height: 1.05;
}

.demo-panel__intro {
    margin-bottom: 16px;
    color: var(--muted);
    line-height: 1.55;
}

.demo-stack {
    display: grid;
    gap: 12px;
}

.booking-launch-wrap {
    height: 100%;
    display: grid;
    place-items: center;
}

.booking-launch-wrap[hidden],
.booking-results[hidden] {
    display: none;
}

.booking-launch-button {
    width: min(90%, 420px);
    min-height: 132px;
    border: 0;
    border-radius: 30px;
    color: #fff7ed;
    cursor: pointer;
    font: inherit;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow:
        0 26px 48px rgba(214, 85, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    animation: kabra-launch-breathe 1800ms ease-in-out infinite;
    transform-origin: center;
}

.booking-launch-button:hover,
.booking-launch-button:focus-visible {
    animation-play-state: paused;
    transform: translateY(-2px) scale(1.01);
}

.booking-launch-button:active {
    animation-play-state: paused;
    transform: scale(0.97);
    box-shadow:
        0 14px 24px rgba(214, 85, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.booking-results {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.booking-results::-webkit-scrollbar {
    display: none;
}

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

.ride-summary-grid[hidden] {
    display: none;
}

.ride-summary-card {
    min-height: 76px;
    padding: 12px 14px;
    border-radius: 18px;
    color: var(--text);
    text-align: left;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ride-summary-card[hidden] {
    display: none;
}

button.ride-summary-card {
    cursor: pointer;
}

button.ride-summary-card:hover,
button.ride-summary-card:focus-visible {
    border-color: rgba(255, 122, 26, 0.34);
    background: rgba(255, 255, 255, 0.075);
}

.ride-summary-card small,
.ride-summary-card strong {
    display: block;
}

.ride-summary-card small {
    margin-bottom: 6px;
    color: rgba(246, 242, 233, 0.56);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ride-summary-card strong {
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.28;
}

.ride-details-card {
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ride-details-card[hidden] {
    display: none;
}

.ride-details-card__header {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.ride-details-card__header small,
.ride-details-item small {
    color: rgba(246, 242, 233, 0.56);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ride-details-card__header strong,
.ride-details-item strong {
    color: var(--text);
}

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

.ride-details-item {
    min-height: 74px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ride-details-item small,
.ride-details-item strong {
    display: block;
}

.ride-details-item small {
    margin-bottom: 6px;
}

.ride-details-item strong {
    font-size: 0.95rem;
    line-height: 1.25;
}

.demo-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.96rem;
}

.demo-card p,
.demo-card span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ride-plans-shell {
    border-radius: 22px;
    min-height: 250px;
}

.ride-plans-shell[hidden] {
    display: none;
}

.ride-options {
    position: relative;
    overflow: hidden;
    display: grid;
    min-height: 250px;
    height: 100%;
    padding: 14px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top center, rgba(255, 122, 26, 0.1), transparent 44%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ride-options__loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 14px;
    padding: 14px;
    text-align: center;
    background:
        radial-gradient(circle at top center, rgba(255, 122, 26, 0.1), transparent 44%),
        rgba(255, 255, 255, 0.04);
}

.ride-options__loading strong {
    font-size: 1.02rem;
    color: #fff7ed;
    letter-spacing: 0.02em;
}

.ride-options__loading[hidden] {
    display: none;
}

.ride-plans-loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--accent);
    border-right-color: rgba(255, 122, 26, 0.72);
    animation: kabra-spinner 900ms linear infinite;
}

.ride-options {
    gap: 12px;
    align-content: start;
}

.ride-options.is-loading .driver-option {
    visibility: hidden;
}

.ride-options::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background:
        linear-gradient(
            115deg,
            rgba(255, 122, 26, 0.04) 0%,
            rgba(255, 122, 26, 0.08) 18%,
            rgba(255, 173, 94, 0.92) 32%,
            rgba(255, 122, 26, 0.08) 46%,
            rgba(255, 122, 26, 0.04) 64%,
            rgba(255, 122, 26, 0.04) 100%
        );
    background-size: 220% 220%;
    background-position: 0% 50%;
    animation: kabra-neon-ring 3200ms ease-in-out infinite;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.9;
}

.ride-options::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        0 0 16px rgba(255, 122, 26, 0.12),
        inset 0 0 12px rgba(255, 122, 26, 0.06);
}

.driver-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px;
    border-radius: 20px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.065);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.driver-option.is-pending {
    animation: kabra-plan-pulse 1800ms ease-in-out infinite;
}

.driver-option.is-selected {
    border-color: rgba(255, 122, 26, 0.6);
    background:
        radial-gradient(circle at left center, rgba(255, 122, 26, 0.1), transparent 46%),
        rgba(255, 122, 26, 0.1);
    box-shadow:
        0 16px 28px rgba(214, 85, 0, 0.14),
        inset 0 0 0 1px rgba(255, 122, 26, 0.14);
}

.driver-option strong,
.driver-option small,
.driver-option b {
    display: block;
}

.driver-option small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.driver-option b {
    flex: 0 0 auto;
    color: #fff7ed;
    font-size: 1.16rem;
}

.driver-option__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.driver-option__go {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff7ed;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 12px 22px rgba(214, 85, 0, 0.22);
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 160ms ease, transform 160ms ease;
}

.driver-option.is-selected .driver-option__go {
    opacity: 1;
    transform: scale(1);
}

@keyframes kabra-neon-ring {
    0% {
        background-position: 0% 50%;
        opacity: 0.72;
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.72;
    }
}

@keyframes kabra-spinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes kabra-plan-pulse {
    0%,
    100% {
        transform: translateY(0);
        border-color: rgba(255, 255, 255, 0.065);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }
    50% {
        transform: translateY(-2px);
        border-color: rgba(255, 122, 26, 0.26);
        box-shadow: 0 16px 30px rgba(214, 85, 0, 0.12);
    }
}

.booking-modal {
    padding: 0;
    place-items: stretch;
    z-index: 70;
}

.booking-modal__dialog {
    width: 100vw;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    border-radius: 0;
    border: 0;
    position: relative;
    overflow: hidden;
    background: rgba(12, 16, 14, 0.985);
}

.booking-modal__map {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.24) 0, rgba(255, 255, 255, 0.24) 4px, transparent 5px),
        radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.2) 5px, transparent 6px),
        linear-gradient(122deg, transparent 0 10%, rgba(255, 255, 255, 0.62) 10% 13%, transparent 13% 100%),
        linear-gradient(180deg, transparent 0 28%, rgba(255, 255, 255, 0.26) 28% 31%, transparent 31% 100%),
        linear-gradient(90deg, transparent 0 64%, rgba(255, 255, 255, 0.38) 64% 67%, transparent 67% 100%),
        linear-gradient(0deg, transparent 0 56%, rgba(255, 255, 255, 0.22) 56% 59%, transparent 59% 100%),
        linear-gradient(36deg, transparent 0 52%, rgba(255, 255, 255, 0.4) 52% 55%, transparent 55% 100%),
        linear-gradient(140deg, rgba(120, 173, 98, 0.26) 0 18%, transparent 18% 100%),
        linear-gradient(220deg, transparent 0 76%, rgba(88, 163, 191, 0.18) 76% 100%),
        linear-gradient(90deg, transparent 0 22%, rgba(120, 140, 105, 0.16) 22% 33%, transparent 33% 100%),
        linear-gradient(0deg, transparent 0 44%, rgba(120, 140, 105, 0.16) 44% 56%, transparent 56% 100%),
        linear-gradient(135deg, #cfd7bf 0%, #d8dcc7 48%, #c2ccb6 100%);
}

.booking-modal__sheet {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 20px), 720px);
    margin: 10px 10px 0;
    padding: 14px 14px 16px;
    display: grid;
    align-content: start;
    gap: 10px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top center, rgba(255, 122, 26, 0.12), transparent 36%),
        rgba(12, 16, 14, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.booking-modal__label {
    margin: 0;
    color: rgba(246, 242, 233, 0.82);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.booking-modal__input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 4px;
}

.booking-modal__input-row input {
    width: 100%;
    min-height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    outline: 0;
    padding: 0 18px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
    font-size: 1.02rem;
}

.booking-modal__input-row input::placeholder {
    color: rgba(246, 242, 233, 0.44);
    white-space: nowrap;
}

.booking-modal__input-row input:focus {
    border-color: rgba(255, 122, 26, 0.8);
    box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.14);
}

.booking-modal__next {
    width: 58px;
    min-width: 58px;
    height: 58px;
    border: 0;
    border-radius: 18px;
    color: #fff7ed;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 18px 34px rgba(214, 85, 0, 0.24);
}

.booking-modal__next span {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.booking-modal__next:disabled {
    color: rgba(246, 242, 233, 0.64);
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(118, 123, 120, 0.92) 0%, rgba(87, 92, 89, 0.96) 100%);
    box-shadow: none;
}

.booking-modal__map-pin,
.booking-modal__map-route {
    position: absolute;
}

.booking-modal__map-pin {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(17, 23, 20, 0.22);
}

.booking-modal__map-pin::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
}

.booking-modal__map-pin--origin {
    top: 38%;
    left: 22%;
    background: #1d4ed8;
}

.booking-modal__map-pin--destination {
    top: 63%;
    right: 20%;
    background: var(--accent);
}

.booking-modal__map-route {
    top: 42%;
    left: 24%;
    width: 48%;
    height: 28%;
    border: 3px dashed rgba(20, 24, 22, 0.36);
    border-color: rgba(20, 24, 22, 0.36) transparent transparent transparent;
    border-radius: 999px 999px 0 0;
    transform: rotate(12deg);
}

.modal__dialog--trip-preview {
    width: min(460px, calc(100vw - 32px));
    padding: 58px 18px 18px;
    overflow: hidden;
}

.trip-preview-map {
    position: relative;
    min-height: 360px;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.04) 0 14%, transparent 14% 100%),
        linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.04) 18% 21%, transparent 21% 46%, rgba(255,255,255,.04) 46% 49%, transparent 49% 74%, rgba(255,255,255,.04) 74% 77%, transparent 77% 100%),
        linear-gradient(0deg, transparent 0 16%, rgba(255,255,255,.04) 16% 19%, transparent 19% 44%, rgba(255,255,255,.04) 44% 47%, transparent 47% 72%, rgba(255,255,255,.04) 72% 75%, transparent 75% 100%),
        linear-gradient(140deg, #161e1a 0%, #1d2622 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.trip-preview-road,
.trip-preview-route,
.trip-preview-pin,
.trip-preview-bike {
    position: absolute;
}

.trip-preview-road {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.trip-preview-road--one {
    width: 130%;
    height: 16px;
    top: 20%;
    left: -16%;
    transform: rotate(32deg);
}

.trip-preview-road--two {
    width: 110%;
    height: 12px;
    top: 58%;
    left: -8%;
    transform: rotate(-12deg);
}

.trip-preview-route {
    border-top: 3px dashed rgba(255, 122, 26, 0.7);
    transform-origin: left center;
}

.trip-preview-route--first {
    top: 34%;
    left: 18%;
    width: 28%;
    transform: rotate(18deg);
}

.trip-preview-route--second {
    top: 44%;
    left: 44%;
    width: 28%;
    transform: rotate(-24deg);
}

.trip-preview-pin {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 8px rgba(255,255,255,.08);
}

.trip-preview-pin::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: inherit;
}

.trip-preview-pin--zero {
    top: 28%;
    left: 14%;
}

.trip-preview-pin--zero::before {
    background: #2b9b56;
}

.trip-preview-pin--a {
    top: 38%;
    left: 42%;
}

.trip-preview-pin--a::before {
    background: #2f62ff;
}

.trip-preview-pin--b {
    top: 50%;
    right: 18%;
}

.trip-preview-pin--b::before {
    background: var(--accent);
}

.trip-preview-bike {
    top: 30%;
    left: 14%;
    width: 38px;
    height: 38px;
    color: #fff7ed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 16px 30px rgba(214, 85, 0, 0.24);
    animation: tripBikeRoute 4s ease-in-out infinite;
}

.trip-preview-bike svg {
    width: 22px;
    height: 22px;
}

#start-trip-button {
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
}

@keyframes kabra-launch-breathe {
    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 26px 48px rgba(214, 85, 0, 0.26),
            inset 0 1px 0 rgba(255, 255, 255, 0.24);
    }
    35% {
        transform: translateY(-3px) scale(1.01);
        box-shadow:
            0 32px 56px rgba(214, 85, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.26);
    }
    55% {
        transform: translateY(1px) scale(0.985);
        box-shadow:
            0 18px 30px rgba(214, 85, 0, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }
}

.demo-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff7ed;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: calc(100% - 118px);
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.settings-grid::-webkit-scrollbar {
    display: none;
}

.settings-sync {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 11px 12px;
    border-radius: 18px;
    color: rgba(246, 242, 233, 0.68);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.settings-sync p,
.settings-sync span {
    display: block;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
}

.settings-sync span {
    color: rgba(246, 242, 233, 0.48);
}

.settings-sync__reload {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(246, 242, 233, 0.78);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
    font-weight: 700;
}

.settings-sync__reload:hover,
.settings-sync__reload:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
}

.setting-tile {
    position: relative;
    overflow: hidden;
    min-height: 116px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 18px;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.038));
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.setting-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.1), transparent 45%);
    transition: opacity 160ms ease;
}

.setting-tile:hover,
.setting-tile:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 26, 0.34);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 122, 26, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.setting-tile:hover::after,
.setting-tile:focus-visible::after {
    opacity: 1;
}

.setting-tile__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 14px;
    color: #ffb06d;
    background: rgba(255, 122, 26, 0.12);
    border: 1px solid rgba(255, 122, 26, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.setting-tile__icon svg {
    width: 22px;
    height: 22px;
}

.setting-tile strong {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 0.92rem;
    line-height: 1.15;
}

.setting-tile small {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.25;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 9, 0.58);
    backdrop-filter: blur(6px);
}

.modal__dialog {
    position: relative;
    width: min(380px, calc(100vw - 40px));
    padding: 22px;
    border-radius: 24px;
    color: var(--text);
    background: rgba(20, 24, 22, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.modal__dialog h2 {
    margin: 8px 0 10px;
}

.modal__dialog p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.modal__dialog p + p {
    margin-top: 12px;
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    padding: 0;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}

.modal__close::before,
.modal__close::after {
    content: "";
    position: absolute;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.modal__close::before {
    transform: rotate(45deg);
}

.modal__close::after {
    transform: rotate(-45deg);
}

.modal__back-button::before,
.modal__back-button::after {
    width: 14px;
    transform-origin: left center;
}

.modal__back-button::before {
    transform: translateX(-2px) rotate(45deg);
}

.modal__back-button::after {
    transform: translateX(-2px) rotate(-45deg);
}

#notifications-modal .modal__close,
#notification-detail-modal .modal__close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(20, 24, 22, 0.88);
    box-shadow: var(--shadow);
}

#notifications-modal .modal__close::before,
#notifications-modal .modal__close::after,
#notification-detail-modal .modal__close::before,
#notification-detail-modal .modal__close::after {
    width: 21px;
    height: 2.5px;
}

#notification-detail-modal .modal__back-button::before,
#notification-detail-modal .modal__back-button::after {
    width: 17px;
}

#notifications-modal .modal__close:hover,
#notifications-modal .modal__close:focus-visible,
#notification-detail-modal .modal__close:hover,
#notification-detail-modal .modal__close:focus-visible {
    background: rgba(28, 34, 30, 0.94);
}

.modal__dialog--notifications {
    width: min(440px, calc(100vw - 40px));
}

.notifications-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-right: 0;
}

.notifications-heading h2 {
    margin: 0;
}

.notifications-heading__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#notifications-modal .notifications-heading .modal__close {
    position: relative;
    top: auto;
    right: auto;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

#notifications-modal .notifications-heading .modal__close::before,
#notifications-modal .notifications-heading .modal__close::after {
    width: 18px;
    height: 2.25px;
}

.notification-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-tab {
    min-height: 40px;
    border: 0;
    border-radius: 14px;
    color: var(--muted);
    cursor: pointer;
    background: transparent;
    font-weight: 700;
}

.notification-tab.is-active {
    color: #fff7ed;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 12px 24px rgba(214, 85, 0, 0.18);
}

.notification-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    max-height: min(56vh, 460px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.notification-empty {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
    color: var(--muted);
}

.notification-empty[hidden] {
    display: none;
}

.notification-empty__icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fed7aa;
    background: rgba(255, 122, 26, 0.12);
    border: 1px solid rgba(255, 122, 26, 0.14);
}

.notification-empty__icon svg {
    width: 32px;
    height: 32px;
}

.notification-empty strong {
    color: var(--text);
    font-size: 1.05rem;
}

.notification-empty p {
    max-width: 28ch;
    margin: 0;
    line-height: 1.45;
}

.notification-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: transparent;
    border: 0;
    cursor: pointer;
    touch-action: pan-y;
}

.notification-item__body {
    position: relative;
    z-index: 1;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.notification-item.is-unseen .notification-item__body {
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 122, 26, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.06);
}

.notification-item.is-unseen .notification-item__body::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(255, 122, 26, 0.12);
}

.notification-item.is-seen {
    opacity: 0.72;
}

.notification-item.is-seen .notification-item__type {
    color: rgba(254, 215, 170, 0.78);
    background: rgba(255, 255, 255, 0.06);
}

.notification-item:hover .notification-item__body,
.notification-item:focus-visible .notification-item__body {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 26, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.notification-item--update .notification-item__body {
    border-color: rgba(255, 122, 26, 0.28);
    background: rgba(255, 122, 26, 0.1);
}

.notification-item[hidden] {
    display: none;
}

.notification-item__type {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fed7aa;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 122, 26, 0.12);
}

.notification-item strong {
    display: block;
    margin-bottom: 5px;
}

.notification-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.88rem;
}

.notification-item.is-swiping-left::before,
.notification-item.is-swiping-right::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.notification-item.is-swiping-left::before {
    background: #c93232;
}

.notification-item.is-swiping-right::before {
    background: #1e8e4f;
}

.notification-item.is-swiping-left::after,
.notification-item.is-swiping-right::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    pointer-events: none;
}

.notification-item.is-swiping-left::after {
    right: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 7h14M9 7V5h6v2M8 10v8M12 10v8M16 10v8M7 7l1 13h8l1-13' stroke='%23fff7ed' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.notification-item.is-swiping-right::after {
    left: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4.5 7.5h15M6 7.5V19h12V7.5M8.5 4.5h7L17 7.5H7l1.5-3Z' stroke='%23fff7ed' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M9.5 12h5' stroke='%23fff7ed' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.notification-action {
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
    border: 0;
    border-radius: 14px;
    color: #fff7ed;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.notification-action[hidden] {
    display: none;
}

.notification-action--with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notification-action--with-icon svg {
    width: 19px;
    height: 19px;
}

.notification-action--ghost {
    background: rgba(255, 255, 255, 0.08);
}

.notification-action--danger {
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
}

.modal__dialog--chat {
    width: min(420px, calc(100vw - 40px));
}

.chat-thread {
    display: grid;
    margin-top: 18px;
    padding: 16px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 26, 0.14), transparent 38%),
        rgba(255, 255, 255, 0.045);
}

.notification-banner {
    min-height: 116px;
    margin-top: 16px;
    border-radius: 20px;
    display: grid;
    place-items: end start;
    padding: 16px;
    color: #fff7ed;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 32%),
        linear-gradient(135deg, var(--accent) 0%, #8f2d00 100%);
    box-shadow: 0 18px 34px rgba(214, 85, 0, 0.22);
}

.notification-banner[hidden] {
    display: none;
}

.notification-banner span {
    max-width: 16ch;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.05;
}

.chat-bubble {
    width: min(100%, 330px);
    justify-self: end;
    padding: 15px;
    border-radius: 18px 18px 4px 18px;
    background: rgba(255, 122, 26, 0.16);
    border: 1px solid rgba(255, 122, 26, 0.18);
}

.chat-bubble h2 {
    margin: 0 0 9px;
    font-size: 1.25rem;
}

.chat-bubble p {
    margin: 0;
    color: rgba(246, 242, 233, 0.86);
}

.chat-bubble small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    text-align: right;
}

.notification-detail-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.notification-detail-actions .notification-detail-cta-action {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
}

.notification-detail-actions .notification-detail-cta-action[hidden] {
    display: none;
}

.notification-detail-actions:has(.notification-detail-cta-action[hidden] + .notification-detail-cta-action[hidden]) {
    display: none;
}

.modal__dialog--confirm {
    width: min(360px, calc(100vw - 40px));
}

.modal__dialog--permissions {
    width: min(420px, calc(100vw - 40px));
}

.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.archive-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 40;
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 18px;
    color: var(--text);
    text-align: center;
    background: rgba(20, 24, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow);
}

.archive-toast[hidden] {
    display: none;
}

.bottom-nav {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.nav-button {
    min-height: 68px;
    padding: 8px;
    border: 0;
    border-radius: 18px;
    color: var(--text);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 160ms ease, background 160ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-button.is-active {
    color: #fff7ed;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 18px 34px rgba(214, 85, 0, 0.34);
}

.nav-button:hover,
.nav-button:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
}

.nav-button.is-active:hover,
.nav-button.is-active:focus-visible {
    background: linear-gradient(135deg, #ff882f 0%, #e55e00 100%);
}

.nav-button__icon {
    display: block;
    margin: 0;
    width: 30px;
    height: 30px;
}

@keyframes tripBikeRoute {
    0% {
        transform: translate(0, 0) scale(1);
    }
    35% {
        transform: translate(104px, 42px) scale(1.02);
    }
    70% {
        transform: translate(214px, 94px) scale(1);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
