/* ============================================================
   Terbangin — frontend reservasi tiket pesawat
   Palet terinspirasi Traveloka: biru #1BA0E2, aksen oranye
   ============================================================ */

:root {
  --blue-900: #053e78;
  --blue-800: #075fb0;
  --blue-700: #0a73cf;
  --blue-600: #0d7fcc;
  --blue-500: #1ba0e2;
  --blue-300: #7cc9f5;
  --blue-100: #d9edff;
  --blue-50:  #eef7ff;
  --orange:   #ff6b1a;
  --orange-2: #f05a00;
  --orange-50:#fff1e8;
  --green:    #12a06a;
  --red:      #e03232;
  --ink:      #1e2c3d;
  --ink-2:    #3d4c5e;
  --muted:    #718094;
  --line:     #e2e9f1;
  --line-2:   #eef2f7;
  --bg:       #f4f7fb;
  --white:    #ffffff;
  --shadow-sm: 0 2px 8px rgba(23, 58, 96, .07);
  --shadow-md: 0 8px 26px rgba(23, 58, 96, .12);
  --shadow-lg: 0 18px 50px rgba(12, 51, 96, .18);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.ic { flex: none; vertical-align: middle; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.orange { color: var(--orange); }
.blue { color: var(--blue-700); }
.bold { font-weight: 700; }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  padding: 11px 18px; font-weight: 700; font-size: 13.5px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, #ff7c2f, var(--orange));
  color: #fff; box-shadow: 0 4px 12px rgba(255, 107, 26, .3);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(255, 107, 26, .42); }
.btn-blue { background: var(--blue-700); color: #fff; box-shadow: 0 4px 12px rgba(10, 115, 207, .22); }
.btn-blue:hover { background: var(--blue-800); }
.btn-outline { background: #fff; border-color: var(--blue-700); color: var(--blue-700); }
.btn-outline:hover { background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.topbar { background: #f8fbff; border-bottom: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.topbar-inner { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; height: 32px; display: flex; align-items: center; justify-content: space-between; }
.topbar-inner a:hover { color: var(--blue-700); }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 2px 10px rgba(23, 58, 96, .07); }
.header-inner { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; color: #fff;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-700));
  display: grid; place-items: center; transform: rotate(-8deg);
  box-shadow: 0 4px 10px rgba(10, 115, 207, .3);
}
.brand-mark .ic { transform: rotate(8deg); }
.brand-text { font-size: 21px; font-weight: 800; letter-spacing: -.7px; color: var(--blue-800); }
.brand-text span { color: var(--orange); }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-item {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px;
  border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: none; border: 0; transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-item:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-item.active { color: var(--blue-700); background: var(--blue-50); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-link { font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 8px; background: none; border: 0; }
.hdr-link:hover { color: var(--blue-700); }
.locale { font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.btn-login { background: #fff; border: 1px solid var(--blue-700); color: var(--blue-700); padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 12.5px; }
.btn-login:hover { background: var(--blue-50); }
.btn-register { background: var(--blue-700); border: 1px solid var(--blue-700); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 12.5px; }
.btn-register:hover { background: var(--blue-800); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, #075fb0 0%, #0a73cf 42%, #1ba0e2 78%, #55bdf2 100%);
  padding: 48px 0 130px;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 560px; height: 560px; right: -120px; top: -260px; background: rgba(255,255,255,.09); }
.hero::after { width: 360px; height: 360px; left: 18%; bottom: -270px; background: rgba(255,255,255,.07); }
.hero-inner { position: relative; z-index: 2; width: min(var(--container), calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .2px; }
.hero h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.18; font-weight: 800; letter-spacing: -1.4px; margin-top: 16px; max-width: 620px; }
.hero h1 em { font-style: normal; color: #ffe08a; }
.hero-copy { min-width: 0; max-width: 100%; }
.hero h1, .hero-sub { overflow-wrap: anywhere; }
.hero-sub { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.9); max-width: 540px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); padding: 8px 13px; border-radius: 10px; font-size: 12.5px; font-weight: 600; }
.hero-art { position: relative; width: 300px; height: 210px; flex: none; }
.hero-art .globe {
  position: absolute; inset: 12px 0 0 20px; width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.28), rgba(255,255,255,.05) 60%, transparent 70%);
  border: 1px solid rgba(255,255,255,.28);
}
.hero-art .globe::before, .hero-art .globe::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.hero-art .globe::before { inset: 0 55px; }
.hero-art .globe::after { inset: 55px 0; }
.hero-plane { position: absolute; right: 8px; top: 18px; color: #fff; filter: drop-shadow(0 8px 12px rgba(0,0,0,.18)); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-14px) rotate(-12deg); } }
.dash { position: absolute; width: 190px; height: 100px; left: 30px; top: 70px; border: 2px dashed rgba(255,255,255,.55); border-color: rgba(255,255,255,.55) transparent transparent transparent; border-radius: 50%; transform: rotate(-16deg); }
.cloud { position: absolute; background: rgba(255,255,255,.85); border-radius: 999px; filter: blur(.3px); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud.c1 { width: 90px; height: 24px; left: 0; bottom: 32px; opacity: .55; }
.cloud.c1::before { width: 38px; height: 38px; left: 14px; top: -16px; }
.cloud.c1::after { width: 28px; height: 28px; left: 48px; top: -10px; }
.cloud.c2 { width: 60px; height: 16px; right: 30px; bottom: 8px; opacity: .35; }
.cloud.c2::before { width: 26px; height: 26px; left: 10px; top: -12px; }

/* ---------- Search card ---------- */
.search-wrap { position: relative; z-index: 10; width: min(var(--container), calc(100% - 40px)); margin: -104px auto 0; }
.search-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: visible; border: 1px solid rgba(255,255,255,.7); }
.product-tabs { display: flex; gap: 2px; background: linear-gradient(90deg, var(--blue-800), var(--blue-600)); padding: 0 14px; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow-x: auto; scrollbar-width: none; }
.product-tabs::-webkit-scrollbar { display: none; }
.ptab { display: inline-flex; align-items: center; gap: 8px; padding: 14px 16px; border: 0; background: none; color: rgba(255,255,255,.78); font-weight: 600; font-size: 13px; position: relative; white-space: nowrap; }
.ptab:hover { color: #fff; }
.ptab.active { color: #fff; font-weight: 800; }
.ptab.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #ffcf5c; }
.search-body { padding: 22px 26px 26px; }
.trip-types { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 18px; }
.radio-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.radio-pill input { accent-color: var(--blue-700); width: 16px; height: 16px; margin: 0; }
.search-grid { display: grid; grid-template-columns: 1.15fr 1.15fr 1fr 1fr 1.15fr; gap: 12px; align-items: stretch; position: relative; }
.field {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 68px;
  display: flex; align-items: center; gap: 10px; background: #fff; cursor: pointer;
  transition: border-color .15s, box-shadow .15s; position: relative; min-width: 0;
}
.field:hover { border-color: var(--blue-300); box-shadow: 0 0 0 3px rgba(27,160,226,.08); }
.field:focus-within { border-color: var(--blue-500); }
.field.disabled { background: #f7f9fc; cursor: not-allowed; opacity: .65; }
.field.disabled:hover { border-color: var(--line); box-shadow: none; }
.field-icon { color: var(--blue-700); flex: none; }
.field-content { min-width: 0; flex: 1; }
.field-label { font-size: 11px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 2px; }
.field-value { font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.field-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.field input[type="date"] { border: 0; outline: 0; width: 100%; font-size: 13.5px; font-weight: 700; background: transparent; padding: 0; color: var(--ink); }
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
.swap-btn {
  position: absolute; z-index: 3; left: calc(21.1% - 17px); top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--blue-700); display: grid; place-items: center; box-shadow: var(--shadow-sm); padding: 0;
}
.swap-btn:hover { background: var(--blue-50); border-color: var(--blue-300); }
.pax-wrap { position: relative; }
.pax-popover {
  position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; width: 300px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 18px;
}
.pax-popover h4 { font-size: 13px; margin-bottom: 6px; }
.counter-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.counter-row:last-of-type { border-bottom: 0; }
.counter-label { font-size: 13px; font-weight: 700; }
.counter-hint { font-size: 11px; color: var(--muted); font-weight: 500; }
.counter { display: flex; align-items: center; gap: 12px; }
.counter-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--blue-700); background: #fff; color: var(--blue-700); display: grid; place-items: center; padding: 0; font-weight: 800; }
.counter-btn:hover:not(:disabled) { background: var(--blue-50); }
.counter-btn:disabled { opacity: .35; cursor: not-allowed; border-color: var(--line); color: var(--muted); }
.counter-val { min-width: 18px; text-align: center; font-weight: 800; }
.cabin-title { font-size: 12px; font-weight: 700; margin: 14px 0 8px; }
.cabin-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cabin-opt { border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 12px; font-weight: 600; background: #fff; text-align: center; }
.cabin-opt.active { border-color: var(--blue-700); background: var(--blue-50); color: var(--blue-700); font-weight: 800; }
.pax-done { margin-top: 14px; width: 100%; }
.search-extras { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.checkbox-line { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.checkbox-line input { accent-color: var(--blue-700); width: 15px; height: 15px; }
.search-actions { display: flex; gap: 10px; align-items: center; }
.search-actions .btn { min-width: 210px; }
.leg-list { display: grid; gap: 12px; }
.leg-row { border: 1px dashed var(--blue-300); border-radius: 12px; padding: 14px; background: var(--blue-50); }
.leg-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: var(--blue-800); margin-bottom: 10px; }
.leg-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; }
.link-btn { background: none; border: 0; color: var(--blue-700); font-weight: 700; font-size: 12.5px; padding: 4px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--red); }

/* ---------- Sections ---------- */
.section { width: min(var(--container), calc(100% - 40px)); margin: 46px auto 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.section-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.link-more { color: var(--blue-700); font-weight: 700; font-size: 13px; background: none; border: 0; }
.link-more:hover { text-decoration: underline; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo-card {
  position: relative; overflow: hidden; border-radius: 14px; min-height: 158px; padding: 20px;
  color: #fff; background: linear-gradient(120deg, #0a73cf, #37b0ea); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between;
  text-align: left; align-items: stretch;
}
.promo-card:nth-child(2) { background: linear-gradient(120deg, #f0621d, #ff9a44); }
.promo-card:nth-child(3) { background: linear-gradient(120deg, #0e8f7e, #35c0a5); }
.promo-card::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -50px; bottom: -80px; background: rgba(255,255,255,.13); }
.promo-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; background: rgba(255,255,255,.2); padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.promo-card h3 { font-size: 18px; font-weight: 800; line-height: 1.3; position: relative; z-index: 1; }
.promo-card p { font-size: 12px; opacity: .9; margin-top: 6px; position: relative; z-index: 1; }
.promo-card .promo-link { margin-top: 12px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dest-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; cursor: pointer; text-align: left; width: 100%; }
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dest-img { height: 130px; position: relative; background: linear-gradient(135deg, #0a73cf, #63c1ef); overflow: hidden; }
.dest-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dest-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,32,62,.35), transparent 60%); }
.dest-city { position: absolute; z-index: 2; left: 14px; bottom: 12px; color: #fff; font-weight: 800; font-size: 16px; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.dest-info { padding: 12px 14px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dest-info small { display: block; color: var(--muted); font-size: 11px; }
.dest-price { color: var(--orange); font-weight: 800; font-size: 13px; white-space: nowrap; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); }
.feature-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); margin-bottom: 12px; }
.feature h4 { font-size: 14px; font-weight: 800; }
.feature p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.app-cta { width: min(var(--container), calc(100% - 40px)); margin: 46px auto 60px; border-radius: 18px; padding: 30px 36px; background: linear-gradient(110deg, #063f7c, #0a73cf 60%, #1ba0e2); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; position: relative; }
.app-cta::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -60px; top: -140px; background: rgba(255,255,255,.08); }
.app-cta h3 { font-size: 22px; font-weight: 800; }
.app-cta p { font-size: 13px; opacity: .88; margin-top: 8px; }
.store-badges { display: flex; gap: 10px; position: relative; z-index: 1; }
.store-badge { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 10px; padding: 9px 14px; font-size: 12px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Results ---------- */
.results-bar { background: linear-gradient(100deg, var(--blue-800), var(--blue-600)); color: #fff; padding: 16px 0; }
.rb-inner { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rb-route { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; }
.rb-route .ic { color: #ffcf5c; }
.rb-meta { font-size: 12.5px; opacity: .9; margin-top: 4px; font-weight: 500; }
.rb-edit { background: #fff; color: var(--blue-700); border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 800; font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; }
.results-wrap { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; padding-bottom: 120px; }
.edit-search { margin-top: 20px; }
.leg-tabs { display: flex; gap: 10px; margin: 20px 0 0; overflow-x: auto; }
.leg-tab { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.leg-tab.active { border-color: var(--blue-700); color: var(--blue-700); background: var(--blue-50); }
.leg-tab.done .leg-check { color: var(--green); }
.leg-num { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.leg-tab.active .leg-num { background: var(--blue-700); color: #fff; }
.price-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 16px 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow-sm); }
.pc-day { border: 1px solid transparent; background: transparent; border-radius: 9px; padding: 10px 4px; text-align: center; }
.pc-day:hover { background: var(--blue-50); }
.pc-day.active { background: var(--blue-50); border-color: var(--blue-500); }
.pc-day small { display: block; font-size: 11px; color: var(--muted); }
.pc-day strong { display: block; font-size: 13px; font-weight: 800; margin-top: 3px; }
.pc-day span { display: block; font-size: 10.5px; color: var(--orange); font-weight: 700; margin-top: 2px; }
.pc-day.lowest span { color: var(--green); }
.results-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.filter-sidebar { position: sticky; top: 84px; }
.filter-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow-sm); }
.filter-title { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-group h4 { font-size: 12.5px; font-weight: 800; margin-bottom: 10px; }
.range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
input[type="range"] { width: 100%; accent-color: var(--blue-700); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 9px; font-size: 11.5px; font-weight: 600; }
.chip.active { border-color: var(--blue-700); background: var(--blue-50); color: var(--blue-700); font-weight: 800; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 12px; cursor: pointer; }
.check-row input { accent-color: var(--blue-700); width: 15px; height: 15px; }
.check-row span.count { color: var(--muted); font-size: 11px; }
.filter-toggle { display: none; }
.sort-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.result-count { font-size: 12.5px; color: var(--muted); }
.result-count strong { color: var(--ink); }
.sort-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.sort-tab { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.sort-tab.active { background: var(--blue-50); color: var(--blue-700); }
.flight-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.flight-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.flight-card.selected { border-color: var(--blue-700); box-shadow: 0 0 0 2px rgba(10,115,207,.14); }
.fc-top { display: grid; grid-template-columns: 168px 1fr 190px; gap: 16px; align-items: center; padding: 16px 18px; }
.fc-airline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.airline-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; flex: none; letter-spacing: -.5px; }
.airline-name { font-size: 12.5px; font-weight: 800; line-height: 1.25; }
.airline-meta { font-size: 11px; color: var(--muted); }
.fc-schedule { display: grid; grid-template-columns: 1fr 92px 1fr; align-items: center; gap: 6px; }
.fc-sched-end { text-align: center; }
.fc-sched-end:last-child { text-align: right; }
.time { font-size: 19px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.airport-code { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.duration-box { text-align: center; }
.duration { font-size: 11px; color: var(--muted); font-weight: 600; }
.line { height: 1px; background: var(--line); position: relative; margin: 7px 0 5px; }
.line::before, .line::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--blue-500); background: #fff; top: -3px; }
.line::before { left: 0; } .line::after { right: 0; }
.line .dot { position: absolute; left: 50%; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.stop-label { font-size: 10.5px; font-weight: 700; color: var(--blue-700); }
.stop-label.transit { color: var(--orange); }
.fc-price { text-align: right; border-left: 1px dashed var(--line); padding-left: 14px; }
.price { font-size: 19px; font-weight: 800; color: var(--orange); letter-spacing: -.6px; }
.price-note { font-size: 10.5px; color: var(--muted); margin-bottom: 8px; }
.fc-price .btn { width: 100%; padding: 9px 12px; font-size: 12.5px; }
.fc-bottom { border-top: 1px solid var(--line-2); padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fcfdff; }
.fc-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--blue-50); color: var(--blue-700); display: inline-flex; align-items: center; gap: 4px; }
.tag.orange { background: var(--orange-50); color: var(--orange-2); }
.tag.green { background: #e8f8f1; color: var(--green); }
.tag.red { background: #ffeded; color: var(--red); }
.detail-toggle { background: none; border: 0; color: var(--blue-700); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.fc-detail { border-top: 1px solid var(--line); padding: 16px 18px; background: #f8fbff; }
.segment { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 8px 0; }
.seg-time { font-size: 12px; font-weight: 800; }
.seg-time small { display: block; color: var(--muted); font-weight: 600; font-size: 10.5px; }
.seg-body { border-left: 2px solid var(--blue-300); padding-left: 14px; font-size: 12px; }
.seg-body strong { display: block; }
.seg-body small { color: var(--muted); }
.transit-note { margin: 8px 0 8px 104px; font-size: 11px; color: var(--orange-2); font-weight: 700; background: var(--orange-50); padding: 6px 10px; border-radius: 6px; width: fit-content; }
.empty-state { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 46px 20px; }
.empty-state .ic { color: var(--blue-300); }
.empty-state h3 { font-size: 16px; margin-top: 12px; }
.empty-state p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.selection-bar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20,50,90,.1); padding: 12px 0; }
.sb-inner { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sel-items { display: flex; gap: 22px; flex-wrap: wrap; }
.sel-item small { display: block; font-size: 11px; color: var(--muted); }
.sel-item strong { font-size: 13px; }
.sb-total small { display: block; font-size: 11px; color: var(--muted); }
.sb-total .price { font-size: 21px; }

/* ---------- Stepper ---------- */
.stepper-wrap { background: #fff; border-bottom: 1px solid var(--line); }
.stepper { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 16px 0; }
.step { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.step.active { color: var(--blue-700); }
.step.done { color: var(--green); }
.step-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--line-2); color: var(--muted); }
.step.active .step-num { background: var(--blue-700); color: #fff; }
.step.done .step-num { background: var(--green); color: #fff; }
.step-sep { flex: 1; height: 1px; background: var(--line); min-width: 12px; }
.page-head { width: min(var(--container), calc(100% - 40px)); margin: 22px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.page-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.back-link { background: none; border: 0; color: var(--blue-700); font-weight: 700; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Booking / Payment ---------- */
.two-col { width: min(var(--container), calc(100% - 40px)); margin: 20px auto 70px; display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 20px 22px; margin-bottom: 16px; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; }
.panel-title { font-size: 15px; font-weight: 800; }
.panel-sub { font-size: 11.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.form-field input, .form-field select {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
  outline: 0; background: #fff; font-size: 13px; transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(27,160,226,.12); }
.form-field.error input, .form-field.error select { border-color: var(--red); background: #fffafa; }
.err-msg { color: var(--red); font-size: 11px; font-weight: 600; }
.hint { font-size: 11px; color: var(--muted); }
.passenger-block { border: 1px solid var(--line-2); border-radius: 10px; padding: 16px; margin-bottom: 12px; background: #fcfdff; }
.passenger-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.passenger-head strong { font-size: 13px; }
.pill { font-size: 10.5px; font-weight: 800; background: var(--blue-50); color: var(--blue-700); border-radius: 999px; padding: 4px 10px; }
.addon-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.addon-opt { border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; background: #fff; }
.addon-opt.active { border-color: var(--blue-700); background: var(--blue-50); }
.addon-opt input { accent-color: var(--blue-700); margin-top: 2px; }
.addon-opt strong { font-size: 12.5px; display: block; }
.addon-opt small { font-size: 11px; color: var(--muted); }
.addon-opt .addon-price { color: var(--orange); font-weight: 800; font-size: 12px; display: block; margin-top: 3px; }
.sticky-summary { position: sticky; top: 84px; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); overflow: hidden; }
.summary-head { background: linear-gradient(100deg, var(--blue-800), var(--blue-600)); color: #fff; padding: 14px 18px; font-size: 14px; font-weight: 800; }
.sum-body { padding: 16px 18px; }
.sum-flight { border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.sum-flight:last-of-type { border-bottom: 0; }
.sum-route { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; }
.sum-detail { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; padding: 4px 0; }
.sum-row .muted { color: var(--muted); }
.sum-total { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; font-weight: 800; font-size: 13px; }
.sum-total .price { font-size: 20px; }
.info-note { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 9px; padding: 11px 13px; font-size: 11.5px; color: var(--blue-900); display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; }
.info-note.warning { background: var(--orange-50); border-color: #ffd8bd; color: #8a3d00; }

/* ---------- Payment methods ---------- */
.countdown { display: inline-flex; align-items: center; gap: 8px; background: var(--orange-50); border: 1px solid #ffd8bd; color: #a34400; font-weight: 800; font-size: 12.5px; padding: 9px 14px; border-radius: 9px; }
.pay-group { margin-bottom: 18px; }
.pay-group-title { font-size: 12.5px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pay-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-option { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; background: #fff; }
.pay-option:hover { border-color: var(--blue-300); }
.pay-option.active { border-color: var(--blue-700); background: var(--blue-50); box-shadow: 0 0 0 2px rgba(10,115,207,.1); }
.pay-option input { accent-color: var(--blue-700); }
.pay-logo { width: 44px; height: 32px; border-radius: 6px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; flex: none; letter-spacing: -.3px; }
.pay-option strong { display: block; font-size: 12.5px; }
.pay-option small { font-size: 10.5px; color: var(--muted); }
.pay-instruction { border: 1px solid var(--blue-100); background: var(--blue-50); border-radius: 10px; padding: 16px; margin-top: 6px; }
.pay-instruction h4 { font-size: 13px; font-weight: 800; }
.pay-instruction ol { margin: 10px 0 0; padding-left: 18px; font-size: 12px; color: var(--ink-2); line-height: 1.9; }
.va-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px dashed var(--blue-300); border-radius: 9px; padding: 12px 14px; margin-top: 12px; }
.va-box code { font-size: 16px; font-weight: 800; letter-spacing: 1px; color: var(--blue-800); }
.copy-btn { background: none; border: 0; color: var(--blue-700); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Confirmation / e-ticket ---------- */
.success-hero { width: min(820px, calc(100% - 40px)); margin: 34px auto 0; text-align: center; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: #e6f8f0; color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.success-hero h1 { font-size: 25px; font-weight: 800; }
.success-hero p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.ticket { width: min(820px, calc(100% - 40px)); margin: 24px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); overflow: hidden; }
.ticket-head { background: linear-gradient(100deg, var(--blue-800), var(--blue-600)); color: #fff; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ticket-head strong { font-size: 15px; }
.ticket-head small { display: block; opacity: .85; font-size: 11.5px; }
.status-badge { background: #d8f7e8; color: #0b7d52; font-size: 11.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.ticket-body { padding: 22px 24px; }
.ticket-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--blue-50); border: 1px dashed var(--blue-300); border-radius: 10px; padding: 14px 16px; }
.ticket-code small { display: block; font-size: 11px; color: var(--muted); }
.ticket-code strong { font-size: 22px; letter-spacing: 2px; color: var(--blue-800); }
.ticket-section { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.ticket-section:last-child { border-bottom: 0; padding-bottom: 0; }
.ticket-section h4 { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.eticket-route { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eticket-route .label { font-size: 11px; color: var(--muted); }
.eticket-route .val { font-size: 15px; font-weight: 800; }
.eticket-route .sub { font-size: 11.5px; color: var(--muted); }
.ticket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ticket-actions { width: min(820px, calc(100% - 40px)); margin: 18px auto 60px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #10263d; color: #c7d5e4; margin-top: 20px; }
.footer-grid { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; padding: 44px 0 30px; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { font-size: 12px; line-height: 1.8; margin-top: 14px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; }
.footer-col a, .footer-col button { font-size: 12px; color: #b9cadd; background: none; border: 0; padding: 0; text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: #fff; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.badge { border: 1px solid rgba(255,255,255,.2); border-radius: 5px; padding: 4px 8px; font-size: 10px; font-weight: 800; color: #dce8f4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; padding: 16px 0 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: #93a9bf; }

/* ---------- Modal & toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(9, 28, 48, .55); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.modal { background: #fff; border-radius: 16px; width: min(460px, 100%); max-height: min(80vh, 720px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal.wide { width: min(620px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-title { font-size: 15px; font-weight: 800; }
.modal-close { background: none; border: 0; color: var(--muted); padding: 4px; display: grid; place-items: center; border-radius: 6px; }
.modal-close:hover { background: var(--line-2); color: var(--ink); }
.modal-body { padding: 18px 20px 22px; overflow-y: auto; }
.airport-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin-bottom: 12px; color: var(--blue-700); }
.airport-search input { border: 0; outline: 0; flex: 1; font-size: 13px; }
.airport-list { max-height: 320px; overflow-y: auto; }
.airport-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 10px; border: 0; background: #fff; border-radius: 8px; text-align: left; border-bottom: 1px solid var(--line-2); }
.airport-item:hover { background: var(--blue-50); }
.airport-code { width: 44px; height: 32px; border-radius: 7px; background: var(--blue-50); color: var(--blue-700); font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.airport-item strong { display: block; font-size: 13px; }
.airport-item small { font-size: 11px; color: var(--muted); }
.order-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.order-item .between { font-size: 13px; }
.order-item small { font-size: 11.5px; color: var(--muted); }
.toast-root { position: fixed; z-index: 200; right: 20px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: #16304a; color: #fff; padding: 11px 16px; border-radius: 9px; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px; animation: toastIn .25s ease; max-width: 340px; }
.toast.ok { background: #0d8a5f; } .toast.err { background: #c93a2c; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav .nav-item span { display: none; }
  .nav-item { padding: 9px; }
  .header-actions .hdr-link, .locale { display: none; }
  .search-grid { grid-template-columns: 1fr 1fr 1fr; }
  .swap-btn { left: calc(33.333% - 17px); }
  .fc-top { grid-template-columns: 140px 1fr 170px; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-art { display: none; }
  .hero { padding-bottom: 120px; }
  .results-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .filter-card { display: none; }
  .filter-card.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .two-col { grid-template-columns: 1fr; }
  .sticky-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .container, .header-inner, .topbar-inner, .hero-inner, .search-wrap, .section, .app-cta,
  .results-wrap, .rb-inner, .stepper, .page-head, .two-col, .footer-grid, .footer-bottom-inner,
  .sb-inner, .success-hero, .ticket, .ticket-actions { width: calc(100% - 28px); }
  .topbar { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .main-nav, .header-actions .btn-login, .header-actions .btn-register { display: none; }
  .header-inner { height: 60px; justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .hero { padding: 32px 0 118px; }
  .hero h1 { font-size: 26px; letter-spacing: -.8px; }
  .hero h1 em { display: block; }
  .hero-sub { font-size: 13px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .search-wrap { margin-top: -96px; }
  .search-body { padding: 16px; }
  .ptab { padding: 12px; font-size: 12px; }
  .ptab .ic { width: 16px; height: 16px; }
  .search-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .search-grid .field { min-height: 62px; padding: 8px 10px; }
  .field-value { font-size: 13px; }
  .swap-btn { left: calc(50% - 17px); top: 34px; }
  .search-grid .field.pax-field { grid-column: 1 / -1; }
  .field input[type="date"] { font-size: 12px; }
  .search-extras { flex-direction: column; align-items: stretch; }
  .search-actions .btn { width: 100%; min-width: 0; }
  .leg-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid, .dest-grid, .features-grid { grid-template-columns: 1fr; }
  .promo-card { min-height: 130px; }
  .app-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .fc-top { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .fc-price { border-left: 0; border-top: 1px dashed var(--line); padding: 10px 0 0; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .fc-price .btn { width: auto; padding: 9px 20px; }
  .price-note { margin-bottom: 0; }
  .price-cal { grid-template-columns: repeat(4, 1fr); }
  .price-cal .pc-day:nth-child(n+5) { display: none; }
  .form-grid, .addon-row, .pay-options, .eticket-route, .ticket-grid { grid-template-columns: 1fr; }
  .step { font-size: 0; gap: 0; } .step .step-num { font-size: 11px; }
  .step-sep { min-width: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .pax-popover { right: auto; left: 0; width: min(300px, calc(100vw - 40px)); }
  .transit-note { margin-left: 0; }
  .segment { grid-template-columns: 70px 1fr; }
  .selection-bar .sb-inner { flex-direction: column; align-items: stretch; }
  .selection-bar .btn { width: 100%; }
}
/* ============================================================
   Integrasi ORBIS dev — status koneksi, rute dev, loading
   ============================================================ */
.api-bar { background: #0d243c; color: #cfe0f2; font-size: 11.5px; border-bottom: 1px solid rgba(255,255,255,.07); }
.api-bar.live { background: #073b2c; }
.api-bar.mock { background: #3a2a08; }
.api-bar.demo { background: #243247; }
.api-bar.loading { background: #1b2b40; }
.api-bar-inner { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; min-height: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 5px 0; }
.api-mode { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: .4px; color: #fff; }
.api-bar.live .api-mode { color: #7ce8b6; }
.api-bar.mock .api-mode { color: #ffd27a; }
.api-bar.demo .api-mode { color: #c5d3e3; }
.session-tag { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .5px; padding: 2px 6px; border-radius: 4px; margin-left: 4px; vertical-align: middle; }
.session-tag.on { background: rgba(124, 232, 182, .18); color: #7ce8b6; }
.session-tag.off { background: rgba(255, 255, 255, .12); color: #cfdcea; }
.api-meta { color: rgba(255,255,255,.72); }
.api-meta b { color: #fff; font-weight: 700; }
.api-hint { color: rgba(255,255,255,.65); }
.api-hint code, .api-flow-list code, .filter-source code, .pay-instruction code,
.price-cal-api code, .info-note code { background: rgba(127,167,210,.16); padding: 1px 5px; border-radius: 4px; font-size: 11px; }
.api-error { color: #ffb4a8; display: inline-flex; align-items: center; gap: 5px; max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.api-meta.session-warn { color: #ffd166; font-weight: 800; }
.api-reset { margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.28); color: #e5eff9; border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.api-reset:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.api-reset:disabled { opacity: .35; cursor: not-allowed; }

.dev-routes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 12px; color: var(--blue-900); }
.dev-routes > span { font-weight: 700; }
.route-chip { border: 1px solid var(--blue-300); background: #fff; color: var(--blue-800); border-radius: 8px; padding: 5px 9px; font-size: 11.5px; font-weight: 800; }
.route-chip small { color: var(--muted); font-weight: 600; margin-left: 3px; }
.route-chip:hover { background: var(--blue-100); }
.provider-pick { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; }
.provider-pick select { border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; font-size: 12px; font-weight: 700; background: #fff; }

.api-source { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--blue-700); font-weight: 700; }
.dev-route-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dev-route-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.dev-route-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.dev-route-badge { display: inline-block; background: var(--blue-50); color: var(--blue-700); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 4px 10px; }
.dev-route-codes { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin-top: 14px; color: var(--blue-800); }
.dev-route-codes .ic { color: var(--orange); }
.dev-route-desc { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.dev-route-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--blue-700); font-size: 12.5px; font-weight: 800; }

.api-source-inline { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 2px 7px; border-radius: 6px; background: var(--blue-50); color: var(--blue-700); font-size: 10.5px; font-weight: 700; }
.filter-source { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.price-cal.price-cal-api { display: flex; align-items: center; gap: 14px; padding: 16px; grid-template-columns: none; color: var(--blue-700); }
.price-cal-api .ic { flex: none; }
.price-cal-api > div { flex: 1; }
.price-cal-api strong { display: block; font-size: 13px; color: var(--ink); }
.price-cal-api small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }

.api-flow-list { display: flex; flex-wrap: wrap; gap: 8px; }
.api-flow-list span { display: inline-flex; align-items: center; gap: 5px; background: var(--blue-50); color: var(--blue-800); border-radius: 7px; padding: 6px 10px; font-size: 11.5px; font-weight: 700; }
.order-lookup { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.order-lookup label { display: block; font-size: 11.5px; font-weight: 700; color: var(--blue-900); margin-bottom: 8px; }
.order-lookup input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 12.5px; }
.order-lookup .btn { flex: none; padding: 9px 14px; }
.orbis-ticket-meta h4 { color: var(--blue-700); }
.balance-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.airport-hint { display: flex; align-items: center; gap: 6px; background: var(--blue-50); color: var(--blue-800); border-radius: 8px; padding: 8px 10px; font-size: 11.5px; margin-bottom: 8px; }

.loading-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(9, 28, 48, .45); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(2px); }
.loading-box { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 26px 32px; min-width: 300px; max-width: 420px; text-align: center; color: var(--blue-700); }
.loading-box strong { display: block; color: var(--ink); font-size: 14px; margin-top: 12px; }
.loading-box span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.loading-bar { height: 4px; border-radius: 4px; background: var(--blue-50); overflow: hidden; margin-top: 18px; }
.loading-bar i { display: block; height: 100%; width: 36%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-500), var(--blue-700)); animation: loadingSlide 1.1s ease-in-out infinite; }
@keyframes loadingSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(280%); } }

/* Tombol "Masuk dengan Google" lebih lebar dari dua tombol lama.
   Sembunyikan tautan sekunder lebih awal agar header tidak melebar. */
@media (max-width: 1320px) {
  .header-inner { gap: 14px; }
  .header-actions .hdr-link, .header-actions .locale { display: none; }
}

/* ---------- Login Google & area user ---------- */
.btn-google { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d7dee8; color: #2b3a4d; padding: 8px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow-sm); }
.btn-google:hover { border-color: var(--blue-500); background: var(--blue-50); }
.btn-google.lg, .btn.btn-google { display: flex; justify-content: center; }
.btn.btn-google { background: #fff; color: #2b3a4d; border: 1px solid #d7dee8; box-shadow: none; font-weight: 700; }
.btn.btn-google:hover { background: #f6f9fd; border-color: var(--blue-500); transform: none; }
.google-mark { flex: none; display: inline-block; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 999px; padding: 4px 12px 4px 5px; max-width: 190px; }
.user-avatar { width: 28px; height: 28px; flex: none; border-radius: 50%; background: linear-gradient(145deg, var(--blue-500), var(--blue-700)); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.user-meta { min-width: 0; line-height: 1.2; }
.user-meta strong { display: block; font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { display: block; font-size: 9.5px; color: var(--muted); }
.btn-logout { background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 700; padding: 8px 6px; }
.btn-logout:hover { color: var(--red); }

.google-login { text-align: center; padding: 6px 4px 2px; }
.google-login-mark { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.google-login h3 { font-size: 18px; font-weight: 800; }
.google-login > p { font-size: 12.5px; color: var(--muted); margin: 8px auto 16px; max-width: 380px; line-height: 1.6; }
.google-login > .info-note { text-align: left; }
.google-login > small { display: block; margin-top: 18px; font-size: 10.5px; line-height: 1.6; }
.dev-login { margin-top: 18px; border: 1px dashed var(--blue-300); border-radius: 10px; background: var(--blue-50); padding: 14px; text-align: left; }
.dev-login-head { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--blue-800); }
.dev-login p { font-size: 11px; color: var(--ink-2); margin: 6px 0 10px; line-height: 1.6; }
.dev-login input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; outline: 0; }
.dev-login input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(27,160,226,.12); }
.orders-owner { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); background: var(--blue-50); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; }
.orders-owner b { color: var(--blue-800); }
.status-badge.pending { background: #fff3d6; color: #9a6300; }
.btn-sm { padding: 6px 12px !important; font-size: 11.5px !important; border-radius: 7px !important; }

@media (max-width: 680px) {
  .api-bar-inner { width: calc(100% - 28px); gap: 8px; }
  .api-meta, .api-hint { display: none; }
  .api-error { max-width: 180px; }
  .dev-route-grid { grid-template-columns: 1fr; }
  .price-cal.price-cal-api { flex-wrap: wrap; }
  .provider-pick { margin-left: 0; }
  .user-meta { display: none; }
  .user-chip { padding: 4px; }
  .btn-google { padding: 7px 10px; font-size: 11px; }
}

@media print {
  .site-header, .topbar, .site-footer, .stepper-wrap, .ticket-actions, .toast-root, .overlay, .api-bar, .loading-overlay { display: none !important; }
  body { background: #fff; }
  .ticket { box-shadow: none; border: 1px solid #999; margin: 0 auto; width: 100%; }
  .success-hero { margin-top: 0; }
}
