/* Subpages using main index header */
.subpage-with-header {
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

.subpage-with-header .header,
.subpage-with-header .header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10, 15, 26, 0.06);
  padding: 10px 0;
}

.subpage-with-header .header::before,
.subpage-with-header .header::after {
  display: none;
}

.fids-page.subpage-with-header {
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

/* Flight page — glass gradient header (same as home when scrolled) */
.fids-page.subpage-with-header .header {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 203, 5, 0.38) 100%
  );
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 8px 32px -12px rgba(255, 203, 5, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  padding: 10px 0;
}

.fids-page.subpage-with-header .header::after {
  display: block;
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 203, 5, 0.28) 20%,
    rgba(255, 203, 5, 0.28) 80%,
    transparent 100%
  );
  pointer-events: none;
}

.fids-page.subpage-with-header .header::before {
  display: block;
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255, 203, 5, 0.22), transparent);
  pointer-events: none;
}

/* Ticket page */
.ticket-page .ticket-wrap {
  padding-top: 8px;
}

/* 404 — hide old mini header */
.error-page.subpage-with-header .error-top {
  display: none;
}

@media (max-width: 640px) {
  .subpage-with-header {
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
  }

  .fids-page.subpage-with-header {
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
  }
}
