/* ═══════════════════════════════════════════════════════════════
   boarding-pass.css — modal + flight-info card for
   js/kiosk-boarding-pass.js. Glass aesthetic matches
   library-search.css and bilateral overlay for visual consistency.
   ═══════════════════════════════════════════════════════════════ */

.bp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(20,18,32,0.82), rgba(8,6,16,0.92));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: bpFadeIn 0.22s ease-out;
}
@keyframes bpFadeIn { from { opacity: 0 } to { opacity: 1 } }

.bp-shell {
  width: 100%;
  max-width: 640px;
  max-height: 96vh;
  background: linear-gradient(145deg, rgba(36,34,46,0.92), rgba(22,20,30,0.96));
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px 24px 0 0;
  padding: 18px 18px max(env(safe-area-inset-bottom, 0px), 18px);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
  font-family: inherit;
  overflow-y: auto;
}
@media (min-width: 640px) {
  .bp-overlay { align-items: center; padding: 24px; }
  .bp-shell { border-radius: 28px; max-height: 88vh; }
}

.bp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bp-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.bp-close {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.bp-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bp-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bp-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.bp-hint {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.bp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  row-gap: 6px;
  column-gap: 12px;
  align-items: baseline;
}
.bp-row { display: contents; }
.bp-row-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
}
.bp-row-value {
  font-size: 0.98rem;
  color: #fff;
  font-weight: 600;
  word-break: break-word;
}

.bp-countdown {
  margin-top: 4px;
  padding: 12px 14px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffe1ad;
  background: linear-gradient(135deg, rgba(255,200,111,0.18), rgba(232,163,61,0.12));
  border: 1px solid rgba(255,200,111,0.35);
  border-radius: 14px;
}
.bp-countdown-soon {
  color: #ffd2d2;
  background: linear-gradient(135deg, rgba(229,57,53,0.18), rgba(176,0,32,0.12));
  border-color: rgba(229,57,53,0.5);
}
.bp-countdown-now {
  color: #fff;
  background: linear-gradient(135deg, rgba(229,57,53,0.55), rgba(176,0,32,0.45));
  border-color: rgba(229,57,53,0.8);
  animation: bpPulse 1s infinite;
}
@keyframes bpPulse { 0% {transform:scale(1)} 50% {transform:scale(1.02)} 100% {transform:scale(1)} }

.bp-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-btn {
  min-height: var(--tap-target-min, 48px);
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: transform 0.08s, filter 0.15s, opacity 0.15s;
  color: #fff;
}
.bp-btn:active { transform: scale(0.99); }
.bp-btn[disabled] { opacity: 0.7; cursor: default; }
.bp-btn-large { font-size: 1.05rem; padding: 14px 18px; }

.bp-btn-amber  { background: linear-gradient(135deg, #FFA726, #E8950B); color: #1c1408; }
.bp-btn-blue   { background: linear-gradient(135deg, #4A90D9, #2979D6); }
.bp-btn-green  { background: linear-gradient(135deg, #43A047, #2E7D32); }
.bp-btn-indigo { background: linear-gradient(135deg, #5C6BC0, #3949AB); }
.bp-btn-gray   { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.12); }
.bp-btn-warn   { background: linear-gradient(135deg, #E53935, #B0001F); }
.bp-btn-confirmed { background: linear-gradient(135deg, #2E7D32, #1B5E20); }

.bp-status {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  min-height: 18px;
  padding: 8px 0;
}
.bp-status-err { color: #ffb4b3; }

.bp-divider {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 0;
  position: relative;
}
.bp-divider::before, .bp-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
.bp-divider::before { left: 0; }
.bp-divider::after  { right: 0; }

.bp-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bp-field { display: flex; flex-direction: column; gap: 4px; }
.bp-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
}
.bp-input {
  min-height: var(--tap-target-min, 48px);
  padding: 12px 14px;
  font-size: var(--input-min-fs, 16px);
  font-family: inherit;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.16);
  color: #fff;
  outline: none;
}
.bp-input::placeholder { color: rgba(255,255,255,0.32); }
.bp-input:focus {
  border-color: #4A90D9;
  background: rgba(255,255,255,0.10);
}

.bp-time-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  padding: 10px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 12px;
}
.bp-time-row .bp-label { width: 100%; }
.bp-time-row .bp-input { flex: 1; min-width: 180px; }

.bp-warnings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255,200,111,0.12);
  border: 1px solid rgba(255,200,111,0.28);
  border-radius: 10px;
}
.bp-warning {
  font-size: 0.84rem;
  color: #ffe1ad;
}

.bp-row-value-large {
  font-size: 1.2rem;
  line-height: 1.45;
  font-weight: 700;
}

.bp-paste-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 12px;
  margin-top: 8px;
}
.bp-paste-area {
  width: 100%;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  font-size: var(--input-min-fs, 16px);
}

.bp-alarm-banner {
  background: linear-gradient(135deg, #E53935, #B0001F);
  color: #fff;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 8px;
  animation: bpPulse 0.8s infinite;
}
