@import url('https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@300;400;600;700&family=Barlow+Condensed:wght@400;500;600;700;800;900&display=swap');

:root{
  --bg:#f7f8fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#667085;
  --line:#e6e8ef;
  --primary:#2563eb;
  --primary2:#1d4ed8;
  --good:#16a34a;
  --warn:#f59e0b;
  --bad:#ef4444;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --boarding-font: 'Overpass Mono', 'Courier New', monospace;
  --airline-font: 'Barlow Condensed', sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, #ffffff 0%, var(--bg) 55%, #eef2ff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.bg{min-height:100%; display:flex; flex-direction:column}
.container{width:min(1180px, 95vw); margin:22px auto 30px; flex:1}
.topbar{
  width:min(1180px, 95vw);
  margin:18px auto 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

@media (max-width: 640px){
  .container{width:96vw; margin:16px auto 20px}
  .topbar{width:96vw; margin:12px auto 0; gap:12px}

  /* Better touch targets */
  button, .btn, .seat, a{
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
  }

  /* Prevent text selection on buttons */
  button, .btn{
    -webkit-user-select: none;
    user-select: none;
  }
}
.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background:#eef2ff;
  border:1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15,23,42,0.02);
}
.airline{font-weight:700; letter-spacing:0.08em; font-size:12px; color:#475569}
.title{font-weight:700; font-size:16px}
.flightchip{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.8);
  border-radius:999px;
}
.flightchip__label{font-size:12px; color:var(--muted)}
.flightchip__value{font-weight:700; font-family:var(--mono)}

@media (max-width: 640px){
  .logo{width:38px; height:38px; font-size:20px}
  .airline{font-size:10px}
  .title{font-size:14px}
  .flightchip{padding:8px 10px; gap:8px}
  .flightchip__label{font-size:11px}
  .flightchip__value{font-size:13px}
}

.footer{
  padding:22px 0 26px;
  border-top:1px solid rgba(230,232,239,0.6);
  background:rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}
.footer__inner{width:min(1180px, 95vw); margin:0 auto; display:flex; flex-direction:column; gap:6px}
.small{font-size:12px}
.muted{color:var(--muted)}

@media (max-width: 640px){
  .footer{padding:18px 0 22px}
  .footer__inner{width:96vw; gap:8px}
  .small{font-size:11px; line-height:1.5}
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.card.subtle{
  background: rgba(255,255,255,0.6);
}
.card__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.h1{font-size:26px; font-weight:800; letter-spacing:-0.02em}
.h2{font-size:18px; font-weight:800; letter-spacing:-0.01em}
.h3{font-size:16px; font-weight:700; letter-spacing:-0.01em; color:var(--text)}
.pill{
  font-size:11px; font-weight:700; letter-spacing:0.12em;
  padding:8px 10px; border-radius:999px;
  background:#f1f5f9; border:1px solid var(--line);
  color:#334155;
  white-space:nowrap;
}

.registry-info{
  padding:12px;
  background: rgba(239, 246, 255, 0.5);
  border-radius:12px;
  border:1px solid rgba(37, 99, 235, 0.15);
}

@media (max-width: 640px){
  .card{padding:14px; border-radius:14px}
  .card__header{gap:12px; margin-bottom:12px; flex-wrap:wrap}
  .h1{font-size:22px}
  .h2{font-size:16px}
  .h3{font-size:15px}
  .pill{font-size:10px; padding:6px 8px}

  .registry-info{
    padding:10px;
    border-radius:10px;
  }
}

.hero{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap:16px;
  align-items:start;
}

.hero__left,
.hero__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 980px){
  .hero{grid-template-columns:1fr; gap:14px}
  .topbar{flex-direction:column; align-items:flex-start}
}

@media (max-width: 640px){
  .hero{gap:12px}
  .hero__left, .hero__right{gap:12px}

  /* Make seatmap card full width on mobile */
  .hero__right .card {
    margin-left: calc(-1 * (100vw - 100%) / 2);
    margin-right: calc(-1 * (100vw - 100%) / 2);
    width: 100vw;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

.infoGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
.info{
  border:1px dashed rgba(230,232,239,0.9);
  border-radius:14px;
  padding:10px 12px;
  background: rgba(248,250,252,0.5);
}
.info__label{font-size:12px; color:var(--muted)}
.info__value{font-weight:700}

@media (max-width: 640px){
  .infoGrid{grid-template-columns: repeat(2, minmax(0,1fr)); gap:8px}
  .info{padding:8px 10px; border-radius:12px}
  .info__label{font-size:11px}
  .info__value{font-size:14px}
}

@media (max-width: 420px){
  .infoGrid{grid-template-columns: 1fr; gap:8px}
}

.sep{border:0; border-top:1px solid var(--line); margin:14px 0}

.formRow{
  display:grid;
  grid-template-columns: 1fr 180px;
  gap:12px;
}
.field label{display:block; font-size:12px; color:var(--muted); margin:0 0 6px}
.field input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  outline:none;
  background:#fff;
  font-size:14px;
}
.field input:focus{
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

@media (max-width: 640px){
  .formRow{grid-template-columns: 1fr; gap:10px}
  .field input{padding:11px 10px; font-size:16px}
  .field label{font-size:11px}
}

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

.alert-closed{
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 2px solid rgba(220, 38, 38, 0.2);
  border-radius: 14px;
  text-align: center;
  margin: 12px 0;
}

.alert-closed .muted{
  color: #991b1b;
  font-weight: 500;
}

@media (max-width: 640px){
  .alert-closed{
    padding: 14px 12px;
    font-size: 14px;
  }
}

.btn{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  display:inline-block;
  text-align:center;
}
.btn:hover{border-color:#cbd5e1}
.btn.primary{
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  border-color: rgba(37,99,235,0.25);
  color:#fff;
}
.btn:disabled{
  opacity:0.55;
  cursor:not-allowed;
}

@media (max-width: 640px){
  .actions{gap:8px; margin-top:10px}
  .btn{padding:10px 12px; font-size:13px; flex:1; min-width:120px}
}
.iconBtn{
  border:1px solid var(--line);
  background:#fff;
  width:38px; height:38px;
  border-radius:14px;
  cursor:pointer;
}
.iconBtn:hover{border-color:#cbd5e1}

.hint{
  margin-top:14px;
  display:flex; gap:10px; align-items:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(230,232,239,0.9);
  background: rgba(241,245,249,0.45);
}
.dot{width:10px; height:10px; border-radius:999px; background:rgba(37,99,235,0.8)}

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

.map-link{
  display:inline-block;
  margin-left:8px;
  color:var(--primary);
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  padding:4px 8px;
  border-radius:8px;
  transition: background 0.2s;
}
.map-link:hover{
  background:rgba(37,99,235,0.1);
  text-decoration:underline;
}

@media (max-width: 640px){
  .details{gap:10px; font-size:14px}
  .map-link{
    display:block;
    margin-left:0;
    margin-top:6px;
    font-size:14px;
    padding:8px 12px;
    text-align:center;
    background:rgba(37,99,235,0.08);
    border:1px solid rgba(37,99,235,0.2);
  }
}

.legend{display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); flex-wrap:wrap}
.leg{
  width:10px; height:10px; border-radius:4px; display:inline-block; margin-left:10px;
}
.leg.free{background:#e2e8f0}
.leg.taken{background:#fecaca}
.leg.blocked{background:#fde68a}

@media (max-width: 640px){
  .legend{
    justify-content: center;
    gap:8px;
    font-size:11px;
  }
  .leg{
    width:12px;
    height:12px;
    margin-left:6px;
  }
}

/* Cockpit */
.cockpit{
  margin: 16px 0;
  padding: 16px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.8) 0%, rgba(224, 242, 254, 0.6) 100%);
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  position: relative;
}

.cockpit::before{
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
}

.cockpit-label{
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
}

.cockpit-seats{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.cockpit-seat{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-radius: 12px;
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.cockpit-icon{
  font-size: 32px;
  line-height: 1;
}

.cockpit-role{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.cockpit-name{
  font-size: 16px;
  font-weight: 800;
  color: #1e40af;
  font-family: var(--airline-font);
}

.cockpit-divider{
  width: 2px;
  height: 50px;
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.3), transparent);
}

@media (max-width: 640px){
  .cockpit{
    padding: 12px;
    margin: 12px 0;
  }

  .cockpit-seats{
    gap: 12px;
  }

  .cockpit-seat{
    min-width: 90px;
    padding: 10px 10px;
  }

  .cockpit-icon{
    font-size: 24px;
  }

  .cockpit-name{
    font-size: 13px;
  }

  .cockpit-role{
    font-size: 9px;
  }

  .cockpit-divider{
    height: 35px;
  }
}

@media (max-width: 420px){
  .cockpit-seats{
    gap: 8px;
  }

  .cockpit-seat{
    min-width: 80px;
    padding: 8px 8px;
  }

  .cockpit-icon{
    font-size: 22px;
  }

  .cockpit-name{
    font-size: 12px;
  }

  .cockpit-divider{
    width: 2px;
    height: 30px;
  }
}

/* Seatmap */
.seatmapWrap{
  overflow:auto;
  padding-bottom:6px;
  padding-top:60px;
  margin-top:-50px;
}
.seatmap{
  display:grid;
  gap:10px;
  align-items:center;
}
.seatRow{
  display:grid;
  grid-template-columns: 44px repeat(3, 44px) 18px repeat(3, 44px);
  gap:8px;
  align-items:center;
}
.rowLabel{
  text-align:right;
  font-weight:800;
  color:#475569;
  font-family:var(--mono);
}
.aisle{width:18px}
.seat{
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#f1f5f9;
  cursor:pointer;
  display:grid; place-items:center;
  font-weight:800;
  font-family:var(--mono);
  position:relative;
  user-select:none;
}

@media (max-width: 640px){
  .seatmapWrap{
    padding-top:50px;
    margin-top:-40px;
    -webkit-overflow-scrolling: touch;
    padding-left: 8px;
    padding-right: 8px;
  }
  .seatmap{
    gap:10px;
    justify-content: center;
  }
  .seatRow{
    grid-template-columns: 40px repeat(3, 44px) 16px repeat(3, 44px);
    gap:7px;
  }
  .rowLabel{font-size:13px}
  .aisle{width:16px}
  .seat{
    width:44px;
    height:44px;
    border-radius:12px;
    font-size:14px;
  }
}

@media (max-width: 420px){
  .seatRow{
    grid-template-columns: 34px repeat(3, 38px) 14px repeat(3, 38px);
    gap:6px;
  }
  .rowLabel{font-size:12px}
  .aisle{width:14px}
  .seat{
    width:38px;
    height:38px;
    border-radius:10px;
    font-size:13px;
  }
}


.seat:hover{border-color:#cbd5e1}
.seat.selected{
  outline: 3px solid rgba(37,99,235,0.25);
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.25);
}
.seat.taken{
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.25);
  cursor:not-allowed;
  color:#7f1d1d;
}
.seat.blocked{
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.25);
  cursor:not-allowed;
  color:#7c2d12;
}
.seat .tip{
  display:none;
  position:absolute;
  bottom:100%;
  left:50%;
  transform:translateX(-50%) translateY(-8px);
  padding:7px 9px;
  border-radius:12px;
  background:#0f172a;
  color:#fff;
  font-size:12px;
  white-space:nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index:100;
  pointer-events:none;
}
.seat .tip::after{
  content:'';
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  border:6px solid transparent;
  border-top-color:#0f172a;
}
.seat:hover .tip{display:block}
.seatmapNote{margin-top:8px}

/* Boarding pass */
.boardingPreview{margin-top:16px}
.boarding{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:14px;
  border:1px dashed rgba(230,232,239,0.9);
  border-radius: 20px;
  padding:14px;
  background: linear-gradient(180deg, rgba(248,250,252,0.75), rgba(255,255,255,1));
}
.boarding--big{padding:18px; gap:18px}
.boarding__airline{font-weight:900; letter-spacing:0.12em; font-size:12px; color:#334155}
.boarding__flight{font-weight:900; font-family:var(--mono); font-size:18px; margin-top:2px}
.boarding__route{
  display:flex; align-items:center; gap:8px;
  font-weight:900; font-size:18px;
  margin:10px 0 8px;
}
.arrow{
  width:28px; height:28px; border-radius:999px;
  display:grid; place-items:center;
  background:#eef2ff;
  border:1px solid var(--line);
}
.boarding__meta{display:grid; gap:8px}
.boarding__meta > div{
  display:flex; justify-content:space-between; gap:14px;
  padding:8px 10px;
  border:1px solid rgba(230,232,239,0.9);
  border-radius:14px;
  background: rgba(255,255,255,0.75);
}
.k{font-size:12px; color:var(--muted)}
.v{font-weight:800}
.mono{font-family:var(--mono)}
.qr{
  height:100%;
  display:grid;
  place-items:center;
  gap:10px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(230,232,239,0.9);
  background: rgba(255,255,255,0.75);
}
.qr__fake{
  width:110px; height:110px;
  border-radius:14px;
  background:
    linear-gradient(90deg, #0f172a 10px, transparent 10px) 0 0 / 20px 20px,
    linear-gradient(#0f172a 10px, transparent 10px) 0 0 / 20px 20px,
    radial-gradient(circle at 40% 60%, #0f172a 10px, transparent 11px),
    radial-gradient(circle at 70% 35%, #0f172a 9px, transparent 10px);
  opacity:0.8;
}
.qr__fake--big{width:140px; height:140px}
.note{margin-top:12px; padding:10px 12px; border-radius:14px; background: rgba(241,245,249,0.5); border:1px solid rgba(230,232,239,0.9)}

/* Real Boarding Pass Design */
.boarding-pass {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    0 8px 20px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(0,0,0,0.08);
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.boarding-pass__main {
  position: relative;
  background:
    linear-gradient(to right, #ffffff 50%, #f8fafc 50%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(226, 232, 240, 0.3) 2px,
      rgba(226, 232, 240, 0.3) 4px
    );
  border-left: 6px solid #1e40af;
}

.bp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 40px 18px;
  border-bottom: 2px dashed rgba(148, 163, 184, 0.4);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.6) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.bp-airline-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bp-airline-name {
  font-family: var(--airline-font);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #1e40af;
  text-transform: uppercase;
  line-height: 1;
}

.bp-tagline {
  font-family: var(--airline-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 2px;
}

.bp-flight-info {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bp-flight-number {
  font-family: var(--boarding-font);
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.bp-class {
  font-family: var(--airline-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #64748b;
  text-transform: uppercase;
}

.bp-body {
  padding: 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bp-row {
  display: flex;
  gap: 32px;
  align-items: flex-end;
}

.bp-row.bp-passenger {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.bp-row.bp-route {
  padding: 18px 0;
  border-bottom: 2px solid rgba(226, 232, 240, 0.8);
  align-items: center;
}

.bp-row.bp-details {
  gap: 40px;
  justify-content: space-between;
}

.bp-row.bp-booking {
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.3);
}

.bp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.bp-field--from,
.bp-field--to {
  flex: 1;
  max-width: 250px;
}

.bp-label {
  font-family: var(--airline-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #64748b;
  text-transform: uppercase;
  line-height: 1;
}

.bp-value {
  font-family: var(--boarding-font);
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.bp-value--name {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e293b;
}

.bp-value--city {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e40af;
  font-family: var(--airline-font);
}

.bp-value--large {
  font-size: 32px;
  font-weight: 700;
  color: #1e40af;
  letter-spacing: 0.05em;
}

.bp-value--pnr {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #0f172a;
}

.bp-arrow-divider {
  font-size: 28px;
  color: #cbd5e1;
  margin: 0 8px;
  flex-shrink: 0;
}

.bp-footer {
  padding: 24px 40px 28px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.9) 100%);
  border-top: 2px dashed rgba(148, 163, 184, 0.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bp-venue {
  font-family: var(--airline-font);
  font-size: 13px;
  color: #475569;
  text-align: center;
  line-height: 1.4;
}

.bp-barcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.barcode-lines {
  width: 100%;
  max-width: 500px;
  height: 70px;
  background:
    repeating-linear-gradient(
      90deg,
      #0f172a 0px,
      #0f172a 2px,
      transparent 2px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      #0f172a 0px,
      #0f172a 1px,
      transparent 1px,
      transparent 6px
    ),
    repeating-linear-gradient(
      90deg,
      #0f172a 0px,
      #0f172a 3px,
      transparent 3px,
      transparent 8px
    );
  background-size: 100% 100%;
  opacity: 0.95;
  border-radius: 2px;
}

.barcode-text {
  font-family: var(--boarding-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #0f172a;
  text-align: center;
}

/* Responsive boarding pass */
@media (max-width: 768px) {
  .bp-header {
    padding: 18px 18px 14px;
    flex-direction: column;
    gap: 10px;
  }

  .bp-airline-name {
    font-size: 28px;
  }

  .bp-flight-info {
    text-align: left;
  }

  .bp-body {
    padding: 18px 18px;
    gap: 14px;
  }

  .bp-row.bp-details {
    gap: 14px;
    flex-wrap: wrap;
  }

  .bp-value--city {
    font-size: 24px;
  }

  .bp-value--large {
    font-size: 26px;
  }

  .bp-value--name {
    font-size: 19px;
  }

  .bp-footer {
    padding: 16px 18px 18px;
  }

  .barcode-lines {
    height: 60px;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .boarding-pass {
    border-radius: 2px;
  }

  .bp-header {
    padding: 16px 16px 12px;
  }

  .bp-airline-name {
    font-size: 24px;
  }

  .bp-tagline, .bp-class {
    font-size: 10px;
  }

  .bp-flight-number {
    font-size: 20px;
  }

  .bp-body {
    padding: 16px 16px;
    gap: 12px;
  }

  .bp-label {
    font-size: 9px;
  }

  .bp-value {
    font-size: 14px;
  }

  .bp-value--name {
    font-size: 17px;
  }

  .bp-value--city {
    font-size: 20px;
  }

  .bp-value--large {
    font-size: 22px;
  }

  .bp-value--pnr {
    font-size: 16px;
    letter-spacing: 0.12em;
  }

  .bp-row.bp-details {
    gap: 12px;
  }

  .bp-footer {
    padding: 14px 16px 16px;
    gap: 12px;
  }

  .bp-venue {
    font-size: 12px;
  }

  .barcode-lines {
    height: 50px;
  }

  .barcode-text {
    font-size: 12px;
    letter-spacing: 0.2em;
  }
}

@media (max-width: 480px) {
  .bp-row.bp-route {
    gap: 6px;
    align-items: center;
    justify-content: space-between;
  }

  .bp-arrow-divider {
    font-size: 20px;
    margin: 0 4px;
  }

  .bp-field--from,
  .bp-field--to {
    flex: 0 0 auto;
    max-width: 45%;
  }

  .bp-airline-name {
    font-size: 20px;
  }

  .bp-flight-number {
    font-size: 18px;
  }

  .bp-value--city {
    font-size: 18px;
  }

  .bp-value--large {
    font-size: 20px;
  }

  .bp-row.bp-details {
    flex-direction: column;
    gap: 10px;
  }

  .bp-field {
    width: 100%;
  }

  .barcode-lines {
    height: 45px;
  }
}

/* Modal */
.modal.hidden{display:none}
.modal{position:fixed; inset:0; z-index:20; display:grid; place-items:center}
.modal__backdrop{position:absolute; inset:0; background: rgba(15,23,42,0.35); backdrop-filter: blur(3px)}
.modal__panel{
  position:relative;
  width:min(1100px, 95vw);
  background:#fff;
  border-radius: 24px;
  border:1px solid var(--line);
  box-shadow: 0 30px 80px rgba(15,23,42,0.25);
  overflow:hidden;
}
.modal__header{
  display:flex; justify-content:space-between; gap:14px;
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  background: rgba(248,250,252,0.65);
}
.modal__body{padding:16px 18px; display:grid; gap:12px}
.row{display:flex; gap:10px; flex-wrap:wrap; align-items:center}

@media (max-width: 640px){
  .modal__panel{
    width:96vw;
    border-radius: 16px;
  }
  .modal__header{
    padding:14px 16px;
    gap:10px;
  }
  .modal__body{
    padding:14px 16px;
    gap:10px;
  }
  .row{
    gap:8px;
  }
  .row .btn{
    flex:1;
    min-width:0;
  }
}

/* Print */
@media print{
  .topbar,.footer,.btn,.modal{display:none !important}
  body{background:#fff}
  .container{width:100%; margin:0; padding:0}
  .card{box-shadow:none; border:0; padding:0}
}
