:root{
  /* الرأس والتذييل */
  --lx-head-bg:linear-gradient(120deg,#FDF6F7 0%,#F9EAEE 55%,#F5E0E5 100%);
  --lx-head-ink:#1C1C22;
  --lx-head-pat-op:.22;
  --lx-foot-bg:linear-gradient(135deg,#1C1C22,#3A0D18);
  --lx-foot-bar:#14141A;
  /* الهوية */
  --lx-red:#C8102E; --lx-red-2:#e11837; --lx-red-dark:#9c0c24;
  --lx-gold:#C9A961; --lx-gold-2:#b3924a;
  /* سلم الخطوط */
  --lx-fs-hero:clamp(27px,3.6vw,48px);
  --lx-fs-h2:clamp(21px,2.1vw,31px);
  --lx-fs-body:clamp(14.5px,1vw,17px);
  /* هندسة */
  --lx-r:12px; --lx-r-sm:8px; --lx-max:1320px;
  --lx-ease:cubic-bezier(.22,1,.36,1);
  --lx-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23C8102E' stroke-width='1' opacity='0.85'%3E%3Crect x='30' y='30' width='60' height='60'/%3E%3Crect x='30' y='30' width='60' height='60' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='8'/%3E%3Cpath d='M0 60h17M103 60h17M60 0v17M60 103v17'/%3E%3C/g%3E%3C/svg%3E");
  --lx-pattern-gold:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23C9A961' stroke-width='1' opacity='0.85'%3E%3Crect x='30' y='30' width='60' height='60'/%3E%3Crect x='30' y='30' width='60' height='60' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='8'/%3E%3Cpath d='M0 60h17M103 60h17M60 0v17M60 103v17'/%3E%3C/g%3E%3C/svg%3E");
  /* السمة الفاتحة */
  --lx-bg:#F6E4E7; --lx-surface:#FFFFFF; --lx-surface-2:#FCF6F7;
  --lx-ink:#1C1C22; --lx-ink-2:#3d3d49; --lx-muted:#7a7480;
  --lx-line:#EBD9DD; --lx-line-2:#dcc3c9;
  --lx-shadow:0 1px 2px rgba(28,28,34,.05),0 8px 22px rgba(28,28,34,.07);
  --lx-shadow-lg:0 22px 54px rgba(120,18,38,.16);
  --lx-pat-op:.5;
  --lx-glow:
    radial-gradient(880px 620px at 0% 6%, rgba(200,16,46,.30), transparent 56%),
    radial-gradient(880px 620px at 100% 6%, rgba(200,16,46,.30), transparent 56%),
    radial-gradient(740px 540px at 0% 58%, rgba(158,12,38,.24), transparent 58%),
    radial-gradient(740px 540px at 100% 58%, rgba(158,12,38,.24), transparent 58%),
    radial-gradient(1000px 700px at 50% 106%, rgba(201,169,97,.18), transparent 60%),
    linear-gradient(170deg,#FCF3F4 0%,#F7E6E9 38%,#F3DCE1 68%,#FAEFF1 100%);
}
:root[data-theme="dark"]{
  --lx-head-bg:linear-gradient(120deg,#131018 0%,#1C0F14 55%,#2A0D14 100%);
  --lx-head-ink:#F4F1F2;
  --lx-head-pat-op:.30;
  --lx-foot-bg:linear-gradient(135deg,#0E0B10,#25080F);
  --lx-foot-bar:#0A0810;
  --lx-bg:#0E0B10; --lx-surface:#18141B; --lx-surface-2:#1F1A22;
  --lx-ink:#F4F1F2; --lx-ink-2:rgba(244,241,242,.76); --lx-muted:rgba(244,241,242,.52);
  --lx-line:rgba(255,255,255,.10); --lx-line-2:rgba(255,255,255,.18);
  --lx-shadow:0 2px 8px rgba(0,0,0,.35);
  --lx-shadow-lg:0 24px 60px rgba(0,0,0,.6);
  --lx-pat-op:.42;
  --lx-glow:
    radial-gradient(880px 620px at 0% 6%, rgba(200,16,46,.30), transparent 56%),
    radial-gradient(880px 620px at 100% 6%, rgba(200,16,46,.30), transparent 56%),
    radial-gradient(740px 540px at 0% 58%, rgba(201,169,97,.10), transparent 58%),
    radial-gradient(740px 540px at 100% 58%, rgba(201,169,97,.10), transparent 58%),
    radial-gradient(1000px 700px at 50% 106%, rgba(200,16,46,.18), transparent 60%),
    linear-gradient(170deg,#120D12 0%,#170F14 40%,#120C11 72%,#0E0B10 100%);
  --lx-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23C9A961' stroke-width='1' opacity='0.85'%3E%3Crect x='30' y='30' width='60' height='60'/%3E%3Crect x='30' y='30' width='60' height='60' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='8'/%3E%3Cpath d='M0 60h17M103 60h17M60 0v17M60 103v17'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── الخلفية: نقش يغطي الصفحة كاملة ── */
html{background:var(--lx-bg)}
html body{background:transparent;color:var(--lx-ink)}
body::before{content:"";position:fixed;inset:0;z-index:-2;background:var(--lx-glow)}
body::after{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  opacity:var(--lx-pat-op);
  background-image:var(--lx-pattern);
  background-size:120px 120px;
}
body #page,body .site,body .site-content,body #content,body #primary,body #secondary,
body .ast-container,body .entry-content,body .ast-separate-container,body .ast-plain-container{background:transparent !important}
body .ast-separate-container .ast-article-single,
body .ast-separate-container .ast-article-post,
body .ast-separate-container .ast-archive-description,
body .ast-separate-container .comment-respond,
body .ast-separate-container .ast-woocommerce-container{
  background:var(--lx-surface) !important;border:1px solid var(--lx-line) !important;
  border-radius:var(--lx-r) !important;box-shadow:var(--lx-shadow) !important;
  position:relative;overflow:hidden}
body .ast-separate-container .ast-article-single::before,
body .ast-separate-container .ast-article-post::before{
  content:"";position:absolute;inset:0 0 auto 0;height:3px;
  background:linear-gradient(90deg,var(--lx-red),var(--lx-gold),transparent)}

/* الرأس */
body .site-header,body .ast-primary-header-bar,body .main-header-bar,body .ast-mobile-header-wrap{
  background:color-mix(in srgb,var(--lx-bg) 86%,transparent) !important;backdrop-filter:blur(14px);
  border-bottom:1px solid var(--lx-line) !important}
body .main-header-menu a,body .site-header .menu-link{color:var(--lx-ink) !important;transition:color .22s}
body .main-header-menu a:hover,body .site-header .menu-link:hover{color:var(--lx-red) !important}
body .ast-builder-menu .sub-menu{background:var(--lx-surface) !important;border:1px solid var(--lx-line) !important;border-radius:10px;overflow:hidden;box-shadow:var(--lx-shadow-lg) !important}
body .ast-builder-menu .sub-menu a{color:var(--lx-ink) !important}

/* النصوص العامة */
body h1,body h2,body h3,body h4{color:var(--lx-ink)}
body p,body li,body dd{color:var(--lx-ink-2);font-size:var(--lx-fs-body)}
body a{color:var(--lx-red)}
body a:hover{color:var(--lx-gold-2)}
body table th{background:var(--lx-surface-2) !important;color:var(--lx-ink) !important;border-color:var(--lx-line) !important}
body table td{border-color:var(--lx-line) !important;color:var(--lx-ink-2) !important}
body input,body select,body textarea{background:var(--lx-surface-2) !important;color:var(--lx-ink) !important;border-color:var(--lx-line) !important}
body .widget,body #secondary .widget,body #secondary .wp-block-group{
  background:var(--lx-surface) !important;border:1px solid var(--lx-line) !important;
  box-shadow:var(--lx-shadow) !important;border-radius:var(--lx-r) !important}
body #secondary h3,body #secondary .widget-title{color:var(--lx-ink) !important;border-bottom:2px solid var(--lx-red) !important}
body #secondary a{color:var(--lx-ink-2) !important}
body #secondary a:hover{color:var(--lx-red) !important}
body .ast-scroll-top{background:var(--lx-red) !important;color:#fff !important}

/* التذييل */
body .site-primary-footer-wrap{background:linear-gradient(135deg,#1C1C22,#3A0D18) !important;padding:26px 0 18px !important;border-top:2px solid var(--lx-gold)}
body .site-below-footer-wrap{background:#14141A !important;padding:14px 0 !important}
body .site-footer .footer-nav-wrap ul{display:flex !important;flex-wrap:nowrap !important;justify-content:center !important;gap:0 28px !important;padding:0;margin:0}
body .site-footer .footer-nav-wrap li{margin:0 !important;flex:0 0 auto}
body .site-footer .footer-nav-wrap a{color:rgba(255,255,255,.82) !important;padding:4px 0 !important;font-size:14.5px !important;white-space:nowrap}
body .site-footer .footer-nav-wrap a:hover{color:var(--lx-gold) !important}
body .site-below-footer-wrap *,body .ast-footer-copyright,body .ast-footer-copyright *{color:rgba(255,255,255,.62) !important;font-size:13.5px !important}
body .lex-foot-logo{height:34px !important;width:auto !important;margin:0 auto 8px !important}
.lx-tagline{display:block;text-align:center;color:var(--lx-gold) !important;font-size:13px !important;letter-spacing:.6px;margin-top:6px}
@media(max-width:992px){body .site-footer .footer-nav-wrap ul{flex-wrap:wrap !important;gap:6px 18px !important}}

.lx-wrap{max-width:var(--lx-max);margin-inline:auto;padding-inline:24px}
@media(max-width:782px){.lx-wrap{padding-inline:16px}}
