:root {
  --bg: #f8f7f4;
  --card: rgba(255, 255, 255, 0.94);
  --card-strong: #ffffff;
  --line: rgba(52, 61, 72, 0.12);
  --text: #1f2a37;
  --muted: #6b7280;
  --accent: #9a6a3a;
  --accent-strong: #7a4f28;
  --accent-soft: #f2e3d5;
  --danger: #9d3c2a;
  --shadow: 0 10px 24px rgba(41, 52, 67, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fcfcfb 0%, #f6f7f9 100%);
}

body.modal-open {
  overflow: hidden;
}

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

.shell {
  width: calc(100vw - 10px);
  margin: 0 0 0 6px;
  padding: 0 0 24px;
}

.top-fixed-shell {
  display: block;
}

.utility-bar {
  display: none;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 10px 0 0;
  margin-bottom: -2px;
}

body.app-active .top-fixed-shell {
  position: fixed;
  top: 2px;
  left: 254px;
  right: 10px;
  display: grid;
  grid-template-columns: 1fr minmax(430px, 720px) auto;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 8px 14px;
  border: 1px solid rgba(111, 67, 28, 0.12);
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.86);
  box-shadow: 0 12px 28px rgba(41, 52, 67, 0.1);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  overflow: hidden;
  z-index: 42;
}

body.app-active .utility-bar {
  display: flex;
  position: static;
  grid-column: 3;
  justify-self: end;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 40;
}

.utility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.9);
  color: var(--accent-strong);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.utility-icon-btn {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.utility-message-btn {
  position: relative;
}

.utility-message-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #b5422d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.utility-icon-btn svg {
  width: 24px;
  height: 24px;
}

.hero-card,
.content-panel,
.modal-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-card,
.modal-card {
  backdrop-filter: blur(18px);
}

.content-panel {
  background: rgba(255, 255, 255, 0.98);
}

.hero-card {
  width: min(440px, calc(100vw - 36px));
  margin: 48px auto 0;
  display: grid;
  gap: 12px;
  padding: 8px 14px 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.app-active .hero-card {
  position: static;
  grid-column: 2;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 35;
}

body.app-active .hero-card .brand-lockup.centered {
  transform: translate(-12px, 3px);
  gap: 12px;
  align-items: center;
}

body.app-active .hero-card .brand-mark.large {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

body.app-active .hero-card .brand-name.giant {
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 0.9;
}

body.app-active .hero-card .brand-subtitle {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.brand-lockup,
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup {
  margin-bottom: 18px;
}

.brand-lockup.centered {
  justify-content: center;
  text-align: left;
  margin-bottom: 0;
  gap: 10px;
  align-items: flex-start;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #7e522d 0%, #c79a6c 100%);
  color: #fff8ef;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 30px rgba(111, 67, 28, 0.18);
}

.image-mark {
  overflow: hidden;
  background: #fff8ef;
  padding: 8px;
}

.image-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.protected-asset {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

.brand-mark.small {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 18px;
}

.brand-mark.large {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.brand-name,
.brand-subtitle {
  margin: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-name.giant {
  font-size: clamp(20px, 4vw, 28px);
  line-height: 0.96;
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-top: -14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h2,
h3,
p {
  margin-top: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.badge-class-econom {
  background: linear-gradient(135deg, rgba(249, 250, 252, 0.98) 0%, rgba(240, 244, 248, 0.98) 100%);
  color: #5f6f82;
  border: 1px solid rgba(160, 173, 189, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.badge-class-business {
  background: linear-gradient(135deg, rgba(255, 252, 244, 0.98) 0%, rgba(255, 247, 224, 0.98) 100%);
  color: #9a6a09;
  border: 1px solid rgba(212, 172, 71, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 6px 14px rgba(212, 172, 71, 0.14);
}

.status-badge.status-hold {
  background: rgba(226, 177, 61, 0.18);
  color: #8a5a00;
}

.status-badge.status-confirmed {
  background: rgba(76, 175, 80, 0.16);
  color: #1f7a31;
}

.status-badge.status-partial {
  background: rgba(255, 193, 7, 0.18);
  color: #8f6300;
}

.status-badge.status-cancelled {
  background: rgba(214, 89, 89, 0.14);
  color: #a53535;
}

.login-panel,
.topbar,
.filter-row,
.flight-card,
.booking-card,
.admin-form {
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.login-panel {
  padding: 20px 22px;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(80, 53, 25, 0.14);
}

.panel-head p,
.section-note,
.meta,
.demo-box,
.message,
label span {
  color: var(--muted);
}

.stack,
.booking-form {
  display: grid;
  gap: 12px;
}

.panel-head {
  text-align: center;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 4vw, 30px);
}

.panel-head p {
  font-size: 14px;
}

label {
  display: grid;
  gap: 6px;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  cursor: pointer;
  user-select: none;
}

.remember-me input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent-strong);
}

.remember-me span {
  color: var(--text);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fffdf9;
  color: var(--text);
}

input[data-passenger-field="firstName"],
input[data-passenger-field="lastName"],
input[data-passenger-field="passportNumber"] {
  text-transform: uppercase;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(139, 94, 52, 0.18);
  border-color: rgba(139, 94, 52, 0.3);
}

.primary-btn,
.ghost-btn,
.danger-btn,
.icon-btn {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.primary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent) 0%, #b28156 100%);
  color: #fff;
  font-weight: 800;
}

.ghost-btn {
  padding: 12px 16px;
  background: #fffdf9;
  color: var(--accent-strong);
  border: 1px solid rgba(111, 67, 28, 0.18);
  font-weight: 700;
}

.danger-btn {
  padding: 12px 16px;
  background: rgba(157, 60, 42, 0.12);
  color: var(--danger);
  font-weight: 800;
}

.icon-btn {
  width: 42px;
  height: 42px;
  background: rgba(111, 67, 28, 0.08);
  color: var(--accent-strong);
  font-size: 24px;
}

.demo-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(234, 218, 196, 0.6);
  font-size: 12px;
}

.file-hint {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 248, 239, 0.9);
  color: var(--muted);
  font-size: 13px;
}

.full-width-btn {
  width: 100%;
  margin-top: 10px;
}

.divider-line {
  position: relative;
  margin: 18px 0 2px;
  text-align: center;
}

.divider-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}

.divider-line span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: var(--card-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hidden {
  display: none !important;
}

.app {
  margin-top: 2px;
}

body.app-active .app {
  margin-top: 108px;
}

.content-grid {
  display: grid;
  min-width: 0;
  grid-column: 2;
}

.content-panel {
  padding: 18px;
}

.app-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 6px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.78);
  width: 240px;
  height: calc(100vh - 16px);
  min-height: 0;
  margin: 0;
  position: fixed;
  top: 2px;
  left: 0;
  align-self: start;
  overflow-y: auto;
  box-shadow: 0 18px 42px rgba(41, 52, 67, 0.12);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  z-index: 20;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand h2 {
  margin: 0;
  font-size: 18px;
}

.sidebar-subtext {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.sidebar-link,
.sidebar-logout {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.sidebar-link-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sidebar-link-with-logo > span:last-child {
  min-width: 0;
  line-height: 1.25;
  white-space: normal;
}

.sidebar-link-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-link-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.sidebar-logout .sidebar-link-logo {
  width: 16px;
  height: 16px;
}

.sidebar-link:hover,
.sidebar-logout:hover {
  background: rgba(234, 218, 196, 0.5);
}

.sidebar-link.active {
  background: rgba(139, 94, 52, 0.12);
  color: var(--accent-strong);
  font-weight: 800;
}

.sidebar-bottom-actions {
  margin-top: auto;
  display: grid;
  gap: 6px;
}

.sidebar-support {
  margin-bottom: 0;
}

.sidebar-logout {
  margin-top: 0;
  color: var(--danger);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.search-shell {
  --search-control-height: 48px;
  --search-control-font: 14px;
  --search-label-font: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(190px, 1.25fr) minmax(96px, 0.58fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.92);
  box-shadow: 0 12px 26px rgba(41, 52, 67, 0.05);
}

.booking-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 250px) 190px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 20px;
  background: rgba(255, 248, 239, 0.56);
}

.booking-search-field {
  display: grid;
  gap: 5px;
}

.booking-search-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.booking-search-field input {
  min-height: 42px;
  height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
}

.booking-search-bar .search-btn {
  min-height: 42px;
  height: 42px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
}

.search-btn {
  width: calc(100% - 36px);
  margin-left: 36px;
  min-height: var(--search-control-height);
  height: var(--search-control-height);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.search-shell.roundtrip-search .search-btn {
  width: 100%;
  margin-left: 0;
}

.return-date-wrap {
  min-width: 0;
}

.airport-field,
.date-field,
.trip-field,
.passenger-field {
  position: relative;
  min-width: 0;
}

.search-shell label > span {
  display: block;
  min-height: 16px;
  font-size: var(--search-label-font);
  line-height: 1.2;
  font-weight: 600;
}

.airport-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  min-height: var(--search-control-height);
  height: var(--search-control-height);
  min-width: 0;
  overflow: hidden;
}

.trip-code {
  min-width: 36px;
}

.airport-trigger span {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  font-size: var(--search-control-font);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tripTypeFilterBtn,
#tripTypeLabel {
  min-width: 0;
}

.airport-code {
  min-width: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(139, 94, 52, 0.12);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.airport-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 32;
  width: 128px;
  min-width: 128px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf2;
  box-shadow: 0 18px 45px rgba(80, 53, 25, 0.16);
}

.airport-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}

.airport-option:hover {
  background: rgba(234, 218, 196, 0.45);
}

.trip-option.active {
  background: rgba(234, 218, 196, 0.45);
}

#tripTypePopover {
  width: 100%;
  min-width: 100%;
}

.passenger-popover {
  width: 100%;
  min-width: 100%;
  padding: 10px;
}

.passenger-popover-row {
  display: grid;
  gap: 6px;
}

.passenger-popover-row + .passenger-popover-row {
  margin-top: 10px;
}

.passenger-field {
  min-width: 190px;
}

#passengerFilterLabel {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.airport-option-code {
  min-width: 32px;
  padding: 5px 6px;
  border-radius: 8px;
  background: rgba(139, 94, 52, 0.12);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.date-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--search-control-height);
  height: var(--search-control-height);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

#dateFilterBtn,
#returnDateFilterBtn {
  width: 100%;
  min-height: var(--search-control-height);
}

.passenger-popover #adultCount,
.passenger-popover #infantCount {
  min-height: var(--search-control-height);
  height: var(--search-control-height);
  padding: 0 14px;
  font-size: var(--search-control-font);
  font-weight: 600;
}

.date-trigger span {
  display: block;
  width: 100%;
  font-size: var(--search-control-font);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 290px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf2;
  box-shadow: 0 18px 45px rgba(80, 53, 25, 0.16);
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-head strong {
  font-size: 14px;
}

.calendar-nav {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.calendar-grid,
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

.calendar-day.available {
  background: rgba(62, 136, 255, 0.18);
  color: #0d5cd4;
}

.calendar-day.limited {
  background: rgba(226, 177, 61, 0.28);
  color: #8a5a00;
}

.calendar-day.unavailable {
  background: rgba(214, 89, 89, 0.18);
  color: #a53535;
}

.calendar-day.past {
  background: rgba(107, 114, 128, 0.12);
  color: #98a1ad;
  border-color: rgba(107, 114, 128, 0.08);
}

.calendar-day:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.calendar-day.today {
  border-color: rgba(139, 94, 52, 0.36);
  box-shadow: inset 0 0 0 1px rgba(139, 94, 52, 0.16);
  font-weight: 800;
}

.calendar-day.selected {
  border-color: rgba(111, 67, 28, 0.28);
  box-shadow: inset 0 0 0 1px rgba(111, 67, 28, 0.18);
}

.calendar-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.calendar-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-blue {
  background: rgba(62, 136, 255, 0.45);
}

.legend-yellow {
  background: rgba(226, 177, 61, 0.5);
}

.legend-red {
  background: rgba(214, 89, 89, 0.45);
}

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

.results-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fffdf9;
  border: 1px solid var(--line);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.flight-grid,
.booking-list,
.announcement-grid {
  display: grid;
  gap: 12px;
}

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

.announcement-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roundtrip-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.flight-card,
.booking-card,
.announcement-card {
  padding: 10px 12px;
  contain: layout paint;
  content-visibility: auto;
  contain-intrinsic-size: 220px;
}

.flight-card-compact {
  padding: 10px;
  background: rgba(255, 248, 239, 0.5);
}

.flight-card-urgent {
  border-color: rgba(181, 66, 45, 0.28);
  background: linear-gradient(180deg, #fff7f5 0%, rgba(255, 236, 231, 0.94) 100%);
  box-shadow: 0 8px 20px rgba(181, 66, 45, 0.1);
}

.flight-card h4,
.booking-card h4,
.announcement-card h4 {
  margin-bottom: 6px;
  font-size: 15px;
}

.flight-meta,
.booking-meta,
.announcement-meta {
  display: grid;
  gap: 2px;
  margin: 6px 0 8px;
}

.announcement-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf9 0%, rgba(255, 248, 239, 0.92) 100%);
}

.support-layout {
  display: grid;
  gap: 16px;
}

.support-hero-card,
.support-contact-card {
  background: linear-gradient(180deg, #fffdf9 0%, rgba(255, 248, 239, 0.94) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.support-hero-card {
  padding: 18px 20px;
}

.support-hero-card h4 {
  margin: 10px 0 8px;
  font-size: 24px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-contact-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.support-contact-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.support-contact-top h4 {
  margin: 4px 0 0;
  font-size: 22px;
}

.support-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(139, 94, 52, 0.1);
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 800;
}

.support-contact-icon-telegram {
  background: rgba(139, 94, 52, 0.1);
  color: var(--accent-strong);
}

.support-contact-icon-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.support-contact-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.support-contact-card .full-width-btn {
  justify-content: center;
  text-decoration: none;
}

.support-contact-card .ghost-btn.full-width-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #b28156 100%);
  color: #fff;
  border: 0;
}

.announcement-card-urgent {
  border-color: rgba(181, 66, 45, 0.28);
  background: linear-gradient(180deg, #fff7f5 0%, rgba(255, 236, 231, 0.94) 100%);
  box-shadow: 0 8px 20px rgba(181, 66, 45, 0.1);
}

.announcement-alert {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(181, 66, 45, 0.14) 0%, rgba(214, 89, 89, 0.22) 100%);
  color: #982f22;
  border: 0;
}

.announcement-alert strong {
  font-size: 12px;
  font-weight: 800;
}

.announcement-alert span {
  font-size: 11px;
  font-weight: 700;
}

.announcement-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.announcement-airline-block {
  display: grid;
  gap: 6px;
}

.flight-card footer,
.booking-card footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.admin-booking-actions {
  justify-content: flex-start !important;
}

.admin-booking-meta span {
  line-height: 1.45;
}

.detail-link {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: 28px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 13px;
  text-align: right;
  font-weight: 700;
  cursor: pointer;
}

.flight-details {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(111, 67, 28, 0.16);
}

.price {
  font-size: 18px;
  font-weight: 800;
}

.muted-box {
  padding: 14px;
  border-radius: 16px;
  background: rgba(234, 218, 196, 0.5);
  color: var(--muted);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.full {
  grid-column: 1 / -1;
}

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

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start center;
  background: rgba(36, 24, 15, 0.45);
  padding: 24px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 120;
}

.modal-card {
  width: min(720px, 100%);
  padding: 22px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#bookingModal .modal-card {
  width: min(920px, 100%);
}

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

.booking-form .full {
  grid-column: 1 / -1;
}

.passenger-fields {
  display: grid;
  gap: 12px;
  max-height: min(54vh, 620px);
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.booking-review {
  display: grid;
  gap: 14px;
}

.booking-review-head h4 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.booking-review-summary,
.booking-review-passengers {
  display: grid;
  gap: 12px;
}

.booking-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.booking-review-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(111, 67, 28, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.booking-review-card-wide {
  grid-column: span 1;
}

.booking-review-card-title {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-review-segments {
  display: grid;
  gap: 10px;
}

.booking-review-segment {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(242, 227, 213, 0.42);
}

.booking-review-item,
.booking-review-segment > div {
  display: grid;
  gap: 4px;
}

.booking-review-item span,
.booking-review-segment span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-review-item strong,
.booking-review-segment strong {
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

.booking-review-passenger-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(111, 67, 28, 0.12);
  border-radius: 18px;
  background: rgba(255, 248, 239, 0.74);
}

.booking-review-passenger-title {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.booking-review-passenger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}

.booking-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.passenger-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 248, 239, 0.62);
}

.passenger-card-head {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.passenger-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.invoice-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(234, 218, 196, 0.4);
  border: 1px dashed rgba(111, 67, 28, 0.2);
}

.registration-badge.status-new {
  background: rgba(62, 136, 255, 0.16);
  color: #0d5cd4;
}

.registration-badge.status-approved {
  background: rgba(76, 175, 80, 0.16);
  color: #1f7a31;
}

.registration-badge.status-rejected {
  background: rgba(214, 89, 89, 0.14);
  color: #a53535;
}

.registrations-head {
  margin-top: 26px;
}

.invoice-box pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--text);
}

.registration-review-meta {
  margin-top: 10px;
}

.registration-actions {
  justify-content: flex-start !important;
}

.credentials-box {
  display: grid;
  gap: 12px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.credential-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(111, 67, 28, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.credential-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-item strong {
  font-size: 16px;
  line-height: 1.35;
  word-break: break-all;
}

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

.booking-passenger-box {
  display: grid;
  gap: 12px;
}

.invoice-section-title {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-passenger-list {
  display: grid;
  gap: 10px;
}

.invoice-passenger-card {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(111, 67, 28, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.invoice-passenger-title {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.invoice-passenger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.invoice-passenger-field {
  display: grid;
  gap: 4px;
}

.invoice-passenger-field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-passenger-field strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

.invoice-admin-panel {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.invoice-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.invoice-admin-actions-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.message-modal-card {
  width: min(640px, 100%);
}

.message-compose-card {
  width: min(560px, 100%);
}

.message-list {
  display: grid;
  gap: 10px;
}

.message-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(111, 67, 28, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.message-card-unread {
  border-color: rgba(181, 66, 45, 0.22);
  background: rgba(255, 244, 239, 0.92);
}

.message-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.message-card-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.message-card-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.flight-card-top {
  display: grid;
  grid-template-columns: 112px 1fr 88px;
  column-gap: 8px;
  row-gap: 10px;
  align-items: flex-start;
}

.flight-card-top > div:first-child {
  display: grid;
  grid-column: 1 / 3;
  grid-template-columns: 112px 1fr;
  column-gap: 8px;
}

.flight-card-top h4 {
  grid-column: 1;
  justify-self: start;
  margin: 0;
}

.flight-brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: 1 / 3;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.airline-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 38px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(255, 248, 239, 0.92);
  border: 1px solid var(--line);
  color: var(--accent-strong);
  overflow: hidden;
}

.airline-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  transform: scale(1.22);
  transform-origin: center;
}

.airline-chip-air-samarkand .airline-logo {
  transform: scale(2.35);
}

.airline-chip-air-samarkand {
  overflow: hidden;
}

.airline-chip-uzbekistan-airways .airline-logo {
  transform: scale(2.15);
}

.airline-chip-centrum-air .airline-logo {
  transform: scale(1.85);
}

.airline-chip-flykhiva .airline-logo {
  transform: scale(2.25);
}

.airline-chip-flyone .airline-logo {
  transform: scale(2.05);
}

.airline-chip-qanot-sharq .airline-logo {
  transform: scale(2.3);
}

.airline-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d9a441;
  box-shadow: 10px 0 0 #5f9a43;
  margin-right: 10px;
}

.price-block {
  display: grid;
  gap: 2px;
  grid-column: 3;
  grid-row: 1 / span 2;
  text-align: right;
}

.announcement-price-block {
  display: grid;
  gap: 2px;
  text-align: right;
}

.price-market {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability-warning {
  color: var(--danger);
  font-weight: 700;
}

.flight-card-unavailable {
  opacity: 0.72;
}

.timeline-row {
  display: grid;
  grid-template-columns: 112px 1fr 88px;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.time-box {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 62px;
}

.timeline-row > .time-box:first-child {
  justify-self: start;
  padding-left: 32px;
}

.time-box strong {
  font-size: 22px;
  line-height: 1;
}

.time-box span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.align-right {
  text-align: left;
  justify-self: start;
  align-self: start;
  padding-left: 0;
  padding-right: 0;
  transform: translateX(-110px);
}

.timeline-line {
  position: relative;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
}

.timeline-line span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(139, 94, 52, 0.22) 0%, rgba(139, 94, 52, 0.42) 100%);
  margin-bottom: 8px;
  width: calc(100% - 110px);
}

.empty-state {
  padding: 30px 20px;
  border-radius: 24px;
  background: rgba(255, 248, 239, 0.8);
  border: 1px dashed rgba(111, 67, 28, 0.18);
  text-align: center;
}

.empty-state h4 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.empty-state-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(234, 218, 196, 0.8);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.segment-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(139, 94, 52, 0.1);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 12px 20px;
  }

  .app-layout,
  .booking-form,
  .admin-form,
  .booking-review-grid,
  .booking-review-segment,
  .booking-review-passenger-grid,
  .credentials-grid,
  .passenger-card-grid,
  .invoice-passenger-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .content-panel {
    padding: 16px;
    border-radius: 24px;
  }

  .results-toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .search-shell {
    grid-template-columns: 1fr 1fr;
  }

  .search-btn {
    width: 100%;
    margin-left: 0;
  }

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

  .booking-review-actions {
    flex-direction: column-reverse;
  }

  .timeline-row {
    grid-template-columns: 1fr;
  }

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

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

  .align-right,
  .price-block {
    text-align: left;
  }

  .align-right {
    transform: none;
  }

  .sidebar {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    margin: 0;
    padding: 10px 12px 12px;
    min-height: auto;
  }

  .sidebar-link,
  .sidebar-logout {
    width: 100%;
  }

  .content-grid {
    grid-column: auto;
  }

  body.app-active .top-fixed-shell {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }

  body.app-active .utility-bar,
  body.app-active .hero-card {
    position: static;
    right: auto;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    transform: none;
  }

  body.app-active .utility-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0;
  }

  body.app-active .hero-card .brand-lockup.centered {
    transform: none;
  }

  body.app-active .app {
    margin-top: 2px;
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 0 10px 18px;
  }

  .hero-card {
    width: 100%;
    margin-top: 28px;
    padding: 0;
  }

  .login-panel {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .brand-name.giant {
    font-size: clamp(19px, 7vw, 28px);
  }

  .content-panel {
    padding: 14px;
    border-radius: 20px;
  }

  .search-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .passenger-field {
    min-width: 0;
  }

  .airport-popover,
  #tripTypePopover,
  .passenger-popover,
  .calendar-popover {
    width: 100%;
    min-width: 0;
    max-width: calc(100vw - 20px);
  }

  .results-toolbar {
    gap: 8px;
  }

  .results-chip {
    max-width: 100%;
  }

  .flight-card,
  .booking-card,
  .announcement-card {
    padding: 12px;
  }

  .flight-card-top,
  .flight-card-top > div:first-child {
    grid-template-columns: 1fr;
  }

  .flight-card-top > div:first-child {
    grid-column: auto;
  }

  .price-block {
    grid-column: auto;
    grid-row: auto;
    gap: 4px;
    text-align: left;
  }

  .timeline-row {
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .timeline-row > .time-box:first-child {
    padding-left: 0;
  }

  .time-box {
    min-height: 0;
  }

  .time-box strong {
    font-size: 20px;
  }

  .align-right {
    justify-self: end;
    text-align: right;
  }

  .timeline-line {
    align-self: center;
    padding-top: 4px;
  }

  .timeline-line span {
    width: 100%;
    margin-bottom: 6px;
  }

  .timeline-line small {
    display: block;
    white-space: nowrap;
    font-size: 9px;
  }

  .announcement-head,
  .message-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .announcement-price-block {
    text-align: left;
  }

  .detail-link {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .support-hero-card,
  .support-contact-card {
    padding: 16px;
  }

  .support-contact-top {
    align-items: flex-start;
  }

  .support-contact-top h4 {
    font-size: 18px;
  }

  .modal {
    padding: 8px 8px 0;
    place-items: end center;
  }

  .modal-card,
  #bookingModal .modal-card,
  .message-modal-card,
  .message-compose-card {
    width: 100%;
    max-height: calc(100dvh - 8px);
    padding: 16px;
    border-radius: 22px 22px 0 0;
  }

  .passenger-fields {
    max-height: none;
    padding-right: 0;
  }

  .form-actions,
  .table-actions,
  .booking-review-actions,
  .credential-actions,
  .invoice-admin-actions,
  .invoice-admin-actions-right {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .shell {
    padding-inline: 8px;
  }

  .auth-brand {
    margin-top: -8px;
  }

  .brand-mark.large {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .panel-head h2 {
    font-size: clamp(20px, 8vw, 26px);
  }

  body.app-active .utility-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .utility-btn {
    width: 100%;
    justify-content: center;
  }

  .utility-icon-btn {
    width: 100%;
    min-width: 0;
  }

  .sidebar-brand {
    align-items: flex-start;
  }

  .sidebar-brand h2 {
    font-size: 16px;
  }

  .sidebar-subtext {
    line-height: 1.4;
    word-break: break-word;
  }

  .sidebar-nav,
  .sidebar-bottom-actions {
    gap: 8px;
  }

  .sidebar-link,
  .sidebar-logout {
    padding: 10px;
  }

  .timeline-row {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    gap: 8px;
  }

  .time-box strong {
    font-size: 18px;
  }

  .time-box span {
    font-size: 9px;
  }

  .timeline-line {
    font-size: 9px;
  }

  .support-contact-top {
    gap: 10px;
  }

  .support-contact-icon {
    width: 44px;
    height: 44px;
  }

  .calendar-popover {
    max-width: calc(100vw - 16px);
    padding: 10px;
  }

  .calendar-grid,
  .calendar-weekdays {
    gap: 4px;
  }

  .calendar-day {
    min-height: 32px;
  }
}
