:root{
  --heroImg: url('https://www.flyroyalbrunei.com/brunei/wp-content/uploads/sites/96/2021/05/Sky-Lounge-715x515px-01.jpg');
  --promoImg: url('https://www.flyroyalbrunei.com/brunei/wp-content/uploads/sites/96/2025/05/Chennai-455-x236.png');

  --ink:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --soft:#f6f7f9;
  --navy:#142D55;
  --navy2:#1B3C72;
  --gold:#c98f1e;
  --blue:#2563eb;
  --radius:16px;
  --shadow: 0 10px 28px rgba(17,24,39,.10);
  --shadow2: 0 6px 18px rgba(17,24,39,.08);
  --container: 1240px;
}
*{ 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(--ink);
  background: #ffffff;
}
.container{ width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.topbar{
  position: sticky; top:0; z-index: 30;
  background: linear-gradient(90deg, var(--navy), var(--navy2));
  color:#fff;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbar__row{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding: 10px 0;
}
.brand{ display:flex; gap:12px; align-items:center; text-decoration:none; color:#fff; min-width: 200px; flex: 0 0 auto; }
.brand__mark{ width:38px;height:38px; border-radius: 12px; display:grid; place-items:center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-weight:900; letter-spacing:.5px; }
.brand__name{ font-weight:900; line-height:1.1; }
.brand__tag{ font-size:12px; opacity:.78; }
.nav{ display:flex; gap: 12px; align-items:center; justify-content:center; flex: 1 1 auto; flex-wrap:nowrap; min-width: 220px; }
.nav__link{ color: rgba(255,255,255,.90); text-decoration:none; font-weight:700; font-size:14px; padding: 7px 9px; border-radius: 10px; white-space:nowrap; }
.nav__link:hover{ background: rgba(255,255,255,.10); }

.actions{ display:flex; align-items:center; gap:8px; flex-wrap:nowrap; justify-content:flex-end; }
.btn{ border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.10); color:#fff; font-weight:800; font-size:12px; padding: 8px 10px; line-height: 1; border-radius: 12px; cursor:pointer; white-space:nowrap; }
.btn:hover{ background: rgba(255,255,255,.16); }
.btn--primary{
  background: linear-gradient(180deg, #f1b84c, var(--gold));
  color:#1a1206;
  border: 1px solid rgba(0,0,0,.08);
}
.btn--ghost{ background: rgba(255,255,255,.06); }

.pill{ position:relative; }
.pill__btn{ display:flex; align-items:center; gap:8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color:#fff; font-weight:800; font-size:12px; padding: 8px 10px; line-height: 1; border-radius: 12px; cursor:pointer; white-space:nowrap; }
.pill__btn:hover{ background: rgba(255,255,255,.14); }
.menu{
  position:absolute; right:0; top: calc(100% + 8px);
  width: 230px;
  background:#fff; color:var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow2);
  padding: 8px;
  display:none;
}
.menu.open{ display:block; }
.menu button{
  width:100%; text-align:left;
  border:0; background:transparent;
  padding: 10px 10px;
  border-radius: 10px; cursor:pointer;
  font-weight:700; color:var(--ink);
}
.menu button:hover{ background: var(--soft); }
.menu__sep{ height:1px; background: var(--line); margin: 6px 0; }

.alert{
  display:none;
  background: #0b1220;
  color: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.alert.on{ display:block; }
.alert__row{ display:flex; gap:14px; align-items:center; padding: 10px 0; }
.alert__title{ font-weight:900; color:#fff; }
.alert__body{ font-size:13px; color: rgba(255,255,255,.82); flex:1; }
.alert__link{ color:#f1d18a; font-weight:900; text-decoration:none; }

.main{ padding: 18px 0 42px; }
.crumbs{ font-size:12px; color:var(--muted); margin: 0 0 10px; min-height: 16px; }

.layout{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 1060px){
  .layout{ grid-template-columns: 1fr 360px; align-items:start; }
}

.card{ background:#fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow2); }

.hero{
  border-radius: 22px; overflow:hidden;
  color:#fff;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  background:
    radial-gradient(1200px 500px at 30% 20%, rgba(255,255,255,.20), transparent 60%),
    linear-gradient(90deg, rgba(12,27,51,.88), rgba(27,60,114,.55)),
    var(--heroImg);
  background-size: cover;
  background-position: center;
}
.hero__row{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 22px;
}
@media (min-width: 980px){
  .hero__row{ grid-template-columns: 1.2fr .8fr; }
}
.hero h1{ margin:0 0 8px; font-size:34px; letter-spacing:-.4px; }
.hero p{ margin:0; color: rgba(255,255,255,.82); line-height:1.5; }
.hero__badge{
  display:inline-flex; align-items:center; gap:8px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  padding: 8px 10px; border-radius: 999px;
  font-weight:800; font-size:12px; margin-bottom: 12px;
}

.panel{ padding: 18px; }
.panel h2{ margin:0 0 10px; font-size:18px; }
.panel p{ margin: 0 0 12px; color: var(--muted); line-height:1.5; font-size:14px; }

.grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.widget{ grid-column: span 12; padding: 16px; }
@media (min-width: 980px){
  .widget{ grid-column: span 7; }
  .promo{ grid-column: span 5; }
  .promo2{ grid-column: span 6; }
  .promo3{ grid-column: span 6; }
}

.form{ display:grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.field{ grid-column: span 12; }
@media (min-width: 720px){
  .field.half{ grid-column: span 6; }
  .field.third{ grid-column: span 4; }
}
label{ display:block; font-size:12px; color: var(--muted); font-weight:800; margin:0 0 6px; }
input, select{
  width:100%; padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight:650;
  color: var(--ink);
}
input:focus, select:focus{ outline: 2px solid rgba(37,99,235,.20); border-color: rgba(37,99,235,.55); }

.kpiRow{ display:flex; gap:10px; flex-wrap:wrap; }
.kpi{ border: 1px solid var(--line); background: var(--soft); border-radius: 14px; padding: 10px 12px; min-width: 150px; }
.kpi__l{ font-size:11px; color: var(--muted); font-weight:900; }
.kpi__v{ font-size:14px; font-weight:900; margin-top:4px; }

.primary{ display:flex; gap:10px; align-items:center; justify-content:flex-end; margin-top: 12px; }
.btn2{ border:0; border-radius: 12px; padding: 12px 14px; font-weight:900; cursor:pointer; }
.btn2--main{ background: linear-gradient(180deg, #f1b84c, var(--gold)); color:#1a1206; }
.btn2--alt{ background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn2--alt:hover{ background:#eef2f7; }

.list{ display:flex; flex-direction:column; gap:10px; }
.flight{
  display:flex; justify-content:space-between; gap:12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.flight__left{ display:flex; flex-direction:column; gap:6px; }
.flight__title{ font-weight:900; }
.flight__meta{ color: var(--muted); font-size:13px; }
.pill2{ display:inline-flex; gap:8px; align-items:center; border-radius: 999px; padding: 6px 10px; font-weight:900; font-size:12px; border: 1px solid var(--line); background: var(--soft); }
.price{ font-weight:900; font-size:18px; }
.small{ font-size:12px; color: var(--muted); margin-top:2px; text-align:right; }
.split{ display:grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 980px){ .split{ grid-template-columns: 1.1fr .9fr; } }
.summary{ padding: 16px; }
.summary h3{ margin:0 0 10px; font-size:16px; }
.summary .row{ display:flex; justify-content:space-between; font-size:14px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary .row:last-child{ border-bottom:0; }
.summary .total{ font-weight:900; font-size:16px; }
.badge{ display:inline-flex; gap:8px; align-items:center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); font-weight:900; font-size:12px; color: var(--muted); }
.miniLink{ color: var(--blue); font-weight:900; text-decoration:none; }
.miniLink:hover{ text-decoration:underline; }

.footer{ border-top: 1px solid var(--line); padding: 16px 0; background: #fff; }
.footer__row{ display:flex; justify-content:space-between; gap:14px; align-items:center; }
.footer__small{ font-size:12px; color: var(--muted); }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* AI panel */
.ai{ overflow:hidden; }
.ai__head{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(20,45,85,.06), rgba(37,99,235,.06));
}
.ai__title{ font-weight:950; }
.ai__sub{ font-size:12px; color: var(--muted); margin-top:2px; }
.ai__body{
  padding: 12px;
  height: 360px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.msg{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.avatar{
  width:28px;height:28px;border-radius:10px;
  display:grid; place-items:center;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.18);
  font-weight:900;
  color: var(--blue);
  flex:0 0 auto;
}
.bubble{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px 10px;
  box-shadow: var(--shadow2);
  font-size:13px;
  line-height:1.4;
}
.bubble strong{ font-weight:900; }
.bubble .k{ color: var(--muted); font-weight:900; font-size:12px; }
.bubble .actionsRow{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.smallBtn{
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
}
.smallBtn:hover{ background:#eef2f7; }
.smallBtn.primary{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.22);
  color: var(--blue);
}

.ai__chips{ display:flex; gap:8px; padding: 10px 12px; flex-wrap:wrap; border-top: 1px solid var(--line); background:#fff; }
.chip{
  border: 1px solid rgba(37,99,235,.22);
  background: rgba(37,99,235,.08);
  color: var(--blue);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
}
.chip:hover{ filter:brightness(1.02); }

.ai__composer{
  display:flex; gap:8px; padding: 10px 12px;
  border-top: 1px solid var(--line);
  background:#fff;
}
.ai__composer input{
  flex:1;
  border-radius: 12px;
}
.ai__hint{
  padding: 10px 12px 14px;
  font-size:12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background:#fff;
}

.iconBtn{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight:900;
  cursor:pointer;
}
.iconBtn:hover{ background: var(--soft); }

/* Modal */
.modal{ position:fixed; inset:0; display:none; z-index:50; }
.modal.on{ display:block; }
.modal__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.45); }
.modal__card{
  position:relative;
  width: min(720px, calc(100% - 30px));
  margin: 8vh auto 0;
  background:#fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal__head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.modal__title{ font-weight:950; }
.modal__body{ padding: 14px; color: var(--ink); font-size:14px; line-height:1.5; }
.modal__actions{ padding: 12px 14px; border-top: 1px solid var(--line); display:flex; justify-content:flex-end; gap:10px; background:#fff; }

/* Dark-site mode */
body.darksite{ background: #0b1220; }
body.darksite .main{ background: #0b1220; }
body.darksite .card, body.darksite .flight, body.darksite .bubble, body.darksite .modal__card{
  background: #0f1a2e;
  border-color: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
}
body.darksite input, body.darksite select{
  background: #0b1220;
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
}
body.darksite label, body.darksite .crumbs, body.darksite .footer__small, body.darksite .ai__sub{ color: rgba(255,255,255,.70); }
body.darksite .badge, body.darksite .kpi, body.darksite .smallBtn, body.darksite .iconBtn, body.darksite .modal__head{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
}
body.darksite .btn2--alt{ background: rgba(255,255,255,.08); color: rgba(255,255,255,.92); border-color: rgba(255,255,255,.14); }
body.darksite .footer{ background:#0b1220; border-color: rgba(255,255,255,.10); }
body.darksite .modal__backdrop{ background: rgba(0,0,0,.62); }


/* Animations */
@keyframes shimmer{
  0%{ background-position: -700px 0; }
  100%{ background-position: 700px 0; }
}
@keyframes pulse{
  0%,100%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(1.02); opacity: .92; }
}
@keyframes dots{
  0%{ content:''; }
  33%{ content:'.'; }
  66%{ content:'..'; }
  100%{ content:'...'; }
}

/* Loader overlay */
.loader{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}
.loader.on{ display:flex; }
.loader::before{
  content:'';
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.50);
}
.loader__card{
  position: relative;
  width: min(540px, calc(100% - 30px));
  background:#fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
  overflow:hidden;
  animation: pulse 1.6s ease-in-out infinite;
}
.loader__title{ font-weight:950; font-size:16px; }
.loader__sub{ color: var(--muted); font-size:13px; margin-top:4px; }
.progress{
  margin-top: 14px;
  height: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow:hidden;
}
.progress__bar{
  height:100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(37,99,235,.35), rgba(37,99,235,.9));
  transition: width .25s ease;
}
.loader__meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top: 10px;
}
.pill3{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-weight:900;
  font-size:12px;
  color: var(--muted);
}

/* Skeleton cards */
.skel{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.skel__line{
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 50%, #eef2f7 100%);
  background-size: 1400px 100%;
  animation: shimmer 1.4s linear infinite;
  margin-bottom: 10px;
}
.skel__line.w80{ width:80%; }
.skel__line.w60{ width:60%; }
.skel__line.w40{ width:40%; }
.skel__row{ display:flex; gap:12px; align-items:center; justify-content:space-between; }
.skel__pill{ width:120px; height: 26px; border-radius: 999px; }

/* AI typing */
.typing{
  display:inline-flex;
  gap:6px;
  align-items:center;
  color: var(--muted);
  font-weight:900;
  font-size:12px;
}
.dot{
  width:6px; height:6px; border-radius:50%;
  background: rgba(37,99,235,.55);
  animation: typingDot 1s infinite ease-in-out;
}
.dot:nth-child(2){ animation-delay: .15s; }
.dot:nth-child(3){ animation-delay: .3s; }
@keyframes typingDot{
  0%,100%{ transform: translateY(0); opacity:.5; }
  50%{ transform: translateY(-4px); opacity:1; }
}

/* Micro-interactions */
.flight, .card, .btn2, .smallBtn { transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.flight:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }
.btn2:active, .smallBtn:active{ transform: translateY(1px); }


/* Auto demo helpers */
.spotlight{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 55;
  pointer-events: none;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%),
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 120px,
    rgba(0,0,0,.48) 160px,
    rgba(0,0,0,.58) 100%);
}
.spotlight.on{ display:block; }
.demoCursor{
  position: fixed;
  left: -100px; top:-100px;
  width: 28px; height: 28px;
  z-index: 56;
  pointer-events: none;
  display:none;
}
.demoCursor.on{ display:block; }
.demoCursor__dot{
  width: 10px; height:10px; border-radius: 50%;
  background: rgba(241,184,76,.95);
  border: 2px solid rgba(0,0,0,.20);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
@keyframes highlightPulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(241,184,76,.0); }
  50%{ box-shadow: 0 0 0 6px rgba(241,184,76,.35); }
}
.demoTarget{
  animation: highlightPulse 1.2s ease-in-out infinite;
  border-radius: 12px;
}


/* Coachmark tooltip */
.coach{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 57;
  pointer-events: none;
}
.coach.on{ display:block; }
.coach__card{
  position:absolute;
  max-width: 320px;
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
}
.coach__title{ font-weight:950; font-size:12px; color: var(--muted); letter-spacing:.4px; text-transform: uppercase; }
.coach__body{ margin-top:6px; font-size:13px; line-height:1.35; color: var(--ink); }
.coach__meta{
  margin-top:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.coach__step{ font-size:12px; color: var(--muted); font-weight:900; }

/* Header responsive tightening */
@media (max-width: 860px){
  .topbar__row{ flex-wrap:wrap; }
  .nav{ order:3; width:100%; justify-content:flex-start; overflow:auto; padding-top:6px; }
  .actions{ order:2; margin-left:auto; }
  .brand{ order:1; }
}


/* Demo toast */
.toast{
  position: fixed;
  left: 16px;
  bottom: 16px;
  display:none;
  z-index: 58;
  background: rgba(17,24,39,.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 10px 12px;
  gap:10px;
  align-items:center;
  box-shadow: var(--shadow2);
}
.toast.on{ display:flex; }
.toast__dot{
  width:10px; height:10px;
  border-radius:50%;
  background: rgba(241,184,76,.95);
}
.toast__text{ font-weight:900; font-size:12px; opacity:.95; }

/* Header wrap safeguard (prevents cramped overlap when controls increase) */
@media (max-width: 1100px){
  .topbar__row{ flex-wrap:wrap; align-items:flex-start; }
  .nav{ order:3; width:100%; justify-content:flex-start; overflow:auto; padding-top:6px; }
  .actions{ order:2; width:100%; justify-content:flex-start; flex-wrap:wrap; gap:8px; }
}

.speedPrefix{ opacity:.9; }
@media (max-width: 980px){
  .speedPrefix{ display:none; }
}

.icon{
  display:inline-flex;
  width:18px;
  height:18px;
  align-items:center;
  justify-content:center;
  margin-right:6px;
  opacity:.95;
  font-size:14px;
}

/* Promo background (campaign style) */
.promoBg{ position: relative; overflow:hidden; }
.promoBg::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(12,27,51,.55), rgba(12,27,51,.15)),
    var(--promoImg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02);
}
.promoBg > *{ position:relative; }
.promoBg h2, .promoBg p, .promoBg a{ color: rgba(255,255,255,.92); }
.promoBg p{ color: rgba(255,255,255,.78); }
.promoBg .badge{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.85); }
.promoBg .miniLink{ color: #f1d18a; }
