/*
 * EGY PAY — customer website (landing + web app).
 * Plain CSS (no build step, deploys on cPanel as is). Animations respect
 * prefers-reduced-motion. Brand: navy #0B1B2B/#0F2D4A, sky #1E96DC,
 * orange #F7931E, mint #10A37F.
 */

/* ───────────────────────── Tokens ───────────────────────── */
:root {
    --navy-950: #050d16;
    --navy-900: #08131f;
    --navy-800: #0b1b2b;
    --navy-700: #0f2d4a;
    --navy-600: #143c61;
    --sky: #1e96dc;
    --sky-300: #5bb8ec;
    --sky-100: #e3f2fc;
    --orange: #f7931e;
    --orange-300: #ffb55c;
    --mint: #10a37f;
    --mint-100: #def7ef;
    --rose: #f43f5e;
    --rose-100: #ffe4e8;
    --violet: #7c5cff;
    --amber: #f5a524;

    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --line: rgba(15, 45, 74, 0.09);
    --text: #0b1b2b;
    --text-2: #475569;
    --text-3: #94a3b8;

    --r-xs: 8px;
    --r-sm: 12px;
    --r: 18px;
    --r-lg: 24px;
    --r-xl: 32px;

    --shadow-sm: 0 1px 2px rgba(15, 45, 74, .05);
    --shadow: 0 1px 2px rgba(15, 45, 74, .04), 0 10px 30px -12px rgba(15, 45, 74, .18);
    --shadow-lg: 0 2px 6px rgba(15, 45, 74, .05), 0 30px 60px -24px rgba(15, 45, 74, .35);
    --glow-sky: 0 12px 30px -10px rgba(30, 150, 220, .65);
    --glow-orange: 0 12px 30px -10px rgba(247, 147, 30, .7);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --sidebar: 280px;
    --topbar: 76px;
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid rgba(30, 150, 220, .45); outline-offset: 2px; border-radius: 10px; }
::selection { background: rgba(30, 150, 220, .22); }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; flex-shrink: 0; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.grad-text {
    background: linear-gradient(90deg, var(--sky-300), #fff 45%, var(--orange-300));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
    --b: var(--sky);
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 24px;
    border-radius: 16px;
    font-weight: 800; font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--sky) 0%, #1373b3 100%);
    box-shadow: var(--glow-sky), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
}
.btn::after { /* shine sweep */
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .8s var(--ease);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn-orange { background: linear-gradient(135deg, var(--orange) 0%, #e07408 100%); box-shadow: var(--glow-orange), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); backdrop-filter: blur(10px); }
.btn-light { color: var(--navy-700); background: #fff; box-shadow: var(--shadow); }
.btn-soft { color: var(--sky); background: var(--sky-100); box-shadow: none; }
.btn-danger { background: linear-gradient(135deg, var(--rose), #d61f45); box-shadow: 0 12px 30px -12px rgba(244, 63, 94, .7); }
.btn-block { width: 100%; }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 32px; border-radius: 18px; font-size: 17px; }
.spinner {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
    animation: spin .8s linear infinite;
}
.btn-light .spinner, .btn-soft .spinner { border-color: rgba(30, 150, 220, .25); border-top-color: var(--sky); }

/* ───────────────────────── Forms ───────────────────────── */
.field { display: grid; gap: 8px; }
.field > label { font-weight: 700; font-size: 14px; color: var(--text); }
.input-wrap {
    position: relative; display: flex; align-items: center; gap: 10px;
    height: 56px; padding: 0 16px;
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    border-radius: 16px;
    transition: border-color .2s, box-shadow .25s var(--ease), background .2s;
}
.input-wrap:focus-within { background: #fff; border-color: var(--sky); box-shadow: 0 0 0 5px rgba(30, 150, 220, .13); }
.input-wrap .icon { color: var(--text-3); transition: color .2s; }
.input-wrap:focus-within .icon { color: var(--sky); }
.input-wrap input, .input-wrap select {
    flex: 1; min-width: 0; height: 100%;
    border: 0; outline: 0; background: transparent;
    font-size: 16px; font-weight: 600;
}
.input-wrap input::placeholder { color: var(--text-3); font-weight: 500; }
.input-wrap.has-error { border-color: var(--rose); box-shadow: 0 0 0 5px rgba(244, 63, 94, .1); animation: shake .4s; }
.field-error { color: var(--rose); font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.field-hint { color: var(--text-3); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--sky); margin-top: 2px; }
.input-plain {
    width: 100%; height: 52px; padding: 0 16px;
    border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-2);
    outline: 0; font-weight: 600; transition: border-color .2s, box-shadow .2s;
}
.input-plain:focus { border-color: var(--sky); box-shadow: 0 0 0 5px rgba(30, 150, 220, .13); background: #fff; }

/* ───────────────────────── Landing ───────────────────────── */
.landing { background: var(--navy-900); color: #fff; }
.nav {
    position: fixed; inset-inline: 0; top: 0; z-index: 50;
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled { background: rgba(8, 19, 31, .72); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav-inner { height: 84px; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 6px; margin-inline-start: auto; }
.nav-links a { padding: 10px 14px; border-radius: 12px; font-weight: 700; color: rgba(255, 255, 255, .75); transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.lang-pill { padding: 8px 12px; border-radius: 10px; font-weight: 800; font-size: 13px; color: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }

.brand { display: inline-flex; align-items: center; gap: 10px; direction: ltr; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(30, 150, 220, .35)); }
.brand-text { font-size: 22px; font-weight: 900; letter-spacing: .02em; color: var(--sky); }
.brand-text b { color: var(--orange); }

.hero { position: relative; min-height: clamp(720px, 100vh, 960px); padding: 140px 0 80px; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(70px); opacity: .9; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: float-blob 18s var(--ease) infinite alternate; }
.aurora span:nth-child(1) { width: 55vw; height: 55vw; top: -10%; inset-inline-start: -10%; background: radial-gradient(circle, rgba(30, 150, 220, .55), transparent 65%); }
.aurora span:nth-child(2) { width: 45vw; height: 45vw; bottom: -15%; inset-inline-end: -5%; background: radial-gradient(circle, rgba(247, 147, 30, .45), transparent 65%); animation-delay: -6s; }
.aurora span:nth-child(3) { width: 35vw; height: 35vw; top: 30%; inset-inline-start: 40%; background: radial-gradient(circle, rgba(124, 92, 255, .35), transparent 65%); animation-delay: -11s; }
.grid-bg {
    position: absolute; inset: 0; z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
}
#stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px 8px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, .85);
}
[dir="rtl"] .eyebrow { padding: 8px 8px 8px 16px; }
.eyebrow .tag { padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--orange), #e07408); color: #fff; font-size: 12px; font-weight: 800; }
.hero h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.12; font-weight: 900; margin: 22px 0 18px; letter-spacing: -.02em; }
.hero p.lead { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, .72); max-width: 560px; margin: 0 0 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 42px; display: flex; gap: 28px; flex-wrap: wrap; color: rgba(255, 255, 255, .7); font-weight: 700; font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon-sm { color: #34d399; }

/* Hero visual: 3D wallet card + floating service chips */
.hero-visual { position: relative; height: 560px; perspective: 1400px; }
.card3d {
    position: absolute; top: 50%; left: 50%;
    width: 420px; height: 260px; margin: -130px 0 0 -210px;
    border-radius: 28px; padding: 28px;
    color: #fff; direction: ltr;
    background:
        radial-gradient(400px 220px at 0% 0%, rgba(91, 184, 236, .9), transparent 60%),
        radial-gradient(300px 220px at 100% 100%, rgba(247, 147, 30, .8), transparent 60%),
        linear-gradient(135deg, #1e96dc, #0f2d4a 70%);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .15);
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -18deg)) rotateZ(-4deg);
    transition: transform .6s var(--ease);
    animation: card-bob 6s ease-in-out infinite;
}
.card3d::before { /* holographic sheen */
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 48%, transparent 60%);
    background-size: 250% 100%;
    animation: sheen 5s ease-in-out infinite;
    mix-blend-mode: overlay;
}
.card3d .chip { width: 52px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #ffe6b3, #c9963c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.card3d .label { margin-top: 24px; font-size: 13px; opacity: .8; letter-spacing: .12em; text-transform: uppercase; }
/* Letter-spacing breaks Arabic joining. */
[dir="rtl"] .card3d .label, [dir="rtl"] .kicker { letter-spacing: 0; direction: rtl; text-align: start; }
.card3d .amount { font-size: 40px; font-weight: 900; letter-spacing: -.01em; }
.card3d .row { position: absolute; bottom: 26px; left: 28px; right: 28px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; letter-spacing: .14em; opacity: .9; }
.card3d .logo { transform: translateZ(40px); }
.chip-float {
    position: absolute; display: flex; align-items: center; gap: 10px;
    padding: 12px 16px 12px 12px; border-radius: 18px;
    background: rgba(255, 255, 255, .1); backdrop-filter: blur(16px) saturate(160%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 20px 40px -20px rgba(0, 0, 0, .6);
    font-weight: 800; font-size: 14px; color: #fff; white-space: nowrap;
    animation: chip-float 7s ease-in-out infinite;
}
.chip-float .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.chip-float small { display: block; font-weight: 600; font-size: 12px; opacity: .7; }
.chip-float.c1 { top: 8%; inset-inline-start: 2%; }
.chip-float.c2 { top: 16%; inset-inline-end: 0; animation-delay: -2s; }
.chip-float.c3 { bottom: 12%; inset-inline-start: 6%; animation-delay: -4s; }
.chip-float.c4 { bottom: 4%; inset-inline-end: 8%; animation-delay: -1s; }
.orbit { position: absolute; top: 50%; left: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); animation: spin 60s linear infinite; }
.orbit::before { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 20px var(--orange); }
.orbit.o2 { width: 640px; height: 640px; margin: -320px 0 0 -320px; animation-duration: 90s; animation-direction: reverse; border-color: rgba(255, 255, 255, .07); }
.orbit.o2::before { background: var(--sky-300); box-shadow: 0 0 20px var(--sky-300); }

/* Stats band */
.stats { position: relative; margin-top: -40px; z-index: 2; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, .05); backdrop-filter: blur(20px);
    border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.stat { padding: 34px 28px; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; inset-block: 28px; inset-inline-start: 0; width: 1px; background: rgba(255, 255, 255, .1); }
.stat strong { display: block; font-size: 44px; font-weight: 900; line-height: 1; }
.stat span { color: rgba(255, 255, 255, .65); font-weight: 700; }

/* Sections */
.section { position: relative; padding: 120px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.kicker { display: inline-block; font-weight: 800; font-size: 14px; letter-spacing: .08em; color: var(--orange); text-transform: uppercase; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.2; margin: 10px 0 14px; font-weight: 900; letter-spacing: -.01em; }
.section-head p { color: rgba(255, 255, 255, .65); font-size: 18px; margin: 0; }
.section.light { background: var(--bg); color: var(--text); }
.section.light .section-head p { color: var(--text-2); }

/* Marquee of services */
.marquee { position: relative; overflow: hidden; padding: 10px 0; 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: 16px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.m-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px;
    border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
    font-weight: 800; white-space: nowrap;
}
.m-item .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }

/* Feature cards (spotlight follows the pointer) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
    position: relative; padding: 34px; border-radius: var(--r-lg); overflow: hidden;
    background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
    transition: transform .4s var(--ease), box-shadow .4s;
}
.feature::before {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(30, 150, 220, .18), transparent 45%);
}
.feature:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(91, 184, 236, .35), 0 30px 60px -30px rgba(0, 0, 0, .7); }
.feature:hover::before { opacity: 1; }
.feature .f-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px; }
.feature h3 { margin: 0 0 10px; font-size: 22px; font-weight: 900; }
.feature p { margin: 0; color: rgba(255, 255, 255, .65); }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.steps::before { content: ''; position: absolute; top: 42px; inset-inline: 16%; height: 2px; background: linear-gradient(90deg, var(--sky), var(--orange)); opacity: .5; transform-origin: inline-start; transform: scaleX(var(--progress, 0)); transition: transform 1.6s var(--ease); }
.step { text-align: center; padding: 0 12px; }
.step .n { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 26px; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--sky), var(--navy-700)); box-shadow: var(--glow-sky); position: relative; }
.step:nth-child(2) .n { background: linear-gradient(135deg, var(--violet), var(--navy-700)); box-shadow: 0 12px 30px -10px rgba(124, 92, 255, .6); }
.step:nth-child(3) .n { background: linear-gradient(135deg, var(--orange), #b75a00); box-shadow: var(--glow-orange); }
.step h3 { margin: 0 0 8px; font-size: 21px; font-weight: 900; }
.step p { margin: 0; color: var(--text-2); }

/* Security */
.security { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.shield { position: relative; width: 340px; height: 340px; margin: 0 auto; display: grid; place-items: center; }
.shield .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(16, 163, 127, .35); animation: pulse-ring 3s var(--ease) infinite; }
.shield .ring:nth-child(2) { animation-delay: 1s; }
.shield .ring:nth-child(3) { animation-delay: 2s; }
.shield .core { width: 170px; height: 170px; border-radius: 48px; display: grid; place-items: center; background: linear-gradient(135deg, #10a37f, #065f4a); box-shadow: 0 30px 60px -20px rgba(16, 163, 127, .8), inset 0 1px 0 rgba(255, 255, 255, .3); transform: rotate(-6deg); }
.shield .core svg { width: 84px; height: 84px; color: #fff; }
.sec-list { display: grid; gap: 14px; margin-top: 28px; }
.sec-item { display: flex; gap: 16px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.sec-item:hover { transform: translateX(-6px); }
[dir="ltr"] .sec-item:hover { transform: translateX(6px); }
.sec-item .ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--mint-100); color: var(--mint); }
.sec-item h4 { margin: 0 0 2px; font-size: 17px; font-weight: 900; }
.sec-item p { margin: 0; color: var(--text-2); font-size: 14px; }

/* CTA */
.cta {
    position: relative; overflow: hidden; border-radius: 40px; padding: 72px; text-align: center; isolation: isolate;
    background: radial-gradient(600px 300px at 10% 0%, rgba(30, 150, 220, .6), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(247, 147, 30, .5), transparent 60%), linear-gradient(135deg, var(--navy-700), var(--navy-900));
    box-shadow: 0 50px 100px -40px rgba(8, 19, 31, .8);
}
.cta h2 { font-size: clamp(30px, 3.4vw, 46px); margin: 0 0 14px; font-weight: 900; color: #fff; }
.cta p { color: rgba(255, 255, 255, .72); font-size: 18px; margin: 0 0 30px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 800; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .3s var(--ease); color: var(--sky); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--text-2); animation: fade-down .35s var(--ease); }

/* Footer */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .65); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { color: #fff; font-size: 16px; margin: 0 0 16px; font-weight: 900; }
.footer a { display: block; padding: 5px 0; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-credit { margin-top: 16px; text-align: center; font-size: 13px; }
.footer-credit a { display: inline; padding: 0; color: #fff; font-weight: 700; }

/* ───────────────────────── Auth pages ───────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth-art {
    position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 56px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.auth-art .aurora { inset: -30%; }
.auth-art h2 { font-size: 42px; line-height: 1.25; margin: 0 0 14px; font-weight: 900; }
.auth-art p { color: rgba(255, 255, 255, .7); font-size: 17px; margin: 0; max-width: 460px; }
.auth-art .card3d { position: relative; top: auto; left: auto; margin: 40px auto; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: min(440px, 100%); animation: rise .7s var(--ease) both; }
.auth-box h1 { font-size: 34px; margin: 0 0 6px; font-weight: 900; }
.auth-box .sub { color: var(--text-2); margin: 0 0 30px; }
.auth-box form { display: grid; gap: 18px; }
.auth-switch { margin-top: 24px; text-align: center; color: var(--text-2); font-weight: 600; }
.auth-switch a { color: var(--sky); font-weight: 800; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; animation: fade-down .35s var(--ease); }
.alert-error { background: var(--rose-100); color: #be123c; }
.alert-ok { background: var(--mint-100); color: #047857; }
.alert-info { background: var(--sky-100); color: #0b5d8f; }

/* ───────────────────────── App shell ───────────────────────── */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 16px; z-index: 30; }
.sidebar-inner {
    position: relative; height: 100%; border-radius: 28px; padding: 22px 16px; display: flex; flex-direction: column; overflow: hidden; color: #fff;
    background: radial-gradient(400px 260px at 100% 0%, rgba(30, 150, 220, .35), transparent 70%), radial-gradient(300px 220px at 0% 100%, rgba(247, 147, 30, .18), transparent 70%), linear-gradient(180deg, var(--navy-700), var(--navy-800) 55%, var(--navy-900));
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.sidebar .brand { padding: 4px 10px 22px; }
.nav-group { font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .4); padding: 14px 14px 6px; letter-spacing: .04em; }
.side-link {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px;
    font-weight: 700; color: rgba(255, 255, 255, .78); transition: background .25s, color .25s, transform .25s var(--ease);
}
.side-link .icon { color: rgba(255, 255, 255, .55); transition: color .25s, transform .3s var(--ease-spring); }
.side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-link:hover .icon { color: #fff; transform: scale(1.12); }
.side-link.active { color: #fff; background: linear-gradient(135deg, var(--sky), #1580c4); box-shadow: var(--glow-sky), inset 0 1px 0 rgba(255, 255, 255, .25); }
.side-link.active .icon { color: #fff; }
.side-link .badge { margin-inline-start: auto; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-promo { margin: 12px 4px 4px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, rgba(247, 147, 30, .25), rgba(247, 147, 30, .05)); box-shadow: inset 0 0 0 1px rgba(247, 147, 30, .3); }
.side-promo strong { display: block; font-size: 15px; }
.side-promo span { font-size: 13px; color: rgba(255, 255, 255, .7); }

.main { min-width: 0; padding: 0 28px 48px; }
.topbar {
    position: sticky; top: 0; z-index: 25; height: var(--topbar); margin: 0 -28px; padding: 0 28px;
    display: flex; align-items: center; gap: 18px;
    background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(18px) saturate(170%);
}
.topbar .search { flex: 1; max-width: 560px; }
.topbar .search .input-wrap { height: 50px; background: #fff; box-shadow: var(--shadow-sm); }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); color: var(--text-2); transition: transform .25s var(--ease), color .2s, box-shadow .25s; }
.icon-btn:hover { transform: translateY(-2px); color: var(--sky); box-shadow: var(--shadow); }
.icon-btn .dot { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff; animation: pop .5s var(--ease-spring); }
.avatar { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--sky), var(--navy-700)); box-shadow: var(--glow-sky); }
.menu-btn { display: none; }

.page { animation: page-in .55s var(--ease) both; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 0 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--text-3); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.crumbs a:hover { color: var(--sky); }

/* Cards & grids */
.card { position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-title h3 { margin: 0; font-size: 19px; font-weight: 900; }
.link { color: var(--sky); font-weight: 800; font-size: 14px; display: inline-flex; gap: 4px; align-items: center; }
.link:hover { text-decoration: underline; }
.grid { display: grid; gap: 22px; }
.g-home { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.stack { display: grid; gap: 22px; align-content: start; }

/* Wallet card (home) */
.wallet {
    position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: 30px; padding: 30px;
    background: radial-gradient(500px 260px at 0% 0%, rgba(91, 184, 236, .55), transparent 60%), radial-gradient(400px 260px at 100% 100%, rgba(247, 147, 30, .45), transparent 60%), linear-gradient(135deg, #1373b3, var(--navy-700) 55%, var(--navy-900));
    box-shadow: 0 30px 60px -28px rgba(15, 45, 74, .75);
}
.wallet::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 70%); }
.wallet .w-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.wallet .w-label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.wallet .w-label .live { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: live 2s infinite; }
.wallet .w-amount { margin: 10px 0 4px; font-size: clamp(40px, 4vw, 56px); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; }
.wallet .w-amount small { font-size: .45em; color: var(--orange-300); font-weight: 800; }
.wallet .w-meta { color: rgba(255, 255, 255, .65); font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.wallet .w-actions { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.w-act { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: 20px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-weight: 800; font-size: 14px; transition: background .25s, transform .3s var(--ease); }
.w-act:hover { background: rgba(255, 255, 255, .16); transform: translateY(-4px); }
.w-act .ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.w-act.primary .ic { background: linear-gradient(135deg, var(--orange), #e07408); box-shadow: var(--glow-orange); }
.blur-amount { filter: blur(12px); user-select: none; }

/* Tiles (services / categories) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tile {
    position: relative; display: grid; justify-items: center; gap: 12px; padding: 22px 14px 18px; border-radius: 22px; text-align: center;
    background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
    font-weight: 800; font-size: 14px; line-height: 1.35;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(30, 150, 220, .25); }
.tile:hover .tile-ic { transform: scale(1.08) rotate(-4deg); }
.tile small { color: var(--text-3); font-weight: 700; font-size: 12px; }
.tile-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; overflow: hidden; transition: transform .45s var(--ease-spring); }
.tile-ic img { width: 72%; height: 72%; object-fit: contain; }
.tile-ic.lg { width: 72px; height: 72px; border-radius: 22px; }
.tiles.cats .tile { padding: 26px 16px 22px; }

/* Lists */
.list { display: grid; }
.row {
    display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 16px; transition: background .2s, transform .25s var(--ease);
}
.row:hover { background: var(--surface-2); }
.row + .row { box-shadow: 0 -1px 0 var(--line); }
.row .r-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.row .r-ic img { width: 70%; height: 70%; object-fit: contain; }
.row .r-main { flex: 1; min-width: 0; }
.row .r-title { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r-sub { color: var(--text-3); font-size: 13px; font-weight: 600; }
.row .r-end { text-align: end; flex-shrink: 0; }
.row .amt { font-weight: 900; }
.amt.debit { color: var(--text); }
.amt.credit { color: var(--mint); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pill-success { background: var(--mint-100); color: #047857; }
.pill-failed { background: var(--rose-100); color: #be123c; }
.pill-processing { background: #fff4e0; color: #b45309; }
.pill-refunded { background: #ede9fe; color: #6d28d9; }
.pill-info { background: var(--sky-100); color: #0b5d8f; }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--rose); color: #fff; }

/* Banners carousel */
.banners { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 6.2; background: var(--navy-700); }
.banner { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.banner.on { opacity: 1; transform: scale(1); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner .b-txt { position: absolute; inset: auto 0 0 0; padding: 28px; color: #fff; background: linear-gradient(transparent, rgba(8, 19, 31, .85)); }
.banner .b-txt h4 { margin: 0; font-size: 22px; font-weight: 900; }
.banner .b-txt p { margin: 4px 0 0; opacity: .8; }
.dots { position: absolute; bottom: 14px; inset-inline-end: 18px; display: flex; gap: 6px; z-index: 2; }
.dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: width .4s var(--ease), background .3s; }
.dots button.on { width: 26px; background: #fff; }

/* Due bill card */
.due { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #fff7ec, #fff); box-shadow: inset 0 0 0 1px rgba(247, 147, 30, .25); }
.due + .due { margin-top: 12px; }

/* Empty state */
.empty { text-align: center; padding: 50px 20px; color: var(--text-2); }
.empty .e-ic { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 30px; display: grid; place-items: center; background: var(--sky-100); color: var(--sky); animation: float 4s ease-in-out infinite; }
.empty h4 { margin: 0 0 6px; color: var(--text); font-size: 19px; font-weight: 900; }

/* Payment flow */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
.stepper { display: flex; gap: 10px; margin-bottom: 26px; }
.stepper .st { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; color: var(--text-3); }
.stepper .st .n { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: all .4s var(--ease); }
.stepper .st .bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.stepper .st .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sky), var(--orange)); transition: width .6s var(--ease); }
.stepper .st.done .n, .stepper .st.on .n { color: #fff; background: linear-gradient(135deg, var(--sky), #1373b3); box-shadow: var(--glow-sky); }
.stepper .st.on { color: var(--text); }
.stepper .st.done .bar i { width: 100%; }
.svc-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.summary { position: sticky; top: calc(var(--topbar) + 10px); }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--text-2); font-weight: 700; }
.sum-line.total { margin-top: 6px; padding-top: 16px; border-top: 1.5px dashed var(--line); color: var(--text); font-size: 20px; font-weight: 900; }
.kv { display: grid; gap: 2px; padding: 12px 0; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv span { color: var(--text-3); font-size: 13px; font-weight: 700; }
.kv strong { font-weight: 800; word-break: break-word; }
[dir="rtl"] .kv strong.num, [dir="rtl"] .kv .num { text-align: right; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.opt { position: relative; padding: 16px; border-radius: 16px; text-align: start; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 800; transition: box-shadow .25s, transform .25s var(--ease), background .25s; }
.opt:hover { transform: translateY(-2px); }
.opt.on { background: var(--sky-100); box-shadow: inset 0 0 0 2px var(--sky); }
.opt small { display: block; color: var(--sky); font-weight: 900; margin-top: 4px; }

/* Receipt */
.receipt { max-width: 560px; margin: 0 auto; }
.receipt-card { position: relative; background: #fff; border-radius: 30px; box-shadow: var(--shadow-lg); overflow: hidden; }
.receipt-head { padding: 40px 30px 30px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--mint), #047857); position: relative; }
.receipt-head.failed { background: linear-gradient(135deg, var(--rose), #9f1239); }
.receipt-head.processing { background: linear-gradient(135deg, var(--amber), #b45309); }
.receipt-head .check-anim { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); box-shadow: 0 0 0 10px rgba(255, 255, 255, .08); animation: pop .7s var(--ease-spring) both; }
.receipt-head .check-anim svg { width: 50px; height: 50px; }
.check-anim path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s .35s var(--ease) forwards; }
.receipt-head h2 { margin: 0; font-size: 26px; font-weight: 900; }
.receipt-head .r-amount { font-size: 44px; font-weight: 900; margin-top: 6px; }
.receipt-body { padding: 26px 30px 30px; }
.tear { height: 20px; background: radial-gradient(circle at 10px -6px, transparent 12px, #fff 13px) repeat-x; background-size: 20px 20px; margin-top: -10px; position: relative; }
.voucher { margin: 6px 0 14px; padding: 18px; border-radius: 18px; text-align: center; background: repeating-linear-gradient(45deg, #fff7ec, #fff7ec 10px, #fff 10px, #fff 20px); box-shadow: inset 0 0 0 2px rgba(247, 147, 30, .4); }
.voucher code { display: block; font-size: 26px; font-weight: 900; letter-spacing: .12em; direction: ltr; color: var(--navy-700); margin: 6px 0 10px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* Tabs & chips */
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); width: fit-content; flex-wrap: wrap; }
.tab { padding: 10px 18px; border-radius: 13px; font-weight: 800; color: var(--text-2); transition: background .25s, color .25s; }
.tab:hover { color: var(--text); }
.tab.on { color: #fff; background: linear-gradient(135deg, var(--sky), #1373b3); box-shadow: var(--glow-sky); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text-2); transition: all .25s var(--ease); }
.chip:hover { color: var(--text); }
.chip.on { color: var(--sky); background: var(--sky-100); box-shadow: inset 0 0 0 1.5px var(--sky); }

/* Modal & drawer */
.overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(5, 13, 22, .55); backdrop-filter: blur(6px); animation: fade .25s ease both; }
.modal { width: min(480px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 28px; padding: 30px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); animation: modal-in .45s var(--ease-spring) both; }
.modal h3 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.modal .m-ic { width: 64px; height: 64px; margin-bottom: 16px; border-radius: 20px; display: grid; place-items: center; background: var(--sky-100); color: var(--sky); }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions > * { flex: 1; }

/* Toasts */
.toasts { position: fixed; z-index: 95; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); }
[dir="rtl"] .toasts { transform: translateX(50%); }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; color: #fff; font-weight: 800; background: var(--navy-800); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .55); animation: toast-in .5s var(--ease-spring) both; }
.toast.error { background: linear-gradient(135deg, #e11d48, #9f1239); }
.toast.success { background: linear-gradient(135deg, var(--mint), #047857); }
.toast.leave { animation: toast-out .35s var(--ease) both; }

/* Skeleton */
.skel { position: relative; overflow: hidden; background: #e8eef5; border-radius: 14px; }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent); animation: shimmer 1.3s infinite; }

/* Profile */
.profile-hero { display: flex; gap: 22px; align-items: center; }
.profile-hero .avatar { width: 84px; height: 84px; border-radius: 26px; font-size: 30px; }
.settings-row { display: flex; align-items: center; gap: 14px; padding: 16px 4px; }
.settings-row + .settings-row { border-top: 1px solid var(--line); }
.switch { position: relative; width: 52px; height: 30px; border-radius: 99px; background: #d5dde7; transition: background .25s; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: inset-inline-start .3s var(--ease-spring); }
.switch.on { background: var(--sky); }
.switch.on::after { inset-inline-start: 25px; }

/* Rewards */
.points-card { color: #fff; border-radius: 28px; padding: 30px; overflow: hidden; position: relative; background: radial-gradient(400px 220px at 100% 0%, rgba(255, 213, 128, .55), transparent 60%), linear-gradient(135deg, #f7931e, #b45309); box-shadow: var(--glow-orange); }
.points-card .big { font-size: 56px; font-weight: 900; line-height: 1; }
.progress { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width 1.2s var(--ease); }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].in { opacity: 1; transform: none; }
.stagger > * { animation: rise .7s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .03s; } .stagger > *:nth-child(2) { animation-delay: .08s; } .stagger > *:nth-child(3) { animation-delay: .13s; }
.stagger > *:nth-child(4) { animation-delay: .18s; } .stagger > *:nth-child(5) { animation-delay: .23s; } .stagger > *:nth-child(6) { animation-delay: .28s; }
.stagger > *:nth-child(7) { animation-delay: .33s; } .stagger > *:nth-child(8) { animation-delay: .38s; } .stagger > *:nth-child(n+9) { animation-delay: .43s; }

/* Keyframes */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, 8%) scale(1.15); } 100% { transform: translate(-6%, 4%) scale(.95); } }
@keyframes card-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@keyframes sheen { 0%, 100% { background-position: 150% 0; } 50% { background-position: -50% 0; } }
@keyframes chip-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(1.5deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
@keyframes pulse-ring { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }

/* View transitions between pages (Chrome/Edge) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s ease both fade reverse; }
::view-transition-new(root) { animation: .45s var(--ease) both page-in; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1100px) {
    .hero-grid, .security { grid-template-columns: 1fr; }
    .hero-visual { height: 460px; }
    .features { grid-template-columns: 1fr 1fr; }
    .feature.wide { grid-column: span 2; }
    .g-home, .pay-grid { grid-template-columns: 1fr; }
    .summary { position: static; }
}
@media (max-width: 900px) {
    .nav-links { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3)::before { display: none; }
    .steps { grid-template-columns: 1fr; gap: 40px; }
    .steps::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sidebar); transform: translateX(-110%); transition: transform .45s var(--ease); }
    [dir="rtl"] .sidebar { transform: translateX(110%); }
    .sidebar.open { transform: none !important; }
    .menu-btn { display: grid; }
    .main { padding: 0 16px 40px; }
    .topbar { margin: 0 -16px; padding: 0 16px; }
}
@media (max-width: 640px) {
    .features { grid-template-columns: 1fr; }
    .feature.wide { grid-column: auto; grid-template-columns: 1fr; }
    .card3d { width: 320px; height: 200px; margin: -100px 0 0 -160px; padding: 22px; }
    .card3d .amount { font-size: 30px; }
    .chip-float { display: none; }
    .cta { padding: 44px 24px; }
    .wallet .w-actions { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .topbar .search { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ═════════════════ Site (services-first, top navigation) ═════════════════ */
body.site { background: var(--bg); }
.site-head {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, #fff 82%, transparent);
    backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px);
    box-shadow: 0 1px 0 var(--line);
}
.head-row { height: 76px; display: flex; align-items: center; gap: 22px; }
.site-head .brand-mark { width: 36px; height: 36px; }
.site-head .brand-text { font-size: 20px; }
.head-nav { display: flex; align-items: center; gap: 2px; }
.head-nav > a, .mega-host > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 12px; font-weight: 800; color: var(--text-2); transition: color .2s, background .2s; }
.head-nav > a:hover, .mega-host > a:hover { color: var(--text); background: var(--surface-2); }
.head-nav a.on { color: var(--sky); background: var(--sky-100); }
.mega-host { position: relative; }
.mega {
    position: absolute; top: calc(100% + 10px); inset-inline-start: -20px; width: 560px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 14px;
    background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease);
}
.mega::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; }
.mega-host:hover .mega, .mega-host:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; font-weight: 800; font-size: 14px; transition: background .2s; }
.mega-item:hover { background: var(--surface-2); }
.mi-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.mi-ic img { width: 70%; height: 70%; object-fit: contain; }
.mi-ic .icon-lg { width: 22px; height: 22px; }
.head-search { flex: 1; max-width: 340px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text-3); transition: box-shadow .2s, background .2s; }
.head-search:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--sky), 0 0 0 4px rgba(30, 150, 220, .12); }
.head-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-weight: 600; }
.head-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang-btn { padding: 8px 12px; border-radius: 10px; font-weight: 800; font-size: 13px; color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.lang-btn:hover { color: var(--sky); }
.bal-pill { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding-inline: 14px 6px; border-radius: 14px; font-weight: 900; color: var(--navy-700); background: linear-gradient(135deg, #fff7ec, #fff); box-shadow: inset 0 0 0 1.5px rgba(247, 147, 30, .35); transition: transform .25s var(--ease); }
.bal-pill:hover { transform: translateY(-2px); }
.bal-pill small { color: var(--text-3); font-weight: 800; }
.bal-pill .plus { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--orange), #e07408); box-shadow: var(--glow-orange); }
.site-head .icon-btn, .site-head .avatar { width: 46px; height: 46px; border-radius: 14px; }
.acc-host { position: relative; }
.acc-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 250px; padding: 8px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); z-index: 5; }
.acc-menu .acc-who { display: grid; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acc-menu .acc-who span { color: var(--text-3); font-size: 13px; }
.acc-menu a, .acc-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 700; color: var(--text-2); text-align: start; }
.acc-menu a:hover, .acc-menu button:hover { background: var(--surface-2); color: var(--text); }
.acc-menu form button { color: var(--rose); }
.drawer { display: none; }

.site-main > div { width: min(1200px, 100% - 40px); margin: 30px auto 70px; }
.site-main > div.home { width: 100%; margin: 0; }

/* Home hero */
.home-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 64px 0 120px; background: linear-gradient(160deg, var(--navy-700), var(--navy-900) 70%); }
.home-hero .aurora { inset: -30%; opacity: .75; }
.hh-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.home-hero h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.15; margin: 18px 0 14px; font-weight: 900; letter-spacing: -.01em; animation: rise .8s var(--ease) both; }
.home-hero .lead { color: rgba(255, 255, 255, .72); font-size: 18px; margin: 0 0 26px; max-width: 580px; animation: rise .8s .08s var(--ease) both; }
.home-hero .eyebrow { animation: rise .8s var(--ease) both; }
.big-search {
    display: flex; align-items: center; gap: 12px; padding: 8px; padding-inline-start: 20px; max-width: 620px;
    border-radius: 22px; background: #fff; color: var(--text-3);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65), 0 0 0 6px rgba(255, 255, 255, .08);
    animation: rise .8s .16s var(--ease) both; transition: box-shadow .3s;
}
.big-search:focus-within { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65), 0 0 0 6px rgba(91, 184, 236, .35); }
.big-search input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.big-search .btn { height: 52px; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; animation: rise .8s .24s var(--ease) both; }
.qchip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background .2s, transform .25s var(--ease); }
.qchip:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); color: #fff; }
.hh-wallet { perspective: 1200px; animation: rise .9s .2s var(--ease) both; }
.hh-wallet .wallet { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.hh-visual { height: 380px; }
.hh-visual .card3d { width: 380px; height: 236px; margin: -118px 0 0 -190px; }
.hh-visual .orbit { width: 460px; height: 460px; margin: -230px 0 0 -230px; }
.home-body { display: grid; gap: 34px; margin-top: -70px; position: relative; z-index: 2; padding-bottom: 70px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-title h2 { margin: 0; font-size: 24px; font-weight: 900; }
.home-body > section:not(.card):not(.trust-strip) { padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.svc-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.svc-row::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(30, 150, 220, .1), transparent 55%); }
.svc-row:hover { transform: translateY(-3px); box-shadow: var(--shadow), inset 0 0 0 1px rgba(30, 150, 220, .3); background: #fff; }
.svc-row:hover::before { opacity: 1; }
.svc-row .r-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.svc-row .r-ic img { width: 70%; height: 70%; object-fit: contain; }
.svc-row .r-main { flex: 1; min-width: 0; }
.svc-row .r-title { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-row .r-sub { color: var(--text-3); font-size: 13px; font-weight: 600; }
.svc-row .go { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 12px; font-weight: 800; font-size: 13px; color: var(--sky); background: var(--sky-100); transition: background .25s, color .25s; white-space: nowrap; }
.svc-row:hover .go { color: #fff; background: linear-gradient(135deg, var(--sky), #1373b3); }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-strip > div { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.trust-strip .icon { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--mint-100); color: var(--mint); box-sizing: border-box; }
.trust-strip strong { display: block; font-weight: 900; }
.trust-strip span { color: var(--text-2); font-size: 14px; }

/* Sign-in sheet */
.auth-sheet { position: relative; }
.sheet-x { position: absolute; top: 18px; inset-inline-end: 18px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--text-3); background: var(--surface-2); }
.sheet-x:hover { color: var(--text); }

/* Account area sub-navigation */
.acc-tabs { display: flex; gap: 6px; padding: 6px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 22px; }
.acc-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 13px; font-weight: 800; color: var(--text-2); white-space: nowrap; transition: background .25s, color .25s; }
.acc-tabs a:hover { color: var(--text); }
.acc-tabs a.on { color: #fff; background: linear-gradient(135deg, var(--sky), #1373b3); box-shadow: var(--glow-sky); }

@media (max-width: 1100px) {
    .head-nav { display: none; }
    .menu-btn { display: grid; }
    .drawer { display: grid; gap: 4px; padding: 12px 20px 18px; border-top: 1px solid var(--line); background: #fff; }
    .drawer a { padding: 12px; border-radius: 12px; font-weight: 800; }
    .drawer a:hover { background: var(--surface-2); }
    .hh-grid { grid-template-columns: 1fr; }
    .hh-visual { display: none; }
    .trust-strip { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .head-search, .lang-btn, .bal-pill small { display: none; }
    .head-end .btn-light { display: none; }
    .home-hero { padding: 40px 0 100px; }
    .svc-list { grid-template-columns: 1fr; }
}
@media print {
    .site-head, .footer, .acc-tabs, .btn { display: none !important; }
    .site-main > div { margin: 0 auto; }
}

/* ===== Legal pages (terms / privacy / about) ===== */
.site-main > div.legal { width: 100%; margin: 0; }
.legal-progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.legal-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--orange)); transform-origin: left; transform: scaleX(0); transition: transform .12s linear; }
[dir="rtl"] .legal-progress span { transform-origin: right; background: linear-gradient(270deg, var(--sky), var(--orange)); }
.legal-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 34px 0 110px; background: linear-gradient(160deg, var(--navy-700), var(--navy-900) 70%); }
.legal-crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .6); animation: rise .5s var(--ease) both; }
.legal-crumbs a:hover { color: #fff; }
.legal-crumbs span { color: #fff; }
.legal-docs { display: inline-flex; gap: 4px; padding: 5px; margin-top: 22px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); backdrop-filter: blur(10px); animation: rise .5s .05s var(--ease) both; flex-wrap: wrap; }
.legal-docs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; color: rgba(255, 255, 255, .75); transition: background .25s, color .25s; }
.legal-docs a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.legal-docs a.on { background: #fff; color: var(--navy-700); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.legal-title { display: flex; align-items: center; gap: 20px; margin-top: 30px; animation: rise .6s .1s var(--ease) both; }
.legal-title > div { flex: 1; min-width: 0; }
.legal-title h1 { margin: 0; font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; line-height: 1.15; }
.legal-seal { flex: none; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; background: linear-gradient(135deg, var(--sky), var(--violet)); box-shadow: var(--glow-sky); animation: seal-in .9s .15s var(--ease-spring) both; }
.legal-seal svg { width: 36px; height: 36px; }
@keyframes seal-in { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.legal-meta span { display: inline-flex; align-items: center; gap: 6px; }
.legal-meta b { color: #fff; }
.legal-print { flex: none; align-self: flex-end; color: #fff; }

.legal-body > * { min-width: 0; }
.legal-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 26px; align-items: start; margin-top: -70px; padding-bottom: 80px; position: relative; z-index: 2; }
.legal-body.no-toc { grid-template-columns: 1fr; max-width: 860px; }
.legal-toc { position: sticky; top: 96px; animation: rise .6s .2s var(--ease) both; }
.legal-toc details { padding: 10px; }
.legal-toc summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 900; cursor: pointer; list-style: none; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary .num { margin-inline-start: auto; font-size: 13px; }
.legal-toc ol { list-style: none; margin: 4px 0 0; padding: 0; max-height: calc(100vh - 200px); overflow: auto; scrollbar-width: thin; }
.legal-toc a { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--text-2); transition: background .2s, color .2s; }
.legal-toc a:hover { background: var(--surface-2); color: var(--text); }
.legal-toc a .n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: 12px; font-weight: 900; background: var(--surface-2); color: var(--text-3); transition: all .25s var(--ease); }
.legal-toc a.on { background: var(--sky-100); color: var(--navy-700); }
.legal-toc a.on .n { background: var(--sky); color: #fff; box-shadow: var(--glow-sky); }

.legal-doc { padding: clamp(24px, 4vw, 52px); animation: rise .7s .15s var(--ease) both; }
.legal-doc p, .legal-doc li { font-size: 16.5px; line-height: 2; color: var(--text-2); }
.legal-doc p { margin: 0 0 12px; }
.legal-doc p.lbl { margin: 18px 0 6px; font-weight: 900; color: var(--text); }
.legal-intro p { font-size: 18px; color: var(--text); padding: 20px 22px; border-radius: var(--r); background: linear-gradient(135deg, var(--sky-100), #fff7ec); }
.legal-sec { padding-top: 30px; margin-top: 30px; border-top: 1px dashed var(--line); scroll-margin-top: 100px; }
.legal-intro + .legal-sec { border-top: 0; margin-top: 10px; }
.legal-sec h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: clamp(19px, 2vw, 23px); font-weight: 900; color: var(--text); }
.legal-sec h2 .n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-size: 15px; background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); color: #fff; transition: background .3s; }
.legal-sec:hover h2 .n { background: linear-gradient(135deg, var(--sky), var(--violet)); }
.legal-doc ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.legal-doc ul li { position: relative; padding-inline-start: 30px; }
.legal-doc ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 12px; width: 14px; height: 14px; border-radius: 5px; background: var(--mint-100); box-shadow: inset 0 0 0 4px var(--mint-100), inset 0 0 0 7px var(--mint); }
.legal-end { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 20px 22px; border-radius: var(--r); background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: #fff; flex-wrap: wrap; }
.legal-end .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .12); }
.legal-end > div { flex: 1; min-width: 200px; }
.legal-end p { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .7); }
.legal-top { position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 45; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 16px; background: var(--navy-700); color: #fff; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease-spring); }
.legal-top:hover { transform: translateY(-4px); }

@media (max-width: 980px) {
    .legal-body { grid-template-columns: minmax(0, 1fr); }
    .legal-docs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
    .legal-docs a { flex: none; }
    .legal-toc { position: relative; top: 0; z-index: 3; }
    .legal-toc ol { max-height: 50vh; }
}
@media (max-width: 700px) {
    .legal-hero { padding: 24px 0 96px; }
    .legal-title { flex-wrap: wrap; gap: 14px; }
    .legal-seal { width: 56px; height: 56px; border-radius: 18px; }
    .legal-seal svg { width: 28px; height: 28px; }
    .legal-print { display: none; }
    .legal-doc p, .legal-doc li { font-size: 15.5px; line-height: 1.9; }
    .legal-top { bottom: 18px; inset-inline-end: 18px; }
}
@media print {
    .legal-progress, .legal-docs, .legal-crumbs, .legal-toc, .legal-end, .legal-top, .legal-hero .aurora, .legal-hero .grid-bg { display: none !important; }
    .legal-hero { background: none; color: #000; padding: 0 0 16px; }
    .legal-meta, .legal-meta b { color: #333; }
    .legal-body { display: block; margin: 0; padding: 0; }
    .legal-doc { box-shadow: none; padding: 0; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
    .legal-hero *, .legal-toc, .legal-doc { animation: none !important; }
}
