/* Elite Law Firm — Premium One-Page Build (Clean + Mobile-Safe) */

:root{
  --bg:#070b14;
  --bg2:#0b1020;

  --gold:#d6b36a;
  --gold2:#f0d28a;

  --text:#eef2ff;
  --muted:rgba(238,242,255,.72);

  --stroke:rgba(255,255,255,.10);
  --surface:rgba(255,255,255,.04);

  --shadow:0 18px 55px rgba(0,0,0,.55);
  --shadowSoft:0 10px 28px rgba(0,0,0,.35);

  --r-xl:24px;
  --r-lg:18px;
  --r-md:14px;

  --container:1120px;
  --focus:0 0 0 4px rgba(214,179,106,.18);

  --safe-t: env(safe-area-inset-top);
  --safe-b: env(safe-area-inset-bottom);
  --safe-l: env(safe-area-inset-left);
  --safe-r: env(safe-area-inset-right);
}

/* =========================
   RESET & BASE STYLES
   (Fixed Mobile Scrolling Issues)
========================= */
*{ box-sizing:border-box; }

html {
  width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 18% 0%, rgba(214,179,106,.12), transparent 60%),
    radial-gradient(900px 520px at 85% 10%, rgba(70,90,170,.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  font-family: system-ui, -apple-system, "Inter", "Tajawal", Segoe UI, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

a{ color:inherit; text-decoration:none; }
a:focus-visible{ outline:none; box-shadow:var(--focus); border-radius:12px; }

img{ max-width:100%; display:block; }
[hidden]{ display:none !important; }

.container{
  width:min(var(--container), 92%);
  margin:0 auto;
  padding-left: max(0px, var(--safe-l));
  padding-right: max(0px, var(--safe-r));
}

.muted{ color:var(--muted); }

/* scroll lock class (used by mobile menu) */
html.menu-open, body.menu-open{
  overflow:hidden;
  touch-action:none;
}

/* Progress bar (Top Horizontal - Optional) */
.progress-container{
  position:fixed;
  inset:0 0 auto 0;
  height:3px;
  z-index:9999;
  background:transparent;
  pointer-events: none;
}
.progress-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, var(--gold), rgba(214,179,106,.35));
  box-shadow:0 0 16px rgba(214,179,106,.25);
  transition: width 0.1s linear;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:850;
  user-select:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  -webkit-tap-highlight-color:transparent;
}
.btn:active{ transform: translateY(1px); }

.btn--gold{
  background: linear-gradient(180deg, var(--gold), rgba(214,179,106,.85));
  color:#0b1020;
  box-shadow:0 12px 30px rgba(214,179,106,.18);
}
.btn--gold:hover{
  background: linear-gradient(180deg, var(--gold2), rgba(214,179,106,.92));
}

.btn--outline{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.14);
  color: var(--text);
}
.btn--outline:hover{
  border-color: rgba(214,179,106,.35);
  background: rgba(214,179,106,.07);
}

/* =========================
   CARDS & LAYOUT
========================= */
.card{
  border-radius:var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid var(--stroke);
  box-shadow:var(--shadowSoft);
}
.card-hover{ transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.card-hover:hover{
  transform: translateY(-3px);
  border-color: rgba(214,179,106,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035));
}

.main{ padding: 24px 0 60px; }
.section{ padding: 52px 0; }

.grid{ display:grid; gap:14px; }
.grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }

@media (max-width: 980px){
  .grid-3{ grid-template-columns: 1fr; }
}

/* =========================
   HEADER
========================= */
.site-header{
  position: sticky;
  top:0;
  z-index:3000;
  padding-top: var(--safe-t);
  background: rgba(7,11,20,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background 0.3s ease;
}
.site-header.scrolled{
  background: rgba(7,11,20,.95);
  border-bottom-color: rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.header-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand__logo{
  width:46px; height:46px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid rgba(214,179,106,.35);
  background: rgba(255,255,255,.04);
  box-shadow:0 12px 26px rgba(0,0,0,.45);
}
.brand__text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.brand__name{ font-weight:950; letter-spacing:.2px; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brand__tag{ font-size:12px; color:var(--muted); }

.nav{ display:flex; align-items:center; gap:6px; }
.nav a{
  position:relative;
  padding:10px 12px;
  border-radius:12px;
  color: rgba(238,242,255,.82);
  border:1px solid transparent;
}
.nav a:hover{ background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.06); }
.nav a.active{
  background: rgba(214,179,106,.10);
  border-color: rgba(214,179,106,.22);
  color: var(--text);
}
.nav a.pill{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.10);
}
.nav a.active::after{
  content:"";
  position:absolute;
  left: 12px; right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(214,179,106,.1), rgba(214,179,106,.85), rgba(214,179,106,.1));
  opacity:.9;
}

.nav-actions{ display:flex; align-items:center; gap:10px; }
.header-cta{ white-space:nowrap; }

/* Language Dropdown */
.langSwitch{
  z-index: 5500;
  position:relative;
  display:inline-flex;
  align-items:center;
}
.langBtn{
  height:46px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(238,242,255,.92);
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  box-shadow: 0 12px 24px rgba(0,0,0,.35);
  font-weight: 900;
}
.langBtn:hover{
  border-color: rgba(214,179,106,.35);
  background: rgba(214,179,106,.06);
}
.langIc{ filter: saturate(1.1); }
.langCode{ font-size: 13px; letter-spacing:.4px; }
.langCaret{ opacity:.9; transform: translateY(-1px); }

.langMenu{
  z-index: 5500;
  position:absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  display:none;
  padding: 10px;
  border-radius: 18px;
  background: rgba(11,16,32,.92);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
html[dir="rtl"] .langMenu{ right:auto; left:0; }
.langSwitch.is-open .langMenu{ display:block; }

.langMenu a{
  display:flex; align-items:center; justify-content:flex-start; gap:10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: rgba(238,242,255,.92);
  font-weight: 850;
}
.langMenu a:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.langMenu a.active{
  background: rgba(214,179,106,.10);
  border-color: rgba(214,179,106,.22);
}
.langMenu .tag{
  width: 40px; height: 28px;
  border-radius: 12px;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 12px; font-weight: 950;
  letter-spacing:.3px;
  color: rgba(238,242,255,.92);
}
.langMenu .name{ font-size: 13px; color: rgba(238,242,255,.86); }

/* Mobile Bar */
.mobilebar{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding: 10px 0;
}
.mbrand{ display:flex; align-items:center; gap:10px; min-width:0; }
.mbrand__logo{
  width:40px; height:40px;
  border-radius:14px; object-fit:cover;
  border:1px solid rgba(214,179,106,.30);
  background: rgba(255,255,255,.04);
}
.mbrand__name{
  font-weight:950; font-size: 13px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.m-actions{ display:flex; align-items:center; gap:10px; }
.m-cta{
  display:inline-flex; align-items:center; justify-content:center;
  height:46px; padding: 0 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--gold), rgba(214,179,106,.85));
  color:#0b1020; font-weight: 950;
  box-shadow:0 12px 30px rgba(214,179,106,.16);
  white-space:nowrap;
}

/* Burger Menu */
.burger{
  width: 46px; height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
  box-shadow: 0 12px 24px rgba(0,0,0,.35);
}
.burger:hover{
  border-color: rgba(214,179,106,.35);
  background: rgba(214,179,106,.06);
}
.burger-ic path{
  fill:none; stroke: rgba(238,242,255,.9);
  stroke-width: 2.2; stroke-linecap: round;
  transition: transform .22s ease, opacity .18s ease;
  transform-origin: 50% 50%;
}
#mBurger[aria-expanded="true"] .b1{ transform: translateY(5px) rotate(45deg); }
#mBurger[aria-expanded="true"] .b2{ opacity: 0; }
#mBurger[aria-expanded="true"] .b3{ transform: translateY(-5px) rotate(-45deg); }

.desktop-header{ display:flex !important; }
.mobile-header{ display:none !important; }

@media (max-width: 980px){
  .nav{ display:none; }
  .brand__tag{ display:none; }
  .header-cta{ padding: 9px 12px; border-radius: 14px; font-size: 13px; }
  .header-wrap{ padding: 10px 0; }
  .desktop-header{ display:none !important; }
  .mobile-header{ display:flex !important; }
}

/* Mobile Offcanvas */
.m-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
  z-index: 3998;
}
.m-overlay.is-open{ opacity: 1; pointer-events: auto; }

.m-menu{
  position: fixed; top: 0; bottom: 0; right: 0;
  width: min(380px, 90%); height: 100dvh;
  background: #0b1020;
  border-left: 1px solid rgba(255,255,255,.10);
  transform: translateX(110%);
  transition: transform .26s ease;
  z-index: 3999;
  overflow: auto;
  padding: 16px; padding-bottom: calc(16px + var(--safe-b));
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
}
html[dir="rtl"] .m-menu{
  right:auto; left:0;
  border-left: none; border-right: 1px solid rgba(255,255,255,.10);
  transform: translateX(-110%);
}
.m-menu.is-open{ transform: translateX(0); }

.m-top{
  display:flex; align-items:center; justify-content:space-between;
  gap: 10px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px;
}
.m-brand-mini{ display:flex; align-items:center; gap:10px; }
.m-brand-mini img{
  width: 44px; height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(214,179,106,.28);
  background: rgba(255,255,255,.04);
}
.m-title{ font-weight: 950; font-size: 14px; }
.m-sub{ font-size: 12px; color: var(--muted); }

.m-close{
  width: 44px; height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 26px; line-height: 1;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
}

.m-quick{
  margin-top: 10px; padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}

.m-links{
  list-style: none; padding: 0; margin: 14px 0 0;
  display:flex; flex-direction:column; gap: 6px;
}
.m-links a{
  display:block; padding: 12px 12px;
  border-radius: 14px;
  color: rgba(238,242,255,.90);
  border: 1px solid transparent;
  font-weight: 850;
}
.m-links a:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.m-links a.active{
  background: rgba(214,179,106,.10);
  border-color: rgba(214,179,106,.22);
}

.m-footer{
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.m-note{ color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.m-social{ color: rgba(214,179,106,.95); font-weight: 900; }

.m-lang{
  margin-top: 12px; padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}
.m-lang__title{
  font-weight: 950; color: rgba(238,242,255,.82); margin-bottom: 10px;
}
.m-lang__grid{ display:flex; gap:8px; }
.m-lang__grid a{ flex:1; }

/* =========================
   SECTIONS & HERO
========================= */
.hero{
  position:relative; padding:64px 0 56px;
  overflow:hidden; border-radius:var(--r-xl);
  background:
    linear-gradient(180deg, rgba(7,11,20,.60), rgba(7,11,20,.92)),
    var(--hero-bg, none) center/cover no-repeat;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow);
}
.hero-inner{ text-align:center; padding: 12px 18px 0; }

.hero-badgeLogo{
  width:92px; height:92px;
  border-radius:999px;
  margin:0 auto 14px; padding:8px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(214,179,106,.32);
  box-shadow: 0 20px 55px rgba(0,0,0,.55);
}
.hero-badgeLogo img{ width:100%; height:100%; border-radius:999px; object-fit:cover; }

.hero-kicker{ color: rgba(238,242,255,.80); font-weight:750; font-size:13px; letter-spacing:.4px; }
.hero-title{ margin:10px 0 8px; font-size: clamp(28px, 3.3vw, 46px); line-height:1.12; font-weight:950; }
.hero-sub{ margin:0 auto 16px; max-width:78ch; color: rgba(238,242,255,.78); font-size:15px; }

.hero-actions{
  display:flex; justify-content:center; gap:10px;
  flex-wrap:wrap; margin-top: 8px;
}

.hero-tag{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px;
  border-radius:999px;
  margin: 10px auto 14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(238,242,255,.78);
  font-size:13px;
}
.hero-tag .dot{
  width:8px; height:8px; border-radius:99px;
  background: rgba(214,179,106,.92);
  box-shadow: 0 0 0 6px rgba(214,179,106,.12);
}

.company-info{
  display:flex; justify-content:center; gap:10px;
  flex-wrap:wrap; margin:0 0 18px;
}
.company-chip{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(238,242,255,.78);
  font-size:13px;
}
.company-chip a{ color: rgba(214,179,106,.95); font-weight:900; }

.section-header{ margin-bottom: 14px; }
.section-subtitle{
  color: rgba(214,179,106,.95); font-weight:950;
  font-size:12px; letter-spacing:.4px; text-transform:uppercase;
}
.section-title{
  margin: 6px 0 8px; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -.3px;
}
.section-desc{ margin:0; color: rgba(238,242,255,.70); }
.section-title.left, .section-desc.left{ text-align:left; }

.service-card{ padding: 16px; }
.service-icon{
  width:42px; height:42px; border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(214,179,106,.10);
  border: 1px solid rgba(214,179,106,.20);
  font-size: 18px; margin-bottom: 10px;
}
.service-title{ margin: 0 0 6px; font-weight: 950; font-size: 16px; }
.service-desc{ margin: 0 0 10px; color: rgba(238,242,255,.70); font-size: 14px; }
.service-link{ color: rgba(214,179,106,.95); font-weight: 900; }
.service-link:hover{ text-decoration: underline; }

.stats .stat-card{ padding: 16px; text-align:center; }
.stat-number{ font-weight: 950; font-size: 22px; letter-spacing: -.3px; }
.stat-label{ color: rgba(238,242,255,.70); font-size: 13px; margin-top: 4px; }

.split{ display:grid; grid-template-columns: 1.2fr .9fr; gap: 14px; }
@media (max-width: 980px){ .split{ grid-template-columns: 1fr; } }
.about-card{ padding: 18px; }

.feature{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (max-width: 980px){ .feature{ grid-template-columns: 1fr; } }
.feat p{ margin:6px 0 0; color: rgba(238,242,255,.70); font-size: 14px; }

.about-actions{ margin-top: 16px; display:flex; gap:10px; flex-wrap:wrap; }

.media{
  position:relative; border-radius: var(--r-xl); overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadowSoft);
}
.media img{ width:100%; height:100%; object-fit:cover; min-height: 280px; }
.media-badge{
  position:absolute; left:14px; right:14px; bottom:14px; padding:12px;
  border-radius: 18px; background: rgba(7,11,20,.78);
  border:1px solid rgba(255,255,255,.10); backdrop-filter: blur(10px);
}
.media-badge p{ margin:6px 0 0; color: rgba(238,242,255,.72); }

.timeline{ display:grid; gap: 10px; }
.t-item{ display:grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
.t-icon{
  width:34px; height:34px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(214,179,106,.12);
  border: 1px solid rgba(214,179,106,.22); font-weight: 950;
}
.t-card{ padding: 14px; }
.t-card h3{ margin: 0 0 6px; }
.t-card p{ margin:0; color: rgba(238,242,255,.70); }

.partners-grid{ display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
@media (max-width: 980px){ .partners-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
.partner{
  border-radius: 16px; background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08); padding: 12px;
  display:flex; align-items:center; justify-content:center; min-height: 56px;
}
.partner img{ max-height: 34px; opacity:.95; }

.hours-split{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
@media (max-width: 980px){ .hours-split{ grid-template-columns: 1fr; } }
.hours-card{ padding: 18px; }
.hours-list{ margin: 12px 0 0; padding: 0 0 0 18px; color: rgba(238,242,255,.72); }
.hours-list li{ margin: 8px 0; }

.hours-media{
  position:relative; border-radius: var(--r-xl); overflow:hidden;
  border:1px solid rgba(255,255,255,.08); box-shadow: var(--shadowSoft);
}
.hours-media img{ width:100%; height:100%; object-fit: cover; min-height: 240px; }
.hours-badge{
  position:absolute; left:14px; right:14px; bottom:14px; padding:12px;
  border-radius: 18px; background: rgba(7,11,20,.78);
  border:1px solid rgba(255,255,255,.10); backdrop-filter: blur(10px);
  color: rgba(238,242,255,.86); font-weight: 850;
}

.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 980px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-card{ padding: 18px; }
.card-title{ margin:0 0 6px; font-weight:950; }

.contact-method{ display:grid; grid-template-columns: 34px 1fr; gap: 10px; margin-top: 12px; }
.contact-ic{
  width:34px; height:34px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.contact-method h4{ margin:0; font-size: 14px; }
.contact-method p{ margin:4px 0 0; color: rgba(238,242,255,.70); }

.notice{
  margin-top: 14px; padding: 12px; border-radius: 18px;
  background: rgba(214,179,106,.08); border:1px solid rgba(214,179,106,.18);
  color: rgba(238,242,255,.82); font-size: 13px;
}

.form{ margin-top: 12px; display:grid; gap: 10px; }
.form-group label{
  display:block; font-size: 13px; color: rgba(238,242,255,.78);
  margin-bottom: 6px; font-weight: 750;
}
.form-group input, .form-group textarea{
  width:100%; padding: 12px 12px; border-radius: 14px;
  background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.12);
  color: var(--text);
}
.form-group textarea{ min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus{
  outline:none; box-shadow: var(--focus); border-color: rgba(214,179,106,.28);
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
}

/* =========================
   FIX: RTL Mobile Menu Open
========================= */
[dir="rtl"] .m-menu.is-open { transform: translateX(0); }

/* =========================
   WhatsApp Floating Button (LEFT SIDE)
========================= */
.wa-float, .wa-bubble {
  position: fixed;
  left: 20px; /* Fixed to LEFT */
  right: auto;
  bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  z-index: 6000;
  background: #25D366;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.18);
  transition: transform .15s ease, filter .15s ease;
}
.wa-float:hover, .wa-bubble:hover { transform: translateY(-2px); filter: brightness(1.03); }
.wa-float svg, .wa-bubble svg { width: 26px; height: 26px; fill: #fff; }

/* Remove previous RTL overrides for WA to keep it on the LEFT always */
html[dir="rtl"] .wa-float, html[dir="rtl"] .wa-bubble {
  left: 20px; right: auto;
}

/* =========================
   Scroll Progress (RIGHT SIDE)
========================= */
.scrollProgress{
  position: fixed;
  top: 14px;
  right: 10px; /* Fixed to RIGHT */
  left: auto;
  height: calc(100vh - 28px);
  width: 10px;
  border-radius: 999px;
  z-index: 2500;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  pointer-events: none;
}

.scrollProgress__bar{
  position: absolute;
  inset: 0;
  /* Dynamic Variable from JS */
  transform: scaleY(var(--sp, 0));
  transform-origin: top;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold2), var(--gold), rgba(165,121,45,.95));
  box-shadow:
    0 0 0 1px rgba(0,0,0,.18) inset,
    0 10px 25px rgba(214,179,106,.28);
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Force elements to stay on the RIGHT in RTL mode too */
html[dir="rtl"] .scrollProgress { right: 10px; left: auto; }

/* =========================
   Back To Top Button (RIGHT SIDE)
========================= */
.backTopFab{
  position: fixed;
  right: calc(22px + var(--safe-r)); /* Fixed to RIGHT */
  left: auto;
  bottom: calc(22px + var(--safe-b));
  z-index: 2501;
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: #0b1220;
  cursor: pointer;

  background: linear-gradient(180deg, var(--gold2), var(--gold));
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  transition: transform .3s ease, opacity .3s ease, box-shadow .16s ease, filter .16s ease;
  -webkit-tap-highlight-color: transparent;

  /* Hidden by default */
  opacity: 0; pointer-events: none; transform: translateY(10px);
}

/* Class added by JS when scrolled > 400px */
.backTopFab.is-visible {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}

.backTopFab:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
}
.backTopFab:active{ transform: translateY(0); }

/* Force elements to stay on the RIGHT in RTL mode too */
html[dir="rtl"] .backTopFab { right: 22px; left: auto; }

@media (max-width: 600px){
  .scrollProgress{ right: 6px; width: 9px; }
  /* Ensure BackTop stays on right on mobile too */
  html[dir="ltr"] .backTopFab, html[dir="rtl"] .backTopFab{
    right: calc(16px + var(--safe-r));
    left: auto;
    bottom: calc(16px + var(--safe-b));
  }
}