:root {
  --bg: #070b10;
  --surface: #0d1319;
  --surface-2: #101820;
  --line: rgba(213, 225, 236, 0.17);
  --ink: #f7fafc;
  --muted: #b7c0c9;
  --blue: #247ee9;
  --green: #55ad2b;
  --font-ar: "Tajawal", Arial, sans-serif;
  --font-en: "Cairo", Arial, sans-serif;
}

/* Preserve the wordmark aspect ratio when explicit intrinsic dimensions are present. */
.brand img,footer img{height:auto}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 700 16px/1.55 var(--font-ar);
  overflow-x: hidden;
}
html[dir="ltr"] body {
  font-family: var(--font-en);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.detail-shell {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}
.detail-header {
  padding: 14px 0;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 12, 17, 0.94);
}
.brand {
  width: 172px;
}
.brand img {
  width: 100%;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.language-toggle,
.theme-toggle,
.back-link {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: transparent;
  color: var(--ink);
}
.language-toggle {
  padding: 0 15px;
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
}
.theme-toggle svg {
  width: 21px;
  stroke-width: 1.7;
}
.back-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
}
.back-link svg {
  width: 17px;
  stroke-width: 2;
}
.package-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.78) saturate(0.75) contrast(1.07);
}
/* Platinum has intentional empty room on the source's left edge; crop it inside the frame. */
@media (min-width: 761px) {
  body[data-plan="platinum"] .hero-photo {
    transform: translateX(-3%) scale(1.12);
    transform-origin: center;
  }
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      270deg,
      rgba(6, 10, 15, 0.94) 0%,
      rgba(6, 10, 15, 0.76) 38%,
      rgba(6, 10, 15, 0.12) 76%
    ),
    linear-gradient(0deg, rgba(6, 10, 15, 0.76), rgba(6, 10, 15, 0.03) 58%);
}
.hero-content {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 7%;
  width: min(490px, 48%);
  transform: translateY(-50%);
}
.eyebrow,
.section-heading span,
.fit-label,
.final-cta > div > span {
  color: var(--green);
  font-size: 0.86rem;
}
.hero-content h1 {
  margin: 8px 0 12px;
  font: 800 clamp(2.7rem, 5.2vw, 5rem) / 0.98 var(--font-en);
  letter-spacing: -0.04em;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero-description {
  max-width: 470px;
  margin: 0 0 25px;
  color: #edf2f5;
  font-size: 1.05rem;
  line-height: 1.8;
}
.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 21px;
  border-radius: 15px;
  background: #2d941e;
  color: #fff;
  transition:
    transform 0.2s,
    background 0.2s;
}
.whatsapp-cta:hover {
  transform: translateY(-2px);
  background: #248316;
}
.whatsapp-cta svg {
  width: 20px;
  stroke-width: 1.8;
}
.package-facts {
  width: min(100%, 680px);
  margin: 20px auto 0;
  margin-inline-start: 0;
  margin-inline-end: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.package-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 88px;
  padding: 22px 26px;
}
.package-fact + .package-fact {
  border-top: 1px solid var(--line);
}
.price-fact {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}
.price-list {
  display: grid;
  width: min(100%, 460px);
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  color: var(--ink);
  font-size: 1.12rem;
}
.price-row + .price-row {
  border-top: 1px solid rgba(213, 225, 236, 0.1);
}
.vehicle-label,
.fact-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.vehicle-bullet {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(36, 126, 233, 0.12);
}
.fact-icon {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  color: var(--green);
  stroke-width: 1.7;
}
.price-fact .fact-label {
  color: var(--green);
}
.fact-label {
  color: var(--muted);
  font-size: 1rem;
}
.package-fact strong {
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 1.32rem;
  white-space: nowrap;
}
html[dir="ltr"] .package-fact strong {
  font-family: var(--font-en);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 20px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.included-panel,
.fit-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 30px;
}
.section-heading h2,
.fit-panel h2,
.final-cta h2 {
  margin: 3px 0 0;
  font-size: 1.7rem;
  line-height: 1.25;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 22px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}
.feature i {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: rgba(85, 173, 43, 0.14);
  color: var(--green);
  font-style: normal;
  font-size: 0.9rem;
}
.feature span {
  font-size: 0.92rem;
  line-height: 1.45;
}
.fit-panel {
  display: flex;
  flex-direction: column;
}
.fit-panel h2 {
  margin-top: 7px;
}
.fit-panel > p {
  margin: 13px 0 25px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}
.promise {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.promise svg {
  width: 38px;
  color: var(--green);
  stroke-width: 1.7;
}
.promise div {
  display: flex;
  flex-direction: column;
}
.promise span {
  color: var(--muted);
  font-size: 0.78rem;
}
.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 40px;
  padding: 28px 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(120deg, #111b24, #0c1319);
}
footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer img {
  width: 135px;
}
footer span {
  font-size: 0.78rem;
}
html[dir="ltr"] .hero-shade {
  background: linear-gradient(
      90deg,
      rgba(6, 10, 15, 0.94) 0%,
      rgba(6, 10, 15, 0.76) 38%,
      rgba(6, 10, 15, 0.12) 76%
    ),
    linear-gradient(0deg, rgba(6, 10, 15, 0.76), rgba(6, 10, 15, 0.03) 58%);
}
html[dir="ltr"] .hero-content {
  right: auto;
  left: 7%;
}
html[dir="ltr"] .back-link svg {
  transform: scaleX(-1);
}
body[data-theme="light"] {
  --bg: #eef4f6;
  --surface: #fff;
  --surface-2: #f5f8fa;
  --line: rgba(11, 28, 42, 0.14);
  --ink: #0b1c2a;
  --muted: #536573;
}
body[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.94);
}
body[data-theme="light"] .package-hero {
  border-color: rgba(11, 28, 42, 0.12);
}
body[data-theme="light"] .hero-photo {
  filter: brightness(0.94) saturate(0.92) contrast(1.05);
}
body[data-theme="light"] .hero-shade {
  background: linear-gradient(
      270deg,
      rgba(6, 10, 15, 0.94) 0%,
      rgba(6, 10, 15, 0.76) 38%,
      rgba(6, 10, 15, 0.12) 76%
    ),
    linear-gradient(0deg, rgba(6, 10, 15, 0.76), rgba(6, 10, 15, 0.03) 58%);
}
html[dir="ltr"] body[data-theme="light"] .hero-shade {
  background: linear-gradient(
      90deg,
      rgba(6, 10, 15, 0.94) 0%,
      rgba(6, 10, 15, 0.76) 38%,
      rgba(6, 10, 15, 0.12) 76%
    ),
    linear-gradient(0deg, rgba(6, 10, 15, 0.76), rgba(6, 10, 15, 0.03) 58%);
}
body[data-theme="light"] .hero-content,
body[data-theme="light"] .hero-description {
  color: #fff;
}
body[data-theme="light"] .final-cta {
  background: #fff;
}
body[data-theme="light"] footer .brand-light {
  display: block;
}
@media (max-width: 760px) {
  .detail-shell {
    width: min(100% - 28px, 560px);
  }
  .detail-header {
    padding: 10px 0;
  }
  .topbar {
    height: 61px;
    padding: 0 14px;
    border-radius: 17px;
  }
  .brand {
    width: 133px;
  }
  .header-actions {
    gap: 6px;
  }
  .language-toggle {
    padding: 0 10px;
    font-size: 0.74rem;
  }
  .language-toggle,
  .theme-toggle,
  .back-link {
    height: 36px;
    border-radius: 11px;
  }
  .theme-toggle {
    width: 36px;
  }
  .back-link {
    padding: 0 9px;
  }
  .back-link span {
    display: none;
  }
  .package-hero {
    height: 520px;
    border-radius: 18px;
  }
  .hero-photo {
    object-position: 62% center;
  }
  .hero-shade {
    background: linear-gradient(
        270deg,
        rgba(6, 10, 15, 0.95) 0%,
        rgba(6, 10, 15, 0.78) 42%,
        rgba(6, 10, 15, 0.16) 82%
      ),
      linear-gradient(0deg, rgba(6, 10, 15, 0.83), rgba(6, 10, 15, 0.04) 56%);
  }
  html[dir="ltr"] .hero-shade {
    background: linear-gradient(
        90deg,
        rgba(6, 10, 15, 0.96) 0%,
        rgba(6, 10, 15, 0.78) 43%,
        rgba(6, 10, 15, 0.13) 83%
      ),
      linear-gradient(0deg, rgba(6, 10, 15, 0.83), rgba(6, 10, 15, 0.04) 56%);
  }
  body[data-theme="light"] .hero-shade {
    background: linear-gradient(
        270deg,
        rgba(6, 10, 15, 0.84) 0%,
        rgba(6, 10, 15, 0.61) 42%,
        rgba(6, 10, 15, 0.1) 82%
      ),
      linear-gradient(0deg, rgba(6, 10, 15, 0.68), rgba(6, 10, 15, 0.03) 56%);
  }
  html[dir="ltr"] body[data-theme="light"] .hero-shade {
    background: linear-gradient(
        90deg,
        rgba(6, 10, 15, 0.84) 0%,
        rgba(6, 10, 15, 0.61) 43%,
        rgba(6, 10, 15, 0.1) 83%
      ),
      linear-gradient(0deg, rgba(6, 10, 15, 0.68), rgba(6, 10, 15, 0.03) 56%);
  }
  .hero-content,
  html[dir="ltr"] .hero-content {
    top: auto;
    right: 22px;
    bottom: 28px;
    left: 22px;
    width: auto;
    transform: none;
  }
  html[dir="rtl"] .hero-content {
    top: 50%;
    right: 20px;
    bottom: auto;
    left: auto;
    width: min(56%, 300px);
    transform: translateY(-50%);
    text-align: right;
  }
  .eyebrow {
    font-size: 0.74rem;
  }
  .hero-content h1 {
    margin: 6px 0 10px;
    font-size: 2.65rem;
  }
  html[dir="rtl"] .hero-content h1 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    line-height: 1;
  }
  html[dir="rtl"] .hero-description {
    font-size: 0.76rem;
    line-height: 1.55;
  }
  html[dir="rtl"] .hero-cta {
    width: 100%;
    padding-inline: 10px;
  }
  .hero-description {
    margin-bottom: 18px;
    font-size: 0.88rem;
    line-height: 1.65;
  }
  .whatsapp-cta {
    min-height: 49px;
    padding: 0 15px;
    font-size: 0.82rem;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 13px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .package-facts {
    width: 100%;
    margin-top: 13px;
  }
  .package-fact {
    min-height: 74px;
    padding: 18px;
    gap: 12px;
  }
  .package-fact + .package-fact {
    border-top: 1px solid var(--line);
  }
  .price-fact {
    align-items: flex-start;
  }
  .price-list {
    width: 100%;
    min-width: 0;
  }
  .price-row {
    padding: 7px 0;
    font-size: 1rem;
  }
  .fact-icon {
    width: 23px;
    height: 23px;
  }
  .fact-label {
    font-size: 0.94rem;
    line-height: 1.35;
  }
  .package-fact strong {
    font-size: 1.18rem;
  }
  .included-panel,
  .fit-panel {
    padding: 21px 17px;
    border-radius: 16px;
  }
  .section-heading h2,
  .fit-panel h2,
  .final-cta h2 {
    font-size: 1.35rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 17px;
  }
  .feature {
    min-height: 59px;
    padding: 10px 12px;
  }
  .feature span {
    font-size: 0.84rem;
  }
  .fit-panel > p {
    font-size: 0.86rem;
  }
  .final-cta {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 24px;
    padding: 22px 18px;
  }
  .bottom-cta {
    width: 100%;
  }
  footer > div {
    gap: 20px;
  }
  footer img {
    width: 112px;
  }
  footer span {
    font-size: 0.66rem;
    text-align: left;
  }
}
