:root {
  --vl-ink: #000000;
  --vl-ink-soft: #5b6b8c;
  --vl-paper: #ffffff;
  --vl-card: #ffffff;
  --vl-line: #e3e9f5;
  --vl-brand: #000000;
  --vl-brand-mid: #e67300;
  --vl-brand-deep: #081a35;
  --vl-brand-soft: #e8f1fe;
  --vl-accent: #ff8c00;
  --vl-accent-deep: #e67300;
  --vl-ok: #1a7a4c;
  --vl-err: #a11d2c;
  --vl-shadow: 0 12px 32px rgba(11, 37, 69, 0.1);
  --vl-font: Arial, Helvetica, sans-serif;
  --vl-radius: 16px;
  --vl-app-w: 390px;
  --vl-top-h: 64px;
  --vl-tab-h: 64px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--vl-paper);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; width: 0; height: 0; }
body.vl {
  margin: 0;
  font-family: var(--vl-font);
  color: var(--vl-ink);
  background: var(--vl-paper);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body.vl::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* إطار هاتف على الشاشات الكبيرة */
.vl-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  background: var(--vl-paper);
}
.vl-app {
  width: 100%;
  max-width: var(--vl-app-w);
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  background: var(--vl-paper);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: none;
  overflow: hidden;
}
.vl-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vl-main::-webkit-scrollbar { display: none; width: 0; height: 0; }
.vl-app,
.vl-shell {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vl-app::-webkit-scrollbar,
.vl-shell::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (min-width: 480px) {
  .vl-shell {
    padding: 1.25rem 1rem;
    align-items: center;
  }
  .vl-app {
    min-height: min(844px, calc(100dvh - 2.5rem));
    height: min(844px, calc(100dvh - 2.5rem));
    border-radius: 28px;
    border: 1px solid var(--vl-line);
    box-shadow: 0 12px 40px rgba(11, 31, 51, 0.1);
  }
}

a { color: var(--vl-brand-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

.vl-wrap {
  width: 100%;
  padding-inline: 1rem;
  margin-inline: auto;
}
.vl-flash-wrap { padding: 0.65rem 1rem 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.vl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 46px;
  padding: 0.55rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.12s ease;
}
.vl-btn:active { transform: scale(0.98); }
.vl-btn--solid {
  background: linear-gradient(160deg, var(--vl-accent), var(--vl-accent-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 161, 146, 0.32);
}
.vl-btn--solid:hover { color: #fff; }
.vl-btn--ghost {
  background: #fff;
  border-color: var(--vl-line);
  color: var(--vl-ink);
}
.vl-btn--brand {
  background: linear-gradient(160deg, var(--vl-brand-mid), var(--vl-brand-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 31, 51, 0.22);
}
.vl-btn--brand:hover { color: #fff; }
.vl-btn--wide { width: 100%; }
.vl-btn--sm { min-height: 38px; padding-inline: 0.75rem; font-size: 0.88rem; }
.vl-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Top bar */
.vl-top {
  position: relative;
  top: auto;
  z-index: 30;
  height: var(--vl-top-h);
  flex: 0 0 auto;
  background: #fff;
  color: var(--vl-ink);
  border-bottom: 1px solid var(--vl-line);
}
.vl-top__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0.85rem;
  padding-top: env(safe-area-inset-top);
}
.vl-top__user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.vl-top__user span {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--vl-ink-soft);
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vl-top__link {
  display: inline-flex !important;
  color: var(--vl-brand) !important;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none !important;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--vl-brand-soft);
  border: 1px solid var(--vl-line);
  flex: 0 0 auto;
}
.vl-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none !important;
  color: var(--vl-brand);
  min-width: 0;
}
.vl-brand__logo {
  height: 46px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  display: block;
  background: transparent;
}
.vl-brand__mark {
  display: none;
}
.vl-brand__text { display: none; }
.vl-top__link {
  display: none;
}

/* Bottom tabs */
.vl-tabbar {
  position: relative;
  bottom: auto;
  z-index: 30;
  margin-top: 0;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.15rem;
  min-height: var(--vl-tab-h);
  padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--vl-line);
  box-shadow: 0 -8px 24px rgba(11, 31, 51, 0.05);
}
.vl-tab {
  display: grid;
  place-items: center;
  gap: 0.1rem;
  padding: 0.35rem 0.2rem;
  border-radius: 12px;
  color: var(--vl-ink-soft) !important;
  text-decoration: none !important;
  font-size: 0.68rem;
  font-weight: 800;
}
.vl-tab__ico {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 400;
}
.vl-tab.is-active {
  color: var(--vl-brand) !important;
  background: var(--vl-brand-soft);
}

.vl-flash {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}
.vl-flash--ok { background: #e7f6ee; color: var(--vl-ok); }
.vl-flash--err { background: #fde8eb; color: var(--vl-err); }

/* Hero — mobile first */
.vl-hero {
  position: relative;
  padding: 1.25rem 0 1rem;
  color: var(--vl-ink);
  background: #fff;
}
.vl-hero__inner {
  padding-inline: 1rem;
}
.vl-hero__brand-logo {
  height: 64px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  background: transparent;
  margin-inline: auto;
}
.vl-hero__brand {
  margin: 0 0 0.75rem;
  line-height: 0;
  text-align: center;
}
.vl-hero h1 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  max-width: none;
  color: var(--vl-brand-deep);
  text-align: center;
}
.vl-hero__lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--vl-ink-soft);
  line-height: 1.45;
  text-align: center;
}
.vl-actions-row {
  justify-content: center;
}

.vl-search {
  background: #fff;
  color: var(--vl-ink);
  border-radius: 18px;
  padding: 0.85rem;
  box-shadow: var(--vl-shadow);
  display: grid;
  gap: 0.65rem;
}
.vl-search__tabs {
  display: flex;
  gap: 0.3rem;
}
.vl-search__tabs button {
  flex: 1;
  border: 0;
  background: var(--vl-paper);
  color: var(--vl-ink-soft);
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.5rem 0.4rem;
  border-radius: 999px;
  cursor: pointer;
}
.vl-search__tabs button.is-active {
  background: var(--vl-brand-soft);
  color: var(--vl-brand);
}
.vl-search__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.vl-swap {
  display: none;
}
.vl-field {
  display: grid;
  gap: 0.22rem;
}
.vl-field span {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--vl-ink-soft);
}
.vl-field input,
.vl-field select,
.vl-field textarea {
  min-height: 46px;
  border: 1px solid var(--vl-line);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: #fff;
  width: 100%;
  appearance: none;
}
.vl-field input:focus,
.vl-field select:focus,
.vl-field textarea:focus {
  outline: none;
  border-color: rgba(29, 161, 146, 0.55);
  box-shadow: 0 0 0 3px rgba(29, 161, 146, 0.14);
}
.vl-search .vl-btn { width: 100%; }

.vl-section {
  padding: 1.25rem 0 1rem;
}
.vl-section__head {
  margin-bottom: 0.85rem;
  padding-inline: 0;
}
.vl-section__head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}
.vl-section__head p {
  margin: 0.2rem 0 0;
  color: var(--vl-ink-soft);
  font-size: 0.85rem;
}

.vl-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.vl-route {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  background: var(--vl-card);
  border: 1px solid var(--vl-line);
  border-radius: 14px;
  text-decoration: none !important;
  color: inherit;
}
.vl-route:active { background: var(--vl-brand-soft); }
.vl-route strong { font-size: 0.88rem; line-height: 1.3; }
.vl-route span {
  color: var(--vl-ink-soft);
  font-size: 0.72rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vl-route em {
  font-style: normal;
  color: var(--vl-brand);
  font-weight: 800;
  font-size: 0.82rem;
}

.vl-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.vl-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--vl-line);
}
.vl-feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--vl-brand-soft);
  color: var(--vl-brand);
  font-weight: 800;
  font-size: 0.9rem;
}
.vl-feature h3 { margin: 0 0 0.2rem; font-size: 0.95rem; }
.vl-feature p { margin: 0; color: var(--vl-ink-soft); font-size: 0.82rem; }

.vl-page-head {
  padding: 1rem 0 0.35rem;
}
.vl-page-head h1 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
}
.vl-page-head p {
  margin: 0;
  color: var(--vl-ink-soft);
  font-size: 0.85rem;
  line-height: 1.45;
}

.vl-results {
  display: grid;
  gap: 0.65rem;
  padding-bottom: 0.5rem;
}
.vl-flight {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--vl-line);
  border-radius: 16px;
}
.vl-flight__airline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.92rem;
}
.vl-flight__airline span {
  font-size: 0.75rem;
  color: var(--vl-ink-soft);
  font-weight: 600;
}
.vl-flight__times {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.vl-flight__times strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.vl-flight__times small {
  display: block;
  color: var(--vl-ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}
.vl-flight__path {
  text-align: center;
  color: var(--vl-ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
}
.vl-flight__path i {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--vl-accent), transparent);
  margin: 0.3rem 0;
}
.vl-flight__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.vl-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.1rem 0.5rem;
  border-radius: 8px;
  background: var(--vl-brand-soft);
  color: var(--vl-brand-deep);
  font-size: 0.7rem;
  font-weight: 800;
}
.vl-flight__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border-top: 1px solid var(--vl-line);
  padding-top: 0.7rem;
}
.vl-flight__buy strong {
  display: block;
  font-size: 1.1rem;
  color: var(--vl-brand);
  font-weight: 800;
}
.vl-flight__buy em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--vl-ink-soft);
  font-weight: 600;
}

.vl-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--vl-line);
  border-radius: 16px;
  color: var(--vl-ink-soft);
  font-size: 0.92rem;
}

.vl-panel {
  background: #fff;
  border: 1px solid var(--vl-line);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.vl-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.vl-form { display: grid; gap: 0.75rem; }
.vl-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
.vl-summary { display: grid; gap: 0.45rem; }
.vl-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.88rem;
}
.vl-summary__row strong {
  color: var(--vl-brand);
  font-size: 1.05rem;
  font-weight: 800;
}
.vl-booking-card {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem;
  border: 1px solid var(--vl-line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 0.65rem;
}
.vl-booking-card__code {
  font-weight: 800;
  color: var(--vl-brand);
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.vl-confirm { text-align: center; padding: 1.5rem 0.75rem; }
.vl-confirm__code {
  display: inline-block;
  margin: 0.65rem 0 1rem;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  background: var(--vl-brand-soft);
  color: var(--vl-brand-deep);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.vl-foot {
  padding: 0.55rem 1rem calc(0.35rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.72rem;
  color: var(--vl-ink-soft);
  background: transparent;
}
.vl-foot p { margin: 0; }
.vl-foot a { color: var(--vl-brand); font-weight: 700; }

.vl-legal { padding: 0.75rem 0 1rem; }
.vl-legal .vl-panel h2 {
  margin-top: 1rem;
  font-size: 0.95rem;
}
.vl-legal .vl-panel h2:first-of-type { margin-top: 0.75rem; }
.vl-legal .vl-panel p { font-size: 0.88rem; color: var(--vl-ink-soft); }

/* محتوى قابل للتمرير فوق التبويب */
.vl-main > .vl-hero,
.vl-main > .vl-section,
.vl-main > .vl-page-head,
.vl-main > .vl-legal,
.vl-main > .vl-flash-wrap,
.vl-main > .pf-auth-screen {
  flex: 0 0 auto;
}
body.pf-auth .vl-main > .pf-auth-screen {
  flex: 1 1 auto;
}

/* صفحات الحجز بعمود واحد دائماً */
.vl-section .vl-wrap[style*="grid-template-columns"] {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.75rem !important;
}
