:root {
    --navy: #102a67;
    --navy-deep: #0c2052;
    --orange: #f07041;
    --ink: #1c2434;
    --muted: #8a94a6;
    --line: #e6ebf2;
    --soft: #f3f5f9;
    --green: #1f9d63;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(8, 20, 45, 0.28);
    --font: "Poppins", sans-serif;
    --script: "Caveat", cursive;
    --page-pad: 3vw;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: #071426;
}

button,
input {
    font: inherit;
}

.home,
.hero {
    min-height: 100vh;
}

.hero {
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding: 18px var(--page-pad) 32px;
}


.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../assets/images/index_bgjpg.jpeg") center 35% / cover no-repeat;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10, 24, 48, 0.18) 0%, rgba(10, 24, 48, 0.28) 42%, rgba(10, 24, 48, 0.55) 100%);
    pointer-events: none;
}

.topbar {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 16px;
    cursor: pointer;
}

.login-btn:hover {
    background: var(--navy-deep);
}

.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    padding: 12px;
    z-index: 20;
}

.user-dropdown[hidden] {
    display: none !important;
}

.user-dropdown-email {
    font-size: 13px;
    color: #4d5059;
    word-break: break-all;
    padding: 4px 4px 10px;
    border-bottom: 1px solid #e8eaef;
    margin-bottom: 8px;
}

.user-dropdown-link {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    border-radius: 8px;
    background: #eef3ff;
    color: #183e95;
    font: 600 13px "Inter", system-ui, sans-serif;
    padding: 10px 12px;
    text-decoration: none;
}

.user-dropdown-link:hover {
    background: #dfe8ff;
}

.user-dropdown-logout {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #f3f5f9;
    color: #14161c;
    font: 600 13px "Inter", system-ui, sans-serif;
    padding: 10px 12px;
    cursor: pointer;
    text-align: left;
}

.user-dropdown-logout:hover {
    background: #e8ebf2;
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(860px, 100%);
    margin: 100px auto 0;
    text-align: center;
    color: #fff;
    padding: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 12px 0 8px;
    font-size: clamp(32px, 3.8vw, 48px);
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-copy h1 em {
    font-family: var(--script);
    font-style: normal;
    color: var(--orange);
    font-size: 1.22em;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.hero-copy p {
    margin: 0 auto;
    max-width: 580px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.cab-form {
    position: relative;
    z-index: 4;
    width: 100%;
    margin: 80px 0 0;
}

.cab-form.is-panel-open {
    z-index: 70;
}

.cab-form.is-panel-open .trip-tabs {
    z-index: 0;
}

body.is-login-open {
    overflow: hidden;
}

.form-wrap {
    position: relative;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.trip-tabs {
    position: relative;
    top: auto;
    left: auto;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 4px;
    padding: 5px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(8, 20, 45, 0.16);
}

.trip-tab {
    border: 0;
    background: transparent;
    color: #66768c;
    font-weight: 600;
    font-size: 13px;
    border-radius: 10px;
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.trip-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid #9aa8bb;
    display: inline-block;
    flex: 0 0 auto;
}

.trip-tab.is-active {
    background: var(--navy);
    color: #fff;
}

.trip-tab.is-active .trip-dot {
    border-color: #fff;
    background: #fff;
    box-shadow: inset 0 0 0 3px var(--navy);
}

.search-shell {
    position: relative;
    z-index: 4;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 18px 16px;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.25fr) minmax(170px, 1.15fr) minmax(140px, 0.95fr) minmax(150px, 1fr) minmax(150px, 1.05fr) 140px;
    align-items: stretch;
    gap: 10px;
    min-height: 78px;
    width: 100%;
}

.cell {
    position: relative;
    min-width: 0;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: #fbfcfd;
    overflow: visible;
}

.cell-place#fromCell {
    margin-right: 0;
}

.cell:hover {
    border-color: #cfd8e3;
    background: #fff;
}

.cell-icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: #909aab;
    flex: 0 0 auto;
}

.place-icon {
    color: var(--orange);
}

.cell-body {
    min-width: 0;
    flex: 1;
}

.cell-label {
    display: block;
    margin: 0 0 4px;
    color: #8b96a8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.cell-value {
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cell-value.is-muted {
    color: #5a6b82;
    font-size: 14px;
    font-weight: 600;
}

.cell-sub {
    margin-top: 3px;
    color: #97a2b3;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 15px;
}

.swap-btn {
    position: absolute;
    right: -21px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 8;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1c2b4a;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 30, 60, 0.18);
}

.swap-btn:hover {
    background: #fff;
    box-shadow: 0 6px 16px rgba(16, 30, 60, 0.22);
}

.clear-return {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: var(--soft);
    color: var(--ink);
    cursor: pointer;
    line-height: 1;
    font-size: 14px;
}

.search-btn {
    margin: 0;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    min-height: 78px;
    width: 100%;
    align-self: stretch;
}

.search-btn:hover {
    background: var(--navy-deep);
}

.search-btn.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.search-btn.is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cab-spin 0.7s linear infinite;
}

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

.cell.is-invalid {
    border-color: #e5484d;
    background: #fff6f6;
    animation: cab-shake 0.4s ease;
}

@keyframes cab-shake {
    20%, 60% {
        transform: translateX(-4px);
    }
    40%, 80% {
        transform: translateX(4px);
    }
}

.form-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 14px 6px 2px;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
}

.suggest-panel,
.pax-panel,
.date-panel {
    position: absolute;
    z-index: 80;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(16, 30, 60, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.suggest-panel[hidden],
.pax-panel[hidden],
.date-panel[hidden],
.overlay[hidden],
.cal-step[hidden],
.time-step[hidden] {
    display: none !important;
}

.suggest-panel {
    left: 0;
    top: 102%;
    width: min(400px, 72vw);
    max-height: min(360px, 55vh);
}

.pax-panel {
    left: 0;
    right: 0;
    top: 102%;
    width: auto;
    min-width: 260px;
    max-height: min(320px, 55vh);
    padding: 16px;
    overflow: auto;
}

.date-panel {
    left: 0;
    right: auto;
    top: 102%;
    bottom: auto;
    transform: none;
    width: min(560px, 92vw);
    max-height: min(480px, 60vh);
    padding: 16px;
    overflow: auto;
}

.date-panel.is-return {
    left: auto;
    right: 0;
}

.suggest-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #eceff4;
    color: #9aa6b8;
    flex: 0 0 auto;
}

.suggest-search input {
    border: 0;
    outline: 0;
    width: 100%;
    background: transparent;
    color: var(--ink);
    font-weight: 500;
    font-size: 14px;
}

.suggest-title {
    padding: 12px 14px 6px;
    color: #9aa6b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    flex: 0 0 auto;
}

.suggest-empty {
    padding: 18px 14px;
    color: #7d8899;
    font-size: 13px;
}

.suggest-item .suggest-code {
    margin-left: auto;
    color: #9aa6b8;
    font-size: 12px;
    font-weight: 700;
}

.suggest-list {
    flex: 1 1 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    min-height: 0;
}

.suggest-list .suggest-title {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.suggest-item {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
}

.suggest-item:hover,
.suggest-item.is-active {
    background: #f2f3f6;
}

.suggest-item svg {
    color: #9aa6b8;
    margin-top: 2px;
    flex: 0 0 auto;
}

.suggest-item strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.suggest-item span {
    display: block;
    margin-top: 2px;
    color: #7d8899;
    font-size: 12px;
    line-height: 1.35;
}


.pax-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pax-line strong {
    display: block;
    font-size: 14px;
}

.pax-line span {
    color: var(--muted);
    font-size: 12px;
}

.counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.counter button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.counter input {
    width: 28px;
    border: 0;
    text-align: center;
    font-weight: 700;
}


.cal-head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.cal-nav {
    display: inline-flex;
    gap: 4px;
}

.cal-nav button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--navy);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.cal-nav button:hover {
    background: var(--soft);
}

.cal-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.cal-month-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.cal-week span {
    text-align: center;
    color: #a0aaba;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 0;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day {
    border: 0;
    background: transparent;
    min-height: 34px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.cal-day.is-muted {
    color: #c9d0db;
    pointer-events: none;
}

.cal-day.is-selected {
    background: var(--navy);
    color: #fff;
}

.cal-day:not(.is-muted):hover {
    background: #e9eef8;
}

.time-step {
    padding: 2px;
}

.time-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #edf1f7;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 14px;
}

.time-bar > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}

#editDateBtn {
    border: 0;
    background: transparent;
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.time-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.time-row input,
.ampm-btn {
    width: 58px;
    height: 44px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
}

.time-row input:focus {
    outline: none;
    border-color: var(--navy);
}

.time-colon {
    font-weight: 700;
    font-size: 18px;
}

.ampm-btn {
    cursor: pointer;
}

.ampm-btn.is-active {
    border-color: var(--navy);
    color: var(--navy);
    box-shadow: inset 0 0 0 1px var(--navy);
}

.panel-actions {
    display: flex;
    gap: 10px;
}

.btn-soft,
.btn-main {
    flex: 1;
    min-height: 42px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.btn-soft {
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.btn-main {
    border: 0;
    background: var(--navy);
    color: #fff;
}

.overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 60;
}

.login-overlay {
    --auth-blue: #1a3f99;
    --auth-blue-d: #122d72;
    --auth-ink: #14161c;
    --auth-line: #c8cad0;
    --auth-ph: #8b8e96;
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
    overflow-y: auto;
    background: rgba(4, 8, 18, 0.82);
    font-family: "Inter", system-ui, sans-serif;
}

.login-overlay[hidden] {
    display: none !important;
}

.auth-modal {
    position: relative;
    width: 880px;
    max-width: 100%;
    margin: auto;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    animation: auth-pop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes auth-pop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.auth-photo {
    flex: none;
    width: 417px;
    height: 393px;
    margin: 12px 0 0 10px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.auth-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    animation: auth-settle 1.6s ease-out forwards;
}

@keyframes auth-settle {
    to {
        transform: scale(1);
    }
}

.auth-panel {
    position: relative;
    flex: 1;
    padding: 38px 34px 26px 22px;
    min-height: 415px;
    display: flex;
    flex-direction: column;
}

.auth-panel.is-otp {
    padding: 52px 32px 34px 28px;
    align-items: center;
    text-align: center;
}

.auth-skyline {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 480px;
    max-width: 100%;
    pointer-events: none;
    z-index: 0;
}

.auth-panel > *:not(.auth-skyline):not(.auth-corner):not(.auth-close) {
    position: relative;
    z-index: 1;
}

.auth-step {
    width: 100%;
}

.auth-step[hidden] {
    display: none !important;
}

.auth-otp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auth-otp-step[hidden] {
    display: none !important;
}

.auth-otp-step > * {
    margin: 0;
}

.auth-panel h1 {
    font-size: 30px;
    line-height: 40px;
    font-weight: 700;
    letter-spacing: -0.045em;
    color: var(--auth-ink);
    margin: 0;
}

.auth-otp-step h1 {
    font: 700 35px/44px "Poppins", sans-serif;
    letter-spacing: -0.03em;
    color: var(--auth-ink);
}

.auth-otp-sub {
    margin-top: 30px;
    font-size: 16px;
    line-height: 22px;
    color: #6a6d76;
    letter-spacing: 0.01em;
}

.auth-otp-to {
    margin-top: 8px;
    font: 600 17.5px/26px "Poppins", sans-serif;
    color: #1b1d24;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.otp-row {
    margin-top: 30px;
    display: flex;
    gap: 14.5px;
    justify-content: center;
}

.otp-row input {
    width: 56px;
    height: 53px;
    border: 1.5px solid var(--auth-line);
    border-radius: 14px;
    background: #fff;
    text-align: center;
    font: 600 22px "Inter", system-ui, sans-serif;
    color: var(--auth-ink);
    outline: 0;
    caret-color: var(--auth-blue);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.otp-row input:hover {
    border-color: #a9adb8;
}

.otp-row input:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 4px rgba(26, 63, 153, 0.13);
    transform: translateY(-1px);
}

.otp-row input.filled {
    border-color: var(--auth-blue);
}

.otp-row.err input {
    border-color: #d93a3a;
    animation: auth-shake 0.35s;
}

.otp-row.err input:focus {
    box-shadow: 0 0 0 4px rgba(217, 58, 58, 0.12);
}

.auth-otp-resend {
    margin-top: 14px;
    font-size: 16px;
    line-height: 22px;
    color: #4d5059;
    font-weight: 500;
    min-height: 22px;
}

.auth-otp-resend button {
    border: 0;
    background: none;
    font: 600 16px "Inter", system-ui, sans-serif;
    color: var(--auth-blue);
    cursor: pointer;
    padding: 0;
    position: relative;
}

.auth-otp-resend button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.auth-otp-resend button:hover::after {
    transform: scaleX(1);
}

.auth-verify {
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    height: 47px;
    width: 100%;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    color: #fff;
    font: 600 15.5px "Inter", system-ui, sans-serif;
    background: var(--auth-blue);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s;
}

.auth-verify::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 35%;
    transform: skewX(-20deg);
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.auth-verify:hover {
    transform: translateY(-2px);
    background: #1f48ad;
    box-shadow: 0 10px 22px rgba(26, 63, 153, 0.4);
}

.auth-verify:hover::before {
    animation: auth-sweep 0.8s ease;
}

.auth-verify:active {
    transform: scale(0.98);
    box-shadow: none;
}

.auth-verify.loading {
    pointer-events: none;
    background: #3a58a8;
}

.auth-verify.loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}

.auth-verify.done {
    background: #1f8a5b;
}

.auth-verify:focus-visible,
.auth-otp-resend button:focus-visible {
    outline: 3px solid #8fb0ff;
    outline-offset: 3px;
}

.auth-lb {
    display: block;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #23262e;
    line-height: 22px;
}

.auth-g1 {
    margin-top: 32px;
}

.auth-g2 {
    margin-top: 28px;
    position: relative;
    z-index: 2;
}

.auth-field {
    margin-top: 14px;
    height: 51px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 9px;
    background: #fff;
    border: 1.5px solid var(--auth-line);
    border-radius: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-g2 .auth-field {
    margin-top: 15px;
}

.auth-phone-wrap {
    position: relative;
    margin-top: 15px;
    height: 51px;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1.5px solid var(--auth-line);
    border-radius: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: visible;
}

.auth-phone-wrap:hover {
    border-color: #a9adb8;
}

.auth-phone-wrap:focus-within {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 4px rgba(26, 63, 153, 0.12);
}

.auth-phone-wrap.err {
    border-color: #d93a3a;
    animation: auth-shake 0.35s;
}

.auth-phone-wrap.err:focus-within {
    box-shadow: 0 0 0 4px rgba(217, 58, 58, 0.12);
}

.auth-dial {
    flex: none;
    min-width: 108px;
    border: 0;
    border-right: 1.5px solid var(--auth-line);
    border-radius: 12px 0 0 12px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    cursor: pointer;
    font: 600 15px "Inter", system-ui, sans-serif;
    color: var(--auth-ink);
}

.auth-dial img {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.auth-dial-plus {
    font-weight: 600;
}

.auth-phone-wrap > input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
    font: 400 15.5px "Inter", system-ui, sans-serif;
    color: var(--auth-ink);
}

.auth-phone-wrap > input::placeholder {
    color: var(--auth-ph);
}

.countrySelectBox {
    position: fixed;
    left: 0;
    top: 0;
    width: 316px;
    height: 280px;
    z-index: 140;
    overflow: auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    scrollbar-width: thin;
}

.countrySelectBox[hidden] {
    display: none !important;
}

.countrySelectSearch {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #e6e8ee;
}

.countrySelectSearch input {
    width: 100%;
    height: 40px;
    border: 1.5px solid var(--auth-blue);
    border-radius: 8px;
    outline: 0;
    padding: 0 12px;
    font: 400 14px "Inter", system-ui, sans-serif;
    box-shadow: 0 0 0 3px rgba(26, 63, 153, 0.12);
}

.countrySelectBox ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 1rem;
    margin: 0;
    list-style: none;
}

.countrySelectBox ul li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--auth-ink);
}

.countrySelectBox ul li.is-hide,
.countrySelectBox ul li[hidden] {
    display: none !important;
}

.countrySelectBox ul li:hover {
    color: var(--auth-blue);
}

.countrySelectBox ul li img {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    flex: none;
}

.auth-field:hover {
    border-color: #a9adb8;
}

.auth-field:focus-within {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 4px rgba(26, 63, 153, 0.12);
}

.auth-ico {
    flex: none;
    width: 33px;
    height: 33px;
    border-radius: 8px;
    background: #efefef;
    display: grid;
    place-items: center;
    transition: background 0.2s;
}

.auth-ico svg {
    width: 17px;
    height: 17px;
    color: #222;
    transition: color 0.2s;
}

.auth-field:focus-within .auth-ico {
    background: var(--auth-blue);
}

.auth-field:focus-within .auth-ico svg {
    color: #fff;
}

.auth-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: 400 15.5px "Inter", system-ui, sans-serif;
    color: var(--auth-ink);
    letter-spacing: 0.005em;
}

.auth-field input::placeholder {
    color: var(--auth-ph);
}

.auth-field.err {
    border-color: #d93a3a;
    animation: auth-shake 0.35s;
}

.auth-field.err:focus-within {
    box-shadow: 0 0 0 4px rgba(217, 58, 58, 0.12);
}

@keyframes auth-shake {
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-3px);
    }
}

.auth-otp {
    position: relative;
    overflow: hidden;
    margin-top: 29px;
    height: 47px;
    width: 100%;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    color: #fff;
    font: 500 15.5px "Inter", system-ui, sans-serif;
    letter-spacing: 0.01em;
    background: var(--auth-blue);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s;
}

.auth-otp::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 35%;
    transform: skewX(-20deg);
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.auth-otp:hover {
    transform: translateY(-2px);
    background: #1f48ad;
    box-shadow: 0 10px 22px rgba(26, 63, 153, 0.4);
}

.auth-otp:hover::before {
    animation: auth-sweep 0.8s ease;
}

.auth-otp:active {
    transform: scale(0.98);
    box-shadow: none;
}

.auth-otp.loading {
    pointer-events: none;
    background: #3a58a8;
}

.auth-otp.loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}

.auth-otp.done {
    background: #1f8a5b;
}

@keyframes auth-sweep {
    to {
        left: 130%;
    }
}

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

.auth-otp:focus-visible,
.auth-close:focus-visible {
    outline: 3px solid #8fb0ff;
    outline-offset: 3px;
}

.auth-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 117px;
    height: 92px;
    background: var(--auth-blue);
    border-bottom-left-radius: 100% 100%;
    z-index: 2;
}

.auth-close {
    position: absolute;
    top: 26px;
    right: 30px;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    cursor: pointer;
    z-index: 3;
    display: grid;
    place-items: center;
    transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s;
}

.auth-close svg {
    width: 15px;
    height: 15px;
    color: var(--auth-blue);
}

.auth-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 981px) and (max-width: 1240px) {
    .search-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: 0;
    }

    .cell {
        min-height: 78px;
    }

    .date-panel {
        left: auto;
        right: 0;
    }

    .date-panel.is-return {
        left: 0;
        right: auto;
    }
}

@media (max-width: 980px) {
    .hero {
        padding: 18px 16px 24px;
    }

    .cab-form {
        width: 100%;
    }

    .search-row {
        grid-template-columns: 1fr 1fr;
        min-height: 0;
    }

    .cell {
        min-height: 74px;
    }

    .search-btn {
        min-height: 74px;
    }

    .cal-months {
        grid-template-columns: 1fr;
    }

    .trip-tabs {
        max-width: 100%;
        overflow: auto;
    }
}

@media (max-width: 900px) {
    .auth-modal {
        flex-direction: column;
        width: 440px;
        max-width: 100%;
    }

    .auth-photo {
        width: auto;
        height: 200px;
        margin: 10px 10px 0;
    }

    .auth-panel {
        padding: 26px 22px 24px;
        min-height: 0;
    }

    .auth-panel.is-otp {
        padding: 34px 22px 24px;
    }

    .auth-panel h1 {
        font-size: 26px;
    }

    .auth-otp-step h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .auth-otp-sub {
        font-size: 14px;
    }

    .auth-otp-to {
        font-size: 15px;
    }

    .auth-g1 {
        margin-top: 22px;
    }

    .auth-g2 {
        margin-top: 20px;
    }

    .auth-skyline {
        width: 100%;
    }

    .auth-corner {
        width: 90px;
        height: 72px;
    }

    .auth-close {
        top: 16px;
        right: 18px;
    }
}

@media (max-height: 520px) and (max-width: 900px) {
    .auth-photo {
        display: none;
    }

    .auth-corner {
        width: 70px;
        height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-overlay *,
    .login-overlay *::before,
    .login-overlay *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 640px) {
    .hero-copy {
        padding-top: 28px;
    }

    .hero-copy h1 {
        font-size: 30px;
    }

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

    .search-btn {
        min-height: 54px;
    }

    .swap-btn {
        display: none;
    }

    .form-perks {
        flex-direction: column;
        gap: 6px;
    }

    .trip-tabs {
        display: flex;
        width: 100%;
        overflow: visible;
    }

    .trip-tab {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        gap: 6px;
        padding: 0 6px;
        font-size: 12px;
    }

    .trip-dot {
        display: none;
    }

    .search-shell {
        padding: 14px 12px;
    }

    .suggest-panel,
    .pax-panel,
    .date-panel,
    .date-panel.is-return {
        position: fixed;
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 10px;
        width: auto;
        min-width: 0;
        max-width: none;
        transform: none;
        border-radius: 16px;
    }

    .suggest-panel {
        top: 10px;
        bottom: auto;
        max-height: calc(100vh - 20px);
    }

    .pax-panel,
    .date-panel {
        max-height: 85vh;
    }

    .cal-day {
        min-height: 40px;
    }

    .overlay:not([hidden]) {
        background: rgba(8, 16, 36, 0.45);
    }
}

.flash-banner {
    position: absolute;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    max-width: min(560px, 92vw);
    padding: 12px 18px;
    border-radius: 10px;
    background: #fef3f2;
    color: #b42318;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    text-align: center;
}
