/* ============================================================
   SDW – Smart Direction Wealth
   assets/css/style.css  +  animations.css  +  responsive.css
   (inlined for single-file delivery / zero-latency first paint)
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --gold: #c99a3a;
  --gold-2: #e6c46d;
  --gold-3: #8d6a20;
  --navy: #081827;
  --bg: #07131f;
  --bg-2: #0a1a2a;
  --white: #ffffff;
  --lgray: #eaeaea;
  --dgray: #3a3a3a;
  --muted: rgba(234, 234, 234, 0.66);
  --grad: linear-gradient(135deg, #c99a3a 0%, #e6c46d 55%, #c99a3a 100%);
  --grad-soft: linear-gradient(
    135deg,
    rgba(201, 154, 58, 0.18),
    rgba(230, 196, 109, 0.05)
  );
  --glass: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.065),
    rgba(255, 255, 255, 0.018)
  );
  --line: rgba(255, 255, 255, 0.09);
  --line-gold: rgba(201, 154, 58, 0.32);
  --shadow-1: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --shadow-gold: 0 20px 60px -22px rgba(201, 154, 58, 0.55);
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --r-xl: 34px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.22, 0.61, 0.36, 1);
  --f-en: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
  --f-ar: "Cairo", "Poppins", system-ui, sans-serif;
  --f-zh: "Noto Sans SC", "Poppins", system-ui, sans-serif;
  --header-h: 82px;
  --pad-sec: clamp(84px, 9vw, 150px);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--lgray);
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body {
  font-family: var(--f-ar);
  font-weight: 400;
  line-height: 1.95;
}
html[lang="zh"] body {
  font-family: var(--f-zh);
  font-weight: 300;
}
img,
svg,
canvas {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--white);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}
p {
  margin: 0;
}
::selection {
  background: rgba(201, 154, 58, 0.35);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track {
  background: #050e17;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(#c99a3a, #6b4f18);
  border-radius: 20px;
}

/* ---------- 2. LAYOUT ---------- */
.container {
  width: min(1320px, 92%);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.section {
  padding-block: var(--pad-sec);
  position: relative;
  z-index: 2;
}
.sec-head {
  max-width: 780px;
  margin-bottom: clamp(44px, 5vw, 72px);
}
.sec-head.center {
  margin-inline: auto;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 500;
  margin-bottom: 20px;
}
html[lang="ar"] .kicker {
  letter-spacing: 0.06em;
}
.kicker::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--grad);
}
.sec-head.center .kicker::after {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--grad);
}
.sec-title {
  font-size: clamp(2.05rem, 4.4vw, 3.55rem);
}
.sec-title .grad,
.grad-text {
  background: linear-gradient(
    120deg,
    #c99a3a,
    #e6c46d 45%,
    #fff8e6 60%,
    #c99a3a
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 100%;
  animation: shimmer 7s linear infinite;
}
.sec-desc {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 62ch;
}
.sec-head.center .sec-desc {
  margin-inline: auto;
}
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-gold),
    transparent
  );
}

/* ---------- 3. GLASS / BORDERS ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-1);
}
.gborder {
  position: relative;
  isolation: isolate;
}
.gborder::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(201, 154, 58, 0.85),
    rgba(230, 196, 109, 0.12) 35%,
    transparent 55%,
    rgba(201, 154, 58, 0.55)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.gborder:hover::before,
.gborder.on::before {
  opacity: 1;
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 34px;
  border-radius: 60px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    color 0.35s,
    border-color 0.35s;
  will-change: transform;
  background: none;
}
.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform 0.45s var(--ease);
}
html[dir="rtl"] .btn .ico-arrow {
  transform: scaleX(-1);
}
.btn-gold {
  color: #0a1420;
  background: var(--grad);
  background-size: 200% 100%;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background-position: 100% 0;
  box-shadow: 0 26px 70px -20px rgba(230, 196, 109, 0.75);
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.65) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn-gold:hover::after {
  transform: translateX(120%);
}
.btn-ghost {
  color: var(--white);
  border-color: rgba(201, 154, 58, 0.45);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--gold-2);
  color: var(--gold-2);
  background: rgba(201, 154, 58, 0.09);
}
.btn-plain {
  color: var(--lgray);
  padding-inline: 12px;
}
.btn-plain:hover {
  color: var(--gold-2);
}
.btn:hover svg.ico-arrow {
  transform: translateX(5px);
}
html[dir="rtl"] .btn:hover svg.ico-arrow {
  transform: scaleX(-1) translateX(5px);
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.45);
  animation: ripple 0.7s var(--ease-2) forwards;
  pointer-events: none;
  z-index: -1;
}
.btn-gold .ripple {
  background: rgba(255, 255, 255, 0.55);
}
.btn-ghost .ripple {
  background: rgba(201, 154, 58, 0.35);
}
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
.play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  background: rgba(201, 154, 58, 0.08);
  position: relative;
  flex: none;
}
.play-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(201, 154, 58, 0.35);
  animation: pulseRing 2.6s infinite;
}

/* ---------- 5. LOADER ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 45%, #0b2033, #050d15 70%);
  display: grid;
  place-items: center;
  transition:
    opacity 0.8s var(--ease),
    visibility 0.8s;
}
#loader.done {
  opacity: 0;
  visibility: hidden;
}
.load-wrap {
  text-align: center;
  width: min(320px, 80vw);
}
.load-mark {
  width: 120px;
  height: 120px;
  margin: 0 auto 26px;
  position: relative;
}
.load-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.load-mark .ring {
  fill: none;
  stroke: rgba(201, 154, 58, 0.18);
  stroke-width: 1.2;
}
.load-mark .arc {
  fill: none;
  stroke: url(#lg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: draw 2.4s var(--ease) infinite;
}
.load-mark .mono {
  font-family: "Poppins", serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 2px;
  fill: url(#lg);
}
.load-name {
  font-size: 0.74rem;
  letter-spacing: 0.5em;
  color: var(--gold-2);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.load-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  overflow: hidden;
}
.load-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(230, 196, 109, 0.8);
  transition: width 0.25s linear;
}
.load-pct {
  margin-top: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(234, 234, 234, 0.5);
}
@keyframes draw {
  0% {
    stroke-dashoffset: 180;
  }
  55% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -180;
  }
}

/* page transition curtain */
#curtain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    120deg,
    rgba(7, 19, 31, 0.96),
    rgba(11, 32, 51, 0.9)
  );
  backdrop-filter: blur(6px);
  transition: opacity 0.45s var(--ease);
}
#curtain.on {
  opacity: 1;
}
#curtain .sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 35%,
    rgba(201, 154, 58, 0.35) 50%,
    transparent 65%
  );
  transform: translateX(-100%);
}
#curtain.on .sweep {
  animation: sweep 1s var(--ease);
}
@keyframes sweep {
  to {
    transform: translateX(100%);
  }
}

/* ---------- 6. CURSOR ---------- */
.cur {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9500;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.4s;
}
body.cur-on .cur {
  opacity: 1;
}
#curDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 12px rgba(230, 196, 109, 0.9);
}
#curRing {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201, 154, 58, 0.6);
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    background 0.35s,
    border-color 0.35s,
    opacity 0.4s;
}
#curRing.grow {
  width: 74px;
  height: 74px;
  background: rgba(201, 154, 58, 0.12);
  border-color: rgba(230, 196, 109, 0.9);
}
#curRing.text {
  width: 14px;
  height: 14px;
  background: var(--gold-2);
}
#curGlow {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 154, 58, 0.13),
    transparent 62%
  );
  filter: blur(18px);
  z-index: 1;
}
@media (hover: none), (pointer: coarse) {
  .cur {
    display: none !important;
  }
}

/* ---------- 7. BACKGROUND FX ---------- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.orb.o1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(201, 154, 58, 0.28),
    transparent 68%
  );
  top: -120px;
  inset-inline-start: -90px;
  animation: float1 26s ease-in-out infinite;
}
.orb.o2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(35, 86, 133, 0.4), transparent 68%);
  top: 45%;
  inset-inline-end: -160px;
  animation: float2 32s ease-in-out infinite;
}
.orb.o3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(230, 196, 109, 0.16),
    transparent 70%
  );
  bottom: -140px;
  inset-inline-start: 30%;
  animation: float1 38s ease-in-out infinite reverse;
}
@keyframes float1 {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(60px, 80px, 0) scale(1.12);
  }
}
@keyframes float2 {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-80px, -60px, 0) scale(1.08);
  }
}
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 8. REVEAL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 46px, 0);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}
[data-reveal="left"] {
  transform: translate3d(-52px, 0, 0);
}
[data-reveal="right"] {
  transform: translate3d(52px, 0, 0);
}
[data-reveal="scale"] {
  transform: scale(0.9);
}
[data-reveal="blur"] {
  filter: blur(12px);
}
.is-in[data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}
.split .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(70%) rotate(6deg);
  transition: all 0.9s var(--ease);
  transition-delay: var(--cd, 0ms);
}
.split.is-in .ch {
  opacity: 1;
  transform: none;
}
@keyframes shimmer {
  to {
    background-position: 220% 0;
  }
}
@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}
@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 9. HEADER ---------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 800;
  transition:
    background 0.5s var(--ease),
    box-shadow 0.5s,
    border-color 0.5s,
    transform 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(6, 16, 26, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(201, 154, 58, 0.16);
  box-shadow: 0 18px 40px -30px #000;
}
.header.hide {
  transform: translateY(-104%);
}
.hbar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: none;
}
.brand .mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    150deg,
    rgba(201, 154, 58, 0.22),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--line-gold);
  position: relative;
  overflow: hidden;
}
.brand .mark span {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 60%
  );
  transform: translateX(-130%);
  transition: transform 1s var(--ease);
}
.brand:hover .mark::after {
  transform: translateX(130%);
}
.brand b {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.brand small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 400;
}
html[lang="ar"] .brand small {
  letter-spacing: 0.02em;
  font-size: 0.68rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav a,
.nav button.navlink {
  position: relative;
  padding: 10px 15px;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(234, 234, 234, 0.82);
  border: 0;
  background: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.35s;
}
.nav a::after,
.nav button.navlink::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: var(--to, left);
  transition: transform 0.5s var(--ease);
}
html[dir="rtl"] .nav a::after,
html[dir="rtl"] .nav button.navlink::after {
  --to: right;
}
.nav a:hover,
.nav button.navlink:hover,
.nav a.active {
  color: #fff;
}
.nav a:hover::after,
.nav button.navlink:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}
.nav .caret {
  width: 9px;
  height: 9px;
  margin-inline-start: 6px;
  transition: transform 0.4s;
}
.has-mega.open .caret {
  transform: rotate(180deg);
}
.hactions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;

}
.hactions .btn {
  padding: 13px 26px;
  font-size: 0.8rem;
}

/* language switcher */
.lang {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.4s var(--ease);
}
.lang-btn:hover {
  border-color: var(--line-gold);
  background: rgba(201, 154, 58, 0.1);
}
.lang-btn .flag {
  font-size: 1rem;
  line-height: 1;
}
.lang-btn .code {
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold-2);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-end: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(8, 24, 39, 0.96);
  backdrop-filter: blur(22px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.97);
  transition: 0.45s var(--ease);
  z-index: 60;
}
.lang.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.86rem;
  text-align: start;
  transition: 0.3s;
}
.lang-menu button:hover {
  background: rgba(201, 154, 58, 0.14);
  color: #fff;
}
.lang-menu button.sel {
  background: var(--grad-soft);
  color: var(--gold-2);
}
.lang-menu button .flag {
  font-size: 1.15rem;
}
.lang-menu .tick {
  margin-inline-start: auto;
  opacity: 0;
  color: var(--gold-2);
}
.lang-menu button.sel .tick {
  opacity: 1;
}

/* mega menu */
.mega {
  position: fixed;
  inset-inline: 0;
  top: var(--header-h);
  z-index: 790;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px);
  transition: 0.55s var(--ease);
  pointer-events: none;
}
.mega.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.mega-inner {
  width: min(1320px, 94%);
  margin-inline: auto;
  border-radius: var(--r-xl);
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  background: linear-gradient(
    165deg,
    rgba(9, 26, 42, 0.98),
    rgba(6, 16, 26, 0.98)
  );
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(24px);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mega-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  transition: 0.4s var(--ease);
  border: 1px solid transparent;
}
.mega-item:hover {
  background: rgba(201, 154, 58, 0.09);
  border-color: var(--line-gold);
  transform: translateY(-3px);
}
.mega-item .mi {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--grad-soft);
  border: 1px solid var(--line-gold);
  color: var(--gold-2);
}
.mega-item .mi svg {
  width: 20px;
  height: 20px;
}
.mega-item h5 {
  margin: 0;
  font-size: 0.86rem;
  color: #fff;
  font-weight: 500;
}
.mega-item p {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 3px;
}
.mega-side {
  border-radius: var(--r-l);
  padding: 26px;
  background: linear-gradient(
    160deg,
    rgba(201, 154, 58, 0.16),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--line-gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.mega-side h4 {
  font-size: 1.15rem;
}
.mega-side p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* burger + mobile drawer */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
}
.burger i {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--gold-2);
  transition: 0.45s var(--ease);
}
.burger i:nth-child(1) {
  top: 16px;
}
.burger i:nth-child(2) {
  top: 22px;
}
.burger i:nth-child(3) {
  top: 28px;
}
.burger.on i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger.on i:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}
.burger.on i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.drawer {
  position: fixed;
  inset: 0;
  z-index: 795;
  background: linear-gradient(
    170deg,
    rgba(6, 16, 26, 0.98),
    rgba(9, 26, 42, 0.99)
  );
  backdrop-filter: blur(20px);
  padding: calc(var(--header-h) + 24px) 6% 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3%);
  transition: 0.6s var(--ease);
}
.drawer.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.drawer a,
.drawer .dtoggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-size: 1.15rem;
  color: #fff;
  border-bottom: 1px solid var(--line);
  width: 100%;
  background: none;
  border-inline: 0;
  border-top: 0;
  cursor: pointer;
  text-align: start;
}
.drawer .sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease);
}
.drawer .sub a {
  font-size: 0.92rem;
  color: var(--muted);
  padding-inline-start: 18px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.drawer .dcta {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* ---------- 10. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 70px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg .vig {
  position: absolute;
  inset: 0;
}
.rays {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 160%;
  height: 130%;
  transform: translateX(-50%);
  opacity: 0.5;
  background: conic-gradient(
    from 200deg at 50% 0%,
    transparent 0deg,
    rgba(201, 154, 58, 0.14) 12deg,
    transparent 22deg,
    transparent 38deg,
    rgba(230, 196, 109, 0.1) 48deg,
    transparent 60deg,
    transparent 300deg,
    rgba(201, 154, 58, 0.1) 320deg,
    transparent 335deg
  );
  filter: blur(14px);
  animation: rayShift 18s ease-in-out infinite alternate;
}
@keyframes rayShift {
  to {
    transform: translateX(-50%) rotate(6deg) scale(1.08);
    opacity: 0.72;
  }
}
.gridfloor {
  position: absolute;
  inset-inline: -20%;
  bottom: -6%;
  height: 52%;
  background-image:
    linear-gradient(rgba(201, 154, 58, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 154, 58, 0.16) 1px, transparent 1px);
  background-size: 88px 88px;
  transform: perspective(560px) rotateX(72deg);
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent,
    #000 45%,
    transparent
  );
  mask-image: linear-gradient(180deg, transparent, #000 45%, transparent);
  animation: gridMove 14s linear infinite;
  opacity: 0.55;
}
@keyframes gridMove {
  to {
    background-position:
      0 88px,
      88px 0;
  }
}
.skyline {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: min(62vh, 540px);
  will-change: transform;
}
.skyline svg {
  width: 100%;
  height: 100%;
}
.skyline .b {
  fill: url(#skyG);
  opacity: 0.95;
}
.skyline .b2 {
  fill: #050f18;
  opacity: 0.9;
}
.sky-glow {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(201, 154, 58, 0.22), transparent 80%);
  filter: blur(10px);
}
.win {
  fill: #e6c46d;
  opacity: 0;
  animation: win 6s ease-in-out infinite;
}
.hlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hlines i {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(201, 154, 58, 0.5),
    transparent
  );
  opacity: 0.35;
  animation: lineDrop 7s var(--ease) infinite;
}
@keyframes lineDrop {
  0% {
    transform: translateY(-100%) scaleY(0.4);
    opacity: 0;
  }
  30% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(100%) scaleY(1);
    opacity: 0;
  }
}
@keyframes win {
  0%,
  100% {
    opacity: 0;
  }
  45%,
  60% {
    opacity: 0.85;
  }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 40px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(201, 154, 58, 0.09);
  border: 1px solid var(--line-gold);
  backdrop-filter: blur(8px);
}
html[lang="ar"] .badge {
  letter-spacing: 0.02em;
  font-size: 0.78rem;
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 0 rgba(230, 196, 109, 0.7);
  animation: blink 2.4s infinite;
}
@keyframes blink {
  70% {
    box-shadow: 0 0 0 9px rgba(230, 196, 109, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 196, 109, 0);
  }
}
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  font-weight: 600;
  margin: 26px 0 0;
  letter-spacing: -0.035em;
}
html[lang="ar"] .hero h1 {
  letter-spacing: 0;
}
.hero h1 .l {
  display: block;
  overflow: hidden;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.7vw, 1.42rem);
  color: #fff;
  font-weight: 300;
  max-width: 34ch;
}
.hero-desc {
  margin-top: 18px;
  color: var(--muted);
  max-width: 52ch;
  font-size: 0.98rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 38px;
}
.hero-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-mini div b {
  display: block;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 600;
  line-height: 1;
}
.hero-mini div b em {
  font-style: normal;
  color: var(--gold-2);
}
.hero-mini div span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="ar"] .hero-mini div span {
  letter-spacing: 0;
  font-size: 0.8rem;
}
.hero-visual {
  position: relative;
  height: min(560px, 62vh);
  transform-style: preserve-3d;
  perspective: 1200px;
}
.fcard {
  position: absolute;
  padding: 20px 22px;
  border-radius: var(--r-m);
  min-width: 210px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-1);
  animation: floatY 7s ease-in-out infinite;
  will-change: transform;
}
.fcard .fi {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #0a1420;
  margin-bottom: 12px;
}
.fcard .fi svg {
  width: 19px;
  height: 19px;
}
.fcard b {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}
.fcard span {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.fc1 {
  top: 4%;
  inset-inline-start: 2%;
  animation-delay: 0s;
}
.fc2 {
  top: 38%;
  inset-inline-end: 0%;
  animation-delay: 1.2s;
}
.fc3 {
  bottom: 6%;
  inset-inline-start: 12%;
  animation-delay: 2.4s;
}
.hero-ring {
  position: absolute;
  inset: 8% 12%;
  border-radius: 50%;
  border: 1px dashed rgba(201, 154, 58, 0.28);
  animation: spinSlow 46s linear infinite;
}
.hero-ring::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 16px var(--gold-2);
}
.hero-core {
  position: absolute;
  inset: 24% 26%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(230, 196, 109, 0.35),
    rgba(201, 154, 58, 0.05) 60%,
    transparent 72%
  );
  filter: blur(6px);
  animation: floatY 9s ease-in-out infinite;
}
.scroll-ind {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
}
.scroll-ind .rail {
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, var(--gold-2), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-ind .rail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 16px;
  background: #fff;
  animation: railRun 2.2s var(--ease) infinite;
}
@keyframes railRun {
  0% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(56px);
  }
}
.marquee {
  position: relative;
  z-index: 2;
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}
.marquee .track {
  display: flex;
  gap: 60px;
  padding: 18px 0;
  width: max-content;
  animation: marq 32s linear infinite;
}
.marquee span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(234, 234, 234, 0.5);
  white-space: nowrap;
}
.marquee span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}
@keyframes marq {
  to {
    transform: translateX(-50%);
  }
}
html[dir="rtl"] .marquee .track {
  animation-direction: reverse;
}

/* ---------- 11. ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 80px);
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/4.4;
  background: linear-gradient(160deg, #0d2136, #071019);
  border: 1px solid var(--line);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition:
    transform 1.6s var(--ease),
    opacity 0.8s;
}
.about-media:hover img {
  transform: scale(1.07);
  opacity: 0.78;
}
.about-media .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 31, 0.15),
    rgba(7, 19, 31, 0.92)
  );
}
.about-badge {
  position: absolute;
  inset-inline-end: 22px;
  bottom: 22px;
  padding: 22px 26px;
  border-radius: var(--r-m);
  background: rgba(8, 24, 39, 0.85);
  border: 1px solid var(--line-gold);
  backdrop-filter: blur(14px);
  text-align: center;
}
.about-badge b {
  display: block;
  font-size: 2.2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.about-badge span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-media .frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 154, 58, 0.25);
  border-radius: calc(var(--r-xl) - 10px);
  pointer-events: none;
}
.pillars {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}
.pillar {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r-m);
  background: var(--glass);
  border: 1px solid var(--line);
  transition: 0.5s var(--ease);
}
.pillar:hover {
  transform: translateX(6px);
  border-color: var(--line-gold);
  background: rgba(201, 154, 58, 0.07);
}
html[dir="rtl"] .pillar:hover {
  transform: translateX(-6px);
}
.pillar .pi {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line-gold);
  color: var(--gold-2);
}
.pillar .pi svg {
  width: 21px;
  height: 21px;
}
.pillar h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}
.pillar p {
  font-size: 0.85rem;
  color: var(--muted);
}
.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.chip {
  padding: 9px 18px;
  border-radius: 40px;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--lgray);
  transition: 0.4s var(--ease);
}
.chip:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* timeline */
.tl {
  position: relative;
  margin-top: clamp(56px, 7vw, 96px);
  padding-inline-start: 34px;
}
.tl::before {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.tl .prog {
  position: absolute;
  inset-inline-start: 6px;
  top: 6px;
  width: 1px;
  height: 0;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(230, 196, 109, 0.7);
  transition: height 0.2s linear;
}
.tl-item {
  position: relative;
  padding-bottom: 42px;
}
.tl-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -34px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
  transition: 0.5s var(--ease);
}
.tl-item.is-in::before {
  background: var(--grad);
  box-shadow:
    0 0 0 6px rgba(201, 154, 58, 0.14),
    0 0 22px rgba(230, 196, 109, 0.6);
}
.tl-item b {
  color: var(--gold-2);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}
.tl-item h4 {
  font-size: 1.15rem;
  margin: 6px 0 8px;
}
.tl-item p {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 60ch;
}
#timeline {
  position: relative;
}

#timeline .prog {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--gold, #c99a3a);
  border-radius: 999px;
}

.tl-item {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-block: 1.5rem;
  /* لو RTL خليك منتبه لاتجاه الـgrid حسب تصميمك */
}

.tl-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.tl-body b {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.tl-body h4 {
  margin: 0 0 0.25rem;
}

/* =========================================
   SDW TIMELINE
   Alternating Image / Text
   ========================================= */

#timeline .tl-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

/* 1 - الصورة يمين / النص شمال */
#timeline .tl-item:nth-child(2n) {
  grid-template-areas: "body media";
}

/* 2 - الصورة شمال / النص يمين */
#timeline .tl-item:nth-child(2n + 1) {
  grid-template-areas: "media body";
}

#timeline .tl-item .tl-media {
  grid-area: media;
}

#timeline .tl-item .tl-body {
  grid-area: body;
}

@media (max-width: 768px) {
  #timeline .tl-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  #timeline .tl-item .tl-media,
  #timeline .tl-item .tl-body {
    width: 100%;
  }
}
/* ---------- 12. SERVICES ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}
.svc {
  position: relative;
  padding: 34px 30px 30px;
  border-radius: var(--r-l);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.5s;
}
.svc:hover {
  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(201, 154, 58, 0.25);
  border-color: transparent;
}
.svc .spot {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 154, 58, 0.22),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: var(--mx, 50%);
  top: var(--my, 50%);
}
.svc:hover .spot {
  opacity: 1;
}
.svc-ic {
  width: 62px;
  height: 62px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  position: relative;
  transform: translateZ(38px);
  background: linear-gradient(
    150deg,
    rgba(201, 154, 58, 0.22),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--line-gold);
  color: var(--gold-2);
  transition: 0.55s var(--ease);
}
.svc:hover .svc-ic {
  background: var(--grad);
  color: #0a1420;
  box-shadow: var(--shadow-gold);
  transform: translateZ(48px) rotate(-6deg) scale(1.06);
}
.svc-ic svg {
  width: 27px;
  height: 27px;
}
.svc h3 {
  font-size: 1.16rem;
  margin-bottom: 10px;
  transform: translateZ(26px);
}
.svc p {
  font-size: 0.87rem;
  color: var(--muted);
  min-height: 60px;
  transform: translateZ(18px);
}
.svc ul {
  margin-top: 16px;
  display: grid;
  gap: 7px;
  transform: translateZ(14px);
}
.svc ul li {
  font-size: 0.8rem;
  color: rgba(234, 234, 234, 0.6);
  display: flex;
  gap: 9px;
  align-items: center;
}
.svc ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  transform: rotate(45deg);
  background: var(--gold);
}
.svc .more {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  transform: translateZ(30px);
}
.svc .more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.45s var(--ease);
}
.svc:hover .more svg {
  transform: translateX(6px);
}
html[dir="rtl"] .svc .more svg {
  transform: scaleX(-1);
}
html[dir="rtl"] .svc:hover .more svg {
  transform: scaleX(-1) translateX(6px);
}
.svc .num {
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
  font-size: 2.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.045);
  letter-spacing: -0.04em;
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: 0.5s var(--ease);
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal .bd {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 15, 0.82);
  backdrop-filter: blur(10px);
}
.modal-box {
  position: relative;
  width: min(660px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: var(--r-xl);
  background: linear-gradient(
    165deg,
    rgba(11, 30, 48, 0.99),
    rgba(6, 16, 26, 0.99)
  );
  border: 1px solid var(--line-gold);
  box-shadow: 0 60px 110px -40px #000;
  transform: translateY(26px) scale(0.97);
  transition: 0.6s var(--ease);
}
.modal.open .modal-box {
  transform: none;
}
.modal-box .x {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  color: var(--lgray);
  transition: 0.4s;
}
.modal-box .x:hover {
  background: var(--grad);
  color: #0a1420;
  transform: rotate(90deg);
}
.modal-box .mic {
  width: 66px;
  height: 66px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #0a1420;
  margin-bottom: 20px;
}
.modal-box .mic svg {
  width: 30px;
  height: 30px;
}
.modal-box h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.modal-box .mlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 24px 0 28px;
}
.modal-box .mlist li {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 13px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  font-size: 0.84rem;
}
.modal-box .mlist li svg {
  width: 16px;
  height: 16px;
  color: var(--gold-2);
  flex: none;
}

/* ---------- 13. STATS / WHY ---------- */
.why {
  position: relative;
  overflow: hidden;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.stat {
  padding: 38px 26px;
  border-radius: var(--r-l);
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: 0.55s var(--ease);
}
.stat:hover {
  transform: translateY(-8px);
  border-color: var(--line-gold);
  background: rgba(201, 154, 58, 0.07);
}
.stat .n {
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p {
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="ar"] .stat p {
  letter-spacing: 0;
  font-size: 0.9rem;
}
.stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.7s var(--ease);
}
.stat:hover::after {
  transform: scaleX(1);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.why-card {
  padding: 28px;
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  transition: 0.5s var(--ease);
}
.why-card:hover {
  background: rgba(201, 154, 58, 0.07);
  transform: translateY(-6px);
}
.why-card .wi {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  background: var(--grad-soft);
  border: 1px solid var(--line-gold);
  margin-bottom: 16px;
}
.why-card h4 {
  font-size: 1rem;
  margin-bottom: 7px;
}
.why-card p {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- 14. PROCESS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 38px;
  inset-inline: 8%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.steps .sprog {
  position: absolute;
  top: 38px;
  inset-inline-start: 8%;
  height: 1px;
  width: 0;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(230, 196, 109, 0.8);
  transition: width 0.3s linear;
}
.step {
  text-align: center;
  position: relative;
  padding-top: 0;
}
.step .sn {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(160deg, #0c2135, #07131f);
  border: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-2);
  transition: 0.6s var(--ease);
  z-index: 2;
}
.step.is-in .sn {
  border-color: var(--gold);
  box-shadow:
    0 0 0 8px rgba(201, 154, 58, 0.09),
    0 18px 40px -18px rgba(201, 154, 58, 0.7);
}
.step .sn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0;
  transition: 0.5s;
  z-index: -1;
}
.step:hover .sn {
  color: #0a1420;
  transform: translateY(-6px) scale(1.05);
}
.step:hover .sn::after {
  opacity: 1;
}
.step h4 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 26ch;
  margin-inline: auto;
}

/* ---------- 15. INDUSTRIES ---------- */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.ind {
  position: relative;
  padding: 30px 22px;
  border-radius: var(--r-m);
  text-align: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid var(--line);
  transition: 0.55s var(--ease);
}
.ind .ii {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  background: var(--grad-soft);
  border: 1px solid var(--line-gold);
  transition: 0.55s var(--ease);
}
.ind .ii svg {
  width: 24px;
  height: 24px;
}
.ind h4 {
  font-size: 0.94rem;
  font-weight: 500;
}
.ind::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: 0.55s var(--ease);
}
.ind:hover::before {
  opacity: 0.14;
}
.ind:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--line-gold);
  box-shadow: 0 30px 60px -34px rgba(201, 154, 58, 0.7);
}
.ind:hover .ii {
  background: var(--grad);
  color: #0a1420;
  transform: rotateY(180deg);
}

/* ---------- 16. TESTIMONIALS ---------- */
.tst-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
}
.tst-track {
  display: flex;
  transition: transform 0.85s var(--ease);
  will-change: transform;
}
.tst {
  flex: 0 0 100%;
  padding: clamp(30px, 4vw, 56px);
  display: grid;
  gap: 22px;
}
.tst .stars {
  display: flex;
  gap: 6px;
  color: var(--gold-2);
}
.tst .stars svg {
  width: 18px;
  height: 18px;
}
.tst q {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: #fff;
  font-weight: 300;
  line-height: 1.7;
  quotes: none;
}
.tst .who {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.tst .av {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #0a1420;
  font-weight: 600;
  flex: none;
}
.tst .who b {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}
.tst .who span {
  font-size: 0.78rem;
  color: var(--muted);
}
.tst-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  justify-content: center;
}
.tst-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  color: var(--lgray);
  transition: 0.45s var(--ease);
}
.tst-nav button:hover {
  background: var(--grad);
  color: #0a1420;
  border-color: transparent;
  transform: scale(1.08);
}
.dots {
  display: flex;
  gap: 8px;
}
.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: 0.4s;
}
.dots i.on {
  width: 28px;
  border-radius: 8px;
  background: var(--grad);
}
.quote-mark {
  position: absolute;
  top: 10px;
  inset-inline-end: 34px;
  font-size: 9rem;
  line-height: 1;
  color: rgba(201, 154, 58, 0.09);
  font-family: Georgia, serif;
  pointer-events: none;
}

/* ---------- 17. FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin-inline: auto;
}
.faq details {
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
  overflow: hidden;
  transition: 0.5s var(--ease);
}
.faq details[open] {
  border-color: var(--line-gold);
  background: rgba(201, 154, 58, 0.055);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .pm {
  margin-inline-start: auto;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  color: var(--gold-2);
  transition: 0.5s var(--ease);
}
.faq details[open] summary .pm {
  background: var(--grad);
  color: #0a1420;
  transform: rotate(135deg);
}
.faq .ans {
  padding: 0 26px 24px 26px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 80ch;
}
.faq summary .qn {
  color: var(--gold-2);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.faq details[open] .ans {
  animation: faqIn 0.55s var(--ease);
}
@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.field select + label {
  top: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.field select {
  padding-top: 24px;
  padding-bottom: 8px;
}
html[lang="ar"] .field select + label {
  letter-spacing: 0;
  font-size: 0.7rem;
}

/* ---------- 18. CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(26px, 3.5vw, 54px);
  align-items: start;
}
.cinfo {
  display: grid;
  gap: 14px;
}
.ci {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--r-m);
  background: var(--glass);
  border: 1px solid var(--line);
  transition: 0.5s var(--ease);
}
.ci:hover {
  border-color: var(--line-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-1);
}
.ci .cic {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line-gold);
  color: var(--gold-2);
  transition: 0.5s;
}
.ci:hover .cic {
  background: var(--grad);
  color: #0a1420;
}
.ci span {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
html[lang="ar"] .ci span {
  letter-spacing: 0;
  font-size: 0.82rem;
}
.ci b {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  word-break: break-word;
}
/* =====================================================
   LOCATIONS SECTION
===================================================== */

.locations-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

/* Header */

.locations-header {
  max-width: 750px;
  margin: 0 auto 60px;
  text-align: center;
}

.locations-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;

  opacity: 0.65;
  margin-bottom: 18px;
}

.locations-eyebrow::before,
.locations-eyebrow::after {
  content: "";
  width: 25px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.locations-header h2 {
  margin: 0;

  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
}

.locations-header h2 span {
  position: relative;
}

.locations-header p {
  max-width: 600px;
  margin: 22px auto 0;

  font-size: 16px;
  line-height: 1.8;

  opacity: 0.65;
}

/* Grid */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 30px;

  max-width: 1250px;
  margin: auto;
}

/* Card */

.location-card {
  position: relative;

  overflow: hidden;

  border-radius: 24px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.025)
  );

  border: 1px solid rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.6s ease;
}

.location-card:hover {
  transform: translateY(-10px);

  border-color: rgba(255, 255, 255, 0.25);

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

/* Animated Top Line */

.location-top-line {
  position: absolute;

  top: 0;
  left: 0;

  width: 0%;
  height: 2px;

  background: currentColor;

  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-card:hover .location-top-line {
  width: 100%;
}

/* Content */

.location-content {
  position: relative;

  display: flex;
  align-items: center;

  gap: 18px;

  padding: 28px 28px 22px;
}

/* Number */

.location-number {
  position: absolute;

  top: 15px;
  right: 20px;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 2px;

  opacity: 0.25;
}

/* Icon */

.location-icon {
  flex: 0 0 52px;

  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background: rgba(255, 255, 255, 0.07);

  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s ease;
}

.location-icon svg {
  width: 25px;
  height: 25px;

  transition: transform 0.5s ease;
}

.location-card:hover .location-icon {
  transform: translateY(-4px) rotate(-5deg);

  background: rgba(255, 255, 255, 0.13);
}

.location-card:hover .location-icon svg {
  transform: scale(1.12);
}

/* Info */

.location-label {
  display: block;

  margin-bottom: 4px;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 2px;

  opacity: 0.45;
}

.location-info h3 {
  margin: 0;

  font-size: 24px;
  font-weight: 750;
}

.location-info p {
  margin: 7px 0 0;

  font-size: 13px;
  line-height: 1.6;

  opacity: 0.55;
}

/* Map */

.map-wrapper {
  position: relative;

  height: 300px;

  margin: 0 12px 12px;

  overflow: hidden;

  border-radius: 18px;
}

.map-wrapper iframe {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;

  filter: grayscale(0.15) contrast(0.95);

  transition:
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease;
}

.location-card:hover .map-wrapper iframe {
  transform: scale(1.06);

  filter: grayscale(0) contrast(1);
}

/* Map Overlay */

.map-overlay {
  position: absolute;

  inset: 0;

  z-index: 2;

  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15),
    transparent 35%,
    rgba(0, 0, 0, 0.15)
  );
}

/* Map Badge */

.map-badge {
  position: absolute;

  top: 15px;
  left: 15px;

  z-index: 3;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;

  border-radius: 50px;

  background: rgba(0, 0, 0, 0.65);

  backdrop-filter: blur(10px);

  font-size: 11px;
  font-weight: 600;
}

.pulse-dot {
  position: relative;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: currentColor;
}

.pulse-dot::after {
  content: "";

  position: absolute;

  inset: -4px;

  border-radius: 50%;

  border: 1px solid currentColor;

  animation: locationPulse 1.8s infinite;
}

@keyframes locationPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.5);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* Directions */

.directions-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin: 0 28px 28px;

  padding: 14px 16px;

  border-radius: 12px;

  text-decoration: none;

  color: inherit;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.07);

  font-size: 13px;
  font-weight: 600;

  transition:
    background 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.directions-btn svg {
  width: 18px;

  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.directions-btn:hover {
  background: rgba(255, 255, 255, 0.11);

  transform: translateX(4px);
}

.directions-btn:hover svg {
  transform: translateX(5px);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {
  .locations-grid {
    grid-template-columns: 1fr;

    max-width: 650px;
  }
}

@media (max-width: 600px) {
  .locations-section {
    padding: 70px 0;
  }

  .locations-header {
    margin-bottom: 40px;
  }

  .location-content {
    padding: 24px 20px 18px;
  }

  .location-info h3 {
    font-size: 20px;
  }

  .map-wrapper {
    height: 260px;
  }

  .directions-btn {
    margin: 0 20px 20px;
  }
}

.form {
  padding: clamp(26px, 3vw, 42px);
  border-radius: var(--r-xl);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  position: relative;
  margin-bottom: 18px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 20px 18px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  transition: 0.4s var(--ease);
  font-size: 0.92rem;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
  padding-top: 26px;
}
.field label {
  position: absolute;
  inset-inline-start: 18px;
  top: 15px;
  font-size: 0.86rem;
  color: rgba(234, 234, 234, 0.5);
  pointer-events: none;
  transition: 0.35s var(--ease);
  transform-origin: inset-inline-start;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(201, 154, 58, 0.07);
  box-shadow: 0 0 0 4px rgba(201, 154, 58, 0.1);
}
.field input:focus + label,
.field textarea:focus + label,
.field select:focus + label,
.field.filled label {
  top: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.field .err {
  font-size: 0.72rem;
  color: #ff8a8a;
  margin-top: 6px;
  display: none;
}
.field.invalid input,
.field.invalid textarea {
  border-color: rgba(255, 120, 120, 0.7);
}
.field.invalid .err {
  display: block;
  animation: shake 0.5s;
}
@keyframes shake {
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
.field select {
  appearance: none;
  cursor: pointer;
  padding-top: 22px;
}
.field select option {
  background: #0a1a2a;
}
.form .note {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 14px;
}
.toast {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 960;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-radius: 16px;
  background: rgba(9, 26, 42, 0.97);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-1);
  transform: translateY(140%);
  transition: 0.7s var(--ease);
  max-width: 90vw;
}
.toast.on {
  transform: none;
}
.toast .ok {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  color: #0a1420;
  display: grid;
  place-items: center;
  flex: none;
}

/* ---------- 19. FOOTER ---------- */
.footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(40px, 6vw, 90px);
  border-top: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(8, 24, 39, 0.6),
    rgba(4, 11, 18, 0.95)
  );
}
.fcta {
  padding: clamp(38px, 5vw, 70px);
  border-radius: var(--r-xl);
  margin-top: -70px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    120deg,
    rgba(201, 154, 58, 0.2),
    rgba(9, 26, 42, 0.96) 60%
  );
  border: 1px solid var(--line-gold);
  box-shadow: 0 50px 90px -50px #000;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}
.fcta h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  max-width: 22ch;
}
.fcta .glowline {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}
.fgrid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-block: clamp(48px, 6vw, 80px);
}
.fgrid h5 {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 20px;
  font-weight: 500;
}
html[lang="ar"] .fgrid h5 {
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}
.fgrid li {
  margin-bottom: 11px;
}
.fgrid a {
  font-size: 0.86rem;
  color: var(--muted);
  transition: 0.35s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fgrid a:hover {
  color: var(--gold-2);
  transform: translateX(5px);
}
html[dir="rtl"] .fgrid a:hover {
  transform: translateX(-5px);
}
.fabout p {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 18px 0 22px;
  max-width: 38ch;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--lgray);
  transition: 0.45s var(--ease);
}
.socials a:hover {
  background: var(--grad);
  color: #0a1420;
  transform: translateY(-5px) rotate(-6deg);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}
.fbottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.flangs {
  display: flex;
  gap: 10px;
}
.flangs button {
  padding: 7px 14px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--muted);
  transition: 0.4s;
}
.flangs button:hover,
.flangs button.sel {
  border-color: var(--gold);
  color: var(--gold-2);
}
#toTop {
  position: fixed;
  bottom: 26px;
  inset-inline-start: 26px;
  z-index: 700;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--line-gold);
  background: rgba(8, 24, 39, 0.9);
  backdrop-filter: blur(10px);
  color: var(--gold-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: 0.55s var(--ease);
}
#toTop.on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
#toTop:hover {
  background: var(--grad);
  color: #0a1420;
}
#toTop svg {
  width: 18px;
  height: 18px;
}
.progressbar {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  z-index: 850;
  box-shadow: 0 0 12px rgba(230, 196, 109, 0.8);
}

/* =========================================================
   19b. IMAGERY SYSTEM — professional photography in every section
   ========================================================= */
img.lazy-img {
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 1.1s var(--ease),
    transform 1.8s var(--ease);
}
img.lazy-img.ready {
  opacity: 1;
  transform: none;
  width: 100%;
}

/* hero photographic layer */
.hero-photo {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.6) contrast(1.06) brightness(0.7);
  will-change: transform;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      100% 75% at 50% 25%,
      rgba(7, 19, 31, 0.28),
      rgba(7, 19, 31, 0.9) 78%
    ),
    linear-gradient(
      180deg,
      rgba(7, 19, 31, 0.8),
      rgba(7, 19, 31, 0.35) 42%,
      var(--bg)
    );
}

/* generic section photo band */
.sec-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sec-photo img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  opacity: 0.16;
  filter: grayscale(0.4) contrast(1.05);
  will-change: transform;
}
.sec-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg),
    rgba(7, 19, 31, 0.78) 26%,
    rgba(7, 19, 31, 0.78) 74%,
    var(--bg)
  );
}

/* about — stacked duo */
.about-media-wrap {
  position: relative;
  padding-bottom: 46px;
}
.about-media2 {
  position: absolute;
  bottom: 0;
  inset-inline-start: -34px;
  width: 58%;
  aspect-ratio: 4/3;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  box-shadow: 0 44px 80px -34px rgba(0, 0, 0, 0.95);
  background: #0a1a2a;
}
.about-media2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 1.6s var(--ease);
}
.about-media-wrap:hover .about-media2 img {
  transform: scale(1.08);
}
.about-media2::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(201, 154, 58, 0.2),
    rgba(7, 19, 31, 0.55)
  );
}
.about-media2 .tagpin {
  position: absolute;
  inset-inline-start: 18px;
  bottom: 16px;
  z-index: 2;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-2);
}
html[lang="ar"] .about-media2 .tagpin {
  letter-spacing: 0;
  font-size: 0.78rem;
}

/* SERVICES — image header cards */
.svc {
  padding: 0;
}
.svc-media {
  position: relative;
  height: 184px;
  overflow: hidden;
  border-radius: var(--r-l) var(--r-l) 0 0;
}
.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition:
    transform 1.5s var(--ease),
    opacity 0.7s var(--ease);
}
.svc:hover .svc-media img {
  transform: scale(1.13);
  opacity: 0.82;
}
.svc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 31, 0.22),
    rgba(10, 22, 35, 0.97) 94%
  );
}
.svc-media .glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(230, 196, 109, 0.3) 50%,
    transparent 63%
  );
  transform: translateX(-130%);
  transition: transform 1.1s var(--ease);
}
.svc:hover .svc-media .glare {
  transform: translateX(130%);
}
.svc-body {
  position: relative;
  z-index: 3;
  padding: 0 30px 30px;
}
.svc-ic {
  margin-top: -58px;
  background: linear-gradient(
    150deg,
    rgba(13, 35, 56, 0.96),
    rgba(8, 20, 32, 0.96)
  );
  backdrop-filter: blur(10px);
}
.svc .num {
  top: 18px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.7);
}
.svc p {
  min-height: auto;
}

/* WHY — feature photo tile inside grid */
.why-photo {
  grid-column: span 2;
  min-height: 230px;
  border-radius: var(--r-m);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line-gold);
}
.why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition:
    transform 1.6s var(--ease),
    opacity 0.7s;
}
.why-photo:hover img {
  transform: scale(1.08);
  opacity: 0.72;
}
.why-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(201, 154, 58, 0.22),
    rgba(7, 19, 31, 0.9) 70%
  );
}
.why-photo .cap {
  position: relative;
  z-index: 2;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 230px;
}
.why-photo .cap b {
  color: #fff;
  font-size: 1.15rem;
  display: block;
}
.why-photo .cap span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* PROCESS — step photos */
.step-media {
  margin-top: 20px;
  aspect-ratio: 16/10;
  border-radius: var(--r-m);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition:
    transform 1.5s var(--ease),
    opacity 0.7s;
}
.step:hover .step-media img {
  opacity: 0.75;
  transform: scale(1.09);
}
.step-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 31, 0.25),
    rgba(7, 19, 31, 0.88)
  );
}
.step:hover .step-media {
  border-color: var(--line-gold);
}

/* INDUSTRIES — photo tiles */
.ind {
  padding: 0;
  min-height: 196px;
  display: flex;
  align-items: flex-end;
}
.ind-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.ind-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.04);
  transition:
    transform 1.7s var(--ease),
    opacity 0.6s;
}
.ind:hover .ind-photo img {
  opacity: 0.6;
  transform: scale(1.16);
}
.ind-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 31, 0.35),
    rgba(7, 19, 31, 0.92)
  );
}
.ind-in {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px 18px;
  text-align: center;
}
.ind .ii {
  margin-bottom: 14px;
}

/* TESTIMONIALS — real avatars */
.tst .av {
  overflow: hidden;
  padding: 0;
  background: #0d2136;
  border: 1px solid var(--line-gold);
}
.tst .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

/* FAQ — split layout with visual */
.faq.faq-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(26px, 3.6vw, 56px);
  align-items: start;
  max-width: none;
  margin-inline: 0;
}
.faq .faq-list {
  max-width: none;
  margin: 0;
  display: grid;
  gap: 12px;
}
.ind-photo {
  z-index: 0;
}
.ind::before {
  z-index: 1;
}
.faq-visual {
  position: sticky;
  top: 112px;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 3/3.6;
  border: 1px solid var(--line);
}
.faq-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition:
    transform 1.6s var(--ease),
    opacity 0.7s;
}
.faq-visual:hover img {
  transform: scale(1.07);
  opacity: 0.78;
}
.faq-visual .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 31, 0.15),
    rgba(7, 19, 31, 0.93)
  );
}
.faq-visual .frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 154, 58, 0.25);
  border-radius: calc(var(--r-xl) - 10px);
}
.faq-visual .cap {
  position: absolute;
  inset-inline: 26px;
  bottom: 26px;
  z-index: 2;
}
.faq-visual .cap b {
  display: block;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.faq-visual .cap span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* CONTACT — office photo */
.contact-photo {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/7;
  margin-bottom: 16px;
}
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition:
    transform 1.6s var(--ease),
    opacity 0.7s;
}
.contact-photo:hover img {
  transform: scale(1.07);
  opacity: 0.76;
}
.contact-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 31, 0.15),
    rgba(7, 19, 31, 0.88)
  );
}
.contact-photo .cap {
  position: absolute;
  inset-inline-start: 24px;
  bottom: 20px;
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-2);
}
html[lang="ar"] .contact-photo .cap {
  letter-spacing: 0;
  font-size: 0.84rem;
}

/* FOOTER CTA photo */
.fcta-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}
.fcta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(0.7);
}
.fcta-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(201, 154, 58, 0.3),
    rgba(7, 19, 31, 0.94) 68%
  );
}
.fcta > *:not(.fcta-photo) {
  position: relative;
  z-index: 2;
}

/* MODAL photo header */
.modal-media {
  position: relative;
  height: 186px;
  margin: -40px -40px 22px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.modal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 31, 0.2),
    rgba(11, 30, 48, 0.99)
  );
}
.modal-box .mic {
  margin-top: -66px;
  position: relative;
  z-index: 2;
}

/* MEGA MENU thumbs */
.mega-item .mi {
  overflow: hidden;
}
.mega-item .thumb {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 0.55s var(--ease);
}
.mega-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mega-item:hover .thumb {
  opacity: 0.45;
}
.mega-item .mi svg {
  position: relative;
  z-index: 2;
}

/* image responsive tweaks */
@media (max-width: 1024px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-visual {
    position: relative;
    top: 0;
    aspect-ratio: 16/8;
  }
  .why-photo {
    grid-column: span 1;
  }
}
@media (max-width: 680px) {
  .about-media2 {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 14px;
    aspect-ratio: 16/9;
  }
  .about-media-wrap {
    padding-bottom: 0;
  }
  .svc-media {
    height: 158px;
  }
  .modal-media {
    height: 150px;
    margin: -28px -22px 20px;
  }
  .ind {
    min-height: 168px;
  }
  .brand b {
    display: none;
  }
}

/* ---------- 20. LANG SWAP ANIMATION ---------- */
body.lang-swap main,
body.lang-swap .header,
body.lang-swap .footer {
  opacity: 0.15;
  filter: blur(7px);
  transform: scale(0.995);
}
main,
.header,
.footer {
  transition:
    opacity 0.45s var(--ease),
    filter 0.45s var(--ease),
    transform 0.45s var(--ease);
}

/* ---------- 21. RTL ---------- */
html[dir="rtl"] .tl {
  padding-inline-start: 34px;
}
html[dir="rtl"] .quote-mark {
  transform: scaleX(-1);
}
html[dir="rtl"] .svc .num {
  letter-spacing: 0;
}

/* ---------- 22. RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .mega-inner {
    grid-template-columns: 1fr;
  }
  .mega-side {
    flex-direction: row;
    align-items: center;
  }
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1024px) {
  :root {
    --header-h: 74px;
  }
  .nav {
    display: none;
  }
  .burger {
    display: block;
  }
  .hactions .btn-gold {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    height: 340px;
    order: 2;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
  }
  .steps::before,
  .steps .sprog {
    display: none;
  }
}
@media (max-width: 680px) {
  .hero {
    padding-top: calc(var(--header-h) + 22px);
  }
  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.2rem);
  }
  .hero-cta {
    gap: 12px;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
  }
  .hero-mini {
    gap: 22px;
  }
  .hero-visual {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .frow {
    grid-template-columns: 1fr;
  }
  .fgrid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .fcta {
    margin-top: -40px;
    text-align: center;
    justify-content: center;
  }
  .brand small {
    display: none;
  }
  .modal-box {
    padding: 28px 22px;
  }
  #toTop {
    width: 46px;
    height: 46px;
    bottom: 18px;
    inset-inline-start: 18px;
  }
  .toast {
    inset-inline: 16px;
    bottom: 16px;
  }
}
@media (min-width: 1900px) {
  .container {
    width: min(1560px, 90%);
  }
  body {
    font-size: 17.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* WhatsApp */

.whatsapp-btn {
  bottom: 145px;
  background: #25d366;
  color: #fff;
}

.whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.05);
}

/* WeChat */

.wechat-btn {
  bottom: 85px;
  background: #09b83e;
  color: #fff;
}

.wechat-btn:hover {
  transform: translateY(-4px) scale(1.05);
}

/* Floating Icons */

.floating-btn i {
  font-size: 25px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Back To Top */

#toTop {
  bottom: 25px;
}

#toTop svg {
  width: 25px;
  height: 25px;
}

/* Mobile */

@media (max-width: 600px) {
  .floating-btn,
  #toTop {
    right: 15px;
    width: 46px;
    height: 46px;
  }

  .whatsapp-btn {
    bottom: 125px;
  }

  .wechat-btn {
    bottom: 75px;
  }

  #toTop {
    bottom: 20px;
  }

  .brand b {
    display: none;
  }
}
/* Fix Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  inset-inline-end: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 9999;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-btn.call-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.floating-btn.call-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.floating-btn.whatsapp-btn {
  background: #25d366;
}

.floating-btn.whatsapp-btn:hover {
  background: #20ba5a;
}

.floating-btn.wechat-btn {
  background: #07c160;
}

.floating-btn.wechat-btn:hover {
  background: #06ad56;
}

/* Responsive */
@media (max-width: 768px) {
  .floating-buttons {
    bottom: 1.5rem;
    inset-inline-end: 1.5rem;
    gap: 0.75rem;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* ================= LIVE CHAT ================= */

.live-chat {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  font-family: "Poppins", "Cairo", sans-serif;
}

.chat-toggle {
  width: 62px;
  height: 62px;
  margin-bottom: 70px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #c99a3a, #e6c46d);
  color: #07131f;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 35px rgba(201, 154, 58, 0.35);
  transition: 0.3s ease;
  position: relative;
}

.chat-toggle:hover {
  transform: translateY(-5px) scale(1.05);
}

.chat-notification {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #25d366;
  border-radius: 50%;
  top: 4px;
  right: 4px;
  border: 2px solid #07131f;
}

.chat-window {
  width: 370px;
  max-width: calc(100vw - 30px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s ease;
  transform-origin: bottom right;
}

.live-chat.active .chat-window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.chat-header {
  background: #07131f;
  color: #ffffff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c99a3a, #e6c46d);
  color: #07131f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.chat-agent h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.chat-agent span {
  font-size: 11px;
  opacity: 0.8;
}

.chat-agent span i {
  color: #25d366;
  font-size: 7px;
  margin-right: 4px;
}

.chat-close {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.3s;
}

.chat-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Body */
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  background: #f7f8fa;
}

.chat-welcome {
  text-align: center;
  padding: 35px 10px;
  color: #07131f;
}

.welcome-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(201, 154, 58, 0.15);
  color: #c99a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.chat-welcome h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.chat-welcome p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

/* Form */
.chat-form {
  padding: 14px;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  display: none;
  gap: 10px;
}

.chat-form input {
  flex: 1;
  border: 1px solid #e5e7eb;
  color: #0a1420;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  transition: 0.3s;
}
.chat-system-message {
  color: #0a1420;
}

.chat-form input:focus {
  border-color: #c99a3a;
  box-shadow: 0 0 0 3px rgba(201, 154, 58, 0.12);
}

.chat-form button {
  width: 46px;
  border: none;
  border-radius: 10px;
  background: #c99a3a;
  color: #07131f;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.chat-form button:hover {
  background: #e6c46d;
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 480px) {
  .live-chat {
    bottom: 18px;
    right: 18px;
  }

  .chat-window {
    width: calc(100vw - 30px);
    height: min(520px, calc(100vh - 100px));
  }
}

/* Chat Start Form */
.chat-start-form {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-start-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  transition: 0.3s;
}

.chat-start-form input:focus {
  border-color: #c99a3a;
  box-shadow: 0 0 0 3px rgba(201, 154, 58, 0.12);
}

.chat-start-form button {
  border: none;
  padding: 13px;
  border-radius: 10px;
  background: #c99a3a;
  color: #07131f;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.chat-start-form button:hover {
  background: #e6c46d;
  transform: translateY(-2px);
}

/* ================= CHAT MESSAGES ================= */

.chat-message {
  max-width: 78%;
  padding: 11px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  word-wrap: break-word;
}

.visitor-message {
  margin-left: auto;
  background: #c99a3a;
  color: #07131f;
  border-bottom-right-radius: 4px;
}

.admin-message {
  margin-right: auto;
  background: #ffffff;
  color: #07131f;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ================= NEW CHAT BUTTON ================= */

.new-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 9px 14px;

  border: 1px solid rgba(201, 154, 58, 0.35);
  border-radius: 8px;

  background: rgba(201, 154, 58, 0.1);
  color: #c99a3a;

  font-size: 12px;
  font-weight: 600;

  cursor: pointer;

  transition: all 0.25s ease;
}

.new-chat-btn i {
  font-size: 11px;
}

.new-chat-btn:hover {
  background: #c99a3a;
  color: #07131f;

  border-color: #c99a3a;

  transform: translateY(-1px);

  box-shadow: 0 4px 12px rgba(201, 154, 58, 0.2);
}

.new-chat-btn:active {
  transform: translateY(0);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header .new-chat-btn {
  margin-left: auto;
  margin-right: 10px;
}

/* ================= START CONVERSATION BUTTON ================= */

.chat-start-form button[type="submit"] {
  width: 100%;

  height: 46px;

  border: none;
  border-radius: 10px;

  background: linear-gradient(135deg, #c99a3a, #e6c46d);

  color: #07131f;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition: all 0.25s ease;

  box-shadow: 0 5px 15px rgba(201, 154, 58, 0.18);
}

.chat-start-form button[type="submit"]:hover {
  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(201, 154, 58, 0.28);
}

.chat-start-form button[type="submit"]:active {
  transform: translateY(0);
}

.chat-start-form button[type="submit"]:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(201, 154, 58, 0.15),
    0 8px 20px rgba(201, 154, 58, 0.25);
}

/* =========================================
   PRO OVERRIDES — ضع هذا بعد CSS الحالي
   ========================================= */

:root {
  --gold-1: #c99a3a;
  --gold-2: #e6c46d;
  --navy: #07131f;
  --muted: #6b7280;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* احترام تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== Floating button polish ===== */
.chat-toggle {
  margin-bottom: 0; /* كان بيطلع الزر لفوق — خليه مكانه الطبيعي */
  box-shadow: 0 14px 45px rgba(201, 154, 58, 0.35);
  transform: translateZ(0);
  will-change: transform;
  overflow: hidden;
}

/* لمعة زجاجية على الزر */
.chat-toggle::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0) 60%
  );
  transform: translateX(-65%) rotate(12deg);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}

.chat-toggle:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 18px 55px rgba(201, 154, 58, 0.45);
}
.chat-toggle:hover::before {
  transform: translateX(25%) rotate(12deg);
}
.chat-toggle:active {
  transform: translateY(-3px) scale(0.98);
}

/* نقطة الإشعار بحركة ping */
.chat-notification {
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.35);
  animation: notifPing 1.35s var(--ease) infinite;
}
@keyframes notifPing {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.35);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

/* ===== Window (glass + glow + smoother open) ===== */
.chat-window {
  border: 1px solid rgba(7, 19, 31, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    opacity 0.28s var(--ease),
    visibility 0.28s var(--ease),
    transform 0.28s var(--ease);
}

/* هالة خفيفة */
.chat-window::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(
      700px 240px at 15% 0%,
      rgba(201, 154, 58, 0.22),
      transparent 55%
    ),
    radial-gradient(
      700px 240px at 90% 10%,
      rgba(230, 196, 109, 0.18),
      transparent 55%
    );
  pointer-events: none;
}

/* أنيميشن فتح احترافي */
.live-chat.active .chat-window {
  animation: chatPop 0.38s var(--ease);
}
@keyframes chatPop {
  0% {
    transform: translateY(24px) scale(0.94);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ===== Header (shine subtle) ===== */
.chat-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #07131f,
    #07131f 55%,
    rgba(201, 154, 58, 0.18)
  );
}

.chat-header::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 60%;
  height: 180%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0) 60%
  );
  transform: rotate(14deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}
.chat-header:hover::after {
  left: 120%;
}

/* Avatar: شكل أفخم */
.agent-avatar {
  border-radius: 14px; /* بدل الدائرة يعطي شكل modern */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s var(--ease);
}
.chat-header:hover .agent-avatar {
  transform: rotate(-3deg) scale(1.02);
}

/* Close button micro interaction */
.chat-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-close:hover {
  transform: rotate(90deg) scale(1.06);
  background: rgba(255, 255, 255, 0.12);
}

/* ===== Body background + scrollbar ===== */
.chat-body {
  background:
    radial-gradient(
      900px 320px at 10% 0%,
      rgba(201, 154, 58, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 320px at 90% 10%,
      rgba(230, 196, 109, 0.1),
      transparent 60%
    ),
    #f7f8fa;
}

.chat-body::-webkit-scrollbar {
  width: 10px;
}
.chat-body::-webkit-scrollbar-thumb {
  background: rgba(7, 19, 31, 0.18);
  border-radius: 999px;
  border: 2px solid rgba(247, 248, 250, 1);
}
.chat-body::-webkit-scrollbar-thumb:hover {
  background: rgba(7, 19, 31, 0.28);
}

/* ===== Welcome card: شكل card حقيقي ===== */
.chat-welcome {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(7, 19, 31, 0.08);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  animation: fadeUp 0.45s var(--ease);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Inputs / Buttons: حدة أقل + حركة ناعمة ===== */
.chat-form input,
.chat-start-form input {
  background: rgba(255, 255, 255, 0.92);
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.chat-form input:focus,
.chat-start-form input:focus {
  transform: translateY(-1px);
}

/* زر الإرسال: لمعة + hover أقوى */
.chat-form button {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 10px 24px rgba(201, 154, 58, 0.25);
}
.chat-form button:hover {
  transform: translateY(-2px) scale(1.02);
}

/* New chat: يبان premium */
.new-chat-btn {
  border-radius: 12px;
  border-color: rgba(230, 196, 109, 0.35);
  background: rgba(230, 196, 109, 0.1);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}
.new-chat-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(201, 154, 58, 0.95),
    rgba(230, 196, 109, 0.95)
  );
  box-shadow: 0 10px 22px rgba(201, 154, 58, 0.22);
}

/* ===== Messages: أنيميشن + بابل أجمل ===== */
.chat-message {
  animation: msgIn 0.22s var(--ease);
  position: relative;
}
@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-message {
  border: 1px solid rgba(7, 19, 31, 0.06);
  background: rgba(255, 255, 255, 0.92);
}

.visitor-message {
  background: linear-gradient(
    135deg,
    rgba(201, 154, 58, 0.95),
    rgba(230, 196, 109, 0.92)
  );
  box-shadow: 0 10px 22px rgba(201, 154, 58, 0.18);
}

/* Tail بسيط للبابل */
.admin-message::after {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 10px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-left: 1px solid rgba(7, 19, 31, 0.06);
  border-bottom: 1px solid rgba(7, 19, 31, 0.06);
  transform: rotate(45deg);
}
.visitor-message::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 10px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: rotate(45deg);
}

/* Mobile: خليه أقرب لBottom sheet */
@media (max-width: 480px) {
  .chat-window {
    border-radius: 18px;
    bottom: 78px;
  }
}

/* ================= CONVERSATION CLOSED (PRO) ================= */

:root {
  --gold-1: #c99a3a;
  --gold-2: #e6c46d;
  --navy: #07131f;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat-closed-message {
  margin: 24px auto;
  max-width: 320px;

  padding: 32px 26px 28px;

  text-align: center;

  background: linear-gradient(180deg, #ffffff 0%, #fdf9f1 100%);
  border: 1px solid rgba(7, 19, 31, 0.08);
  border-radius: 20px;

  box-shadow:
    0 24px 60px rgba(7, 19, 31, 0.1),
    0 4px 14px rgba(7, 19, 31, 0.05);

  position: relative;
  overflow: hidden;

  animation: closedFadeUp 0.5s var(--ease) both;
}

/* شريط دهبي علوي رفيع */
.chat-closed-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--gold-1),
    var(--gold-2),
    var(--gold-1)
  );
  background-size: 200% 100%;
  animation: goldFlow 3s linear infinite;
}

/* دواير ديكور خفيفة في الخلفية */
.chat-closed-message::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 154, 58, 0.1), transparent 70%);
  pointer-events: none;
}

@keyframes closedFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes goldFlow {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 200% 0;
  }
}

/* ===== Icon ✓ ===== */
.closed-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-size: 30px;
  font-weight: 700;
  color: var(--navy);

  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 14px 30px rgba(201, 154, 58, 0.35);

  position: relative;

  /* ظهور بحركة مرنة */
  animation: checkPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

/* هالة نبض حوالين الأيقونة */
.closed-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(201, 154, 58, 0.45);
  animation: iconPulse 1.8s var(--ease) 0.5s infinite;
  pointer-events: none;
}

@keyframes checkPop {
  0% {
    transform: scale(0) rotate(-30deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ===== Texts ===== */
.chat-closed-message h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--navy);
}

.chat-closed-message p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: #6b7280;
}

/* أول paragraph أوضح شوية */
.chat-closed-message p:first-of-type {
  color: #3d4654;
  font-weight: 500;
}

/* ===== Button ===== */
#closedNewChatBtn {
  margin-top: 22px;

  padding: 13px 26px;

  border: none;
  border-radius: 12px;

  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));

  color: var(--navy);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;

  cursor: pointer;

  box-shadow: 0 10px 24px rgba(201, 154, 58, 0.25);

  position: relative;
  overflow: hidden;

  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

/* لمعة بتعدّي على الزرار */
#closedNewChatBtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-20deg);
  animation: btnShine 2.8s var(--ease) infinite;
  pointer-events: none;
}

#closedNewChatBtn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(201, 154, 58, 0.38);
}

#closedNewChatBtn:active {
  transform: translateY(-1px) scale(0.99);
}

#closedNewChatBtn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(201, 154, 58, 0.2),
    0 14px 32px rgba(201, 154, 58, 0.3);
}

@keyframes btnShine {
  0%,
  60% {
    left: -80%;
  }
  100% {
    left: 130%;
  }
}

/* لازم الأول */
.chat-body {
  position: relative;
}

/* النسخة Overlay */
.chat-closed-message.overlay {
  position: absolute;
  inset: 0;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: rgba(247, 248, 250, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ================= LIVE CHAT LANGUAGE POSITION ================= */

/* العربي - الشات على اليمين */
html[dir="rtl"] .live-chat {
  right: 25px;
  bottom: 100px;
  left: auto;
}

/* الإنجليزي - الشات على الشمال */
html[dir="ltr"] .live-chat {
  left: 25px;
  bottom: 100px;
  right: auto;
}
