/* رمز الريال السعودي الرسمي (U+20C1): خط مستقل الاسم يوضع أولا في حزم الخطوط، فلا يتداخل مع خطوط الموقع */
@font-face{font-family:'SARSym';src:url(data:font/woff2;base64,d09GMgABAAAAAAGoAAoAAAAAAvgAAAFfAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAANAqBFIEYATYCJAMICwYABCAFaQcsG0ICAJ4DbltMq9NU5PgrVPBF0B1+BuOh/l7/7N6bWsY7JU9DFTxmmdBni8kX6H/sr95fqIGNrmCW3DeUTQoFOoVyc+lCVT5HtVud3A7f7pe2BONIQ2yBcWlN/b3u+PtBL98lDOhOUdaWBxhELRANsC2xKEo4vWFLwynKJbdyu5KrOFQ5S3ArYPVmhZ7+40BmPADgCtIVLGOYX61Q22D1Pp+xcwsEQIKKRIMLoAKyK8whh1XuYpsOafIjVPT9GSWHVQhOWR9CyDwQgtzXgOPO0hssTN3/GqwPqsitxGh5UFoVdlKQPEt77E7isDyrOl9ag+WvsJU2qI5yQcpN6AEEgtfHU2pi+BEa/QafLz/JXENZoBsoEgRTsjdoHIshSI7vjieB1EiQwqrqJEDoI0Dq6CuiEiEszeohje0fVu8zyuEy1ReCj5UXx8NEQ1ZLnVdByUBdRhdqFbpIbLcyydQBAA==) format('woff2');unicode-range:U+20C1;font-weight:100 900;font-display:block;}
/* ==========================================================================
   Ghouri Services CMS — سكربت غوري للخدمات
   ملف تنسيق الموقع العام (الواجهة الأمامية)
   ========================================================================== */

:root{
  --brand: #7C3AED;
  --brand-dark: #5B21B6;
  --brand-light: #F1E9FE;
  --brand-2: #22D3EE;
  --brand-rgb: 124,58,237;
  --ink: #0F1720;
  --ink-soft: #3C4552;
  --muted: #6B7686;
  --bg: #FFFFFF;
  --bg-soft: #F7F5FD;
  --line: #E9E4F5;
  --footer-bg: #1E1147;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --maxw: 1100px;
  --shadow: 0 10px 30px rgba(15, 23, 32, 0.07);
  --shadow-lg: 0 24px 60px rgba(15, 23, 32, 0.12);
  --font-body: 'SARSym', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --font-head: 'SARSym', 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --fs-scale: 1;
}

[data-theme="dark"]{
  --brand: #A78BFA;
  --brand-dark: #C4B5FD;
  --brand-light: rgba(167,139,250,.16);
  --brand-2: #67E8F9;
  --ink: #F3F6FA;
  --ink-soft: #C9D2DE;
  --muted: #8B96A6;
  --bg: #150E2E;
  --bg-soft: #1D1440;
  --line: #2E2358;
  --footer-bg: #0B0720;
  --shadow: 0 10px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; background: var(--bg); }
input, textarea, select, button{ font-family: inherit; }
::placeholder{ font-family: inherit; opacity: .65; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: calc(18px * var(--fs-scale));
  direction: rtl;
  text-align: right;
  transition: background-color .25s ease, color .25s ease;
}
img{ max-width: 100%; display: block; }
a{ color: var(--brand-dark); text-decoration: none; transition: color .15s ease; }
a:hover{ text-decoration: none; color: var(--brand); }
h1,h2,h3,h4{ font-family: var(--font-head); color: var(--ink); line-height: 1.4; margin: 0 0 16px; font-weight: 800; }
h1{ font-size: calc(clamp(32px, 6vw, 46px) * var(--fs-scale)); }
h2{ font-size: calc(clamp(26px, 4.5vw, 32px) * var(--fs-scale)); }
h3{ font-size: calc(clamp(20px, 3.5vw, 23px) * var(--fs-scale)); }
p{ margin: 0 0 18px; color: var(--ink-soft); }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section{ padding: 60px 0; }
.section-soft{ background: var(--bg-soft); }
.section-title{ text-align: center; margin-bottom: 34px; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; gap:8px; font-family:var(--font-head); font-weight:700; font-size:calc(16px * var(--fs-scale)); padding:13px 26px; border-radius:999px; border:2px solid transparent; cursor:pointer; transition:transform .2s ease, box-shadow .2s ease; }
.btn:hover{ text-decoration:none; transform:translateY(-3px); }
.btn-primary{ background:var(--brand); color:var(--on-brand); box-shadow:0 8px 22px rgba(var(--brand-rgb),.3); }
.btn-primary:hover{ background:var(--brand-dark); color:var(--on-brand); }
.btn-outline{ background:transparent; border-color:var(--brand); color:var(--brand-dark); }
.btn-outline:hover{ background:var(--brand-light); }
.btn-block{ width:100%; justify-content:center; }

/* Header */
.site-header{ position:sticky; top:0; z-index:40; background:rgba(255,255,255,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
[data-theme="dark"] .site-header{ background:rgba(14,22,32,.86); }
.topbar{ background:var(--brand); color:var(--on-brand); text-align:center; padding:8px 16px; font-size:14px; }
.nav{ max-width:var(--maxw); margin:0 auto; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:800; font-size:calc(19px * var(--fs-scale)); color:var(--ink); }
.logo-mark{ width:38px; height:38px; border-radius:11px; background:linear-gradient(135deg,var(--brand),var(--brand-2)); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.logo-mark svg{ width:19px; height:19px; }
.logo-mark.lg{ width:42px; height:42px; }
.logo-img{ width:38px; height:38px; border-radius:11px; object-fit:cover; }
.nav-right{ display:flex; align-items:center; gap:20px; }
.nav-links{ display:flex; align-items:center; gap:24px; list-style:none; margin:0; padding:0; }
.nav-links a{ color:var(--ink-soft); font-weight:600; font-size:calc(15px * var(--fs-scale)); }
.nav-links a.active,.nav-links a:hover{ color:var(--brand-dark); }
.nav-icon-row{ display:none; }
.nav-mobile-tools{ display:none; }
.nav-tools-desktop{ display:flex; align-items:center; gap:8px; }
.fs-btn,.theme-toggle{ display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:10px; border:1px solid var(--line); background:var(--bg); color:var(--ink-soft); cursor:pointer; font-family:var(--font-head); font-size:13px; }
.fs-btn:hover,.theme-toggle:hover{ background:var(--brand-light); color:var(--brand-dark); }
.nav-auth-form{ display:inline-flex; margin:0; }
.theme-toggle .icon-moon{ display:block; }
.theme-toggle .icon-sun{ display:none; }
[data-theme="dark"] .theme-toggle .icon-moon{ display:none; }
[data-theme="dark"] .theme-toggle .icon-sun{ display:block; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span{ display:block; width:22px; height:2px; background:var(--ink); margin:5px 0; border-radius:2px; }

/* Hero */
.hero{ position:relative; padding:60px 0; background:linear-gradient(180deg,var(--brand-light) 0%, var(--bg) 82%); overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:360px 1fr; gap:40px; align-items:center; }
.hero-name-line h1{ margin-bottom:8px; }
.hero-text{ font-size:calc(18px * var(--fs-scale)); max-width:600px; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; margin-top:22px; }
.hero-mockup{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); padding:22px; max-width:340px; width:100%; justify-self:center; }
.hero-media{ justify-self:center; width:100%; max-width:420px; }
.hero-photo{ width:100%; height:auto; max-height:380px; object-fit:cover; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); }
.hero-mockup-bar{ display:flex; gap:6px; margin-bottom:18px; }
.hero-mockup-bar span{ width:9px; height:9px; border-radius:50%; background:var(--line); }
.hero-mockup-line{ height:11px; border-radius:6px; background:var(--bg-soft); margin-bottom:11px; }
.hero-mockup-line.w-90{ width:90%; } .hero-mockup-line.w-70{ width:70%; } .hero-mockup-line.w-50{ width:50%; }
.hero-mockup-cta{ height:30px; width:110px; border-radius:999px; background:linear-gradient(135deg,var(--brand),var(--brand-2)); margin:16px 0; }
.hero-mockup-stats{ display:flex; gap:9px; align-items:flex-end; height:52px; }
.hero-mockup-stats span{ flex:1; border-radius:6px 6px 0 0; }
.hero-mockup-stats span:nth-child(1){ height:40%; background:var(--brand-light); }
.hero-mockup-stats span:nth-child(2){ height:75%; background:var(--brand); }
.hero-mockup-stats span:nth-child(3){ height:55%; background:var(--brand-2); }
.hero-mockup-stats span:nth-child(4){ height:90%; background:var(--brand); }

/* Cards / Articles */
.article-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(270px,1fr)); gap:24px; }
.article-card{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; transition:transform .2s ease, box-shadow .2s ease; }
.article-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.article-card.featured{ border-color:var(--brand); box-shadow:0 0 0 1px var(--brand), var(--shadow); }
.featured-badge{ font-family:var(--font-head); font-size:12px; font-weight:700; color:var(--on-brand); background:var(--brand); display:inline-flex; align-items:center; gap:4px; padding:4px 12px; border-radius:999px; margin-bottom:10px; width:fit-content; }
.article-thumb{ width:100%; aspect-ratio:16/9; object-fit:cover; transition:transform .4s ease; }
.article-card:hover .article-thumb{ transform:scale(1.05); }
.article-card-body{ padding:24px; display:flex; flex-direction:column; flex:1; }
.article-tag{ font-family:var(--font-head); font-size:12px; font-weight:700; color:var(--brand-dark); background:var(--brand-light); display:inline-block; padding:4px 12px; border-radius:999px; margin-bottom:10px; width:fit-content; }
.article-card h3{ margin-bottom:8px; font-size:calc(19px * var(--fs-scale)); }
.article-card p{ font-size:calc(15px * var(--fs-scale)); flex:1; }
.article-meta{ font-size:13px; color:var(--muted); margin:0 0 10px; }
.article-link{ font-family:var(--font-head); font-weight:700; color:var(--brand-dark); display:inline-flex; align-items:center; gap:6px; }

/* FAQ */
.faq-list{ max-width:760px; margin:0 auto; }
.faq-item{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius-sm); padding:4px 20px; margin-bottom:12px; }
.faq-item summary{ cursor:pointer; font-family:var(--font-head); font-weight:700; padding:15px 0; list-style:none; display:flex; justify-content:space-between; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-size:20px; color:var(--brand-dark); }
.faq-item[open] summary::after{ content:"−"; }
.faq-item p{ padding-bottom:14px; margin:0; }

/* Footer */
.site-footer{ background:var(--footer-bg); color:#C7CEDA; padding:44px 0 24px; }
.footer-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:28px 32px; padding-bottom:24px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-grid.footer-cols-4{ grid-template-columns:repeat(4, 1fr); }
.footer-grid.footer-cols-3{ grid-template-columns:repeat(3, 1fr); }
.footer-grid.footer-cols-5{ grid-template-columns:repeat(5, 1fr); }
.footer-grid.footer-cols-6{ grid-template-columns:repeat(6, 1fr); }
@media (max-width:1100px){ .footer-grid.footer-cols-5, .footer-grid.footer-cols-6{ grid-template-columns:repeat(3, 1fr); } }
@media (max-width:900px){ .footer-grid.footer-cols-3, .footer-grid.footer-cols-4, .footer-grid.footer-cols-5, .footer-grid.footer-cols-6{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:560px){ .footer-grid.footer-cols-3, .footer-grid.footer-cols-4, .footer-grid.footer-cols-5, .footer-grid.footer-cols-6{ grid-template-columns:1fr; } }
.footer-col-brand{ display:flex; flex-direction:column; }
.footer-brand{ display:flex; align-items:center; gap:12px; font-family:var(--font-head); font-weight:800; color:#fff; }
.footer-col-title{ color:#fff; font-size:15px; font-weight:700; margin:0 0 14px; position:relative; padding-bottom:12px; }
.footer-col-title::after{ content:''; position:absolute; bottom:0; right:0; width:34px; height:3px; background:var(--brand); border-radius:2px; }
.footer-brand-desc{ color:#98A2B3; font-size:13.5px; line-height:1.9; margin:14px 0 0; max-width:280px; }
.footer-links{ display:flex; flex-direction:column; gap:10px; list-style:none; margin:0; padding:0; }
.footer-links a{ color:#C7CEDA; font-weight:600; font-size:14px; }
.footer-links a:hover{ color:#fff; }
.footer-contact{ display:flex; gap:20px; flex-wrap:wrap; padding-top:18px; font-size:14px; }
.footer-contact a{ color:#C7CEDA; }
.footer-contact a:hover{ color:#fff; }
.footer-social{ display:flex; gap:14px; padding-top:14px; font-size:18px; }
.footer-social a{ color:#C7CEDA; }
.footer-social a:hover{ color:#fff; }
.footer-social-inline{ padding-top:16px; font-size:16px; }
.footer-bottom{ padding-top:18px; display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:13px; color:#8E97A6; }
.footer-bottom a{ color:#8E97A6; }
.footer-bottom a:hover{ color:#fff; }
.footer-bottom-right{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.footer-fontsize{ display:inline-flex; align-items:center; gap:6px; }
.footer-fontsize button{ width:26px; height:22px; border-radius:6px; border:1px solid rgba(255,255,255,.25); background:transparent; color:#C7CEDA; font-size:11px; font-weight:700; cursor:pointer; font-family:var(--font-head); line-height:1; }
.footer-fontsize button:hover{ background:rgba(255,255,255,.14); color:#fff; }

/* زر العودة إلى أعلى الصفحة */
.scroll-top-btn{ --stb-base:24px; position:fixed; bottom:calc(var(--stb-base) + var(--stb-lift, 0px)); inset-inline-end:24px; width:46px; height:46px; border-radius:50%; border:none; background:var(--brand); color:var(--on-brand); font-size:16px; cursor:pointer; box-shadow:0 8px 20px rgba(0,0,0,.22); display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transform:translateY(10px); transition:opacity .2s ease, transform .2s ease, visibility .2s, bottom .18s ease-out; z-index:40; }
.scroll-top-btn.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }
.scroll-top-btn:hover{ background:var(--brand-dark); }

/* Article single / generic page */
.article-hero{ padding:40px 0 28px; background:var(--bg-soft); border-bottom:1px solid var(--line); }
.breadcrumb{ font-size:13px; color:var(--muted); margin-bottom:16px; }
.breadcrumb a{ color:var(--muted); }
.article-hero h1{ max-width:780px; }
.article-hero-meta{ display:flex; gap:16px; font-size:14px; color:var(--muted); }
.article-body{ max-width:760px; margin:0 auto; padding:44px 20px; }
.article-body h2{ margin-top:36px; } .article-body h3{ margin-top:26px; }
.article-body ul,.article-body ol{ color:var(--ink-soft); padding-inline-start:24px; margin:0 0 18px; }
.article-body li{ margin-bottom:8px; }
.article-body blockquote{ margin:26px 0; padding:16px 20px; background:var(--brand-light); border-inline-start:4px solid var(--brand); border-radius:var(--radius-sm); color:var(--ink); font-weight:600; }
.article-figure{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); margin:26px 0; }
.post-body h2{ margin-top:32px; } .post-body p{ font-size:calc(18px * var(--fs-scale)); }

.cta-box{ background:var(--brand); color:var(--on-brand); border-radius:var(--radius); padding:32px; text-align:center; margin:36px 0; }
.cta-box h3{ color:var(--on-brand); margin-bottom:8px; }
.cta-box p{ color:rgba(255,255,255,.9); }
.cta-box .btn-primary{ background:#fff; color:var(--brand-dark); box-shadow:none; }

/* Contact form */
.contact-methods{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-bottom:40px; }
.contact-method{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); padding:22px; text-align:center; box-shadow:var(--shadow); }
.card-icon{ width:56px; height:56px; border-radius:14px; background:var(--brand-light); display:flex; align-items:center; justify-content:center; color:var(--brand-dark); font-size:22px; }
.contact-form{ max-width:640px; margin:0 auto; background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); padding:30px; box-shadow:var(--shadow); }
.form-row{ margin-bottom:18px; }
.form-row label{ display:block; font-family:var(--font-head); font-weight:700; margin-bottom:7px; color:var(--ink); font-size:14px; }
.form-row input,.form-row textarea,.form-row select{ width:100%; padding:11px 15px; border-radius:var(--radius-sm); border:1px solid var(--line); background:var(--bg); color:var(--ink); font-family:var(--font-body); font-size:15px; }
.form-row textarea{ min-height:130px; resize:vertical; }
.form-row input:focus,.form-row textarea:focus,.form-row select:focus{ outline:none; border-color:var(--brand); }
.hp-field{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.cf-turnstile-row{ display:flex; justify-content:center; }
.form-status{ font-size:14px; text-align:center; margin:0 0 14px; }
.form-status-success{ color:#16A34A; } .form-status-error{ color:#DC2626; }

/* تحريكات خفيفة عند التمرير */
.reveal-init{ opacity:0; transform:translateY(18px); transition:opacity .5s ease, transform .5s ease; }
.reveal-init.reveal-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal-init{ opacity:1; transform:none; transition:none; }
  .article-thumb{ transition:none; }
  .article-card:hover .article-thumb{ transform:none; }
  .service-card, .whyus-item, .service-card .service-icon, .whyus-item .service-icon{ transition:none; }
  .service-card:hover, .whyus-item:hover, .service-card.reveal-visible:hover, .whyus-item.reveal-visible:hover, .service-card:hover .service-icon, .whyus-item:hover .service-icon{ transform:none; }
}

/* Responsive */
@media (max-width:860px){
  .nav-links{ position:fixed; right:0; top:64px; height:calc(100vh - 64px); background:var(--bg); flex-direction:column; width:78%; max-width:300px; padding:26px; box-shadow:-8px 0 30px rgba(0,0,0,.1); transform:translateX(105%); transition:transform .25s ease; align-items:flex-start; overflow-y:auto; z-index:35; }
  .nav-links.is-open{ transform:translateX(0); }
  .nav-toggle{ display:block; }
  .nav-tools-desktop{ display:none; }
  .nav-mobile-tools{ display:flex; gap:10px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); width:100%; }
  .nav-icon-row{ display:grid; grid-template-columns:repeat(3, 44px); gap:12px; margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
  .nav-icon-row a{ width:44px; height:44px; border-radius:12px; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; color:var(--ink-soft); font-size:18px; }
  .nav-icon-row a:hover{ background:var(--brand-light); color:var(--brand-dark); }
  .hero-grid{ grid-template-columns:1fr; text-align:center; }
  .hero-grid > *:first-child{ order:2; } .hero-grid > *:last-child{ order:1; }
  .hero-mockup{ max-width:300px; margin:0 auto; }
  .hero-cta{ justify-content:center; }
}
@media (max-width:520px){ body{ font-size:calc(17px * var(--fs-scale)); } .section{ padding:44px 0; } }

/* وقت القراءة داخل شريط بيانات المقالة، أيقونة الساعة */
.article-hero-meta i{ margin-left:4px; }

/* فهرس المحتوى (جدول محتويات المقالة) */
.article-toc{ background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius-sm); padding:18px 20px; margin:0 0 28px; }
.article-toc-title{ font-weight:700; margin:0 0 10px; display:flex; align-items:center; gap:8px; }
.article-toc ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.article-toc .toc-level-3{ padding-right:18px; font-size:14px; }
.article-toc a{ color:var(--ink-soft); }
.article-toc a:hover{ color:var(--brand); }

/* أزرار المشاركة */
.article-share{ display:flex; align-items:center; gap:10px; margin:36px 0; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); flex-wrap:wrap; }
.article-share-label{ font-weight:700; color:var(--ink-soft); font-size:14px; margin-left:4px; }
.share-btn{ width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; border:none; cursor:pointer; transition:transform .15s ease, opacity .15s ease; }
.share-btn:hover{ transform:translateY(-2px); opacity:.9; }
.share-whatsapp{ background:#25D366; }
.share-x{ background:#000; }
.share-fb{ background:#1877F2; }
.share-copy{ background:var(--ink-soft); }

/* بطاقة الكاتب */
.author-card{ display:flex; gap:18px; align-items:flex-start; background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius); padding:22px; margin-top:10px; }
.author-card-photo{ width:64px; height:64px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.author-card-photo-placeholder{ display:flex; align-items:center; justify-content:center; background:var(--brand-light); color:var(--brand-dark); font-size:24px; }
.author-card-name{ font-weight:800; margin:0 0 6px; font-size:16px; }
.author-card-bio{ color:var(--ink-soft); font-size:14px; line-height:1.9; margin:0 0 10px; }
.author-card-social{ display:flex; gap:10px; }
.author-card-social a{ color:var(--ink-soft); font-size:16px; }
.author-card-social a:hover{ color:var(--brand); }

/* مقالات ذات صلة */
.related-articles{ margin:48px 0; }
.related-articles-title{ font-size:20px; font-weight:800; margin:0 0 20px; }

/* النشرة البريدية */
/* مربع الاشتراك المختصر بالنشرة البريدية داخل الفوتر */
.footer-newsletter{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding-top:16px; font-family:var(--font-body); }
.footer-newsletter-label{ display:flex; align-items:center; gap:8px; color:#C7CEDA; font-size:13.5px; font-weight:600; white-space:nowrap; font-family:var(--font-body); }
.footer-newsletter-input-row{ display:flex; gap:0; border-radius:999px; overflow:hidden; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.06); }
.footer-newsletter-input-row input{ border:none; background:transparent; color:#fff; padding:8px 14px; font:inherit; font-family:var(--font-body); font-size:13.5px; min-width:170px; }
.footer-newsletter-input-row input::placeholder{ color:#8E97A6; font-family:var(--font-body); }
.footer-newsletter-input-row input:focus{ outline:none; }
.footer-newsletter-input-row button{ border:none; background:var(--brand); color:var(--on-brand); width:34px; cursor:pointer; font-size:13px; font-family:var(--font-body); }
.footer-newsletter-input-row button:hover{ background:var(--brand-dark); }
.footer-newsletter-flash{ font-size:13px; font-weight:700; color:#C7CEDA; flex-basis:100%; padding-top:2px; }
.footer-newsletter-flash.is-success{ color:#4ADE80; }
.footer-newsletter-flash.is-error{ color:#F87171; }
.footer-col-brand .footer-newsletter{ padding-top:14px; flex-direction:column; align-items:flex-start; }
.footer-col-brand .footer-newsletter-input-row{ width:100%; }
.footer-col-brand .footer-newsletter-input-row input{ flex:1; min-width:0; }

/* التعليقات */
.comments-section{ margin:48px 0; }
.comments-title{ font-size:20px; font-weight:800; margin:0 0 20px; display:flex; align-items:center; gap:8px; }
.comments-list{ display:flex; flex-direction:column; gap:16px; margin-bottom:32px; }
.comments-empty{ color:var(--muted); }
.comment-item{ background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius-sm); padding:16px 18px; }
.comment-item-head{ display:flex; justify-content:space-between; gap:10px; margin-bottom:8px; }
.comment-item-name{ font-weight:700; }
.comment-item-date{ color:var(--muted); font-size:13px; }
.comment-item-body{ margin:0; line-height:1.8; }
.comment-admin-reply{ margin-top:14px; padding-top:14px; border-top:1px dashed var(--line); margin-right:20px; display:flex; gap:12px; align-items:flex-start; }
.comment-admin-reply .comment-item-name{ color:var(--brand-dark); font-size:14px; }
.comment-admin-reply-body{ flex:1; min-width:0; }
.comment-reply-avatar{ width:36px; height:36px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.comment-reply-avatar-placeholder{ display:flex; align-items:center; justify-content:center; background:var(--brand-light); color:var(--brand-dark); font-size:14px; }
.comment-form-wrap h4{ margin:0 0 14px; }
.comment-form textarea{ resize:vertical; }

/* صفحة البحث */
.site-search-form{ display:flex; gap:10px; max-width:480px; margin:18px auto 0; }
.site-search-form input{ flex:1; padding:12px 16px; border-radius:999px; border:1px solid var(--line); font-family:inherit; }
.site-search-form button{ width:44px; height:44px; border-radius:50%; border:none; background:var(--brand); color:var(--on-brand); cursor:pointer; }
.search-results-count{ text-align:center; color:var(--muted); margin-top:14px; }
.search-group{ margin-bottom:40px; }
.search-group-title{ font-size:18px; font-weight:800; margin:0 0 18px; }
.search-page-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.search-page-list a{ font-weight:700; font-size:16px; }
.search-page-list p{ margin:4px 0 0; color:var(--muted); font-size:14px; }

/* آراء العملاء (شهادات) */
.reviews-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:24px; }

/* شريط الإحصائيات */
.stats-bar-section{ padding-top:8px; padding-bottom:8px; }
.stats-bar{ display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:22px; background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:32px 24px; }
.stat-item{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; }
.stat-item-icon{ font-size:22px; color:var(--brand); margin-bottom:4px; }
.stat-item-value{ font-family:var(--font-head); font-weight:800; font-size:clamp(26px, 4vw, 38px); color:var(--ink); line-height:1.1; }
.stat-item-label{ color:var(--ink-soft); font-size:14px; }
@media (max-width:640px){ .stats-bar{ grid-template-columns:repeat(2, 1fr); } }
.reviews-carousel{ display:flex; align-items:stretch; gap:12px; }
.reviews-track{ display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; padding:4px 2px 12px; flex:1; scrollbar-width:none; }
.reviews-track::-webkit-scrollbar{ display:none; }
.review-slide{ flex:0 0 320px; scroll-snap-align:start; }
.review-slide .review-card{ height:100%; }
.reviews-nav{ flex:0 0 auto; align-self:center; width:42px; height:42px; border-radius:50%; border:1px solid var(--line); background:var(--bg); color:var(--ink-soft); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:15px; transition:background .15s ease, color .15s ease; }
.reviews-nav:hover{ background:var(--brand-light); color:var(--brand-dark); }
@media (max-width:640px){ .review-slide{ flex-basis:82vw; } }
.review-card{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:26px; display:flex; flex-direction:column; }
.review-stars{ color:#F59E0B; font-size:15px; margin-bottom:14px; letter-spacing:2px; }
.review-stars .star-empty{ color:var(--line); }
.review-text{ color:var(--ink-soft); line-height:1.9; flex:1; margin:0 0 20px; }
.review-author{ display:flex; align-items:center; gap:12px; }
.review-avatar{ width:44px; height:44px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.review-avatar-placeholder{ display:flex; align-items:center; justify-content:center; background:var(--brand-light); color:var(--brand-dark); }
.review-name{ font-weight:700; margin:0; font-size:14.5px; }
.review-role{ color:var(--muted); font-size:13px; margin:2px 0 0; }


/* أزرار التعديل السريع للمدير المسجل دخوله على الموقع العام */
.admin-edit-fab{ position:fixed; bottom:24px; inset-inline-start:24px; z-index:41; display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:999px; background:rgba(17,24,39,.9); color:#fff; font-size:13.5px; font-weight:700; text-decoration:none; box-shadow:0 8px 20px rgba(0,0,0,.25); }
.admin-edit-fab:hover{ background:var(--brand); color:var(--on-brand); }
.footer-contact-list li{ display:flex; align-items:flex-start; gap:8px; }
.footer-contact-list li i{ width:16px; margin-top:5px; color:var(--brand); flex:0 0 auto; text-align:center; }
.footer-contact-address{ color:#C7CEDA; font-size:14px; line-height:1.9; }

/* قسما الخدمات ولماذا تختارنا */
.services-grid, .whyus-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:22px; }
.service-card, .whyus-item{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:26px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.whyus-item{ box-shadow:none; }
.service-card h3, .whyus-item h3{ margin:0; font-size:18px; }
.service-card p, .whyus-item p{ margin:0; color:var(--ink-soft); line-height:1.9; font-size:14.5px; flex:1; }
.service-card, .whyus-item{ transition:opacity .5s ease, transform .5s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover, .whyus-item:hover, .service-card.reveal-visible:hover, .whyus-item.reveal-visible:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:var(--brand); }
.service-card .service-icon, .whyus-item .service-icon{ transition:transform .35s ease, background .25s ease, color .25s ease; }
.service-card:hover .service-icon, .whyus-item:hover .service-icon{ transform:scale(1.1) rotate(-6deg); background:var(--brand); color:#fff; }
.service-icon{ width:48px; height:48px; border-radius:14px; background:var(--brand-light); color:var(--brand-dark); display:flex; align-items:center; justify-content:center; font-size:20px; }
.service-card .btn{ margin-top:8px; }

/* معاينة القوالب: إطار متصفح وإطار هاتف قابلان للتمرير */
.tpl-preview{ margin:28px 0; }
.tpl-tabs{ display:flex; justify-content:center; gap:8px; margin-bottom:18px; }
.tpl-tab{ border:1px solid var(--line); background:var(--bg); color:var(--ink-soft); padding:9px 18px; border-radius:999px; cursor:pointer; font-weight:700; font-size:14px; }
.tpl-tab.is-active{ background:var(--brand); border-color:var(--brand); color:var(--on-brand); }
.tpl-pane{ display:none; justify-content:center; }
.tpl-pane.is-active{ display:flex; }
.tpl-browser{ width:100%; max-width:860px; border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:var(--shadow-lg); background:var(--bg); }
.tpl-browser-bar{ display:flex; gap:6px; padding:11px 14px; background:var(--bg-soft); border-bottom:1px solid var(--line); direction:ltr; }
.tpl-browser-bar span{ width:10px; height:10px; border-radius:50%; background:var(--line); }
.tpl-scroll{ overflow-y:auto; overscroll-behavior:contain; }
.tpl-browser .tpl-scroll{ height:520px; }
.tpl-scroll img{ display:block; width:100%; height:auto; }
.tpl-phone{ width:300px; max-width:100%; border:10px solid #111827; border-radius:38px; overflow:hidden; background:#111827; box-shadow:var(--shadow-lg); position:relative; }
.tpl-phone-notch{ position:absolute; top:0; left:50%; transform:translateX(-50%); width:110px; height:20px; background:#111827; border-radius:0 0 14px 14px; z-index:2; }
.tpl-phone .tpl-scroll{ height:560px; background:#fff; }
.tpl-hint{ text-align:center; color:var(--muted); font-size:13px; margin:14px 0 0; }
@media (max-width:640px){ .tpl-browser .tpl-scroll{ height:380px; } }

/* صفحة السيرة الذاتية (CV) */
.cv-page{ max-width:820px; }
.cv-header{ display:flex; gap:24px; align-items:center; flex-wrap:wrap; padding-bottom:28px; margin-bottom:28px; border-bottom:1px solid var(--line); }
.cv-photo{ width:120px; height:120px; border-radius:50%; object-fit:cover; flex:0 0 auto; box-shadow:var(--shadow-lg); }
.cv-header-text h1{ margin:0 0 4px; }
.cv-job{ color:var(--brand-dark); font-weight:700; font-size:16px; margin:0 0 12px; }
.cv-contacts{ display:flex; flex-wrap:wrap; gap:14px 20px; font-size:14px; color:var(--ink-soft); margin-bottom:14px; }
.cv-contacts a{ color:var(--ink-soft); }
.cv-contacts a:hover{ color:var(--brand-dark); }
.cv-section{ margin-bottom:30px; }
.cv-section h2{ font-size:19px; margin:0 0 16px; padding-bottom:8px; border-bottom:2px solid var(--brand-light); display:inline-block; }
.cv-text{ color:var(--ink-soft); line-height:1.9; margin:0; }
.cv-entry{ margin-bottom:18px; }
.cv-entry-head{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; flex-wrap:wrap; }
.cv-entry-head h3{ margin:0; font-size:16px; }
.cv-period{ color:var(--muted); font-size:13px; white-space:nowrap; }
.cv-org{ color:var(--brand-dark); font-size:14px; font-weight:600; margin:2px 0 6px; }
.cv-skills{ display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:14px; }
.cv-skill span{ display:block; font-size:14px; font-weight:600; margin-bottom:6px; }
.cv-bar{ height:8px; border-radius:999px; background:var(--bg-soft); border:1px solid var(--line); overflow:hidden; }
.cv-bar i{ display:block; height:100%; background:var(--brand); border-radius:999px; }
.cv-list{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:8px; }
.cv-list li span{ color:var(--muted); font-size:13px; }
.cv-print-btn{ margin-top:4px; }
@media print{
  .site-header, .site-footer, .scroll-top-btn, .admin-edit-fab, .cv-print-btn, .read-progress{ display:none !important; }
  .cv-page{ max-width:100%; }
}
.service-price{ display:inline-flex; align-items:center; background:var(--brand-light); color:var(--brand-dark); font-weight:800; font-size:14px; padding:4px 14px; border-radius:999px; }

/* ==========================================================================
   بطاقات الخدمات ولماذا تختارنا: تصميم عصري (v1.44)
   ========================================================================== */
.services-section .section-title, .whyus-section .section-title{ margin-bottom:44px; }
.services-section .section-title::after, .whyus-section .section-title::after{ content:""; display:block; width:58px; height:5px; border-radius:99px; margin:14px auto 0; background:linear-gradient(90deg, var(--brand), var(--brand-2)); }
.services-grid{ grid-template-columns:repeat(auto-fit, minmax(290px, 1fr)); gap:26px; }
.whyus-grid{ grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:20px; }

.service-card{ position:relative; overflow:hidden; padding:30px 28px 24px; gap:12px; border-radius:24px; background:linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.service-card::before{ content:""; position:absolute; inset-inline:0; top:0; height:5px; background:linear-gradient(90deg, var(--brand), var(--brand-2)); transform:scaleX(0); transform-origin:right; transition:transform .45s ease; }
.service-card::after{ content:""; position:absolute; top:-70px; inset-inline-end:-70px; width:190px; height:190px; border-radius:50%; background:radial-gradient(circle, rgba(var(--brand-rgb), .16), transparent 68%); pointer-events:none; }
.service-card:hover::before{ transform:scaleX(1); }
.service-card > *{ position:relative; z-index:1; }
.service-card .service-icon{ width:62px; height:62px; border-radius:20px; font-size:25px; background:linear-gradient(135deg, var(--brand-light), rgba(var(--brand-rgb), .06)); box-shadow:inset 0 0 0 1px rgba(var(--brand-rgb), .16); margin-bottom:4px; }
.service-card:hover .service-icon{ background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; box-shadow:0 12px 24px rgba(var(--brand-rgb), .32); transform:scale(1.06) rotate(-5deg); }
.service-card h3{ font-size:20px; line-height:1.6; }
.service-card p{ font-size:15px; }

.service-foot{ width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:10px; padding-top:18px; border-top:1px dashed var(--line); }
.service-card .service-price{ background:none; padding:0; border-radius:0; display:inline-flex; align-items:center; gap:8px; font-family:var(--font-head); font-weight:800; font-size:18px; color:var(--brand-dark); }
.service-card .service-price i{ font-size:14px; opacity:.7; }
.service-link{ display:inline-flex; align-items:center; gap:8px; padding:9px 18px; border-radius:999px; background:var(--brand-light); color:var(--brand-dark); font-family:var(--font-head); font-weight:700; font-size:14.5px; white-space:nowrap; transition:background .25s ease, color .25s ease, gap .25s ease; }
.service-link i{ font-size:12px; transition:transform .25s ease; }
.service-link:hover{ background:var(--brand); color:var(--on-brand, #fff); gap:11px; }
.service-link:hover i{ transform:translateX(-3px); }
.service-foot > .service-link:only-child{ width:100%; justify-content:center; }

.whyus-item{ display:grid; grid-template-columns:auto 1fr; column-gap:18px; row-gap:4px; align-items:start; align-content:start; padding:24px; border-radius:22px; background:var(--bg); }
.whyus-item .service-icon{ grid-row:1 / span 2; width:56px; height:56px; border-radius:50%; font-size:22px; background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; box-shadow:0 10px 22px rgba(var(--brand-rgb), .28); }
.whyus-item:hover .service-icon{ background:linear-gradient(135deg, var(--brand-2), var(--brand)); }
.whyus-item h3{ align-self:end; font-size:18px; }
.whyus-item p{ grid-column:2; flex:none; }
.whyus-item h3:last-child{ grid-row:1 / span 2; align-self:center; }

@media (max-width:560px){
  .service-card{ padding:26px 20px 20px; }
  .service-card .service-price{ font-size:16px; gap:6px; }
  .service-link{ padding:8px 14px; font-size:13.5px; gap:6px; }
}
@media (prefers-reduced-motion:reduce){
  .service-card::before, .service-link, .service-link i{ transition:none; }
  .service-link:hover i{ transform:none; }
}

/* ==========================================================================
   بطاقات المدونة والمتجر والدورات والأعمال: تصميم عصري (v1.45)
   ========================================================================== */
.article-grid{ grid-template-columns:repeat(auto-fit, minmax(290px, 1fr)); gap:28px; }
.article-card{ position:relative; border-radius:24px; background:linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); transition:opacity .5s ease, transform .5s ease, box-shadow .3s ease, border-color .3s ease; }
.article-card:hover, .article-card.reveal-visible:hover{ transform:translateY(-7px); box-shadow:var(--shadow-lg); border-color:rgba(var(--brand-rgb), .45); }
.article-card.featured{ border-color:var(--brand); box-shadow:0 0 0 1px var(--brand), var(--shadow); }
.article-thumb-wrap{ position:relative; overflow:hidden; aspect-ratio:16/10; background:var(--brand-light); }
.article-thumb-wrap::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(15,23,32,0) 55%, rgba(15,23,32,.4)); pointer-events:none; }
.article-thumb-wrap .article-thumb{ display:block; width:100%; height:100%; aspect-ratio:auto; object-fit:cover; }
.thumb-badges{ position:absolute; top:14px; inset-inline:14px; z-index:2; display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.thumb-badges .article-tag, .thumb-badges .featured-badge{ margin:0; box-shadow:0 6px 16px rgba(0,0,0,.18); }
.thumb-badges .article-tag{ background:rgba(255,255,255,.94); color:var(--brand-dark); }
[data-theme="dark"] .thumb-badges .article-tag{ background:rgba(21,14,46,.88); }
.card-badges-inline{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:4px; }
.card-badges-inline .article-tag, .card-badges-inline .featured-badge{ margin-bottom:0; }
.article-card-body{ padding:22px 24px 20px; }
.article-card h3{ font-size:calc(20px * var(--fs-scale)); line-height:1.6; margin:0 0 8px; }
.article-card h3 a{ color:var(--ink); transition:color .2s ease; }
.article-card h3 a:hover{ color:var(--brand); }
.article-card p.card-excerpt{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; color:var(--ink-soft); flex:1 1 auto; margin:0; }
.card-client{ color:var(--muted); font-size:14px; margin:0 0 6px; flex:none; }
.card-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.card-chips span{ background:var(--brand-light); color:var(--brand-dark); padding:4px 12px; border-radius:999px; font-size:13px; font-weight:700; }
.card-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.card-actions .btn{ flex:1 1 auto; justify-content:center; padding:10px 18px; font-size:14.5px; }
.card-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:16px; padding-top:16px; border-top:1px dashed var(--line); }
.card-foot .article-meta{ margin:0; font-size:13px; color:var(--muted); flex:none; }
.card-price{ font-family:var(--font-head); font-weight:800; font-size:19px; color:var(--brand-dark); }
.card-price-free{ color:#16A34A; }
.card-link{ display:inline-flex; align-items:center; gap:8px; padding:9px 18px; border-radius:999px; background:var(--brand-light); color:var(--brand-dark); font-family:var(--font-head); font-weight:700; font-size:14.5px; white-space:nowrap; transition:background .25s ease, color .25s ease, gap .25s ease; }
.card-link i{ font-size:12px; transition:transform .25s ease; }
.card-link:hover{ background:var(--brand); color:var(--on-brand, #fff); gap:11px; }
.card-link:hover i{ transform:translateX(-3px); }
.card-foot > .card-link:only-child{ width:100%; justify-content:center; }
@media (prefers-reduced-motion:reduce){
  .article-card{ transition:none; }
  .article-card:hover, .article-card.reveal-visible:hover{ transform:none; }
  .card-link, .card-link i{ transition:none; }
  .card-link:hover i{ transform:none; }
}

/* ==========================================================================
   تصميم عصري شامل للموقع العام (v1.47)
   ========================================================================== */
html{ scroll-behavior:smooth; }
::selection{ background:rgba(var(--brand-rgb), .22); }

/* أزرار */
.btn{ position:relative; overflow:hidden; letter-spacing:.1px; }
.btn-primary{ background:linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow:0 10px 26px rgba(var(--brand-rgb), .32); }
.btn-primary:hover{ background:linear-gradient(135deg, var(--brand-dark), var(--brand)); box-shadow:0 14px 32px rgba(var(--brand-rgb), .4); }
.btn-outline{ border-width:1.5px; }
.btn:active{ transform:translateY(-1px) scale(.98); }
:focus-visible{ outline:3px solid rgba(var(--brand-rgb), .45); outline-offset:3px; border-radius:8px; }

/* الشريط العلوي والهيدر */
.topbar{ background:linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-2)); font-weight:600; letter-spacing:.2px; }
.site-header{ border-bottom:none; box-shadow:0 1px 0 var(--line), 0 10px 30px rgba(15,23,32,.05); }
.nav{ padding:12px 20px; }
.logo-mark, .logo-img{ box-shadow:0 8px 18px rgba(var(--brand-rgb), .3); }
.nav-links{ gap:6px; }
.nav-links > li > a:not(.fs-btn){ position:relative; display:block; padding:8px 14px; border-radius:999px; transition:background .2s ease, color .2s ease; }
.nav-links > li > a:not(.fs-btn):hover{ background:var(--brand-light); }
.nav-links > li > a.active{ background:var(--brand-light); color:var(--brand-dark); }
.fs-btn, .theme-toggle{ border-radius:12px; transition:background .2s ease, transform .2s ease; }
.fs-btn:hover, .theme-toggle:hover{ transform:translateY(-2px); }

/* الأقسام والعناوين */
.section{ padding:84px 0; }
.section-title{ text-align:center; }
.section-title::after{ content:""; display:block; width:58px; height:5px; border-radius:99px; margin:14px auto 0; background:linear-gradient(90deg, var(--brand), var(--brand-2)); }
.section-title + *{ margin-top:44px; }
.section-soft{ background:linear-gradient(180deg, var(--bg-soft), var(--bg)); }

/* الهيرو */
.hero{ padding:84px 0 110px; }
.hero-cta .btn{ padding:15px 32px; }
.hero-mockup{ border-radius:26px; padding:24px; position:relative; animation:avc-float 6s ease-in-out infinite; }
.hero-mockup::after{ content:""; position:absolute; inset:-14px; border-radius:36px; border:1px dashed rgba(var(--brand-rgb), .3); pointer-events:none; }
.hero-photo{ border-radius:28px; }
@keyframes avc-float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-10px); } }

/* نبذة الصفحة الرئيسية */
.about-section{ padding:56px 0; }
.about-card{ position:relative; overflow:hidden; max-width:860px; margin:0 auto; text-align:center; padding:44px 40px; border-radius:30px; background:linear-gradient(180deg, var(--bg), var(--bg-soft)); border:1px solid var(--line); box-shadow:var(--shadow); }
.about-card::before{ content:"\201D"; position:absolute; top:-18px; inset-inline-start:26px; font-family:Georgia, serif; font-size:170px; line-height:1; color:rgba(var(--brand-rgb), .12); pointer-events:none; }
.about-card::after{ content:""; position:absolute; bottom:-80px; inset-inline-end:-80px; width:220px; height:220px; border-radius:50%; background:radial-gradient(circle, rgba(var(--brand-rgb), .16), transparent 70%); pointer-events:none; }
.about-card > *{ position:relative; z-index:1; }
.about-card h2{ margin-bottom:12px; }
.about-card p{ font-size:calc(20px * var(--fs-scale)); line-height:2; color:var(--ink-soft); margin:0 0 6px; }
.about-card .btn{ margin-top:16px; }
@media (max-width:560px){ .about-card{ padding:34px 22px; border-radius:24px; } .about-card p{ font-size:calc(18px * var(--fs-scale)); } }

/* البطاقات: أعمدة ثابتة العرض لا تتمدد عند قلة العناصر */
.article-grid, .reviews-grid{ grid-template-columns:repeat(auto-fit, minmax(300px, 390px)); justify-content:center; }
.services-grid{ grid-template-columns:repeat(auto-fit, minmax(290px, 400px)); justify-content:center; }
.whyus-grid{ grid-template-columns:repeat(auto-fit, minmax(300px, 420px)); justify-content:center; }

/* الأسئلة الشائعة */
.faq-list{ display:flex; flex-direction:column; gap:14px; }
.faq-item{ border-radius:20px; padding:2px 24px; margin:0; background:linear-gradient(180deg, var(--bg), var(--bg-soft)); transition:border-color .25s ease, box-shadow .25s ease; }
.faq-item:hover{ border-color:rgba(var(--brand-rgb), .4); }
.faq-item[open]{ border-color:var(--brand); box-shadow:0 14px 34px rgba(var(--brand-rgb), .14); }
.faq-item summary{ align-items:center; gap:16px; padding:18px 0; font-size:calc(17px * var(--fs-scale)); }
.faq-item summary::after{ content:"+"; flex:none; width:34px; height:34px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:var(--brand-light); color:var(--brand-dark); font-size:22px; line-height:1; transition:transform .3s ease, background .25s ease, color .25s ease; }
.faq-item[open] summary::after{ content:"+"; transform:rotate(45deg); background:var(--brand); color:#fff; }
.faq-item p{ padding:0 0 20px; color:var(--ink-soft); }

/* آراء العملاء */
.review-card{ position:relative; overflow:hidden; border-radius:24px; padding:30px 28px 26px; background:linear-gradient(180deg, var(--bg), var(--bg-soft)); transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.review-card::before{ content:"\201D"; position:absolute; top:-6px; inset-inline-end:20px; font-family:Georgia, serif; font-size:130px; line-height:1; color:rgba(var(--brand-rgb), .13); pointer-events:none; }
.review-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:rgba(var(--brand-rgb), .4); }
.review-text{ position:relative; font-size:calc(16px * var(--fs-scale)); }
.review-author{ padding-top:16px; border-top:1px dashed var(--line); }
.review-avatar{ box-shadow:0 0 0 3px var(--brand-light); }
.reviews-nav{ transition:background .2s ease, transform .2s ease; }
.reviews-nav:hover{ transform:scale(1.08); }

/* ترويسة الصفحات الداخلية والمقالات */
.article-hero{ position:relative; overflow:hidden; padding:56px 0 46px; background:
  radial-gradient(700px 300px at 92% 0%, rgba(var(--brand-rgb), .16), transparent 62%),
  linear-gradient(180deg, var(--brand-light), var(--bg-soft)); border-bottom:1px solid var(--line); }
.article-hero .container{ position:relative; }
.article-hero h1{ font-size:clamp(28px, 4.2vw, 46px); line-height:1.45; }
.article-hero p:not(.breadcrumb){ color:var(--ink-soft); font-size:calc(18px * var(--fs-scale)); max-width:640px; }
.breadcrumb{ display:inline-flex; flex-wrap:wrap; gap:6px; align-items:center; background:var(--bg); border:1px solid var(--line); border-radius:999px; padding:5px 16px; font-weight:600; }
.breadcrumb a:hover{ color:var(--brand-dark); }
.article-hero-meta{ margin-top:14px; flex-wrap:wrap; }
.article-hero-meta span{ display:inline-flex; align-items:center; gap:6px; background:var(--bg); border:1px solid var(--line); border-radius:999px; padding:5px 14px; }
.article-body{ padding:52px 20px 64px; }
.post-body p{ line-height:2.05; color:var(--ink-soft); }
.article-body h2{ position:relative; padding-inline-start:16px; }
.article-body h2::before{ content:""; position:absolute; inset-inline-start:0; top:.3em; bottom:.3em; width:5px; border-radius:99px; background:linear-gradient(180deg, var(--brand), var(--brand-2)); }
.article-body blockquote{ position:relative; padding:22px 26px; border-inline-start:none; border-radius:20px; background:linear-gradient(135deg, var(--brand-light), var(--bg-soft)); box-shadow:inset 0 0 0 1px rgba(var(--brand-rgb), .16); }
.article-body img{ border-radius:18px; }
.article-figure{ border-radius:26px; box-shadow:var(--shadow-lg); }
.article-toc{ border-radius:20px; background:linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.share-btn{ box-shadow:0 8px 18px rgba(0,0,0,.14); transition:transform .2s ease, box-shadow .2s ease; }
.share-btn:hover{ transform:translateY(-4px); box-shadow:0 12px 22px rgba(0,0,0,.2); opacity:1; }
.author-card{ border-radius:24px; background:linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.author-card-photo{ box-shadow:0 0 0 4px var(--brand-light); }
.related-articles-title, .comments-title{ position:relative; padding-inline-start:16px; }
.related-articles-title::before, .comments-title::before{ content:""; position:absolute; inset-inline-start:0; top:.2em; bottom:.2em; width:5px; border-radius:99px; background:linear-gradient(180deg, var(--brand), var(--brand-2)); }
.comment-item{ border-radius:20px; background:linear-gradient(180deg, var(--bg), var(--bg-soft)); }

/* صندوق الشراء والتسجيل */
.buy-box{ margin:44px 0 10px; padding:28px 30px; border-radius:26px; display:flex; align-items:center; justify-content:space-between; gap:22px; flex-wrap:wrap; background:linear-gradient(180deg, var(--bg), var(--bg-soft)); border:1px solid rgba(var(--brand-rgb), .35); box-shadow:0 22px 50px rgba(var(--brand-rgb), .16); position:relative; overflow:hidden; }
.buy-box::before{ content:""; position:absolute; top:0; inset-inline:0; height:5px; background:linear-gradient(90deg, var(--brand), var(--brand-2)); }
.buy-price{ display:flex; flex-direction:column; gap:2px; }
.buy-price small{ color:var(--muted); font-weight:600; font-size:14px; }
.buy-price strong{ font-family:var(--font-head); font-weight:800; font-size:clamp(28px, 4vw, 38px); line-height:1.2; color:var(--brand-dark); }
.buy-price strong.is-free{ color:#16A34A; }
.buy-actions{ display:flex; flex-wrap:wrap; gap:12px; }
.buy-actions .btn{ padding:14px 28px; }
@media (max-width:560px){ .buy-box{ flex-direction:column; align-items:stretch; text-align:center; } .buy-actions{ justify-content:center; } .buy-actions .btn{ flex:1 1 auto; justify-content:center; } }
.cta-box{ position:relative; overflow:hidden; border-radius:28px; padding:40px 32px; background:linear-gradient(135deg, var(--brand-dark), var(--brand) 55%, var(--brand-2)); box-shadow:0 24px 54px rgba(var(--brand-rgb), .32); }
.cta-box::before{ content:""; position:absolute; top:-90px; inset-inline-end:-90px; width:260px; height:260px; border-radius:50%; background:rgba(255,255,255,.12); }
.cta-box > *{ position:relative; }

/* قوالب العرض (معاينة المنتجات) */
.tpl-pane img{ border-radius:inherit; }

/* نموذج التواصل وطرقه */
.contact-methods{ gap:22px; }
.contact-method{ border-radius:24px; padding:28px 22px; background:linear-gradient(180deg, var(--bg), var(--bg-soft)); transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.contact-method:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:rgba(var(--brand-rgb), .4); }
.card-icon{ width:62px; height:62px; border-radius:20px; margin:0 auto 12px; background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; box-shadow:0 12px 24px rgba(var(--brand-rgb), .28); }
.contact-form{ border-radius:28px; padding:36px; box-shadow:var(--shadow-lg); position:relative; overflow:hidden; }
.contact-form::before{ content:""; position:absolute; top:0; inset-inline:0; height:5px; background:linear-gradient(90deg, var(--brand), var(--brand-2)); }
.form-row input, .form-row textarea, .form-row select{ border-radius:14px; padding:13px 16px; background:var(--bg-soft); transition:border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus{ background:var(--bg); border-color:var(--brand); box-shadow:0 0 0 4px rgba(var(--brand-rgb), .15); }

/* البحث والنتائج */
.site-search-form input{ padding:14px 20px; background:var(--bg); box-shadow:var(--shadow); }
.site-search-form input:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 4px rgba(var(--brand-rgb), .15); }
.site-search-form button{ background:linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow:0 8px 18px rgba(var(--brand-rgb), .3); }
.search-group-title{ position:relative; padding-inline-start:14px; }
.search-group-title::before{ content:""; position:absolute; inset-inline-start:0; top:.2em; bottom:.2em; width:5px; border-radius:99px; background:linear-gradient(180deg, var(--brand), var(--brand-2)); }
.search-page-list li{ background:linear-gradient(180deg, var(--bg), var(--bg-soft)); border:1px solid var(--line); border-radius:18px; padding:16px 20px; transition:border-color .2s ease, transform .2s ease; }
.search-page-list li:hover{ border-color:rgba(var(--brand-rgb), .45); transform:translateX(-4px); }

/* الفوتر */
.site-footer{ position:relative; padding:64px 0 26px; background:radial-gradient(800px 320px at 85% 0%, rgba(var(--brand-rgb), .22), transparent 62%), var(--footer-bg); }
.site-footer::before{ content:""; position:absolute; top:0; inset-inline:0; height:4px; background:linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand)); }
.footer-col-title::after{ width:42px; height:4px; border-radius:99px; background:linear-gradient(90deg, var(--brand), var(--brand-2)); }
.footer-links a{ display:inline-block; transition:color .2s ease, transform .2s ease; }
.footer-links a:hover{ transform:translateX(-4px); }
.footer-social{ gap:10px; }
.footer-social a{ width:40px; height:40px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; background:rgba(255,255,255,.07); transition:background .25s ease, transform .25s ease; }
.footer-social a:hover{ background:var(--brand); color:#fff; transform:translateY(-4px); }
.footer-newsletter-input-row{ background:rgba(255,255,255,.08); }
.footer-newsletter-input-row button{ width:42px; background:linear-gradient(135deg, var(--brand), var(--brand-dark)); }

/* أزرار عائمة */
.scroll-top-btn{ background:linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow:0 12px 26px rgba(var(--brand-rgb), .4); }

/* الجوال */
@media (max-width:860px){
  .section{ padding:60px 0; }
  .hero{ padding:56px 0 96px; }
  .hero-mockup::after{ display:none; }
  .nav-links > li > a:not(.fs-btn){ border-radius:14px; }
}
@media (max-width:520px){ .section{ padding:48px 0; } .contact-form{ padding:26px 20px; } }
@media (prefers-reduced-motion:reduce){
  .hero-mockup{ animation:none; }
  html{ scroll-behavior:auto; }
}


/* ==========================================================================
   شريط الإحصائيات: صناديق منفصلة يقع خطها الأوسط على الحد بين قسمين (v1.48)
   نصفها فوق القسم السابق ونصفها تحت القسم التالي، مهما كان ترتيب الأقسام
   ========================================================================== */
:root{ --stats-half:68px; }
.section.stats-bar-section{ position:relative; z-index:6; height:0; padding:0; background:none; overflow:visible; }
.stats-bar-section > .container{ position:absolute; left:0; right:0; top:0; margin:0 auto; width:100%; transform:translateY(-50%); }
.stats-bar{ display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:18px; padding:0; background:none; border:0; box-shadow:none; border-radius:0; }
.stats-bar[data-n="4"], .stats-bar[data-n="8"]{ grid-template-columns:repeat(4, 1fr); }
.stats-bar[data-n="3"], .stats-bar[data-n="6"]{ grid-template-columns:repeat(3, 1fr); }
.stats-bar[data-n="2"]{ grid-template-columns:repeat(2, 1fr); max-width:640px; margin:0 auto; }
.stats-bar[data-n="1"]{ grid-template-columns:1fr; max-width:320px; margin:0 auto; }
.stat-item{ position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; padding:24px 14px 20px; border-radius:22px; background:linear-gradient(180deg, var(--bg), var(--bg-soft)); border:1px solid var(--line); box-shadow:var(--shadow-lg); transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.stat-item::before{ content:""; position:absolute; top:0; inset-inline:0; height:4px; background:linear-gradient(90deg, var(--brand), var(--brand-2)); }
.stat-item::after{ content:""; position:absolute; bottom:-60px; inset-inline-end:-60px; width:150px; height:150px; border-radius:50%; background:radial-gradient(circle, rgba(var(--brand-rgb), .14), transparent 70%); pointer-events:none; }
.stat-item > *{ position:relative; z-index:1; }
.stat-item.reveal-visible:hover, .stat-item:hover{ transform:translateY(-6px); border-color:rgba(var(--brand-rgb), .45); }
.stat-item-icon{ width:44px; height:44px; border-radius:14px; display:inline-flex; align-items:center; justify-content:center; font-size:18px; margin:0 0 6px; color:var(--brand-dark); background:var(--brand-light); box-shadow:inset 0 0 0 1px rgba(var(--brand-rgb), .16); }
.stat-item-value{ font-family:var(--font-head); font-weight:800; font-size:clamp(30px, 4vw, 42px); line-height:1.15; background:linear-gradient(135deg, var(--brand-dark), var(--brand-2)); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }
.stat-item-label{ color:var(--ink-soft); font-weight:600; font-size:14.5px; line-height:1.6; }
/* مساحة تحتضن نصف الصناديق في القسمين المجاورين */
section:has(+ .stats-bar-section){ padding-bottom:calc(var(--stats-half) + 56px); }
.stats-bar-section + *{ padding-top:calc(var(--stats-half) + 56px); }
@media (max-width:860px){
  .stats-bar, .stats-bar[data-n="3"], .stats-bar[data-n="4"], .stats-bar[data-n="6"], .stats-bar[data-n="8"]{ grid-template-columns:repeat(2, 1fr); gap:14px; }
  .stats-bar[data-n="1"]{ grid-template-columns:1fr; }
  .stat-item{ padding:20px 10px 16px; border-radius:18px; }
  :root{ --stats-half:120px; }
}
@media (prefers-reduced-motion:reduce){ .stat-item, .stat-item:hover{ transition:none; transform:none; } }

/* شعار بلا إطار (خيار من الإعدادات) */
.logo-mark.logo-plain{ background:none; box-shadow:none; }
.logo-mark.logo-plain svg{ stroke:var(--brand); width:26px; height:26px; }
.logo-img.logo-plain{ width:auto; max-width:170px; height:40px; border-radius:0; box-shadow:none; object-fit:contain; background:none; }
.logo-img.logo-plain.lg{ height:46px; }

/* عدد البطاقات حسب الجهاز في الصفحة الرئيسية */
@media (max-width:860px){ .hide-m{ display:none !important; } }
@media (min-width:861px){ .hide-d{ display:none !important; } }

/* عدد البطاقات في الصف الواحد (من إعدادات الصفحة الرئيسية) */
@media (min-width:861px){
  [data-cols="1"]{ grid-template-columns:minmax(0, 1fr) !important; max-width:640px; margin-inline:auto; }
  [data-cols="2"]{ grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
  [data-cols="3"]{ grid-template-columns:repeat(3, minmax(0, 1fr)) !important; }
  [data-cols="4"]{ grid-template-columns:repeat(4, minmax(0, 1fr)) !important; }
  [data-cols="5"]{ grid-template-columns:repeat(5, minmax(0, 1fr)) !important; }
  [data-cols="6"]{ grid-template-columns:repeat(6, minmax(0, 1fr)) !important; }
  .stats-bar[data-cols]{ max-width:none; }
}
@media (max-width:860px){
  [data-cols-m="1"]{ grid-template-columns:minmax(0, 1fr) !important; }
  [data-cols-m="2"]{ grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
  [data-cols-m="3"]{ grid-template-columns:repeat(3, minmax(0, 1fr)) !important; }
}
[data-cols] .service-foot, [data-cols-m] .service-foot{ flex-wrap:wrap; }
@media (max-width:860px){
  [data-cols-m="2"] .article-card-body, [data-cols-m="3"] .article-card-body{ padding:16px 14px; }
  [data-cols-m="2"] .article-card h3, [data-cols-m="3"] .article-card h3{ font-size:16px; }
  [data-cols-m="2"] .service-card, [data-cols-m="3"] .service-card{ padding:20px 16px 16px; }
  [data-cols-m="3"] .stat-item-value{ font-size:26px; }
}

/* الأكواد داخل المقالات: خط ثابت العرض للحروف اللاتينية، وخط الموقع للحروف العربية بدل خط الجهاز */
code, kbd, samp, pre{ font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace, var(--font-body); }

/* العنوان والصورة قابلان للنقر داخل البطاقات */
.article-thumb-link{ display:block; width:100%; height:100%; }
.article-card h3 a, .service-card h3 a{ color:inherit; transition:color .2s ease; text-decoration:none; }
.article-card h3 a:hover, .service-card h3 a:hover{ color:var(--brand); }
.article-card h3 a:focus-visible, .service-card h3 a:focus-visible{ text-decoration:underline; text-underline-offset:6px; }

/* روابط داخل المقالات: تتميز بلون الموقع دون تسطير، ويظهر التسطير فقط إن اختاره كاتب المحتوى */
.post-body a:not(.btn), .page-body a:not(.btn){ color:var(--brand); font-weight:700; text-decoration:none; }
.post-body a:not(.btn):hover, .page-body a:not(.btn):hover{ color:var(--brand-dark); }
.post-body u, .page-body u{ text-decoration:underline; text-underline-offset:4px; }

/* ==== المعاينات المباشرة: مؤشر مباشر + قائمة في البطاقة + قسم في صفحة المنتج (v1.56) ==== */
.live-dot{ position:relative; display:inline-block; flex:none; width:9px; height:9px; border-radius:50%; background:#16a34a; }
.live-dot::after{ content:""; position:absolute; inset:-4px; border-radius:50%; border:2px solid rgba(22,163,74,.5); animation:avc-live 1.8s ease-out infinite; }
@keyframes avc-live{ 0%{ transform:scale(.6); opacity:1; } 100%{ transform:scale(1.7); opacity:0; } }
.card-demos, .card-demo-single{ margin-top:12px; }
.card-demo-single, .card-demos summary{ display:flex; align-items:center; gap:9px; padding:9px 14px; border:1px dashed rgba(var(--brand-rgb), .55); border-radius:12px; background:var(--brand-light); color:var(--brand-dark); font-weight:700; font-size:14px; cursor:pointer; list-style:none; transition:background .2s ease, border-color .2s ease; }
.card-demos summary::-webkit-details-marker{ display:none; }
.card-demo-single:hover, .card-demos summary:hover{ border-style:solid; border-color:var(--brand); }
.card-demos summary b{ background:var(--brand); color:#fff; border-radius:99px; min-width:22px; height:22px; padding:0 7px; display:inline-flex; align-items:center; justify-content:center; font-size:12px; }
.demo-chev{ margin-inline-start:auto; font-size:12px; transition:transform .25s ease; }
.card-demos[open] .demo-chev{ transform:rotate(180deg); }
.demo-ext{ margin-inline-start:auto; font-size:12px; opacity:.7; }
.card-demos ul{ list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.card-demos li a{ display:flex; align-items:center; gap:10px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--ink); font-size:14px; transition:border-color .2s ease, background .2s ease; }
.card-demos li a:hover{ border-color:var(--brand); background:var(--brand-light); }
.card-demos .demo-name{ font-weight:700; }
.card-demos li small{ color:var(--muted); font-size:12px; margin-inline-start:auto; unicode-bidi:plaintext; }
.card-demos li .demo-ext{ margin-inline-start:0; }
.demo-section{ margin:44px 0 6px; padding:28px; border-radius:26px; border:1px solid rgba(var(--brand-rgb), .3); background:linear-gradient(180deg, var(--bg), var(--bg-soft)); box-shadow:var(--shadow); }
.demo-head{ display:flex; align-items:flex-start; gap:14px; }
.demo-head .live-dot{ margin-top:14px; }
.demo-title{ font-family:var(--font-head); font-size:calc(22px * var(--fs-scale)); font-weight:800; margin:0 0 4px; }
.demo-head p{ margin:0; color:var(--ink-soft); font-size:15px; }
.demo-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:14px; margin-top:20px; }
.demo-card{ display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:18px; border:1px solid var(--line); background:var(--bg); color:var(--ink); transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.demo-card:hover{ transform:translateY(-4px); border-color:var(--brand); box-shadow:0 14px 30px rgba(var(--brand-rgb), .16); color:var(--ink); }
.demo-ico{ flex:none; width:46px; height:46px; border-radius:14px; display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:18px; background:linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow:0 8px 18px rgba(var(--brand-rgb), .28); }
.demo-txt{ display:flex; flex-direction:column; min-width:0; }
.demo-txt b{ font-family:var(--font-head); font-size:16px; line-height:1.5; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.demo-txt small{ color:var(--muted); font-size:12.5px; unicode-bidi:plaintext; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.demo-go{ margin-inline-start:auto; flex:none; font-size:13px; font-weight:700; color:var(--brand-dark); white-space:nowrap; }
@media (max-width:560px){ .demo-section{ padding:20px 16px; border-radius:20px; } .demo-go span{ display:none; } }
@media (prefers-reduced-motion:reduce){ .live-dot::after{ animation:none; opacity:.4; } .demo-card:hover{ transform:none; } }

/* زر الصعود لأعلى على الجوال: يبقى منخفضا، ويرتفع تلقائيا فقط عندما يصل الزائر إلى شريط الحقوق السفلي */
@media (max-width:860px){
  .scroll-top-btn{ --stb-base:18px; inset-inline-end:16px; }
  .admin-edit-fab{ bottom:92px; }
}

/* شريط تقدم التصفح أعلى الصفحة */
.read-progress{ position:fixed; top:0; inset-inline:0; height:var(--rp-h, 3px); z-index:2000; pointer-events:none; opacity:0; transition:opacity .2s ease; }
.read-progress.is-active{ opacity:1; }
.read-progress-bar{ position:relative; height:100%; width:0; overflow:hidden; transition:width .08s linear; }
.read-progress-fill{ position:absolute; top:0; bottom:0; inset-inline-start:0; width:100vw; display:block; }
@media (prefers-reduced-motion:reduce){ .read-progress-bar{ transition:none; } }
@media print{ .read-progress{ display:none !important; } }

/* سطر واحد في الفوتر: أيقونات التواصل ومربع الاشتراك، كل منهما يمينا أو يسارا */
.footer-line-row{ display:flex; direction:ltr; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px 24px; padding-top:20px; }
.footer-line-left, .footer-line-right{ display:flex; align-items:center; gap:18px 24px; flex-wrap:wrap; direction:rtl; }
.footer-line-right{ margin-left:auto; }
.footer-line-row .footer-social, .footer-line-row .footer-newsletter{ padding-top:0; }

/* صورة بطاقة الخدمة */
.service-card.has-photo{ --svc-pad:26px; padding:0 var(--svc-pad) var(--svc-pad); overflow:hidden; }
.service-card .service-photo-link{ display:block; width:calc(100% + var(--svc-pad) * 2); margin:0 calc(var(--svc-pad) * -1) 6px; }
.service-card .service-photo{ display:block; width:calc(100% + var(--svc-pad) * 2); margin:0 calc(var(--svc-pad) * -1) 6px; aspect-ratio:16/9; object-fit:cover; background:var(--brand-light); }
.service-card .service-photo-link .service-photo{ width:100%; margin:0; }

/* صورة خلفية البانر الرئيسي */
.hero.hero-has-bg{ background-image:linear-gradient(rgba(12,9,30,var(--hero-overlay,.55)), rgba(12,9,30,var(--hero-overlay,.55))), var(--hero-bg); background-size:cover; background-position:center; background-repeat:no-repeat; }
.hero-has-bg h1, .hero-has-bg .hero-text{ color:#fff; text-shadow:0 2px 18px rgba(0,0,0,.35); }
.hero-has-bg .btn-outline{ color:#fff; border-color:rgba(255,255,255,.75); background:rgba(255,255,255,.08); }
.hero-has-bg .btn-outline:hover{ background:#fff; color:var(--brand); border-color:#fff; }
.hero-bg-only{ min-height:420px; display:flex; align-items:center; }
.hero-bg-only .hero-grid{ grid-template-columns:1fr; text-align:center; width:100%; }
.hero-bg-only .hero-text{ margin-inline:auto; }
.hero-bg-only .hero-cta{ justify-content:center; }

/* رابط المراجعة الأصلية في بطاقة الرأي */
.review-card.has-link{ cursor:pointer; }
.review-link{ display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-size:13px; font-weight:700; color:var(--brand); text-decoration:none; }
.review-link::after{ content:""; position:absolute; inset:0; z-index:1; }
.review-link:hover{ text-decoration:underline; }

/* بداية كل قسم في الصفحة الرئيسية تظهر بخط خفيف */
.section.sec-start{ border-top:1px solid var(--line); }

/* زر واتساب في البانر */
.btn-wa{ background:#25D366; border-color:#25D366; color:#fff; box-shadow:0 8px 22px rgba(37,211,102,.3); }
.btn-wa:hover{ background:#1ebe5b; border-color:#1ebe5b; color:#fff; }
