:root {
  --ink: #17212b;
  --muted: #66727e;
  --line: #dfe5e9;
  --surface: #fff;
  --soft: #f4f7f8;
  --primary: #096f78;
  --primary-dark: #07575e;
  --success: #147a55;
  --danger: #b42318;
}

html {
  min-height: 100%;
  font-size: 16px;
}
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
main { flex: 1 0 auto; }
a { color: inherit; }
.container { max-width: 1180px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.navbar { min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; }
.brand-mark {
  display: block;
  position: relative;
  overflow: hidden;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 6px;
}
.logo-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  height: 180%;
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
}
.nav-link { margin: 0 8px; color: #3e4a55; font-weight: 600; }
.nav-link:hover { color: var(--primary); }
.btn { border-radius: 6px; font-weight: 700; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.dashboard-hero {
  min-height: 410px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 29, 36, .94) 0%, rgba(16, 29, 36, .76) 43%, rgba(16, 29, 36, .12) 74%),
    url("../images/airport-banner.png") center 53% / cover no-repeat;
}
.hero-content { width: 100%; }
.hero-copy { max-width: 650px; padding: 64px 0; }
.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #69bfc4;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-copy h1 { max-width: 620px; margin: 0 0 18px; font-size: 48px; line-height: 1.06; font-weight: 750; }
.hero-copy p { max-width: 580px; color: #e5edef; font-size: 18px; }
.hero-search { display: flex; max-width: 640px; margin-top: 30px; padding: 7px; background: #fff; border-radius: 7px; }
.hero-search input { min-width: 0; flex: 1; padding: 11px 14px; border: 0; outline: 0; }
.dashboard-section, .content-section { padding-top: 48px; padding-bottom: 64px; }
.section-heading, .panel-heading, .footer-inner, .flight-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
h2 { font-size: 25px; font-weight: 750; }
.section-heading h2, .panel-heading h2 { margin: 0; }
.text-link { color: var(--primary); font-weight: 750; text-decoration: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 28px; }
.stat-tile { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid #71808d; border-radius: 7px; }
.stat-tile span, .stat-tile small { display: block; color: var(--muted); }
.stat-tile strong { display: block; margin: 6px 0 3px; font-size: 32px; }
.stat-success { border-top-color: var(--success); }
.stat-warning { border-top-color: #d18816; }
.stat-danger { border-top-color: var(--danger); }
.schedule-panel { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.panel-heading { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-heading p { margin: 4px 0 0; color: var(--muted); }
.live-indicator { color: var(--success); font-size: 13px; font-weight: 700; }
.live-indicator i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; background: var(--success); border-radius: 50%; }
.flight-table { width: 100%; border-collapse: collapse; }
.flight-table th { padding: 13px 18px; color: var(--muted); background: #f8fafb; border-bottom: 1px solid var(--line); font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.flight-table td { padding: 17px 18px; border-bottom: 1px solid #e9edef; vertical-align: middle; }
.flight-table tbody tr:last-child td { border-bottom: 0; }
.flight-table tbody tr:hover { background: #f8fbfb; }
.flight-table td span:not(.status-badge) { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.time-cell { font-size: 20px; font-weight: 750; }
.status-badge { display: inline-block; padding: 6px 9px; border-radius: 5px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-scheduled { color: #116149; background: #dff5ec; }
.status-boarding { color: #075d75; background: #daf0f6; }
.status-delayed { color: #875000; background: #fff0ce; }
.status-cancelled { color: #9a241b; background: #fde5e2; }
.status-badge.large { padding: 9px 13px; font-size: 14px; }
.row-action {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 5px;
  text-decoration: none;
}
.row-action:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.page-band { padding: 48px 0 42px; color: #fff; background: #183239; }
.page-band h1 { margin: 0 0 10px; font-size: 38px; font-weight: 750; }
.page-band p { max-width: 700px; margin: 0; color: #d6e1e3; }
.image-page-band { min-height: 300px; display: flex; align-items: center; padding: 58px 0; background-position: center; background-size: cover; }
.image-page-band h1 { max-width: 760px; font-size: 44px; line-height: 1.08; }
.image-page-band p { max-width: 680px; font-size: 17px; line-height: 1.6; }
.schedule-page-band {
  background-image:
    linear-gradient(90deg, rgba(12,31,37,.96) 0%, rgba(12,31,37,.83) 38%, rgba(12,31,37,.3) 68%, rgba(12,31,37,.08) 100%),
    url("../images/schedule-hero.png");
}
.about-page-band {
  background-image:
    linear-gradient(90deg, rgba(12,29,36,.97) 0%, rgba(12,29,36,.84) 40%, rgba(12,29,36,.28) 70%, rgba(12,29,36,.08) 100%),
    url("../images/about-hero.png");
}
.compact-band { padding-bottom: 34px; }
.back-link { display: inline-block; margin-bottom: 30px; color: #bcd4d7; text-decoration: none; }
.filter-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 220px auto; gap: 16px; align-items: end; margin-bottom: 20px; }
.search-control label, .filter-control label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 750; }
.search-control input, .filter-control select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #cfd8dd;
  border-radius: 6px;
}
.results-count { display: flex; align-items: baseline; gap: 7px; min-height: 44px; padding: 8px 12px; color: var(--muted); }
.results-count strong { color: var(--ink); font-size: 22px; }
.empty-state { padding: 50px; text-align: center; }
.empty-state span { display: block; margin-top: 6px; color: var(--muted); }
.flight-detail-hero { padding: 34px 0 38px; color: #fff; background: #183239; }
.flight-detail-hero .back-link { margin-bottom: 24px; }
.flight-detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.flight-detail-heading h1 { margin: 0; font-size: 42px; font-weight: 750; }
.flight-detail-heading p { margin: 8px 0 0; color: #d6e1e3; }
.flight-number-line { display: flex; align-items: center; gap: 12px; }
.airline-code { padding: 5px 8px; color: #bfe3e5; border: 1px solid rgba(191,227,229,.4); border-radius: 5px; font-size: 12px; font-weight: 800; }
.flight-detail-page { padding-top: 28px; padding-bottom: 64px; }
.flight-detail-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(270px, .65fr); gap: 18px; align-items: start; }
.flight-detail-main { display: grid; gap: 18px; }
.route-panel, .flight-information, .flight-status-panel { background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.route-panel { padding: 26px; }
.route-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.detail-section-heading { display: block; }
.route-panel-heading h2, .detail-section-heading h2, .flight-status-panel h2 { margin: 0; }
.flight-date { color: var(--muted); font-size: 14px; font-weight: 700; }
.route-timeline { display: grid; grid-template-columns: 1fr minmax(200px, 1.8fr) 1fr; align-items: center; margin-top: 34px; }
.route-stop span, .route-stop strong, .route-stop b, .route-stop p { display: block; }
.route-label { margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.route-time { font-size: 32px; line-height: 1; }
.route-stop b { margin-top: 9px; color: var(--primary); font-size: 30px; }
.route-stop p { margin: 2px 0 0; color: var(--muted); }
.route-stop-arrival { text-align: right; }
.route-progress { color: var(--muted); text-align: center; font-size: 13px; }
.route-track { position: relative; height: 2px; margin: 16px 16px 11px; background: #a9bac0; }
.route-track::before, .route-track::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px; background: #fff; border: 2px solid var(--primary); border-radius: 50%; }
.route-track::before { left: -3px; }
.route-track::after { right: -3px; }
.route-track i { position: absolute; top: -12px; left: calc(50% - 12px); display: grid; width: 24px; height: 24px; place-items: center; color: #fff; background: var(--primary); border-radius: 50%; font-style: normal; font-size: 13px; transform: rotate(-8deg); }
.flight-information { padding: 24px; }
.flight-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.flight-info-grid article { min-width: 0; padding: 18px; background: var(--soft); border-left: 3px solid #9bb0b7; border-radius: 5px; }
.flight-info-grid span, .flight-info-grid small { display: block; color: var(--muted); }
.flight-info-grid span { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.flight-info-grid strong { display: block; overflow-wrap: anywhere; margin: 5px 0 3px; font-size: 19px; }
.flight-status-panel { position: sticky; top: 88px; padding: 24px; }
.flight-status-panel > .status-badge { margin: 16px 0 20px; }
.status-facts { margin: 0; border-top: 1px solid var(--line); }
.status-facts div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.status-facts dt { color: var(--muted); font-weight: 500; }
.status-facts dd { margin: 0; font-weight: 750; }
.status-facts .delay-fact dd { color: #875000; }
.passenger-note { margin-top: 20px; padding: 16px; background: #edf5f5; border-left: 3px solid var(--primary); border-radius: 5px; }
.passenger-note strong { display: block; margin-bottom: 5px; }
.passenger-note p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.details-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.details-grid article { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.details-grid span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.notice { display: flex; flex-direction: column; gap: 3px; margin-top: 18px; padding: 17px 20px; border-radius: 6px; }
.warning-notice { color: #704400; background: #fff0ce; border-left: 4px solid #d18816; }
.about-intro { padding: 64px 0; background: #fff; }
.about-intro-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 70px; align-items: start; }
.about-intro h2, .about-section-heading h2, .workflow-heading h2, .about-callout h2 { margin: 0; font-size: 32px; line-height: 1.2; }
.about-lead p { margin: 0 0 16px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.about-lead p:last-child { margin-bottom: 0; }
.about-audience, .about-features { padding: 60px 0 68px; }
.about-section-heading { max-width: 720px; margin-bottom: 28px; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience-grid article { min-width: 0; padding: 30px 28px; border-right: 1px solid var(--line); }
.audience-grid article:last-child { border-right: 0; }
.audience-number { display: block; margin-bottom: 24px; color: var(--primary); font-size: 13px; font-weight: 800; }
.audience-grid h3 { margin: 0 0 10px; font-size: 21px; }
.audience-grid p, .workflow-heading p, .workflow-list p, .feature-list p, .about-callout p { margin: 0; color: var(--muted); line-height: 1.65; }
.about-workflow { padding: 68px 0; color: #fff; background: #17343a; }
.about-workflow-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.workflow-heading p { margin-top: 18px; color: #cfdddf; }
.workflow-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.workflow-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.workflow-list li > span { display: grid; width: 36px; height: 36px; place-items: center; color: #17343a; background: #76c4c8; border-radius: 50%; font-size: 13px; font-weight: 800; }
.workflow-list strong { display: block; margin-bottom: 4px; }
.workflow-list p { color: #cbdadc; }
.about-features { background: #fff; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-list article { min-width: 0; min-height: 160px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-list strong { display: block; margin-bottom: 8px; font-size: 18px; }
.about-callout { padding: 48px 0; color: #fff; background: #0f292f; }
.about-callout-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.about-callout p { max-width: 680px; margin-top: 10px; color: #cbdadc; }
.about-callout-action { flex: 0 0 auto; padding: 12px 20px; color: #17343a; background: #fff; }
.about-callout-action:hover { color: #fff; background: var(--primary); }
.auth-page { padding: 46px 0 64px; background: #edf3f5; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: 24px; align-items: stretch; }
.auth-form {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.auth-form-login { align-self: stretch; }
.auth-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.auth-heading h1 { margin: 0; font-size: 32px; font-weight: 750; }
.auth-heading .eyebrow { margin-bottom: 3px; }
.auth-mark { display: block; position: relative; overflow: hidden; flex: 0 0 52px; height: 52px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.auth-mark.logo-frame img { width: 185%; height: 185%; }
.auth-intro { margin-bottom: 24px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 750;
}
.form-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd8dd;
  border-radius: 6px;
  outline: 0;
}
.form-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(9, 111, 120, .12);
}
.form-field span, .validation-summary {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
}
.form-field small { display: block; margin-top: 6px; color: var(--muted); }
.validation-summary:empty { display: none; }
.validation-summary ul { margin: 0 0 18px; padding-left: 18px; }
.remember-control { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.remember-control input { width: 18px; height: 18px; accent-color: var(--primary); }
.auth-submit { width: 100%; min-height: 46px; }
.auth-switch { margin: 18px 0 0; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--primary); font-weight: 750; }
.admin-login-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 13px;
  color: #fff;
  background: #17343a;
  border: 1px solid #17343a;
  border-radius: 6px;
  text-decoration: none;
}
.admin-login-link:hover { color: #fff; background: #9a5b00; border-color: #9a5b00; }
.admin-login-link span:last-child { min-width: 0; }
.admin-login-link strong, .admin-login-link small { display: block; }
.admin-login-link small { margin-top: 2px; color: #d5e1e3; font-size: 12px; }
.admin-auth-page { background: #e9eff1; }
.admin-auth-form { border-top: 4px solid #17343a; }
.admin-auth-benefits { background: #122b31; }
.admin-auth-submit { background: #17343a; border-color: #17343a; }
.admin-auth-submit:hover { background: var(--primary); border-color: var(--primary); }
.admin-validation-summary:not(:empty) { padding: 12px 14px; color: #8b2c23; background: #fdeae7; border-left: 4px solid var(--danger); border-radius: 5px; }
.admin-security-note { margin-top: 24px; padding: 16px; color: #d7e3e5; background: rgba(255,255,255,.06); border-left: 3px solid #69bfc4; }
.admin-security-note strong, .admin-security-note span { display: block; }
.admin-security-note span { margin-top: 4px; font-size: 13px; line-height: 1.5; }
.auth-benefits {
  padding: 42px;
  color: #fff;
  background: #17343a;
  border-radius: 7px;
}
.auth-benefits h2 { max-width: 440px; margin: 0 0 14px; font-size: 35px; line-height: 1.14; }
.auth-benefits > p { max-width: 520px; color: #d3e1e3; line-height: 1.65; }
.benefit-list { display: grid; gap: 12px; margin-top: 30px; }
.benefit-list article { display: flex; gap: 14px; padding: 17px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 7px; }
.benefit-list strong { display: block; margin-bottom: 3px; }
.benefit-list p { margin: 0; color: #cbdadc; font-size: 14px; line-height: 1.5; }
.benefit-icon { display: grid; flex: 0 0 38px; height: 38px; place-items: center; color: #fff; background: var(--primary); border-radius: 6px; font-weight: 800; }
.readonly-input { color: var(--muted); background: #edf1f3 !important; }
.profile-hero { padding: 44px 0; color: #fff; background: #17343a; }
.profile-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.profile-hero h1 { margin: 0 0 8px; font-size: 38px; font-weight: 750; }
.profile-hero p { margin: 0; color: #d3e1e3; }
.profile-primary-action { padding: 11px 20px; color: #17343a; background: #fff; font-weight: 750; }
.profile-primary-action:hover { color: #fff; background: var(--primary); }
.profile-section { padding-top: 30px; padding-bottom: 64px; }
.success-message { margin-bottom: 18px; padding: 13px 16px; color: #116149; background: #dff5ec; border-left: 4px solid var(--success); border-radius: 5px; }
.profile-summary { display: grid; grid-template-columns: .7fr 1.4fr 1fr; gap: 14px; margin-bottom: 20px; }
.profile-summary article { min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: 7px; }
.profile-summary span, .profile-summary small { display: block; color: var(--muted); }
.profile-summary strong { display: block; overflow-wrap: anywhere; margin: 5px 0; font-size: 24px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
.profile-main-panel, .profile-side-panel { background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.profile-side-panel { padding: 22px; }
.profile-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.profile-side-panel .profile-panel-heading { padding: 0 0 16px; }
.profile-panel-heading h2 { margin: 0; }
.favorites-empty { padding: 52px 24px; text-align: center; }
.favorites-empty h3 { margin: 8px 0; font-size: 21px; }
.favorites-empty p { margin: 0 auto 20px; color: var(--muted); }
.empty-star { color: #d18816; font-size: 42px; }
.profile-flight-table th, .profile-flight-table td { padding-left: 14px; padding-right: 14px; }
.profile-data { margin: 0 0 18px; }
.profile-data div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.profile-data dt { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.profile-data dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.quick-links { display: grid; gap: 8px; margin-top: 20px; }
.quick-links a { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: var(--soft); border-radius: 5px; text-decoration: none; }
.quick-links a:hover { color: var(--primary); }
.favorite-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.favorite-actions form { margin: 0; }
.bookmark-button {
  display: inline-grid;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  place-items: center;
  color: #8a6100;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-decoration: none;
  font-size: 17px;
  line-height: 1;
}
.bookmark-button:hover, .bookmark-button.active { color: #fff; background: #b97800; border-color: #b97800; }
.detail-bookmark { min-height: 36px; padding: 0 12px; color: #fff; background: transparent; border-color: rgba(255,255,255,.45); font-size: 13px; font-weight: 750; }
.flight-title-actions { display: flex; align-items: center; gap: 10px; }
.account-link { color: var(--primary); }
.admin-nav-link { color: #9a5b00; }
.admin-hero { padding: 42px 0; color: #fff; background: #17343a; }
.admin-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.admin-hero h1 { margin: 0 0 8px; font-size: 38px; font-weight: 750; }
.admin-hero p { max-width: 700px; margin: 0; color: #d3e1e3; }
.admin-primary-action { padding: 11px 18px; color: #17343a; background: #fff; }
.admin-primary-action:hover { color: #fff; background: var(--primary); }
.admin-section { padding-top: 30px; padding-bottom: 64px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.admin-stats article { padding: 19px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: 7px; }
.admin-stats span, .admin-stats small { display: block; color: var(--muted); }
.admin-stats strong { display: block; margin: 4px 0; font-size: 29px; }
.admin-stats .admin-stat-warning { border-top-color: #d18816; }
.admin-stats .admin-stat-danger { border-top-color: var(--danger); }
.admin-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.admin-panel-heading h2 { margin: 0; }
.admin-search { width: min(360px, 100%); }
.admin-search input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #cfd8dd; border-radius: 6px; }
.admin-table td { min-width: 120px; }
.admin-actions { display: flex; gap: 7px; }
.admin-action-button { padding: 7px 9px; color: var(--primary); background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; font-weight: 750; text-decoration: none; }
.admin-action-button:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.admin-action-button.danger { color: var(--danger); }
.admin-action-button.danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.admin-form-page, .admin-delete-page { padding-top: 28px; padding-bottom: 64px; }
.admin-flight-form, .admin-delete-panel { max-width: 920px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.admin-form-section { margin: 0; padding: 24px; border: 0; border-bottom: 1px solid var(--line); }
.admin-form-section legend { float: none; width: auto; margin: 0 0 18px; font-size: 19px; font-weight: 750; }
.admin-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.admin-form-grid .form-field input, .admin-form-grid .form-field select { width: 100%; min-height: 46px; padding: 10px 12px; background: #fff; border: 1px solid #cfd8dd; border-radius: 6px; outline: 0; }
.admin-form-grid .form-field input:focus, .admin-form-grid .form-field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(9, 111, 120, .12); }
.admin-field-wide { grid-column: span 2; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 24px; }
.admin-delete-panel { max-width: 700px; }
.admin-delete-warning { padding: 20px 24px; color: #7b2a22; background: #fdeae7; border-bottom: 1px solid #f3cbc5; }
.admin-delete-warning strong, .admin-delete-warning span { display: block; }
.admin-delete-warning span { margin-top: 4px; }
.admin-delete-details { margin: 0; padding: 10px 24px; }
.admin-delete-details div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.admin-delete-details dt { color: var(--muted); }
.admin-delete-details dd { margin: 0; font-weight: 700; }
.auth-section { padding-top: 40px; padding-bottom: 64px; }
.auth-form-compact { max-width: 560px; margin: 0 auto; }
.site-footer { flex-shrink: 0; color: #cfdbde; background: #12262c; }
.footer-inner { min-height: 100px; }
.footer-inner span { font-size: 13px; }
.system-page { display: flex; min-height: 610px; align-items: center; padding: 56px 0 72px; background: #edf3f5; }
.system-page-inner { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); overflow: hidden; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.system-code { display: grid; min-height: 420px; place-items: center; color: #fff; background: #17343a; font-size: 112px; font-weight: 800; line-height: 1; }
.system-code-access { background: #705014; }
.system-code-error { background: #7f2f28; }
.system-content { align-self: center; padding: 48px; }
.system-content h1 { margin: 0 0 14px; font-size: 38px; font-weight: 750; }
.system-content > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.system-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.system-hint { margin-top: 30px; padding: 16px 18px; background: var(--soft); border-left: 3px solid var(--primary); border-radius: 5px; }
.system-hint strong, .system-hint span { display: block; }
.system-hint span { margin-top: 4px; color: var(--muted); line-height: 1.55; }
.request-id { margin-top: 18px !important; font-size: 12px !important; }
.request-id code { color: #48545e; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .hero-copy h1 { font-size: 40px; }
  .stats-grid, .details-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-toolbar { grid-template-columns: 1fr 1fr; }
  .results-count { grid-column: 1 / -1; }
  .auth-layout, .profile-grid { grid-template-columns: 1fr; }
  .about-intro-grid, .about-workflow-grid { grid-template-columns: 1fr; gap: 34px; }
  .audience-grid, .feature-list { grid-template-columns: 1fr; }
  .audience-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .audience-grid article:last-child { border-bottom: 0; }
  .flight-detail-layout { grid-template-columns: 1fr; }
  .flight-status-panel { position: static; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-form-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-benefits { grid-row: 2; }
  .profile-summary { grid-template-columns: repeat(2, 1fr); }
  .system-page-inner { grid-template-columns: 1fr; }
  .system-code { min-height: 190px; font-size: 76px; }
}

@media (max-width: 640px) {
  .dashboard-hero { min-height: 430px; background-position: 65% center; }
  .hero-copy { padding: 48px 0; }
  .hero-copy h1 { font-size: 34px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { min-height: 44px; }
  .dashboard-section, .content-section { padding-top: 34px; }
  .section-heading, .flight-title, .footer-inner, .profile-hero-inner { align-items: flex-start; flex-direction: column; }
  .admin-hero-inner, .admin-panel-heading { align-items: stretch; flex-direction: column; }
  .stats-grid, .details-grid, .filter-toolbar, .form-row, .profile-summary { grid-template-columns: 1fr; }
  .admin-stats, .admin-form-grid { grid-template-columns: 1fr; }
  .admin-field-wide { grid-column: auto; }
  .admin-form-actions { flex-direction: column-reverse; }
  .admin-form-actions .btn { width: 100%; }
  .admin-delete-details div { grid-template-columns: 1fr; gap: 3px; }
  .auth-form { padding: 22px 18px; }
  .auth-benefits { padding: 28px 22px; }
  .auth-benefits h2 { font-size: 29px; }
  .flight-title-actions { align-items: flex-start; flex-direction: column; }
  .flight-detail-heading, .route-panel-heading { align-items: flex-start; flex-direction: column; }
  .route-timeline { grid-template-columns: 1fr; gap: 25px; }
  .route-progress { padding: 0 18%; }
  .route-track { transform: rotate(90deg); }
  .route-stop-arrival { text-align: left; }
  .flight-info-grid { grid-template-columns: 1fr; }
  .flight-table th, .flight-table td { padding: 13px 12px; }
  .page-band h1 { font-size: 32px; }
  .image-page-band { min-height: 360px; background-position: 62% center; }
  .image-page-band h1 { font-size: 35px; }
  .about-intro, .about-audience, .about-features, .about-workflow { padding: 46px 0; }
  .about-callout-inner { align-items: flex-start; flex-direction: column; }
  .about-callout-action { width: 100%; }
  .system-page { min-height: 0; padding: 28px 12px 48px; }
  .system-content { padding: 28px 22px; }
  .system-content h1 { font-size: 31px; }
  .system-actions { flex-direction: column; }
  .system-actions .btn { width: 100%; }
}
