/* =========================================================
   EMudnaan – Website styles
   Brand color from the Play Store app: #05A237
   ========================================================= */

:root {
  --primary: #05A237;
  --primary-600: #048a2f;
  --primary-700: #036f26;
  --primary-soft: #e6f6ec;
  --accent: #19c85a;

  --bg: #f5f8f6;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f4f1;
  --border: #e1e9e3;
  --text: #0f1f15;
  --text-2: #33443a;
  --muted: #5d6b62;
  --shadow-sm: 0 2px 8px rgba(5, 70, 30, .06);
  --shadow: 0 10px 30px rgba(5, 70, 30, .08);
  --shadow-lg: 0 25px 60px rgba(5, 70, 30, .16);
  --glass: rgba(255, 255, 255, .72);

  --in: #05A237;
  --out: #e5484d;
  --sms: #3b82f6;

  /* chart series (validated: light surface) */
  --c-income: #05A237;
  --c-expense: #5B5BD6;

  --radius: 20px;
  --font: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
  interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #1fbf55; --primary-600: #17a648; --primary-700: #05A237;
    --primary-soft: rgba(31, 191, 85, .13); --accent: #4ade80;
    --bg: #08100b; --bg-alt: #0c1610; --surface: #111c15; --surface-2: #16241b;
    --border: #213328; --text: #e8f3eb; --text-2: #c3d3c8; --muted: #8fa396;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.3); --shadow: 0 10px 30px rgba(0,0,0,.35); --shadow-lg: 0 25px 60px rgba(0,0,0,.55);
    --glass: rgba(17, 28, 21, .72);
    --out: #f87171; --sms: #60a5fa;
    --c-income: #1AAE4C; --c-expense: #8B83F5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --primary: #1fbf55; --primary-600: #17a648; --primary-700: #05A237;
  --primary-soft: rgba(31, 191, 85, .13); --accent: #4ade80;
  --bg: #08100b; --bg-alt: #0c1610; --surface: #111c15; --surface-2: #16241b;
  --border: #213328; --text: #e8f3eb; --text-2: #c3d3c8; --muted: #8fa396;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3); --shadow: 0 10px 30px rgba(0,0,0,.35); --shadow-lg: 0 25px 60px rgba(0,0,0,.55);
  --glass: rgba(17, 28, 21, .72);
  --out: #f87171; --sms: #60a5fa;
  --c-income: #1AAE4C; --c-expense: #8B83F5;
  color-scheme: dark;
}

html[lang="ar"] { --font: 'Cairo', 'Poppins', system-ui, sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }

/* ---------- Preloader & progress ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg); transition: opacity .5s var(--ease), visibility .5s;
}
.preloader img { width: 76px; height: 76px; border-radius: 20px; box-shadow: var(--shadow-lg); animation: breathe 1.2s ease-in-out infinite; }
.loader-bar { width: 120px; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.loader-bar i { display: block; width: 40%; height: 100%; background: var(--primary); border-radius: 4px; animation: load 1s ease-in-out infinite; }
.preloader.hide { opacity: 0; visibility: hidden; }
@keyframes breathe { 50% { transform: scale(1.08); } }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.progress {
  position: fixed; top: 0; inset-inline-start: 0; z-index: 100; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: left; transform: scaleX(0);
}
[dir="rtl"] .progress { transform-origin: right; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px; font-weight: 600; border: 2px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover svg { transform: translateX(3px); }
[dir="rtl"] .btn-ghost:hover svg { transform: scaleX(-1) translateX(3px); }
.btn-ghost svg { transition: transform .25s var(--ease); }
.btn-white { background: #fff; color: #05A237; }
.btn-white:hover { box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn-outline-white { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.btn-store {
  display: inline-flex; align-items: center; gap: 12px; background: #0f1f15; color: #fff;
  padding: 10px 22px; border-radius: 14px; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s;
}
:root[data-theme="dark"] .btn-store { background: #fff; color: #0f1f15; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-store { background: #fff; color: #0f1f15; } }
.btn-store:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-store .gp { width: 28px; height: 28px; stroke: none; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.btn-store small { font-size: .68rem; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.btn-store b { font-size: 1.15rem; font-family: 'Poppins', sans-serif; }
.btn-store.sm { padding: 8px 16px; }
.btn-store.sm .gp { width: 22px; height: 22px; }
.btn-store.sm b { font-size: 1rem; }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; flex: none;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: border-color .2s, color .2s, transform .3s var(--ease);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
#themeToggle:active svg { transform: rotate(90deg); }
#themeToggle svg { transition: transform .4s var(--ease); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--primary); font-family: 'Poppins', sans-serif; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links > a:not(.btn) {
  position: relative; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s; white-space: nowrap;
}
@media (min-width: 1101px) { .nav-links .drawer-only { display: none; } }
.nav-links > a:not(.btn):hover { color: var(--primary); }
.nav-links > a.active { color: var(--primary); background: var(--primary-soft); }
.drawer-head, .drawer-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { padding: 10px 18px; font-size: .9rem; }

.lang { position: relative; display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 3px; }
.lang button { position: relative; z-index: 1; border: 0; background: transparent; color: var(--muted); width: 38px; padding: 6px 0; border-radius: 9px; font-weight: 700; font-size: .78rem; font-family: 'Poppins', sans-serif; transition: color .25s; }
.lang button.active { color: #fff; }
.lang-pill { position: absolute; top: 3px; bottom: 3px; width: 38px; left: 3px; border-radius: 9px; background: var(--primary); transition: transform .35s var(--ease); }

.sun { display: none; }
:root[data-theme="dark"] .sun { display: block; }
:root[data-theme="dark"] .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sun { display: block; }
  :root:not([data-theme="light"]) .moon { display: none; }
}

.menu-btn { display: none; }
.overlay { display: none; }

@media (max-width: 1240px) { .nav-cta { display: none; } }
@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 80;
    width: min(320px, 86vw); flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
    background: var(--bg-alt); border-inline-start: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .45s var(--ease); overflow-y: auto;
  }
  [dir="rtl"] .nav-links { transform: translateX(-105%); }
  .nav-links.open { transform: none !important; }
  .nav-links > a:not(.btn) { padding: 13px 14px; font-size: 1rem; color: var(--text-2); }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .drawer-cta { display: inline-flex; margin-top: auto; }
  .overlay {
    display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.4);
    backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .overlay.show { opacity: 1; pointer-events: auto; }
}
@media (max-width: 440px) {
  .nav-inner { gap: 8px; }
  .brand span { display: none; }
  .lang button, .lang-pill { width: 34px; }
  .icon-btn { width: 40px; height: 40px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 96px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 18s ease-in-out infinite; }
.o1 { width: 520px; height: 520px; background: color-mix(in srgb, var(--primary) 45%, transparent); top: -180px; inset-inline-end: -120px; }
.o2 { width: 380px; height: 380px; background: color-mix(in srgb, var(--accent) 30%, transparent); bottom: -140px; inset-inline-start: -120px; animation-delay: -6s; }
.o3 { width: 260px; height: 260px; background: color-mix(in srgb, #0ea5e9 22%, transparent); top: 40%; left: 45%; animation-delay: -12s; }
@keyframes drift { 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 30px) scale(.95); } }
.grid-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; min-height: min(calc(100svh - 180px), 760px); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: var(--glass); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  color: var(--primary); font-weight: 600; font-size: .85rem; margin-bottom: 20px; backdrop-filter: blur(8px);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 50%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 16px; }
html[lang="ar"] .hero h1 { line-height: 1.35; }
.hl {
  white-space: nowrap; background: linear-gradient(100deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.typed { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; color: var(--text-2); margin-bottom: 14px; min-height: 1.6em; }
.typed-word { color: var(--primary); }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-inline-start: 3px; background: var(--primary); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.lead { font-size: 1.08rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 14px; justify-content: start; }
.hero-stats li {
  display: flex; flex-direction: column; padding: 12px 16px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.hero-stats b { font-size: 1.5rem; color: var(--primary); font-weight: 800; font-family: 'Poppins', sans-serif; line-height: 1.2; }
.hero-stats span { font-size: .78rem; color: var(--muted); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; perspective: 1200px; }
.blob {
  position: absolute; width: 400px; height: 400px; border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%;
  background: linear-gradient(135deg, var(--primary), var(--accent)); opacity: .95;
  animation: morph 12s ease-in-out infinite; box-shadow: 0 30px 80px color-mix(in srgb, var(--primary) 40%, transparent);
}
@keyframes morph { 50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; transform: rotate(10deg) scale(1.04); } }
.ring { position: absolute; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--primary) 35%, transparent); animation: spin 40s linear infinite; }
.r1 { width: 500px; height: 500px; }
.r2 { width: 590px; height: 590px; animation-direction: reverse; animation-duration: 60s; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

.tilt { position: relative; transform-style: preserve-3d; transition: transform .4s var(--ease); }
.phone {
  position: relative; width: 270px; aspect-ratio: 720 / 1616; border-radius: 42px; padding: 10px; background: #0b120e;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b3a31, 0 0 0 1px rgba(255,255,255,.04);
}
.phone::after { content: ""; position: absolute; inset: 10px; border-radius: 32px; pointer-events: none;
  background: linear-gradient(130deg, rgba(255,255,255,.14), transparent 35%); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.phone-screens { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; }
.phone-screens img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.phone-screens img.active { opacity: 1; transform: none; }
.phone.sm { width: 240px; }

.screen-dots { position: absolute; bottom: 4px; display: flex; gap: 8px; }
.screen-dots button { width: 8px; height: 8px; padding: 0; border-radius: 8px; border: 0; background: color-mix(in srgb, var(--text) 25%, transparent); transition: width .35s var(--ease), background .3s; }
.screen-dots button.active { width: 26px; background: var(--primary); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; transform: translateZ(60px);
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.float-card small { display: block; font-size: .72rem; color: var(--muted); }
.float-card b { font-size: .95rem; white-space: nowrap; }
.fc-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.fc-ic svg { width: 18px; height: 18px; }
.fc-ic.in { background: var(--in); }
.fc-ic.out { background: var(--out); }
.fc-ic.sms { background: var(--sms); }
.fc-1 { top: 14%; inset-inline-start: -90px; }
.fc-2 { top: 54%; inset-inline-end: -100px; animation-delay: -2s; }
.fc-3 { bottom: 6%; inset-inline-start: -60px; animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -12px; } }

.scroll-hint { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 14px; display: grid; justify-items: center; padding-top: 7px; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--primary); animation: scrolly 1.8s ease-in-out infinite; }
@keyframes scrolly { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 980px) {
  .hero { padding: 32px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; min-height: 0; gap: 24px; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; grid-template-columns: repeat(4, auto); }
  .hero-visual { min-height: 560px; }
  .scroll-hint { display: none; }
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .hero-cta > * { flex: 1 1 100%; justify-content: center; }
  .hero-visual { min-height: 500px; }
  .phone { width: 220px; border-radius: 36px; }
  .phone::after, .phone img, .phone-screens { border-radius: 27px; }
  .blob { width: 290px; height: 290px; }
  .r1 { width: 350px; height: 350px; } .r2 { width: 420px; height: 420px; }
  .fc-1 { inset-inline-start: -46px; top: 10%; }
  .fc-2 { inset-inline-end: -46px; }
  .fc-3 { inset-inline-start: -30px; }
  .float-card { padding: 8px 10px; gap: 8px; }
  .fc-ic { width: 30px; height: 30px; }
  .float-card b { font-size: .85rem; }
}
@media (max-width: 380px) {
  .fc-1, .fc-3 { inset-inline-start: -20px; }
  .fc-2 { inset-inline-end: -20px; }
}

/* ---------- Strip (wallets + marquee) ---------- */
.strip { border-block: 1px solid var(--border); background: var(--bg-alt); padding-top: 26px; overflow: hidden; }
.wallets-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; }
.wallets-inner p { margin: 0; font-weight: 500; color: var(--muted); text-align: center; }
.wallet-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.wallet { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px; font-weight: 700; color: #fff; font-size: .92rem; font-family: 'Poppins', sans-serif; transition: transform .3s var(--ease); }
.wallet:hover { transform: translateY(-3px) rotate(-2deg); }
.wallet i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 2s infinite; }
.w-evc { background: #05A237; }
.w-jeeb { background: #d97706; }
.w-edahab { background: #0284c7; }

.marquee { margin-top: 22px; padding: 14px 0; border-top: 1px dashed var(--border); direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .88rem; color: var(--text-2); white-space: nowrap; }
.chip svg { width: 16px; height: 16px; color: var(--primary); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: var(--primary-soft);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .85rem; }
@media (max-width: 640px) { .section { padding: 68px 0; } .section-head { margin-bottom: 32px; } }

/* ---------- Tabs & Features ---------- */
.tabs-wrap { display: flex; justify-content: center; margin-bottom: 36px; }
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: color .25s; }
.tab em { font-style: normal; font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); transition: .25s; }
.tab:hover { color: var(--primary); }
.tab.active { color: #fff; }
.tab.active em { background: rgba(255,255,255,.22); color: #fff; }
.tab-pill { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--primary); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 40%, transparent); transition: transform .4s var(--ease), width .4s var(--ease); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.feature {
  --x: 50%; --y: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
  animation: pop .5s var(--ease) both;
}
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--x) var(--y), color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.feature:hover::before { opacity: 1; }
.feature .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--primary-soft); color: var(--primary); transition: transform .45s var(--ease), background .3s, color .3s;
}
.feature:hover .ic { background: var(--primary); color: #fff; transform: rotate(-8deg) scale(1.08); }
.feature h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }
.feature .tag { position: absolute; top: 18px; inset-inline-end: 18px; font-size: .68rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px; }
  .feature .ic { grid-row: span 2; margin: 0; width: 46px; height: 46px; }
  .feature .tag { display: none; }
  .tabs-wrap { justify-content: flex-start; }
}

/* ---------- Live dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--text-2); }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; color: #fff; background: var(--primary); }

.dash-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
  padding: 20px; box-shadow: var(--shadow-lg); display: grid; gap: 14px;
}
.dash-card::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 27px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 60%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--c-expense) 50%, transparent)); }
.dash-top { display: flex; justify-content: space-between; align-items: center; }
.dash-title { display: flex; gap: 10px; align-items: center; }
.dash-title img { width: 36px; height: 36px; border-radius: 10px; }
.dash-title b { display: block; font-size: .95rem; line-height: 1.2; }
.dash-title small { font-size: .74rem; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--primary); padding: 5px 11px; border-radius: 999px; background: var(--primary-soft); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: pulse 1.6s infinite; }

.balances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bal { position: relative; overflow: hidden; border-radius: 16px; padding: 12px 14px; color: #fff; }
.bal::after { content: ""; position: absolute; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.14); top: -30px; inset-inline-end: -24px; }
.bal small { display: block; font-size: .72rem; opacity: .9; font-weight: 600; font-family: 'Poppins', sans-serif; }
.bal b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.b-evc { background: linear-gradient(135deg, #05A237, #036f26); }
.b-jeeb { background: linear-gradient(135deg, #d97706, #b45309); }
.b-edahab { background: linear-gradient(135deg, #0284c7, #075985); }
.bal.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.05); } }

.today { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.today > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.t-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.t-ic svg { width: 16px; height: 16px; }
.t-in .t-ic { background: var(--c-income); }
.t-out .t-ic { background: var(--c-expense); }
.today small { display: block; font-size: .72rem; color: var(--muted); }
.today b { font-variant-numeric: tabular-nums; }

.chart-box { position: relative; padding: 14px; border-radius: 16px; border: 1px solid var(--border); }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; font-size: .84rem; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: .78rem; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; }
.sw-in { background: var(--c-income); }
.sw-out { background: var(--c-expense); }
.chart {
  height: 140px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end;
  background-image: linear-gradient(var(--border) 1px, transparent 1px); background-size: 100% 25%; background-position: 0 -1px;
  border-bottom: 1px solid var(--border); padding-top: 4px;
}
.day { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; }
.day .bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; }
.day .bar { width: min(14px, 40%); border-radius: 4px 4px 0 0; transform-origin: bottom; transition: height .8s var(--ease), opacity .2s; }
.day .bar.in { background: var(--c-income); }
.day .bar.out { background: var(--c-expense); }
.day:hover .bar, .day.today-col .bar { opacity: 1; }
.chart:hover .day:not(:hover) .bar { opacity: .4; }
.day-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 6px; font-size: .7rem; color: var(--muted); text-align: center; }
.day-labels .now { color: var(--primary); font-weight: 700; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; padding: 8px 10px; border-radius: 10px; font-size: .76rem; line-height: 1.5;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, -6px); transition: opacity .15s; white-space: nowrap;
}
.chart-tip.show { opacity: 1; }
.chart-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 6px; }

.feed-head { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 236px; }
.feed li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2);
  animation: slideIn .6s var(--ease) both;
}
.feed li.leaving { animation: slideOut .4s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes slideOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.feed .f-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: .68rem; font-weight: 800; font-family: 'Poppins', sans-serif; }
.feed .f-ic.evc { background: #05A237; } .feed .f-ic.jeeb { background: #d97706; } .feed .f-ic.edahab { background: #0284c7; }
.feed .f-main { flex: 1; min-width: 0; }
.feed .f-main b { display: block; font-size: .86rem; }
.feed .f-main small { color: var(--muted); font-size: .74rem; }
.feed .f-amt { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .92rem; }
.feed .f-amt.in { color: var(--c-income); }
.feed .f-amt.out { color: var(--c-expense); }

@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 480px) {
  .dash-card { padding: 14px; border-radius: 20px; }
  .balances { gap: 6px; }
  .bal { padding: 10px; border-radius: 12px; }
  .bal b { font-size: .88rem; }
  .today { grid-template-columns: 1fr; }
  .chart { gap: 4px; height: 120px; }
  .day-labels { gap: 4px; }
}

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps::before { content: ""; position: absolute; top: 58px; inset-inline: 16%; border-top: 2px dashed color-mix(in srgb, var(--primary) 40%, transparent); }
.step { position: relative; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: transform .35s var(--ease), box-shadow .35s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-num {
  position: relative; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 18px;
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 40%, transparent);
}
.step-num svg { width: 26px; height: 26px; }
.step-count { position: absolute; top: 14px; inset-inline-end: 18px; font-size: 2.2rem; font-weight: 800; color: var(--surface-2); font-family: 'Poppins', sans-serif; line-height: 1; }
.step h3 { font-size: 1.12rem; font-weight: 700; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .steps::before { top: 40px; bottom: 40px; inset-inline: auto; left: 50%; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--primary) 40%, transparent); }
}

/* ---------- Calculator ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.calc-card {
  position: relative; overflow: hidden; display: grid; gap: 16px;
  background: linear-gradient(160deg, #05A237, #036f26); color: #fff; border-radius: 26px; padding: 26px; box-shadow: var(--shadow-lg);
}
.calc-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); top: -110px; inset-inline-end: -90px; }
.calc-head { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.calc-head svg { padding: 8px; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.16); }
.calc-card label { position: relative; display: grid; gap: 8px; font-size: .88rem; font-weight: 500; }
.lab-row { display: flex; justify-content: space-between; }
.lab-row output { font-weight: 800; padding: 1px 10px; border-radius: 999px; background: rgba(255,255,255,.2); }
.calc-card input[type="number"] {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12); color: #fff; font: inherit; font-weight: 600; font-size: 1rem; outline: none; transition: border-color .2s, background .2s;
}
.calc-card input[type="number"]:focus { border-color: #fff; background: rgba(255,255,255,.2); }
.calc-card input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; outline: none;
  background: linear-gradient(to right, #fff var(--fill, 15%), rgba(255,255,255,.25) var(--fill, 15%)); }
[dir="rtl"] .calc-card input[type="range"] { background: linear-gradient(to left, #fff var(--fill, 15%), rgba(255,255,255,.25) var(--fill, 15%)); }
.calc-card input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #04812c; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: grab; }
.calc-card input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid #04812c; cursor: grab; }
.calc-out { position: relative; background: rgba(0,0,0,.16); border-radius: 16px; padding: 4px 16px; }
.calc-out div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.calc-out div:last-child { border-bottom: 0; }
.calc-out b { font-variant-numeric: tabular-nums; }
.calc-out .profit b { font-size: 1.4rem; color: #bbf7d0; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 480px) { .calc-card { padding: 20px; border-radius: 20px; } }

/* ---------- Screens ---------- */
.screens { display: flex; justify-content: center; align-items: flex-start; gap: 40px; }
.screens figure { margin: 0; text-align: center; transition: transform .5s var(--ease); }
.screens figure:hover { transform: translateY(-10px) rotate(-1deg); }
.screens figure:nth-child(2) { margin-top: -28px; }
.screens figcaption { margin-top: 16px; font-weight: 600; color: var(--muted); }
@media (max-width: 820px) {
  .screens {
    justify-content: flex-start; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 18px;
    margin-inline: -16px; scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens figure { scroll-snap-align: center; flex: none; }
  .screens figure:nth-child(2) { margin-top: 0; }
  .phone.sm { width: 210px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 2px 22px; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-size: 1.3rem; line-height: 1; transition: transform .35s var(--ease), background .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background: var(--primary); color: #fff; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  padding: 56px; border-radius: 32px; color: #fff;
  background: linear-gradient(120deg, #05A237, #036f26, #0a8f3a, #05A237); background-size: 300% 300%;
  animation: gradientMove 12s ease infinite; box-shadow: var(--shadow-lg);
}
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
[dir="rtl"] .cta::before { mask-image: linear-gradient(-90deg, transparent, #000); -webkit-mask-image: linear-gradient(-90deg, transparent, #000); }
@keyframes gradientMove { 50% { background-position: 100% 50%; } }
.cta-text { position: relative; }
.cta h2 { margin-bottom: 10px; }
.cta p { margin: 0 0 26px; opacity: .92; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-visual { position: relative; }
.cta-visual img { width: 170px; height: 170px; border-radius: 40px; box-shadow: 0 30px 60px rgba(0,0,0,.3); transform: rotate(8deg); animation: float 6s ease-in-out infinite; border: 4px solid rgba(255,255,255,.25); }
@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr; padding: 36px 22px; text-align: center; border-radius: 24px; }
  .cta-actions { justify-content: center; }
  .cta-actions .btn { flex: 1 1 100%; }
  .cta-visual { display: none; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 24px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.f-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.f-col h4 { font-size: .95rem; margin-bottom: 4px; }
.f-col > a:not(.brand):not(.btn-store) { color: var(--muted); font-size: .92rem; transition: color .2s; }
.f-col > a:not(.brand):not(.btn-store):hover { color: var(--primary); }
.f-about p { max-width: 320px; font-size: .92rem; margin: 6px 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; font-size: .88rem; }
.footer-bottom b { color: var(--primary); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .f-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-bottom { flex-direction: column; text-align: center; align-items: center; } }

/* ---------- Floating buttons ---------- */
.fab-wa, .to-top {
  position: fixed; inset-inline-end: 20px; z-index: 50; width: 52px; height: 52px; border-radius: 16px; border: 0;
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); transition: transform .35s var(--ease), opacity .3s;
}
.fab-wa { bottom: calc(20px + env(safe-area-inset-bottom)); background: #25D366; }
.fab-wa svg { width: 28px; height: 28px; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25D366; z-index: -1; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.fab-wa:hover { transform: scale(1.08); }
.to-top { bottom: calc(84px + env(safe-area-inset-bottom)); width: 44px; height: 44px; border-radius: 14px; background: var(--primary); opacity: 0; transform: translateY(16px); pointer-events: none; margin-inline-end: 4px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Theme switch animation (View Transitions) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
