:root {
  color-scheme: dark;
  font-family: "IBM Plex Sans Arabic", Inter, system-ui, sans-serif;
  color: #f7f2ff;
  background: #0b0812;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --gold: #d7b875;
  --gold-soft: #f1d89e;
  --violet: #a35cff;
  --muted: #afa5bc;
  --panel: rgba(22, 16, 31, .88);
  --line: rgba(220, 197, 255, .13);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 82% 8%, rgba(109, 47, 175, .20), transparent 31rem),
    radial-gradient(ellipse at 4% 44%, rgba(76, 28, 132, .12), transparent 26rem),
    #0b0812;
}
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.ambient {
  position: fixed;
  z-index: -1;
  width: 19rem;
  height: 19rem;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: .12;
}
.ambient-a { inset: 17rem auto auto -12rem; background: #9b40ff; }
.ambient-b { inset: auto -12rem 4rem auto; background: #5324b8; }
.topbar, main, .footer {
  width: min(100% - 32px, 630px);
  margin-inline: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid rgba(220, 197, 255, .08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { color: var(--gold); font-size: 29px; line-height: 1; }
.brand-name { font: 700 11px Inter, sans-serif; letter-spacing: .12em; }
.brand-name b { color: var(--gold); }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d9d0e5;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255,255,255,.025);
}
.status-chip i { width: 6px; height: 6px; border-radius: 50%; background: #7bdba5; box-shadow: 0 0 10px #52d68a; }
.hero {
  position: relative;
  padding: 43px 6px 30px;
  min-height: 250px;
}
.eyebrow {
  color: var(--gold);
  font: 600 10px Inter, "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: .14em;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1.27;
  letter-spacing: -.04em;
  margin: 0;
  font-weight: 700;
}
h1 span {
  color: #c49aff;
  text-shadow: 0 0 30px rgba(163,92,255,.27);
}
.hero-copy { color: var(--muted); font-size: 14px; margin: 15px 0 0; max-width: 390px; line-height: 1.8; }
.hero-emblem {
  position: absolute;
  left: 2px;
  top: 42px;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215,184,117,.25);
  border-radius: 50%;
  color: var(--gold);
  opacity: .62;
  background: radial-gradient(circle, rgba(215,184,117,.08), transparent 70%);
}
.hero-emblem::before, .hero-emblem::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(215,184,117,.14);
  border-radius: 50%;
}
.hero-emblem::after { inset: -5px; border-style: dashed; opacity: .5; }
.hero-emblem span { font-size: 38px; transform: translateY(-4px); }
.hero-emblem small { position: absolute; bottom: 23px; font: 700 8px Inter, sans-serif; letter-spacing: .3em; }
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}
.tab {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  min-height: 45px;
  font-size: 13px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.tab span { margin-inline-end: 5px; color: var(--gold); }
.tab:hover { color: #fff; }
.tab.is-active {
  color: #fff;
  background: linear-gradient(100deg, rgba(132,70,214,.31), rgba(81,47,132,.21));
  box-shadow: inset 0 0 0 1px rgba(178,125,255,.25), 0 5px 20px rgba(77,33,130,.13);
}
.panel {
  margin-top: 14px;
  padding: clamp(18px, 5vw, 27px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0,0,0,.19);
  backdrop-filter: blur(18px);
  animation: enter .28s ease both;
}
.panel[hidden] { display: none; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
h2 { margin: 0; font-size: 21px; }
.step-badge {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-size: 10px;
  border: 1px solid rgba(215,184,117,.23);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(215,184,117,.055);
}
.selection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 8px; color: #c6bdcf; font-size: 12px; font-weight: 500; }
select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(220,197,255,.16);
  border-radius: 11px;
  background: #17111f;
  color: #f7f2ff;
  font-size: 14px;
}
select:disabled { opacity: .55; }
.route-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: #a779e6; }
.route-divider span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(163,92,255,.29)); }
.route-divider span:last-child { transform: rotate(180deg); }
.route-divider b { font-size: 14px; font-weight: 500; }
.quote-card {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: 19px;
  border: 1px solid rgba(163,92,255,.25);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(93,45,145,.22), rgba(15,11,21,.65) 62%);
}
.quote-card::after {
  content: "♛";
  position: absolute;
  left: 10px;
  bottom: -47px;
  color: rgba(215,184,117,.055);
  font-size: 120px;
  pointer-events: none;
}
.quote-topline { display: flex; justify-content: space-between; align-items: center; }
.quote-label { font-size: 12px; color: var(--gold-soft); font-weight: 600; }
.quote-tag { font-size: 10px; color: #bdb1cd; }
.quote-route { margin: 15px 0 0; font-weight: 600; font-size: 15px; }
.quote-detail { color: var(--muted); font-size: 11px; margin: 7px 0 0; line-height: 1.7; min-height: 19px; }
.quote-total { display: flex; gap: 7px; align-items: baseline; margin-top: 14px; }
.quote-total strong { color: var(--gold-soft); font: 700 31px Inter, sans-serif; letter-spacing: -.04em; }
.quote-total span { color: var(--gold); font-size: 13px; }
.quote-message { color: #c7a6f5; font-size: 11px; margin: 13px 0 0; }
.disabled-orders {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  padding: 12px;
  border: 1px solid rgba(215,184,117,.13);
  border-radius: 11px;
  color: #c9bfd1;
  background: rgba(215,184,117,.035);
}
.disabled-orders span { color: var(--gold); line-height: 1.5; }
.disabled-orders p { margin: 0; font-size: 11px; line-height: 1.65; }
.price-intro, .source-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin: -10px 0 16px; }
.price-list { display: grid; gap: 10px; }
.rank-card { border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: rgba(255,255,255,.018); }
.rank-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.rank-heading strong { font-size: 14px; }
.rank-heading span { color: var(--muted); font-size: 11px; }
.division-prices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.division-price { text-align: center; padding: 8px 2px; border-radius: 8px; background: rgba(255,255,255,.035); }
.division-price small { display: block; color: #a99db8; font-size: 9px; margin-bottom: 5px; }
.division-price b { color: var(--gold-soft); font: 600 10px Inter, sans-serif; }
.steps { margin: 11px 0 0; padding-top: 10px; border-top: 1px solid rgba(220,197,255,.08); color: #c7a6f5; font-size: 10px; line-height: 1.7; }
.source-note { margin: 15px 0 0; font-size: 10px; }
.page-message { text-align: center; color: #ffc9c9; min-height: 20px; font-size: 12px; }
.footer { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 0 28px; color: #91879d; font-size: 10px; }
.footer-crown { color: var(--gold); font-size: 17px; }
.footer-dot { color: var(--gold); }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 430px) {
  .hero { min-height: 242px; padding-top: 36px; }
  .hero-emblem { width: 68px; height: 68px; top: 39px; opacity: .38; }
  .hero-emblem span { font-size: 25px; }
  .hero-emblem small { bottom: 12px; font-size: 6px; }
  .hero-emblem::before { inset: 5px; }
  .hero-emblem::after { inset: -4px; }
  .hero-copy { max-width: 260px; font-size: 13px; }
  .division-prices { gap: 4px; }
  .division-price b { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
