/* ============================================================
   المدرسة الليبية في مدريد — v4 Professional
   Aesthetic: Andalusian · Zellige · Deep Forest · Warm Sand · Copper
   Fonts: Noto Naskh Arabic + Playfair Display SC + Lora
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Playfair+Display+SC:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Cairo:wght@300;400;600;700;900&display=swap');

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  /* ── Core Palette ── */
  --forest:       #1b3a2d;   /* deep forest green — hero bg, sidebar */
  --forest-mid:   #25523e;
  --forest-light: #2d6b52;
  --forest-pale:  #e6f0eb;

  --sand:         #f5ede0;   /* warm Andalusian sand */
  --sand-dark:    #e8d9c4;
  --sand-deeper:  #d4c4a8;
  --parchment:    #fdf8f2;   /* lightest bg */

  --copper:       #b87333;   /* aged copper — main accent */
  --copper-light: #d4904a;
  --copper-pale:  #fdf0e0;
  --copper-dark:  #8a5520;

  --ink:          #1a1610;   /* warm near-black */
  --ink-soft:     #3d3426;
  --ink-muted:    #7a6e60;
  --ink-faint:    #a89f94;

  --white:        #ffffff;
  --border:       #e2d8cc;
  --border-mid:   #ccc0ae;

  /* ── Sections — alternating dark/light ── */
  --dark-section: #1b3a2d;
  --light-section:#fdf8f2;
  --mid-section:  #f5ede0;

  /* ── Shadows ── */
  --sh-xs: 0 1px 4px rgba(26,22,16,.07);
  --sh-sm: 0 3px 14px rgba(26,22,16,.09);
  --sh-md: 0 8px 32px rgba(26,22,16,.12);
  --sh-lg: 0 20px 60px rgba(26,22,16,.16);
  --sh-xl: 0 40px 90px rgba(26,22,16,.22);
  --sh-copper: 0 8px 32px rgba(184,115,51,.28);

  /* ── Layout ── */
  --nav-h:     72px;
  --ticker-h:  38px;
  --sidebar-w: 268px;
  --r-sm:  6px;
  --r:    12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* ── Typography ── */
  --f-ar:      'Noto Naskh Arabic', 'Cairo', serif;
  --f-display: 'Playfair Display SC', serif;
  --f-body:    'Lora', serif;
  --f-ui:      'Cairo', sans-serif;

  /* ── Motion ── */
  --spring:   cubic-bezier(.34,1.56,.64,1);
  --ease-out: cubic-bezier(0,0,.2,1);
  --ease:     cubic-bezier(.16,1,.3,1);
  --fast: 160ms;
  --med:  300ms;
  --slow: 500ms;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-ar);
  background: var(--parchment);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}
body.rtl { direction: rtl; text-align: right; }
body.ltr { direction: ltr; text-align: left; font-family: var(--f-ui); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════
   ZELLIGE TILE PATTERNS (CSS-only Islamic geometric)
   ═══════════════════════════════════════════════════════════ */
.zellige-dark {
  background-color: var(--forest);
  background-image:
    radial-gradient(circle at 25% 25%, rgba(184,115,51,.06) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(184,115,51,.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='rgba(212,144,74,0.12)' stroke-width='0.6'%3E%3Cpolygon points='28,4 52,16 52,40 28,52 4,40 4,16'/%3E%3Cpolygon points='28,10 46,19 46,37 28,46 10,37 10,19'/%3E%3Cline x1='28' y1='4' x2='28' y2='10'/%3E%3Cline x1='52' y1='16' x2='46' y2='19'/%3E%3Cline x1='52' y1='40' x2='46' y2='37'/%3E%3Cline x1='28' y1='52' x2='28' y2='46'/%3E%3Cline x1='4' y1='40' x2='10' y2='37'/%3E%3Cline x1='4' y1='16' x2='10' y2='19'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 56px 56px;
}
.zellige-light {
  background-color: var(--sand);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg fill='none' stroke='rgba(184,115,51,0.10)' stroke-width='0.5'%3E%3Crect x='2' y='2' width='36' height='36' rx='2'/%3E%3Cline x1='20' y1='2' x2='20' y2='38'/%3E%3Cline x1='2' y1='20' x2='38' y2='20'/%3E%3Ccircle cx='20' cy='20' r='7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
}

/* ═══════════════════════════════════════════════════════════
   SPLASH SCREEN
   ═══════════════════════════════════════════════════════════ */
.splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.splash-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-bg {
  position: absolute; inset: 0;
  background: var(--forest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='rgba(212,144,74,0.10)' stroke-width='0.7'%3E%3Cpolygon points='40,6 74,22 74,58 40,74 6,58 6,22'/%3E%3Cpolygon points='40,14 66,26 66,54 40,66 14,54 14,26'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.splash-inner {
  position: relative; z-index: 1;
  text-align: center; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.splash-ring {
  width: 96px; height: 96px; border-radius: 50%;
  border: 1.5px solid rgba(212,144,74,.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; position: relative;
  animation: splashBreath 2.4s ease infinite;
}
.splash-ring::before {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%; border: 1px solid rgba(212,144,74,.12);
}
.splash-ring svg { width: 48px; height: 48px; }
@keyframes splashBreath { 0%,100%{box-shadow:0 0 0 0 rgba(212,144,74,.2);} 50%{box-shadow:0 0 0 16px rgba(212,144,74,0);} }
.splash-name {
  font-family: var(--f-ar); font-size: 1.55rem; font-weight: 700;
  letter-spacing: .01em; margin-bottom: 5px;
}
.splash-sub {
  font-size: .78rem; opacity: .5; letter-spacing: .12em;
  text-transform: uppercase; font-family: var(--f-ui);
  margin-bottom: 36px;
}
.splash-track {
  width: 160px; height: 2px;
  background: rgba(255,255,255,.1); border-radius: 1px; overflow: hidden;
}
.splash-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  transition: width 40ms linear; border-radius: 1px;
}

/* ═══════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed; top: 110px; z-index: 9998;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 340px; pointer-events: none;
}
body.rtl #toast-container { right: 20px; }
body.ltr #toast-container { left: 20px; }
.toast {
  padding: 12px 18px; border-radius: var(--r);
  font-size: .86rem; font-weight: 600; color: #fff;
  box-shadow: var(--sh-md); pointer-events: all;
  animation: toastIn .3s var(--ease);
  border-inline-start: 3px solid rgba(255,255,255,.25);
}
.toast.success { background: rgba(27,58,45,.95); }
.toast.error   { background: rgba(120,30,30,.95); }
.toast.info    { background: rgba(27,58,45,.88); }
.toast.warning { background: rgba(138,85,32,.95); }
@keyframes toastIn { from{opacity:0;transform:translateY(-10px);} to{opacity:1;transform:none;} }

/* ═══════════════════════════════════════════════════════════
   NEWS TICKER
   ═══════════════════════════════════════════════════════════ */
.ticker-bar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--ticker-h);
  background: var(--copper-dark); color: rgba(255,255,255,.85);
  display: flex; align-items: center; z-index: 1001;
  font-size: .76rem; font-weight: 500;
}
.ticker-label {
  flex-shrink: 0; padding: 0 14px;
  background: var(--forest); color: var(--copper-light);
  font-weight: 800; height: 100%;
  display: flex; align-items: center; gap: 6px;
  letter-spacing: .08em; text-transform: uppercase; font-size: .7rem;
  white-space: nowrap;
}
.ticker-label svg { width: 12px; height: 12px; stroke: var(--copper-light); fill: none; flex-shrink: 0; }
.ticker-wrapper { flex: 1; overflow: hidden; }
.ticker-track { display: flex; white-space: nowrap; animation: tickerScroll 40s linear infinite; }
body.ltr .ticker-track { animation: tickerScrollLTR 40s linear infinite; }
@keyframes tickerScroll    { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes tickerScrollLTR { 0%{transform:translateX(-50%)} 100%{transform:translateX(0)} }
.ticker-item { display: inline-block; padding: 0 28px; opacity: .9; }
.ticker-sep  { color: var(--copper-light); padding: 0 4px; opacity: .5; }
.ticker-close {
  flex-shrink: 0; padding: 0 14px; height: 100%;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.35); transition: color var(--fast);
}
.ticker-close:hover { color: rgba(255,255,255,.8); }
.ticker-close svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--r-full);
  font-family: var(--f-ui); font-size: .88rem; font-weight: 700;
  cursor: pointer; border: 1.5px solid transparent;
  transition: all var(--med) var(--ease);
  white-space: nowrap; letter-spacing: .02em;
}
.btn-primary   { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-primary:hover { background: var(--forest-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,58,45,.3); }
.btn-copper    { background: var(--copper); color: #fff; border-color: var(--copper); }
.btn-copper:hover { background: var(--copper-dark); transform: translateY(-2px); box-shadow: var(--sh-copper); }
.btn-outline   { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; transform: translateY(-2px); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink-muted); }
.btn-ghost:hover { background: var(--sand); border-color: var(--border-mid); color: var(--ink); }
.btn-white { background: #fff; color: var(--forest); border-color: #fff; }
.btn-white:hover { background: var(--copper-pale); border-color: var(--copper); color: var(--copper-dark); }
.btn-sm { padding: 7px 18px; font-size: .8rem; }
.btn-xs { padding: 4px 12px; font-size: .74rem; }
.btn-danger { background: #991b1b; color: #fff; border-color: #991b1b; }
.btn-danger:hover { background: #7f1d1d; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: var(--ticker-h); left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(253,248,242,.97);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--med), background var(--med);
}
.navbar.scrolled { box-shadow: var(--sh-md); background: rgba(253,248,242,.99); }
.nav-container {
  max-width: 1380px; margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; gap: 16px;
}
/* Logo */
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpolygon points='20,3 37,12 37,28 20,37 3,28 3,12' fill='none' stroke='rgba(212,144,74,0.25)' stroke-width='1'/%3E%3C/svg%3E");
}
.logo-mark svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.logo-words { display: flex; flex-direction: column; line-height: 1.2; }
.logo-ar   { font-family: var(--f-ar); font-size: 1rem; font-weight: 700; color: var(--forest); }
.logo-es   { font-size: .62rem; color: var(--ink-faint); letter-spacing: .07em; text-transform: uppercase; font-family: var(--f-ui); font-weight: 500; }

/* Nav links */
.nav-links { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0; overflow: hidden; }
.nav-link {
  padding: 6px 11px; border-radius: 8px;
  font-family: var(--f-ui); font-size: .8rem; font-weight: 600;
  color: var(--ink-muted); transition: all var(--fast); white-space: nowrap;
}
.nav-link:hover { color: var(--forest); background: var(--forest-pale); }
.nav-link.active { color: var(--forest); background: var(--forest-pale); font-weight: 700; }
.nav-admin-link {
  background: var(--forest); color: rgba(255,255,255,.85) !important;
  font-size: .72rem; letter-spacing: .05em;
  border-radius: var(--r-full); padding: 5px 14px;
}
.nav-admin-link:hover { background: var(--forest-mid) !important; color: #fff !important; }

/* Language switcher */
.nav-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-sw {
  display: flex; background: var(--sand-dark); border-radius: var(--r-full);
  padding: 3px; gap: 2px; border: 1px solid var(--border);
}
.lang-btn {
  padding: 4px 10px; border-radius: var(--r-full); border: none;
  font-size: .72rem; font-weight: 700; color: var(--ink-muted);
  background: transparent; transition: all var(--fast); cursor: pointer; font-family: var(--f-ui);
}
.lang-btn:hover { color: var(--forest); }
.lang-btn.active { background: var(--white); color: var(--forest); box-shadow: var(--sh-xs); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 4.5px; padding: 8px;
  border-radius: var(--r-sm); transition: background var(--fast);
}
.hamburger:hover { background: var(--sand); }
.hamburger span {
  display: block; width: 21px; height: 2px;
  background: var(--ink-soft); border-radius: 2px;
  transition: all var(--med) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; width: 290px; height: 100vh;
  background: var(--parchment); z-index: 1100;
  box-shadow: var(--sh-xl); padding: 24px 18px;
  transition: transform var(--slow) var(--ease);
  display: flex; flex-direction: column; gap: 3px; overflow-y: auto;
  border-inline-start: 1px solid var(--border);
}
body.rtl .mobile-menu { right: 0; transform: translateX(110%); }
body.ltr .mobile-menu { left: 0; transform: translateX(-110%); }
.mobile-menu.open { transform: translateX(0); }
.mobile-close {
  position: absolute; top: 14px; padding: 6px; border-radius: var(--r-sm);
  color: var(--ink-muted); transition: all var(--fast);
}
body.rtl .mobile-close { left: 14px; }
body.ltr .mobile-close { right: 14px; }
.mobile-close:hover { background: var(--sand); color: var(--ink); }
.mobile-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; display: block; }
.mobile-brand {
  display: flex; align-items: center; gap: 10px;
  margin-top: 46px; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.mobile-brand-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--forest);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mobile-brand-mark svg { width: 18px; height: 18px; }
.mobile-brand-name { font-family: var(--f-ar); font-weight: 700; color: var(--forest); font-size: .92rem; }
.mob-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--r); color: var(--ink-soft); font-family: var(--f-ui);
  font-weight: 600; font-size: .88rem; transition: all var(--fast);
}
.mob-link:hover { background: var(--forest-pale); color: var(--forest); }
.mob-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; flex-shrink: 0; opacity: .5; }
.mob-admin { background: var(--forest); color: #fff !important; margin-top: 6px; }
.mob-admin:hover { background: var(--forest-mid) !important; }
.mob-admin svg { opacity: .7; }
.mobile-lang { display: flex; gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.mob-overlay {
  position: fixed; inset: 0; background: rgba(26,22,16,.55);
  z-index: 1050; opacity: 0; pointer-events: none;
  transition: opacity var(--med); backdrop-filter: blur(3px);
}
.mob-overlay.active { opacity: 1; pointer-events: all; }

/* ═══════════════════════════════════════════════════════════
   HERO — full-bleed dark with zellige overlay
   ═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--ticker-h) + var(--nav-h) + 80px) 24px 100px;
  overflow: hidden;
}
.hero-bg-base {
  position: absolute; inset: 0; z-index: 0;
  background: var(--forest);
}
.hero-slide-layer {
  position: absolute; inset: 0; z-index: 1;
  transition: opacity 1.4s var(--ease);
  opacity: 0;
}
.hero-slide-layer.active { opacity: 1; }
.hero-slide-layer::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(165deg,
    rgba(27,58,45,.88) 0%,
    rgba(27,58,45,.65) 40%,
    rgba(26,22,16,.90) 100%
  );
}
.hero-zellige {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='rgba(212,144,74,0.09)' stroke-width='0.7'%3E%3Cpolygon points='36,4 68,20 68,52 36,68 4,52 4,20'/%3E%3Cpolygon points='36,12 60,23 60,49 36,60 12,49 12,23'/%3E%3Cline x1='36' y1='4' x2='36' y2='12'/%3E%3Cline x1='68' y1='20' x2='60' y2='23'/%3E%3Cline x1='68' y1='52' x2='60' y2='49'/%3E%3Cline x1='36' y1='68' x2='36' y2='60'/%3E%3Cline x1='4' y1='52' x2='12' y2='49'/%3E%3Cline x1='4' y1='20' x2='12' y2='23'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, rgba(26,22,16,.4) 100%);
}
.hero-content {
  position: relative; z-index: 4;
  text-align: center; max-width: 820px;
  animation: heroEnter 1.1s var(--ease) .15s both;
}
@keyframes heroEnter { from{opacity:0;transform:translateY(36px);} to{opacity:1;transform:none;} }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--copper-light); font-family: var(--f-ui);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-kicker::before, .hero-kicker::after {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--copper-light); opacity: .6;
}
.hero-title {
  font-family: var(--f-ar);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700; color: #fff; line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 2px 40px rgba(0,0,0,.25);
}
.hero-title-accent { color: var(--copper-light); }
.hero-subtitle {
  font-size: clamp(.96rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.68); margin-bottom: 42px;
  font-weight: 400; max-width: 560px;
  margin-inline: auto; line-height: 1.85;
  font-family: var(--f-ui);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-dots {
  position: absolute; bottom: 42px; z-index: 4;
  display: flex; gap: 8px; align-items: center;
}
body.rtl .hero-dots { left: 50%; transform: translateX(-50%); }
body.ltr .hero-dots { left: 50%; transform: translateX(-50%); }
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: none; cursor: pointer;
  transition: all var(--med) var(--ease); padding: 0;
}
.hero-dot.active { width: 24px; border-radius: 3px; background: var(--copper-light); }
.hero-scroll-hint {
  position: absolute; bottom: 40px; right: 40px; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.35); font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; font-family: var(--f-ui);
}
body.ltr .hero-scroll-hint { right: auto; left: 40px; }
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:1;transform:scaleY(1);}50%{opacity:.3;transform:scaleY(.6);} }

/* ═══════════════════════════════════════════════════════════
   STATS BAR — dark strip
   ═══════════════════════════════════════════════════════════ */
.stats-strip {
  background: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='0.5'%3E%3Crect x='2' y='2' width='36' height='36' rx='2'/%3E%3Cline x1='20' y1='2' x2='20' y2='38'/%3E%3Cline x1='2' y1='20' x2='38' y2='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
}
.stats-row {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 32px 20px; text-align: center;
  border-inline-end: 1px solid rgba(255,255,255,.06);
}
.stat-cell:last-child { border-inline-end: none; }
.stat-num {
  display: block;
  font-family: var(--f-ar); font-size: 3rem; font-weight: 700;
  background: linear-gradient(135deg, var(--copper-light), var(--copper));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.stat-lbl { display: block; font-size: .75rem; color: rgba(255,255,255,.4); margin-top: 6px; font-family: var(--f-ui); letter-spacing: .04em; }

/* ═══════════════════════════════════════════════════════════
   SECTION SHELLS
   ═══════════════════════════════════════════════════════════ */
.section { padding: 100px 24px; }
.sec-light  { background: var(--parchment); }
.sec-sand   { background: var(--sand); }
.sec-dark   { background: var(--forest); }
.container  { max-width: 1180px; margin: 0 auto; }
.sec-head   { text-align: center; margin-bottom: 60px; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-ui); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}
.sec-kicker.on-light { color: var(--copper-dark); }
.sec-kicker.on-dark  { color: var(--copper-light); }
.sec-kicker::before,.sec-kicker::after { content:''; display:block; width:20px; height:1px; opacity:.5; }
.sec-kicker.on-light::before,.sec-kicker.on-light::after { background: var(--copper-dark); }
.sec-kicker.on-dark::before,.sec-kicker.on-dark::after   { background: var(--copper-light); }
.sec-title { font-family: var(--f-ar); font-size: clamp(1.9rem,4vw,2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 14px; }
.sec-title.on-light { color: var(--forest); }
.sec-title.on-dark  { color: #fff; }
.sec-desc  { font-size: 1rem; max-width: 560px; margin-inline: auto; line-height: 1.9; }
.sec-desc.on-light { color: var(--ink-muted); }
.sec-desc.on-dark  { color: rgba(255,255,255,.55); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-cards  { display: flex; flex-direction: column; gap: 14px; }
.about-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); padding: 22px 24px;
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  transition: all var(--med) var(--ease);
  position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute; inset-block: 0;
  width: 3px; background: linear-gradient(to bottom, var(--copper), var(--forest));
  border-radius: 0;
}
body.rtl .about-card::before { right: 0; }
body.ltr .about-card::before { left: 0; }
.about-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.about-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--forest-pale); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.about-icon svg { width: 22px; height: 22px; stroke: var(--forest); fill: none; stroke-width: 1.7; }
.about-card h3 { font-size: .96rem; font-weight: 700; color: var(--forest); margin-bottom: 5px; }
.about-card p  { font-size: .87rem; color: var(--ink-muted); line-height: 1.75; }
.about-visual  { position: relative; }
.about-img-box {
  height: 440px; border-radius: var(--r-xl); overflow: hidden; position: relative;
}
.about-img-inner {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-mid) 50%, rgba(184,115,51,.25) 100%);
  display: flex; align-items: center; justify-content: center;
}
.about-img-inner::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='0.6'%3E%3Cpolygon points='30,3 57,16.5 57,43.5 30,57 3,43.5 3,16.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.about-img-icon { position: relative; z-index: 1; opacity: .35; }
.about-img-icon svg { width: 80px; height: 80px; stroke: #fff; fill: none; }
.about-badge {
  position: absolute; bottom: -20px;
  background: var(--copper); border-radius: var(--r-lg);
  padding: 18px 22px; text-align: center;
  box-shadow: var(--sh-copper); border: 4px solid var(--white);
}
body.rtl .about-badge { left: -20px; }
body.ltr .about-badge { right: -20px; }
.about-badge-num  { display: block; font-family: var(--f-ar); font-size: 2.4rem; font-weight: 700; color: #fff; line-height: 1; }
.about-badge-text { font-size: .7rem; color: rgba(255,255,255,.8); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-family: var(--f-ui); }

/* ═══════════════════════════════════════════════════════════
   NEWS
   ═══════════════════════════════════════════════════════════ */
.news-search {
  display: flex; gap: 8px; max-width: 440px; margin: 0 auto 44px;
}
.search-in {
  flex: 1; padding: 11px 18px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-full); outline: none;
  transition: all var(--fast); font-size: .9rem; color: var(--ink);
}
.search-in:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(27,58,45,.08); }
.search-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--forest); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--fast); flex-shrink: 0;
}
.search-btn:hover { background: var(--forest-mid); }
.search-btn svg { width: 17px; height: 17px; stroke: #fff; fill: none; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px,1fr)); gap: 24px; }
.n-card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: all var(--med) var(--ease); cursor: pointer;
}
.n-card:hover { box-shadow: var(--sh-md); transform: translateY(-4px); border-color: var(--border-mid); }
.n-thumb {
  height: 190px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.n-thumb-icon { width: 52px; height: 52px; stroke: rgba(255,255,255,.55); fill: none; stroke-width: 1.2; }
.n-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.n-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; background: var(--forest-pale); color: var(--forest);
  border-radius: var(--r-full); font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; margin-bottom: 10px; width: fit-content;
}
.n-title   { font-size: .98rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.5; }
.n-excerpt { font-size: .85rem; color: var(--ink-muted); line-height: 1.75; flex: 1; }
.n-foot {
  padding: 12px 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.n-date { font-size: .74rem; color: var(--ink-faint); display: flex; align-items: center; gap: 5px; }
.n-date svg { width: 12px; height: 12px; stroke: var(--ink-faint); fill: none; }
.no-results { text-align: center; color: var(--ink-muted); padding: 60px 24px; font-family: var(--f-ui); }
.sec-more { text-align: center; margin-top: 40px; }

/* News modal */
.n-modal-thumb { height: 160px; border-radius: var(--r); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.n-modal-thumb svg { width: 52px; height: 52px; stroke: rgba(255,255,255,.5); fill: none; }
.modal-meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.modal-body-text { font-size: .95rem; line-height: 1.95; color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════
   EVENTS
   ═══════════════════════════════════════════════════════════ */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.f-btn {
  padding: 7px 18px; border-radius: var(--r-full);
  border: 1.5px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.55); font-family: var(--f-ui); font-weight: 600; font-size: .8rem;
  cursor: pointer; transition: all var(--fast);
}
.f-btn:hover { border-color: var(--copper-light); color: var(--copper-light); background: rgba(212,144,74,.08); }
.f-btn.active { background: var(--copper); border-color: var(--copper); color: #fff; box-shadow: var(--sh-copper); }
.cal-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg); padding: 28px; margin-bottom: 36px; }
.cal-head  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cal-month-title { font-family: var(--f-ar); font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,.85); }
.cal-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--fast);
}
.cal-arrow:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.cal-arrow svg { width: 15px; height: 15px; stroke: rgba(255,255,255,.6); fill: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.cal-dh   { text-align: center; font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.3); padding: 6px 2px; font-family: var(--f-ui); }
.cal-day  {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: .82rem; cursor: default; color: rgba(255,255,255,.5);
  border: none; background: none; font-family: var(--f-ui); transition: all var(--fast);
  position: relative;
}
.cal-day.today { background: var(--copper); color: #fff; font-weight: 700; }
.cal-day.has-ev { color: rgba(255,255,255,.9); font-weight: 700; cursor: pointer; }
.cal-day.has-ev::after { content:''; position:absolute; bottom:4px; left:50%; transform:translateX(-50%); width:4px; height:4px; background:var(--copper-light); border-radius:50%; }
.cal-day.has-ev:hover { background: rgba(212,144,74,.15); }
.cal-day.other-m { color: rgba(255,255,255,.12); }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 16px; }
.ev-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-lg); overflow: hidden; display: flex;
  transition: all var(--med) var(--ease);
}
.ev-card:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); border-color: rgba(212,144,74,.3); }
.ev-date {
  width: 76px; flex-shrink: 0; background: var(--copper); color: #fff;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 16px 6px; text-align: center;
}
.ev-day   { font-family: var(--f-ar); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.ev-month { font-size: .65rem; font-weight: 700; opacity: .75; margin-top: 3px; letter-spacing: .05em; font-family: var(--f-ui); }
.ev-body  { padding: 16px 20px; flex: 1; }
.ev-type  { display: inline-block; padding: 2px 9px; border-radius: var(--r-full); font-size: .67rem; font-weight: 700; margin-bottom: 7px; font-family: var(--f-ui); }
.type-cultural  { background: rgba(59,130,246,.15); color: #93c5fd; }
.type-academic  { background: rgba(52,211,153,.15); color: #6ee7b7; }
.type-religious { background: rgba(167,139,250,.15); color: #c4b5fd; }
.type-community { background: rgba(251,191,36,.15); color: #fcd34d; }
.type-sports    { background: rgba(248,113,113,.15); color: #fca5a5; }
.ev-title { font-size: .92rem; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 5px; }
.ev-desc  { font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   CLASSES
   ═══════════════════════════════════════════════════════════ */
.classes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 22px; }
.c-card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1px solid var(--border);
  transition: all var(--med) var(--ease);
}
.c-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.c-header { padding: 22px 22px 18px; display: flex; align-items: center; gap: 14px; }
.c-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.c-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.7; }
.c-name { font-size: .98rem; font-weight: 800; color: #fff; }
.c-body { padding: 0 22px 18px; }
.c-desc { font-size: .86rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 13px; }
.c-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.c-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; color: var(--ink-muted);
  background: var(--sand); padding: 3px 10px;
  border-radius: var(--r-full); border: 1px solid var(--border);
}
.c-pill svg { width: 10px; height: 10px; stroke: var(--ink-faint); fill: none; }
.c-foot {
  padding: 12px 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.c-age { font-size: .76rem; font-weight: 600; color: var(--forest); font-family: var(--f-ui); }

/* ═══════════════════════════════════════════════════════════
   ADMISSIONS
   ═══════════════════════════════════════════════════════════ */
.adm-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 64px; }
.steps-title { font-family: var(--f-ar); font-size: 1.35rem; font-weight: 700; color: var(--forest); margin-bottom: 28px; }
.steps-list  { display: flex; flex-direction: column; gap: 18px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .86rem;
  box-shadow: 0 4px 12px rgba(27,58,45,.25);
}
.step-txt h4 { font-weight: 700; color: var(--ink); margin-bottom: 3px; font-size: .94rem; }
.step-txt p  { font-size: .84rem; color: var(--ink-muted); line-height: 1.7; }
.form-box {
  background: var(--white); border-radius: var(--r-xl); padding: 36px;
  box-shadow: var(--sh-md); border: 1px solid var(--border);
}
.form-title { font-family: var(--f-ar); font-size: 1.45rem; font-weight: 700; color: var(--forest); margin-bottom: 6px; }
.form-sub   { color: var(--ink-muted); margin-bottom: 26px; font-size: .88rem; line-height: 1.65; }
.fg { margin-bottom: 15px; }
.fg label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 5px; font-size: .84rem; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r);
  outline: none; background: var(--parchment); color: var(--ink); font-size: .9rem;
  transition: all var(--fast);
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--forest); background: var(--white); box-shadow: 0 0 0 3px rgba(27,58,45,.07);
}
.fg input.invalid, .fg select.invalid, .fg textarea.invalid { border-color: #991b1b; }
.f-err { display: block; font-size: .74rem; color: #991b1b; margin-top: 3px; min-height: 1em; }
.req-title { font-family: var(--f-ar); font-size: 1.35rem; font-weight: 700; color: var(--forest); text-align: center; margin-bottom: 28px; }
.req-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px,1fr)); gap: 14px; }
.req-card  {
  background: var(--white); border-radius: var(--r-lg); padding: 22px;
  text-align: center; box-shadow: var(--sh-xs); border: 1px solid var(--border);
  transition: all var(--med) var(--ease);
}
.req-card:hover { box-shadow: var(--sh-sm); transform: translateY(-2px); border-color: var(--forest); }
.req-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--forest-pale);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 11px;
}
.req-icon svg { width: 24px; height: 24px; stroke: var(--forest); fill: none; }
.req-name { font-weight: 700; color: var(--ink); font-size: .88rem; margin-bottom: 4px; }
.req-note { font-size: .76rem; color: var(--ink-muted); }

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 12px; }
.g-item {
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  cursor: pointer; position: relative;
  box-shadow: var(--sh-xs); border: 1px solid var(--border);
  transition: all var(--med) var(--ease);
}
.g-item:hover { transform: scale(1.04); box-shadow: var(--sh-md); z-index: 2; }
.g-item:hover .g-overlay { opacity: 1; }
.g-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.g-thumb svg { width: 48px; height: 48px; stroke: rgba(255,255,255,.45); fill: none; }
.g-overlay {
  position: absolute; inset: 0;
  background: rgba(27,58,45,.82);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--med); color: #fff; gap: 8px; padding: 12px; text-align: center;
}
.g-overlay svg { width: 20px; height: 20px; stroke: rgba(255,255,255,.85); fill: none; }
.g-cap { font-size: .78rem; font-weight: 600; }
.lightbox {
  position: fixed; inset: 0; background: rgba(26,22,16,.97); z-index: 9000;
  display: flex; align-items: center; justify-content: center;
}
.lb-content { text-align: center; max-width: 360px; }
.lb-thumb   { width: 280px; height: 280px; border-radius: var(--r-xl); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.lb-thumb svg { width: 72px; height: 72px; stroke: rgba(255,255,255,.35); fill: none; }
.lb-cap { color: rgba(255,255,255,.75); font-size: .96rem; font-weight: 600; }
.lb-close {
  position: absolute; top: 20px; right: 24px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--fast);
}
.lb-close:hover { background: rgba(255,255,255,.18); }
.lb-close svg { width: 16px; height: 16px; stroke: #fff; fill: none; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--fast);
}
.lb-nav:hover { background: rgba(255,255,255,.18); }
.lb-nav svg { width: 18px; height: 18px; stroke: #fff; fill: none; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq-stack { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item  {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-xs); border: 1px solid var(--border);
  transition: border-color var(--fast);
}
.faq-item.open { border-color: var(--copper); }
.faq-q {
  width: 100%; text-align: inherit; padding: 18px 22px;
  font-size: .94rem; font-weight: 700; color: var(--ink);
  background: none; border: none; cursor: pointer; font-family: inherit;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background var(--fast);
}
.faq-q:hover { background: var(--sand); }
.faq-chevron { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--sand-dark); display: flex; align-items: center; justify-content: center; transition: all var(--med) var(--ease); }
.faq-chevron svg { width: 11px; height: 11px; stroke: var(--ink-muted); fill: none; transition: transform var(--med) var(--ease); }
.faq-item.open .faq-chevron { background: var(--copper); }
.faq-item.open .faq-chevron svg { stroke: #fff; transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; padding: 0 22px; transition: max-height .4s var(--ease), padding .4s; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 18px; }
.faq-a p { color: var(--ink-muted); line-height: 1.85; font-size: .9rem; }

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-cards  { display: flex; flex-direction: column; gap: 12px; }
.c-info-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); padding: 16px 18px;
  border-radius: var(--r-lg); box-shadow: var(--sh-xs); border: 1px solid var(--border);
}
.c-info-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--forest-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-info-icon svg { width: 17px; height: 17px; stroke: var(--forest); fill: none; }
.c-info-card h4 { font-size: .84rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.c-info-card p, .c-info-link { font-size: .84rem; color: var(--ink-muted); }
.c-info-link { transition: color var(--fast); }
.c-info-link:hover { color: var(--forest); }
.map-placeholder {
  background: linear-gradient(135deg, var(--forest-pale), var(--sand));
  border-radius: var(--r-lg); min-height: 140px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--border-mid);
}
.map-inner { text-align: center; color: var(--ink-muted); padding: 22px; }
.map-inner svg { width: 28px; height: 28px; stroke: var(--forest); fill: none; opacity: .5; margin: 0 auto 8px; }
.map-inner p { font-size: .84rem; font-weight: 600; }
.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.soc-btn {
  width: 40px; height: 40px; border-radius: var(--r-full);
  background: var(--white); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--med) var(--ease);
}
.soc-btn svg { width: 17px; height: 17px; fill: none; stroke: var(--ink-muted); }
.soc-btn:hover { background: var(--forest); border-color: var(--forest); transform: translateY(-2px); }
.soc-btn:hover svg { stroke: #fff; }
.contact-form-box {
  background: var(--white); padding: 36px; border-radius: var(--r-xl);
  box-shadow: var(--sh-md); border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════
   NEWSLETTER — dark section
   ═══════════════════════════════════════════════════════════ */
.newsletter-sec {
  background: var(--ink); padding: 80px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.newsletter-sec::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.025)' stroke-width='0.6'%3E%3Cpolygon points='28,4 52,16 52,40 28,52 4,40 4,16'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
}
.nl-inner { max-width: 500px; margin: 0 auto; position: relative; z-index: 1; }
.nl-inner h2 { font-family: var(--f-ar); font-size: clamp(1.6rem,4vw,2.3rem); font-weight: 700; color: #fff; margin-bottom: 10px; }
.nl-inner p  { color: rgba(255,255,255,.5); margin-bottom: 28px; font-size: .94rem; font-family: var(--f-ui); }
.nl-form { display: flex; gap: 8px; }
.nl-input {
  flex: 1; padding: 12px 18px; border-radius: var(--r-full); border: none;
  outline: none; font-family: inherit; font-size: .9rem;
  background: rgba(255,255,255,.09); color: #fff;
  border: 1.5px solid rgba(255,255,255,.12);
  transition: all var(--fast);
}
.nl-input::placeholder { color: rgba(255,255,255,.3); }
.nl-input:focus { background: rgba(255,255,255,.13); border-color: var(--copper-light); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer { background: #0e1f16; color: rgba(255,255,255,.5); padding: 64px 24px 0; }
.footer-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px;
}
.f-brand-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.f-logo-mark  { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.f-logo-mark svg { width: 20px; height: 20px; }
.f-brand-name { font-family: var(--f-ar); font-size: 1rem; font-weight: 700; color: rgba(255,255,255,.8); }
.f-tagline { font-size: .83rem; opacity: .4; margin-bottom: 18px; }
.f-col h4 { font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.8); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.06); letter-spacing: .08em; text-transform: uppercase; font-family: var(--f-ui); }
.f-col a, .f-col p { font-size: .82rem; }
.f-col ul { display: flex; flex-direction: column; gap: 8px; }
.f-col a  { color: rgba(255,255,255,.4); transition: color var(--fast); }
.f-col a:hover { color: var(--copper-light); }
.f-contact-col { display: flex; flex-direction: column; gap: 8px; }
.f-bar {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 18px 0; text-align: center; font-size: .76rem;
  color: rgba(255,255,255,.2); max-width: 1180px; margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   FLOATING BUTTONS
   ═══════════════════════════════════════════════════════════ */
.fab-wa {
  position: fixed; bottom: 86px; z-index: 800;
  background: #25d366; color: #fff;
  border-radius: var(--r-full); display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-family: var(--f-ui); font-weight: 700; font-size: .82rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4); text-decoration: none;
  transition: all var(--med) var(--ease);
}
body.rtl .fab-wa { right: 22px; }
body.ltr .fab-wa { left: 22px; }
.fab-wa svg { width: 17px; height: 17px; fill: #fff; flex-shrink: 0; }
.fab-wa:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(37,211,102,.5); }
.fab-wa-label { white-space: nowrap; }
.back-top {
  position: fixed; bottom: 24px; z-index: 800;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--forest); color: #fff; box-shadow: var(--sh-md); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--med) var(--ease);
}
body.rtl .back-top { right: 22px; }
body.ltr .back-top { left: 22px; }
.back-top svg { width: 17px; height: 17px; stroke: #fff; fill: none; }
.back-top:hover { background: var(--forest-mid); transform: translateY(-3px); }

/* ═══════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════ */
.modal-bg {
  position: fixed; inset: 0; background: rgba(26,22,16,.65); z-index: 9000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(6px);
}
.modal-box {
  background: var(--white); border-radius: var(--r-xl); padding: 28px;
  width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--sh-xl); border: 1px solid var(--border);
}
.modal-box.wide { max-width: 620px; }
.modal-box.slim { max-width: 380px; }
.modal-hdr {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); gap: 12px;
}
.modal-hdr h3 { font-family: var(--f-ar); font-size: 1.15rem; font-weight: 700; color: var(--forest); flex: 1; }
.modal-x {
  width: 28px; height: 28px; border-radius: 50%; background: var(--sand);
  border: 1px solid var(--border); cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--fast);
}
.modal-x:hover { background: var(--sand-dark); }
.modal-x svg { width: 13px; height: 13px; stroke: var(--ink-muted); fill: none; }
.modal-ftr { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════
   ADMIN LOGIN
   ═══════════════════════════════════════════════════════════ */
.admin-body { background: var(--sand); }
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--forest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='rgba(212,144,74,0.08)' stroke-width='0.7'%3E%3Cpolygon points='40,6 74,22 74,58 40,74 6,58 6,22'/%3E%3Cpolygon points='40,14 66,26 66,54 40,66 14,54 14,26'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px; position: relative;
}
.login-card {
  background: var(--white); border-radius: var(--r-xl); padding: 42px 40px;
  width: 100%; max-width: 420px; box-shadow: var(--sh-xl); border: 1px solid var(--border);
}
.login-logo { text-align: center; margin-bottom: 30px; }
.login-emblem { width: 68px; height: 68px; border-radius: 18px; background: var(--forest); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.login-emblem svg { width: 34px; height: 34px; }
.login-logo h1 { font-family: var(--f-ar); font-size: 1.45rem; font-weight: 700; color: var(--forest); margin-bottom: 4px; }
.login-logo p  { color: var(--ink-muted); font-size: .85rem; }
.login-err {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
  border-radius: var(--r); padding: 10px 14px; font-size: .85rem; font-weight: 600;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.login-err svg { width: 15px; height: 15px; stroke: #991b1b; fill: none; flex-shrink: 0; }
.pw-wrap { position: relative; }
body.rtl .pw-wrap input { padding-right: 42px; }
body.ltr .pw-wrap input { padding-left: 42px; }
.pw-eye { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; }
body.rtl .pw-eye { right: 11px; }
body.ltr .pw-eye { left: 11px; }
.pw-eye svg { width: 15px; height: 15px; stroke: var(--ink-muted); fill: none; display: block; }
.demo-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.demo-section p { font-size: .72rem; font-weight: 700; color: var(--ink-faint); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 9px; font-family: var(--f-ui); }
.demo-list { display: flex; flex-direction: column; gap: 5px; max-height: 200px; overflow-y: auto; }
.demo-btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--sand); border: 1px solid var(--border);
  border-radius: var(--r); cursor: pointer; font-size: .8rem; font-family: inherit;
  transition: all var(--fast); text-align: inherit; width: 100%;
}
.demo-btn:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.demo-role { font-size: .7rem; opacity: .6; }
.login-back { display: block; text-align: center; margin-top: 18px; color: var(--ink-faint); font-size: .84rem; transition: color var(--fast); }
.login-back:hover { color: var(--forest); }

/* ═══════════════════════════════════════════════════════════
   ADMIN LAYOUT
   ═══════════════════════════════════════════════════════════ */
.adm-layout-wrap { display: flex; min-height: 100vh; }
.adm-sidebar {
  width: var(--sidebar-w); background: var(--forest);
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; z-index: 200; overflow: hidden;
  transition: width var(--slow) var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='rgba(212,144,74,0.05)' stroke-width='0.6'%3E%3Cpolygon points='30,3 57,16.5 57,43.5 30,57 3,43.5 3,16.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}
body.rtl .adm-sidebar { right: 0; }
body.ltr .adm-sidebar { left: 0; }
.adm-sidebar.collapsed { width: 64px; }
.sb-top { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0; }
.sb-logo { width: 32px; height: 32px; border-radius: 8px; background: var(--copper); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.sb-logo svg { width: 17px; height: 17px; }
.sb-title { font-family: var(--f-ar); font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.8); white-space: nowrap; transition: opacity var(--med); }
.adm-sidebar.collapsed .sb-title { opacity: 0; width: 0; overflow: hidden; }
.sb-collapse { margin-inline-start: auto; width: 26px; height: 26px; border-radius: 6px; background: rgba(255,255,255,.06); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background var(--fast); }
.sb-collapse:hover { background: rgba(255,255,255,.14); }
.sb-collapse svg { width: 13px; height: 13px; stroke: rgba(255,255,255,.5); fill: none; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.sb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--copper); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: .9rem; font-family: var(--f-ui); }
.sb-user-text { overflow: hidden; transition: opacity var(--med); }
.adm-sidebar.collapsed .sb-user-text { opacity: 0; width: 0; }
.sb-uname { font-weight: 700; font-size: .83rem; color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-urole { display: inline-block; background: rgba(184,115,51,.22); color: var(--copper-light); padding: 1px 7px; border-radius: var(--r-full); font-size: .64rem; font-weight: 700; white-space: nowrap; font-family: var(--f-ui); }
.sb-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sb-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 16px;
  cursor: pointer; color: rgba(255,255,255,.48); font-size: .83rem; font-weight: 600;
  transition: all var(--fast); white-space: nowrap; font-family: var(--f-ui);
  background: none; width: 100%; text-align: inherit;
  border-inline-start: 2px solid transparent;
}
.sb-item:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.82); }
.sb-item.active { background: rgba(184,115,51,.1); color: var(--copper-light); border-inline-start-color: var(--copper); }
.adm-sidebar.collapsed .sb-item { justify-content: center; padding: 13px; }
.adm-sidebar.collapsed .sb-item-text { display: none; }
.sb-item-icon { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; fill: none; }
.sb-foot { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 6px; }
.sb-logout { display: flex; align-items: center; gap: 8px; padding: 8px 11px; background: rgba(153,27,27,.15); color: #fca5a5; border-radius: var(--r); font-family: var(--f-ui); font-weight: 600; font-size: .8rem; cursor: pointer; border: 1px solid rgba(153,27,27,.2); transition: all var(--fast); white-space: nowrap; }
.sb-logout:hover { background: #991b1b; color: #fff; }
.sb-logout svg { width: 14px; height: 14px; stroke: currentColor; fill: none; flex-shrink: 0; }
.sb-site { display: flex; align-items: center; gap: 8px; padding: 8px 11px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.4); border-radius: var(--r); font-size: .8rem; font-weight: 600; transition: all var(--fast); white-space: nowrap; font-family: var(--f-ui); }
.sb-site:hover { background: rgba(255,255,255,.09); color: rgba(255,255,255,.75); }
.sb-site svg { width: 14px; height: 14px; stroke: currentColor; fill: none; flex-shrink: 0; }
.adm-sidebar.collapsed .sb-foot { align-items: center; padding: 8px; }
.adm-sidebar.collapsed .sb-logout-text,.adm-sidebar.collapsed .sb-site-text { display: none; }
/* Admin main */
.adm-main { flex: 1; min-height: 100vh; display: flex; flex-direction: column; transition: margin var(--slow) var(--ease); }
body.rtl .adm-main { margin-right: var(--sidebar-w); }
body.ltr .adm-main { margin-left: var(--sidebar-w); }
body.rtl .collapsed-body .adm-main { margin-right: 64px; }
body.ltr .collapsed-body .adm-main  { margin-left: 64px; }
.adm-topbar { background: var(--white); padding: 14px 26px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--sh-xs); }
.adm-page-title { font-family: var(--f-ar); font-size: 1.1rem; font-weight: 700; color: var(--forest); }
.adm-topbar-right { display: flex; align-items: center; gap: 12px; }
.tb-greeting { font-size: .82rem; color: var(--ink-muted); font-family: var(--f-ui); }
.dark-tog { background: var(--sand); border: 1.5px solid var(--border); border-radius: var(--r-full); padding: 5px 13px; font-size: .76rem; font-weight: 600; cursor: pointer; font-family: var(--f-ui); color: var(--ink-muted); display: flex; align-items: center; gap: 5px; transition: all var(--fast); }
.dark-tog:hover { border-color: var(--forest); color: var(--forest); }
.dark-tog svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }
/* Admin panels */
.adm-panel { padding: 26px; }
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.panel-top h3 { font-family: var(--f-ar); font-size: 1.15rem; font-weight: 700; color: var(--forest); }
.ov-stats { display: grid; grid-template-columns: repeat(auto-fill,minmax(165px,1fr)); gap: 14px; margin-bottom: 26px; }
.ov-stat { background: var(--white); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-xs); border: 1px solid var(--border); text-align: center; border-top: 3px solid var(--forest); }
.ov-stat-n { font-family: var(--f-ar); font-size: 2.1rem; font-weight: 700; display: block; color: var(--forest); }
.ov-stat-l { font-size: .75rem; color: var(--ink-muted); margin-top: 4px; font-family: var(--f-ui); }
.ov-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ov-card { background: var(--white); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-xs); border: 1px solid var(--border); }
.ov-card h4 { font-weight: 700; color: var(--ink); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.ov-row { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .83rem; cursor: pointer; transition: color var(--fast); }
.ov-row:last-child { border: none; }
.ov-row:hover { color: var(--forest); }
.tbl-wrap { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-xs); border: 1px solid var(--border); overflow: auto; }
.data-tbl { width: 100%; border-collapse: collapse; }
.data-tbl th { background: var(--forest); color: #fff; padding: 12px 16px; font-size: .75rem; font-weight: 700; text-align: inherit; white-space: nowrap; letter-spacing: .03em; font-family: var(--f-ui); }
.data-tbl td { padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: .83rem; }
.data-tbl tr:last-child td { border: none; }
.data-tbl tr:hover td { background: var(--sand); }
.tbl-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.tb-edit { background: rgba(30,64,175,.08); color: #1e40af; border: 1px solid rgba(30,64,175,.2); border-radius: var(--r-sm); padding: 4px 10px; font-size: .73rem; cursor: pointer; transition: all var(--fast); font-family: inherit; }
.tb-edit:hover { background: #1e40af; color: #fff; }
.tb-del  { background: rgba(153,27,27,.08); color: #991b1b; border: 1px solid rgba(153,27,27,.2); border-radius: var(--r-sm); padding: 4px 10px; font-size: .73rem; cursor: pointer; transition: all var(--fast); font-family: inherit; }
.tb-del:hover  { background: #991b1b; color: #fff; }
.tb-ok   { background: rgba(22,101,52,.1); color: #166534; border: 1px solid rgba(22,101,52,.2); border-radius: var(--r-sm); padding: 4px 10px; font-size: .73rem; cursor: pointer; transition: all var(--fast); font-family: inherit; }
.tb-ok:hover   { background: #166534; color: #fff; }
.act-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(235px,1fr)); gap: 14px; }
.act-card { background: var(--white); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-xs); border: 1px solid var(--border); }
.act-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 11px; }
.act-icon-b { width: 38px; height: 38px; border-radius: 10px; background: var(--forest-pale); display: flex; align-items: center; justify-content: center; }
.act-icon-b svg { width: 18px; height: 18px; stroke: var(--forest); fill: none; }
.act-name { font-weight: 700; color: var(--ink); font-size: .88rem; margin-bottom: 4px; }
.act-desc { font-size: .8rem; color: var(--ink-muted); line-height: 1.6; }
.msgs-list { display: flex; flex-direction: column; gap: 8px; }
.msg-item { background: var(--white); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh-xs); border: 1px solid var(--border); cursor: pointer; transition: all var(--fast); border-inline-start: 3px solid var(--border); }
.msg-item:hover { box-shadow: var(--sh-sm); }
.msg-item.unread { border-inline-start-color: var(--forest); }
.msg-r1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 3px; }
.msg-sender { font-weight: 700; font-size: .86rem; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.msg-date  { font-size: .73rem; color: var(--ink-faint); }
.msg-subj  { font-size: .83rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 2px; }
.msg-prev  { font-size: .78rem; color: var(--ink-muted); }
.u-pill { background: var(--forest); color: #fff; border-radius: var(--r-full); padding: 1px 8px; font-size: .64rem; font-weight: 700; font-family: var(--f-ui); }
.msg-cnt { background: #991b1b; color: #fff; border-radius: var(--r-full); padding: 3px 10px; font-size: .73rem; font-weight: 700; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-card { background: var(--white); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-xs); border: 1px solid var(--border); }
.settings-card h4 { font-weight: 700; color: var(--forest); margin-bottom: 16px; font-size: .92rem; }
.user-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; background: var(--sand); border-radius: var(--r); margin-bottom: 6px; font-size: .8rem; }
.user-role-t { color: var(--forest); font-weight: 700; font-size: .72rem; }
.lang-pg { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.lang-pcard { background: var(--white); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-xs); border: 1px solid var(--border); }
.lang-pcard h4 { font-weight: 700; color: var(--forest); margin-bottom: 12px; border-bottom: 2px solid var(--copper); padding-bottom: 7px; font-size: .87rem; }
.lk-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .74rem; }
.lk-key { color: var(--ink-faint); font-family: monospace; flex-shrink: 0; }
.lk-val { color: var(--ink); font-weight: 600; }
.status-pill { display: inline-block; padding: 2px 9px; border-radius: var(--r-full); font-size: .7rem; font-weight: 700; font-family: var(--f-ui); }
.sp-pending  { background: rgba(146,64,14,.1); color: #92400e; }
.sp-approved { background: rgba(22,101,52,.1); color: #166534; }
.sp-rejected { background: rgba(153,27,27,.1); color: #991b1b; }
/* Dark mode */
.admin-body.dark { --parchment:#1a1f2e; --sand:#212840; --white:#232b3e; --ink:#e2e8f0; --ink-soft:#cbd5e1; --ink-muted:#94a3b8; --border:#334155; --border-mid:#475569; }
.admin-body.dark .adm-topbar,.admin-body.dark .ov-card,.admin-body.dark .ov-stat,.admin-body.dark .tbl-wrap,.admin-body.dark .act-card,.admin-body.dark .msg-item,.admin-body.dark .settings-card,.admin-body.dark .lang-pcard,.admin-body.dark .modal-box { background: var(--white); border-color: var(--border); }
.admin-body.dark .fg input,.admin-body.dark .fg select,.admin-body.dark .fg textarea { background: var(--sand); border-color: var(--border); color: var(--ink); }
.admin-body.dark .data-tbl td { border-color: var(--border); }
.admin-body.dark .data-tbl tr:hover td { background: var(--sand); }
/* Toast placeholder fix */
#toast-container.admin-toast { top: 20px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media(max-width:1100px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .adm-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media(max-width:900px) {
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .ov-cards { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .lang-pg { grid-template-columns: 1fr; }
  .adm-sidebar { width: 64px; }
  body.rtl .adm-main { margin-right: 64px; }
  body.ltr .adm-main { margin-left: 64px; }
  .adm-sidebar .sb-title,.adm-sidebar .sb-user-text,.adm-sidebar .sb-item-text,.adm-sidebar .sb-logout-text,.adm-sidebar .sb-site-text { display: none; }
  .adm-sidebar .sb-item { justify-content: center; padding: 14px; }
  .adm-sidebar .sb-foot { align-items: center; padding: 8px; }
}
@media(max-width:720px) {
  .section { padding: 64px 16px; }
  .hero { padding-top: calc(var(--ticker-h) + var(--nav-h) + 32px); }
  .hero-title { font-size: 2.4rem; }
  .hero-scroll-hint,.hero-dots { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .fab-wa-label { display: none; }
  .fab-wa { padding: 11px; border-radius: 50%; }
  .adm-sidebar { width: 0; }
  .adm-sidebar.mobile-open { width: var(--sidebar-w); }
  body.rtl .adm-main, body.ltr .adm-main { margin: 0 !important; }
  .adm-panel { padding: 14px; }
}
@media(max-width:480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .modal-box { padding: 20px; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--forest); }
