/*
Theme Name: MA-ZAL Framework
Theme URI: https://www.ma-zal.com/
Author: MA-ZAL
Author URI: https://www.ma-zal.com/
Description: MA-ZAL Framework theme (clean brand-first base).
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: mazal-framework
*/

/* Temporary: keep it minimal for now */
:root{
  --mz-bg:#0a0d14;
  --mz-accent:#A8924A;
  --mz-accent2:#C6B06A;
  --mz-text:#f5f5f5;
}
html,body{background:var(--mz-bg);color:var(--mz-text);margin:0;padding:0}

:root{
  --bg:#0a0d14;
  --panel: rgba(168,146,74,0.07);
  --glass: rgba(168,146,74,0.06);
  --border: rgba(168,146,74,0.28);
  --accent:#A8924A;
  --accent2:#C6B06A;
  --text:#f5f5f5;
  --muted:#b7bcc5;
  --muted2:#9aa3b2;
  --shadow: 0 40px 120px rgba(0,0,0,0.65);
  --radius: 22px;
  --max: 1160px;
}

*{box-sizing:border-box;margin:0;padding:0}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
html{scroll-behavior:smooth}

body{
  font-family:"Segoe UI",system-ui,-apple-system,Arial;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 20% 18%, rgba(168,146,74,0.08), transparent 60%),
    radial-gradient(700px 500px at 82% 72%, rgba(168,146,74,0.05), transparent 65%),
    var(--bg);
  min-height:100vh;
  overflow-x:hidden;
  padding-top:86px;
}

@media (max-width: 860px){ body{ padding-top:74px; } }

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

/* ===== HEADER ===== */
header{
  position:fixed; top:0; left:0; right:0;
  z-index:1000;
  backdrop-filter: blur(14px);
  background: rgba(10,13,20,0.82);
  border-bottom: 1px solid var(--border);
  transition: padding .22s ease, background .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.header-inner{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 0;
}
header.is-scrolled{
  background: rgba(8,10,16,0.9);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  border-color: rgba(198,176,106,0.32);
}
header.is-scrolled .header-inner{ padding:10px 0; }

.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{
  height:44px;
  transition: height .22s ease, filter .22s ease;
}
header.is-scrolled .brand img{
  height:34px;
  filter: drop-shadow(0 0 10px rgba(168,146,74,0.18));
}

nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
  justify-content:center;
}
.nav-link{
  color: rgba(245,245,245,0.82);
  font-size:14px;
  padding:10px 10px;
  border-radius: 12px;
  border:1px solid transparent;
  transition: .18s ease;
  white-space:nowrap;
}
.nav-link:hover{
  border-color: rgba(168,146,74,0.28);
  background: rgba(168,146,74,0.06);
  color: var(--accent2);
}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
}

.lang-switch{
  display:flex; align-items:center; gap:6px;
  padding:6px;
  border-radius: 14px;
  border:1px solid rgba(168,146,74,0.22);
  background: rgba(168,146,74,0.05);
}
.lang-btn{
  cursor:pointer;
  border:none;
  padding:8px 10px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size:12px;
  font-weight:800;
  letter-spacing:.4px;
  transition:.18s ease;
}
.lang-btn:hover{ color: var(--accent2); }
.lang-btn.active{
  background: rgba(168,146,74,0.14);
  border: 1px solid rgba(198,176,106,0.42);
  color: var(--accent2);
}

.btn{
  border:none;
  cursor:pointer;
  border-radius: 14px;
  padding:10px 14px;
  font-weight:900;
  letter-spacing:.2px;
  transition: .22s ease;
  white-space:nowrap;
}
.btn-outline{
  border:1px solid rgba(198,176,106,0.45);
  background: rgba(168,146,74,0.06);
  color: var(--accent2);
}
.btn-outline:hover{
  background: rgba(168,146,74,0.16);
  transform: translateY(-1px);
  box-shadow: 0 16px 46px rgba(168,146,74,0.10);
  border-color: rgba(198,176,106,0.72);
}
.btn-solid{
  border:1px solid rgba(198,176,106,0.65);
  background: rgba(168,146,74,0.18);
  color: var(--accent2);
}
.btn-solid:hover{
  background: rgba(168,146,74,0.26);
  transform: translateY(-1px);
}

.hamburger{
  display:none;
  width:42px; height:42px;
  border-radius: 14px;
  border:1px solid rgba(168,146,74,0.25);
  background: rgba(168,146,74,0.06);
  color: var(--text);
  cursor:pointer;
}
.hamburger:hover{ border-color: rgba(198,176,106,0.55); }

@media (max-width: 980px){
  nav{ display:none; }
  .hamburger{ display:inline-flex; align-items:center; justify-content:center; }
}

/* ===== Mobile Drawer ===== */
.mobile-drawer{
  position:fixed;
  inset:0;
  z-index:1500;
  display:none;
}
.mobile-drawer.open{ display:block; }
.drawer-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(10px);
}
.drawer-panel{
  position:absolute; top:0; right:0;
  width:min(420px, 92vw);
  height:100%;
  background: rgba(10,13,20,0.96);
  border-left:1px solid rgba(168,146,74,0.25);
  padding:18px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  gap:14px;
}
.drawer-head{
  display:flex; align-items:center; justify-content:space-between;
}
.drawer-title{
  font-weight:900;
  color: var(--accent2);
}
.drawer-close{
  width:40px; height:40px;
  border-radius: 14px;
  border:1px solid rgba(168,146,74,0.25);
  background: rgba(168,146,74,0.06);
  color:var(--text);
  cursor:pointer;
}
.drawer-links{
  display:grid;
  gap:8px;
  margin-top:4px;
}
.drawer-links a{
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(168,146,74,0.18);
  background: rgba(168,146,74,0.06);
  color: rgba(245,245,245,0.86);
}
.drawer-links a:hover{
  border-color: rgba(198,176,106,0.55);
  color: var(--accent2);
}
.drawer-actions{
  margin-top:auto;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ===== HERO ===== */
.hero{
  padding:64px 0 18px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap:28px;
  align-items:center;
}
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius: 999px;
  border:1px solid rgba(168,146,74,0.22);
  background: rgba(168,146,74,0.06);
  color: rgba(245,245,245,0.86);
  font-size:12px;
}
.dot{
  width:8px; height:8px; border-radius:99px;
  background: rgba(198,176,106,0.75);
  box-shadow: 0 0 18px rgba(198,176,106,0.25);
}

.h1{
  margin-top:14px;
  font-size:44px;              /* أصغر قليلاً */
  font-weight:600;             /* بدل الثقيل جداً */
  line-height:1.15;            /* أكثر راحة */
  letter-spacing:-0.3px;       /* أخف */
  color: var(--accent2);
  text-shadow: 0 0 10px rgba(168,146,74,0.12); /* أخف توهج */
}

@media (max-width: 860px){
  .h1{
    font-size:30px;
    font-weight:600;
  }
}

.sub{
  margin-top:14px;
  color: var(--muted);
  max-width: 720px;
  line-height:1.7;
  font-size:15px;
}

.hero-actions{
  margin-top:20px;
  display:flex; gap:10px;
  flex-wrap:wrap;
}

.hero-panel{
  border-radius: 26px;
  border: 1px solid rgba(168,146,74,0.25);
  background: rgba(168,146,74,0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
  padding:18px;
  position:relative;
  overflow:hidden;
}
.hero-panel::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(700px 260px at 20% 0%, rgba(198,176,106,0.08), transparent 60%);
  pointer-events:none;
}
.stat-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.stat{
  border-radius: 18px;
  border:1px solid rgba(168,146,74,0.18);
  background: rgba(10,13,20,0.55);
  padding:14px;
}
.stat b{
  display:block;
  font-size:18px;
  color: var(--accent2);
}
.stat span{
  display:block;
  margin-top:4px;
  color: rgba(183,188,197,0.9);
  font-size:12px;
  line-height:1.35;
}
.badge-row{
  margin-top:12px;
  display:flex; flex-wrap:wrap; gap:8px;
}
.badge{
  padding:8px 10px;
  border-radius: 999px;
  border:1px solid rgba(168,146,74,0.18);
  background: rgba(168,146,74,0.05);
  color: rgba(245,245,245,0.82);
  font-size:12px;
}

/* ===== Sections ===== */
.section{ padding:84px 0; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:18px; }
.h2{ font-size:30px; color: var(--accent2); letter-spacing:-0.2px; }
.p2{ color: var(--muted); max-width: 720px; line-height:1.7; font-size:14px; }
.hr{ height:1px; background: linear-gradient(90deg, transparent, rgba(168,146,74,0.35), transparent); margin:16px 0 26px; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){ .grid{ grid-template-columns: 1fr; } }

.card{
  border-radius: var(--radius);
  border:1px solid rgba(168,146,74,0.22);
  background: rgba(168,146,74,0.05);
  backdrop-filter: blur(10px);
  padding:18px;
  transition: .18s ease;
  cursor:pointer;
  position:relative;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(198,176,106,0.55);
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}
.card:active{ transform: translateY(0px) scale(0.995); }
.card .icon{
  width:42px; height:42px;
  border-radius: 14px;
  border:1px solid rgba(168,146,74,0.22);
  background: rgba(10,13,20,0.55);
  display:flex; align-items:center; justify-content:center;
  color: var(--accent2);
  font-weight:900;
}
.card h3{ margin-top:10px; font-size:16px; color: rgba(245,245,245,0.92); }
.card p{ margin-top:8px; color: var(--muted); font-size:13px; line-height:1.6; }
.card .mini{ margin-top:12px; display:flex; flex-wrap:wrap; gap:8px; }
.pill{
  padding:7px 10px;
  border-radius: 999px;
  border:1px solid rgba(168,146,74,0.18);
  background: rgba(10,13,20,0.55);
  color: rgba(245,245,245,0.80);
  font-size:12px;
}

.card .go{
  position:absolute;
  top:14px;
  right:14px;
  width:34px; height:34px;
  border-radius: 12px;
  border:1px solid rgba(168,146,74,0.22);
  background: rgba(10,13,20,0.55);
  display:flex; align-items:center; justify-content:center;
  color: rgba(198,176,106,0.95);
  font-weight:900;
}

/* اتجاه السهم حسب اللغة */
[dir="rtl"] .card .go{
  right:auto;
  left:14px;
}

/* Presence + Split blocks */
.presence, .split{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
@media (max-width: 980px){ .presence, .split{ grid-template-columns: 1fr; } }

.box{
  border-radius: 26px;
  border:1px solid rgba(168,146,74,0.22);
  background: rgba(10,13,20,0.50);
  padding:18px;
  position:relative;
  overflow:hidden;
}
.box::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(700px 260px at 20% 0%, rgba(198,176,106,0.08), transparent 60%),
    radial-gradient(500px 220px at 75% 70%, rgba(168,146,74,0.05), transparent 65%);
  pointer-events:none;
}
.box > *{ position:relative; }

.rowhead{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.rowhead b{ color: var(--accent2); }
.rowhead span{ color: rgba(183,188,197,0.9); font-size:12px; }

.country-list{ margin-top:14px; display:grid; gap:10px; }
.country{
  border-radius: 18px;
  border:1px solid rgba(168,146,74,0.18);
  background: rgba(168,146,74,0.05);
  padding:12px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.country b{ color: rgba(245,245,245,0.92); font-size:14px; }
.country p{ color: var(--muted); font-size:12px; margin-top:4px; line-height:1.45; }
.tag{
  padding:7px 10px;
  border-radius: 999px;
  border:1px solid rgba(198,176,106,0.35);
  background: rgba(168,146,74,0.10);
  color: var(--accent2);
  font-size:12px;
  white-space:nowrap;
}

.feature{
  border-radius: 26px;
  border:1px solid rgba(168,146,74,0.22);
  background: rgba(168,146,74,0.05);
  padding:18px;
  position:relative;
  overflow:hidden;
}
.feature::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(700px 260px at 25% 0%, rgba(198,176,106,0.08), transparent 60%);
  pointer-events:none;
}
.feature > *{ position:relative; }

.feature h3{ color: rgba(245,245,245,0.92); font-size:18px; }
.feature p{ margin-top:8px; color: var(--muted); font-size:13px; line-height:1.6; }
.feature .cta{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }
.feature .list{ margin-top:12px; display:grid; gap:8px; }

.li{ display:flex; gap:10px; align-items:flex-start; color: rgba(245,245,245,0.84); font-size:13px; line-height:1.5; }
.li i{
  width:18px; height:18px; border-radius: 999px;
  border:1px solid rgba(168,146,74,0.22);
  background: rgba(10,13,20,0.55);
  display:inline-flex; align-items:center; justify-content:center;
  color: var(--accent2);
  font-style:normal; font-weight:900;
  margin-top:2px;
}

/* Contact */
.contact{ display:grid; grid-template-columns: 1fr 0.9fr; gap:14px; }
@media (max-width: 980px){ .contact{ grid-template-columns: 1fr; } }

.form{
  border-radius: 26px;
  border:1px solid rgba(168,146,74,0.22);
  background: rgba(10,13,20,0.55);
  padding:18px;
}
.field{ margin-top:12px; }
.field label{ display:block; color: rgba(183,188,197,0.92); font-size:12px; margin-bottom:6px; }
.field input, .field textarea{
  width:100%;
  border-radius: 16px;
  border:1px solid rgba(168,146,74,0.22);
  background: rgba(168,146,74,0.06);
  padding:12px 12px;
  color: var(--text);
  outline:none;
  transition: .18s ease;
}
.field textarea{ min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus{
  border-color: rgba(198,176,106,0.65);
  box-shadow: 0 0 0 4px rgba(168,146,74,0.10);
}

.note{ margin-top:10px; color: rgba(183,188,197,0.86); font-size:12px; line-height:1.45; }

.info{
  border-radius: 26px;
  border:1px solid rgba(168,146,74,0.22);
  background: rgba(168,146,74,0.05);
  padding:18px;
}
.info b{ color: var(--accent2); }
.info p{ margin-top:8px; color: var(--muted); font-size:13px; line-height:1.6; }
.kv{ margin-top:12px; display:grid; gap:10px; }
.kv .row{
  display:flex; justify-content:space-between; gap:10px;
  padding:10px 12px;
  border-radius: 16px;
  border:1px solid rgba(168,146,74,0.18);
  background: rgba(10,13,20,0.55);
  color: rgba(245,245,245,0.84);
  font-size:13px;
}
.kv .row span{ color: rgba(183,188,197,0.9); }

/* Footer */
footer{
  border-top:1px solid rgba(168,146,74,0.22);
  background: rgba(8,10,16,0.92);
  padding:26px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:14px;
  align-items:start;
}
@media (max-width: 980px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand{ display:flex; gap:12px; align-items:center; }
.footer-brand img{ height:34px; opacity:.95; }
.footer-brand div{ display:flex; flex-direction:column; gap:4px; }
.footer-brand b{ color: var(--accent2); }
.footer-brand span{ color: rgba(183,188,197,0.85); font-size:12px; line-height:1.4; }
.footer-links{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.footer-links a{
  padding:8px 10px;
  border-radius: 999px;
  border:1px solid rgba(168,146,74,0.18);
  background: rgba(168,146,74,0.05);
  color: rgba(245,245,245,0.84);
  font-size:12px;
}
.footer-links a:hover{ border-color: rgba(198,176,106,0.55); color: var(--accent2); }
.copy{ margin-top:12px; color: rgba(183,188,197,0.75); font-size:12px; }

/* ===== Minimal Stars (very light) ===== */
.fx-layer{
  position:fixed; inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.48;
}
.fx-layer svg{ width:100%; height:100%; display:block; }
.star{ opacity:.55; animation: starDrift 42s linear infinite; }
@keyframes starDrift{
  from{ transform: translate3d(0, 70px, 0); }
  to{ transform: translate3d(0, -160px, 0); }
}
.twinkle{
  transform-origin:center;
  animation: twinkle 12s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(198,176,106,0.14));
}
@keyframes twinkle{
  0%{ opacity:.18; transform:scale(1); }
  45%{ opacity:.68; transform:scale(1.18); }
  75%{ opacity:.26; transform:scale(1.06); }
  100%{ opacity:.18; transform:scale(1); }
}
.t1{ animation-duration: 10.5s; animation-delay: -1.1s; }
.t2{ animation-duration: 13.2s; animation-delay: -3.7s; }
.t3{ animation-duration: 15.6s; animation-delay: -5.4s; }
.t4{ animation-duration: 12.4s; animation-delay: -2.2s; }

@media (max-width: 860px){
  .fx-layer{ opacity:.36; }
  .twinkle{ filter:none; }
}

/* ===== Modal (Auth + Portal) ===== */
.modal{
  position:fixed; inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  z-index:2000;
}
.modal.is-open{ display:flex; }
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(10px);
}
.modal-panel{
  position:relative;
  width:min(560px, 92vw);
  border-radius: 26px;
  border:1px solid rgba(168,146,74,0.30);
  background: rgba(10,13,20,0.92);
  box-shadow: var(--shadow);
  padding:20px;
  overflow:hidden;
}
.modal-panel::before{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(700px 240px at 30% 0%, rgba(198,176,106,0.08), transparent 60%);
  pointer-events:none;
}
.modal-panel > *{ position:relative; }

.modal-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.modal-title{ font-size:18px; font-weight:900; color: var(--accent2); }
.modal-sub{ margin-top:4px; color: var(--muted); font-size:13px; line-height:1.5; }
.modal-close{
  width:40px; height:40px;
  border-radius: 14px;
  border:1px solid rgba(168,146,74,0.25);
  background: rgba(168,146,74,0.06);
  color: var(--text);
  cursor:pointer;
}
.modal-close:hover{ border-color: rgba(198,176,106,0.55); transform: translateY(-1px); }

.form-actions{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.btn-link{
  background:transparent;
  border:none;
  color: var(--muted);
  cursor:pointer;
  font-size:13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Portal Modal content */
.portal-meta{
  margin-top:12px;
  border-radius: 18px;
  border:1px solid rgba(168,146,74,0.18);
  background: rgba(168,146,74,0.05);
  padding:12px;
}
.portal-meta .line{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  border-bottom:1px solid rgba(168,146,74,0.12);
  color: rgba(245,245,245,0.86);
  font-size:13px;
}
.portal-meta .line:last-child{ border-bottom:none; }
.portal-meta .line span{ color: rgba(183,188,197,0.9); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .star, .twinkle{ animation:none !important; }
}

/* ===== CLEAN LANDING ===== */
.landing{
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(10,13,20,0.78);
  backdrop-filter: blur(10px);
}

.landing-inner{
  width: min(920px, 94vw);   /* أكبر */
  text-align: center;
  border-radius: 26px;
  border: 1px solid rgba(168,146,74,0.28);
  background: rgba(10,13,20,0.82);
  box-shadow: var(--shadow);
  padding: 34px 26px;        /* أوسع */
}

.landing-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 14px;
  border-radius: 999px;
  border:1px solid rgba(168,146,74,0.22);
  background: rgba(168,146,74,0.06);
  color: rgba(245,245,245,0.86);
  font-weight: 900;
  letter-spacing: .5px;
}

.landing-title{
  margin-top: 16px;
  font-size: 22px;          /* أصغر */
  line-height: 1.45;
  font-weight: 500;         /* غير Bold */
  color: rgba(245,245,245,0.86);
  text-shadow: none;        /* أنظف */
  letter-spacing: .2px;
}


.landing-cta{
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 16px;
}


.landing-logo{
  height: 74px;            /* كبّر/صغّر حسب رغبتك */
  width: auto;
  display: block;
  margin: 0 auto;
  opacity: .96;
  filter: drop-shadow(0 0 18px rgba(168,146,74,0.14));
}

.landing-lang{
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  opacity: .9;
}

[dir="rtl"] .landing-lang{
  left: auto;
  right: 14px;   /* في العربي تصبح يمين */
}

.landing-inner{ position: relative; } /* مهم لأن landing-lang absolute */

.landing-lang-btn{
  cursor: pointer;
  border: 1px solid rgba(168,146,74,0.22);
  background: rgba(168,146,74,0.05);
  color: rgba(245,245,245,0.72);
  padding: 5px 7px;
  border-radius: 10px;
  font-size: 10px;     /* صغيرة جداً */
  font-weight: 700;
  letter-spacing: .3px;
}

.landing-lang-btn:hover{
  border-color: rgba(198,176,106,0.55);
  color: var(--accent2);
}

/* الشريط الأعلى مبسط فقط أثناء الواجهة الأولى */
body.landing-on header nav{ display:none !important; }
body.landing-on #btnSignin{ display:none !important; } /* نخفي My Gateway أثناء الواجهة الأولى */
body.landing-on .hamburger{ display:none !important; } /* حتى لا يظهر منيو */
body.landing-on header{ background: rgba(10,13,20,0.92); }

/* تصغير العنوان في الهاتف */
@media (max-width: 860px){
  .landing-title{ font-size: 30px; }
}

/* ===== Logo Control ===== */

.brand img,
.brand-logo-img,
.custom-logo {
  height: 44px !important;
  width: auto;
  max-height: 44px;
  object-fit: contain;
}

/* عند السكروول */
header.is-scrolled .brand img,
header.is-scrolled .brand-logo-img,
header.is-scrolled .custom-logo {
  height: 34px;
  max-height: 34px;
}

/* ===== Site Mode Presets ===== */

body.mazal-mode-corporate {
  --accent2: #c6b06a;
}

body.mazal-mode-shop {
  --accent2: #00c896;
}

body.mazal-mode-education {
  --accent2: #5b8cff;
}

body.mazal-mode-app {
  --accent2: #ff6b6b;
}


/* ============================= */
/* PORTAL APP LAYOUT */
/* ============================= */

.mazal-portal {
    display: flex;
    min-height: 100vh;
    background: #0f1115;
}

.portal-sidebar {
    width: 260px;
    background: #171a21;
    padding: 20px;
}

.portal-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.portal-nav li {
    margin-bottom: 12px;
}

.portal-nav a {
    color: #c6b06a;
    text-decoration: none;
}

.portal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portal-header {
    background: #1c2028;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
}

.portal-content {
    padding: 25px;
}

.portal-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: 20px;
}

.widget {
    background: #1c2028;
    padding: 20px;
    border-radius: 8px;
}