:root {
    --brand: #2f6df6;
    --brand-dark: #071d3c;
    --brand-mid: #123c73;
    --bg: #eef5ff;
    --card: #ffffff;
    --ink: #071d3c;
    --muted: #63748f;
    --line: #d9e3f2;
    --ok: #1d8655;
    --danger: #c0392b;
    --warn: #a66700;
    --econ: #e9f3ff;
    --comfort: #dff4ea;
    --biz: #fff1c9;
    --busy: #ffd6d6;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

body {
    font-size: 16px;
    line-height: 1.45;
}

a { color: inherit; }

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-grow { flex: 1; }

.container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.topbar {
    background: linear-gradient(135deg, #071d3c, #173f7b);
    color: #fff;
    position: relative;
    z-index: 5;
}

.topbar-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 800;
    flex: 0 0 auto;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
}

.nav a {
    text-decoration: none;
    padding: 10px 2px 8px;
    font-size: 18px;
    color: rgba(255,255,255,.9);
    border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav a.is-active {
    color: #fff;
    border-bottom-color: #fff;
}

.section {
    padding: 28px 0;
}

.compact-section {
    padding-bottom: 12px;
}

.card,
.panel,
.flight-card,
.booking-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(37, 61, 103, .08);
}

.card, .panel { padding: 32px; }

h1 {
    margin: 0 0 20px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
}

h3 { margin: 0 0 12px; font-size: 24px; }

p { margin: 0 0 12px; }

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

.alert {
    margin: 22px 0 0;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #f7fbff;
    font-weight: 700;
}

.alert-error { color: #842029; background: #fff2f2; border-color: #ffd5d5; }
.alert-success { color: #17663d; background: #edfff5; border-color: #c6f0d9; }

.hero {
    padding: 50px 0 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: stretch;
}

.hero-card {
    background: linear-gradient(135deg, #ffffff, #f6faff);
    border-radius: 34px;
    padding: 38px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(37, 61, 103, .09);
}

.hero-card p {
    font-size: 20px;
    color: var(--muted);
}

.feature-grid,
.detail-grid,
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-item,
.detail-item {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    background: #f8fbff;
}

.search-grid,
.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.form-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 700;
}

.field small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 18px;
    padding: 15px 16px;
    font-size: 16px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(47, 109, 246, .12);
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 18px;
    background: var(--brand);
    color: #fff;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    min-height: 48px;
}

.button.secondary {
    background: #edf3ff;
    color: var(--brand-dark);
}

.button.small {
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
}

.button.danger,
.danger {
    background: #fff0f0;
    color: var(--danger);
}

.search-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.flight-list {
    display: grid;
    gap: 18px;
}

.flight-card {
    padding: 24px;
    display: grid;
    grid-template-columns: 1.5fr auto auto;
    gap: 20px;
    align-items: center;
}

.route {
    font-size: 28px;
    font-weight: 900;
}

.small-route {
    font-size: 22px;
}

.badge,
.pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f1f5ff;
    font-weight: 800;
}

.pill.paid { background: #e0f3e8; color: #1c6d42; }
.pill.pending { background: #fff0cc; color: #7a5000; }
.pill.cancelled { background: #ffe4e4; color: #963333; }
.pill.active { background: #edf3ff; color: #102b57; }
.pill.completed { background: #e0f3e8; color: #1c6d42; }

.price {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 10px;
}

.booking-layout {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 22px;
    align-items: start;
}

.seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-weight: 700;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid var(--line);
}

.dot-econ { background: var(--econ); }
.dot-comfort { background: var(--comfort); }
.dot-biz { background: var(--biz); }
.dot-busy { background: var(--busy); }

.seat-map {
    overflow-x: auto;
    padding: 16px;
    border-radius: 24px;
    background: #f7fbff;
    border: 1px solid var(--line);
}

.plane-bar {
    width: 180px;
    height: 16px;
    border-radius: 50% 50% 10px 10px;
    background: #d8e6fb;
    margin: 0 auto 20px;
}

.seat-row {
    min-width: 420px;
    display: grid;
    grid-template-columns: 34px repeat(3, 54px) 28px repeat(3, 54px);
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.row-index, .aisle {
    text-align: center;
    font-weight: 900;
    color: #395172;
}

.seat-button {
    border: 2px solid transparent;
    border-radius: 16px;
    min-height: 48px;
    padding: 8px 4px;
    background: var(--econ);
    color: var(--ink);
    text-align: center;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
}

.seat-button.seat-business { background: var(--biz); }
.seat-button.seat-comfort { background: var(--comfort); }
.seat-button.seat-busy,
.seat-button.is-disabled {
    background: var(--busy);
    color: #7d3232;
    cursor: not-allowed;
}
.seat-button.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(47,109,246,.15);
}

.booking-summary {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #f7fbff;
    padding: 18px;
    margin-top: 18px;
}

.booking-summary .value {
    font-size: 20px;
    font-weight: 900;
}

.auth-card,
.payment-card {
    max-width: 680px;
    margin: 34px auto 0;
}

.password-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.password-row input {
    min-width: 0;
}

.toggle-password {
    width: auto;
    min-width: 92px;
    min-height: 52px;
    padding: 0 14px;
    background: #edf3ff;
    color: var(--brand-dark);
    border-radius: 16px;
    font-size: 14px;
    white-space: nowrap;
}

.booking-cards {
    display: grid;
    gap: 16px;
}

.booking-card {
    padding: 22px;
}

.booking-card-main {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.booking-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
    align-items: start;
}

.booking-card-grid > div {
    padding: 14px;
    border-radius: 18px;
    background: #f7fbff;
    border: 1px solid var(--line);
}

.booking-card-grid span.muted {
    display: block;
    margin-bottom: 7px;
}

.booking-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: #fff;
}

th, td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th { color: var(--muted); }

.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 18px;
    margin-top: 24px;
}

.admin-menu {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 16px;
    height: fit-content;
}

.admin-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
}

.admin-menu a.active,
.admin-menu a:hover {
    background: #edf3ff;
}

.footer {
    margin-top: 38px;
    background: #061a35;
    color: #fff;
    padding: 34px 0;
}

.footer a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.35);
}

.footer p {
    color: rgba(255,255,255,.82);
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .topbar-inner {
        align-items: flex-start;
        gap: 14px;
    }

    .brand {
        width: 42%;
        font-size: 24px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .nav {
        width: 58%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 14px;
        justify-content: stretch;
    }

    .nav a {
        font-size: 17px;
        padding: 7px 0;
    }

    .hero-grid,
    .booking-layout,
    .detail-grid,
    .footer-grid,
    .feature-grid,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .search-grid,
    .form-grid,
    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .card, .panel {
        padding: 24px;
        border-radius: 24px;
    }

    .flight-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .flight-time {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

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

    .booking-card-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .container {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .topbar-inner {
        min-height: auto;
        padding: 16px 0;
        flex-direction: row;
    }

    .brand {
        font-size: 21px;
        gap: 9px;
        line-height: 1.08;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .nav {
        gap: 8px 12px;
    }

    .nav a {
        font-size: 16px;
    }

    .section {
        padding: 18px 0;
    }

    .hero {
        padding-top: 22px;
    }

    .hero-card,
    .card,
    .panel {
        padding: 20px;
        border-radius: 22px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    input, select, textarea {
        min-height: 52px;
        font-size: 16px;
    }

    button, .button {
        width: 100%;
    }

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

    .password-row .toggle-password {
        width: auto;
        min-width: 84px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 13px;
    }

    .search-actions,
    .booking-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .flight-price {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .footer {
        padding: 26px 0;
    }
}


.hero .search-actions {
    align-items: end;
}

.hero .search-actions button,
.hero .search-actions .button {
    width: auto;
    min-width: 150px;
}


@media (max-width: 560px) {
    .hero .search-actions button,
    .hero .search-actions .button {
        width: 100%;
        min-width: 0;
    }
}


.ticket-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.boarding-pass {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(37, 61, 103, .1);
}

.boarding-pass-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 30px;
    color: #fff;
    background: linear-gradient(135deg, #071d3c, #2f6df6);
}

.boarding-pass-top h1 { color: #fff; margin-bottom: 8px; }
.boarding-pass-top .muted { color: rgba(255,255,255,.78); }

.ticket-code {
    min-width: 210px;
    align-self: center;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 22px;
    text-align: center;
    background: rgba(255,255,255,.12);
}
.ticket-code span { display: block; font-size: 13px; opacity: .8; margin-bottom: 8px; }
.ticket-code strong { font-size: 25px; letter-spacing: 1px; }

.ticket-route {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 18px;
    align-items: center;
    padding: 30px;
    border-bottom: 1px dashed var(--line);
}
.ticket-route span,
.ticket-grid span { display: block; color: var(--muted); font-weight: 700; margin-bottom: 7px; }
.ticket-route strong { display: block; font-size: 36px; line-height: 1; }
.ticket-route small { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
.ticket-plane { text-align: center; font-size: 34px; }

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 1px;
    background: var(--line);
    border-bottom: 1px dashed var(--line);
}
.ticket-grid > div {
    background: #fff;
    padding: 20px;
}
.ticket-grid strong { font-size: 18px; }

.ticket-bottom {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 24px 30px;
    background: #f7fbff;
}
.qr-box {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 12px;
}
.qr-line { height: 10px; background: var(--ink); border-radius: 999px; }
.qr-line.short { width: 65%; }

@media (max-width: 900px) {
    .boarding-pass-top,
    .ticket-bottom { flex-direction: column; align-items: flex-start; }
    .ticket-route { grid-template-columns: 1fr; }
    .ticket-plane { text-align: left; }
    .ticket-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}

@media print {
    .topbar, .footer, .no-print, .alert { display: none !important; }
    body { background: #fff; }
    .container { width: 100%; padding: 0; }
    .section { padding: 0; }
    .boarding-pass { box-shadow: none; border-radius: 0; }
}


/* === Финальные доработки интерфейса === */
.brand-mark-ru {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,.08));
    border: 1px solid rgba(255,255,255,.22);
}
.brand-letters {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -1px;
}
.brand-plane {
    position: absolute;
    right: 5px;
    top: 4px;
    font-size: 15px;
    transform: rotate(-10deg);
    opacity: .95;
}

button,
.button,
.flight-card,
.booking-card,
.card,
.panel,
.detail-item,
.feature-item,
.seat-button,
.nav a {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}

button:hover,
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(47, 109, 246, .22);
}

.button.secondary:hover {
    background: #dce8ff;
}

.flight-card:hover,
.booking-card:hover,
.detail-item:hover,
.feature-item:hover {
    transform: translateY(-3px);
    border-color: #b9cae7;
    box-shadow: 0 24px 56px rgba(37, 61, 103, .12);
}

.seat-button:not(.is-disabled):hover {
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(47, 109, 246, .45);
}

input:hover,
select:hover,
textarea:hover {
    border-color: #b7c8e5;
}

.ticket-note {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 14px;
    background: #fff7df;
    color: #865e00;
    font-weight: 800;
}

.airport-line {
    margin-top: 4px;
}

.ticket-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.real-ticket {
    background: #fff;
    border: 1px solid #cfd9ea;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 22px 64px rgba(16, 43, 87, .13);
}

.ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 26px 30px;
    background: linear-gradient(135deg, #061a35, #19437f);
    color: #fff;
}

.ticket-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ticket-logo {
    position: relative;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    font-weight: 900;
}
.ticket-logo b {
    position: absolute;
    right: 6px;
    top: 4px;
    font-size: 16px;
}
.ticket-airline {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
}
.ticket-status {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 900;
    background: rgba(255,255,255,.13);
}
.paid-status {
    color: #d7ffe5;
    border: 1px solid rgba(215,255,229,.5);
}

.ticket-body {
    display: grid;
    grid-template-columns: 1fr 310px;
    min-height: 360px;
}

.ticket-main {
    padding: 30px;
}

.ticket-route-large {
    display: grid;
    grid-template-columns: 1fr 70px 1fr;
    gap: 22px;
    align-items: center;
    padding-bottom: 22px;
    border-bottom: 1px dashed #c8d3e6;
    margin-bottom: 22px;
}

.ticket-route-large span,
.ticket-info-grid span,
.stub-row span,
.stub-big span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ticket-route-large strong {
    display: block;
    font-size: 42px;
    line-height: 1.05;
    margin: 6px 0;
}

.ticket-route-large small {
    color: var(--muted);
    font-size: 16px;
}

.route-plane {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--brand);
    font-size: 28px;
    box-shadow: 0 14px 28px rgba(47, 109, 246, .25);
}

.ticket-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.ticket-info-grid > div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fbff;
}
.ticket-info-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
}

.ticket-stub {
    position: relative;
    padding: 30px 26px;
    background: #f1f6ff;
    border-left: 2px dashed #b7c7e4;
}
.ticket-stub:before,
.ticket-stub:after {
    content: '';
    position: absolute;
    left: -18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid #cfd9ea;
}
.ticket-stub:before { top: -17px; }
.ticket-stub:after { bottom: -17px; }
.stub-title {
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 18px;
}
.stub-row,
.stub-big {
    padding: 13px 0;
    border-bottom: 1px solid #d9e3f2;
}
.stub-row strong {
    display: block;
    margin-top: 5px;
    font-size: 18px;
}
.stub-big strong {
    display: block;
    margin-top: 4px;
    font-size: 54px;
    line-height: 1;
}
.ticket-barcode {
    height: 74px;
    margin-top: 22px;
    display: flex;
    gap: 5px;
    align-items: stretch;
    justify-content: center;
}
.ticket-barcode span {
    display: block;
    width: 7px;
    background: #071d3c;
    border-radius: 2px;
}
.ticket-barcode span:nth-child(2n) { width: 3px; opacity: .72; }
.ticket-barcode span:nth-child(3n) { width: 11px; }

.ticket-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 22px 30px;
    border-top: 1px solid var(--line);
    background: #fbfdff;
}
.qr-box {
    width: 90px;
    height: 90px;
    border: 8px solid #071d3c;
    border-radius: 12px;
    padding: 8px;
    display: grid;
    gap: 5px;
    background: #fff;
}
.qr-line {
    background: #071d3c;
    border-radius: 3px;
}
.qr-line.short { width: 60%; }

@media (max-width: 900px) {
    .ticket-body,
    .ticket-route-large,
    .ticket-info-grid {
        grid-template-columns: 1fr;
    }
    .ticket-stub {
        border-left: 0;
        border-top: 2px dashed #b7c7e4;
    }
    .ticket-stub:before,
    .ticket-stub:after { display: none; }
    .ticket-route-large strong { font-size: 34px; }
}

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .topbar,
    .footer,
    .no-print,
    .alert {
        display: none !important;
    }
    .container {
        width: 100% !important;
        margin: 0 !important;
    }
    .section {
        padding: 0 !important;
    }
    .real-ticket {
        box-shadow: none !important;
        border: 2px solid #000 !important;
        border-radius: 0 !important;
        page-break-inside: avoid;
    }
    .ticket-head {
        background: #fff !important;
        color: #000 !important;
        border-bottom: 2px solid #000;
    }
    .ticket-status,
    .ticket-logo,
    .route-plane {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    .ticket-main,
    .ticket-stub,
    .ticket-foot {
        background: #fff !important;
    }
    .ticket-info-grid > div {
        background: #fff !important;
        border-color: #000 !important;
    }
}

.brand-mark {
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.20);
}
.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.button, button, .flight-card, .booking-card, .card, .seat-button {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(47, 109, 246, .22);
}
.flight-card:hover, .booking-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(18, 39, 79, .12);
}
.seat-button:not(.is-disabled):hover {
    transform: scale(1.06);
    box-shadow: 0 10px 20px rgba(18, 39, 79, .16);
}


/* ===== Modern refresh + multi-seat booking ===== */
:root {
    --brand: #4f46e5;
    --brand-dark: #0f172a;
    --brand-mid: #312e81;
    --bg: #eef2ff;
    --card: rgba(255,255,255,.92);
    --ink: #0f172a;
    --muted: #64748b;
    --line: #dbe3f4;
}
body {
    background: radial-gradient(circle at top left, #f8fbff 0, #eef2ff 32%, #edf4ff 100%);
}
.topbar {
    background: linear-gradient(135deg, #0f172a 0%, #162b59 45%, #4338ca 100%);
    box-shadow: 0 18px 40px rgba(15,23,42,.18);
}
.topbar::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: rgba(255,255,255,.12);
}
.brand { letter-spacing: -.02em; }
.brand-mark-ru {
    width: 50px;
    height: 50px;
    box-shadow: 0 10px 26px rgba(15,23,42,.26);
}
.nav a {
    border-radius: 12px;
    padding: 10px 10px;
    border-bottom: 0;
}
.nav a:hover,
.nav a.is-active {
    background: rgba(255,255,255,.12);
}
.card,
.panel,
.flight-card,
.booking-card {
    backdrop-filter: blur(14px);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--brand-mid);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.section-headline,
.panel-headline-row,
.summary-topline,
.cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.booking-summary-modern,
.payment-summary-grid {
    background: linear-gradient(135deg, #f8fbff, #f5f3ff);
}
.seat-map-modern {
    background: linear-gradient(180deg, #f8fbff, #f2f7ff);
    border-radius: 28px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ecfeff;
    color: #155e75;
    font-weight: 800;
}
.seat-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.seat-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #312e81;
    font-weight: 800;
    font-size: 14px;
}
.value-price {
    font-size: 30px;
}
.payment-card-modern,
.booking-panel,
.seat-panel {
    box-shadow: 0 24px 56px rgba(30,41,59,.10);
}
.booking-card-modern {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.booking-card-grid-modern {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
}
.real-ticket-compact {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 24px;
}
.ticket-head-subtitle {
    color: rgba(255,255,255,.82);
    margin-top: 4px;
}
.ticket-body-compact {
    grid-template-columns: minmax(0, 1fr) 280px;
    min-height: auto;
}
.ticket-route-compact strong {
    font-size: 32px;
}
.ticket-route-compact small {
    font-size: 14px;
}
.ticket-info-grid-compact {
    grid-template-columns: repeat(4, 1fr);
}
.ticket-info-grid-compact > div {
    padding: 14px;
}
.ticket-stub-compact {
    padding: 24px 22px;
}
.ticket-stub-compact .stub-title { font-size: 18px; margin-bottom: 12px; }
.ticket-stub-compact .stub-row { padding: 10px 0; }
.ticket-stub-compact .stub-row strong { font-size: 16px; }
.ticket-foot-compact {
    padding: 16px 22px;
}
.ticket-foot-compact p { margin-top: 6px; }

@media (max-width: 900px) {
    .booking-card-grid-modern,
    .ticket-info-grid-compact {
        grid-template-columns: repeat(2, minmax(120px,1fr));
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }
    html, body {
        width: 210mm;
        height: auto;
        background: #fff !important;
    }
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    .ticket-section {
        padding: 0 !important;
    }
    .real-ticket-compact {
        max-width: none !important;
        width: 100% !important;
        box-shadow: none !important;
        border: 1px solid #111827 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    .ticket-head {
        padding: 14px 16px !important;
    }
    .ticket-airline {
        font-size: 22px !important;
    }
    .ticket-head-subtitle {
        color: #4b5563 !important;
    }
    .ticket-body-compact {
        grid-template-columns: 1fr 220px !important;
    }
    .ticket-main { padding: 16px !important; }
    .ticket-route-compact { padding-bottom: 14px !important; margin-bottom: 14px !important; gap: 14px !important; }
    .ticket-route-compact strong { font-size: 24px !important; }
    .route-plane { width: 46px !important; height: 46px !important; font-size: 20px !important; }
    .ticket-info-grid-compact { grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; }
    .ticket-info-grid-compact > div { padding: 10px !important; }
    .ticket-info-grid-compact strong { font-size: 14px !important; }
    .ticket-stub-compact { padding: 16px 14px !important; }
    .ticket-stub-compact .stub-row strong { font-size: 14px !important; }
    .ticket-barcode { height: 44px !important; margin-top: 12px !important; }
    .ticket-foot-compact { padding: 12px 16px !important; gap: 12px !important; }
    .print-seat-list .seat-chip { background: #fff !important; border: 1px solid #111827; color: #111827 !important; }
    .footer, .topbar, .ticket-toolbar, .no-print, .alert { display: none !important; }
}


/* ===== 2026 UI refresh ===== */
:root {
    --brand: #5b5cf0;
    --brand-dark: #0b1736;
    --brand-mid: #283b8f;
    --brand-soft: #f1efff;
    --card: rgba(255,255,255,.92);
    --bg: linear-gradient(180deg, #f4f7ff 0%, #eef4ff 100%);
    --shadow-xl: 0 22px 60px rgba(31, 52, 95, .12);
}
html, body { background: #eef4ff; }
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(91,92,240,.09), transparent 32%), radial-gradient(circle at right top, rgba(44,104,255,.08), transparent 28%);
    pointer-events: none;
    z-index: -1;
}
.topbar {
    background: linear-gradient(90deg, #0c1a3b 0%, #1c2f6f 52%, #4f46e5 100%);
    box-shadow: 0 14px 38px rgba(12,26,59,.18);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
}
.topbar-inner { min-height: 88px; }
.brand {
    font-size: 30px;
    letter-spacing: -.04em;
}
.brand-mark-ru {
    width: 54px;
    height: 54px;
    background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 22px rgba(0,0,0,.16);
    position: relative;
    overflow: hidden;
}
.brand-letters {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.05em;
}
.brand-plane {
    position: absolute;
    right: 8px;
    top: 6px;
    font-size: 12px;
    opacity: .95;
}
.nav a {
    padding: 12px 14px;
    border-radius: 14px;
    border-bottom: none;
    transition: background .18s ease, transform .18s ease, color .18s ease;
}
.nav a:hover, .nav a.is-active {
    background: rgba(255,255,255,.14);
    color: #fff;
    transform: translateY(-1px);
}
.card, .panel, .hero-card, .flight-card, .booking-card {
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(209, 220, 241, .9);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 26px;
    align-items: stretch;
}
.home-hero-section { padding-top: 42px; }
.hero-card {
    padding: 34px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
}
.hero-card-primary {
    position: relative;
    overflow: hidden;
}
.hero-card-primary::after {
    content: '';
    position: absolute;
    inset: auto -40px -70px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(91,92,240,.16), transparent 65%);
    border-radius: 50%;
}
.hero-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.search-actions-wide {
    grid-column: 1 / -1;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: #4338ca;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: 14px;
}
.feature-stack { display: grid; gap: 14px; }
.modern-feature-item {
    background: linear-gradient(180deg, #fbfdff, #f6f9ff);
    border-radius: 22px;
}
.card-soft {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.94));
}
.section-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.kpis-modern .kpi {
    background: linear-gradient(180deg, #f7f8ff, #f9fcff);
}
.home-feature-grid { grid-template-columns: repeat(3, 1fr); }
.modern-flight-card {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.96));
}
input, select, textarea {
    border-radius: 16px;
    min-height: 54px;
    background: rgba(255,255,255,.98);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
input:hover, select:hover, textarea:hover {
    border-color: #c7d4ef;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(91,92,240,.14);
    transform: translateY(-1px);
}
button, .button {
    border-radius: 16px;
    background: linear-gradient(90deg, #5b5cf0 0%, #4f46e5 100%);
    box-shadow: 0 10px 24px rgba(91,92,240,.22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(91,92,240,.28);
    filter: brightness(1.02);
}
.button.secondary {
    background: #eef2ff;
    color: #23346d;
    box-shadow: none;
}
.button.secondary:hover {
    box-shadow: 0 12px 24px rgba(35,52,109,.10);
}
.flight-card:hover, .booking-card:hover, .feature-item:hover, .detail-item:hover {
    transform: translateY(-3px);
    transition: transform .18s ease, box-shadow .18s ease;
}
.auth-section {
    padding-top: 42px;
    padding-bottom: 42px;
}
.auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, .92fr) minmax(0, 1.08fr);
    gap: 24px;
    align-items: stretch;
}
.auth-shell-wide {
    grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
}
.auth-aside {
    border-radius: 30px;
    padding: 34px;
    color: #fff;
    background: linear-gradient(145deg, #0d1a3d 0%, #203b88 56%, #5b5cf0 100%);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}
.auth-aside::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
}
.auth-aside h1 {
    font-size: clamp(34px, 4.4vw, 52px);
    margin-bottom: 16px;
}
.auth-aside p, .auth-aside li { color: rgba(255,255,255,.9); }
.auth-benefits {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}
.auth-benefits li {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
}
.auth-card {
    max-width: none;
    margin: 0;
}
.auth-card-modern {
    padding: 30px;
}
.auth-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.auth-card-modern h2 {
    margin-bottom: 0;
}
.field-full {
    grid-column: 1 / -1;
}
.password-row-modern {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}
.password-row-modern .toggle-password {
    min-width: 138px;
    padding: 0 16px;
    background: #eef2ff;
    color: #1e2a57;
    box-shadow: none;
}
.auth-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.footer {
    background: linear-gradient(135deg, #07162f, #0c1a3b 62%, #13295f 100%);
    margin-top: 36px;
}
.footer a { color: rgba(255,255,255,.92); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 980px) {
    .hero-grid,
    .auth-shell,
    .auth-shell-wide,
    .home-feature-grid,
    .footer-grid,
    .feature-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .hero-search-grid,
    .form-grid,
    .form-grid.two {
        grid-template-columns: 1fr;
    }
    .auth-aside, .auth-card-modern, .hero-card {
        padding: 24px;
    }
}


/* ===== W O W   T H E M E ===== */
:root {
    --brand: #7c5cff;
    --brand-2: #17c2ff;
    --brand-dark: #071327;
    --bg-main: #091324;
    --card-dark: rgba(16, 28, 51, 0.78);
    --card-light: rgba(255, 255, 255, 0.88);
    --line-soft: rgba(255,255,255,.08);
    --ink: #08162d;
    --muted: #71829d;
    --text-on-dark: rgba(255,255,255,.88);
    --shadow-2xl: 0 26px 80px rgba(6, 15, 35, .30);
}
html, body {
    background:
      radial-gradient(circle at 0% 0%, rgba(23,194,255,.16), transparent 28%),
      radial-gradient(circle at 100% 0%, rgba(124,92,255,.18), transparent 26%),
      radial-gradient(circle at 50% 100%, rgba(75, 103, 255, .12), transparent 32%),
      linear-gradient(180deg, #eff4ff 0%, #edf3ff 100%);
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.28), transparent 70%);
    pointer-events: none;
    opacity: .2;
    z-index: -2;
}
.container {
    width: min(1280px, calc(100% - 36px));
}
.topbar {
    background: rgba(6, 16, 39, .76) !important;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 0 0 22px 22px;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    margin: 0 4px;
    top: 4px;
}
.topbar-inner {
    min-height: 84px;
}
.brand {
    font-size: 31px;
    color: #fff;
}
.brand-mark-ru {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.20), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 12px 26px rgba(0,0,0,.20);
}
.nav { gap: 10px; }
.nav a {
    padding: 12px 16px;
    border-radius: 16px;
    color: rgba(255,255,255,.88) !important;
    background: transparent;
}
.nav a:hover, .nav a.is-active {
    background: linear-gradient(135deg, rgba(124,92,255,.34), rgba(23,194,255,.18));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 24px rgba(8,18,45,.26);
}
.page-grow {
    padding-top: 24px;
}
.card, .panel, .hero-card, .flight-card, .booking-card, .detail-item, .feature-item {
    background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(248,251,255,.88));
    border: 1px solid rgba(205,219,244,.85);
    box-shadow: var(--shadow-2xl);
}
.wow-card {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.92));
    border: 1px solid rgba(205,219,244,.85);
    box-shadow: var(--shadow-2xl);
    border-radius: 30px;
}
.section {
    padding-top: 30px;
    padding-bottom: 30px;
}
.hero-card,
.card,
.panel { border-radius: 30px; }
.eyebrow {
    background: linear-gradient(90deg, rgba(124,92,255,.13), rgba(23,194,255,.10));
    color: #4338ca;
    border: 1px solid rgba(124,92,255,.14);
}
.route-xl {
    font-size: clamp(34px, 6vw, 64px);
    font-weight: 900;
    letter-spacing: -.04em;
}
button, .button {
    background: linear-gradient(135deg, var(--brand) 0%, #5d61ff 48%, var(--brand-2) 100%);
    border-radius: 16px;
    box-shadow: 0 16px 30px rgba(76, 92, 255, .24);
}
.button.secondary {
    background: rgba(231,238,255,.88);
    color: #142957;
    border: 1px solid rgba(190,204,235,.9);
}
input, select, textarea {
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(191,205,233,.95);
    border-radius: 18px;
    min-height: 56px;
}
.field label {
    color: #4b5f82;
    font-size: 14px;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.field small {
    color: #70819f;
}
.auth-card-head, .profile-header-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.profile-page-section { padding-top: 28px; }
.dashboard-shell {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.dashboard-aside {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 118px;
}
.dashboard-aside-card {
    border-radius: 28px;
    padding: 24px;
    color: var(--text-on-dark);
    background: linear-gradient(180deg, rgba(9,19,36,.95), rgba(17,32,58,.88));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow-2xl);
}
.profile-identity-card h2,
.dashboard-note-card h3 { color: #fff; margin-bottom: 10px; }
.muted-light { color: rgba(255,255,255,.68); }
.profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    background: linear-gradient(145deg, rgba(124,92,255,.85), rgba(23,194,255,.8));
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(23,194,255,.16);
}
.profile-mini-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.profile-mini-list div,
.info-list-modern div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: baseline;
}
.profile-mini-list span,
.info-list-modern span { color: rgba(255,255,255,.62); }
.profile-mini-list strong,
.info-list-modern strong { color: #fff; }
.profile-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.stat-chip {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.06);
}
.stat-chip span {
    display: block;
    color: rgba(255,255,255,.62);
    margin-bottom: 6px;
}
.stat-chip strong {
    font-size: 32px;
    color: #fff;
}
.dashboard-main {
    display: grid;
    gap: 22px;
}
.profile-header-card {
    padding: 28px 30px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,250,255,.92));
    border: 1px solid rgba(205,219,244,.85);
    box-shadow: var(--shadow-2xl);
}
.profile-form-card { padding: 30px; }
.profile-form-grid { gap: 20px; }
.profile-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.flight-page-section { display: grid; gap: 24px; }
.flight-hero-card {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}
.flight-hero-price {
    min-width: 230px;
    text-align: right;
    display: grid;
    gap: 8px;
    justify-items: end;
}
.flight-hero-price span {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 800;
}
.flight-hero-price strong {
    font-size: 42px;
    line-height: 1;
}
.flight-detail-grid-modern {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.detail-item-modern { padding: 28px; }
.info-list-modern {
    display: grid;
    gap: 14px;
}
.info-list-modern div {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(245,248,255,.95), rgba(250,252,255,.92));
    border: 1px solid rgba(220,229,245,.95);
}
.info-list-modern span {
    color: #697c9b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}
.info-list-modern strong {
    color: #102446;
}
.booking-cards {
    display: grid;
    gap: 18px;
}
.booking-card-modern {
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.94));
}
.booking-card-main {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.booking-card-grid-modern {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.booking-card-grid-modern > div {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(244,247,255,.88);
    border: 1px solid rgba(218,227,244,.95);
}
.booking-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.ticket-note { color: #5a6f95; font-weight: 700; }
.footer {
    background: linear-gradient(135deg, rgba(5,14,34,.98), rgba(10,23,50,.96) 55%, rgba(19,40,94,.96) 100%);
    border-top: 1px solid rgba(255,255,255,.06);
    margin-top: 32px;
    box-shadow: 0 -12px 30px rgba(6,15,35,.08);
}
.footer-grid {
    align-items: start;
    padding-top: 8px;
}
.footer h3 { color: #fff; }
.footer p, .footer a { color: rgba(255,255,255,.82); }
@media (max-width: 1100px) {
    .dashboard-shell,
    .flight-detail-grid-modern {
        grid-template-columns: 1fr;
    }
    .dashboard-aside {
        position: static;
    }
    .flight-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .flight-hero-price {
        text-align: left;
        justify-items: start;
    }
}
@media (max-width: 880px) {
    .booking-card-grid-modern,
    .profile-stat-grid,
    .detail-grid,
    .feature-grid,
    .footer-grid,
    .hero-grid,
    .search-grid,
    .form-grid,
    .form-grid.two {
        grid-template-columns: 1fr !important;
    }
    .topbar {
        border-radius: 0 0 18px 18px;
        margin: 0;
        top: 0;
    }
    .brand { font-size: 24px; }
    .route-xl { font-size: 34px; }
    .card, .panel, .hero-card, .profile-header-card, .profile-form-card { padding: 22px; }
}


/* ===== FINAL PROTECTION BUILD: premium polish ===== */
html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(124,92,255,.28);
}

.site-shell {
    overflow-x: hidden;
}

.alert {
    box-shadow: 0 16px 32px rgba(15, 23, 42, .08);
}

.search-actions,
.cta-row,
.auth-actions,
.profile-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.flight-card,
.booking-card,
.card,
.panel,
.detail-item,
.feature-item,
.admin-metric-card,
.journey-card {
    position: relative;
    overflow: hidden;
}

.flight-card::before,
.booking-card::before,
.card::before,
.panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,92,255,.32), transparent);
    opacity: .8;
}

.premium-journey-band {
    padding-top: 6px;
}

.journey-card {
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(8,19,43,.96), rgba(25,42,91,.94) 55%, rgba(82,72,210,.92));
    color: #fff;
    box-shadow: 0 28px 88px rgba(5,13,33,.28);
}

.journey-card .eyebrow {
    background: rgba(255,255,255,.10);
    color: #dbeafe;
    border-color: rgba(255,255,255,.10);
}

.journey-card h2 {
    color: #fff;
    max-width: 720px;
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.journey-steps > div {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
}

.journey-steps span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c5cff, #17c2ff);
    font-weight: 900;
    margin-bottom: 14px;
}

.journey-steps strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.journey-steps p {
    color: rgba(255,255,255,.78);
    margin: 0;
}

/* ===== Admin final design ===== */
.admin-body {
    background:
        radial-gradient(circle at top left, rgba(23,194,255,.15), transparent 30%),
        radial-gradient(circle at top right, rgba(124,92,255,.22), transparent 28%),
        linear-gradient(180deg, #edf4ff 0%, #f7faff 100%);
}

.admin-shell-final {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
}

.admin-sidebar-final {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px;
    color: #fff;
    background: linear-gradient(180deg, rgba(6,16,39,.98), rgba(14,28,60,.98) 58%, rgba(39,40,124,.98));
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 22px 0 60px rgba(6,15,35,.18);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-brand-final {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.admin-user-final {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
}

.admin-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #7c5cff, #17c2ff);
    font-weight: 900;
    font-size: 20px;
}

.admin-user-final strong,
.admin-user-final span {
    display: block;
}

.admin-user-final span {
    color: rgba(255,255,255,.65);
    font-size: 13px;
    margin-top: 2px;
}

.admin-nav-final {
    display: grid;
    gap: 8px;
}

.admin-nav-final a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.admin-nav-final a:hover,
.admin-nav-final a.active {
    color: #fff;
    transform: translateX(3px);
    background: linear-gradient(135deg, rgba(124,92,255,.38), rgba(23,194,255,.16));
}

.admin-sidebar-note {
    margin-top: auto;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
}

.admin-sidebar-note strong,
.admin-sidebar-note span {
    display: block;
}

.admin-sidebar-note span {
    color: rgba(255,255,255,.68);
    margin-top: 6px;
    font-size: 13px;
}

.admin-main-final {
    min-width: 0;
    padding: 28px;
}

.admin-top-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 26px 28px;
    margin-bottom: 22px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(248,251,255,.88));
    border: 1px solid rgba(205,219,244,.86);
    box-shadow: 0 22px 60px rgba(31,52,95,.12);
}

.admin-top-final h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
}

.admin-top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-content-final {
    display: grid;
    gap: 22px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.admin-metric-card {
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.92));
    border: 1px solid rgba(205,219,244,.86);
    box-shadow: 0 22px 60px rgba(31,52,95,.12);
}

.admin-metric-card span,
.admin-metric-card small {
    display: block;
    color: #6b7b98;
    font-weight: 700;
}

.admin-metric-card strong {
    display: block;
    margin: 8px 0;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.04em;
}

.admin-metric-card.metric-gradient {
    color: #fff;
    background: linear-gradient(135deg, #0b1736, #3340b8 58%, #17c2ff);
}

.admin-metric-card.metric-gradient span,
.admin-metric-card.metric-gradient small {
    color: rgba(255,255,255,.78);
}

.admin-two-columns {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 22px;
}

.admin-activity-list {
    display: grid;
    gap: 12px;
}

.admin-activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: #f7faff;
    border: 1px solid #dfe8f8;
}

.admin-activity-item strong,
.admin-activity-item span {
    display: block;
}

.admin-activity-item > div span {
    color: #6b7b98;
    margin-top: 4px;
}

.quick-action-grid {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.quick-action-grid a {
    padding: 16px;
    border-radius: 18px;
    text-decoration: none;
    color: #172957;
    font-weight: 900;
    background: linear-gradient(180deg, #f7faff, #eef4ff);
    border: 1px solid #dfe8f8;
    transition: transform .18s ease, box-shadow .18s ease;
}

.quick-action-grid a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(31,52,95,.10);
}

.admin-body table {
    background: rgba(255,255,255,.94);
}

.admin-body .card,
.admin-body .table-wrap {
    box-shadow: 0 22px 60px rgba(31,52,95,.10);
}

.admin-body .form-grid {
    gap: 18px;
}

@media (max-width: 1100px) {
    .admin-shell-final {
        grid-template-columns: 1fr;
    }
    .admin-sidebar-final {
        position: static;
        height: auto;
    }
    .admin-dashboard-grid,
    .admin-two-columns,
    .journey-steps {
        grid-template-columns: 1fr;
    }
    .admin-main-final {
        padding: 18px;
    }
}

@media (max-width: 760px) {
    .admin-top-final {
        flex-direction: column;
        align-items: flex-start;
    }
}
