:root {
    --bg: #030816;
    --bg-2: #061124;
    --surface: rgba(8, 20, 42, 0.86);
    --surface-strong: rgba(12, 30, 60, 0.96);
    --surface-soft: rgba(17, 38, 72, 0.72);
    --glass: rgba(255, 255, 255, 0.075);
    --ink: #f3fbff;
    --ink-soft: #9eb7ce;
    --ink-faint: #66849d;
    --line: rgba(100, 218, 255, 0.22);
    --line-strong: rgba(113, 246, 255, 0.42);
    --cyan: #19d7ff;
    --cyan-soft: #72f8ff;
    --blue: #287cff;
    --mint: #46ffd6;
    --danger: #ff647c;
    --shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
    --soft-shadow: 0 18px 46px rgba(0, 0, 0, 0.30);
    --neon-shadow: 0 0 26px rgba(25, 215, 255, 0.26), 0 20px 54px rgba(40, 124, 255, 0.20);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(40, 124, 255, 0.18), transparent 28%),
        radial-gradient(circle at 86% 4%, rgba(70, 255, 214, 0.16), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(25, 215, 255, 0.10), transparent 36%),
        linear-gradient(135deg, #030816 0%, #071426 46%, #02050d 100%);
}

body {
    min-height: 100vh;
    min-height: 100dvh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(114, 248, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(114, 248, 255, 0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.035), transparent);
    opacity: .55;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

.app-stage {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 34px 14px;
    position: relative;
    z-index: 1;
}

.phone-frame {
    width: min(430px, 100%);
    min-height: 850px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(113, 246, 255, 0.16);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 16% 0%, rgba(25, 215, 255, 0.18), transparent 34%),
        radial-gradient(circle at 95% 8%, rgba(70, 255, 214, 0.15), transparent 32%),
        linear-gradient(155deg, rgba(10, 24, 48, .94), rgba(4, 10, 24, .98));
    box-shadow: var(--shadow), 0 0 0 10px rgba(255,255,255,0.018);
    isolation: isolate;
}

.phone-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255,255,255,.12), transparent 18%, transparent 80%, rgba(114, 248, 255, .08)),
        radial-gradient(circle at 50% -8%, rgba(114, 248, 255, .16), transparent 26%);
    z-index: 40;
    mix-blend-mode: screen;
}

.clean-frame,
.map-frame,
.splash-frame {
    border-radius: var(--radius-xl);
}

.screen,
.splash-screen,
.map-screen {
    min-height: 850px;
    position: relative;
    overflow: hidden;
}

.screen {
    background:
        radial-gradient(circle at 15% 0%, rgba(25, 215, 255, 0.12), transparent 28%),
        radial-gradient(circle at 90% 0%, rgba(70, 255, 214, 0.10), transparent 25%),
        linear-gradient(165deg, rgba(8, 19, 41, .94), rgba(3, 8, 22, .98));
}

.screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.055), transparent 34%);
    pointer-events: none;
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    color: var(--ink);
    font-size: clamp(27px, 7vw, 34px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: .98;
}

h1 strong,
h2 strong {
    font-weight: 900;
}

.muted {
    color: var(--ink-soft);
}

.compact {
    width: min(275px, 100%);
    margin: 12px auto 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    margin-bottom: 8px;
    padding: 0 12px;
    border: 1px solid rgba(113, 246, 255, .22);
    border-radius: 999px;
    background: rgba(25, 215, 255, .08);
    color: var(--cyan-soft);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .01em;
    box-shadow: 0 0 22px rgba(25, 215, 255, .10);
}

.primary-btn {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--blue), var(--cyan) 52%, var(--mint));
    color: #02101e;
    font-weight: 950;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset, 0 18px 42px rgba(25, 215, 255, .26);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, filter .18s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255,255,255,.20) inset, 0 24px 55px rgba(25, 215, 255, .33);
    filter: saturate(1.08);
}

.primary-btn:active {
    transform: translateY(1px) scale(.99);
}

.primary-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    min-height: 18px;
    margin: 10px 0;
    color: var(--cyan-soft);
    font-size: 12px;
    text-align: center;
}

.form-message.is-error {
    color: var(--danger);
}

/* Splash */
.splash-frame {
    background: #020714;
}

.splash-screen {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 34%, rgba(25, 215, 255, .24), transparent 25%),
        radial-gradient(circle at 52% 55%, rgba(40, 124, 255, .22), transparent 34%),
        #020714;
}

.splash-screen::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(114, 248, 255, .18);
    border-radius: 50%;
    box-shadow: inset 0 0 70px rgba(25, 215, 255, .08), 0 0 70px rgba(25, 215, 255, .10);
}

.splash-logo {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 20px;
    color: rgba(243, 251, 255, .62);
    font-size: 27px;
    font-weight: 350;
    letter-spacing: .12em;
}

.logo-mark.big {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 28px rgba(25, 215, 255, .44));
}

/* Welcome */
.screen-welcome {
    padding: calc(20px + env(safe-area-inset-top)) 32px 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-arc {
    position: absolute;
    top: -70px;
    left: 50%;
    width: 420px;
    height: 318px;
    transform: translateX(-50%);
    border: 1px solid rgba(114, 248, 255, .18);
    border-radius: 0 0 230px 230px;
    background:
        radial-gradient(circle at 50% 30%, rgba(114, 248, 255, .28), transparent 34%),
        linear-gradient(135deg, rgba(14, 52, 103, .94), rgba(5, 12, 28, .96));
    box-shadow: 0 24px 80px rgba(25, 215, 255, .16);
}

.hero-arc::after {
    content: "";
    position: absolute;
    inset: 38px 32px auto;
    height: 170px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    opacity: .65;
}

.hero-car {
    position: relative;
    z-index: 1;
    width: 190px;
    margin-top: 52px;
    filter: drop-shadow(0 0 28px rgba(25, 215, 255, .34)) drop-shadow(0 30px 34px rgba(0, 0, 0, .36));
}

.welcome-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 72px;
    text-align: center;
}

.welcome-copy h1 strong {
    background: linear-gradient(135deg, var(--cyan-soft), var(--cyan), var(--mint));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.welcome-copy p {
    margin: 14px auto 0;
    max-width: 310px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.55;
}

.phone-form {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 34px;
}

.input-label {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.phone-input {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 14px 34px rgba(0,0,0,.18), 0 0 24px rgba(25, 215, 255, .08) inset;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.phone-input select,
.phone-input input {
    border: 0;
    outline: 0;
    background: transparent;
    min-width: 0;
    height: 54px;
}

.phone-input select {
    padding: 0 14px 0 20px;
    color: var(--ink);
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
    background-position: calc(100% - 18px) 24px, calc(100% - 13px) 24px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.phone-input option {
    background: #071426;
    color: var(--ink);
}

.phone-input input {
    padding-right: 20px;
    color: var(--ink);
    font-weight: 800;
}

.phone-input input::placeholder {
    color: rgba(158, 183, 206, .62);
    font-weight: 700;
}

/* Verification */
.screen-verify {
    padding: calc(62px + env(safe-area-inset-top)) 42px 28px;
    text-align: center;
}

.verify-icon {
    width: 134px;
    height: 134px;
    margin: 0 auto 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(114, 248, 255, .22);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 25%, rgba(114, 248, 255, .20), transparent 38%),
        rgba(7, 17, 36, .96);
    color: var(--cyan);
    box-shadow: var(--neon-shadow);
}

.verify-icon svg {
    width: 78px;
    filter: drop-shadow(0 0 18px rgba(25, 215, 255, .42));
}

.demo-code {
    margin-top: 10px;
    color: var(--cyan-soft);
    font-size: 12px;
}

.otp-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 34px auto 10px;
}

.otp-input {
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 50%;
    text-align: center;
    outline: none;
    font-weight: 900;
    font-size: 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, .075);
    box-shadow: inset 0 0 24px rgba(25, 215, 255, .05);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.otp-input:focus,
.otp-input:not(:placeholder-shown) {
    border-color: var(--cyan-soft);
    background: rgba(25, 215, 255, .10);
    box-shadow: 0 0 0 5px rgba(25, 215, 255, .12), 0 0 22px rgba(25, 215, 255, .20);
}

.countdown {
    min-height: 22px;
    color: var(--ink-faint);
    font-size: 12px;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 26px;
    margin-top: 20px;
}

.keypad button {
    height: 54px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: var(--ink);
    font-size: 26px;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease, color .16s ease;
}

.keypad button:hover {
    background: rgba(25, 215, 255, .08);
    color: var(--cyan-soft);
}

.keypad button:active {
    transform: scale(.96);
}

.keypad .key-action {
    width: 38px;
    height: 38px;
    align-self: center;
    justify-self: center;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #02101e;
    font-size: 25px;
    line-height: 1;
    box-shadow: 0 0 22px rgba(25, 215, 255, .24);
}

/* Shared topbar */
.topbar,
.places-header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: calc(28px + env(safe-area-inset-top)) 32px 20px;
}

.back-link,
.floating-back {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .20), 0 0 18px rgba(25, 215, 255, .08) inset;
    backdrop-filter: blur(14px);
}

.topbar h1 {
    font-size: 28px;
}

/* Card */
.screen-card {
    padding-bottom: 42px;
}

.bank-card {
    position: relative;
    z-index: 1;
    width: calc(100% - 64px);
    height: 154px;
    margin: 8px auto 28px;
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(114, 248, 255, .30);
    border-radius: 22px;
    background:
        radial-gradient(circle at 20% 4%, rgba(114, 248, 255, .30), transparent 26%),
        radial-gradient(circle at 90% 100%, rgba(40, 124, 255, .28), transparent 34%),
        linear-gradient(135deg, rgba(7, 17, 36, .96), rgba(2, 7, 20, .98));
    color: #fff;
    box-shadow: 0 24px 58px rgba(0,0,0,.28), 0 0 42px rgba(25, 215, 255, .16);
    overflow: hidden;
}

.bank-card::after {
    content: "";
    position: absolute;
    inset: auto -18px -42px auto;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
}

.bank-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-logo {
    width: 46px;
    filter: drop-shadow(0 0 18px rgba(25, 215, 255, .46));
}

.bank-card p {
    margin-bottom: 8px;
    font-weight: 900;
    font-size: 13px;
}

.bank-card span {
    letter-spacing: .05em;
    font-weight: 900;
    font-size: 13px;
}

.stack-form {
    position: relative;
    z-index: 1;
    width: calc(100% - 64px);
    margin: 0 auto;
}

.stack-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.stack-form label span {
    color: var(--ink-soft);
    font-size: 12px;
}

.stack-form input,
.driver-card textarea,
.route-input input {
    color: var(--ink);
}

.stack-form input {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-bottom: 1px solid var(--line);
    outline: none;
    background: transparent;
    color: var(--ink);
    font-weight: 850;
}

.stack-form input:focus {
    border-bottom-color: var(--cyan-soft);
    box-shadow: 0 7px 12px -11px rgba(25, 215, 255, .8);
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 84px;
    gap: 28px;
}

/* OSM map */
.map-screen {
    background: #020714;
}

.osm-map {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 50% 40%, rgba(25, 215, 255, .12), transparent 28%),
        #061124;
}

.leaflet-container {
    width: 100%;
    height: 100%;
    font: inherit;
    background: #061124;
    color: var(--ink);
}

.map-screen .leaflet-tile {
    filter: grayscale(.25) invert(.96) hue-rotate(175deg) saturate(1.45) brightness(.72) contrast(.98);
}

.leaflet-control-attribution {
    padding: 3px 7px !important;
    border-radius: 999px 0 0 0;
    background: rgba(3, 8, 22, .72) !important;
    color: rgba(243, 251, 255, .72) !important;
    font-size: 10px !important;
    backdrop-filter: blur(8px);
}

.leaflet-control-attribution a {
    color: var(--cyan-soft) !important;
}

.map-ambient {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 16%, rgba(25, 215, 255, .18), transparent 30%),
        linear-gradient(to top, rgba(2, 7, 20, .92) 0%, rgba(2, 7, 20, .38) 28%, rgba(2, 7, 20, .08) 52%, rgba(2, 7, 20, .22) 100%);
}

.full-map::after,
.booking-screen::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    height: 210px;
    background: linear-gradient(to top, rgba(2, 7, 20, .98), rgba(2, 7, 20, 0));
    pointer-events: none;
}

.floating-menu,
.floating-back {
    position: absolute;
    z-index: 8;
    top: calc(28px + env(safe-area-inset-top));
    left: 28px;
    border: 1px solid var(--line);
    background: rgba(7, 17, 36, .72);
    box-shadow: var(--soft-shadow), 0 0 24px rgba(25, 215, 255, .10) inset;
    cursor: pointer;
    backdrop-filter: blur(18px);
}

.floating-menu {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--ink);
    font-size: 20px;
}

.floating-back {
    font-size: 35px;
}

.map-status {
    position: absolute;
    z-index: 8;
    top: calc(30px + env(safe-area-inset-top));
    left: 84px;
    right: 28px;
    min-height: 42px;
    padding: 11px 14px;
    border: 1px solid rgba(113, 246, 255, .18);
    border-radius: 999px;
    background: rgba(7, 17, 36, .66);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(18px);
}

.map-controls {
    position: absolute;
    z-index: 8;
    left: 30px;
    right: 30px;
    bottom: calc(122px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.map-controls a,
.map-controls button {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(7, 17, 36, .72);
    color: var(--ink);
    box-shadow: var(--soft-shadow), 0 0 24px rgba(25, 215, 255, .10) inset;
    pointer-events: auto;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(18px);
}

.map-controls button {
    color: var(--cyan-soft);
}

.where-card {
    position: absolute;
    z-index: 9;
    left: 30px;
    right: 30px;
    bottom: calc(34px + env(safe-area-inset-bottom));
    padding: 14px 18px 16px;
    display: grid;
    gap: 5px;
    border: 1px solid rgba(113, 246, 255, .22);
    border-radius: 24px;
    background: rgba(7, 17, 36, .82);
    box-shadow: 0 24px 58px rgba(0,0,0,.35), 0 0 34px rgba(25, 215, 255, .12) inset;
    backdrop-filter: blur(22px);
}

.where-card small {
    color: var(--ink-soft);
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.where-card small::before {
    content: "";
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan);
}

.where-card button {
    border: 0;
    background: none;
    text-align: left;
    color: var(--ink);
    font-size: 21px;
    font-weight: 800;
    cursor: pointer;
}

.geo-dot,
.dest-dot,
.car-dot {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.geo-dot::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,.86);
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 9px rgba(25, 215, 255, .18), 0 0 30px rgba(25, 215, 255, .88);
}

.dest-dot::before {
    content: "";
    width: 22px;
    height: 22px;
    border: 5px solid #061124;
    border-radius: 50% 50% 50% 0;
    background: var(--mint);
    transform: rotate(-45deg);
    box-shadow: 0 0 26px rgba(70, 255, 214, .62), 0 12px 24px rgba(0,0,0,.35);
}

.car-dot {
    position: relative;
    width: 28px;
    height: 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #02101e;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(25, 215, 255, .50);
}

.car-dot::before,
.car-dot::after {
    content: "";
    position: absolute;
    bottom: -4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #02101e;
}

.car-dot::before { left: 4px; }
.car-dot::after { right: 4px; }

.route-label {
    padding: 7px 10px;
    border: 1px solid rgba(113, 246, 255, .18);
    border-radius: 999px;
    background: rgba(7, 17, 36, .76);
    color: var(--ink);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(0,0,0,.24), 0 0 18px rgba(25, 215, 255, .10) inset;
    backdrop-filter: blur(12px);
}

.map-unavailable {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 34px;
    color: var(--ink-soft);
    text-align: center;
    background: radial-gradient(circle at center, rgba(25, 215, 255, .12), transparent 35%);
}

/* Booking */
.route-mini-card {
    position: absolute;
    z-index: 8;
    top: calc(84px + env(safe-area-inset-top));
    left: 28px;
    right: 28px;
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 7px 10px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(113, 246, 255, .22);
    border-radius: 22px;
    background: rgba(7, 17, 36, .76);
    box-shadow: var(--soft-shadow), 0 0 34px rgba(25, 215, 255, .10) inset;
    backdrop-filter: blur(20px);
}

.route-mini-card strong {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 16px currentColor;
}

.route-dot.from {
    color: var(--cyan);
    background: var(--cyan);
}

.route-dot.to {
    color: var(--mint);
    background: var(--mint);
}

.route-divider {
    width: 1px;
    height: 14px;
    margin-left: 5px;
    background: linear-gradient(var(--cyan), var(--mint));
    opacity: .6;
}

.ride-panel {
    position: absolute;
    z-index: 9;
    left: 28px;
    right: 28px;
    bottom: calc(26px + env(safe-area-inset-bottom));
    display: grid;
    gap: 15px;
}

.class-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ride-class {
    min-height: 94px;
    padding: 12px 8px;
    display: grid;
    place-items: center;
    gap: 4px;
    border: 1px solid rgba(113, 246, 255, .16);
    border-radius: 18px;
    background: rgba(7, 17, 36, .72);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .24), 0 0 22px rgba(25, 215, 255, .06) inset;
    cursor: pointer;
    backdrop-filter: blur(18px);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ride-class input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ride-class.selected {
    border-color: rgba(114, 248, 255, .68);
    background: rgba(25, 215, 255, .13);
    box-shadow: 0 18px 42px rgba(25, 215, 255, .18), 0 0 28px rgba(25, 215, 255, .18) inset;
}

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

.class-icon {
    font-size: 25px;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(25, 215, 255, .45));
}

.ride-class strong {
    color: var(--ink);
    font-size: 12px;
}

.ride-class small {
    color: var(--ink-soft);
    font-size: 9px;
}

.payment-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 30px;
    color: var(--ink);
    text-align: center;
}

.payment-line strong {
    font-size: 18px;
    font-style: italic;
}

.payment-line span {
    color: var(--ink-soft);
    font-size: 12px;
}

.payment-line b {
    margin-left: auto;
    color: var(--cyan-soft);
    font-size: 15px;
}

/* Places */
.screen-places {
    padding: 0 0 30px;
}

.places-header {
    align-items: flex-start;
}

.route-box {
    position: relative;
    z-index: 1;
    width: calc(100% - 56px);
    margin: 4px auto 0;
    padding: 12px;
    border: 1px solid rgba(113, 246, 255, .20);
    border-radius: 24px;
    background: rgba(7, 17, 36, .72);
    box-shadow: var(--soft-shadow), 0 0 32px rgba(25, 215, 255, .08) inset;
    backdrop-filter: blur(18px);
}

.route-input {
    position: relative;
    min-height: 54px;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(113, 246, 255, .12);
}

.route-input:last-of-type {
    border-bottom: 0;
}

.route-input > span {
    width: 10px;
    height: 10px;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan);
}

.route-input.to > span {
    background: var(--mint);
    box-shadow: 0 0 14px var(--mint);
}

.route-input input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.geo-action {
    width: 100%;
    min-height: 42px;
    margin-top: 8px;
    border: 1px solid rgba(113, 246, 255, .18);
    border-radius: 16px;
    background: rgba(25, 215, 255, .08);
    color: var(--cyan-soft);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.geo-action span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-right: 6px;
    border-radius: 50%;
    background: rgba(25, 215, 255, .12);
}

.place-list {
    position: relative;
    z-index: 1;
    padding: 22px 28px 112px;
    display: grid;
    gap: 12px;
}

.place-item {
    width: 100%;
    min-height: 66px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(113, 246, 255, .14);
    border-radius: 20px;
    background: rgba(255,255,255,.065);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    backdrop-filter: blur(12px);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.place-item:hover,
.place-item.is-selected {
    border-color: rgba(114, 248, 255, .54);
    background: rgba(25, 215, 255, .11);
    transform: translateY(-1px);
}

.place-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #02101e;
    background: linear-gradient(135deg, var(--cyan), var(--mint));
    font-weight: 950;
    box-shadow: 0 0 18px rgba(25, 215, 255, .26);
}

.place-icon.home {
    font-size: 22px;
}

.place-icon.history {
    font-size: 18px;
}

.place-item span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 850;
}

.place-item small {
    margin-left: 6px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
}

.bottom-btn {
    position: absolute;
    z-index: 4;
    left: 32px;
    right: 32px;
    bottom: calc(42px + env(safe-area-inset-bottom));
    width: auto;
}

/* Receipt */
.screen-receipt {
    text-align: center;
}

.receipt-topbar {
    justify-content: flex-start;
}

.receipt-topbar h1 {
    margin-left: 34px;
}

.fare-summary {
    position: relative;
    z-index: 1;
    width: calc(100% - 56px);
    margin: 10px auto 0;
    padding: 30px 24px 28px;
    display: grid;
    gap: 9px;
    border: 1px solid rgba(113, 246, 255, .20);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(25, 215, 255, .20), transparent 42%),
        rgba(7, 17, 36, .72);
    box-shadow: var(--soft-shadow), 0 0 42px rgba(25, 215, 255, .10) inset;
    backdrop-filter: blur(18px);
}

.fare-summary small {
    color: var(--ink-soft);
    font-size: 12px;
}

.fare-summary strong {
    display: block;
    color: var(--ink);
    font-size: 58px;
    line-height: .96;
    letter-spacing: -0.07em;
    text-shadow: 0 0 24px rgba(25, 215, 255, .22);
}

.fare-summary span {
    color: var(--ink-soft);
    font-size: 12px;
}

.receipt-route {
    margin-top: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(113, 246, 255, .14);
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
}

.receipt-route span {
    min-width: 0;
    max-width: 42%;
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.receipt-route b {
    color: var(--cyan-soft);
}

.driver-card {
    position: relative;
    z-index: 1;
    padding: 42px 32px 34px;
    display: grid;
    justify-items: center;
    gap: 12px;
}

.driver-avatar {
    width: 90px;
    height: 90px;
    border: 3px solid rgba(114, 248, 255, .42);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 16px 34px rgba(0,0,0,.30), 0 0 28px rgba(25, 215, 255, .30);
}

.driver-card h2 {
    margin-top: 6px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 950;
}

.driver-card p {
    color: var(--ink-soft);
    font-size: 12px;
}

.stars {
    display: inline-flex;
    gap: 7px;
}

.stars button {
    border: 0;
    background: none;
    color: rgba(158, 183, 206, .35);
    font-size: 34px;
    cursor: pointer;
    text-shadow: 0 0 12px rgba(25, 215, 255, .10);
    transition: color .18s ease, transform .18s ease, text-shadow .18s ease;
}

.stars button.is-on,
.stars button:hover {
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(25, 215, 255, .64);
}

.stars button:active {
    transform: scale(.92);
}

.driver-card textarea {
    width: 100%;
    height: 92px;
    margin: 18px 0 2px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    outline: none;
    resize: none;
    background: rgba(255,255,255,.065);
    color: var(--ink);
    box-shadow: 0 0 20px rgba(25, 215, 255, .05) inset;
}

.driver-card textarea::placeholder {
    color: rgba(158, 183, 206, .48);
}

/* Showcase */
.showcase-body .app-stage {
    display: block;
    padding: 44px;
}

.showcase-header {
    max-width: 1200px;
    margin: 0 auto 28px;
}

.showcase-header h1 {
    margin-bottom: 10px;
    font-weight: 950;
}

.showcase-header p {
    color: var(--ink-soft);
    line-height: 1.5;
}

.showcase-header code {
    color: var(--cyan-soft);
}

.showcase-grid {
    max-width: 1480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 34px;
}

.showcase-item {
    display: grid;
    gap: 12px;
}

.showcase-item h2 {
    color: var(--ink);
    font-size: 16px;
}

.showcase-item iframe {
    width: 430px;
    max-width: 100%;
    height: 850px;
    border: 1px solid rgba(113, 246, 255, .16);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    background: #020714;
}

@media (max-width: 460px) {
    .app-stage {
        padding: 0;
    }

    .phone-frame {
        width: 100vw;
        min-height: 100vh;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .clean-frame,
    .map-frame,
    .splash-frame {
        border-radius: 0;
    }

    .screen,
    .splash-screen,
    .map-screen {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-arc {
        width: 108vw;
    }

    .showcase-body .app-stage {
        padding: 24px 14px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 700px) and (max-width: 1180px) {
    body:not(.showcase-body) .app-stage {
        padding: 0;
    }

    body:not(.showcase-body) .phone-frame {
        width: 100vw;
        min-height: 100vh;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body:not(.showcase-body) .clean-frame,
    body:not(.showcase-body) .map-frame,
    body:not(.showcase-body) .splash-frame {
        border-radius: 0;
    }

    body:not(.showcase-body) .screen,
    body:not(.showcase-body) .splash-screen,
    body:not(.showcase-body) .map-screen {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .screen-welcome {
        min-height: 100vh;
        min-height: 100dvh;
        display: grid;
        grid-template-columns: minmax(260px, 1fr) minmax(320px, 440px);
        align-items: center;
        gap: 36px;
        padding: 56px clamp(44px, 7vw, 80px);
    }

    .screen-welcome .hero-arc {
        top: 50%;
        left: 26%;
        width: min(430px, 48vw);
        height: min(430px, 48vw);
        transform: translate(-50%, -50%);
        border-radius: 50%;
    }

    .screen-welcome .hero-car {
        grid-row: 1 / span 2;
        width: clamp(220px, 30vw, 310px);
        margin: 0 auto;
    }

    .welcome-copy,
    .phone-form {
        grid-column: 2;
        margin-top: 0;
        text-align: left;
    }

    .welcome-copy p {
        margin-left: 0;
    }

    .screen-verify > *,
    .screen-card > *:not(.topbar),
    .screen-receipt > *:not(.topbar),
    .screen-places > *:not(.bottom-btn):not(.places-header) {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .bank-card,
    .stack-form,
    .fare-summary,
    .route-box {
        width: min(560px, calc(100% - 80px));
    }

    .place-list {
        width: min(620px, calc(100% - 80px));
        padding-left: 0;
        padding-right: 0;
    }

    .ride-panel,
    .where-card,
    .route-mini-card {
        left: 50%;
        right: auto;
        width: min(720px, calc(100% - 80px));
        transform: translateX(-50%);
    }

    .map-status {
        left: 90px;
        right: 44px;
    }

    .map-controls {
        left: clamp(44px, 9vw, 96px);
        right: clamp(44px, 9vw, 96px);
    }

    .bottom-btn {
        left: 50%;
        right: auto;
        width: min(560px, calc(100% - 80px));
        transform: translateX(-50%);
    }
}

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

.roxio-marker,
.roxio-label-marker {
    border: 0 !important;
    background: transparent !important;
}

.leaflet-control-zoom {
    margin-left: 24px !important;
    margin-bottom: 190px !important;
    border: 1px solid rgba(113, 246, 255, .18) !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.22), 0 0 24px rgba(25, 215, 255, .08) inset;
    backdrop-filter: blur(14px);
}

.leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    border: 0 !important;
    background: rgba(7, 17, 36, .76) !important;
    color: var(--cyan-soft) !important;
    line-height: 36px !important;
}

.leaflet-control-zoom a + a {
    border-top: 1px solid rgba(113, 246, 255, .12) !important;
}
