/* ==========================================================================
   الأصيل_فون (Alaseel Phone) — public site styles (RTL / Arabic)
   Dark theme: #1e1f23 base, radiant blue #1d73ee, glowing orange #f98b13
   ========================================================================== */

:root {
    --bg: #1a1b1e;
    --bg-2: #1e1f23;
    --surface: #22252a;
    --surface-2: #25282d;
    --ink: #f4f6f9;
    --muted: #9aa2ae;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --primary: #1d73ee;
    --primary-300: #6ba8ff;
    --primary-600: #1258c4;
    --accent: #f98b13;
    --accent-300: #ffb057;
    --success: #2ecc71;
    --danger: #ef4444;
    --radius: 16px;
    --shadow: 0 14px 34px rgba(0, 0, 0, .38);
    --glow-blue: 0 0 24px rgba(29, 115, 238, .38);
    --glow-orange: 0 0 30px rgba(249, 139, 19, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    background: var(--bg-2);
    color: var(--ink);
    line-height: 1.9;
}

::selection { background: var(--primary); color: #fff; }

img { max-width: 100%; display: block; }
a { color: var(--primary-300); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.container-narrow { width: min(800px, 92%); }
.center { text-align: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Buttons / chips / badges ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: 12px; border: 1px solid transparent;
    font-family: inherit; font-size: .95rem; font-weight: 700;
    cursor: pointer; transition: .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--glow-blue); }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-300); }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }

.chip {
    display: inline-flex; padding: 6px 15px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--surface);
    font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: .18s;
}
.chip:hover { color: var(--primary-300); border-color: var(--primary); text-decoration: none; }
.chip-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--glow-blue); }

.badge {
    display: inline-block; padding: 3px 11px; border-radius: 999px;
    font-size: .75rem; font-weight: 700;
}
.badge-primary { background: rgba(29, 115, 238, .16); color: var(--primary-300); border: 1px solid rgba(29, 115, 238, .4); }

.eyebrow {
    display: inline-block; padding: 5px 16px; border-radius: 999px;
    background: rgba(249, 139, 19, .12); border: 1px solid rgba(249, 139, 19, .45);
    color: var(--accent-300); font-size: .82rem; font-weight: 800;
    margin-bottom: 12px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(20, 21, 25, .88); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 38px; width: auto; }
.brand-mark { font-size: 1.5rem; }

/* شعار دائري أزرق بحرف A + الاسم + الوصف */
.brand-badge {
    position: relative; width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 50%; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(150deg, #2e8bff, #1258c4 70%);
    border: 2px solid rgba(140, 190, 255, .75);
    box-shadow: 0 0 16px rgba(29, 115, 238, .60), 0 0 0 3px rgba(29, 115, 238, .18), inset 0 0 10px rgba(255, 255, 255, .18);
}
.brand-badge-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-letter {
    position: relative; font-size: 1.4rem; font-weight: 900; color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.brand-stack { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 1.32rem; font-weight: 900; color: #fff; }
.brand-tagline { font-size: .68rem; color: #aebdd8; font-weight: 600; }

/* أيقونات القائمة + زر متوهج (أيقونات هندسية أحادية اللون كمرجع) */
.nav-ico { font-size: .95rem; opacity: .95; filter: grayscale(1) brightness(1.6); }
.site-nav a:not(.nav-cta).active::after {
    content: ''; display: block; margin-top: 3px; height: 2.5px; border-radius: 999px;
    background: var(--primary-300); box-shadow: 0 0 10px rgba(107, 168, 255, .80);
}
.nav-cta {
    padding: 9px 20px; border-radius: 12px; font-weight: 800; font-size: .92rem;
    background: linear-gradient(150deg, #2e8bff, #1258c4);
    color: #fff; border: 1px solid rgba(255, 255, 255, .30);
    box-shadow: 0 0 18px rgba(46, 124, 246, .55), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.nav-cta:hover { filter: brightness(1.1); text-decoration: none; }
.nav-burger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: #c6ccd6; font-weight: 600; font-size: .93rem; }
.site-nav a:hover, .site-nav a.active { color: var(--primary-300); text-decoration: none; }
.site-nav a.btn-primary { color: #fff; }
.site-nav a.btn-primary:hover { color: #fff; }

@media (max-width: 900px) {
    .nav-burger { display: block; }
    .site-nav {
        display: none; position: absolute; top: 68px; right: 0; left: 0;
        background: #141519; border-bottom: 1px solid var(--line);
        flex-direction: column; padding: 18px; gap: 14px;
    }
    .site-nav.open { display: flex; }
}

/* ---------- Hero (مرجع: هاتف نيون + شارات عائمة + رصيف تواصل أيمن) ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 84px 0 96px;
    background:
        radial-gradient(900px 480px at 12% 18%, rgba(41, 121, 255, .28), transparent 62%),
        radial-gradient(700px 420px at 30% 96%, rgba(76, 29, 149, .22), transparent 65%),
        radial-gradient(560px 340px at 96% 40%, rgba(21, 62, 148, .20), transparent 60%),
        linear-gradient(135deg, #060a1e 0%, #0a1030 46%, #071b4d 100%);
}
.hero::before { /* زخرفة الدوائر الكبيرة في الزاوية */
    content: ''; position: absolute; inset-inline-end: -180px; bottom: -260px;
    width: 560px; height: 560px; border-radius: 50%;
    background: linear-gradient(140deg, rgba(29, 115, 238, .30), rgba(16, 8, 60, .20) 60%, transparent);
    border: 1.5px solid rgba(120, 170, 255, .22);
}
.hero::after {
    content: ''; position: absolute; inset-inline-end: -60px; bottom: -160px;
    width: 340px; height: 340px; border-radius: 50%;
    background: linear-gradient(140deg, rgba(63, 32, 148, .35), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.12fr .88fr; gap: 44px; align-items: center; position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 22px; border-radius: 999px;
    background: rgba(9, 16, 42, .75); border: 1.5px solid #2f7cf6;
    color: #bcd4ff; font-size: .9rem; font-weight: 800;
    box-shadow: 0 0 16px rgba(47, 124, 246, .55), inset 0 0 12px rgba(47, 124, 246, .18);
    margin-bottom: 20px;
}
.hb-bolt { color: #ffd166; }
.hero-title2 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin: 0 0 14px; line-height: 1.35; font-weight: 900; color: #ffffff; }
.hero-hl2 { color: var(--primary-300); }
.hero-hl3 { color: #c084fc; text-shadow: 0 0 22px rgba(192, 132, 252, .45); }
.hero-sub2 { color: #b9c6e4; font-size: 1.08rem; max-width: 46ch; line-height: 1.95; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; align-items: center; }
.hero-btn-main {
    padding: 15px 34px; border-radius: 14px; font-size: 1.02rem; font-weight: 800; color: #fff;
    background: linear-gradient(160deg, #2e8bff, #1258c4);
    border: 1px solid rgba(140, 190, 255, .55);
    box-shadow: 0 0 22px rgba(46, 124, 246, .60), 0 10px 24px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .30);
}
.hero-btn-main:hover { filter: brightness(1.1); text-decoration: none; transform: translateY(-1px); }
.hbm-arrow { font-size: 1.1rem; }
.hero-btn-outline {
    padding: 15px 28px; border-radius: 14px; font-size: 1rem; font-weight: 700; color: #dce7ff;
    background: rgba(10, 18, 44, .55); border: 1.5px solid #3b82f6;
    box-shadow: 0 0 16px rgba(59, 130, 246, .40), inset 0 0 10px rgba(59, 130, 246, .12);
    display: inline-flex; align-items: center; gap: 9px;
}
.hero-btn-outline:hover { background: rgba(59, 130, 246, .14); color: #fff; text-decoration: none; }
.hbo-ico { opacity: .9; }

/* جهاز الهيرو */
.hero-art { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-device {
    width: min(235px, 70%); aspect-ratio: 9 / 18.2; border-radius: 38px;
    background: linear-gradient(160deg, #2a3040, #12141c 55%, #0d0f16);
    border: 2.5px solid rgba(140, 180, 255, .55);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, .55),
        0 0 34px rgba(59, 130, 246, .45),
        inset 0 0 16px rgba(120, 170, 255, .18);
    display: grid; place-items: center;
    position: relative;
    transform: rotate(6deg);
    animation: heroDeviceFloat 8s ease-in-out infinite;
}
@keyframes heroDeviceFloat { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-device { animation: none; } }
.hd-notch {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 88px; height: 22px; border-radius: 999px; background: #05060a;
    border: 1px solid rgba(255, 255, 255, .10);
}
.hd-screen {
    position: absolute; inset: 9px; border-radius: 30px;
    background:
        radial-gradient(190px 240px at 30% 20%, rgba(147, 51, 234, .55), transparent 65%),
        radial-gradient(240px 260px at 75% 80%, rgba(29, 115, 238, .55), transparent 68%),
        linear-gradient(160deg, #1b2360, #0e1338 60%, #131c52);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    overflow: hidden;
}
.hd-globe {
    width: 92px; height: 92px; border-radius: 24px;
    display: grid; place-items: center; font-size: 3rem;
    background: linear-gradient(150deg, rgba(120, 170, 255, .30), rgba(30, 64, 175, .45));
    border: 1.5px solid rgba(160, 200, 255, .55);
    box-shadow: 0 0 24px rgba(96, 165, 250, .45), inset 0 0 14px rgba(160, 200, 255, .22);
    filter: grayscale(1) brightness(2.4) drop-shadow(0 0 10px rgba(160, 200, 255, .55));
}
.hd-bar { height: 12px; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #2563eb); box-shadow: 0 0 12px rgba(96, 165, 250, .55); }
.hd-bar1 { width: 58%; }
.hd-bar2 { width: 38%; background: linear-gradient(90deg, #93c5fd, #3b82f6); }
.hd-ring { /* قرص نيون متوهج أسفل الهاتف */
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%) rotateX(72deg);
    width: 300px; height: 300px; border-radius: 50%;
    background:
        radial-gradient(closest-side, transparent 52%, rgba(96, 165, 250, .75) 62%, rgba(147, 51, 234, .55) 72%, rgba(59, 130, 246, .30) 78%, transparent 85%);
    filter: blur(1px) drop-shadow(0 0 22px rgba(59, 130, 246, .55));
    animation: ringPulse 4s ease-in-out infinite;
}
@keyframes ringPulse { 0%, 100% { opacity: .9; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hd-ring { animation: none; } }
.hd-fx { position: absolute; border-radius: 50%; filter: blur(2px); }
.hd-fx1 { width: 20px; height: 20px; top: 16%; inset-inline-start: 12%; background: rgba(255, 255, 255, .45); box-shadow: 0 0 14px rgba(255, 255, 255, .50); }
.hd-fx2 { width: 12px; height: 12px; bottom: 30%; inset-inline-end: 10%; background: rgba(192, 132, 252, .70); box-shadow: 0 0 12px rgba(192, 132, 252, .70); }

/* شارات برمجية عائمة يسار الهاتف */
.hero-chip {
    position: absolute; display: grid; place-items: center;
    width: 64px; height: 64px; border-radius: 18px; font-size: 1.5rem; font-weight: 900;
    background: linear-gradient(160deg, rgba(37, 99, 235, .85), rgba(30, 58, 138, .90));
    border: 1.5px solid rgba(140, 180, 255, .60);
    color: #fff;
    box-shadow: 0 0 22px rgba(59, 130, 246, .55), inset 0 0 12px rgba(160, 200, 255, .22);
    animation: chipFloat 6s ease-in-out infinite;
}
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .hero-chip { animation: none; } }
.hc-code { top: 8%; inset-inline-start: 4%; animation-delay: 0s; }
.hc-wp   { top: 33%; inset-inline-start: 12%; animation-delay: .9s; font-size: 1.7rem; border-radius: 50%; }
.hc-cart { top: 58%; inset-inline-start: 3%; animation-delay: 1.7s; font-size: 1.6rem; }

/* بطاقة «موقع جاهز» فوق قرص الهاتف */
.hero-float {
    position: absolute; bottom: 150px; inset-inline-end: -4%;
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(165deg, rgba(16, 26, 58, .94), rgba(9, 14, 34, .96));
    border: 1.5px solid rgba(120, 170, 255, .45);
    border-radius: 16px; padding: 12px 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 20px rgba(59, 130, 246, .30);
    backdrop-filter: blur(6px);
    animation: chipFloat 7s ease-in-out infinite;
    animation-delay: .5s;
}
.hero-float-title { font-size: 1.05rem; font-weight: 900; color: #fff; }
.hero-float-sub { font-size: .80rem; color: #9fb0d8; font-weight: 700; }
.hero-float-icon {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, #34d27b, #1f9d55); border: 1px solid rgba(255, 255, 255, .30);
    font-size: 1.35rem; color: #fff; font-weight: 900;
    box-shadow: 0 0 20px rgba(46, 204, 113, .55);
}

/* رصيف التواصل الاجتماعي الأيمن داخل الهيرو */
.hero-social-rail {
    position: absolute; inset-inline-start: 12px; top: 44%; transform: translateY(-50%);
    z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 15px;
    padding: 14px 7px; border-radius: 999px;
    background: linear-gradient(180deg, rgba(37, 99, 235, .22), rgba(124, 58, 237, .18));
    border: 1.5px solid rgba(140, 180, 255, .40);
    box-shadow: 0 0 24px rgba(59, 130, 246, .35), inset 0 0 14px rgba(120, 170, 255, .12);
}
.hsr-item { display: block; line-height: 0; }
.hsr-circle {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .30), 0 4px 12px rgba(0, 0, 0, .40), 0 0 14px rgba(59, 130, 246, .25);
    transition: transform .18s;
}
.hsr-circle svg { width: 21px; height: 21px; display: block; }
.hsr-item:hover .hsr-circle { transform: scale(1.12); }
@media (max-width: 900px) { .hero-social-rail { display: none; } }

/* أمواج زرقاء متوهجة أسفل الهيرو */
.hero-waves { position: absolute; inset-inline: 0; bottom: -2px; z-index: 0; pointer-events: none; }
.hero-waves svg { display: block; width: 100%; height: 110px; }

@media (max-width: 900px) {
    .hero { padding: 56px 0 72px; }
    .hero-inner { grid-template-columns: 1fr; gap: 30px; }
    .hero-art { min-height: 320px; margin-top: 6px; }
    .hero-device { width: 185px; border-radius: 30px; }
    .hd-globe { width: 68px; height: 68px; font-size: 2.1rem; border-radius: 18px; }
    .hero-chip { width: 50px; height: 50px; border-radius: 14px; font-size: 1.15rem; }
    .hero-float { bottom: -4px; inset-inline-end: 0; padding: 9px 13px; }
}

/* ---------- Sections / cards ---------- */
.section { padding: 68px 0; }
.section-alt { background: var(--bg); border-block: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 38px; }
.section-title { font-size: clamp(1.45rem, 3vw, 2.05rem); margin: 0 0 8px; font-weight: 900; }
.section-sub { color: var(--muted); margin: 0; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
    --acc: #1d73ee;
    position: relative; overflow: hidden;
    background: linear-gradient(165deg, var(--surface-2), #1a1c20);
    border: 1px solid color-mix(in srgb, var(--acc) 30%, var(--line-strong));
    border-radius: var(--radius);
    box-shadow:
        var(--shadow),
        14px 0 30px -8px rgba(29, 115, 238, .22),
        -14px 0 30px -8px rgba(249, 139, 19, .20),
        0 14px 30px -8px rgba(46, 204, 113, .18),
        0 -14px 30px -8px rgba(167, 139, 250, .18),
        inset 0 0 26px color-mix(in srgb, var(--acc) 6%, transparent);
    overflow: hidden;
    display: flex; flex-direction: column; transition: border-color .25s, transform .25s, box-shadow .25s;
    animation: serviceFloat 7s ease-in-out infinite;
}
.card::before {
    content: ''; position: absolute; top: 0; right: 18%; left: 18%; height: 3px;
    border-radius: 999px; background: linear-gradient(90deg, transparent, var(--acc), transparent);
    opacity: .85; z-index: 1;
}
.card::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(150px 95px at 100% 0%, rgba(29, 115, 238, .20), transparent 72%),
        radial-gradient(150px 95px at 0% 0%, rgba(249, 139, 19, .18), transparent 72%),
        radial-gradient(150px 95px at 100% 100%, rgba(46, 204, 113, .17), transparent 72%),
        radial-gradient(150px 95px at 0% 100%, rgba(167, 139, 250, .17), transparent 72%);
}
.card:hover {
    border-color: color-mix(in srgb, var(--acc) 55%, transparent);
    transform: translateY(-5px);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, .45),
        18px 0 38px -8px rgba(29, 115, 238, .34),
        -18px 0 38px -8px rgba(249, 139, 19, .31),
        0 18px 38px -8px rgba(46, 204, 113, .27),
        0 -18px 38px -8px rgba(167, 139, 250, .27),
        inset 0 0 34px color-mix(in srgb, var(--acc) 10%, transparent);
}
.card:nth-child(5n+2) { --acc: #f98b13; animation-delay: -1.2s; }
.card:nth-child(5n+3) { --acc: #2ecc71; animation-delay: -2.4s; }
.card:nth-child(5n+4) { --acc: #a78bfa; animation-delay: -3.6s; }
.card:nth-child(5n+5) { --acc: #22d3ee; animation-delay: -4.8s; }
@keyframes serviceFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.card-icon {
    font-size: 1.5rem; width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center; margin-bottom: 8px;
    background: color-mix(in srgb, var(--acc) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--acc) 25%, transparent);
    position: relative; z-index: 2;
}
.service-card { padding: 24px; }
.service-card h3 { margin: 0 0 6px; position: relative; z-index: 2; }
.service-card > * { position: relative; z-index: 2; }
.price { font-weight: 800; margin: 6px 0; color: var(--acc); }
.price s { color: var(--accent); text-decoration-color: var(--accent); text-decoration-thickness: 2.5px; margin-inline-end: 6px; }
.service-details summary { cursor: pointer; color: var(--primary-300); font-weight: 700; }
.service-details summary:hover { color: var(--primary); }

.project-thumb { height: 180px; background: #191a1e; overflow: hidden; }
.project-thumb img, .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.thumb-fallback { display: grid; place-items: center; height: 100%; font-size: 2.4rem; }
.post-thumb { display: block; height: 170px; background: #191a1e; }
.post-card h3 { margin: 0; font-size: 1.05rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--primary-300); }
.post-meta { display: flex; gap: 14px; color: var(--muted); font-size: .82rem; margin-top: 4px; flex-wrap: wrap; }

/* ---------- FAQ accordion (frosted geometric cards) ---------- */
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    --acc: #1d73ee;
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, rgba(38, 41, 46, .72), rgba(26, 28, 32, .58));
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid color-mix(in srgb, var(--acc) 28%, var(--line-strong));
    border-radius: 14px; overflow: hidden;
    box-shadow:
        var(--shadow),
        10px 0 22px -8px rgba(29, 115, 238, .18),
        -10px 0 22px -8px rgba(249, 139, 19, .16),
        0 10px 22px -8px rgba(46, 204, 113, .14),
        0 -10px 22px -8px rgba(167, 139, 250, .14);
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.faq-item:nth-child(5n+2) { --acc: #f98b13; }
.faq-item:nth-child(5n+3) { --acc: #2ecc71; }
.faq-item:nth-child(5n+4) { --acc: #a78bfa; }
.faq-item:nth-child(5n+5) { --acc: #22d3ee; }
/* luxury geometric ornament: layered diamonds */
.faq-item::before {
    content: ''; position: absolute; left: -30px; top: 50%;
    width: 92px; height: 92px; margin-top: -46px;
    border: 1px solid color-mix(in srgb, var(--acc) 38%, transparent);
    border-radius: 14px; transform: rotate(45deg);
    opacity: .55; pointer-events: none;
    box-shadow:
        inset 0 0 0 7px rgba(255, 255, 255, .025),
        inset 0 0 22px color-mix(in srgb, var(--acc) 14%, transparent);
}
.faq-item::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(120px 70px at 100% 0%, rgba(29, 115, 238, .16), transparent 72%),
        radial-gradient(120px 70px at 0% 0%, rgba(249, 139, 19, .14), transparent 72%),
        radial-gradient(120px 70px at 100% 100%, rgba(46, 204, 113, .13), transparent 72%),
        radial-gradient(120px 70px at 0% 100%, rgba(167, 139, 250, .13), transparent 72%);
}
.faq-item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--acc) 50%, transparent);
    box-shadow:
        var(--shadow),
        14px 0 28px -8px rgba(29, 115, 238, .26),
        -14px 0 28px -8px rgba(249, 139, 19, .23),
        0 14px 28px -8px rgba(46, 204, 113, .20),
        0 -14px 28px -8px rgba(167, 139, 250, .20);
}
.faq-item.is-open {
    border-color: color-mix(in srgb, var(--acc) 60%, transparent);
    box-shadow:
        var(--shadow),
        14px 0 30px -8px rgba(29, 115, 238, .30),
        -14px 0 30px -8px rgba(249, 139, 19, .26),
        0 14px 30px -8px rgba(46, 204, 113, .24),
        0 -14px 30px -8px rgba(167, 139, 250, .24);
}
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 13px 18px; background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: .98rem; font-weight: 700; color: var(--ink); text-align: right;
    position: relative; z-index: 2;
}
.faq-question:hover { color: var(--primary-300); }
.faq-chevron { transition: transform .25s ease; color: var(--acc); font-size: 1.05rem; }
.faq-chevron.rotate { transform: rotate(180deg); }
.faq-answer { padding: 0 18px; position: relative; z-index: 2; }
.faq-answer p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }

[x-cloak] { display: none !important; }

/* ---------- Counters (separate glowing cards) ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.counter {
    --acc: #1d73ee;
    position: relative; overflow: hidden;
    background: linear-gradient(165deg, var(--surface-2), #1a1c20);
    border: 1px solid color-mix(in srgb, var(--acc) 30%, var(--line-strong)); border-radius: var(--radius);
    padding: 26px 14px 20px; text-align: center;
    box-shadow:
        var(--shadow),
        12px 0 26px -8px rgba(29, 115, 238, .22),
        -12px 0 26px -8px rgba(249, 139, 19, .20),
        0 12px 26px -8px rgba(46, 204, 113, .18),
        0 -12px 26px -8px rgba(167, 139, 250, .18),
        inset 0 0 24px color-mix(in srgb, var(--acc) 6%, transparent);
    animation: counterFloat 5.6s ease-in-out infinite;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.counter::before {
    content: ''; position: absolute; top: 0; right: 20%; left: 20%; height: 3px;
    border-radius: 999px; background: linear-gradient(90deg, transparent, var(--acc), transparent);
    opacity: .9;
}
.counter::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(125px 75px at 100% 0%, rgba(29, 115, 238, .21), transparent 72%),
        radial-gradient(125px 75px at 0% 0%, rgba(249, 139, 19, .19), transparent 72%),
        radial-gradient(125px 75px at 100% 100%, rgba(46, 204, 113, .18), transparent 72%),
        radial-gradient(125px 75px at 0% 100%, rgba(167, 139, 250, .18), transparent 72%);
}
.counter:nth-child(2) { --acc: #f98b13; animation-delay: -1.4s; }
.counter:nth-child(3) { --acc: #2ecc71; animation-delay: -2.8s; }
.counter:nth-child(4) { --acc: #a78bfa; animation-delay: -4.2s; }
.counter:nth-child(5) { --acc: #22d3ee; animation-delay: -5.6s; }
.counter:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--acc) 55%, transparent);
    box-shadow:
        0 16px 38px rgba(0, 0, 0, .45),
        16px 0 32px -8px rgba(29, 115, 238, .33),
        -16px 0 32px -8px rgba(249, 139, 19, .30),
        0 16px 32px -8px rgba(46, 204, 113, .26),
        0 -16px 32px -8px rgba(167, 139, 250, .26),
        inset 0 0 30px color-mix(in srgb, var(--acc) 10%, transparent);
}
.counter-icon { font-size: 1.7rem; margin-bottom: 4px; }
.counter-value {
    display: inline; font-size: 2.5rem; font-weight: 900; direction: ltr;
    background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 45%, #ffffff), var(--acc));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--acc) 55%, transparent));
}
.counter-suffix {
    font-size: 1.5rem; font-weight: 900; display: inline;
    background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 45%, #ffffff), var(--acc));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--acc) 55%, transparent));
}
.counter-label { color: var(--muted); font-weight: 700; margin-top: 4px; }
@keyframes counterFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .counter { animation: none; } }

/* ---------- شريط الإحصائيات (مرجع: 4 بطاقات زجاجية ملونة متوهجة) ---------- */
.stats-belt { padding: 26px 0 64px; }
.stats-belt .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1020px) { .stats-belt .stats-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stats-belt .stats-row { grid-template-columns: 1fr; } }
.stat-card {
    --sc: #2f7cf6;
    --sc-glow: rgba(47, 124, 246, .45);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 26px 18px 22px; border-radius: 20px; text-align: center;
    background: linear-gradient(165deg, rgba(14, 20, 42, .80), rgba(7, 11, 26, .88));
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid color-mix(in srgb, var(--sc) 65%, transparent);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .40),
        0 0 26px var(--sc-glow),
        inset 0 0 22px color-mix(in srgb, var(--sc) 12%, transparent);
    transition: transform .22s, box-shadow .22s;
}
.stat-card::before { /* توهج داخلي علوي بلون البطاقة */
    content: ''; position: absolute; top: -40%; inset-inline: 20%; height: 80%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--sc) 28%, transparent), transparent);
    pointer-events: none;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(0, 0, 0, .48), 0 0 38px var(--sc-glow), inset 0 0 26px color-mix(in srgb, var(--sc) 16%, transparent); }
.sc-blue   { --sc: #2f7cf6; --sc-glow: rgba(47, 124, 246, .45); }
.sc-green  { --sc: #2ecc71; --sc-glow: rgba(46, 204, 113, .45); }
.sc-orange { --sc: #f98b13; --sc-glow: rgba(249, 139, 19, .50); }
.sc-purple { --sc: #a78bfa; --sc-glow: rgba(167, 139, 250, .48); }
.stat-ico { font-size: 2rem; line-height: 1.2; filter: grayscale(1) brightness(1.7) drop-shadow(0 0 10px var(--sc-glow)); }
.stat-line { display: flex; align-items: baseline; gap: 4px; direction: ltr; justify-content: center; }
.stat-card .counter-value {
    font-size: 2.5rem; font-weight: 900; direction: ltr;
    background: none; -webkit-text-fill-color: currentColor;
    color: var(--sc); text-shadow: 0 0 18px var(--sc-glow);
}
.stat-card .counter-suffix {
    font-size: 1.9rem; font-weight: 900;
    background: none; -webkit-text-fill-color: currentColor;
    color: var(--sc); text-shadow: 0 0 18px var(--sc-glow);
}
.stat-card .counter-label { color: #c7d3e8; font-weight: 700; font-size: .98rem; margin-top: 0; }

/* ---------- Page hero / filters ---------- */
.page-hero { padding: 46px 0 10px; }
.page-hero h1 { margin: 0 0 4px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 26px; }
.filter-note { color: var(--muted); }
.breadcrumb { color: var(--muted); font-size: .9rem; }

/* ---------- Blog layout ---------- */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .blog-layout { grid-template-columns: 1fr; } }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.page-link {
    min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 10px;
    border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; color: var(--ink);
}
.page-link:hover { text-decoration: none; border-color: var(--primary); color: var(--primary-300); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--glow-blue); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.post-hero img { border-radius: var(--radius); max-height: 420px; width: 100%; object-fit: cover; }
.post-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 18px 0 8px; }
.post-content { font-size: 1.02rem; line-height: 2; }
.post-content h3 { margin-top: 26px; }

/* ---------- Contact ---------- */
.contact-section {
    background:
        radial-gradient(500px 280px at 50% 0%, rgba(249, 139, 19, .07), transparent 70%),
        var(--bg);
}
.contact-hero { margin-bottom: 40px; }
.contact-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; font-weight: 900; }
.contact-hero-cta { margin: 22px 0 10px; }
.contact-hero-cta .btn-whatsapp {
    justify-content: center;
    padding: 15px 36px;
    border: 2px solid transparent;
    border-radius: 16px;
    color: #fff7e8;
    text-shadow: 0 1px 8px rgba(120, 53, 0, .40);
    background:
        linear-gradient(150deg, #ffab45, #f98b13 52%, #ef7d07) padding-box,
        linear-gradient(140deg, #ffe9b0, #ffffff 28%, #f98b13 62%, #ffd68a) border-box;
    box-shadow:
        0 10px 26px rgba(249, 139, 19, .35),
        0 0 24px rgba(255, 200, 100, .30),
        inset 0 1px 0 rgba(255, 255, 255, .35);
    animation: ctaFloat 3.6s ease-in-out infinite;
}
.contact-hero-cta .btn-whatsapp:hover { filter: brightness(1.06); }
@keyframes ctaFloat {
    0%, 100% { transform: translateY(0); box-shadow: 0 10px 26px rgba(249, 139, 19, .35), 0 0 24px rgba(255, 200, 100, .30), inset 0 1px 0 rgba(255, 255, 255, .35); }
    50%      { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(249, 139, 19, .45), 0 0 36px rgba(255, 200, 100, .45), inset 0 1px 0 rgba(255, 255, 255, .40); }
}
@media (prefers-reduced-motion: reduce) { .contact-hero-cta .btn-whatsapp { animation: none; } }

/* صندوقا الهاتف والبريد — نفس تصميم وحجم زر واتساب */
.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-chip {
    --cc: var(--primary);
    --cc-2: #f5c56b;
    display: inline-flex; align-items: center; gap: 12px;
    min-height: 58px; padding: 9px 18px; border-radius: 16px;
    border: 2px solid transparent;
    text-decoration: none;
    background:
        linear-gradient(165deg, rgba(23, 34, 56, .92), rgba(12, 18, 32, .95)) padding-box,
        linear-gradient(140deg,
            color-mix(in srgb, var(--cc) 92%, #ffffff),
            rgba(255, 255, 255, .35) 30%,
            color-mix(in srgb, var(--cc) 72%, transparent) 64%,
            color-mix(in srgb, var(--cc-2) 88%, transparent)) border-box;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, .35),
        0 0 20px color-mix(in srgb, var(--cc) 22%, transparent),
        inset 0 0 14px color-mix(in srgb, var(--cc) 10%, transparent);
    transition: transform .2s, box-shadow .2s;
}
.contact-chip:hover {
    text-decoration: none; transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .42), 0 0 30px color-mix(in srgb, var(--cc) 36%, transparent);
}
.cc-tel  { --cc: var(--primary); --cc-2: #f5c56b; } /* أزرق ملكي × ذهبي */
.cc-mail { --cc: #a78bfa;        --cc-2: #f0abfc; } /* بنفسجي ملكي × وردي فاخر */
.cc-ico {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
    display: grid; place-items: center; font-size: 1.05rem;
    background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--cc) 80%, #ffffff), var(--cc) 60%, color-mix(in srgb, var(--cc) 55%, #000000));
    color: #fff;
    box-shadow: 0 0 14px color-mix(in srgb, var(--cc) 55%, transparent), inset 0 0 6px rgba(255, 255, 255, .30);
}
.cc-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-align: start; line-height: 1.45; }
.cc-label { color: #aebdd8; font-size: .72rem; font-weight: 800; letter-spacing: .3px; }
.cc-value { color: #ffffff; font-weight: 800; font-size: 1.02rem; direction: ltr; white-space: nowrap; overflow-wrap: break-word; }
@media (max-width: 560px) {
    .contact-chip { width: 100%; justify-content: center; }
    .cc-value { white-space: normal; }
}
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* Shared navy panel design + animated realistic corner light */
.contact-info, .contact-form {
    position: relative; isolation: isolate;
    background:
        radial-gradient(420px 260px at 85% -10%, rgba(41, 121, 255, .20), transparent 65%),
        radial-gradient(380px 240px at 0% 110%, rgba(29, 115, 238, .12), transparent 62%),
        linear-gradient(165deg, #0d1526, #0a1020 60%, #0c1222);
    border: 1px solid rgba(80, 130, 220, .35);
    border-radius: var(--radius);
    box-shadow: var(--shadow), inset 0 0 60px rgba(29, 115, 238, .06);
    padding: 26px;
}
.contact-info::before, .contact-form::before,
.contact-info::after, .contact-form::after {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    background: conic-gradient(from var(--ang),
        rgba(46, 124, 246, .90), rgba(255, 145, 30, .80), rgba(52, 199, 123, .70),
        rgba(147, 100, 255, .80), rgba(46, 124, 246, .90));
    animation: orbitGlow 9s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}
/* crisp neon rim hugging the border */
.contact-info::before, .contact-form::before {
    inset: -3px; padding: 2px; border-radius: calc(var(--radius) + 3px);
    opacity: .85; filter: blur(.5px);
}
/* soft realistic aura bleeding outward */
.contact-info::after, .contact-form::after {
    inset: -13px; padding: 13px; border-radius: calc(var(--radius) + 13px);
    opacity: .55; filter: blur(15px);
}
@keyframes orbitGlow { to { --ang: 360deg; } }
@media (prefers-reduced-motion: reduce) {
    .contact-info::before, .contact-form::before,
    .contact-info::after, .contact-form::after { animation: none; }
}
.ci-head { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 18px; text-align: center; }
.ci-call {
    position: absolute; top: 18px; inset-inline-start: 18px;
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem;
    background: linear-gradient(145deg, #1d73ee, #1258c4); color: #fff;
    box-shadow: 0 0 18px rgba(29, 115, 238, .5);
}
.ci-call:hover { transform: translateY(-2px); text-decoration: none; }
.ci-head h3 { margin: 0; font-size: 1.25rem; }
.ci-sub { margin: 0; color: #93a5c4; font-size: .84rem; font-weight: 600; }

/* 2x2 info boxes */
.contact-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .contact-boxes { grid-template-columns: 1fr; } }
.contact-box {
    --ba: #1d73ee;
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(160deg, rgba(30, 44, 72, .55), rgba(15, 22, 38, .60));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--ba) 38%, rgba(255, 255, 255, .08));
    border-radius: 14px; padding: 14px 16px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, .30),
        0 0 16px color-mix(in srgb, var(--ba) 16%, transparent),
        inset 0 0 18px color-mix(in srgb, var(--ba) 8%, transparent);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.contact-box:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ba) 60%, transparent); box-shadow: 0 12px 26px rgba(0, 0, 0, .35), 0 0 22px color-mix(in srgb, var(--ba) 28%, transparent); }
.cb-icon {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.15rem;
    background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--ba) 85%, #fff 0%), var(--ba) 55%, color-mix(in srgb, var(--ba) 60%, #000) 100%);
    color: #fff;
    box-shadow: 0 0 16px color-mix(in srgb, var(--ba) 55%, transparent), inset 0 0 8px rgba(255, 255, 255, .25);
}
.cb-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cb-label { color: #aebdd8; font-size: .78rem; font-weight: 800; }
.cb-value { color: #ffffff; font-weight: 800; font-size: .95rem; overflow-wrap: anywhere; }
.cb-value:hover { text-decoration: underline; }

/* Divider with text */
.ci-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: #8fa3c5; font-size: .80rem; font-weight: 700; }
.ci-divider::before, .ci-divider::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(90, 140, 220, .4), transparent); }

/* Social orbs with four-corner glow */
.social-orbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 26px; }
.social-orb {
    --ob: #1d73ee;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    text-decoration: none;
}
.orb-circle {
    position: relative;
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background:
        radial-gradient(20px 20px at 78% 22%, rgba(255, 255, 255, .32), transparent 60%),
        radial-gradient(22px 22px at 20% 80%, rgba(255, 255, 255, .18), transparent 60%),
        var(--ob);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, .38),
        0 0 18px color-mix(in srgb, var(--ob) 45%, transparent),
        8px 0 18px -6px rgba(29, 115, 238, .35),
        -8px 0 18px -6px rgba(249, 139, 19, .30),
        0 8px 18px -6px rgba(46, 204, 113, .26),
        0 -8px 18px -6px rgba(167, 139, 250, .26),
        inset 0 0 10px rgba(255, 255, 255, .18);
    transition: transform .2s, box-shadow .2s;
}
.orb-circle svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.orb-name { color: #c7d3e8; font-size: .74rem; font-weight: 700; }
.social-orb:hover .orb-circle {
    transform: translateY(-4px) scale(1.07);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, .42),
        0 0 26px color-mix(in srgb, var(--ob) 65%, transparent),
        11px 0 22px -6px rgba(29, 115, 238, .48),
        -11px 0 22px -6px rgba(249, 139, 19, .42),
        0 11px 22px -6px rgba(46, 204, 113, .38),
        0 -11px 22px -6px rgba(167, 139, 250, .38),
        inset 0 0 12px rgba(255, 255, 255, .25);
}
.social-orb:hover .orb-name { color: #fff; }
.contact-form h3 { margin: 0 0 6px; text-align: center; font-size: 1.25rem; }
.contact-form .form-hint { text-align: center; color: #93a5c4; }
.contact-form .form-label { color: #c7d3e8; }
.contact-form .form-input {
    background: rgba(13, 21, 38, .85); border-color: rgba(90, 140, 220, .35); color: #fff;
}
.contact-form .form-input::placeholder { color: #5f7392; }
.contact-form .form-input:focus { outline: 2px solid rgba(46, 124, 246, .45); border-color: #2e7cf6; }
.btn-whatsapp {
    background: var(--accent); color: #fff; box-shadow: var(--glow-orange);
    font-weight: 800;
}
.btn-whatsapp:hover { background: var(--accent-300); }
.brand-latin { color: var(--muted); font-size: .82rem; margin: 2px 0 10px; font-weight: 600; }


/* ---------- Forms ---------- */
.form-label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.form-input {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
    font-family: inherit; font-size: .95rem; background: #191b1f; color: var(--ink);
}
.form-input::placeholder { color: #6b7280; }
.form-input:focus { outline: 2px solid rgba(29, 115, 238, .45); border-color: var(--primary); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-grid-2 + .form-grid-2, .form-grid-2 + .form-label, .form-grid-2 + .form-input { margin-top: 14px; }
.contact-form .btn-block { margin-top: 14px; }
.form-status { min-height: 22px; font-weight: 700; margin: 10px 0 0; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

.social-dock { position: fixed; top: 42%; inset-inline-start: 6px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.social-dock-item { position: relative; display: block; }
.social-dock-circle {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 255, 255, .35);
    transition: transform .18s;
}
.social-dock-circle svg { width: 24px; height: 24px; display: block; }
.social-dock-item:hover .social-dock-circle { transform: scale(1.12); }
@media (max-width: 700px) {
    .social-dock { gap: 24px; inset-inline-start: 4px; top: 46%; }
    .social-dock-circle { width: 36px; height: 36px; }
    .social-dock-circle svg { width: 19px; height: 19px; }
}

/* ---------- Programming-style ambient background ---------- */
.bg-fx {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
    background:
        radial-gradient(720px 430px at 88% -6%, rgba(29, 115, 238, .16), transparent 62%),
        radial-gradient(620px 420px at 8% 108%, rgba(249, 139, 19, .09), transparent 62%);
}
.bg-fx::before {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px) 0 0 / 44px 44px;
    -webkit-mask-image: radial-gradient(75% 70% at 50% 38%, #000 40%, transparent 100%);
    mask-image: radial-gradient(75% 70% at 50% 38%, #000 40%, transparent 100%);
}
.bg-fx .code-glyph {
    position: absolute; font-family: 'Courier New', monospace; font-weight: 700;
    color: rgba(122, 168, 255, .13); user-select: none;
    animation: glyphDrift 16s ease-in-out infinite;
}
.bg-fx .code-glyph:nth-child(even) { color: rgba(249, 139, 19, .10); animation-duration: 21s; }
.bg-fx .code-glyph:nth-child(3n) { animation-duration: 26s; animation-delay: -6s; }
.bg-fx .code-glyph:nth-child(1) { top: 12%; right: 8%; font-size: 1.5rem; }
.bg-fx .code-glyph:nth-child(2) { top: 30%; left: 6%; font-size: 1.1rem; }
.bg-fx .code-glyph:nth-child(3) { top: 55%; right: 14%; font-size: 1.3rem; }
.bg-fx .code-glyph:nth-child(4) { top: 72%; left: 12%; font-size: 1.6rem; }
.bg-fx .code-glyph:nth-child(5) { top: 20%; left: 30%; font-size: 1rem; }
.bg-fx .code-glyph:nth-child(6) { top: 46%; right: 40%; font-size: 1.2rem; }
.bg-fx .code-glyph:nth-child(7) { top: 84%; right: 26%; font-size: 1.4rem; }
.bg-fx .code-glyph:nth-child(8) { top: 62%; left: 34%; font-size: 1.1rem; }
@keyframes glyphDrift {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: .8; }
    50% { transform: translateY(-26px) rotate(6deg); opacity: .35; }
}
@media (prefers-reduced-motion: reduce) { .bg-fx .code-glyph { animation: none; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .68); backdrop-filter: blur(3px); }
.modal-box {
    position: relative; margin: 6vh auto; width: min(560px, 92%);
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--radius); padding: 26px;
    max-height: 84vh; overflow: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.modal-lg { width: min(760px, 94%); }
.modal-close {
    position: absolute; top: 10px; left: 10px; width: 34px; height: 34px;
    border-radius: 50%; border: 1px solid var(--line-strong); background: #191b1f;
    color: var(--ink); font-size: 1.2rem; cursor: pointer;
}
.modal-close:hover { border-color: var(--primary); color: var(--primary-300); }
.modal-title { margin: 0 0 6px; }
.modal-meta { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.modal-message { white-space: pre-wrap; line-height: 1.9; }

/* ---------- Footer (بطاقات فخمة بإطارات متوهجة وخلفيات مميزة لكل مربع) ---------- */
.site-footer {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 380px at 85% 0%, rgba(29, 115, 238, .12), transparent 62%),
        radial-gradient(700px 340px at 12% 100%, rgba(249, 139, 19, .08), transparent 62%),
        linear-gradient(180deg, #141519, #101114);
    color: #aab2bd; padding: 58px 0 0; border-top: 1px solid var(--line-strong);
}
.footer-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(560px 240px at 50% 118%, rgba(29, 115, 238, .14), transparent 70%);
}
.site-footer > .container, .footer-bottom { position: relative; }

.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.25fr; gap: 22px; padding: 8px 0 40px; }
@media (max-width: 1020px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-card {
    --fc-accent: var(--primary);
    --fc-accent-2: var(--accent);
    --fc-radius: 20px;
    position: relative;
    background:
        var(--fc-sheen, none),
        linear-gradient(170deg, var(--fc-bg1, rgba(34, 39, 48, .92)), var(--fc-bg2, rgba(22, 25, 31, .96)));
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--fc-radius);
    padding: 24px 22px;
    box-shadow:
        0 18px 38px rgba(0, 0, 0, .38),
        0 0 0 1px rgba(255, 255, 255, .04) inset,
        0 0 26px color-mix(in srgb, var(--fc-accent) 18%, transparent);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.footer-card::after { /* إطار متدرج فخم بلونين متراقصين لكل مربع */
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.6px;
    background: linear-gradient(140deg,
        color-mix(in srgb, var(--fc-accent) 92%, #ffffff) 0%,
        rgba(255, 255, 255, .32) 24%,
        color-mix(in srgb, var(--fc-accent-2) 88%, transparent) 58%,
        color-mix(in srgb, var(--fc-accent) 55%, transparent) 82%,
        rgba(255, 255, 255, .14) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
.footer-card::before { /* خط ضوئي علوي فخم بلون المربع */
    content: ''; position: absolute; top: 0; inset-inline: 18%; height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--fc-accent), transparent);
    opacity: .85; filter: drop-shadow(0 0 6px var(--fc-accent));
}
.footer-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--fc-accent) 62%, transparent);
    box-shadow:
        0 24px 46px rgba(0, 0, 0, .45),
        0 0 34px color-mix(in srgb, var(--fc-accent) 24%, transparent);
}

/* خلفية مميزة لكل مربع (مختلفة عن أختها) + حافة بلونين متراقصين */
.fc-brand {
    --fc-accent: var(--primary);
    --fc-accent-2: #f5c56b; /* أزرق ملكي × ذهبي */
    --fc-bg1: rgba(23, 44, 82, .58);
    --fc-bg2: rgba(13, 20, 34, .93);
    --fc-sheen: radial-gradient(430px 260px at 86% -6%, rgba(29, 115, 238, .30), transparent 70%);
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.fc-contact {
    --fc-accent: #25d366;
    --fc-accent-2: #9ff0c8; /* أخضر زمردي × فضي لامع */
    --fc-bg1: rgba(18, 52, 38, .58);
    --fc-bg2: rgba(11, 24, 19, .94);
    --fc-sheen: radial-gradient(430px 260px at 8% 112%, rgba(46, 204, 113, .22), transparent 70%);
}
.fc-links {
    --fc-accent: #f98b13;
    --fc-accent-2: #ffe08a; /* برتقالي ناري × ذهبي ساطع */
    --fc-bg1: rgba(74, 43, 12, .52);
    --fc-bg2: rgba(31, 20, 9, .94);
    --fc-sheen: radial-gradient(430px 260px at 90% 112%, rgba(249, 139, 19, .24), transparent 70%);
}
.fc-news {
    --fc-accent: #a78bfa;
    --fc-accent-2: #f0abfc; /* بنفسجي ملكي × وردي فاخر */
    --fc-bg1: rgba(48, 36, 84, .55);
    --fc-bg2: rgba(20, 15, 36, .94);
    --fc-sheen: radial-gradient(430px 260px at 6% -8%, rgba(167, 139, 250, .28), transparent 70%);
}

.footer-title { display: flex; align-items: center; gap: 8px; color: #fff; margin: 0 0 14px; font-size: 1.05rem; }
.ft-ico {
    display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
    font-size: .95rem;
    background: color-mix(in srgb, var(--fc-accent) 20%, transparent);
    border: 1px solid color-mix(in srgb, var(--fc-accent) 45%, transparent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--fc-accent) 30%, transparent);
}
.footer-links { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-links a {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 12px;
    color: #c3cbd6; background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .07);
    transition: .18s;
}
.footer-links a:hover {
    color: #fff; text-decoration: none;
    background: color-mix(in srgb, var(--fc-accent) 14%, transparent);
    border-color: color-mix(in srgb, var(--fc-accent) 55%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--fc-accent) 25%, transparent);
    transform: translateX(-3px); /* RTL: يتحرك يساراً نحو محتوى القائمة */
}
.fl-ico { font-size: .92rem; opacity: .9; }

/* شعار الموقع داخل إطار بارز لامع (مكان أسماء مواقع التواصل سابقاً) */
.footer-logo-halo { /* حلقة ضوئية دوّارة حول إطار الشعار */
    position: relative; display: inline-grid; place-items: center; margin-bottom: 16px;
}
.footer-logo-halo::before {
    content: ''; position: absolute; inset: -7px; border-radius: 32px; padding: 2.5px;
    background: conic-gradient(from var(--ang),
        #f5c56b, #1d73ee 28%, #a78bfa 52%, #f98b13 76%, #f5c56b);
    filter: drop-shadow(0 0 12px rgba(29, 115, 238, .45));
    animation: orbitGlow 7s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .footer-logo-halo::before { animation: none; } }
.footer-logo-frame {
    position: relative; display: inline-grid; place-items: center;
    width: 108px; height: 108px; margin-bottom: 0;
    border-radius: 26px;
    padding: 10px;
    background:
        linear-gradient(145deg, rgba(29, 115, 238, .32), rgba(10, 14, 22, .9) 45%, rgba(245, 197, 107, .30));
    border: 2px solid rgba(255, 255, 255, .34);
    box-shadow:
        0 0 0 2px rgba(245, 197, 107, .22),
        0 14px 30px rgba(0, 0, 0, .5),
        0 0 30px rgba(29, 115, 238, .45),
        inset 0 0 20px rgba(255, 255, 255, .12);
    overflow: hidden;
}
.footer-logo-frame::before { /* لمعة زجاجية عابرة */
    content: ''; position: absolute; top: -60%; inset-inline-start: -80%;
    width: 70%; height: 220%; transform: rotate(25deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
    animation: logoShine 4.5s ease-in-out infinite;
}
@keyframes logoShine {
    0%, 55% { inset-inline-start: -80%; }
    85%, 100% { inset-inline-start: 130%; }
}
@media (prefers-reduced-motion: reduce) { .footer-logo-frame::before { animation: none; } }
.footer-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.footer-logo-mark { font-size: 2.6rem; filter: drop-shadow(0 0 14px rgba(29, 115, 238, .6)); }
.fc-brand .brand-name { color: #fff; font-weight: 800; }
.fc-brand .brand-latin { color: var(--primary-300); letter-spacing: .5px; margin: 4px 0 10px; }
.fc-brand .muted { color: #9fb0c8; }

.newsletter-form { display: flex; gap: 8px; }
.newsletter-form .form-input { flex: 1; background: rgba(10, 14, 22, .8); border-color: color-mix(in srgb, var(--fc-accent) 35%, var(--line-strong)); }
.newsletter-form .form-input:focus { border-color: var(--fc-accent); }
.fc-news .btn-primary { background: var(--fc-accent); border-color: transparent; box-shadow: 0 0 18px color-mix(in srgb, var(--fc-accent) 40%, transparent); }
.fc-news .btn-primary:hover { filter: brightness(1.1); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 16px 0; font-size: .85rem; text-align: center;
    background: rgba(0, 0, 0, .25);
}
.footer-bottom-inner { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.footer-bottom-inner p { margin: 0; }
.fb-copy a { color: var(--primary-300); }
.dev-credit { display: inline-block; color: var(--accent-300); font-weight: 700; font-size: .8rem; }
@media (max-width: 480px) { .footer-logo-frame { width: 92px; height: 92px; } }
