:root{
  --navy:#0f172a; --navy-deep:#020617;
  --amber:#fbbf24; --amber-deep:#b45309;
  --teal:#0f766e;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{font-family:'Poppins',sans-serif;background:#f8fafc;color:#1e293b;}
.arabic{font-family:'Cairo',sans-serif;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;border:none;background:none;cursor:pointer;}
.hidden{display:none !important;}

/* layout */
.app{min-height:100vh;display:flex;flex-direction:column;}
@media(min-width:768px){.app{flex-direction:row;}}

/* sidebar */
.sidebar{width:100%;background:var(--navy);color:#cbd5e1;display:flex;flex-direction:column;flex-shrink:0;}
@media(min-width:768px){.sidebar{width:320px;position:sticky;top:0;height:100vh;}}
.sidebar-head{padding:24px;background:var(--navy-deep);border-bottom:1px solid #1e293b;}
.sidebar-head .brand-name{margin:0;font-size:20px;font-weight:700;color:var(--amber);letter-spacing:.02em;}
.sidebar-head .domain{font-size:12px;color:#fcd34d;margin-top:4px;font-weight:500;}
.sidebar-head .subtitle{font-size:12px;color:#94a3b8;margin-top:8px;line-height:1.4;}
.sidebar-nav{flex:1;overflow-y:auto;padding:16px;}
.nav-section{margin-bottom:22px;}
.nav-home{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;
  padding:10px 16px;border-radius:10px;font-weight:500;font-size:13px;background:#1e293b;color:#fff;transition:background .15s;}
.nav-home:hover{background:#2563eb;}
.nav-home.active{background:#1e40af;color:#fff;font-weight:600;}
.nav-home .badge{font-size:10px;background:#334155;padding:2px 8px;border-radius:4px;}
.nav-group-head{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;
  padding:10px 12px;border-radius:8px;border-left:2px solid var(--amber);margin-bottom:10px;
  color:#fcd34d;transition:background .15s;}
.nav-group-head:hover{background:#1e293b;}
.nav-group-head.active{background:#1e40af;color:#fff;border-left:0;}
.nav-group-head.teal{border-left-color:#2dd4bf;color:#5eead4;}
.nav-group-head.teal.active{background:#1e40af;color:#fff;}
.nav-group-head .badge{font-size:9px;background:#1e293b;color:#fcd34d;padding:2px 8px;border-radius:999px;font-weight:500;}
.nav-sub{display:block;width:100%;text-align:left;padding:8px 16px;margin-bottom:2px;border-radius:8px;
  font-size:13px;color:#cbd5e1;transition:background .15s;}
.nav-sub:hover{background:#1e293b;color:#fff;}
.nav-sub.active{background:#1e40af;color:#fff;font-weight:600;}
.sidebar-foot{padding:16px;background:var(--navy-deep);border-top:1px solid #1e293b;}
.wa-btn{display:block;width:100%;background:#16a34a;color:#fff;text-align:center;padding:10px;border-radius:10px;font-weight:600;font-size:13px;transition:background .15s;}
.wa-btn:hover{background:#15803d;}
.site-link{display:block;text-align:center;font-size:11px;color:#94a3b8;margin-top:10px;}
.site-link:hover{color:#fff;}

/* main */
.main{flex:1;padding:16px;background:#f8fafc;}
@media(min-width:768px){.main{padding:48px;}}
.content-card{max-width:1000px;margin:0 auto;background:#fff;padding:20px;border-radius:20px;box-shadow:0 1px 3px rgba(0,0,0,.06);border:1px solid #e2e8f0;min-height:500px;}
@media(min-width:768px){.content-card{padding:32px;}}
.footer-note{max-width:1000px;margin:24px auto 0;text-align:center;font-size:11px;color:#94a3b8;letter-spacing:.02em;}

/* home cards */
.home-title{font-size:28px;font-weight:700;color:#0f172a;margin:0 0 16px;line-height:1.3;}
.home-title .arabic{font-weight:700;color:#334155;}
.home-intro{color:#475569;line-height:1.7;margin-bottom:24px;font-size:15px;}
.home-grid{display:grid;gap:16px;margin-top:24px;}
@media(min-width:768px){.home-grid{grid-template-columns:1fr 1fr;}}
.home-card{padding:20px;border-radius:16px;border:1px solid;}
.home-card.amber{background:#fffbeb;border-color:#fde68a;}
.home-card.teal{background:#f0fdfa;border-color:#99f6e0;}
.home-card h3{margin:0 0 8px;font-size:17px;font-weight:700;}
.home-card.amber h3{color:#78350f;}
.home-card.teal h3{color:#134e4a;}
.home-card p{margin:0;font-size:14px;line-height:1.6;}
.home-card.amber p{color:#92400e;}
.home-card.teal p{color:#115e59;}
.home-card .ar-note{font-size:12px;margin-top:10px;opacity:.8;}

/* footer brand bar (ae component) */
.brand-bar{margin-top:36px;border-radius:14px;background:var(--navy-deep);color:#fff;padding:16px 20px;
  display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:space-between;}
@media(min-width:640px){.brand-bar{flex-direction:row;}}
.brand-bar .left{display:flex;align-items:center;gap:10px;}
.brand-bar .bismillah{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;font-size:13px;}
.brand-bar .name{font-size:12px;font-weight:700;letter-spacing:.02em;}
.brand-bar .sub{font-size:11px;color:#cbd5e1;}
.brand-bar .tags{display:flex;gap:8px;}
.brand-bar .tag{font-size:10px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.1);}
.brand-bar .tag.gold{background:var(--amber);color:#1e293b;font-weight:600;border:none;}

/* page header */
.page-head{display:flex;align-items:center;gap:12px;margin-bottom:8px;}
.page-num{width:36px;height:36px;border-radius:12px;background:#1e3a8a;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex-shrink:0;}
.page-num.alt{background:var(--amber);color:#1e293b;}
.page-title{font-size:22px;font-weight:700;color:#0f172a;margin:0;}
.page-title .arabic{color:#334155;}
.inline-badge{margin-inline-start:8px;font-size:11px;padding:4px 10px;border-radius:999px;background:#f1f5f9;border:1px solid #e2e8f0;color:#475569;font-weight:500;}

/* definition (Z component) */
.def-box{margin:18px 0;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:18px 20px;box-shadow:0 1px 2px rgba(0,0,0,.03);}
.def-box .ar{font-family:'Cairo',sans-serif;text-align:right;direction:rtl;font-size:19px;font-weight:700;color:#0f172a;line-height:1.7;}
.def-box .en{margin-top:10px;font-size:13.5px;color:#475569;font-style:italic;line-height:1.6;border-left:4px solid #3b82f6;padding-left:12px;}

/* groups */
.groups{display:grid;gap:24px;margin-top:20px;}
.groups.cols-2{grid-template-columns:1fr;}
@media(min-width:1024px){.groups.cols-2{grid-template-columns:1fr 1fr;}}
.group-head{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap;}
.group-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;}
.group-head h3{margin:0;font-size:14px;font-weight:700;}
.group-badge{font-size:10px;padding:4px 10px;border-radius:999px;font-weight:600;}
.letter-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;}

/* letter card (J component) */
.letter-card{background:#fff;border:1px solid #f1f5f9;border-radius:14px;padding:14px;box-shadow:0 1px 2px rgba(0,0,0,.04);display:flex;flex-direction:column;gap:12px;}
.letter-chip{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  font-family:'Cairo',sans-serif;font-weight:700;font-size:26px;border-width:2px;border-style:solid;margin:0 auto;}
.letter-examples{display:flex;flex-direction:column;gap:8px;}
.example-row{background:#f8fafc;border:1px solid #f1f5f9;border-radius:10px;padding:10px;display:flex;justify-content:center;}
.arabic-word{font-family:'Cairo',sans-serif;font-size:24px;font-weight:700;line-height:1.2;display:inline-block;direction:rtl;white-space:nowrap;color:#1e293b;}
.sakin-highlight{display:inline;padding:1px 6px;margin:0 1px;border-radius:6px;font-weight:900;font-size:24px;line-height:1.2;border:1.5px solid;vertical-align:baseline;}

/* highlight color families (exact palette from the original page) */
.hl-blue{background:#EFF6FF;color:#1D4ED8;border-color:#BFDBFE;}
.hl-emerald{background:#ECFDF5;color:#047857;border-color:#A7F3D0;}
.hl-red{background:#FEF2F2;color:#B91C1C;border-color:#FECACA;}
.hl-amber{background:#FFFBEB;color:#B45309;border-color:#FDE68A;}
.hl-sky{background:#F0F9FF;color:#0369A1;border-color:#BAE6FD;}
.hl-orange{background:#FFF7ED;color:#9A3412;border-color:#FED7AA;}
.hl-slate{background:#F8FAFC;color:#334155;border-color:#E2E8F0;}
.hl-etbaaq{background:#FFFBEB;color:#DC2626;border-color:#FCD34D;}
.hl-enfetah{background:#F8FAFC;color:#475569;border-color:#E2E8F0;}
.hl-teal{background:#F0FDFA;color:#0F766E;border-color:#99F6E0;}
.hl-safeer{background:#FEFCE8;color:#A16207;border-color:#FDE68A;}
.hl-qalqalah{background:#FEF2F2;color:#DC2626;border-color:#FCA5A5;}
.hl-purple{background:#FAF5FF;color:#6D28D9;border-color:#DDD6FE;}

/* chip (letter circle) uses same family colors, lighter */
.chip-blue{background:#eff6ff;border-color:#bfdbfe;color:#1e3a8a;}
.chip-emerald{background:#ecfdf5;border-color:#a7f3d0;color:#064e3b;}
.chip-red{background:#fef2f2;border-color:#fecaca;color:#7f1d1d;}
.chip-amber{background:#fffbeb;border-color:#fde68a;color:#78350f;}
.chip-sky{background:#f0f9ff;border-color:#bae6fd;color:#0c4a6e;}
.chip-orange{background:#fff7ed;border-color:#fed7aa;color:#7c2d12;}
.chip-slate{background:#f8fafc;border-color:#e2e8f0;color:#1e293b;}
.chip-slate2{background:#f8fafc;border-color:#e2e8f0;color:#1e293b;}
.chip-etbaaq{background:#fffbeb;border-color:#fcd34d;color:#7c2d12;}
.chip-enfetah{background:#f8fafc;border-color:#e2e8f0;color:#334155;}
.chip-teal{background:#f0fdfa;border-color:#99f6e0;color:#134e4a;}
.chip-safeer{background:#fefce8;border-color:#fde68a;color:#713f12;}
.chip-qalqalah{background:#fef2f2;border-color:#fca5a5;color:#7f1d1d;}
.chip-purple{background:#faf5ff;border-color:#ddd6fe;color:#4c1d95;}

.dot-blue{background:#3b82f6;} .dot-emerald{background:#10b981;} .dot-red{background:#ef4444;}
.dot-amber{background:#f59e0b;} .dot-sky{background:#0ea5e9;} .dot-orange{background:#f97316;}
.dot-slate{background:#64748b;} .dot-slate2{background:#475569;} .dot-etbaaq{background:#f59e0b;}
.dot-enfetah{background:#64748b;} .dot-teal{background:#14b8a6;} .dot-safeer{background:#eab308;}
.dot-qalqalah{background:#ef4444;} .dot-purple{background:#a855f7;}

/* overview: qualities WITH opposites (pair rows) */
.opp-banner{display:flex;justify-content:center;margin-bottom:28px;}
.opp-banner .box{background:#1e3a8a;color:#fff;padding:16px 32px;border-radius:16px;text-align:center;box-shadow:0 8px 24px -8px rgba(30,58,138,.35);}
.opp-banner .box .ar{font-family:'Cairo',sans-serif;font-size:22px;font-weight:700;}
.opp-banner .box .en{font-size:12px;font-weight:600;letter-spacing:.05em;margin-top:6px;opacity:.9;text-transform:uppercase;}
.pair-rows{display:flex;flex-direction:column;gap:16px;max-width:760px;margin:0 auto;}
.pair-row{display:flex;flex-direction:column;gap:8px;align-items:stretch;}
@media(min-width:768px){.pair-row{flex-direction:row;align-items:center;}}
.pair-box{flex:1;background:#fff;border:1px solid #f1f5f9;border-radius:14px;box-shadow:0 1px 2px rgba(0,0,0,.04);padding:14px;min-height:76px;display:flex;flex-direction:column;justify-content:center;}
.pair-box.left{border-left:4px solid var(--amber);}
.pair-box.right{border-right:4px solid #1e293b;text-align:right;}
.pair-box .row1{display:flex;align-items:center;justify-content:space-between;}
.pair-box .en{font-weight:600;font-size:14px;color:#0f172a;}
.pair-box .ar{font-family:'Cairo',sans-serif;font-weight:700;font-size:18px;color:#1e293b;}
.pair-box .desc{font-size:11px;color:#64748b;margin-top:4px;}
.pair-arrow{display:flex;justify-content:center;align-items:center;color:#94a3b8;font-size:14px;padding:2px 0;}
.pair-mid{flex:0 0 auto;background:#fffbeb;border:1px solid #fde68a;border-radius:14px;padding:14px;text-align:center;position:relative;min-width:150px;}
.pair-mid .tag{position:absolute;top:-10px;left:50%;transform:translateX(-50%);background:var(--amber);color:#fff;font-size:9px;font-weight:700;padding:2px 10px;border-radius:999px;letter-spacing:.05em;}
.pair-mid .en{font-weight:700;font-size:14px;}
.pair-mid .ar{font-family:'Cairo',sans-serif;font-weight:700;font-size:18px;margin-top:2px;}
.pair-mid .desc{font-size:11px;color:#92400e;margin-top:4px;}
.overview-foot{margin-top:32px;display:flex;justify-content:center;}
.overview-foot .pill{display:inline-flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid #f1f5f9;border-radius:999px;padding:8px 16px;font-size:11px;color:#64748b;}
.overview-foot .dot{width:8px;height:8px;border-radius:50%;background:var(--amber);}
.overview-foot .sep{width:1px;height:12px;background:#cbd5e1;}

/* overview: qualities WITHOUT opposites (numbered list) */
.wo-list{display:flex;flex-direction:column;gap:12px;max-width:560px;margin:0 auto;}
.wo-item{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #f1f5f9;border-radius:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);padding:14px;text-align:left;transition:box-shadow .15s,transform .15s;border-left:4px solid var(--amber);}
.wo-item:hover{box-shadow:0 4px 10px rgba(0,0,0,.06);transform:translateY(-1px);}
.wo-item.teal{border-left-color:#2dd4bf;}
.wo-item .l{display:flex;align-items:center;gap:12px;}
.wo-item .num{width:32px;height:32px;border-radius:50%;background:#fffbeb;border:1px solid #fde68a;color:#92400e;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0;}
.wo-item.teal .num{background:#f0fdfa;border-color:#99f6e0;color:#0f766e;}
.wo-item .ar{font-family:'Cairo',sans-serif;font-weight:700;font-size:18px;color:#1e293b;}
.wo-item .desc{font-size:11px;color:#64748b;margin-top:2px;}
.wo-item .r{display:flex;align-items:center;gap:10px;}
.wo-item .en{font-weight:600;font-size:14px;color:#0f172a;}
.wo-item .arrow{width:24px;height:24px;border-radius:50%;background:#f8fafc;border:1px solid #f1f5f9;display:flex;align-items:center;justify-content:center;font-size:12px;color:#94a3b8;}

.opp-banner .box h1.en{margin:6px 0 0;}
.static-fallback{max-width:900px;margin:0 auto;padding:24px;font-family:'Poppins',sans-serif;color:#1e293b;line-height:1.7;}
.static-fallback a{color:#1e40af;text-decoration:underline;}
