:root {
    --forest: #10261f;
    --forest-soft: #1c3c31;
    --cream: #f4f0e6;
    --paper: #fffdf8;
    --lime: #cde66f;
    --orange: #ef8f3c;
    --ink: #17231f;
    --muted: #68736f;
    --line: rgba(23, 35, 31, 0.12);
    --shadow: 0 18px 55px rgba(16, 38, 31, 0.12);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

.android-login {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(160deg, rgba(16, 38, 31, 0.96), rgba(25, 58, 47, 0.94)),
        #10261f;
}

.android-login-card {
    width: min(100%, 440px);
    padding: 34px 26px;
    border: 1px solid rgba(217, 184, 108, 0.28);
    border-radius: 28px;
    background: #f4f0e6;
    color: #10261f;
    text-align: center;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.android-login-logo {
    width: min(100%, 220px);
    height: 68px;
    margin: 0 auto 20px;
    padding: 0 18px;
    font-size: 14px;
    line-height: 1.15;
    text-align: center;
}

.android-login-card h2 {
    margin: 10px 0 12px;
    font-size: 28px;
    line-height: 1.15;
}

.android-login-card p {
    margin: 0 0 22px;
    color: #52635c;
    line-height: 1.55;
}

.android-login-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 14px;
    text-decoration: none;
}

.android-login-card small {
    display: block;
    color: #718078;
    line-height: 1.45;
}

.android-login-wait {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    color: #52635c;
    font-size: 14px;
}

.android-login-wait span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d9b86c;
    animation: android-login-pulse 1.2s ease-in-out infinite;
}

@keyframes android-login-pulse {
    50% { transform: scale(1.5); opacity: 0.45; }
}

.return-trip-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(16, 38, 31, 0.14);
    border-radius: 18px;
    background: rgba(217, 184, 108, 0.1);
    cursor: pointer;
}

.return-trip-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.return-trip-switch {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #aeb8b2;
    transition: 0.2s ease;
}

.return-trip-switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
    transition: 0.2s ease;
}

.return-trip-option input:checked + .return-trip-switch {
    background: #1f755d;
}

.return-trip-option input:checked + .return-trip-switch::after {
    transform: translateX(20px);
}

.return-trip-option strong,
.return-trip-option small {
    display: block;
}

.return-trip-option small {
    margin-top: 3px;
    color: #718078;
}

.trip-return {
    margin-top: 6px !important;
    color: #1f755d !important;
    font-weight: 700;
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--cream);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 82% 5%, rgba(205, 230, 111, 0.2), transparent 30%),
        var(--cream);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.mountain-bg {
    position: fixed;
    inset: 0 0 auto;
    height: 470px;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 82% 8%, rgba(205,230,111,.16), transparent 28%),
        linear-gradient(135deg, transparent 49.5%, rgba(255,255,255,.055) 50%) 0 92px / 220px 195px,
        linear-gradient(225deg, transparent 49.5%, rgba(255,255,255,.04) 50%) 105px 58px / 250px 225px,
        linear-gradient(160deg, #285344 0%, #102f26 45%, #071b15 100%);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 80% 94%, 58% 89%, 37% 96%, 16% 91%, 0 95%);
}

.app-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: calc(18px + var(--safe-top)) 16px calc(32px + var(--safe-bottom));
}

.hero { color: white; padding: 4px 4px 31px; }

.hero-topline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark, .loader-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px 14px 14px 4px;
    color: var(--forest);
    background: var(--lime);
    font-weight: 900;
    letter-spacing: -1px;
}

.hero-topline > .brand-mark {
    width: 142px;
    min-width: 142px;
    padding: 0 10px;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
}

.loader-mark {
    width: 190px;
    padding: 0 18px;
    font-size: 13px;
    line-height: 1.15;
    text-align: center;
}

.profile { display: flex; flex-direction: column; flex: 1; }
.profile-label { color: rgba(255,255,255,.58); font-size: 11px; text-transform: uppercase; letter-spacing: .13em; }
.profile strong { font-size: 15px; margin-top: 3px; }

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 5px rgba(205,230,111,.13);
}

.hero-copy { padding: 38px 0 0; }
.eyebrow { color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.dark { color: #59705d; }
.hero h1 { margin: 10px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 10vw, 61px); line-height: .94; letter-spacing: -.04em; font-weight: 500; }
.hero p { max-width: 410px; margin: 0; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.55; }

.tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(84px, 1fr));
    gap: 6px;
    margin: 5px 0 14px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 17px;
    background: rgba(7,27,21,.9);
    box-shadow: 0 12px 28px rgba(4,18,14,.24);
    backdrop-filter: blur(12px);
    overflow-x: auto;
}

.tab {
    min-height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 12px;
    color: rgba(255,255,255,.66);
    background: transparent;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}
.tab.active { color: var(--forest); background: var(--paper); box-shadow: 0 6px 20px rgba(0,0,0,.12); }

.view { display: none; animation: appear .25s ease; }
.view.active { display: block; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } }

.panel {
    margin-bottom: 14px;
    padding: 20px;
    border: 1px solid rgba(16,38,31,.07);
    border-radius: 24px;
    background: rgba(255,253,248,.96);
    box-shadow: var(--shadow);
}

.section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.section-heading.compact { justify-content: space-between; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.05; font-weight: 500; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.step { display: grid; place-items: center; width: 39px; height: 39px; flex: none; border-radius: 50%; color: var(--forest); background: var(--lime); font-size: 11px; font-weight: 900; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-card, .tariff-card, .driver-card {
    border: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    transition: .18s ease;
}
.choice-card:active, .tariff-card:active, .driver-card:active { transform: scale(.985); }
.choice-card.selected, .tariff-card.selected, .driver-card.selected { border-color: var(--forest); background: var(--forest); color: white; box-shadow: 0 12px 27px rgba(16,38,31,.2); }

.choice-card { min-height: 116px; padding: 14px; border-radius: 18px; text-align: left; }
.choice-icon { display: block; margin-bottom: 20px; font-size: 24px; }
.choice-card strong { display: block; font-size: 16px; }
.choice-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.choice-card.selected small { color: rgba(255,255,255,.62); }

.tariff-list, .driver-list, .trip-list, .price-list { display: grid; gap: 9px; }
.tariff-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; border-radius: 17px; text-align: left; }
.tariff-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: rgba(16,38,31,.07); }
.tariff-card.selected .tariff-icon { background: rgba(255,255,255,.12); }
.tariff-copy strong, .driver-copy strong { display: block; font-size: 14px; }
.tariff-copy small, .driver-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.tariff-card.selected small, .driver-card.selected small { color: rgba(255,255,255,.62); }
.tariff-price { font-weight: 850; font-size: 13px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field span { padding-left: 2px; color: #4e5f59; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    color: var(--ink);
    background: #f8f6ef;
}
.field textarea { padding-top: 12px; resize: vertical; font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(16,38,31,.07); }

.driver-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px; border-radius: 17px; text-align: left; }
.driver-avatar { display: grid; place-items: center; width: 43px; height: 43px; overflow: hidden; border-radius: 50%; background: #e9eadb; font-size: 18px; }
.driver-avatar img, .admin-driver-avatar img { width: 100%; height: 100%; object-fit: cover; }
.driver-meta { color: var(--orange); font-size: 11px; font-weight: 850; }

.booking-summary {
    position: sticky;
    bottom: calc(10px + var(--safe-bottom));
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 15px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 21px;
    color: white;
    background: rgba(16,38,31,.96);
    box-shadow: 0 22px 50px rgba(16,38,31,.32);
    backdrop-filter: blur(18px);
}
.booking-summary > div { flex: 1; padding-left: 7px; }
.booking-summary span { display: block; color: rgba(255,255,255,.55); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.booking-summary strong { display: block; margin-top: 4px; font-size: 18px; }
.primary-button { min-height: 50px; padding: 0 18px; border: 0; border-radius: 15px; color: var(--forest); background: var(--lime); font-size: 12px; font-weight: 900; cursor: pointer; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.registration-submit { width: 100%; margin-top: 14px; }
.registration-result { margin-top: 12px; padding: 13px; border-radius: 14px; color: #40543b; background: #e9f0cf; font-size: 12px; line-height: 1.5; }
.driver-trip-list { display: grid; gap: 10px; margin-top: 14px; }
.driver-trip-card { padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: #faf8f1; }
.driver-trip-card h3 { margin: 0; font-size: 15px; }
.driver-trip-card p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.trip-action-button { width: 100%; min-height: 48px; margin-top: 13px; border: 0; border-radius: 14px; font-size: 13px; font-weight: 900; cursor: pointer; }
.trip-action-button.start { color: white; background: var(--forest); }
.trip-action-button.complete { color: var(--forest); background: var(--lime); }
.trip-action-button:disabled { opacity: .55; cursor: wait; }
.hotel-list { display: grid; gap: 14px; }
.hotel-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #faf8f1; }
.hotel-photo { display: block; width: 100%; background: #dfe5d8; }
img.hotel-photo { height: auto; object-fit: contain; }
div.hotel-photo { height: 240px; }
.hotel-content { padding: 15px; }
.hotel-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hotel-title-row h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.hotel-rating { flex: none; color: #98601f; font-size: 12px; font-weight: 900; }
.hotel-location { margin: 7px 0 0; color: #59705d; font-size: 11px; font-weight: 800; }
.hotel-description { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; white-space: pre-line; }
.hotel-phone { display: inline-block; color: var(--forest); font-size: 14px; font-weight: 900; text-decoration: none; }
.hotel-phone:active { opacity: .65; }
.hotel-map-button { display: inline-flex; align-items: center; min-height: 40px; margin-top: 13px; padding: 0 14px; border-radius: 12px; color: white; background: var(--forest); font-size: 12px; font-weight: 900; text-decoration: none; }
.hotel-map-button:active { opacity: .7; }
.navigator-trip-button { width: 100%; justify-content: center; box-sizing: border-box; }
.pickup-route-button { color: var(--forest); background: var(--lime); }
.location-field { display: grid; gap: 8px; }
.location-field > span { color: var(--muted); font-size: 12px; font-weight: 800; }
.location-field small { color: var(--muted); line-height: 1.45; }
.location-button { width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid rgba(16, 38, 31, .18); border-radius: 14px; color: var(--forest); background: rgba(255, 255, 255, .75); font-weight: 900; cursor: pointer; }
.location-button:disabled { opacity: .65; cursor: wait; }
.location-success { color: #176b45 !important; }
.location-error { color: #a33131 !important; }
.location-warning { margin: 12px 0; padding: 11px 13px; border-radius: 12px; background: rgba(255, 184, 77, .18); color: #704700; font-size: 13px; line-height: 1.45; }
.navigator-grid { display: grid; gap: 12px; }
.navigator-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 19px; background: #faf8f1; }
.navigator-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #e9eadb; font-size: 23px; }
.navigator-card h3 { margin: 2px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; }
.navigator-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.navigator-link { grid-column: 1 / -1; display: grid; place-items: center; min-height: 44px; border-radius: 13px; color: var(--forest); background: var(--lime); font-size: 12px; font-weight: 900; text-decoration: none; }
.navigator-link:active { opacity: .7; }
.hotel-admin summary { cursor: pointer; color: var(--forest); font-weight: 900; }
.hotel-form-grid { margin-top: 18px; }
.hotel-photo-preview { width: 100%; max-height: 260px; margin-top: 12px; border-radius: 16px; object-fit: cover; }
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.admin-stat { padding: 15px; border-radius: 18px; color: white; background: var(--forest); }
.admin-stat span { display: block; color: rgba(255,255,255,.6); font-size: 10px; text-transform: uppercase; }
.admin-stat strong { display: block; margin-top: 5px; font-size: 24px; }
.admin-list { display: grid; gap: 10px; }
.admin-card { padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: #faf8f1; }
.admin-card h3 { margin: 0; font-size: 15px; }
.admin-card p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.admin-driver-heading { display: flex; align-items: center; gap: 10px; }
.admin-driver-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; overflow: hidden; border-radius: 50%; background: #e9eadb; font-size: 19px; }
.moderator-badge { display: inline-block; margin-left: 5px; padding: 3px 7px; border-radius: 999px; color: var(--forest); background: var(--lime); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.admin-button.moderator { color: white; background: var(--forest); }
.moderator-protected { align-self: center; color: var(--muted); font-size: 10px; font-weight: 800; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.admin-button { min-height: 36px; padding: 0 11px; border: 0; border-radius: 11px; color: white; background: var(--forest); font-size: 10px; font-weight: 850; cursor: pointer; }
.admin-button.warn { background: #a9672d; }
.admin-button.danger { background: #8a3e32; }
.admin-button.light { color: var(--forest); background: #e9eadb; }
.admin-price-row { display: grid; grid-template-columns: 1fr 110px auto; align-items: center; gap: 8px; }
.admin-price-row input { width: 100%; min-height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 10px; }

.trip-card, .price-group { padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #faf8f1; }
.trip-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.trip-card h3, .price-group h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.trip-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.badge { flex: none; padding: 6px 9px; border-radius: 999px; color: #48603c; background: #e9f0cf; font-size: 9px; font-weight: 900; }
.badge.busy { color: #7b4e23; background: #f5e5d2; }
.badge.done { color: #315a50; background: #dcece6; }
.stars { color: #d88a22; letter-spacing: 1px; }

.price-group h3 { margin-bottom: 10px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12px; }
.price-row strong { font-size: 13px; }

.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: transparent; font-size: 20px; cursor: pointer; }
.empty-state { padding: 30px 10px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.6; }
.hidden { display: none !important; }

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(22px + var(--safe-bottom));
    z-index: 20;
    width: min(calc(100% - 32px), 500px);
    padding: 13px 16px;
    border-radius: 14px;
    color: white;
    background: #14221d;
    box-shadow: 0 18px 48px rgba(0,0,0,.28);
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 18px);
    pointer-events: none;
    transition: .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8a3e32; }

.app-loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 12px; color: white; background: var(--forest); transition: .3s ease; }
.app-loader p { margin: 0; color: rgba(255,255,255,.6); font-size: 12px; }
.app-loader.done { opacity: 0; visibility: hidden; }
.loading-block { min-height: 120px; border-radius: 18px; background: linear-gradient(90deg, #eeeade, #faf8ef, #eeeade); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (min-width: 620px) {
    .app-shell { padding-inline: 24px; }
    .choice-grid { grid-template-columns: repeat(4, 1fr); }
    .panel { padding: 24px; }
}

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