@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --ink: #f4f7ff;
  --muted: #aab8d0;
  --paper: #0A192F;
  --surface: #0a192f;
  --panel: #112240;
  --line: #263957;
  --cyan: #00b4d8;
  --blue: #0077b6;
  --gold: #f7b733;
  --orange: #fc4a1a;
  --white: #f8fbff;
  --focus: #ffe08a;
  --shadow: 0 22px 64px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #315174 var(--paper); }
body {
  position: relative; isolation: isolate; min-height: 100vh; margin: 0; overflow-x: hidden;
  background: radial-gradient(ellipse at 90% 0%, rgba(0, 180, 216, .13), transparent 39rem),
              radial-gradient(ellipse at 4% 72%, rgba(0, 119, 182, .12), transparent 33rem),
              radial-gradient(ellipse at 18% 30%, rgba(247, 183, 51, .055), transparent 29rem), var(--paper);
  color: var(--ink); font: 16px/1.75 'DM Sans', 'Cairo', sans-serif;
}
html[lang="ar"] body { font-family: 'Cairo', 'DM Sans', sans-serif; }
body::before, body::after { position: fixed; z-index: -1; pointer-events: none; content: ""; width: 27rem; height: 27rem; border-radius: 50%; filter: blur(110px); opacity: .1; }
body::before { top: -18rem; inset-inline-end: -10rem; background: var(--cyan); }
body::after { bottom: -20rem; inset-inline-start: -12rem; background: var(--blue); }
a { color: #5bdaf0; text-underline-offset: 4px; }
a:hover { color: #a2f0fb; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; top: -90px; inset-inline-start: 12px; z-index: 10; }
.skip:focus { top: 12px; padding: 12px; border-radius: 10px; background: var(--panel); }

header {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1280px; margin: auto; padding: 13px 30px; border-bottom: 1px solid rgba(74, 103, 143, .48);
  background: rgba(10, 25, 47, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-size: 23px; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-shadow: 0 0 30px rgba(0, 180, 216, .14); }
.brand > img { width: 48px; height: 48px; flex: none; object-fit: contain; padding: 3px; border: 1px solid rgba(0, 180, 216, .36); border-radius: 14px; background: linear-gradient(145deg, #142d4d, #09172b); box-shadow: 0 0 26px rgba(0, 180, 216, .16); }
.brand-name span { color: var(--cyan); }
header nav { display: flex; align-items: center; gap: 18px; }
header nav a { font-size: 14px; font-weight: 700; text-decoration: none; }
.quiet { min-height: 42px; padding: 8px 15px; border: 1px solid #2d4264; border-radius: 12px; background: linear-gradient(145deg, #142a49, #0b1c34); color: var(--white); box-shadow: inset 0 1px rgba(255,255,255,.045); transition: border-color .2s, transform .2s, box-shadow .2s; }
.quiet:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(0, 180, 216, .14); transform: translateY(-1px); }

main { max-width: 1280px; margin: 0 auto; padding: 42px 30px 64px; }
.hero {
  position: relative; display: block; min-height: 0; margin: 5px 0 19px; padding: 0;
}
.hero::after { display: none; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: #63dff0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { width: 18px; height: 2px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--blue)); box-shadow: 0 0 12px rgba(0,180,216,.65); content: ""; }
.hero .eyebrow::before { background: linear-gradient(90deg, var(--cyan), var(--blue)); box-shadow: 0 0 14px rgba(0,180,216,.32); }
h1 { max-width: 740px; margin: 11px 0 14px; color: #f5f8ff; font-size: clamp(37px, 5.3vw, 62px); line-height: 1.22; letter-spacing: -.035em; text-shadow: 0 8px 45px rgba(0,180,216,.1); }
h2 { margin: 0 0 12px; font-size: 23px; line-height: 1.45; }
h3 { margin: 8px 0; font-size: 18px; line-height: 1.45; }
.intro { max-width: 710px; margin: 0; color: #bbc8dc; font-size: 17px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.hero-facts > span { display: inline-flex; align-items: baseline; gap: 7px; padding: 5px 12px; border: 1px solid rgba(74,103,143,.53); border-radius: 999px; background: rgba(5,17,33,.46); color: #bdcbe0; font-size: 12px; }
.hero-facts strong { color: var(--gold); font-size: 17px; font-variant-numeric: tabular-nums; }
.hero-art { position: relative; display: grid; min-height: 210px; place-items: center; overflow: hidden; border: 1px solid rgba(46,84,122,.38); border-radius: 20px; background: radial-gradient(ellipse at center, rgba(0,180,216,.12), transparent 60%), linear-gradient(145deg, rgba(9,29,51,.72), rgba(8,20,38,.54)); }
.hero-art::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(104,151,187,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(104,151,187,.045) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(135deg, transparent, black 45%, transparent); content: ""; }
.route-art { position: relative; z-index: 1; width: min(90%, 410px); filter: drop-shadow(0 15px 30px rgba(0,180,216,.14)); }
.art-orbit { position: absolute; width: 190px; height: 190px; border: 1px solid rgba(0,180,216,.1); border-radius: 50%; }
.orbit-one { inset-inline-start: -95px; bottom: -122px; box-shadow: 0 0 0 25px rgba(0,180,216,.025); }
.orbit-two { inset-inline-end: -110px; top: -118px; border-color: rgba(247,183,51,.12); }
.art-caption { position: absolute; inset-inline-start: 15px; bottom: 14px; display: flex; align-items: center; gap: 8px; color: #9fb1cc; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.art-caption i, .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(0,180,216,.8); }

.route-heading { margin: 0 0 24px; }
.route-heading > a { display: inline-block; margin-bottom: 16px; font-size: 14px; font-weight: 700; }
.route-heading h1 { font-size: clamp(30px, 4vw, 46px); }
.search { margin: 0 0 8px; padding: 24px 28px 16px; border: 1px solid rgba(87,118,163,.58); border-top: 3px solid var(--cyan); border-radius: 19px; background: linear-gradient(132deg, rgba(17,34,64,.98), rgba(10,25,47,.96)); box-shadow: var(--shadow), 0 0 42px rgba(0,180,216,.055); }
.search-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.search-heading .eyebrow { color: #70dff0; }
.search-heading .eyebrow::before { background: linear-gradient(90deg, var(--cyan), var(--blue)); box-shadow: 0 0 12px rgba(0,180,216,.38); }
.search-heading h2 { margin: 3px 0 0; font-size: 20px; }
.search-caption { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; }
.search-fields { display: grid; grid-template-columns: minmax(150px,1fr) 38px minmax(180px,1.15fr) minmax(125px,.72fr) auto; gap: 12px; align-items: end; }
.field { min-width: 0; }
label { display: block; margin-bottom: 7px; color: #e9f1fc; font-size: 13px; font-weight: 700; }
select, input[type="email"] { width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid #354d70; border-radius: 12px; background: #0b1b32; color: var(--white); box-shadow: inset 0 2px 5px rgba(0,0,0,.18); }
select:hover, input[type="email"]:hover { border-color: #4b7497; }
select:focus, input[type="email"]:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,216,.15); }
.route-connector { display: grid; width: 36px; height: 36px; margin-bottom: 8px; place-items: center; border: 1px solid rgba(0,180,216,.43); border-radius: 50%; background: #0a1c33; color: var(--cyan); box-shadow: 0 0 18px rgba(0,180,216,.11); }
.route-connector svg { width: 18px; height: 18px; }
.primary { position: relative; min-height: 52px; padding: 12px 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: linear-gradient(135deg, var(--cyan), var(--blue)); color: white; font-weight: 800; white-space: nowrap; box-shadow: 0 12px 30px rgba(0,119,182,.25); transition: filter .2s, transform .2s, box-shadow .2s; }
.primary:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 17px 34px rgba(0,180,216,.25); }
.primary:active { transform: translateY(0); }
.search-footnote { display: flex; align-items: center; gap: 8px; margin: 13px 2px 0; color: var(--muted); font-size: 12px; }
.search-footnote .status-dot { width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 9px rgba(0,180,216,.65); }
.hint { margin: 8px 0; color: var(--muted); font-size: 13px; }
.status { min-height: 1.3em; margin: 12px 0; color: #d4def0; }

.result { position: relative; margin: 24px 0; padding: 29px 32px; overflow: hidden; border: 1px solid #344b6e; border-radius: 19px; background: radial-gradient(ellipse at 100% 0%, rgba(0,180,216,.13), transparent 27rem), linear-gradient(145deg, #112240, #0a192f); box-shadow: var(--shadow); }
.result::before { position: absolute; top: 0; inset-inline-start: 0; width: 4px; height: 100%; background: linear-gradient(var(--cyan), var(--blue)); content: ""; }
.result h2 { margin: 8px 0 12px; font-size: 22px; }
.route-line { margin: 0; color: #f6f8ff; font-size: 16px; font-weight: 700; }
.empty-explanation { max-width: 750px; margin: 5px 0 0; color: #bdcbe0; }
.amount { color: #f7fbff; font-size: clamp(28px, 4vw, 40px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.4; text-shadow: 0 0 28px rgba(0,180,216,.16); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid rgba(0,180,216,.36); border-radius: 999px; background: rgba(0,180,216,.11); color: #85e8f5; font-size: 12px; font-weight: 700; }
.warning { border-color: rgba(247,183,51,.55); background: rgba(247,183,51,.11); color: #ffda87; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.meta { color: var(--muted); font-size: 14px; }
.price-card { margin-top: 16px; padding: 19px 21px; border: 1px solid rgba(0,180,216,.26); border-radius: 14px; background: rgba(6,20,39,.48); }
.source { padding: 18px 0; border-bottom: 1px solid rgba(80,106,147,.42); }
.source:last-child { border-bottom: 0; }
.estimate { margin: 18px 0; padding: 20px; border: 1px solid rgba(247,183,51,.31); border-inline-start: 4px solid var(--gold); border-radius: 13px; background: linear-gradient(125deg, rgba(247,183,51,.09), rgba(17,34,64,.78)); }
.estimate .amount { color: #ffe09a; font-size: 25px; }
.details-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; }
.panel { margin-bottom: 22px; padding: 25px; border: 1px solid rgba(74,103,143,.52); border-radius: 17px; background: linear-gradient(145deg, rgba(17,34,64,.96), rgba(10,25,47,.93)); box-shadow: 0 18px 44px rgba(0,0,0,.2); }
.panel h2 { margin: 0 0 6px; color: #f1f6ff; }
.panel p { color: #d1ddef; }
.panel-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; }
.panel-kicker { display: block; color: #74d7e8; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.panel-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border: 1px solid rgba(0,180,216,.28); border-radius: 13px; background: rgba(0,180,216,.08); color: var(--cyan); font-size: 22px; font-weight: 800; }
.change-panel { position: relative; padding-inline-start: 30px; border-inline-start: 3px solid var(--gold); }
.chart { width: 100%; height: 240px; border-bottom: 1px solid var(--line); }
.chart-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chart-controls button[aria-pressed="true"] { border-color: rgba(0,180,216,.65); background: linear-gradient(135deg,#087c9d,#075480); color: white; box-shadow: 0 0 20px rgba(0,180,216,.16); }
.table-wrap { overflow-x: auto; border: 1px solid rgba(74,103,143,.38); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 12px; text-align: start; border-bottom: 1px solid rgba(74,103,143,.36); }
th { background: rgba(35,53,84,.52); color: #eaf4ff; }
td { color: #cbd7e9; }
tr:last-child td { border-bottom: 0; }
.subscribe { display: grid; grid-template-columns: minmax(200px,.8fr) minmax(220px,1fr); gap: 12px 28px; margin: 30px 0; padding: 27px; border: 1px solid rgba(0,180,216,.32); border-radius: 18px; background: linear-gradient(135deg, rgba(0,180,216,.09), rgba(17,34,64,.94) 42%); box-shadow: 0 18px 50px rgba(0,0,0,.19); }
.subscribe h2 { margin: 2px 0; }
.subscribe form { display: grid; grid-column: 1/-1; gap: 13px; max-width: 650px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.consent input { margin-top: 7px; accent-color: var(--cyan); }
.error { color: #ff9885; }
.saved-route { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(80,106,147,.42); }
.links { display: flex; flex-wrap: wrap; gap: 16px; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin: 38px 0 30px; padding: 27px 0; border-top: 1px solid rgba(74,103,143,.5); border-bottom: 1px solid rgba(74,103,143,.5); }
.principles > div { padding: 4px 22px; border-inline-start: 1px solid rgba(74,103,143,.4); }
.principles > div:first-child { border-inline-start: 0; }
.principles h3 { margin: 4px 0; color: #ecf4ff; }
.principles p { margin: 0; color: var(--muted); font-size: 14px; }
.principle-number { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.destinations { padding: 17px 20px; border: 1px solid rgba(74,103,143,.42); border-radius: 13px; background: rgba(10,25,47,.48); }
.destinations summary { cursor: pointer; color: #eaf5ff; font-weight: 700; }
.destinations .links { margin-top: 14px; }
footer { max-width: 1280px; margin: auto; padding: 24px 30px 36px; border-top: 1px solid rgba(74,103,143,.5); color: var(--muted); font-size: 13px; }
footer .links { margin-bottom: 14px; }
footer p { max-width: 800px; }
.hidden, [hidden] { display: none !important; }
small { font-size: 13px; }
.no-break { white-space: nowrap; }
.loading { border-inline-start: 4px solid var(--cyan); }
::selection { background: rgba(0,180,216,.35); color: #fff; }

@media (max-width: 920px) {
  main { padding: 34px 22px 52px; }
  .hero { padding: 0; }
  .hero-art { min-height: 205px; }
  .search-fields { grid-template-columns: minmax(120px,1fr) 32px minmax(140px,1.1fr) minmax(100px,.8fr); }
  .search-fields .primary { grid-column: 1/-1; }
}
@media (max-width: 700px) {
  header { padding: 12px 17px; }
  header nav { gap: 10px; }
  header nav a { font-size: 12px; }
  .brand { gap: 9px; font-size: 18px; }
  .brand > img { width: 42px; height: 42px; }
  main { padding: 25px 16px 42px; }
  .hero { min-height: auto; padding: 0; }
  .hero h1 { max-width: 640px; font-size: clamp(35px, 9vw, 50px); }
  .hero .intro { font-size: 15px; }
  .hero-facts { gap: 7px; margin-top: 17px; }
  .hero-facts > span { padding: 4px 9px; font-size: 11px; }
  .hero-art { min-height: 180px; }
  .route-art { width: min(78%, 310px); }
  .search { padding: 19px; border-radius: 16px; }
  .search-heading { display: block; margin-bottom: 16px; }
  .search-caption { margin-top: 5px; }
  .search-fields { grid-template-columns: 1fr 34px 1fr; gap: 11px 8px; }
  .origin-field { grid-column: 1/2; }
  .route-connector { grid-column: 2/3; grid-row: 1; width: 32px; height: 32px; margin: 0 0 8px; }
  .destination-field { grid-column: 3/4; }
  .equipment-field { grid-column: 1/2; }
  .search-fields .primary { grid-column: 2/4; }
  .details-grid { grid-template-columns: 1fr; gap: 0; }
  .principles { grid-template-columns: 1fr; gap: 12px; padding: 19px 0; }
  .principles > div { padding: 4px 10px; border-inline-start: 0; border-bottom: 1px solid rgba(74,103,143,.32); }
  .principles > div:last-child { border-bottom: 0; }
  .result, .panel, .subscribe { padding: 19px; }
  .subscribe { grid-template-columns: 1fr; }
  .amount { font-size: 28px; }
  .intro { font-size: 16px; }
  footer { padding: 22px 16px 30px; }
}
@media (max-width: 420px) {
  header { gap: 8px; }
  header nav { gap: 6px; }
  header nav a { max-width: 88px; line-height: 1.3; }
  .quiet { min-height: 39px; padding: 6px 9px; }
  .brand { gap: 7px; font-size: 15px; }
  .brand > img { width: 36px; height: 36px; padding: 2px; }
  main { padding-inline: 13px; }
  .hero { padding: 0; border-radius: 0; }
  .hero h1 { font-size: 36px; }
  .search-fields { gap: 10px 6px; }
  .search-fields select { min-height: 48px; padding-inline: 8px; font-size: 13px; }
  .search-fields .primary { padding-inline: 12px; font-size: 13px; }
  .panel { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: harbor-arrive .8s ease-out both; }
  .result { animation: reveal .24s ease-out; }
  @keyframes harbor-arrive { from { opacity: .6; transform: translateY(7px); } to { opacity: 1; transform: none; } }
  @keyframes reveal { from { opacity: .7; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
