:root {
  --wqf-green: #173f37;
  --wqf-green-2: #245c4e;
  --wqf-gold: #c9a75d;
  --wqf-gold-light: #ead8ad;
  --wqf-ink: #17211f;
  --wqf-muted: #65716d;
  --wqf-cream: #f8f6f0;
  --wqf-white: #fff;
  --wqf-border: #e8e3d8;
  --wqf-shadow: 0 20px 60px rgba(23, 63, 55, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.wqf-site {
  margin: 0;
  color: var(--wqf-ink);
  background: var(--wqf-cream);
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.8;
  padding: 0;
}
body.wqf-site::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 10% 10%, rgba(201,167,93,.11), transparent 26%), radial-gradient(circle at 90% 34%, rgba(36,92,78,.08), transparent 22%);
  z-index: -1;
}
a { color: var(--wqf-green-2); }
a:hover { color: var(--wqf-green); text-decoration: none; }
img { max-width: 100%; }

.wqf-container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.wqf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #fff;
  background: rgba(23,63,55,.96);
  box-shadow: 0 10px 30px rgba(12,37,31,.14);
  backdrop-filter: blur(14px);
}
.wqf-nav { min-height: 78px; display: flex; align-items: center; gap: 24px; }
.wqf-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-inline-end: auto; }
.wqf-brand:hover { color: #fff; }
.wqf-brand img { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.wqf-brand strong { display: block; font-size: 1.05rem; line-height: 1.35; }
.wqf-brand small { display: block; color: var(--wqf-gold-light); font-size: .76rem; }
.wqf-links { display: flex; align-items: center; gap: 4px; }
.wqf-links a { color: rgba(255,255,255,.9); padding: 10px 13px; border-radius: 12px; font-weight: 600; font-size: .93rem; }
.wqf-links a:hover, .wqf-links a.is-active { color: #fff; background: rgba(255,255,255,.1); }
.wqf-login-link { border: 1px solid rgba(234,216,173,.55); color: var(--wqf-gold-light) !important; }
.wqf-menu-toggle { display: none; border: 0; color: #fff; background: rgba(255,255,255,.1); border-radius: 12px; width: 44px; height: 44px; font-size: 1.45rem; }

.wqf-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #123a31 0%, #245c4e 65%, #2d6a59 100%); color: #fff; padding: 92px 0 86px; }
.wqf-hero::after { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(234,216,173,.18); border-radius: 50%; left: -150px; top: -250px; box-shadow: 0 0 0 70px rgba(234,216,173,.04), 0 0 0 140px rgba(234,216,173,.025); }
.wqf-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
.wqf-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--wqf-gold-light); font-weight: 700; letter-spacing: .02em; }
.wqf-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--wqf-gold); }
.wqf-hero h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.25; margin: 16px 0 20px; font-weight: 800; }
.wqf-hero h1 span { color: var(--wqf-gold-light); }
.wqf-hero p { font-size: 1.12rem; color: rgba(255,255,255,.8); max-width: 650px; }
.wqf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.wqf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 22px; border-radius: 14px; border: 1px solid transparent; font-weight: 700; transition: .2s ease; cursor: pointer; }
.wqf-btn:hover { transform: translateY(-2px); }
.wqf-btn-gold { background: var(--wqf-gold); color: #173029; box-shadow: 0 10px 30px rgba(201,167,93,.24); }
.wqf-btn-gold:hover { color: #173029; background: #d7b76f; }
.wqf-btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.wqf-btn-ghost:hover { color: #fff; background: rgba(255,255,255,.12); }
.wqf-hero-mark { position: relative; text-align: center; }
.wqf-hero-mark::before { content: ""; position: absolute; inset: 9%; border: 1px solid rgba(234,216,173,.25); border-radius: 36% 64% 62% 38% / 46% 42% 58% 54%; animation: wqf-float 8s ease-in-out infinite; }
.wqf-hero-mark img { position: relative; width: min(390px, 88%); filter: drop-shadow(0 26px 34px rgba(0,0,0,.24)); }
@keyframes wqf-float { 50% { transform: rotate(7deg) scale(1.03); } }

.wqf-section { padding: 82px 0; }
.wqf-section--white { background: rgba(255,255,255,.82); }
.wqf-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.wqf-section-head h2 { color: var(--wqf-green); margin: 7px 0 0; font-size: clamp(1.75rem, 3vw, 2.55rem); font-weight: 800; }
.wqf-section-head p { color: var(--wqf-muted); margin: 0; max-width: 620px; }
.wqf-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.wqf-card { background: #fff; border: 1px solid var(--wqf-border); border-radius: 22px; padding: 26px; box-shadow: 0 9px 30px rgba(23,63,55,.06); }
.wqf-card h3 { color: var(--wqf-green); font-size: 1.16rem; font-weight: 800; margin: 14px 0 8px; }
.wqf-card p { color: var(--wqf-muted); margin: 0; }
.wqf-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--wqf-green); background: #f0eadb; font-size: 1.35rem; }
.wqf-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.wqf-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.wqf-news { overflow: hidden; padding: 0; }
.wqf-news img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #e8e3d8; }
.wqf-news-body { padding: 20px; }
.wqf-news-meta { color: var(--wqf-gold); font-size: .82rem; font-weight: 700; }
.wqf-news h3 { margin: 6px 0 8px; line-height: 1.55; }
.wqf-news p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wqf-x-panel { position: sticky; top: 98px; padding: 0; overflow: hidden; }
.wqf-x-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--wqf-border); }
.wqf-x-head strong { color: var(--wqf-green); }
.wqf-x-placeholder { padding: 30px 20px; color: var(--wqf-muted); text-align: center; }
.wqf-x-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: start; }
.wqf-x-post { min-width: 0; padding: 12px; overflow: hidden; }
.wqf-x-post .twitter-tweet, .wqf-x-post iframe { width: 100% !important; margin: 0 !important; }
.wqf-promo { display: block; padding: 0; overflow: hidden; transition: .25s ease; }
.wqf-promo:hover { transform: translateY(-4px); box-shadow: var(--wqf-shadow); }
.wqf-promo img { width: 100%; display: block; }
.wqf-promo span { display: block; padding: 14px 18px; color: var(--wqf-green); font-weight: 700; }
.wqf-bank-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.wqf-bank { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--wqf-border); border-radius: 16px; padding: 15px; }
.wqf-bank img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; }
.wqf-bank b, .wqf-bank span { display: block; }
.wqf-bank span { direction: ltr; text-align: right; color: var(--wqf-muted); font-variant-numeric: tabular-nums; }
.wqf-cta { border-radius: 28px; padding: 42px; background: linear-gradient(130deg,var(--wqf-green),#2b6556); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wqf-cta h2 { font-weight: 800; margin: 0 0 6px; }
.wqf-cta p { margin: 0; color: rgba(255,255,255,.78); }

.wqf-footer { background: #102f29; color: rgba(255,255,255,.72); padding: 48px 0 24px; }
.wqf-footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 36px; }
.wqf-footer h3 { color: #fff; font-size: 1.05rem; font-weight: 800; }
.wqf-footer a { color: rgba(255,255,255,.74); display: block; margin: 7px 0; }
.wqf-footer a:hover { color: var(--wqf-gold-light); }
.wqf-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 20px; text-align: center; font-size: .88rem; }

.wqf-auth-page { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 54px 16px; background: linear-gradient(145deg,#f7f3e8,#fff); }
.wqf-auth { width: min(940px,100%); display: grid; grid-template-columns: .85fr 1.15fr; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--wqf-shadow); border: 1px solid var(--wqf-border); }
.wqf-auth-aside { background: linear-gradient(145deg,var(--wqf-green),#2c6a59); color: #fff; padding: 48px 38px; display: flex; flex-direction: column; justify-content: space-between; }
.wqf-auth-aside img { width: 100px; }
.wqf-auth-aside h2 { font-size: 2rem; font-weight: 800; margin: 26px 0 12px; }
.wqf-auth-aside p { color: rgba(255,255,255,.75); }
.wqf-auth-main { padding: 52px; }
.wqf-auth-main h1 { color: var(--wqf-green); font-size: 2rem; font-weight: 800; }
.wqf-field { margin: 18px 0; }
.wqf-field label { display: block; color: var(--wqf-ink); font-weight: 700; margin-bottom: 7px; }
.wqf-field input { width: 100%; min-height: 52px; border: 1px solid #d8d6ce; border-radius: 14px; padding: 10px 14px; outline: none; transition: .2s; }
.wqf-field input:focus { border-color: var(--wqf-gold); box-shadow: 0 0 0 4px rgba(201,167,93,.13); }
.wqf-password { position: relative; }
.wqf-password button { position: absolute; inset-inline-end: 8px; top: 8px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: #f3f1eb; }
.wqf-form-message { display: none; border-radius: 12px; padding: 11px 14px; margin: 14px 0; }
.wqf-form-message.is-error { display:block; color:#8a2323; background:#fff0f0; }
.wqf-form-message.is-success { display:block; color:#155d42; background:#ecfbf4; }

body.wqf-admin { background: #f5f6f4; padding-top: 0; }
.wqf-admin-header { position: sticky; top:0; z-index:1000; background:#153f36; color:#fff; box-shadow:0 8px 24px rgba(0,0,0,.12); }
.wqf-admin-nav { min-height:72px; display:flex; align-items:center; gap:18px; }
.wqf-admin-nav .wqf-brand img { width:46px; height:46px; }
.wqf-admin-links { display:flex; gap:5px; align-items:center; flex-wrap:wrap; }
.wqf-admin-links a { color:rgba(255,255,255,.86); padding:9px 11px; border-radius:10px; font-size:.88rem; }
.wqf-admin-links a:hover { background:rgba(255,255,255,.1); color:#fff; }
#admin-mobile-menu { display: none; }
.wqf-admin-main { width:min(1220px,calc(100% - 32px)); margin:38px auto 80px; }
.wqf-dashboard-head { display:flex; justify-content:space-between; align-items:end; margin-bottom:24px; }
.wqf-dashboard-head h1 { color:var(--wqf-green); font-weight:800; }
.wqf-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.wqf-stat { background:#fff; border:1px solid var(--wqf-border); border-radius:20px; padding:22px; }
.wqf-stat strong { display:block; color:var(--wqf-green); font-size:2rem; line-height:1.2; font-variant-numeric:tabular-nums; }
.wqf-stat span { color:var(--wqf-muted); }
.wqf-admin-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:22px; }
.wqf-admin-action { display:flex; align-items:center; justify-content:space-between; background:#fff; border:1px solid var(--wqf-border); border-radius:17px; padding:18px 20px; font-weight:700; color:var(--wqf-green); }

@media (max-width: 980px) {
  .wqf-menu-toggle { display: block; }
  .wqf-links { display: none; position: absolute; top: 70px; inset-inline: 16px; background: #173f37; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 12px; box-shadow: 0 18px 45px rgba(0,0,0,.18); }
  .wqf-links.is-open { display: grid; }
  .wqf-links a { display: block; }
  .wqf-hero-grid, .wqf-content-grid { grid-template-columns: 1fr; }
  .wqf-hero-mark { order: -1; }
  .wqf-hero-mark img { width: 240px; }
  .wqf-x-panel { position: static; }
  .wqf-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wqf-news-grid, .wqf-x-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wqf-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wqf-admin-links { display:none; }
  #admin-mobile-menu.is-open { display: grid; top: 66px; }
}

@media (max-width: 680px) {
  .wqf-container { width: min(100% - 22px, 1180px); }
  .wqf-nav { min-height: 68px; }
  .wqf-brand img { width: 46px; height: 46px; border-radius: 13px; }
  .wqf-brand small { display: none; }
  .wqf-hero { padding: 54px 0 58px; }
  .wqf-hero-grid { gap: 24px; }
  .wqf-hero-mark img { width: 180px; }
  .wqf-hero h1 { font-size: 2.25rem; }
  .wqf-hero p { font-size: 1rem; }
  .wqf-actions .wqf-btn { flex: 1 1 100%; }
  .wqf-section { padding: 58px 0; }
  .wqf-section-head { display: block; }
  .wqf-grid-3, .wqf-news-grid, .wqf-x-grid, .wqf-bank-grid, .wqf-footer-grid, .wqf-stat-grid, .wqf-admin-actions { grid-template-columns: 1fr; }
  .wqf-card { border-radius: 18px; padding: 20px; }
  .wqf-cta { display: block; padding: 28px 22px; }
  .wqf-cta .wqf-btn { margin-top: 20px; width: 100%; }
  .wqf-auth { grid-template-columns: 1fr; }
  .wqf-auth-aside { padding: 28px; }
  .wqf-auth-aside p { display: none; }
  .wqf-auth-main { padding: 32px 22px; }
  .wqf-dashboard-head { display:block; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
