.ahc {
  --ahc-ink: #f8fafc;
  --ahc-muted: #b8c2cf;
  --ahc-panel: #111820;
  --ahc-paper: #f4f7fa;
  --ahc-dark-text: #101820;
  --ahc-soft-text: #536171;
  --ahc-line: rgba(255, 255, 255, 0.12);
  --ahc-accent: #3fb4d8;
  --ahc-warm: #d7a650;
  box-sizing: border-box;
  color: var(--ahc-ink);
  font-family: Inter, Arial, sans-serif;
}

.ahc * {
  box-sizing: border-box;
}

.ahc > *,
.ahc-split > *,
.ahc-band > *,
.ahc-pagehead > *,
.ahc-legal-page > * {
  min-width: 0;
}

.ahc h1,
.ahc h2,
.ahc h3,
.ahc p,
.ahc li,
.ahc strong,
.ahc span {
  overflow-wrap: anywhere;
}

.ahc-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 96px);
  background:
    linear-gradient(90deg, rgba(7, 12, 17, 0.94) 0%, rgba(7, 12, 17, 0.72) 42%, rgba(7, 12, 17, 0.15) 100%),
    url("images/aviator-hamburg-hero.png") center / cover no-repeat;
}

.ahc-hero > div,
.ahc-pagehead {
  max-width: 760px;
}

.ahc h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
}

.ahc h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.ahc-band {
  padding: 56px clamp(20px, 6vw, 72px);
  background: var(--ahc-paper);
  color: var(--ahc-dark-text);
}

.ahc-band-alt {
  padding-top: 12px;
}

.ahc p {
  color: var(--ahc-muted);
  font-size: 18px;
  line-height: 1.65;
}

.ahc-kicker {
  margin: 0 0 12px;
  color: var(--ahc-warm);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ahc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ahc-button,
.ahc-login input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ahc-accent);
  border-radius: 6px;
  background: var(--ahc-accent);
  color: #041017;
  font-weight: 800;
  text-decoration: none;
}

.ahc-button-alt {
  background: transparent;
  color: var(--ahc-ink);
}

.ahc-band .ahc-button-alt,
.ahc-split .ahc-button-alt,
.ahc-pagehead .ahc-button-alt,
.ahc-profile .ahc-button-alt,
.ahc-card .ahc-button-alt,
.ahc-login .ahc-button-alt,
.ahc-career-rewards .ahc-button-alt,
.ahc-legal-page .ahc-button-alt {
  color: var(--ahc-dark-text);
}

.ahc-button-light {
  color: var(--ahc-dark-text);
}

.ahc-card .ahc-button-light {
  color: #f8fafc;
}

.ahc-card .ahc-button-light:hover {
  background: rgba(63, 180, 216, 0.14);
}

.ahc-button-secondary {
  border-color: #3fb4d8;
  background: #ffffff;
  color: #101820;
}

.ahc-button-danger {
  border-color: #b45309;
  background: #b45309;
  color: #ffffff;
}

.ahc-button-disabled,
.ahc-button:disabled {
  border-color: #94a3b8;
  background: #cbd5df;
  color: #475569;
  cursor: not-allowed;
}

.ahc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.ahc-stats {
  padding: 28px clamp(20px, 6vw, 72px);
  background: #0c1218;
}

.ahc-stats article,
.ahc-profile article {
  border-left: 3px solid var(--ahc-accent);
  padding: 18px 20px;
  background: var(--ahc-panel);
}

.ahc-stats strong,
.ahc-profile strong {
  display: block;
  color: var(--ahc-ink);
  font-size: 28px;
}

.ahc-stats span,
.ahc-profile span {
  color: var(--ahc-muted);
}

.ahc-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  padding: 56px clamp(20px, 6vw, 72px);
  background: var(--ahc-paper);
  color: var(--ahc-dark-text);
}

.ahc-split p,
.ahc-pagehead p {
  color: var(--ahc-soft-text);
}

.ahc-pagehead,
.ahc-profile {
  padding: 64px clamp(20px, 6vw, 72px) 24px;
  background: var(--ahc-paper);
  color: var(--ahc-dark-text);
}

.ahc-card {
  padding: 22px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ahc-dark-text);
}

.ahc-card p,
.ahc-card li {
  color: var(--ahc-soft-text);
}

.ahc-card > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.ahc-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.ahc-mission {
  margin-bottom: 12px;
}

.ahc-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.ahc-mission strong,
.ahc-mission span {
  display: block;
}

.ahc-mission-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.ahc-mission-meta .ahc-meta-wide {
  grid-column: 1 / -1;
}

.ahc-mission-meta span {
  padding: 10px 12px;
  border: 1px solid #dce4ec;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--ahc-dark-text);
}

.ahc-mission-meta b {
  display: block;
  margin-bottom: 3px;
  color: var(--ahc-muted-text);
  font-size: 11px;
  text-transform: uppercase;
}

.ahc-mission-meta select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ahc-dark-text);
}

.ahc-mission-reservation {
  display: block;
}

.ahc-mission ol {
  margin: 14px 0;
  padding-left: 20px;
  color: var(--ahc-soft-text);
}

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

.ahc-aircraft-select {
  display: grid;
  gap: 6px;
  color: var(--ahc-soft-text);
  font-size: 13px;
  font-weight: 800;
}

.ahc-aircraft-select select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ahc-dark-text);
}

.ahc-shift-card {
  max-width: 980px;
}

.ahc-shift-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.ahc-shift-form label {
  display: grid;
  gap: 6px;
  color: var(--ahc-soft-text);
  font-size: 13px;
  font-weight: 800;
}

.ahc-shift-form select,
.ahc-shift-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ahc-dark-text);
}

.ahc-shift-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.ahc-shift-stats span {
  padding: 10px 12px;
  border: 1px solid #dce4ec;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--ahc-dark-text);
}

.ahc-shift-stats b {
  display: block;
  margin-bottom: 3px;
  color: var(--ahc-muted-text);
  font-size: 11px;
  text-transform: uppercase;
}

.ahc-shift-offer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dce4ec;
}

.ahc-route-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 12px 0 14px;
}

.ahc-route-point {
  display: inline-grid;
  min-width: 110px;
  padding: 9px 12px;
  border: 1px solid #dce4ec;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--ahc-dark-text);
}

.ahc-route-point b {
  font-size: 15px;
  line-height: 1.15;
}

.ahc-route-point small {
  margin-top: 2px;
  color: var(--ahc-soft-text);
  font-size: 11px;
  line-height: 1.25;
}

.ahc-route-arrow {
  align-self: center;
  color: var(--ahc-muted-text);
  font-weight: 800;
}

.ahc-dispatch-brief {
  margin-top: 14px;
}

.ahc-dispatch-brief > strong {
  display: block;
  margin-bottom: 8px;
}

.ahc-shift-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, max-content));
  gap: 12px;
  margin-top: 16px;
}

.ahc-shift-actions .ahc-button {
  width: 100%;
  min-width: 230px;
  white-space: normal;
}

.ahc-shift-end {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dce4ec;
}

.ahc-shift-abort {
  margin-top: 14px;
}

.ahc-inline-form {
  margin: 0;
}

.ahc-shift-history {
  margin-top: 20px;
}

.ahc-shift-history .ahc-table {
  table-layout: fixed;
}

.ahc-shift-history .ahc-table th,
.ahc-shift-history .ahc-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

.ahc-shift-history .ahc-table th:nth-child(1),
.ahc-shift-history .ahc-table td:nth-child(1) {
  width: 27%;
}

.ahc-shift-history .ahc-table th:nth-child(2),
.ahc-shift-history .ahc-table td:nth-child(2) {
  width: 20%;
}

.ahc-shift-history .ahc-table th:nth-child(n+3),
.ahc-shift-history .ahc-table td:nth-child(n+3) {
  width: 13%;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ahc-shift-history .ahc-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.ahc-mission.is-hidden {
  display: none;
}

.ahc-dispatch {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
}

.ahc-dispatch label {
  display: grid;
  gap: 6px;
  color: var(--ahc-soft-text);
  font-size: 13px;
  font-weight: 800;
}

.ahc-dispatch select {
  min-width: 180px;
  min-height: 40px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ahc-dark-text);
}

.ahc-dispatch .ahc-check {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.ahc-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.ahc-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  color: var(--ahc-dark-text);
}

.ahc-table th,
.ahc-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #dce4ec;
  text-align: left;
  white-space: nowrap;
}

.ahc-table th {
  background: #101820;
  color: #f8fafc;
}

.ahc-table a {
  color: #0f7ea0;
  font-weight: 800;
}

.ahc-ranking {
  margin: 0;
  padding-left: 24px;
}

.ahc-ranking li {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
}

.ahc-ranking strong,
.ahc-ranking span {
  display: block;
}

.ahc-ranking span {
  color: var(--ahc-soft-text);
}

.ahc-hub-box {
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
}

.ahc-hub-box p {
  color: var(--ahc-soft-text);
}

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

.ahc-hub-stats span {
  padding: 12px;
  border-left: 3px solid var(--ahc-accent);
  background: #f4f7fa;
  color: var(--ahc-soft-text);
}

.ahc-hub-stats strong {
  display: block;
  color: var(--ahc-dark-text);
  font-size: 24px;
}

.ahc-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 8px 8px 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #101820;
  color: #f8fafc;
  font-weight: 800;
}

.ahc-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.ahc-badge-image {
  display: inline-grid;
  width: min(138px, 48%);
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 8px 20px rgba(16, 24, 32, 0.18);
}

.ahc-badge-image img {
  display: block;
  width: 100%;
  height: auto;
}

.ahc-badge-image span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.ahc-badge-details {
  margin-top: 8px;
  color: var(--ahc-soft-text);
}

.ahc-badge-details summary {
  cursor: pointer;
  font-weight: 800;
}

.ahc-badge-reserved {
  background: #7a4f01;
}

.ahc-rank-panel {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 8px 0 22px;
  padding: 16px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.08);
}

.ahc-rank-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(16, 24, 32, 0.16);
}

.ahc-rank-panel strong {
  display: block;
  color: var(--ahc-dark-text);
  font-size: 22px;
  line-height: 1.1;
}

.ahc-rank-panel strong span {
  color: var(--ahc-accent);
  font-size: 16px;
}

.ahc-rank-panel p,
.ahc-rank-panel small {
  color: var(--ahc-soft-text);
}

.ahc-rank-progress {
  height: 8px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce4ec;
}

.ahc-rank-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ahc-accent);
}

.ahc-career-rewards {
  padding: 24px clamp(20px, 6vw, 72px) 52px;
  background: var(--ahc-paper);
  color: var(--ahc-dark-text);
}

.ahc-career-rewards h2 {
  margin: 0 0 8px;
  color: var(--ahc-dark-text);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

.ahc-career-rewards > p {
  max-width: 860px;
  color: var(--ahc-soft-text);
}

.ahc-reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.ahc-reward-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 138px;
  padding: 16px;
  border: 1px solid #dce4ec;
  border-left: 3px solid var(--ahc-accent);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.06);
}

.ahc-reward-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(16, 24, 32, 0.14);
}

.ahc-reward-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ahc-dark-text);
  font-size: 20px;
  line-height: 1.15;
}

.ahc-reward-card p,
.ahc-reward-card small {
  margin: 0;
  color: var(--ahc-soft-text);
}

.ahc-rank-catalog .ahc-reward-card {
  min-height: 150px;
}

.ahc-legal-page {
  padding: 24px clamp(20px, 6vw, 72px) 64px;
  background: var(--ahc-paper);
  color: var(--ahc-dark-text);
}

.ahc-legal-page h2 {
  margin: 26px 0 12px;
  color: var(--ahc-dark-text);
}

.ahc-legal-image {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #e7f4f2;
}

.ahc-legal-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ahc-small {
  margin: 12px 0 0;
  color: var(--ahc-soft-text);
  font-size: 14px;
}

.ahc-leg-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.ahc-leg-list li {
  padding: 8px 10px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--ahc-dark-text);
}

.ahc-leg-list li.is-complete {
  border-color: #bfd9ce;
  background: #eef8f3;
}

.ahc-leg-list li.is-next {
  border-color: var(--ahc-accent);
  box-shadow: inset 4px 0 0 var(--ahc-accent);
}

.ahc-leg-list span {
  display: inline-block;
  margin-left: 6px;
  color: var(--ahc-soft-text);
  font-size: 13px;
}

.ahc-leg-list small {
  display: block;
  margin-top: 5px;
  color: var(--ahc-soft-text);
  font-size: 12px;
  line-height: 1.45;
}

.ahc-leg-list-compact {
  padding-left: 0;
  list-style: none;
}

.ahc-empty {
  margin: 0;
  padding: 16px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ahc-soft-text);
}

.ahc-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--ahc-accent);
  background: #ffffff;
  color: var(--ahc-dark-text);
  font-weight: 800;
}

.ahc-profile-log {
  margin-top: 28px;
  padding-right: 0;
  padding-left: 0;
}

.ahc-profile-missions {
  padding: 0 clamp(20px, 6vw, 72px) 56px;
  background: var(--ahc-paper);
  color: var(--ahc-dark-text);
}

.ahc-login {
  max-width: 420px;
  padding: 24px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ahc-dark-text);
}

.ahc-login label {
  display: block;
  margin-bottom: 10px;
}

.ahc-login input[type="text"],
.ahc-login input[type="password"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ahc-dark-text);
}

@media (max-width: 760px) {
  .ahc-hero {
    min-height: 560px;
    padding: 40px 22px;
  }

  .ahc-split {
    grid-template-columns: 1fr;
  }

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

  .ahc-reward-card img {
    max-width: 180px;
  }
}
