/* HisaabUAE - design system + animations */
@view-transition { navigation: auto; }

:root {
  --bg: #0a1120;
  --bg-2: #0d1628;
  --bg-3: #101b31;
  --card: #111c33;
  --card-2: #142140;
  --line: #1f2c47;
  --line-2: #2a3a5c;
  --text: #eef2f8;
  --muted: #9aa7bd;
  --dim: #6c7a93;
  --mint: #2fd6a3;
  --mint-2: #1fb989;
  --mint-ink: #04241a;
  --gold: #f5b83d;
  --gold-2: #ffcf6b;
  --red: #ef3340;
  --uae-green: #00843d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }
html[lang="ur"] { --font: "Noto Nastaliq Urdu", "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="ur"] body { line-height: 2.1; font-size: 15px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { letter-spacing: 0; line-height: 1.9; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mint); color: var(--mint-ink); }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--mint); color: var(--mint-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.num { font-family: "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--mint), var(--gold)); }
[dir="rtl"] .progress { transform-origin: 100% 50%; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(10, 17, 32, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.12rem; font-family: "Inter", sans-serif; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--mint); display: grid; place-items: center; color: var(--mint-ink); position: relative; overflow: hidden; }
.brand .logo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); animation: logoShine 5s 1.5s infinite; }
@keyframes logoShine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.brand .tag { background: var(--gold); color: #3a2600; font-size: .62rem; font-weight: 800; padding: 2px 6px; border-radius: 5px; letter-spacing: .04em; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; align-items: center; }
.nav-links a { color: #cdd5e3; font-size: .9rem; font-weight: 500; position: relative; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; background: var(--mint); transform: scaleX(0); transition: transform .35s var(--ease); border-radius: 2px; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.lang { position: relative; }
.lang > button { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .88rem; cursor: pointer; transition: border-color .2s; }
.lang > button:hover { border-color: var(--mint); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 160px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: .2s var(--ease); }
.lang.open ul { opacity: 1; transform: none; pointer-events: auto; }
.lang li a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: .9rem; }
.lang li a:hover, .lang li a[aria-current="true"] { background: var(--bg-3); text-decoration: none; }
.lang li a small { color: var(--dim); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; color: var(--text); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: .3s var(--ease); }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { --bx: 0px; --by: 0px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 10px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transform: translate(var(--bx), var(--by)); transition: transform .25s var(--ease), box-shadow .3s, background .3s, border-color .3s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--mint); color: var(--mint-ink); box-shadow: 0 10px 30px -10px rgba(47, 214, 163, .6); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(47, 214, 163, .8); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.55) 50%, transparent 75%); transform: translateX(-110%); transition: transform .7s var(--ease); }
.btn-primary:hover::before { transform: translateX(110%); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--mint); background: rgba(47, 214, 163, .06); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 48px 0 110px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; mix-blend-mode: screen; }
.aurora.a1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(47,214,163,.45), transparent 65%); top: -160px; inset-inline-end: 4%; animation: drift1 18s ease-in-out infinite alternate; }
.aurora.a2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(245,184,61,.25), transparent 65%); top: 140px; inset-inline-end: -120px; animation: drift2 22s ease-in-out infinite alternate; }
.aurora.a3 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(59,92,180,.35), transparent 65%); top: 0; inset-inline-start: -260px; animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-80px, 60px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(60px, -40px) scale(.9); } }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(600px 400px at var(--mx, 70%) var(--my, 30%), #000 10%, transparent 70%); mask-image: radial-gradient(600px 400px at var(--mx, 70%) var(--my, 30%), #000 10%, transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); background: rgba(17, 28, 51, .7); border-radius: 999px; font-size: .8rem; color: #d6deea; }
.mini-flag { width: 18px; height: 12px; border-radius: 2px; background: linear-gradient(var(--uae-green) 33.3%, #fff 33.3% 66.6%, #111 66.6%); position: relative; overflow: hidden; }
.mini-flag::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 28%; background: var(--red); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 22px 0 22px; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
html[lang="ar"] .hero h1 { line-height: 1.25; }
html[lang="ur"] .hero h1 { line-height: 1.75; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(10px); animation: wordIn .9s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
.grad { background: linear-gradient(100deg, var(--mint) 0%, #7af0c9 30%, var(--mint) 55%, #19b886 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .grad { animation: wordIn .9s var(--ease) forwards, shimmer 6s 1.5s linear infinite; animation-delay: calc(var(--i) * 90ms + 150ms), 1.6s; }
@keyframes shimmer { to { background-position: -220% 0; } }
.hero .lead { color: #b9c3d4; font-size: 1.06rem; max-width: 520px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .8rem; }
.checks li { display: inline-flex; gap: 6px; align-items: center; }
.checks svg { color: var(--mint); width: 13px; height: 13px; }
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* hero visual */
.stage { position: relative; height: 470px; perspective: 1200px; }
.stage .rays { position: absolute; inset: -10% -10%; background: repeating-conic-gradient(from 0deg at 55% 48%, rgba(47,214,163,.06) 0deg 2deg, transparent 2deg 14deg);
  -webkit-mask-image: radial-gradient(circle at 55% 48%, #000 0, transparent 55%); mask-image: radial-gradient(circle at 55% 48%, #000 0, transparent 55%); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.device { position: absolute; left: 50%; top: 50%; width: 248px; transform: translate(-40%, -50%) translateZ(40px); background: linear-gradient(180deg, #17244a, #121d3b); border: 1px solid #2b3c66; border-radius: 22px; padding: 18px; box-shadow: 0 50px 90px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); }
.device-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .78rem; font-family: "Inter", sans-serif; margin-bottom: 12px; }
.device-top b { color: var(--gold); }
.device-top i { width: 32px; height: 5px; border-radius: 4px; background: #2d3d66; }
.screen { background: #0b1326; border: 1px solid #22305a; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-family: "Inter", sans-serif; direction: ltr; text-align: left; }
.screen small { color: var(--muted); font-size: .65rem; display: block; }
.screen .amount { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; display: block; margin: 2px 0; min-height: 1.3em; }
.screen .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--mint); vertical-align: -3px; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.screen em { color: var(--mint); font-size: .62rem; font-style: normal; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; direction: ltr; }
.keys span { height: 30px; border-radius: 7px; background: #1e2c52; display: grid; place-items: center; font-size: .72rem; font-family: "Inter", sans-serif; color: #c9d3e6; transition: transform .15s, background .15s, box-shadow .15s; }
.keys span.op { color: var(--mint); background: #1a3050; }
.keys span.eq { background: var(--mint); color: var(--mint-ink); font-weight: 800; }
.keys span.press { transform: scale(.88); background: #2c3f72; box-shadow: 0 0 0 3px rgba(47,214,163,.35); }
.keys span.eq.press { background: #7af0c9; }
.float { position: absolute; animation: bob 6s ease-in-out infinite; }
.flag-pole { inset-inline-start: 6%; top: 0; width: 120px; height: 120px; transform: translateZ(10px); }
.flag-pole .pole { position: absolute; inset-inline-start: 0; top: 0; width: 4px; height: 118px; background: linear-gradient(var(--gold-2), #b3801c); border-radius: 3px; }
.flag-wave { position: absolute; inset-inline-start: 4px; top: 2px; width: 112px; height: 56px; transform-origin: 0 50%; animation: wave 3s ease-in-out infinite; display: flex; border-radius: 0 3px 3px 0; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); }
.flag-wave .r { width: 26%; background: var(--red); }
.flag-wave .s { flex: 1; background: linear-gradient(var(--uae-green) 33.3%, #fff 33.3% 66.6%, #0b0b0b 66.6%); }
.flag-wave::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent 40%, rgba(0,0,0,.25) 70%, transparent); background-size: 200% 100%; animation: gloss 3s linear infinite; }
@keyframes wave { 0%, 100% { transform: perspective(300px) rotateY(0) skewY(0); } 50% { transform: perspective(300px) rotateY(-14deg) skewY(2deg); } }
@keyframes gloss { to { background-position: -200% 0; } }
.coin { inset-inline-end: 5%; top: 40px; width: 84px; height: 84px; transform-style: preserve-3d; animation: bob 5s ease-in-out infinite; }
.coin-inner { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 55%, #c98a17); display: grid; place-items: center; font-weight: 800; color: #3a2600; font-family: "Inter", sans-serif; box-shadow: inset 0 -6px 10px rgba(0,0,0,.18), 0 0 0 4px rgba(245,184,61,.2), 0 20px 40px -12px rgba(245,184,61,.5); animation: coinSpin 7s ease-in-out infinite; }
@keyframes coinSpin { 0%, 60% { transform: rotateY(0); } 80%, 100% { transform: rotateY(360deg); } }
.pct { inset-inline-end: 0; top: 170px; width: 66px; height: 66px; border-radius: 16px; border: 1px solid rgba(47,214,163,.5); background: rgba(13, 34, 44, .8); color: var(--mint); font-size: 1.9rem; font-weight: 800; display: grid; place-items: center; font-family: "Inter", sans-serif; animation-delay: -2s; box-shadow: 0 0 40px -10px rgba(47,214,163,.6); }
.cal { inset-inline-start: 6%; top: 236px; width: 82px; border-radius: 12px; background: #f4f7fb; overflow: hidden; text-align: center; color: #0b1326; animation-delay: -3s; box-shadow: 0 25px 40px -15px rgba(0,0,0,.8); z-index: 2; font-family: "Inter", sans-serif; }
.cal b { display: block; background: var(--mint); color: var(--mint-ink); font-size: .58rem; letter-spacing: .12em; padding: 3px 0; }
.cal strong { display: block; font-size: 1.6rem; line-height: 1.2; padding-top: 4px; perspective: 200px; }
.cal strong span { display: inline-block; }
.cal strong span.flip { animation: flip .6s var(--ease); }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cal small { display: block; font-size: .6rem; color: #6b778c; padding-bottom: 6px; }
.ready { inset-inline-end: 1%; top: 268px; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #121d36; border: 1px solid var(--line-2); font-size: .72rem; color: #dfe6f2; z-index: 3; animation-delay: -1s; white-space: nowrap; }
.ready i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); position: relative; }
.ready i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--mint); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.stage .shadow { position: absolute; left: 50%; bottom: 20px; width: 260px; height: 30px; transform: translateX(-35%); background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(6px); }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid #142039; }
.eyebrow { color: var(--mint); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; display: block; }
html[lang="ar"] .eyebrow, html[lang="ur"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow.gold { color: var(--gold); }
.h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.sub { color: var(--muted); max-width: 560px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

/* stat marquee */
.marquee { border-block: 1px solid var(--line); background: #0b1324; overflow: hidden; padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
.marquee-item { display: inline-flex; gap: 10px; align-items: center; color: #c4cddd; font-size: .9rem; white-space: nowrap; }
.marquee-item b { color: var(--gold); font-family: "Inter", sans-serif; }
.marquee-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* tool cards with cursor spotlight */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.card { --x: 50%; --y: 50%; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; color: var(--text); transition: transform .4s var(--ease), border-color .3s; isolation: isolate; overflow: hidden; display: block; }
.card:hover { text-decoration: none; transform: translateY(-6px); border-color: transparent; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(380px circle at var(--x) var(--y), rgba(47,214,163,.9), rgba(245,184,61,.35) 40%, transparent 65%);
  -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 exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .3s; }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px circle at var(--x) var(--y), rgba(47,214,163,.09), transparent 60%); opacity: 0; transition: opacity .3s; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card .ic { width: 40px; height: 40px; border-radius: 10px; background: #143a35; color: var(--mint); display: grid; place-items: center; margin-bottom: 18px; transition: transform .5s var(--ease), background .3s; }
.card .ic svg { width: 20px; height: 20px; }
.card:hover .ic { transform: rotate(-8deg) scale(1.12); background: #175045; }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .86rem; margin-bottom: 14px; }
.card .more { color: var(--mint); font-weight: 600; font-size: .85rem; display: inline-flex; gap: 6px; }
.card .more .arrow { transition: transform .3s var(--ease); }
.card:hover .more .arrow { transform: translateX(5px); }
[dir="rtl"] .card .more .arrow { transform: scaleX(-1); }
[dir="rtl"] .card:hover .more .arrow { transform: scaleX(-1) translateX(5px); }
.badge { position: absolute; top: 18px; inset-inline-end: 18px; background: var(--gold); color: #3a2600; font-size: .66rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; box-shadow: 0 0 0 0 rgba(245,184,61,.6); animation: pulseBadge 2.4s infinite; }
@keyframes pulseBadge { 70% { box-shadow: 0 0 0 10px rgba(245,184,61,0); } 100% { box-shadow: 0 0 0 0 rgba(245,184,61,0); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 44px; position: relative; }
.steps-line { position: absolute; top: 34px; inset-inline: 70px; height: 1px; background: var(--line-2); overflow: hidden; }
.steps-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--mint), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.8s var(--ease) .3s; }
[dir="rtl"] .steps-line::after { transform-origin: 100% 50%; }
.steps.in .steps-line::after { transform: scaleX(1); }
.step .big-wrap { display: inline-block; background: var(--bg-2); padding-inline-end: 14px; position: relative; z-index: 1; }
.step .big { font-size: 3.6rem; font-weight: 300; font-family: "Inter", sans-serif; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.4px var(--mint);
  background: linear-gradient(0deg, var(--mint) 50%, transparent 50%); background-size: 100% 200%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; transition: background-position 1.2s var(--ease); transition-delay: var(--d, 0s); position: relative; display: inline-block; }
.step:hover .big { background-position: 0 100%; }
.step h3 { font-size: 1.12rem; margin: 18px 0 8px; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: .88rem; }

/* fair section */
.fair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.fair-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-top: 26px; font-size: .9rem; color: #c8d1e0; }
.fair-card b { color: #fff; }
.shield { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #143a35; color: var(--mint); display: grid; place-items: center; }
.scale-wrap { position: relative; height: 380px; }
.scale-wrap canvas { width: 100%; height: 100%; display: block; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.stat { background: linear-gradient(180deg, var(--card), #0f1930); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-size: 2.2rem; font-family: "Inter", sans-serif; letter-spacing: -.03em; color: #fff; }
.stat b .u { color: var(--mint); font-size: 1.1rem; margin-inline-start: 4px; }
.stat span { color: var(--muted); font-size: .84rem; }

/* FAQ */
.faq { max-width: 820px; margin-top: 30px; }
.faq details { border: 1px solid var(--line); background: var(--card); border-radius: 12px; margin-bottom: 10px; overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--mint); transition: transform .35s var(--ease); line-height: 1; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 20px 18px; color: #c0c9d8; font-size: .93rem; }
.faq .ans p:last-child { margin: 0; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 54px 44px; background: radial-gradient(600px 300px at 85% 0%, rgba(47,214,163,.25), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(245,184,61,.15), transparent 60%), var(--card); border: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 30px; align-items: center; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 8px; }
.cta-band p { color: var(--muted); margin: 0; }

/* ---------- inner pages ---------- */
.page-hero { padding: 40px 0 34px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 10px 0 14px; }
.page-hero .lead { color: #b9c3d4; max-width: 720px; font-size: 1.04rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 6px; font-size: .8rem; color: var(--dim); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); }

.calc-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 18px; letter-spacing: -.01em; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; color: #d8e0ec; }
.field .hint { font-size: .74rem; color: var(--dim); }
.input { position: relative; }
.input input, .input select, .field select { width: 100%; background: #0c1529; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s; min-height: 46px; }
.input input:focus, .input select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(47,214,163,.15); }
.input input[type="date"] { color-scheme: dark; }
.input .unit { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: .78rem; pointer-events: none; font-family: "Inter", sans-serif; }
.input.has-unit input { padding-inline-end: 48px; }
.input input.invalid { border-color: #ff6b6b; box-shadow: 0 0 0 4px rgba(255,107,107,.12); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.seg { display: inline-flex; background: #0c1529; border: 1px solid var(--line-2); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 8px 14px; border-radius: 9px; font-size: .84rem; color: var(--muted); transition: .25s var(--ease); }
.seg input:checked + span { background: var(--mint); color: var(--mint-ink); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; color: var(--muted); transition: .2s; }
.chips input:checked + span { border-color: var(--mint); color: var(--mint); background: rgba(47,214,163,.1); }
.chips input:focus-visible + span { outline: 2px solid var(--mint); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.sep { height: 1px; background: var(--line); margin: 22px 0; grid-column: 1 / -1; }
.group-title { grid-column: 1 / -1; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mint); font-weight: 700; margin-top: 4px; }
html[lang="ar"] .group-title, html[lang="ur"] .group-title { letter-spacing: 0; font-size: .9rem; }
[hidden] { display: none !important; }

.result { position: sticky; top: 88px; overflow: hidden; }
.result::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 300px; height: 300px; background: radial-gradient(circle, rgba(47,214,163,.22), transparent 65%); pointer-events: none; }
.result .label { color: var(--muted); font-size: .82rem; }
.total { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin: 4px 0 4px; font-family: "Inter", sans-serif; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.total .cur { font-size: .5em; color: var(--muted); margin-inline-end: 6px; font-weight: 600; }
.result.pop .total { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.06); color: var(--mint); } }
.result-note { font-size: .8rem; color: var(--muted); min-height: 1.2em; }
.breakdown { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px dashed var(--line-2); }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; animation: rowIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.breakdown li span:first-child { color: #c6cfdd; }
.breakdown li .dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-inline-end: 8px; vertical-align: 1px; }
.breakdown li.minus span:last-child { color: #ff8a8a; }
.breakdown li.sum { font-weight: 800; border-bottom: none; font-size: .95rem; }
.donut { width: 132px; height: 132px; flex: none; }
.donut circle { fill: none; stroke-width: 5.5; transition: stroke-dasharray .9s var(--ease), stroke-dashoffset .9s var(--ease); }
.result-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.law { margin-top: 18px; background: #0c1529; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .8rem; color: var(--muted); }
.law b { color: #dfe6f2; }
.result-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--mint); color: var(--mint-ink); font-weight: 700; padding: 10px 18px; border-radius: 10px; opacity: 0; transition: .35s var(--ease); z-index: 80; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty-state { color: var(--muted); font-size: .9rem; padding: 10px 0; }
.warn { margin-top: 12px; background: rgba(245,184,61,.08); border: 1px solid rgba(245,184,61,.35); color: #f5d9a0; border-radius: 10px; padding: 10px 12px; font-size: .8rem; }
.hol-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.hol-list li { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: #c6cfdd; }
.hol-list .num { color: var(--muted); min-width: 92px; }

/* prose (guides, legal, calculator explainers) */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.prose { max-width: 760px; color: #c9d2e0; font-size: 1rem; }
html[lang="ur"] .prose { font-size: .98rem; }
.prose h2 { font-size: 1.6rem; color: #fff; margin: 2em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.2rem; color: #fff; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: #fff; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .9rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 10px 12px; text-align: start; }
.prose th { background: var(--bg-3); color: #fff; }
.prose .callout { background: var(--card); border: 1px solid var(--line-2); border-inline-start: 3px solid var(--mint); border-radius: 10px; padding: 14px 18px; margin: 1.4em 0; }
.prose .example { background: #0c1529; border: 1px dashed var(--line-2); border-radius: 12px; padding: 16px 18px; margin: 1.2em 0; }
.aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.aside .box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.aside .box h3 { font-size: .9rem; margin-bottom: 10px; }
.aside .box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .88rem; }
.aside .box a { color: #cfd7e4; }
.aside .box a:hover { color: var(--mint); }
.meta { color: var(--dim); font-size: .82rem; display: flex; gap: 14px; flex-wrap: wrap; }
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.guide-cards .card h3 { font-size: 1.05rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.textarea textarea { width: 100%; min-height: 140px; background: #0c1529; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; resize: vertical; }
.textarea textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(47,214,163,.15); }

/* ads (only rendered when AdSense is configured) */
.ad { margin: 34px auto; text-align: center; min-height: 120px; }
.ad .ad-label { display: block; font-size: .66rem; color: var(--dim); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 6px; }
.ad ins { display: block; min-height: 100px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 28px; margin-top: 0; background: #08101d; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
html[lang="ar"] .site-footer h4, html[lang="ur"] .site-footer h4 { letter-spacing: 0; font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .88rem; }
.site-footer ul a { color: #c7d0de; }
.site-footer p { color: var(--muted); font-size: .86rem; max-width: 340px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--dim); }
.wordmark { font-weight: 800; font-family: "Inter", sans-serif; }
.wordmark b { color: var(--gold); }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf .code { font-size: clamp(6rem, 20vw, 11rem); font-weight: 800; font-family: "Inter", sans-serif; line-height: 1; letter-spacing: -.05em; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner, .fair, .calc-grid, .content-grid { grid-template-columns: 1fr; }
  .stage { height: 420px; max-width: 520px; margin: 10px auto 0; width: 100%; }
  .cards, .guide-cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .result { position: relative; top: 0; }
  .aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; margin-inline-start: auto; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(10,17,32,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 10px 20px 20px; margin: 0;
    clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease); visibility: hidden; }
  .menu-open .nav-links { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-links .lang { margin-top: 14px; }
  .nav-links .lang ul { position: static; opacity: 1; transform: none; pointer-events: auto; display: none; margin-top: 8px; box-shadow: none; }
  .nav-links .lang.open ul { display: block; }
  .nav-links .btn { margin-top: 14px; }
  .nav > .btn { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 26px 0 70px; }
  .cards, .guide-cards, .steps, .contact-grid { grid-template-columns: 1fr; }
  .steps-line { display: none; }
  .fields { grid-template-columns: 1fr; }
  .stage { height: 380px; transform: scale(.86); transform-origin: 50% 0; margin-bottom: -50px; }
  .flag-pole { inset-inline-start: 0; }
  .panel { padding: 20px; }
  .cta-band { padding: 36px 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .scale-wrap { height: 300px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .fade-up, .hero h1 .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee-track { animation: none !important; }
  @view-transition { navigation: none; }
}

/* ---------- print (Save as PDF) ---------- */
@media print {
  :root { --bg: #fff; --text: #000; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header, .site-footer, .progress, .hero-bg, .ad, .form-actions, .result-actions, .marquee, .prose-after, .cta-band, .faq, .content-grid, .crumbs, .skip, .toast, .no-print { display: none !important; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .panel { border: 1px solid #999; background: #fff; color: #000; break-inside: avoid; }
  .panel *, .law, .law b { color: #000 !important; }
  .input input, .input select, .field select { background: #fff; color: #000; border: 1px solid #999; }
  .total { color: #000; }
  .page-hero h1 { color: #000; font-size: 20pt; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* RTL fixes */
[dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .marquee-item { direction: rtl; }
[dir="rtl"] .marquee-track { animation-direction: normal; }
[dir="rtl"] .flag-wave { transform-origin: 100% 50%; }
@media (max-width: 640px) { .coin { top: -6px; width: 70px; height: 70px; } .pct { top: 200px; } }
