/* موقع جود المحاسبي — فاتح افتراضياً مع وضع ليلي، بألوان الهوية (أخضر جود + برتقالي) */
@import url('fonts/fonts.css');

:root {
    --bg: #f7f9f9; --bg-soft: #eef4f3; --surface: #fff; --surface-2: #f3f7f6;
    --text: #0d1f1d; --muted: #5a6b69; --line: rgba(13, 54, 51, .1); --line-strong: rgba(13, 54, 51, .2);
    --brand: #1f5f5b; --brand-2: #2a8a83; --accent: #f39c12; --accent-d: #d9840a;
    --grad: linear-gradient(120deg, #134541 0%, #2a8a83 55%, #e0900f 115%);
    --grad-btn: linear-gradient(120deg, #1f5f5b, #2a8a83);
    --shadow: 0 1px 2px rgba(13, 31, 29, .04), 0 10px 30px -12px rgba(13, 31, 29, .12);
    --shadow-lg: 0 30px 60px -30px rgba(13, 54, 51, .35);
    --r: 20px; --r-sm: 12px; --hdr: 74px;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #071312; --bg-soft: #0a1a19; --surface: #0e2120; --surface-2: #132a28;
    --text: #e8f1f0; --muted: #93aaa7; --line: rgba(160, 200, 195, .12); --line-strong: rgba(160, 200, 195, .24);
    --brand: #4fc1b6; --brand-2: #2dd4bf;
    --grad: linear-gradient(120deg, #2dd4bf 0%, #5ad1c4 45%, #f5b041 105%);
    --grad-btn: linear-gradient(120deg, #1f6f69, #26968d);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .75);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #071312; --bg-soft: #0a1a19; --surface: #0e2120; --surface-2: #132a28;
        --text: #e8f1f0; --muted: #93aaa7; --line: rgba(160, 200, 195, .12); --line-strong: rgba(160, 200, 195, .24);
        --brand: #4fc1b6; --brand-2: #2dd4bf;
        --grad: linear-gradient(120deg, #2dd4bf 0%, #5ad1c4 45%, #f5b041 105%);
        --grad-btn: linear-gradient(120deg, #1f6f69, #26968d);
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .5);
        --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .75);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; font-family: 'Cairo', Tahoma, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.75; overflow-x: hidden; transition: background-color .3s, color .3s; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mono { font-family: Consolas, 'Courier New', monospace; }
.muted { color: var(--muted); }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.wrap.narrow { max-width: 860px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* شعار حسب الوضع */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-light { display: none; }
    :root:not([data-theme="light"]) .logo-dark { display: block; }
}

/* خلفية: توهج هادئ + شبكة خطوط */
.decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; }
.g1 { width: 620px; height: 620px; top: -240px; right: -180px; background: radial-gradient(circle, rgba(42, 138, 131, .45), transparent 65%); }
.g2 { width: 520px; height: 520px; top: 30%; left: -220px; background: radial-gradient(circle, rgba(243, 156, 18, .28), transparent 65%); }
.grid-lines { position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(to left, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
    background-size: 84px 84px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 70%); }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-main { background: var(--grad-btn); color: #fff; box-shadow: 0 12px 28px -12px rgba(31, 95, 91, .7); }
.btn-main:hover { box-shadow: 0 18px 36px -14px rgba(31, 95, 91, .8); }
.btn-accent { background: var(--accent); color: #1a1205; box-shadow: 0 12px 28px -12px rgba(243, 156, 18, .7); }
.btn-accent:hover { background: var(--accent-d); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-light-on-dark { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--brand); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: inline-flex; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .i-sun { display: inline-flex; }
    :root:not([data-theme="light"]) .i-moon { display: none; }
}

/* الرأس */
.hdr { position: fixed; top: 0; inset-inline: 0; z-index: 50; height: var(--hdr); display: flex; align-items: center; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.hdr.scrolled, .hdr.open { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 24px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { position: relative; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--muted); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.on { color: var(--text); }
.nav a.on::after { content: ''; position: absolute; bottom: 2px; inset-inline: 14px; height: 2px; border-radius: 2px; background: var(--grad); }
.hdr-act { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

main { padding-top: var(--hdr); }

/* البطل */
.hero { padding: 56px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 13.5px; font-weight: 700; color: var(--muted); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.25; font-weight: 900; letter-spacing: -.5px; margin: 20px 0 16px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-notes { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; font-weight: 700; }
.hero-notes li { display: flex; align-items: center; gap: 6px; }
.hero-notes svg { color: #10b981; }
.hero-visual { position: relative; }
.window { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .5s; }
.window:hover { transform: none; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); direction: ltr; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-inline-start: auto; font-size: 12px; color: var(--muted); font-weight: 700; }
.window img { width: 100%; height: auto; }
/* صورتا الكاشير: المطاعم خلفاً والمحلات أماماً */
.duo { padding: 0 0 70px 60px; }
.duo .window { transform: none; }
.duo .w-back { opacity: .97; }
.duo .w-front { position: absolute; left: 0; bottom: 0; width: 78%; z-index: 2; box-shadow: 0 30px 60px -20px rgba(13, 31, 29, .45); }
.duo .window:hover { z-index: 3; }
.duo .window-bar span { color: var(--text); font-size: 12.5px; font-weight: 800; }
.duo .chip-float { z-index: 4; }
.duo .c1 { top: 42%; right: -18px; }
.duo .c2 { bottom: 16px; left: auto; right: -10px; z-index: 4; }

/* شريط التوافق مع هيئة الزكاة */
.zatca-sec { padding: 36px 0 0; }
.zatca { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 24px 28px; border-radius: 22px; background: var(--surface); border: 1px solid color-mix(in srgb, #10b981 35%, transparent); box-shadow: var(--shadow); }
.zatca-ic { width: 66px; height: 66px; flex-shrink: 0; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 12px 26px -12px rgba(5, 150, 105, .8); }
.zatca-copy { flex: 1 1 320px; }
.zatca-copy h2 { font-size: 1.35rem; font-weight: 900; }
.zatca-copy p { color: var(--muted); font-size: 15px; }
.zatca-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; font-weight: 700; font-size: 14.5px; }
.zatca-list li { display: flex; align-items: center; gap: 6px; }
.zatca-list svg { color: #10b981; }

/* زر التواصل العائم */
.help { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.help-btn { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 18px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: 15px; color: #fff; background: var(--grad-btn); box-shadow: 0 16px 34px -12px rgba(13, 54, 51, .7); transition: transform .2s; }
.help-btn:hover { transform: translateY(-2px); }
.help-btn em { font-style: normal; }
.help-btn .i-close, .help.open .help-btn .i-open { display: none; }
.help.open .help-btn .i-close { display: inline-flex; }
.help-card { display: none; width: 290px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.help.open .help-card { display: grid; gap: 8px; }
.help-card b { font-size: 1.05rem; font-weight: 900; }
.help-card > span { color: var(--muted); font-size: 13.5px; margin-bottom: 4px; }
.help-opt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 800; font-size: 14.5px; transition: border-color .2s; }
.help-opt:hover { border-color: var(--brand-2); }
.help-opt svg { color: var(--brand-2); }
.help-opt.wa svg { color: #25d366; }
.help-opt .ltr { margin-inline-start: auto; color: var(--muted); font-size: 13px; }

/* الأنشطة */
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.act { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; font-weight: 800; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.act:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand-2) 45%, transparent); }
.act span { width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 13%, transparent); }
.act:nth-child(even) span { color: var(--accent-d); background: color-mix(in srgb, var(--accent) 15%, transparent); }

/* نحن معك — الدعم الفني */
.support { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; padding: 44px 48px; border-radius: 28px; color: #fff; overflow: hidden;
    background: radial-gradient(700px 380px at 100% 0%, rgba(243, 156, 18, .22), transparent 60%), linear-gradient(135deg, #0d3633, #1f5f5b 60%, #2a8a83); box-shadow: var(--shadow-lg); }
.support-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(243, 156, 18, .18); color: #fcd28a; border: 1px solid rgba(243, 156, 18, .4); font-weight: 800; font-size: 14px; }
.support h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; margin: 16px 0 10px; }
.support-copy p { color: rgba(255, 255, 255, .8); font-size: 1.08rem; margin-bottom: 24px; }
.support-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.support-list li { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .75); font-size: 14.5px; }
.support-list li span { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); color: #fcd28a; }
.support-list b { display: block; color: #fff; font-size: 15.5px; margin-bottom: 2px; }

.chip-float { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-weight: 800; font-size: 14px; animation: float 5s ease-in-out infinite; }
.chip-float svg { color: var(--brand-2); }
.c1 { top: 18%; right: -22px; }
.c2 { bottom: 10%; left: -18px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 56px; }
.stat { background: var(--surface); padding: 24px 16px; text-align: center; }
.stat b { display: block; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 900; line-height: 1.15; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* الأقسام */
.sec { padding: 84px 0; }
.sec-soft { background: color-mix(in srgb, var(--bg-soft) 70%, transparent); border-block: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.kicker { display: inline-block; font-weight: 800; font-size: 14px; color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 12%, transparent); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; }
.sec-head h1, .sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.3; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand-2) 45%, transparent); }
.f-ic { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad-btn); margin-bottom: 18px; box-shadow: 0 10px 22px -10px rgba(31, 95, 91, .7); }
.features.f4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.features.f4 .feature { padding: 24px; }
.features.f4 .feature:nth-child(3n+2) .f-ic { background: var(--grad-btn); box-shadow: 0 10px 22px -10px rgba(31, 95, 91, .7); }
.features.f4 .feature:nth-child(even) .f-ic { background: linear-gradient(120deg, #e08e0b, #f5b041); box-shadow: 0 10px 22px -10px rgba(243, 156, 18, .7); }
.feature:nth-child(3n+2) .f-ic { background: linear-gradient(120deg, #e08e0b, #f5b041); box-shadow: 0 10px 22px -10px rgba(243, 156, 18, .7); }
.feature h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; text-align: center; box-shadow: var(--shadow); }
.step .num { display: inline-flex; width: 50px; height: 50px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; color: #fff; background: var(--grad-btn); margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
.steps-sm { margin-top: 28px; }
.steps-sm .step { padding: 22px 18px; }

/* الباقات */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 28px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 24px; padding: 34px 30px; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.ribbon { position: absolute; top: -15px; right: 50%; transform: translateX(50%); display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #1a1205; font-weight: 900; font-size: 13.5px; padding: 5px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(243, 156, 18, .8); }
.plan-ic { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand-2) 14%, transparent); color: var(--brand-2); margin-bottom: 14px; }
.plan h3 { font-size: 1.45rem; font-weight: 900; }
.plan-sub { color: var(--muted); font-size: 15px; }
.price { display: flex; align-items: flex-end; gap: 10px; margin: 22px 0; padding-bottom: 22px; border-bottom: 1px dashed var(--line-strong); }
.price b { font-size: 3.4rem; font-weight: 900; line-height: 1; }
.price span { font-weight: 800; font-size: 1.1rem; line-height: 1.3; }
.price small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15.5px; }
.plan li svg { color: #10b981; margin-top: 3px; }
.plans-note { text-align: center; color: var(--muted); margin-top: 32px; font-size: 15px; }
.plans-note a { color: var(--brand-2); font-weight: 800; }

/* الأسئلة */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; font-weight: 800; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { color: var(--brand-2); transition: transform .25s; display: flex; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* دعوة ختامية */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 44px 48px; border-radius: 28px; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(800px 400px at 0% 0%, rgba(243, 156, 18, .25), transparent 60%), linear-gradient(135deg, #134541, #1f5f5b 55%, #2a8a83); box-shadow: var(--shadow-lg); }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; }
.cta p { color: rgba(255, 255, 255, .78); margin-top: 6px; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* صفحة التحميل */
.page-top { padding: 56px 0 90px; }
.dl-card { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 48px 28px; box-shadow: var(--shadow-lg); }
.dl-ic { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 26px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad-btn); box-shadow: 0 16px 34px -14px rgba(31, 95, 91, .8); animation: float 3s ease-in-out infinite; }
.dl-card h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; }
.dl-card .lead { margin: 10px auto 26px; }
.dl-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--muted); font-size: 14px; font-weight: 700; }

/* الشراء */
.buy { max-width: 980px; }
.buy-steps { list-style: none; padding: 0; margin: 0 auto 34px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.buy-steps li { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14.5px; color: var(--muted); }
.buy-steps li + li::before { content: ''; width: 34px; height: 2px; background: var(--line-strong); border-radius: 2px; margin-inline-end: 2px; }
.buy-steps span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 14px; }
.buy-steps .on { color: var(--text); }
.buy-steps .on span { background: var(--grad-btn); color: #fff; border-color: transparent; }
.buy-steps .done span { background: #10b981; color: #fff; border-color: transparent; }
.buy-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.buy-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.buy-card h1 { font-size: 1.6rem; font-weight: 900; }
.buy-card > .muted { margin-top: -12px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-weight: 800; font-size: 14px; }
.fld input { width: 100%; height: 54px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 17px; padding: 0 16px; transition: border-color .15s, box-shadow .15s; }
.fld input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 18%, transparent); }
.fld input[dir="ltr"] { text-align: right; }
.fld input[dir="ltr"]:placeholder-shown { text-align: right; }
.fld em { color: #dc2626; font-style: normal; font-weight: 700; font-size: 13.5px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.test-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.test-note svg { color: var(--accent-d); margin-top: 3px; }
.test-note b { display: block; }
.test-note span { font-size: 14px; color: var(--muted); }
.card-brands { display: flex; gap: 8px; }
.card-brands span { padding: 3px 12px; border-radius: 8px; border: 1px solid var(--line-strong); font-weight: 900; font-size: 13px; color: var(--muted); background: var(--surface-2); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); position: sticky; top: calc(var(--hdr) + 16px); }
.sum-plan { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px dashed var(--line-strong); }
.sum-plan .plan-ic { margin: 0; }
.sum-plan b { display: block; font-size: 1.15rem; font-weight: 900; }
.sum-plan span { color: var(--muted); font-size: 14px; }
.summary dl, .receipt dl { margin: 16px 0 0; display: grid; gap: 10px; }
.summary dl div, .receipt dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt, .receipt dt { color: var(--muted); }
.summary dd, .receipt dd { margin: 0; font-weight: 800; text-align: left; }
.summary .total, .receipt .total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.15rem; }
.summary .total dt, .receipt .total dt { color: var(--text); font-weight: 900; }
.summary .total dd { font-size: 1.5rem; font-weight: 900; }
.sum-note { display: flex; gap: 8px; align-items: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.sum-note svg { color: #10b981; }

.done-card { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 40px 28px; box-shadow: var(--shadow-lg); }
.done-ic { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: #10b981; box-shadow: 0 0 0 10px rgba(16, 185, 129, .15); }
.done-card h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; }
.code-box { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 24px auto; padding: 18px 22px; max-width: 640px; border-radius: 18px; background: var(--bg-soft); border: 2px dashed color-mix(in srgb, var(--brand-2) 50%, transparent); }
.code-box .mono { font-size: clamp(1.25rem, 3.6vw, 1.9rem); font-weight: 900; letter-spacing: 2px; }
.act-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 520px; display: grid; gap: 10px; text-align: right; }
.act-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.act-steps li span { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--grad-btn); color: #fff; font-weight: 900; font-size: 14px; }
.act-steps a { color: var(--brand-2); font-weight: 700; font-size: 14px; }
.receipt { max-width: 640px; margin: 22px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px; box-shadow: var(--shadow); }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong); }
.rc-head b { display: block; font-size: 1.1rem; font-weight: 900; }
.rc-head span { color: var(--muted); font-size: 14px; }
.tag-test { display: inline-block; padding: 0 8px; margin-inline-start: 6px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-d); font-size: 12px; }

/* التذييل */
.ftr { border-top: 1px solid var(--line); background: var(--surface); padding-top: 48px; }
.ftr-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.ftr-brand img { height: 46px; width: auto; margin-bottom: 14px; }
.ftr-brand p { color: var(--muted); max-width: 360px; font-size: 15px; }
.ftr h4 { margin: 0 0 12px; font-weight: 900; }
.ftr-in > div:not(.ftr-brand) { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ftr-in a { color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.ftr-in a:hover { color: var(--brand-2); }
.ftr-copy { border-top: 1px solid var(--line); margin-top: 36px; padding-block: 18px; color: var(--muted); font-size: 14px; text-align: center; }

/* ظهور عند التمرير */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .chip-float, .dl-ic, .pulse { animation: none; }
    html { scroll-behavior: auto; }
}

/* الجوال والأجهزة المتوسطة */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-copy { text-align: center; }
    .lead { margin-inline: auto; }
    .hero-btns, .hero-notes { justify-content: center; }
    .window { transform: none; }
    .features, .features.f4 { grid-template-columns: repeat(2, 1fr); }
    .acts { grid-template-columns: repeat(2, 1fr); }
    .support { grid-template-columns: 1fr; padding: 36px 28px; }
    .buy-grid { grid-template-columns: 1fr; }
    .summary { position: static; order: -1; }
}
@media (max-width: 820px) {
    .menu-btn { display: inline-flex; }
    .nav { position: absolute; top: var(--hdr); inset-inline: 0; flex-direction: column; gap: 2px; padding: 12px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
    .hdr.open .nav { display: flex; }
    .nav a { padding: 12px 14px; }
    .nav a.on::after { inset-inline: 14px auto; width: 24px; }
    .hdr-act { margin-inline-start: auto; }
}
@media (max-width: 640px) {
    .hero { padding-top: 32px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .features, .features.f4, .steps, .plans { grid-template-columns: 1fr; }
    .sec { padding: 64px 0; }
    .chip-float { display: none; }
    .duo { padding: 0 0 50px 24px; }
    .duo .w-front { width: 84%; }
    .acts { gap: 10px; }
    .act { padding: 12px; gap: 10px; font-size: 14px; }
    .act span { width: 38px; height: 38px; }
    .support { padding: 30px 20px; }
    .support-list { grid-template-columns: 1fr; }
    .zatca { padding: 20px; }
    .zatca-list { grid-template-columns: 1fr; }
    .help { right: 14px; bottom: 14px; }
    .help-btn { height: 54px; padding: 0 16px; }
    .help-btn em { display: none; }
    .cta { padding: 32px 24px; text-align: center; justify-content: center; }
    .cta-btns { justify-content: center; }
    .ftr-in { grid-template-columns: 1fr; }
    .buy-card { padding: 24px 20px; }
    .hide-xs { display: none; }
    .brand img { height: 38px; }
    .buy-steps { gap: 6px; }
    .buy-steps li + li::before { width: 12px; }
    .buy-steps li { font-size: 13px; }
}

@media print {
    .hdr, .ftr, .decor, .help, .buy-steps, .no-print, .done-card .btn, .act-steps { display: none !important; }
    main { padding: 0; }
    .reveal { opacity: 1; transform: none; }
    .done-card, .receipt { box-shadow: none; border-color: #ccc; }
}
