/* ===== متجري: نظام التصميم للموقع التعريفي ولوحات التحكم (RTL) ===== */
:root{
  --blue:#0b3fe0; --blue-600:#0a35bf; --blue-50:#eef3ff; --blue-100:#dbe6ff; --navy:#0a1a4a;
  --ink:#16213a; --muted:#5d6a85; --line:#e3e8f2; --bg:#f5f7fc; --card:#fff;
  --green:#15803d; --green-bg:#e8f7ee; --amber:#b45309; --amber-bg:#fff4e0; --red:#b91c1c; --red-bg:#fdeaea; --gray-bg:#eef0f4;
  --radius:14px; --shadow:0 1px 2px rgba(16,24,40,.05),0 4px 14px rgba(16,24,40,.05);
  --font:'Cairo','Tajawal',system-ui,-apple-system,'Segoe UI',Tahoma,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.7;font-size:15px}
a{color:var(--blue);text-decoration:none}
img,svg{max-width:100%}
h1,h2,h3,h4{line-height:1.3;margin:0 0 .5em;color:var(--navy)}
p{margin:0 0 1em}
.container{width:min(1180px,100% - 32px);margin-inline:auto}
.icon{width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.25em;flex:none}
.icon-fill{fill:currentColor;stroke:none}

/* أزرار */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.65rem 1.2rem;border-radius:12px;border:1.5px solid transparent;font:inherit;font-weight:700;cursor:pointer;transition:.15s;white-space:nowrap}
.btn-primary{background:var(--blue);color:#fff}.btn-primary:hover{background:var(--blue-600)}
.btn-outline{background:#fff;color:var(--blue);border-color:var(--blue)}.btn-outline:hover{background:var(--blue-50)}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--line)}.btn-ghost:hover{background:#fff}
.btn-danger{background:#fff;color:var(--red);border-color:#f3c0c0}.btn-danger:hover{background:var(--red-bg)}
.btn-success{background:var(--green);color:#fff}
.btn-white{background:#fff;color:var(--blue)}
.btn-sm{padding:.35rem .8rem;font-size:.85rem;border-radius:10px}
.btn-block{display:flex;width:100%}
.btn[disabled],.btn.disabled{opacity:.55;cursor:not-allowed}

/* نماذج */
.field{margin-bottom:1rem}
.field label{display:block;font-weight:700;margin-bottom:.35rem;font-size:.92rem}
.field .hint{color:var(--muted);font-size:.8rem;margin-top:.25rem}
.input,select,textarea{width:100%;padding:.65rem .85rem;border:1.5px solid var(--line);border-radius:11px;background:#fff;font:inherit;color:var(--ink)}
.input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-100)}
textarea{min-height:100px;resize:vertical}
input[type=checkbox],input[type=radio]{accent-color:var(--blue);width:1.05rem;height:1.05rem}
input[type=color]{padding:2px;height:42px;width:100%;border:1.5px solid var(--line);border-radius:11px;background:#fff}
.error{color:var(--red);font-size:.82rem;margin-top:.25rem}
.grid{display:grid;gap:1rem}
.g2{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}
@media(max-width:860px){.g3,.g4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.g2,.g3,.g4{grid-template-columns:1fr}}

/* بطاقات وجداول */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.25rem}
.card h3{font-size:1.05rem}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
table.table{width:100%;border-collapse:collapse;min-width:640px}
.table th{background:#f5f7fb;text-align:start;font-size:.82rem;color:var(--muted);padding:.7rem 1rem;white-space:nowrap}
.table td{padding:.75rem 1rem;border-top:1px solid var(--line);vertical-align:middle}
.table tr:hover td{background:#fafbfe}
.badge{display:inline-flex;align-items:center;gap:.3rem;padding:.15rem .65rem;border-radius:999px;font-size:.78rem;font-weight:700;background:var(--gray-bg);color:#4b5563}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.b-blue{background:var(--blue-50);color:var(--blue)}.b-green{background:var(--green-bg);color:var(--green)}.b-amber{background:var(--amber-bg);color:var(--amber)}.b-red{background:var(--red-bg);color:var(--red)}
.alert{padding:.8rem 1rem;border-radius:12px;margin-bottom:1rem;font-weight:600}
.alert-success{background:var(--green-bg);color:var(--green)}.alert-error{background:var(--red-bg);color:var(--red)}.alert-info{background:var(--blue-50);color:var(--blue)}.alert-warn{background:var(--amber-bg);color:var(--amber)}
.muted{color:var(--muted)}.small{font-size:.85rem}.bold{font-weight:700}.center{text-align:center}
.flex{display:flex;gap:.75rem;align-items:center}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.mt{margin-top:1rem}.mb{margin-bottom:1rem}
.pagination{display:flex;gap:.35rem;flex-wrap:wrap;justify-content:center;margin:1.2rem 0;list-style:none;padding:0}
.pagination a,.pagination span{display:block;padding:.4rem .8rem;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink)}
.pagination .active span{background:var(--blue);color:#fff;border-color:var(--blue)}
.pagination .disabled span{opacity:.5}

/* ===== الموقع التعريفي ===== */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.site-header .container{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.6rem 0}
.site-header .logo img{height:54px;width:auto;display:block}
.nav{display:flex;gap:1.6rem;align-items:center}
.nav a{color:var(--ink);font-weight:700;padding:.35rem 0;border-bottom:2px solid transparent}
.nav a.active,.nav a:hover{color:var(--blue);border-color:var(--blue)}
.header-actions{display:flex;gap:.6rem;align-items:center}
.menu-btn{display:none;background:none;border:0;padding:.3rem;cursor:pointer;color:var(--ink)}
@media(max-width:900px){
  .menu-btn{display:block}
  .nav{position:absolute;inset-inline:0;top:100%;background:#fff;flex-direction:column;align-items:stretch;gap:0;padding:.5rem 1rem 1rem;border-bottom:1px solid var(--line);display:none}
  .nav.open{display:flex}.nav a{padding:.7rem 0;border-bottom:1px solid var(--line)}
  .header-actions .btn-ghost{display:none}
}
.hero{position:relative;color:#fff;background:linear-gradient(135deg,#0a35bf 0%,#0b3fe0 45%,#2f6bff 100%);padding:3.5rem 0 7rem;overflow:hidden}
.hero .container{display:grid;grid-template-columns:1.05fr .95fr;gap:2rem;align-items:center}
.hero h1{color:#fff;font-size:clamp(2rem,4.5vw,3.2rem);font-weight:900}
.hero p{color:#dbe6ff;font-size:1.1rem;max-width:34rem}
.hero .actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.4rem}
.hero .btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}.hero .btn-outline:hover{background:rgba(255,255,255,.12)}
.wave{position:absolute;left:0;right:0;bottom:-1px;height:90px;display:block;width:100%}
.mock{position:relative;min-height:340px}
.mock .laptop{background:#fff;border-radius:14px 14px 4px 4px;box-shadow:0 20px 50px rgba(5,20,90,.35);color:var(--ink);padding:12px;width:92%;margin-inline-start:auto;border:6px solid #1b2a52}
.mock .laptop-body{display:grid;grid-template-columns:110px 1fr;gap:10px;direction:rtl}
.mock .side{background:#0e1b44;border-radius:8px;padding:8px;color:#cdd8ff;font-size:.62rem;display:grid;gap:6px;align-content:start}
.mock .side span{padding:4px 6px;border-radius:5px}.mock .side .on{background:var(--blue);color:#fff}
.mock .kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:8px}
.mock .kpi{background:var(--blue-50);border-radius:8px;padding:6px;text-align:center;font-size:.6rem}.mock .kpi b{display:block;font-size:1rem;color:var(--blue)}
.mock svg{width:100%;height:80px}
.mock .phone{position:absolute;inset-inline-end:-4%;bottom:-18px;width:34%;background:#fff;border-radius:22px;border:6px solid #111;box-shadow:0 18px 40px rgba(0,0,0,.35);padding:8px;color:var(--ink);font-size:.62rem}
.mock .phone .ph-img{height:74px;border-radius:10px;background:linear-gradient(135deg,#e7d3b7,#c89a63);margin:6px 0}
.mock .chip{position:absolute;inset-inline-start:2%;bottom:-6px;background:#fff;border-radius:12px;padding:.45rem .9rem;color:var(--ink);font-weight:800;box-shadow:var(--shadow);display:flex;gap:.4rem;align-items:center}
.mock .chip i{color:#fff;background:var(--green);border-radius:50%;width:22px;height:22px;display:grid;place-items:center;font-style:normal}
@media(max-width:860px){.hero .container{grid-template-columns:1fr}.mock{min-height:280px}}
.strip{background:#fff;margin-top:-1px}
.strip .container{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;padding:1.4rem 0}
.strip .item{display:flex;gap:.75rem;align-items:center}.strip .item .icon{width:2rem;height:2rem;color:var(--blue)}
.strip .item b{display:block}.strip .item span{color:var(--muted);font-size:.82rem}
@media(max-width:860px){.strip .container{grid-template-columns:repeat(2,1fr)}}
.section{padding:3.2rem 0}.section.alt{background:#fff}
.section-title{text-align:center;margin-bottom:2rem}.section-title h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:900;display:inline-block;position:relative}
.section-title h2::after{content:"";display:block;height:5px;border-radius:5px;background:var(--blue);width:60%;margin:.25rem auto 0;opacity:.85}
.section-title p{color:var(--muted)}
.feature{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem;box-shadow:var(--shadow)}
.feature .icon{width:2.2rem;height:2.2rem;color:var(--blue);float:inline-end}.feature h3{font-size:1.05rem}.feature p{color:var(--muted);font-size:.9rem;margin:0}
.tpl{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:.7rem;box-shadow:var(--shadow)}
.tpl .shot{height:190px;border-radius:10px;margin-bottom:.7rem;display:flex;align-items:flex-end;padding:.8rem;color:#fff;font-weight:800;font-size:1.05rem;position:relative;overflow:hidden}
.tpl .shot .bar{position:absolute;top:0;left:0;right:0;height:26px;background:rgba(255,255,255,.18);display:flex;gap:4px;align-items:center;padding-inline:8px}.tpl .shot .bar i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.8)}
.tpl .shot .circles{position:absolute;inset-inline-start:.8rem;top:42px;display:flex;gap:.4rem}.tpl .shot .circles i{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.35);border:2px solid rgba(255,255,255,.7)}
.steps{background:var(--blue-50);border-radius:20px;padding:2rem}
.step{background:#fff;border-radius:14px;padding:1.1rem;box-shadow:var(--shadow);position:relative}
.step .num{position:absolute;inset-inline-end:-8px;top:-8px;background:var(--blue);color:#fff;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800}
.step .icon{width:2rem;height:2rem;color:var(--blue)}
.price-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:1.6rem;box-shadow:var(--shadow);position:relative}
.price-card .amt{font-size:2.5rem;font-weight:900;color:var(--navy)}.price-card ul{list-style:none;padding:0;margin:1rem 0;display:grid;gap:.5rem}
.price-card li{display:flex;gap:.5rem;align-items:center}.price-card li .icon{color:var(--blue)}
.price-card.featured{background:linear-gradient(160deg,#0b3fe0,#0a2fa8);color:#fff;border:0}.price-card.featured .amt,.price-card.featured h3{color:#fff}.price-card.featured li .icon{color:#fff}
.price-card .tag{position:absolute;top:-12px;inset-inline-start:1rem;background:#ffd66b;color:#6b4a00;font-weight:800;border-radius:999px;padding:.2rem .8rem;font-size:.8rem}
details.faq{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:.6rem;padding:.9rem 1.1rem}
details.faq summary{cursor:pointer;font-weight:800;list-style:none;display:flex;justify-content:space-between;align-items:center}
details.faq summary::-webkit-details-marker{display:none}details.faq p{margin:.6rem 0 0;color:var(--muted)}
.cta{position:relative;background:linear-gradient(135deg,#0a35bf,#0b3fe0 60%,#2f6bff);color:#fff;padding:6rem 0 4rem;overflow:hidden;margin-top:2rem}
.cta h2{color:#fff;font-size:2rem}.cta .wave-top{position:absolute;top:-1px;left:0;right:0;height:70px;width:100%;transform:rotate(180deg)}
.site-footer{background:linear-gradient(180deg,#0a35bf,#082a9a);color:#dbe6ff;padding:5rem 0 1.2rem;position:relative;margin-top:3rem}.cta+.site-footer{margin-top:0;padding-top:3rem}.cta+.site-footer .wave-top{display:none}
.site-footer .wave-top{position:absolute;top:-1px;left:0;right:0;height:70px;width:100%;transform:rotate(180deg)}
.site-footer h4{color:#fff;font-size:1rem}.site-footer a{color:#dbe6ff;display:block;padding:.15rem 0}.site-footer a:hover{color:#fff}
.site-footer .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2rem}
@media(max-width:860px){.site-footer .cols{grid-template-columns:1fr 1fr}}
.site-footer .copy{border-top:1px solid rgba(255,255,255,.2);margin-top:2rem;padding-top:1rem;font-size:.85rem;text-align:center}
.social{display:flex;gap:.6rem}.social{margin-top:1rem;flex-wrap:wrap}.social a{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.15);display:grid!important;place-items:center;padding:0!important;transition:.15s}.social a:hover{background:#fff;color:#0a35bf;transform:translateY(-2px)}.social .icon{width:1.15rem;height:1.15rem}

/* الدخول والتسجيل */
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:2rem 1rem;background:linear-gradient(160deg,#eaf0ff,#f7f9ff)}
.auth-card{width:min(480px,100%);background:#fff;border-radius:20px;box-shadow:var(--shadow);padding:2rem;border:1px solid var(--line)}
.auth-card .logo{display:block;margin:0 auto 1rem;height:64px}
.oauth{display:grid;gap:.6rem;margin:1rem 0}
.oauth .btn{background:#fff;border-color:var(--line);color:var(--ink)}
.oauth .btn.off{opacity:.55;cursor:not-allowed}
.divider{display:flex;align-items:center;gap:.7rem;color:var(--muted);font-size:.85rem;margin:1rem 0}.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}
.choice{border:1.5px solid var(--line);border-radius:14px;padding:.9rem;cursor:pointer;display:block;position:relative;background:#fff}
.choice input{position:absolute;inset-inline-end:.9rem;top:.9rem}
.choice:has(input:checked){border-color:var(--blue);background:var(--blue-50)}

/* ===== لوحات التحكم ===== */
.app{display:grid;grid-template-columns:264px 1fr;min-height:100vh}
.sidebar{background:#fff;border-inline-end:1px solid var(--line);padding:1rem .9rem;position:sticky;top:0;height:100vh;overflow-y:auto;display:flex;flex-direction:column;gap:.35rem}
.sidebar .brand{text-align:center;margin-bottom:.4rem}.sidebar .brand img{height:62px}
.sidebar nav{display:grid;gap:.2rem;margin-top:.5rem}
.sidebar nav a{display:flex;align-items:center;gap:.7rem;padding:.6rem .8rem;border-radius:11px;color:var(--ink);font-weight:700;font-size:.93rem}
.sidebar nav a:hover{background:var(--blue-50)}
.sidebar nav a.active{background:var(--blue);color:#fff}
.sidebar nav a .count{margin-inline-start:auto;background:var(--blue-100);color:var(--blue);border-radius:999px;padding:0 .55rem;font-size:.75rem}
.sidebar nav a .count.red{background:#e11d48;color:#fff}
.sidebar .sub-box{margin-top:auto;border-radius:14px;padding:.8rem;background:var(--green-bg);color:var(--green);font-size:.85rem}
.sidebar .sub-box.warn{background:var(--amber-bg);color:var(--amber)}.sidebar .sub-box.bad{background:var(--red-bg);color:var(--red)}
.main{min-width:0}
.topbar{background:#fff;border-bottom:1px solid var(--line);padding:.7rem 1.4rem;display:flex;align-items:center;gap:1rem;justify-content:space-between;position:sticky;top:0;z-index:30}
.topbar .search{flex:1;max-width:520px}
.content{padding:1.4rem}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1.2rem}
.page-head h1{font-size:1.6rem;margin:0}
.stat{display:flex;gap:1rem;align-items:center}
.stat .ic{width:48px;height:48px;border-radius:13px;background:var(--blue-50);color:var(--blue);display:grid;place-items:center;flex:none}
.stat .ic .icon{width:1.5rem;height:1.5rem}
.stat b{font-size:1.7rem;display:block;color:var(--navy);line-height:1.2}.stat span{color:var(--muted);font-size:.85rem}
.up{color:var(--green);font-weight:700;font-size:.82rem}.down{color:var(--red);font-weight:700;font-size:.82rem}
.chart{width:100%;height:240px}
.mobile-nav-btn{display:none}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--blue-100);color:var(--blue);display:grid;place-items:center;font-weight:800}
.thumb{width:48px;height:48px;border-radius:10px;object-fit:cover;background:var(--gray-bg);flex:none}
@media(max-width:980px){
  .app{grid-template-columns:1fr}
  .sidebar{position:fixed;inset-block:0;inset-inline-start:0;width:280px;transform:translateX(100%);transition:.2s;z-index:60;box-shadow:0 0 40px rgba(0,0,0,.2)}
  .sidebar.open{transform:none}
  .mobile-nav-btn{display:inline-flex}
  .scrim{position:fixed;inset:0;background:rgba(10,20,50,.4);z-index:50}
}
.toolbar{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:1rem;align-items:end}
.toolbar .field{margin:0;min-width:140px}
.kv{display:grid;grid-template-columns:140px 1fr;gap:.4rem 1rem}.kv dt{color:var(--muted)}.kv dd{margin:0;font-weight:700}
.timeline{list-style:none;padding:0;margin:0;display:grid;gap:.8rem}.timeline li{padding-inline-start:1.2rem;position:relative}.timeline li::before{content:"";position:absolute;inset-inline-start:0;top:.55rem;width:9px;height:9px;border-radius:50%;background:var(--blue)}
.imgs{display:flex;gap:.6rem;flex-wrap:wrap}.imgs figure{margin:0;position:relative}.imgs img{width:96px;height:96px;object-fit:cover;border-radius:10px;border:2px solid var(--line)}.imgs .primary img{border-color:var(--blue)}
.variant-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:.5rem;margin-bottom:.5rem;align-items:center}
@media(max-width:700px){.variant-row{grid-template-columns:1fr 1fr}}
.preview-box{border:1px dashed var(--line);border-radius:12px;padding:1rem;background:#fff}
@media print{.sidebar,.topbar,.no-print{display:none!important}.app{display:block}.content{padding:0}body{background:#fff}}

/* ===== لمسة احترافية للوحات التحكم (v2) ===== */
body{background:#f3f5fa}
.app{grid-template-columns:276px 1fr}
.sidebar{background:#fff;border-inline-end:1px solid #e8ecf4;padding:1.1rem 1rem;gap:.3rem;box-shadow:0 0 30px rgba(15,30,80,.04)}
.sidebar .brand{padding:.2rem .4rem 1rem;border-bottom:1px solid #eef1f7;margin-bottom:.7rem}
.sidebar .brand img{height:52px;width:auto;margin:0 auto;display:block}
.sidebar .brand small{display:block;margin-top:.3rem;font-weight:700;letter-spacing:.02em}
.sidebar nav{gap:.15rem}
.sidebar nav a{position:relative;padding:.62rem .85rem;border-radius:12px;color:#3b4764;font-weight:700;font-size:.92rem;transition:.15s}
.sidebar nav a .icon{width:1.15rem;height:1.15rem;color:#8590a8;transition:.15s}
.sidebar nav a:hover{background:#f1f5ff;color:var(--blue)}.sidebar nav a:hover .icon{color:var(--blue)}
.sidebar nav a.active{background:linear-gradient(135deg,#0b3fe0,#2a62ff);color:#fff;box-shadow:0 6px 16px rgba(11,63,224,.28)}
.sidebar nav a.active .icon{color:#fff}
.sidebar nav a .count{background:#e11d48;color:#fff;min-width:22px;text-align:center}
.sidebar nav a.active .count{background:#fff;color:var(--blue)}
.sidebar .sub-box{border:1px solid rgba(21,128,61,.15);box-shadow:0 2px 8px rgba(0,0,0,.03)}
.topbar{background:rgba(255,255,255,.88);backdrop-filter:blur(8px);border-bottom:1px solid #e8ecf4;padding:.65rem 1.5rem;height:68px}
.topbar .search{max-width:440px}
.topbar .search .input{border-radius:999px;background:#f3f5fa;border-color:transparent;padding:.55rem 1.1rem}
.topbar .search .input:focus{background:#fff}
.topbar .btn-ghost{border-color:transparent;background:#f3f5fa}.topbar .btn-ghost:hover{background:#e8edf9}
.topbar .btn-sm{padding:.45rem .9rem}
.content{padding:1.6rem 1.8rem 3rem;max-width:1500px}
.page-head h1{font-size:1.65rem;font-weight:900}
.card{border:1px solid #e8ecf4;border-radius:18px;box-shadow:0 1px 2px rgba(16,24,40,.04),0 8px 24px rgba(16,24,40,.04);padding:1.35rem}
.card h3{font-size:1.05rem;font-weight:800;margin-bottom:.9rem}
a.card{color:inherit;transition:.15s}a.card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(16,24,40,.09)}
.stat{position:relative;overflow:hidden;gap:.95rem}
.stat::after{content:"";position:absolute;inset-inline-start:-30px;top:-30px;width:100px;height:100px;border-radius:50%;background:currentColor;opacity:.05}
.stat .ic{width:52px;height:52px;border-radius:15px}
.stat b{font-size:1.65rem;font-weight:900}
.grid.g4>.stat:nth-child(4n+1),.grid.g3>.stat:nth-child(3n+1){color:#0b3fe0}.grid.g4>.stat:nth-child(4n+1) .ic{background:#e9f0ff;color:#0b3fe0}
.grid.g4>.stat:nth-child(4n+2){color:#0e9f6e}.grid.g4>.stat:nth-child(4n+2) .ic{background:#e3f8ef;color:#0e9f6e}
.grid.g4>.stat:nth-child(4n+3){color:#d97706}.grid.g4>.stat:nth-child(4n+3) .ic{background:#fff3df;color:#d97706}
.grid.g4>.stat:nth-child(4n+4){color:#7c3aed}.grid.g4>.stat:nth-child(4n+4) .ic{background:#f1eaff;color:#7c3aed}
.stat>div:last-child{color:var(--ink)}
.stat span{font-weight:600}
.table-wrap{border-radius:16px;border:1px solid #e8ecf4;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.card .table-wrap{box-shadow:none}
.table th{background:#f7f9fd;font-weight:800;text-transform:none;border-bottom:1px solid #e8ecf4;padding:.8rem 1rem}
.table td{border-top:1px solid #f0f3f9;padding:.85rem 1rem}
.table tbody tr:hover td{background:#f9fbff}
.badge{padding:.2rem .7rem;font-size:.76rem}
.btn{border-radius:11px;font-weight:700}
.btn-primary{background:linear-gradient(135deg,#0b3fe0,#2a62ff);box-shadow:0 4px 12px rgba(11,63,224,.22)}.btn-primary:hover{background:linear-gradient(135deg,#0a35bf,#1f55f0)}
.btn-outline{border-width:1.5px}
.input,select,textarea{border-radius:11px;background:#fbfcfe}
.alert{border-radius:14px;border:1px solid transparent}
.alert-warn{border-color:#f6d9a6}.alert-error{border-color:#f3c0c0}.alert-success{border-color:#bfe6cf}.alert-info{border-color:#c7d8ff}
.hello{background:linear-gradient(135deg,#0a35bf 0%,#0b3fe0 55%,#3d73ff 100%);color:#fff;border-radius:20px;padding:1.5rem 1.7rem;margin-bottom:1.3rem;position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.hello::before,.hello::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.08)}
.hello::before{width:220px;height:220px;inset-inline-end:-60px;top:-90px}.hello::after{width:140px;height:140px;inset-inline-end:140px;bottom:-80px}
.hello h1,.hello p{color:#fff;margin:0;position:relative;z-index:1}.hello p{color:#dbe6ff}
.hello .flex{position:relative;z-index:1}
.hello select{background:rgba(255,255,255,.15);color:#fff;border-color:rgba(255,255,255,.3)}.hello select option{color:#111}
.hello .btn-primary{background:#fff;color:var(--blue);box-shadow:none}
/* لوحة السوبر أدمن: شريط جانبي داكن */
body.admin .sidebar{background:linear-gradient(180deg,#0a1640 0%,#0c1d58 100%);border-inline-end:0;color:#cbd6f5}
body.admin .sidebar .brand{border-bottom-color:rgba(255,255,255,.1)}
body.admin .sidebar .brand small{color:#8fa3de}
body.admin .sidebar nav a{color:#c3cff0}body.admin .sidebar nav a .icon{color:#8398d8}
body.admin .sidebar nav a:hover{background:rgba(255,255,255,.08);color:#fff}body.admin .sidebar nav a:hover .icon{color:#fff}
body.admin .sidebar nav a.active{background:linear-gradient(135deg,#2a62ff,#4c7dff);box-shadow:0 6px 18px rgba(42,98,255,.45)}
body.admin .topbar .admin-badge{background:#0a1640;color:#fff;border-radius:999px;padding:.2rem .8rem;font-size:.78rem;font-weight:800}
@media(max-width:980px){.content{padding:1rem 1rem 3rem}.topbar{padding:.5rem 1rem}.hello{padding:1.1rem}}
body.admin .sidebar nav a.active,body.admin .sidebar nav a.active .icon{color:#fff}
.stat b{white-space:nowrap;font-size:1.45rem}

/* إحصائيات وشركاء وآراء */
.stats-band{background:linear-gradient(135deg,#0a35bf,#0b3fe0 60%,#2f6bff);color:#fff;padding:2.2rem 0;position:relative;overflow:hidden}
.stats-band::before{content:"";position:absolute;width:300px;height:300px;border-radius:50%;background:rgba(255,255,255,.07);inset-inline-start:-80px;top:-120px}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1.2rem;position:relative}
.stat-box{text-align:center;padding:.6rem}.stat-box b{display:block;font-size:clamp(1.8rem,4vw,2.6rem);font-weight:900;line-height:1.2}.stat-box span{color:#dbe6ff;font-weight:600}
.stat-box+.stat-box{border-inline-start:1px solid rgba(255,255,255,.2)}
@media(max-width:700px){.stat-box+.stat-box{border:0}}
.testi{margin:0;background:#fff;border:1px solid var(--line);border-radius:18px;padding:1.4rem;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:.8rem}
.testi .stars{color:#f5a623;letter-spacing:.2em}.testi blockquote{margin:0;color:var(--ink);line-height:1.9;flex:1}
.testi figcaption{display:flex;gap:.7rem;align-items:center}.testi figcaption small{display:block;color:var(--muted)}
.partner-row{display:flex;flex-wrap:wrap;gap:.9rem;justify-content:center}
.partner{display:flex;align-items:center;gap:.6rem;background:#f5f7fc;border:1px solid var(--line);border-radius:14px;padding:.8rem 1.3rem;font-weight:800;color:#3b4764;min-width:170px;justify-content:center}
.partner .pdot{width:34px;height:34px;border-radius:10px;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:900}
.partner:hover{background:#fff;box-shadow:var(--shadow)}
.hide{display:none!important}
