:root {
    color-scheme: light;
    --bg: #eef2f5;
    --surface: #fff;
    --ink: #13231c;
    --muted: #66716a;
    --line: #dbe5df;
    --green: #13734d;
    --green-dark: #0a4437;
    --green-soft: #e7f5ed;
    --blue: #215f8f;
    --blue-soft: #e7f1f8;
    --red: #b42318;
    --red-soft: #fde8e5;
    --amber: #a05a00;
    --amber-soft: #fff2d4;
    --violet: #5b4b8a;
    --violet-soft: #eeeaf8;
    --shadow: 0 18px 45px rgba(21,33,27,.10);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(115deg, rgba(19,115,77,.10), transparent 36%),
        linear-gradient(245deg, rgba(33,95,143,.11), transparent 34%),
        linear-gradient(180deg, #f5f7fb 0, #eef3f1 460px, #f7faf8 100%),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.app-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 38px;
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    margin-bottom: 10px;
    padding: 8px 2px;
}
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #13231c;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
}
.brand-lockup strong,
.brand-lockup small {
    display: block;
    line-height: 1.15;
}
.brand-lockup strong {
    font-size: 16px;
    font-weight: 950;
}
.brand-lockup small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.top-actions { display: flex; align-items: center; gap: 10px; }
.sale-chip, .pill {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid rgba(160,90,0,.16);
    border-radius: 999px;
    background: var(--amber-soft);
    color: var(--amber);
    font-size: 13px;
    font-weight: 850;
}
.sale-chip.open, .pill.paid {
    border-color: rgba(19,115,77,.18);
    background: var(--green-soft);
    color: var(--green);
}
.pill.failed, .pill.expired { background: var(--red-soft); color: var(--red); }
.hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(360px,1.1fr);
    align-items: center;
    gap: 26px;
    min-height: 292px;
    margin: 0 0 22px;
    border-radius: 24px;
    padding: 32px;
    color: #fff;
    background: linear-gradient(135deg, #0b493a, #173647 58%, #215f8f), #0b553d;
    box-shadow: 0 20px 52px rgba(21,33,27,.16);
    overflow: hidden;
}
.hero-panel.is-before {
    background: linear-gradient(135deg, #123c69, #215f8f 58%, #2b7aa6), #215f8f;
}
.hero-panel.is-ended {
    background: linear-gradient(135deg, #3d1212, #6f1d1d 56%, #9f2d20), #6f1d1d;
}
.hero-panel::after {
    content: "";
    position: absolute;
    right: -74px;
    top: -118px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
}
.hero-copy, .hero-visual, .hero-media { position: relative; z-index: 1; }
.hero-copy { align-self: center; }
.hero-copy h1 {
    max-width: 760px;
    margin: 0 0 8px;
    font-size: 64px;
    line-height: .95;
    letter-spacing: 0;
}
.hero-subtitle {
    max-width: 620px;
    margin: 0 0 22px;
    color: rgba(255,255,255,.74);
    font-size: 15px;
    font-weight: 550;
    line-height: 1.45;
}
.hero-alert {
    margin: -8px 0 18px;
    color: #ffe3e0;
    font-size: 19px;
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: 0;
    animation: closedCounterBlink 1.05s ease-in-out infinite;
}
.hero-alert[hidden] {
    display: none;
}
.hero-panel.is-ended .hero-stats div {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.10);
}
.hero-panel.is-before .hero-stats div {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.10);
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,150px));
    gap: 12px;
}
.hero-stats div {
    min-height: 78px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255,255,255,.11);
    backdrop-filter: blur(12px);
}
.hero-stats span {
    display: block;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}
.hero-stats strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 24px;
}
.hero-sale-period {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    width: fit-content;
    max-width: 100%;
    margin: 14px 0 0;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 16px;
    padding: 10px 13px 10px 10px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255,255,255,.19), rgba(255,255,255,.08)),
        rgba(9,47,41,.18);
    box-shadow: 0 14px 32px rgba(0,0,0,.14);
    backdrop-filter: blur(12px);
}
.hero-sale-icon {
    position: relative;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.36);
    border-radius: 13px;
    background: rgba(255,255,255,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.hero-sale-icon::before,
.hero-sale-icon::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    border-radius: 4px;
}
.hero-sale-icon::before {
    top: 9px;
    height: 5px;
    background: #bfdbfe;
}
.hero-sale-icon::after {
    top: 17px;
    height: 12px;
    border: 2px solid rgba(255,255,255,.78);
    border-top: 0;
}
.hero-sale-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.hero-sale-copy small {
    color: rgba(255,255,255,.70);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}
.hero-sale-copy strong {
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.28;
}
.hero-sale-period[hidden] {
    display: none;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.hero-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
    padding: 0 16px;
    color: #fff;
    background: rgba(255,255,255,.12);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}
.hero-secondary-link:hover {
    background: rgba(255,255,255,.18);
}
.hero-media {
    display: block;
    justify-self: end;
    width: min(100%, 540px);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 20px;
    padding: 8px;
    background: rgba(255,255,255,.12);
    box-shadow: 0 22px 46px rgba(0,0,0,.20);
}
.hero-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 14px;
    object-fit: contain;
    background: rgba(255,255,255,.08);
}
.booking-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    margin: -4px 0 18px;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255,255,255,.82);
    color: var(--muted);
    box-shadow: 0 8px 20px rgba(21,33,27,.05);
}
.step-item span {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef3ef;
    color: var(--green);
    font-size: 12px;
    font-weight: 950;
}
.step-item strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.step-item.is-active {
    border-color: rgba(19,115,77,.28);
    background: #f3fbf6;
    color: var(--ink);
}
.step-item.is-active span {
    background: var(--green);
    color: #fff;
}
.closed-counter-panel {
    display: grid;
    grid-template-columns: minmax(0,.85fr) minmax(320px,1.15fr);
    align-items: center;
    gap: 24px;
    margin: -4px 0 22px;
    border: 1px solid rgba(207,219,212,.95);
    border-radius: 18px;
    padding: 22px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 14px 34px rgba(21,33,27,.08);
    overflow: hidden;
}
.closed-counter-panel[hidden] {
    display: none;
}
.closed-counter-copy h2 {
    margin: 0;
    color: #d72424;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.12;
    animation: closedCounterBlink 1.05s ease-in-out infinite;
}
@keyframes closedCounterBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}
.closed-counter-copy .section-kicker {
    font-size: 15px;
}
.closed-counter-copy p {
    max-width: 440px;
    margin: 10px 0 0;
    color: #1265d8;
    font-size: 14px;
    font-weight: 950;
    animation: closedCounterBlink 1.05s ease-in-out infinite;
}
.closed-counter-panel img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 14px;
    object-fit: contain;
    background: #fff9ef;
    box-shadow: 0 14px 30px rgba(21,33,27,.10);
}
.layout {
    display: grid;
    grid-template-columns: minmax(320px,400px) minmax(0,1fr);
    gap: 22px;
    align-items: start;
}
.layout > * { min-width: 0; }
.trip-panel, .seat-panel, .checkout-panel, .status-panel, .ticket {
    border: 1px solid rgba(207,219,212,.95);
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 14px 34px rgba(21,33,27,.08);
}
.trip-panel, .seat-panel { overflow: hidden; }
.trip-panel::before, .seat-panel::before {
    content: "";
    display: block;
    height: 5px;
    margin: -18px -18px 16px;
    background: linear-gradient(90deg, var(--green), var(--blue));
}
.layout.is-readonly-seat-map .trip-panel::before,
.layout.is-readonly-seat-map .seat-panel::before {
    background: linear-gradient(90deg, var(--red), var(--amber));
}
.trip-panel {
    position: sticky;
    top: 16px;
    padding: 20px;
}
.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
h1, h2, p { margin-top: 0; }
h2 { margin-bottom: 0; font-size: 25px; line-height: 1.12; }
p { line-height: 1.55; }
.section-kicker {
    display: inline-flex;
    margin-bottom: 9px;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}
.filters { margin-bottom: 14px; }
label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 850;
}
label span, .form-note, .muted, .seat-summary span, .checkout-head span, .status-grid span, .ticket span {
    color: var(--muted);
}
select, input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px 13px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(21,33,27,.03);
}
.uppercase-input {
    text-transform: uppercase;
}
input[readonly] {
    background: #f4f7f5;
    color: var(--muted);
    cursor: default;
}
select:focus, input:focus {
    outline: 4px solid rgba(33,95,143,.14);
    border-color: var(--blue);
}
.trip-list {
    display: grid;
    gap: 12px;
    min-height: 220px;
    overflow: visible;
    padding: 2px 3px 2px 0;
}
.trip-card {
    width: 100%;
    min-height: 112px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.trip-card:hover, .trip-card.active {
    border-color: rgba(33,95,143,.38);
    box-shadow: 0 12px 28px rgba(33,95,143,.12);
    transform: translateY(-1px);
}
.trip-card.active { background: linear-gradient(135deg, #e0f2fe, #fff 66%); border-color: rgba(33,95,143,.48); }
.trip-card:disabled { cursor: not-allowed; opacity: .60; transform: none; box-shadow: none; }
.trip-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.trip-card strong { display: block; font-size: 17px; line-height: 1.18; }
.trip-card em {
    flex: none;
    color: var(--green);
    font-style: normal;
    font-weight: 900;
}
.trip-card-side {
    display: grid;
    justify-items: end;
    gap: 7px;
    flex: none;
}
.availability-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 10px;
    padding: 5px 9px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
}
.availability-pill.loading {
    background: #eef3ef;
    color: var(--muted);
}
.availability-pill.soldout {
    background: var(--red-soft);
    color: var(--red);
}
.trip-card small {
    display: block;
    margin: 7px 0 10px;
    color: var(--muted);
    line-height: 1.35;
}
.trip-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; }
.trip-meta span {
    padding: 5px 8px;
    border-radius: 9px;
    background: #eef3ef;
    font-weight: 800;
}
.empty-state {
    display: grid;
    place-items: center;
    min-height: 230px;
    border: 1px dashed #c8d6ce;
    border-radius: 18px;
    padding: 24px;
    background: linear-gradient(180deg, #fff, #f8faf7);
    text-align: center;
}
.empty-state::before {
    content: "";
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--green-soft), var(--blue-soft));
}
.empty-state strong { font-size: 18px; }
.empty-state span {
    display: block;
    max-width: 260px;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.45;
}
.seat-panel { min-height: 650px; padding: 20px; }
.seat-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}
.seat-summary p { margin: 8px 0 0; color: var(--muted); }
.seat-layout-notice {
    margin: 0 0 14px;
    border: 1px solid rgba(180,35,24,.18);
    border-radius: 12px;
    padding: 9px 11px;
    background: var(--red-soft);
    color: var(--red);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.35;
    animation: seatNoticeBlink 1.05s steps(2, start) infinite;
}
@keyframes seatNoticeBlink {
    50% { opacity: .25; }
}
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; font-size: 12px; }
.legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 10px;
    background: #f1f5f2;
    color: var(--muted);
    font-weight: 800;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.available { background: var(--green); }
.dot.held { background: var(--amber); }
.dot.sold { background: var(--red); }

@media (max-width: 560px) {
    .hero-sale-period {
        width: 100%;
        border-radius: 14px;
    }
    .hero-sale-copy strong {
        font-size: 12px;
    }
}
