:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0a0a0c;
  --surface-border: rgba(55, 209, 212, 0.15);
  --mint: #44dfc9;
  --mint-2: #4cb2d1;
  --mint-glow: rgba(55, 209, 212, 0.2);
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --green: #25d366;
  --danger: #ef4444;
  --heading: #ffffff;
  --body-on-surface: #e4e4e7;
  --header-bg: rgba(0, 0, 0, 0.88);
  --menu-bg: #0a0a0c;
  --panel-bg: #050505;
  --mobile-bar-bg: #0a0a0c;
  --footer-bg: #050505;
  --footer-note: #cccccc;
  --soft-border: #555555;
  --btn-text: #000000;
  --note-bg: rgba(68, 223, 201, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.7);
  --panel-shadow: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-border: rgba(11, 122, 112, 0.22);
  --mint: #0b7a70;
  --mint-2: #2563eb;
  --mint-glow: rgba(11, 122, 112, 0.12);
  --text-main: #12181a;
  --text-muted: #52605f;
  --green: #128c4a;
  --danger: #dc2626;
  --heading: #0d1416;
  --body-on-surface: #2f3a39;
  --header-bg: rgba(255, 255, 255, 0.9);
  --menu-bg: #ffffff;
  --panel-bg: #ffffff;
  --mobile-bar-bg: #ffffff;
  --footer-bg: #eaf0ee;
  --footer-note: #52605f;
  --soft-border: #9aa7a5;
  --btn-text: #ffffff;
  --note-bg: rgba(11, 122, 112, 0.07);
  --card-shadow: rgba(13, 32, 30, 0.12);
  --panel-shadow: rgba(13, 32, 30, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Tajawal', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--mint); }
.container { width: min(1140px, 92%); margin: auto; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--mint);
  color: var(--btn-text);
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 800;
}
.skip-link:focus { left: 8px; }

header {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  flex-shrink: 0;
}
.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 16px var(--mint-glow);
  flex-shrink: 0;
}
.brand-icon img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .ar { font-size: 22px; font-weight: 800; color: var(--heading); }
.brand-text .en {
  font-size: 12px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--mint);
  color: var(--mint);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 22px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  flex-shrink: 0;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--mint);
  color: var(--mint);
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--mint-glow); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.lang-switch-mobile { display: none; }
.nav-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  display: block;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--mint); }
.dropdown { position: relative; }
.dropdown-toggle { display: none; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  background: var(--menu-bg);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  min-width: 220px;
  padding: 8px;
  z-index: 20;
}
/* Hover/focus opening is desktop-only: on touch screens the tapped row keeps
   :hover/:focus, which would stop the submenu from collapsing again. */
@media (min-width: 1101px) {
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu { display: block; }
}
.dropdown-menu a { white-space: nowrap; }

.nav-cta { display: flex; gap: 8px; align-items: center; }
.lang-switch {
  border: 1px solid var(--mint);
  color: var(--mint);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
}

.btn {
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.25s;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  min-height: 44px;
}
.gold {
  background: linear-gradient(135deg, var(--mint), var(--mint-2));
  color: var(--btn-text);
  box-shadow: 0 8px 20px var(--mint-glow);
}
.gold:hover { transform: translateY(-2px); color: var(--btn-text); }
.outline {
  border: 1px solid var(--mint);
  color: var(--mint);
  background: transparent;
}
.outline:hover { background: var(--mint-glow); }

.hero {
  padding: 88px 0 72px;
  text-align: center;
  background: radial-gradient(circle at 50% -20%, var(--mint-glow), var(--bg) 60%);
}
h1 {
  font-size: clamp(28px, 5vw, 52px);
  margin: 0 0 20px;
  line-height: 1.25;
  font-weight: 800;
}
.lead {
  color: var(--text-muted);
  font-size: clamp(16px, 2.2vw, 20px);
  margin: 0 auto 28px;
  max-width: 760px;
  font-weight: 500;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.availability-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
}
.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.trust {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.trust span {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 8px 18px;
  border-radius: 50px;
  color: var(--body-on-surface);
  font-size: 14px;
  font-weight: 700;
}

.section { padding: 72px 0; }
.section-dark {
  background: var(--surface);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 {
  font-size: clamp(24px, 4vw, 34px);
  color: var(--heading);
  margin: 0 0 12px;
  font-weight: 800;
}
.section-title p {
  color: var(--mint);
  font-size: 16px;
  margin: 0;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg);
  padding: 28px 22px;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  transition: 0.25s;
}
a.card { color: inherit; display: block; }
.card:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px var(--card-shadow), 0 0 16px var(--mint-glow);
}
.icon-box {
  width: 52px;
  height: 52px;
  border: 1px solid var(--mint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--mint);
}
.card h2, .card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--heading);
}
.card p { color: var(--text-muted); margin: 0; }
.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 800;
}

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 {
  color: var(--heading);
  font-size: 24px;
  margin: 36px 0 12px;
  font-weight: 800;
}
.prose h3 {
  color: var(--mint);
  font-size: 18px;
  margin: 24px 0 8px;
}
.prose p, .prose li { color: var(--text-muted); font-size: 16px; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.note-box {
  background: var(--note-bg);
  border: 1px solid var(--surface-border);
  border-inline-start: 4px solid var(--mint);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 24px 0;
}
.note-box p { color: var(--body-on-surface); margin: 0; }
.cost-box {
  background: var(--surface);
  border: 1px dashed var(--mint);
  border-radius: 12px;
  padding: 22px;
  margin: 28px 0;
}
.cost-box h2 { margin-top: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 6px;
  color: var(--soft-border);
}

.faq-item {
  background: var(--surface);
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  margin-bottom: 12px;
}
.faq-item h2, .faq-item h3 {
  margin: 0 0 8px;
  color: var(--mint);
  font-size: 17px;
}
.faq-item p { margin: 0; color: var(--text-muted); }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary h2,
.faq-item summary h3 { margin: 0; }
.faq-item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 7px;
  flex-shrink: 0;
  border-right: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item[open] > p { margin-top: 10px; }

.payment-methods {
  background: var(--surface);
  padding: 32px 0;
  text-align: center;
  border-bottom: 1px solid var(--surface-border);
}
.payment-methods span {
  display: inline-block;
  margin: 6px 10px;
  color: var(--text-muted);
  font-weight: 700;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0; }
.chips a, .chips li {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: 50px;
  padding: 6px 14px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 700;
}

.page-hero {
  padding: 36px 0 20px;
  text-align: center;
  background: radial-gradient(circle at 50% -40%, var(--mint-glow), var(--bg) 70%);
}
.page-hero .lead { margin-bottom: 18px; }

.related { margin-top: 40px; }
.related h2 { text-align: center; }

footer {
  background: var(--footer-bg);
  padding: 56px 0 110px;
  border-top: 1px solid var(--surface-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  text-align: start;
  margin-bottom: 32px;
}
.footer-grid h2 {
  color: var(--mint);
  font-size: 15px;
  margin: 0 0 12px;
  font-weight: 800;
}
.footer-grid a, .footer-grid p {
  color: var(--text-muted);
  font-size: 14px;
  display: block;
  margin: 0 0 8px;
}
.footer-grid a:hover { color: var(--mint); }
.footer-disclaimer {
  font-size: 13px;
  color: var(--footer-note);
  max-width: 860px;
  margin: 0 auto 16px;
  line-height: 1.8;
  text-align: center;
}
.footer-legal {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.9;
}
.footer-copy {
  margin-top: 28px;
  font-size: 12px;
  color: var(--heading);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
}

.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--mobile-bar-bg);
  border-top: 1px solid var(--surface-border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  z-index: 998;
  gap: 8px;
}
.mobile-bar .btn { flex: 1; }

.wa-float, .call-float {
  position: fixed;
  inset-inline-end: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 997;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}
.wa-float { bottom: 28px; background: var(--green); }
.call-float {
  bottom: 96px;
  background: linear-gradient(135deg, var(--mint), var(--mint-2));
}
html[dir="ltr"] .wa-float,
html[dir="ltr"] .call-float { right: 22px; left: auto; }
html[dir="rtl"] .wa-float,
html[dir="rtl"] .call-float { left: auto; right: 22px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* On desktop the theme and language controls live together in .nav-cta,
   while .nav-quick only exists for the mobile header. */
@media (min-width: 1101px) {
  .nav-quick { display: none; }
}

/* Keep the header on one row just above the mobile breakpoint. */
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav { gap: 10px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 7px; }
  .nav-cta { gap: 6px; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .lang-switch-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
  }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--surface-border);
    padding: 12px 4% calc(16px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - 69px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 0 18px 40px var(--panel-shadow);
  }
  .nav-panel.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-links a { padding: 12px 10px; }
  .nav-links .dropdown-link { display: none; }
  .dropdown-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 10px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: start;
    cursor: pointer;
  }
  .dropdown-toggle:hover,
  .dropdown.open .dropdown-toggle { color: var(--mint); }
  .dropdown-toggle .chevron { flex-shrink: 0; transition: transform 0.2s ease; }
  .dropdown.open .dropdown-toggle .chevron { transform: rotate(180deg); }
  .nav-links .dropdown-menu {
    position: static;
    display: none;
    border: none;
    background: transparent;
    padding: 0 12px 6px;
    min-width: 0;
  }
  .nav-links .dropdown.open > .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 10px; }
  .nav-cta { justify-content: stretch; }
  .nav-cta .btn { flex: 1; text-align: center; }
  .nav-cta .lang-switch { display: none; }
  .nav-cta .theme-toggle { display: none; }
  .wa-float, .call-float { display: none; }
  .mobile-bar { display: flex; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
}

@media (max-width: 640px) {
  .container { width: min(1140px, 94%); }
  .hero { padding: 44px 0 36px; }
  .page-hero { padding: 26px 0 16px; }
  h1 { font-size: clamp(26px, 7vw, 38px); }
  .lead { font-size: 15.5px; line-height: 1.85; }
  .availability-status { font-size: 13.5px; flex-wrap: wrap; padding: 0 4px; }
  .trust { gap: 8px; margin-top: 24px; }
  .trust span { font-size: 13px; padding: 7px 14px; }
  .section { padding: 44px 0; }
  .section-title { margin-bottom: 28px; }
  .section-title h2 { font-size: clamp(22px, 5.5vw, 28px); }
  .section-title p { font-size: 15px; }
  .grid { gap: 16px; }
  .card { padding: 22px 18px; }
  .prose h2 { font-size: 21px; margin-top: 28px; }
  .prose h3 { font-size: 17px; }
  .prose p, .prose li { font-size: 15.5px; }
  .breadcrumb { font-size: 12px; padding-top: 12px; }
  .faq-item { padding: 16px 18px; }
  .faq-item h2, .faq-item h3 { font-size: 16px; }
  .faq-item p { font-size: 15px; }
  .cost-box { padding: 18px; }
  .note-box { padding: 14px 16px; }
  .payment-methods { padding: 24px 0; }
  .payment-methods span { margin: 4px 6px; font-size: 14px; }
  .footer { padding: 44px 0 96px; }
  .footer-grid { gap: 20px; }
}

@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

@media (max-width: 380px) {
  .brand-icon, .brand-icon img { width: 38px; height: 38px; }
  .brand-text .ar { font-size: 19px; }
  .brand-text .en { font-size: 10px; letter-spacing: 1px; }
  .nav-toggle { width: 40px; height: 40px; font-size: 20px; }
  .theme-toggle { width: 40px; height: 40px; }
  .lang-switch-mobile { min-height: 40px; padding: 7px 9px; font-size: 12px; }
  .mobile-bar { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
}

@media (min-width: 1101px) {
  .mobile-bar { display: none !important; }
}
