:root {
  --ink: #0f1d33;
  --navy: #0b2545;
  --navy-2: #13315c;
  --accent: #e8743b;
  --accent-dark: #c95e29;
  --sky: #eef4fb;
  --line: #dde5ef;
  --muted: #5d6b82;
  --radius: 14px;
}

html { font-size: 15px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #f7f9fc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--navy-2); }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(232, 116, 59, .45);
}

/* ----- Header / footer ----- */
.mode-banner { background: #fff4d6; color: #6b4e00; text-align: center; font-size: .85rem; padding: .4rem 1rem; }
.mode-banner--error { background: #fde2e1; color: #8a1c17; }

.site-header { background: var(--navy); }
.site-header .navbar { padding: .9rem 0; }
.site-header .nav-link, .site-header .btn-link { color: rgba(255,255,255,.85) !important; font-weight: 500; }
.site-header .nav-link:hover { color: #fff !important; }
.site-header .navbar-toggler { border-color: rgba(255,255,255,.4); }
.site-header .navbar-toggler-icon { filter: invert(1); }
.brand { color: #fff !important; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: .5rem; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); font-size: 1rem; }

.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); padding: 1.25rem 0; font-size: .9rem; }

.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ----- Hero + search ----- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #1d4e89 100%);
  color: #fff;
  padding: 3.5rem 0 4.5rem;
}
.hero h1 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(2rem, 4vw, 3rem); }
.hero .lead { color: rgba(255,255,255,.8); margin-bottom: 2rem; }

.search-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 18px 50px rgba(11,37,69,.25); }
.trip-toggle { display: flex; gap: 1.25rem; margin-bottom: .9rem; font-weight: 600; font-size: .95rem; }
.trip-toggle input { accent-color: var(--accent); margin-inline-end: .3rem; }
.search-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .75rem; align-items: end; }
.search-grid .field { grid-column: span 6; }
.search-grid .field--small { grid-column: span 4; }
.search-grid .field--submit { grid-column: span 12; }
.search-grid label { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .25rem; display: block; }
.search-grid .form-control, .search-grid .form-select { height: 48px; border-color: var(--line); }
.search-grid .form-control::placeholder { text-transform: none; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
@media (min-width: 992px) {
  .search-grid .field { grid-column: span 3; }
  .search-grid .field--small { grid-column: span 2; }
  .search-grid .field--cabin { grid-column: span 2; }
  .search-grid .field--submit { grid-column: span 4; }
}
[data-return-field].is-disabled { opacity: .45; }

.features { margin-top: 3rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; }
.feature h3 { font-size: 1.05rem; font-weight: 700; }
.feature p { color: var(--muted); margin: 0; }

/* ----- Results ----- */
.search-strip { background: var(--navy); color: #fff; padding: 1rem 0; }
.modify-search summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.modify-search summary::-webkit-details-marker { display: none; }
.modify-search summary span { color: rgba(255,255,255,.8); }
.modify-search .modify-link { margin-inline-start: auto; color: #fff; text-decoration: underline; }

.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 1rem; }

.offer-card {
  display: grid; grid-template-columns: 160px 1fr 170px; gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: .85rem;
  transition: box-shadow .15s, border-color .15s;
}
.offer-card:hover { border-color: #b9c8db; box-shadow: 0 6px 20px rgba(11,37,69,.08); }
.offer-airline { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem; }
.offer-airline img { border-radius: 8px; }
.slice-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.slice-row + .slice-row { border-top: 1px dashed var(--line); }
.slice-times strong { display: block; font-size: 1.05rem; }
.slice-times span, .slice-meta span { color: var(--muted); font-size: .85rem; }
.slice-meta { text-align: end; display: flex; flex-direction: column; }
.offer-price { text-align: end; display: flex; flex-direction: column; gap: .35rem; }
.offer-price strong { font-size: 1.4rem; font-weight: 800; }
.offer-price small { color: var(--muted); }
@media (max-width: 767px) {
  .offer-card { grid-template-columns: 1fr; }
  .offer-price { text-align: start; }
}

.empty-state { text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 3rem 1rem; }
.empty-state h2 { font-size: 1.25rem; font-weight: 700; }

/* ----- Checkout / booking ----- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.itinerary-slice { padding: .75rem 0; }
.itinerary-slice + .itinerary-slice { border-top: 1px solid var(--line); }
.segments { list-style: none; padding-inline-start: 1rem; margin: 0; border-inline-start: 2px solid var(--line); font-size: .9rem; }
.segments li { padding-block: .2rem; padding-inline-start: .5rem; }
.price-summary { position: sticky; top: 1rem; }

.confirm-banner { background: #e6f6ee; border: 1px solid #b6e3c9; color: #14532d; border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.booking-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: .06em; }

.trip-row { display: flex; justify-content: space-between; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-bottom: .75rem; color: inherit; text-decoration: none; }
.trip-row:hover { border-color: #b9c8db; }

/* ----- Account pages (register, confirm) ----- */
.auth-wrap { padding: 2.5rem 1rem 3rem; background: linear-gradient(180deg, var(--sky) 0%, #f7f9fc 70%); }
.auth-card {
  max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 37, 69, .10);
}
.auth-card--single { max-width: 540px; grid-template-columns: 1fr; }
.auth-side {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 65%, #1d4e89 100%);
  color: #fff; padding: 2.5rem 2rem; display: flex; align-items: center;
}
.auth-side h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 1.25rem 0 1.5rem; }
.auth-side .brand-mark { width: 44px; height: 44px; font-size: 1.25rem; border-radius: 12px; }
.auth-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.auth-benefits li { padding-inline-start: 2rem; position: relative; }
.auth-benefits li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: .05rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: rgba(232, 116, 59, .9); color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 700;
}
.auth-benefits strong { display: block; }
.auth-benefits span { color: rgba(255, 255, 255, .75); font-size: .92rem; }

.auth-main { padding: 2.5rem 2.25rem; }
.auth-main h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .25rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.5rem; }
.auth-main .form-label { font-weight: 600; font-size: .9rem; }
.auth-main .form-control-lg { font-size: 1rem; border-color: var(--line); }
.auth-alert:not(.validation-summary-valid) {
  background: #fdecea; border: 1px solid #f5c2bd; color: #8a1c17; border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem;
}
.auth-alert ul { margin: 0; padding-inline-start: 1.1rem; }
.auth-alert.validation-summary-valid { display: none; }

.password-field { position: relative; }
.password-field .form-control { padding-inline-end: 4.5rem; }
.password-toggle {
  position: absolute; inset-inline-end: .5rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--navy-2); font-weight: 600; font-size: .85rem; padding: .35rem .5rem;
}
.password-rules { list-style: none; padding: 0; margin: .25rem 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; font-size: .82rem; color: var(--muted); }
.password-rules li::before { content: "○"; margin-inline-end: .4rem; }
.password-rules li.is-met { color: #15803d; }
.password-rules li.is-met::before { content: "●"; }

.auth-legal { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.auth-switch { text-align: center; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.auth-switch a { font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; margin: 1.5rem 0 1rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-icon {
  width: 72px; height: 72px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center;
  background: #fdeee6; color: var(--accent); font-size: 2rem; font-weight: 800;
}
.auth-icon--success { background: #e6f6ee; color: #15803d; }
.auth-icon--warning { background: #fff4d6; color: #a16207; }
.auth-email { font-weight: 700; font-size: 1.1rem; word-break: break-all; margin-bottom: 1.5rem; }
.auth-steps { text-align: start; max-width: 360px; margin: 0 auto 1.25rem; padding-inline-start: 1.25rem; display: grid; gap: .35rem; }
.dev-box { margin-top: 1.5rem; text-align: start; border: 1px dashed #e0b25b; background: #fffaf0; border-radius: 12px; padding: 1rem; font-size: .92rem; }
.dev-box__label { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8a5a00; background: #fff0c7; border-radius: 6px; padding: .1rem .45rem; margin-bottom: .5rem; }

@media (max-width: 767px) {
  .auth-wrap { padding: 1rem .75rem 2rem; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-side { padding: 1.5rem 1.5rem; }
  .auth-side h2 { font-size: 1.25rem; margin: .75rem 0 1rem; }
  .auth-benefits span { display: none; }
  .auth-main { padding: 1.75rem 1.25rem; }
  .password-rules { grid-template-columns: 1fr; }
}

/* ===== Arabic (right-to-left) ===== */
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, "Segoe UI", Tahoma, sans-serif; }
html[lang="ar"] .hero h1, html[lang="ar"] .page-title, html[lang="ar"] .auth-main h1 { letter-spacing: 0; }
[dir="rtl"] .timeline__plane { transform: scaleX(-1); }
[dir="rtl"] .back-link::before { content: "→ "; }

/* ===== Language switcher ===== */
.lang-switch .dropdown-toggle { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.85) !important; text-decoration: none; }
.lang-switch .dropdown-menu { min-width: 9rem; border-radius: 12px; border-color: var(--line); box-shadow: 0 12px 30px rgba(11,37,69,.15); }
.lang-switch .dropdown-item.active, .lang-switch .dropdown-item:active { background: var(--accent); }
@media (min-width: 768px) { .lang-switch { margin-inline-end: .5rem; } }

/* ===== Booking progress ===== */
.steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 1.5rem 0 1.25rem; counter-reset: s; }
.steps__item { flex: 1; display: flex; align-items: center; gap: .6rem; color: var(--muted); font-weight: 600; font-size: .9rem; position: relative; }
.steps__item:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.steps__item.is-done:not(:last-child)::after { background: var(--accent); }
.steps__num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-size: .85rem; flex: none; }
.steps__item.is-current { color: var(--ink); }
.steps__item.is-current .steps__num { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(232,116,59,.15); }
.steps__item.is-done .steps__num { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 575px) { .steps__label { display: none; } .steps__item.is-current .steps__label { display: inline; } }

.page-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin: .25rem 0 0; }
.back-link { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.back-link::before { content: "← "; }
.back-link:hover { color: var(--ink); }

/* ===== Checkout ===== */
.checkout { background: linear-gradient(180deg, var(--sky) 0, #f7f9fc 320px); padding-bottom: 2rem; }
.trip-card { padding: 0; overflow: hidden; }
.trip-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.airline-badge { display: flex; align-items: center; gap: .75rem; }
.airline-badge img { border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 3px; }
.airline-badge__fallback { width: 40px; height: 40px; border-radius: 10px; background: var(--sky); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.airline-badge__name { font-weight: 700; }
.airline-badge__sub { color: var(--muted); font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: .78rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: var(--sky); color: var(--navy-2); }
.chip--good { background: #e6f6ee; color: #166534; }
.chip--good::before { content: "✓ "; }
.chip--muted { background: #f1f3f6; color: var(--muted); }
.trip-slice { padding: 1.25rem 1.4rem; }
.trip-slice + .trip-slice { border-top: 1px dashed var(--line); }
.trip-slice__label { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; color: var(--muted); font-size: .92rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--navy); color: #fff; border-radius: 6px; padding: .2rem .55rem; }
html[lang="ar"] .tag { letter-spacing: 0; }

/* Timeline: 07:05 PHX ———✈——— JFK 16:55 */
.timeline { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; }
.timeline__end { min-width: 84px; }
.timeline__end--arrive { text-align: end; }
.timeline__time { font-size: 1.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.timeline__plus { color: var(--accent); font-size: .75rem; font-weight: 700; margin-inline-start: .15rem; }
.timeline__code { font-weight: 700; color: var(--navy-2); letter-spacing: .04em; }
.timeline__city { color: var(--muted); font-size: .82rem; max-width: 140px; }
.timeline__track { text-align: center; min-width: 0; }
.timeline__duration { font-size: .82rem; color: var(--muted); font-weight: 600; }
.timeline__line { position: relative; height: 2px; background: linear-gradient(90deg, var(--line), #b9c8db, var(--line)); margin: .55rem 0; display: flex; justify-content: space-evenly; align-items: center; }
.timeline__stop { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.timeline__plane { position: absolute; inset-inline-end: -4px; top: 50%; margin-top: -9px; color: var(--navy-2); background: #fff; }
.timeline__stops { font-size: .82rem; color: var(--accent-dark); font-weight: 600; }
.timeline__stops.is-direct { color: #15803d; }
@media (max-width: 575px) {
  .timeline { gap: .6rem; }
  .timeline__end { min-width: 0; }
  .timeline__time { font-size: 1.25rem; }
  .timeline__city { display: none; }
}

.legs { margin-top: .9rem; }
.legs summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--navy-2); width: fit-content; }
.legs__list { list-style: none; padding: 0; margin: .75rem 0 0; border-inline-start: 2px solid var(--line); }
.leg { padding: .4rem 0 .6rem; padding-inline-start: 1rem; position: relative; }
.leg::before { content: ""; position: absolute; inset-inline-start: -6px; top: .75rem; width: 10px; height: 10px; border-radius: 50%; background: var(--navy-2); }
.leg__head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.leg__flight { font-size: .8rem; font-weight: 700; background: var(--sky); border-radius: 6px; padding: .05rem .4rem; }
.leg__route { display: flex; align-items: center; gap: .6rem; font-size: .92rem; margin: .2rem 0; }
.leg__dur { color: var(--muted); font-size: .8rem; flex: none; }
.leg__dur:not(:empty)::before { content: "— "; } .leg__dur:not(:empty)::after { content: " —"; }
.leg__meta { color: var(--muted); font-size: .8rem; }
.layover { margin: .25rem 0; padding: .45rem .8rem; margin-inline-start: 1rem; background: #fff7ec; color: #8a5a00; border-radius: 8px; font-size: .82rem; font-weight: 600; width: fit-content; }
.layover__long { color: var(--accent-dark); }

.section-head { margin: 2rem 0 .75rem; }
.section-head h2 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.section-head p { color: var(--muted); margin: .25rem 0 0; font-size: .92rem; }
.callout { display: flex; gap: .6rem; align-items: flex-start; background: #eef4fb; border: 1px solid #d3e2f3; color: var(--navy-2); border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; margin-bottom: 1rem; }
.callout svg { flex: none; margin-top: .1rem; }
.callout--warn { background: #fff8e6; border-color: #f5dfa8; color: #6b4e00; }

.traveller { margin-bottom: 1rem; transition: border-color .2s, box-shadow .2s; }
.traveller:focus-within { border-color: #b9c8db; box-shadow: 0 8px 24px rgba(11,37,69,.07); }
.traveller__head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.traveller__head h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.traveller__num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; flex: none; }
.traveller__type { color: var(--muted); font-size: .85rem; }
.checkout .form-label { font-weight: 600; font-size: .88rem; }
.checkout .form-control, .checkout .form-select { height: 46px; border-color: var(--line); }
.segmented { display: flex; gap: .4rem; }
.segmented .btn { flex: 1; height: 46px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--ink); display: grid; place-items: center; }
.segmented .btn-check:checked + .btn { border-color: var(--accent); background: #fdeee6; color: var(--accent-dark); }
.field-error { display: block; color: #b42318; font-size: .82rem; margin-top: .25rem; }
.field-hint { display: block; color: var(--muted); font-size: .8rem; margin-top: .25rem; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; inset-inline-start: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .form-control { padding-inline-start: 2.4rem; }
.input-validation-error, .form-control.input-validation-error { border-color: #e5484d !important; }

.book-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(11,37,69,.08); }
.book-bar__total span { display: block; color: var(--muted); font-size: .85rem; }
.book-bar__total strong { font-size: 1.6rem; font-weight: 800; }
.book-bar .btn { min-width: 210px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
@media (max-width: 575px) {
  .book-bar { position: sticky; bottom: .5rem; z-index: 5; flex-direction: row; }
  .book-bar .btn { min-width: 0; flex: 1; }
  .book-bar__total strong { font-size: 1.25rem; }
}

.summary { position: sticky; top: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; box-shadow: 0 14px 40px rgba(11,37,69,.08); }
.summary__title { font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; }
.summary__trip, .summary__lines, .trust { list-style: none; padding: 0; margin: 0; }
.summary__trip li { display: flex; flex-direction: column; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; color: var(--muted); }
.summary__route { font-weight: 700; color: var(--ink); font-size: .98rem; }
.summary__lines { margin: .75rem 0; }
.summary__lines li { display: flex; justify-content: space-between; font-size: .92rem; padding: .15rem 0; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: .75rem; margin-top: .5rem; }
.summary__total span { font-weight: 700; }
.summary__total strong { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.summary__note { color: var(--muted); font-size: .8rem; margin: .35rem 0 1rem; }
.price-hold { display: flex; gap: .5rem; align-items: center; background: #eef4fb; color: var(--navy-2); border-radius: 10px; padding: .6rem .8rem; font-size: .88rem; margin-bottom: 1rem; }
.price-hold.is-urgent { background: #fff4e5; color: #9a3412; }
.price-hold.is-expired { background: #f1f3f6; color: var(--muted); }
.trust li { font-size: .85rem; color: var(--muted); padding: .2rem 0; }
.trust li::before { content: "✓"; color: #15803d; font-weight: 800; margin-inline-end: .5rem; }

/* ===== Booking confirmation ===== */
.booking-page { background: linear-gradient(180deg, var(--sky) 0, #f7f9fc 360px); padding-bottom: 2rem; }
.success-hero { display: flex; gap: 1.25rem; align-items: center; background: linear-gradient(135deg, #0f5132 0%, #15803d 100%); color: #fff; border-radius: 20px; padding: 1.6rem 1.75rem; margin-bottom: 1.25rem; box-shadow: 0 18px 40px rgba(21,128,61,.25); }
.success-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 .25rem; }
.success-hero p { margin: 0; color: rgba(255,255,255,.88); }
.success-hero__check { flex: none; width: 64px; height: 64px; }
.success-hero__check svg { width: 64px; height: 64px; }
.success-hero__check circle { fill: rgba(255,255,255,.15); stroke: #fff; stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .6s ease-out forwards; }
.success-hero__check path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .success-hero__check circle, .success-hero__check path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 575px) { .success-hero { flex-direction: column; text-align: center; } }

.refs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; margin-bottom: 1.25rem; }
.ref { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; position: relative; }
.ref__label { color: var(--muted); font-size: .8rem; font-weight: 600; }
.ref__value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.45rem; font-weight: 800; letter-spacing: .08em; }
.ref__copy { position: absolute; top: .7rem; inset-inline-end: .7rem; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: .75rem; font-weight: 600; padding: .2rem .55rem; color: var(--navy-2); }
.ref__copy:hover { border-color: #b9c8db; }
.ref__copy.is-copied { background: #e6f6ee; border-color: #b6e3c9; color: #166534; }
.status-pill { display: inline-block; width: fit-content; font-weight: 700; font-size: .85rem; padding: .25rem .7rem; border-radius: 999px; background: #f1f3f6; color: var(--muted); }
.status-pill--ok { background: #e6f6ee; color: #166534; }
.status-pill--test { background: #fff4d6; color: #8a5a00; font-size: .75rem; }
@media (max-width: 767px) { .refs { grid-template-columns: 1fr; } }

.ticket { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 1rem; box-shadow: 0 10px 28px rgba(11,37,69,.06); position: relative; }
.ticket__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .9rem 1.4rem; color: var(--muted); font-size: .92rem; border-bottom: 2px dashed var(--line); position: relative; }
.ticket__head::before, .ticket__head::after { content: ""; position: absolute; bottom: -11px; width: 20px; height: 20px; border-radius: 50%; background: #f4f7fb; border: 1px solid var(--line); }
.ticket__head::before { inset-inline-start: -11px; clip-path: inset(0 0 0 50%); }
.ticket__head::after { inset-inline-end: -11px; clip-path: inset(0 50% 0 0); }
[dir="rtl"] .ticket__head::before { clip-path: inset(0 50% 0 0); }
[dir="rtl"] .ticket__head::after { clip-path: inset(0 0 0 50%); }
.ticket__airline { margin-inline-start: auto; font-weight: 700; color: var(--ink); }
.ticket__body { padding: 1.25rem 1.4rem; }

.panel-title { font-size: 1.05rem; font-weight: 800; margin-bottom: .9rem; }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.people li { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-2), #1d4e89); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700; flex: none; }
.paid__total { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .25rem; }

.actions-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0; }
.actions-bar .btn { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.actions-bar .btn-outline-primary { color: var(--navy-2); border-color: #c9d6e6; background: #fff; }
.actions-bar .btn-outline-primary:hover { background: var(--sky); color: var(--navy); border-color: #b9c8db; }
.actions-bar .btn-accent { margin-inline-start: auto; }
@media (max-width: 575px) { .actions-bar .btn { flex: 1 1 100%; justify-content: center; } .actions-bar .btn-accent { margin-inline-start: 0; } }

.tips { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; }
.tip { height: 100%; background: #f8fafd; border-radius: 14px; padding: 1rem; }
.tip__icon { width: 30px; height: 30px; border-radius: 50%; background: #fdeee6; color: var(--accent-dark); display: grid; place-items: center; font-weight: 800; margin-bottom: .6rem; }
.tip h3 { font-size: .98rem; font-weight: 700; margin-bottom: .3rem; }
.tip p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ===== Printing the confirmation ===== */
@media print {
  .mode-banner, .site-header, .site-footer, .actions-bar, .steps, .ref__copy, .legs summary { display: none !important; }
  .legs__list { display: block !important; }
  .booking-page, .checkout { background: #fff !important; }
  .success-hero { background: #fff !important; color: #000 !important; box-shadow: none; border: 2px solid #15803d; }
  .success-hero p { color: #333 !important; }
  .success-hero__check { display: none; }
  .ticket, .panel, .ref, .tips { box-shadow: none !important; break-inside: avoid; }
  body { background: #fff; }
}

/* ===== Payment choice at checkout ===== */
.pay-options { display: grid; gap: .75rem; }
.pay-option { display: flex; gap: .85rem; align-items: flex-start; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pay-option input { margin-top: .3rem; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.pay-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232,116,59,.12); }
.pay-option.is-disabled { opacity: .55; cursor: not-allowed; }
.pay-option__body { display: flex; flex-direction: column; gap: .2rem; }
.pay-option__title { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pay-option__text { color: var(--muted); font-size: .9rem; }
.pay-badge { font-size: .74rem; font-weight: 600; color: var(--navy-2); background: var(--sky); border-radius: 999px; padding: .15rem .6rem; }
.paylater-badge { align-self: flex-end; font-size: .74rem; font-weight: 700; color: #166534; background: #e6f6ee; border-radius: 999px; padding: .15rem .6rem; }
@media (max-width: 767px) { .paylater-badge { align-self: flex-start; } }

/* ===== Payment page ===== */
.pay-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%, #1d4e89 100%); color: #fff; border-radius: 20px; padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; box-shadow: 0 18px 40px rgba(11,37,69,.22); }
.pay-hero h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin: 0 0 .3rem; }
.pay-hero p { margin: 0; color: rgba(255,255,255,.85); max-width: 560px; }
.pay-hero--ok { background: linear-gradient(135deg, #0f5132, #15803d); display: block; }
.pay-hero--muted { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; display: block; }
.pay-hero--muted p { color: var(--muted); }
.pay-hero .pay-deadline { margin: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1rem; }
.pay-hero .pay-deadline.is-urgent { background: #fff4e5; color: #9a3412; }
.pay-deadline__abs { flex-basis: 100%; font-size: .85rem; color: rgba(255,255,255,.75) !important; margin: -.25rem 0 0 !important; }
.ref__value--money { letter-spacing: 0; font-family: inherit; }
.status-pill--wait { background: #fff4d6; color: #8a5a00; }
.status-pill--late { background: #fde2e1; color: #8a1c17; font-size: .75rem; }

.pay-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.pay-tab { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .45rem 1rem; font-weight: 700; color: var(--ink); }
.pay-tab.is-active { border-color: var(--accent); background: #fdeee6; color: var(--accent-dark); }
.pay-panel p { color: var(--muted); }
.pay-field { display: grid; grid-template-columns: minmax(130px, 34%) 1fr auto; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.pay-field__label { color: var(--muted); font-size: .88rem; }
.pay-field__value { font-weight: 700; word-break: break-word; }
.pay-field .ref__copy { position: static; }
@media (max-width: 575px) { .pay-field { grid-template-columns: 1fr auto; } .pay-field__label { grid-column: 1 / -1; margin-bottom: -.5rem; } }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; }
.btn-whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; }

/* ===== Staff payments page ===== */
.staff-card { display: grid; grid-template-columns: 1fr 260px; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: .75rem; }
.staff-card.is-overdue { border-color: #f5c2bd; background: #fffafa; }
.staff-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.staff-card__top .ref__value { font-size: 1.15rem; }
.staff-card__trip { font-size: .95rem; margin-bottom: .2rem; }
.staff-card__money { display: flex; flex-wrap: wrap; gap: .75rem; align-items: baseline; margin: .35rem 0; font-size: 1.05rem; }
.staff-card__actions { display: flex; flex-direction: column; gap: .45rem; align-items: stretch; }
@media (max-width: 767px) { .staff-card { grid-template-columns: 1fr; } }

/* ===== Pay over time ===== */
.plan-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.tila { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.tila > div { padding: .75rem .85rem; display: flex; flex-direction: column; gap: .2rem; }
.tila > div + div { border-inline-start: 1px solid var(--ink); }
.tila span { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
html[lang="ar"] .tila span { text-transform: none; letter-spacing: 0; }
.tila b { font-size: 1.35rem; }
.tila small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
@media (max-width: 767px) { .tila { grid-template-columns: 1fr 1fr; } .tila > div:nth-child(3) { border-inline-start: 0; } .tila > div:nth-child(n+3) { border-top: 1px solid var(--ink); } }
.plan-summary { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1rem; }
.plan-summary div { display: flex; flex-direction: column; }
.plan-summary span { color: var(--muted); font-size: .85rem; }
.plan-summary b { font-size: 1.2rem; }
.plan-table tr.is-next td { background: #fff7ec; font-weight: 600; }
.plan-dl { display: grid; grid-template-columns: 140px 1fr; gap: .35rem .75rem; font-size: .92rem; }
.plan-dl dt { color: var(--muted); font-weight: 600; }
.plan-dl dd { margin: 0; }
.decision { border: 2px solid var(--accent); }

/* ----- Partner agencies ----- */
.nav-link--agency { color: #ffd2bb !important; }
.agency-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #1d4e89 100%); color: #fff; padding: 3.5rem 0 4rem; }
.agency-hero h1 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 760px; }
.agency-hero .lead { color: rgba(255,255,255,.8); max-width: 640px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffb48f; margin-bottom: .6rem; }
.agency-steps__num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fdeee6; color: var(--accent-dark); font-weight: 800; margin-bottom: .7rem; }

.agency-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.agency-head__id { display: flex; align-items: center; gap: .9rem; }
.agency-head__logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--accent); font-weight: 800; font-size: 1.4rem; }
.agency-head__name { font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.agency-head__code { font-size: .85rem; color: rgba(255,255,255,.7); }
.agency-head__credit { display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
.agency-head__credit span { font-size: .8rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.agency-head__credit strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.agency-head__credit small { color: rgba(255,255,255,.7); }
.agency-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 1rem 0 1.25rem; }
.agency-tabs__link { padding: .6rem .9rem; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: .4rem; }
.agency-tabs__link:hover { color: var(--ink); }
.agency-tabs__link.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.agency-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; height: 100%; display: flex; flex-direction: column; gap: .2rem; }
.agency-stat span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.agency-stat strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.agency-stat--good strong { color: #15803d; }
.agency-stat--wait strong { color: var(--accent-dark); }
.agency-action { display: flex; align-items: center; gap: .9rem; height: 100%; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--accent); color: #fff; text-decoration: none; box-shadow: 0 8px 22px rgba(232,116,59,.3); }
.agency-action:hover { background: var(--accent-dark); color: #fff; }
.agency-action small { display: block; opacity: .9; font-size: .85rem; }
.agency-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.tx-type { font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: #f1f3f6; color: var(--muted); }
.tx-type--topup, .tx-type--refund { background: #e6f6ee; color: #166534; }
.tx-type--ticket, .tx-type--change { background: #eef4fb; color: var(--navy-2); }

.agency-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem;
  background: var(--navy); color: #fff; border-radius: 10px; padding: .7rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.agency-strip .small { font-weight: 400; color: rgba(255,255,255,.8); }

.agency-pay { padding: 1.25rem; }
.agency-pay__grid { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; gap: .75rem; align-items: start; }
.agency-pay__cell { display: flex; flex-direction: column; gap: .25rem; }
.agency-pay__cell strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.agency-pay__cell--total { background: #fdf3ec; border-radius: 10px; padding: .6rem .8rem; }
.agency-pay__cell--total strong { color: var(--accent-dark); }
.agency-pay__label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.agency-pay__sub { font-size: .8rem; color: var(--muted); }
.agency-pay__plus { font-size: 1.4rem; font-weight: 700; color: var(--muted); padding-top: 1.4rem; }
.agency-pay__credit { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: 1rem; padding: .7rem .9rem; border-radius: 10px; background: #e6f6ee; color: #166534; }
.agency-pay__credit.is-low { background: #fde2e1; color: #8a1c17; }
@media (max-width: 767px) {
  .agency-pay__grid { grid-template-columns: 1fr; }
  .agency-pay__plus { display: none; }
  .agency-head__credit { align-items: flex-start; text-align: start; }
}

.team-list { list-style: none; padding: 0; margin: 0; }
.team-list li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.team-list__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: var(--navy-2); font-weight: 800; flex: none; }
.team-list__who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.team-list__who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.agency-stat--wait { }

@media print {
  .site-header, .agency-strip, footer, .mode-banner { display: none !important; }
}

/* ----- Forgot / reset password ----- */
.auth-main > .auth-icon { margin-left: auto; margin-right: auto; }
.auth-tips { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .45rem; font-size: .88rem; color: var(--muted); }
.auth-tips li { position: relative; padding-inline-start: 1.5rem; }
.auth-tips li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: #15803d; font-weight: 700; }

/* ----- Account (Manage) area ----- */
.account-page { padding: 2rem 0 3rem; background: linear-gradient(180deg, var(--sky) 0%, #f7f9fc 55%); }
.account-head { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 1.5rem; }
.account-head__avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-size: 1.7rem; font-weight: 800; flex: none; box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.account-head__who { flex: 1; min-width: 0; }
.account-head__hello { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.7); font-weight: 600; }
.account-head h1 { font-size: 1.4rem; font-weight: 800; margin: .1rem 0 .45rem; overflow-wrap: anywhere; }
.account-head__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.account-head .account-tag { background: rgba(255,255,255,.14); color: #fff; }
.account-head .account-tag--ok { background: rgba(34,197,94,.22); color: #c9f7d9; }
.account-head .account-tag--warn { background: rgba(250,204,21,.22); color: #ffefb0; }
.account-tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: #f1f3f6; color: var(--muted); }
.account-tag--ok { background: #e6f6ee; color: #166534; }
.account-tag--warn { background: #fff4d6; color: #8a5a00; }

.account-body { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start; }
.account-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; position: sticky; top: 1rem; }
.account-nav hr { margin: .4rem .5rem; border-color: var(--line); opacity: 1; }
.account-nav__link { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.account-nav__link svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.account-nav__link:hover { background: var(--sky); color: var(--ink); }
.account-nav__link.is-active { background: #fdeee6; color: var(--accent-dark); }
.account-nav__link.is-active svg { color: var(--accent); }

.account-content { min-width: 0; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.account-card--wide { grid-column: 1 / -1; }
.account-card h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: .25rem; }
.account-card__sub { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.account-card__foot { display: flex; justify-content: space-between; gap: .5rem; padding-top: .9rem; margin-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.account-card__foot a { font-weight: 600; }
.account-form { max-width: 460px; }
.account-readonly { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; min-height: 38px; overflow-wrap: anywhere; }

.account-trip { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; border-radius: 12px; background: var(--sky); }
.account-trip__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.account-trip__route { font-size: 1.35rem; font-weight: 800; }
.account-trip__when { color: var(--muted); font-size: .9rem; }
.account-trip .btn { align-self: flex-start; }

.account-checks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.account-checks li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .8rem; border-radius: 10px; background: #f7f9fc; font-weight: 600; font-size: .92rem; }
.account-checks li span::before { display: inline-block; width: 1.4rem; font-weight: 800; }
.account-checks li.is-ok span::before { content: "✓"; color: #15803d; }
.account-checks li.is-warn span::before { content: "!"; color: #a16207; }
.account-checks li.is-off span::before { content: "○"; color: var(--muted); }
.account-checks a { font-size: .88rem; }

.account-alert { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; background: #e6f6ee; color: #166534; font-weight: 600; }
.account-alert > span:first-child { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #15803d; color: #fff; font-size: .8rem; flex: none; }
.account-alert--error { background: #fde2e1; color: #8a1c17; }
.account-alert--error > span:first-child { background: #b42318; }

/* Built-in pages (two-step sign-in, your data) are wrapped in a card by the layout */
.account-card--builtin h3, .account-card--builtin h4 { font-size: 1.15rem; font-weight: 800; }
.account-card--builtin .btn-primary { background: var(--accent); border-color: var(--accent); }

@media (max-width: 991px) {
  .account-body { grid-template-columns: 1fr; }
  .account-nav { position: static; display: flex; overflow-x: auto; gap: .25rem; padding: .35rem; }
  .account-nav hr { display: none; }
  .account-nav__link { white-space: nowrap; padding: .5rem .7rem; }
  .account-grid { grid-template-columns: 1fr; }
}

/* ----- Agency team and booking limits ----- */
.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.team-card { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; background: #fff; }
.team-card.is-blocked { background: #fafafa; border-style: dashed; }
.team-card__head { display: flex; align-items: center; gap: .7rem; }
.team-card__form { display: grid; gap: .5rem; }
.team-card__limit { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.team-card__limit .form-select { width: auto; }
.team-card__limit .input-group { width: 150px; }
.team-meter__bar { height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.team-meter__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); border-radius: 999px; }
.team-meter__text { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.team-meter__text b { color: var(--ink); }
.team-request { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.team-request:first-of-type { border-top: 0; }
.team-request__who { display: flex; flex-direction: column; gap: .1rem; }
.my-limit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.my-limit__numbers { display: flex; flex-direction: column; }
.my-limit__numbers strong { font-size: 1.5rem; font-weight: 800; }
.my-limit__form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.my-limit__form .input-group { width: 140px; }
.my-limit__form .form-control:not(.input-group .form-control) { width: 200px; }

/* ----- Hotels and cars ----- */
.hero--compact { padding: 2rem 0 2.5rem; }
.hero--compact h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.product-tabs { display: inline-flex; gap: .25rem; background: rgba(255,255,255,.12); padding: .3rem; border-radius: 12px 12px 0 0; }
.product-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 9px; color: rgba(255,255,255,.85); text-decoration: none; font-weight: 700; }
.product-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-tab:hover { color: #fff; background: rgba(255,255,255,.1); }
.product-tab.is-active { background: #fff; color: var(--ink); }
.product-tabs + .search-card { border-top-left-radius: 0; }
html[dir="rtl"] .product-tabs + .search-card { border-top-left-radius: var(--radius); border-top-right-radius: 0; }

.search-grid--stay .field--where, .search-grid--car .field--where { grid-column: span 12; }
.search-grid--stay .field--date, .search-grid--car .field--date { grid-column: span 6; }
.search-grid--car .field--time { grid-column: span 6; }
@media (min-width: 992px) {
  .search-grid--stay .field--where { grid-column: span 4; }
  .search-grid--stay .field--date { grid-column: span 2; }
  .search-grid--stay .field--small { grid-column: span 1; }
  .search-grid--stay .field--submit { grid-column: span 2; }
  .search-grid--car .field--where { grid-column: span 3; }
  .search-grid--car .field--date { grid-column: span 2; }
  .search-grid--car .field--time { grid-column: span 1; }
  .search-grid--car .field--small { grid-column: span 1; }
  .search-grid--car .field--submit { grid-column: span 2; }
}

.stay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.stay-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.stay-card:hover { box-shadow: 0 12px 30px rgba(11,37,69,.12); transform: translateY(-2px); color: inherit; }
.stay-card__photo { height: 170px; background: var(--sky) center/cover no-repeat; position: relative; }
.stay-card__stars { position: absolute; top: .6rem; inset-inline-start: .6rem; background: rgba(11,37,69,.75); color: #ffd36b; font-size: .8rem; padding: .1rem .45rem; border-radius: 6px; letter-spacing: .05em; }
.stay-card__body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.stay-card__name { font-size: 1.02rem; font-weight: 800; margin: 0 0 .2rem; }
.stay-card__addr { font-size: .82rem; color: var(--muted); margin: 0 0 .4rem; }
.stay-card__review { font-size: .82rem; color: var(--muted); margin: 0 0 .4rem; }
.stay-card__price { margin-top: auto; display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
.stay-card__price strong { font-size: 1.35rem; font-weight: 800; }
.review-badge { display: inline-block; background: var(--navy); color: #fff; font-weight: 800; font-size: .8rem; padding: .1rem .4rem; border-radius: 6px 6px 6px 0; }
.stay-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-end; margin: .5rem 0 1rem; }
.stay-head__meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; color: var(--muted); font-size: .92rem; }
.stay-stars { color: #f0a500; letter-spacing: .05em; }
.stay-head__dates { display: flex; flex-direction: column; align-items: flex-end; background: var(--sky); padding: .6rem .9rem; border-radius: 10px; font-size: .9rem; }
.stay-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 160px 160px; gap: .5rem; border-radius: var(--radius); overflow: hidden; }
.stay-gallery__item { background: var(--sky) center/cover no-repeat; }
.stay-gallery__item.is-main { grid-row: span 2; }
@media (max-width: 767px) { .stay-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 110px; } .stay-gallery__item:nth-child(n+4) { display: none; } .stay-gallery__item.is-main { grid-column: span 2; grid-row: auto; } }
.room-card { margin-bottom: 1rem; padding: 1rem 1.2rem; }
.room-card__head { display: flex; gap: .9rem; align-items: center; margin-bottom: .5rem; }
.room-card__photo { width: 84px; height: 64px; border-radius: 8px; background: var(--sky) center/cover; flex: none; }
.rate-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.rate-row__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.rate-row__price { display: flex; flex-direction: column; align-items: flex-end; text-align: end; min-width: 150px; }
.rate-row__price strong { font-size: 1.25rem; font-weight: 800; }
.chip--warn { background: #fff4d6; color: #8a5a00; }

.car-list { display: grid; gap: 1rem; }
.car-card { display: grid; grid-template-columns: 200px 1fr 190px; gap: 1.2rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.car-card__img { height: 110px; display: grid; place-items: center; }
.car-card__img img { max-width: 100%; max-height: 110px; object-fit: contain; }
.car-card__img svg { width: 70px; height: 70px; fill: none; stroke: var(--muted); stroke-width: 1.4; }
.car-card__top { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.car-card__top h3 { font-size: 1.1rem; font-weight: 800; margin: 0; }
.car-card__top small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.car-card__supplier { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; margin-top: .4rem; }
.car-card__price { display: flex; flex-direction: column; align-items: flex-end; text-align: end; gap: .1rem; }
.car-card__price strong { font-size: 1.4rem; font-weight: 800; }
.car-specs { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .85rem; color: #3b4a63; }
.car-specs li { display: inline-flex; align-items: center; gap: .3rem; }
.car-specs svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767px) {
  .car-card { grid-template-columns: 1fr; }
  .car-card__price { align-items: stretch; text-align: start; }
}

.summary__photo { height: 150px; border-radius: 10px; background: var(--sky) center/cover; margin-bottom: .9rem; }
.summary__photo--car { background-size: contain; background-repeat: no-repeat; background-color: #fff; }
.ref-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.trip-voucher { display: flex; gap: 1.2rem; align-items: center; }
.trip-voucher__img { width: 220px; height: 140px; border-radius: 10px; background: var(--sky) center/cover; flex: none; }
.trip-voucher__img.is-car { background-size: contain; background-repeat: no-repeat; background-color: #fff; }
@media (max-width: 575px) { .trip-voucher { flex-direction: column; align-items: stretch; } .trip-voucher__img { width: 100%; } }
.trip-dates { display: flex; align-items: stretch; gap: .8rem; }
.trip-dates__box { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; }
.trip-dates__box span { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.trip-dates__box b { font-size: 1.15rem; }
.trip-dates__box small { color: var(--muted); }
.trip-dates__arrow { align-self: center; font-size: 1.4rem; color: var(--muted); }
html[dir="rtl"] .trip-dates__arrow { transform: scaleX(-1); }

/* ---------- City / airport suggestion list ---------- */
.place-field { position: relative; }
.place-menu {
  position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 4px);
  margin: 0; padding: 6px; list-style: none; min-width: min(320px, 92vw);
  background: #fff; border: 1px solid #dde5ef; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 37, 69, .18); max-height: 340px; overflow-y: auto;
}
.place-menu[hidden] { display: none; }
.place-menu__item { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.place-menu__item:hover, .place-menu__item.is-active { background: #eef4fb; }
.place-menu__code {
  flex: none; min-width: 46px; text-align: center; font-weight: 700; font-size: .8rem; letter-spacing: .04em;
  color: #0b2545; background: #eef4fb; border-radius: 6px; padding: 4px 6px; direction: ltr;
}
.place-menu__item.is-active .place-menu__code, .place-menu__item:hover .place-menu__code { background: #fff; }
.place-menu__text { display: flex; flex-direction: column; min-width: 0; }
.place-menu__main { color: #0f1d33; font-weight: 600; font-size: .95rem; }
.place-menu__sub { color: #5d6b82; font-size: .8rem; unicode-bidi: plaintext; }
.place-menu__empty { padding: 10px; color: #5d6b82; font-size: .9rem; }

/* ---------- Fare rules ---------- */
.fare-rules__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fare-rules__item { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.fare-rules__icon {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: .8rem; font-weight: 800; background: #eef4fb; color: #0b2545;
}
.fare-rules__item--ok .fare-rules__icon { background: #e6f6ee; color: #166534; }
.fare-rules__item--no .fare-rules__icon { background: #fdecec; color: #b42318; }
.fare-rules__item--warn .fare-rules__icon { background: #fff4d6; color: #8a5a00; }

/* ---------- Change / cancel: customer ---------- */
.help-panel { margin-top: 24px; }
.help-kinds { display: flex; flex-wrap: wrap; gap: 10px; }
.help-kind {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #dde5ef; border-radius: 10px;
  cursor: pointer; background: #fff; font-weight: 600;
}
.help-kind:has(input:checked) { border-color: #e8743b; background: #fff6f0; }
.credit-codes { margin: 6px 0 0; padding: 8px 10px; background: #fff; border-radius: 8px; font-size: .85rem; white-space: pre-wrap; }

/* ---------- Change / cancel: staff ---------- */
.status-pill--bad { background: #fdecec; color: #b42318; }
.servicing .panel-title { margin-bottom: 12px; }
.request-list { display: grid; gap: 12px; }
.request-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.request-card__msg { white-space: pre-wrap; color: #3b4a63; }
.request-kind { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: #eef4fb; color: #0b2545; }
.request-kind--cancel { background: #fdecec; color: #b42318; }
.request-kind--change { background: #fff4d6; color: #8a5a00; }
.request-callout { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 16px; align-items: start; }
@media (max-width: 768px) { .request-callout { grid-template-columns: 1fr; } }
.slice-list { padding-inline-start: 18px; margin-bottom: 10px; }
.slice-list li { margin-bottom: 6px; }
.change-search__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #dde5ef; }
.change-search__row input { max-width: 180px; }
.change-options { display: grid; gap: 10px; }
.change-option { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 12px; border: 1px solid #dde5ef; border-radius: 12px; }
.change-option:hover { border-color: #e8743b; }
.change-option__flights { display: grid; gap: 4px; font-size: .9rem; }
.change-option__price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.change-option__price strong { font-size: 1.2rem; }
.change-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.change-compare > div { padding: 10px; border-radius: 10px; background: #f6f9fd; display: grid; gap: 4px; font-size: .9rem; }
@media (max-width: 768px) { .change-compare { grid-template-columns: 1fr; } }
.money-due { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; }
.money-due--refund { background: #e6f6ee; }
.money-due--owed { background: #fff4d6; }
.service-log { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; font-size: .85rem; color: #3b4a63; }
.service-log li { padding-bottom: 6px; border-bottom: 1px solid #eef2f7; }

/* ================= Refresh: header, menus, footer, polish ================= */
:root {
  --navy-3: #1d4e89;
  --accent-soft: #fdeee5;
  --shadow-sm: 0 1px 2px rgba(11,37,69,.06);
  --shadow-md: 0 10px 30px rgba(11,37,69,.08);
}
.ico { flex: none; vertical-align: -0.2em; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.site-header { background: var(--navy); position: sticky; top: 0; z-index: 1030; box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 20px rgba(11,37,69,.18); }
.site-header .navbar { padding: .65rem 0; }
.site-header .navbar-toggler { border: 0; color: #fff; padding: .35rem .5rem; }
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(232,116,59,.5); }
.brand { font-size: 1.15rem; }
.brand-mark { color: #fff; box-shadow: 0 6px 16px rgba(232,116,59,.35); }
.main-nav { gap: .15rem; }
.main-nav .nav-link { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .8rem !important; border-radius: 10px; }
.main-nav .nav-link:hover { background: rgba(255,255,255,.07); }
.main-nav .nav-link.is-active { background: rgba(255,255,255,.1); color: #fff !important; box-shadow: inset 0 -2px 0 var(--accent); }
.main-nav .nav-link .ico { opacity: .85; }
.nav-link--agency { color: #f9c3a5 !important; }
.nav-tools { align-items: center; gap: .35rem; }
.nav-tools .nav-link { display: inline-flex; align-items: center; gap: .4rem; }
.nav-admin { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; text-decoration: none; font-size: .92rem; }
.nav-admin:hover { background: rgba(255,255,255,.18); color: #fff; }
.nav-admin__badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; display: inline-grid; place-items: center; }
.nav-account { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; color: #fff; font-weight: 600; padding: .3rem .4rem; border-radius: 999px; }
.nav-account:hover { background: rgba(255,255,255,.08); }
.nav-account__avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: .9rem; }
.nav-cta { padding: .45rem .95rem; border-radius: 10px; }
.account-menu { min-width: 230px; padding: .4rem; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.account-menu__who { padding: .45rem .75rem .6rem; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu .dropdown-item, .lang-switch .dropdown-item { display: flex; align-items: center; gap: .6rem; border-radius: 9px; padding: .5rem .75rem; font-weight: 500; }
.lang-switch .dropdown-menu { border-radius: 14px; padding: .4rem; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.dropdown-item.active, .dropdown-item:active { background: var(--accent); color: #fff; }
@media (max-width: 991.98px) {
  .site-header .navbar-collapse { padding: .75rem 0 .5rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: .6rem; }
  .main-nav .nav-link { width: 100%; }
  .nav-tools { align-items: flex-start; flex-direction: row; flex-wrap: wrap; margin-top: .5rem; }
}

/* Footer */
.site-footer { background: #0b2545; color: #9fb0c9; border-top: 0; padding: 3rem 0 1.25rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2rem; }
@media (max-width: 767.98px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.site-footer h3 { color: #fff; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #c9d6ea; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: .9rem 0 1rem; max-width: 34ch; line-height: 1.6; }
.brand--dark { color: #fff !important; text-decoration: none; }
.footer-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .85rem; }
.footer-trust span, .footer-contact li { display: inline-flex; align-items: center; gap: .45rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.25rem; padding-top: 1.1rem; font-size: .85rem; }

/* General polish */
.btn { border-radius: 10px; font-weight: 600; }
.btn-accent { box-shadow: 0 6px 16px rgba(232,116,59,.28); }
.btn-accent:hover { transform: translateY(-1px); }
.form-control, .form-select { border-radius: 10px; border-color: #d5deea; }
.form-control:focus, .form-select:focus { border-color: var(--accent); }
.panel { box-shadow: var(--shadow-sm); }
.alert { border-radius: 12px; border: 0; }
.alert-success { background: #e6f6ee; color: #166534; }
.alert-danger { background: #fdecec; color: #8a1c17; }
.alert-warning { background: #fff4d6; color: #6b4e00; }
