/* =============================================================================
   جمعية النداء للشباب وذوي الهمم — base styles (shared template)
   Palette: laurel green / figure rose / ring gold from the association logo
   ========================================================================== */

:root {
  /* brand */
  --broccoli: #157a32;
  --kryptonite: #1d9142;
  --ultra: #36ad57;
  --fluo: #7dd391;
  --limestoned: #a8d8b2;
  --frog: #6cbb7d;
  --amazon: #3f7a4f;
  --wicked: #2f9a4f;
  --mantis: #6b9071;
  --magnet: #525252;
  --silver: #bfc0c0;
  --dark-souls: #a3a5a3;

  /* semantic — light */
  --bg: #ffffff;
  --bg-alt: #f6f7f4;
  --bg-soft: #f9fafa;
  --surface: #ffffff;
  --surface-2: #f9fafa;
  --tint: #e7f1ea;
  --tint-2: #f1f7f2;
  --line: #e5e5e5;
  --line-soft: #edf0ed;
  --ink: #15201a;
  --ink-2: #2c3830;
  --muted: #525252;
  --muted-2: #6c726d;
  --accent: #157a32;
  --accent-strong: #0f6428;
  --accent-soft: rgba(21, 122, 50, .09);
  --btn: #157a32;
  --btn-hover: #0f6428;
  --on-btn: #ffffff;
  --deep: #072a15;
  --deep-2: #0b3a1d;
  --shade: 249, 250, 250;
  --danger: #c2410c;
  --warn: #b45309;

  --shadow-sm: 0 1px 2px rgba(18, 48, 26, .06), 0 2px 8px rgba(18, 48, 26, .04);
  --shadow: 0 10px 30px -12px rgba(18, 60, 28, .18), 0 2px 6px rgba(18, 48, 26, .05);
  --shadow-lg: 0 30px 60px -24px rgba(18, 70, 32, .32), 0 8px 18px -8px rgba(18, 48, 26, .1);
  --glow: 0 18px 40px -14px rgba(21, 122, 50, .5);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0c120e;
  --bg-alt: #101813;
  --bg-soft: #0e1511;
  --surface: #131c16;
  --surface-2: #17221b;
  --tint: #1a2b1f;
  --tint-2: #142219;
  --line: #243129;
  --line-soft: #1b2620;
  --ink: #edf3ee;
  --ink-2: #d3dcd5;
  --muted: #a3a5a3;
  --muted-2: #8b928c;
  --accent: #7dd391;
  --accent-strong: #a8d8b2;
  --accent-soft: rgba(54, 173, 87, .14);
  --btn: #1d9142;
  --btn-hover: #2f9a4f;
  --deep: #07160c;
  --deep-2: #0b2112;
  --shade: 12, 18, 14;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
  --glow: 0 18px 40px -14px rgba(54, 173, 87, .45);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.8; color: var(--ink-2);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; transition: background-color .4s, color .4s;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ultra); color: #fff; }
:focus-visible { outline: 3px solid var(--ultra); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.skip-link { position: absolute; top: -60px; inset-inline-start: 16px; z-index: 300; background: var(--btn); color: #fff; padding: 10px 18px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.hl { color: var(--accent); }
.hl-light { color: var(--fluo); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted-note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted-2); font-size: .9rem; margin-top: 18px; }
.muted-note .ic { margin-top: .3em; color: var(--accent); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.14rem); color: var(--muted); line-height: 1.95; }
.logo-on-dark { display: none !important; }
[data-theme="dark"] .logo-on-dark { display: block !important; }
[data-theme="dark"] .logo-on-light { display: none !important; }
[data-theme="dark"] .when-light, .when-dark { display: none; }
[data-theme="dark"] .when-dark { display: block; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.4em; border-radius: 14px; font-weight: 600; font-size: .98rem; line-height: 1;
  white-space: nowrap; border: 1.5px solid transparent; transform: translate(var(--mx), var(--my));
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .3s, transform .35s var(--ease);
  isolation: isolate; overflow: hidden;
}
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.btn:hover .ic-arrow, .btn:hover .ic:last-child:not(:first-child) { transform: translateX(-4px); }
.btn--sm { min-height: 40px; padding: 0 1em; font-size: .9rem; border-radius: 12px; }
.btn--lg { min-height: 56px; padding: 0 1.8em; font-size: 1.04rem; border-radius: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--btn); color: var(--on-btn); box-shadow: var(--glow); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .28) 45%, transparent 70%);
  transform: translateX(120%); transition: transform .8s var(--ease);
}
.btn--primary:hover { background: var(--btn-hover); }
.btn--primary:hover::after { transform: translateX(-120%); }
.btn--outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--outline:hover { background: var(--accent-soft); }
.btn--ghost { background: var(--accent-soft); color: var(--accent); }
.btn--ghost:hover { background: var(--tint); }
.btn--light { background: #fff; color: var(--broccoli); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
.btn--light:hover { background: #f1f8f0; }
.btn--glass { background: rgba(255, 255, 255, .6); color: var(--ink); border-color: rgba(21, 122, 50, .22); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .9); }
[data-theme="dark"] .btn--glass { background: rgba(20, 30, 23, .55); color: var(--ink); border-color: rgba(125, 211, 145, .25); }
.btn--glass-dark { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--glass-dark:hover { background: rgba(255, 255, 255, .18); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-row--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--accent); }
.link-arrow .ic { transition: transform .35s var(--ease); }
a:hover .link-arrow .ic, .link-arrow:hover .ic { transform: translateX(-5px); }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--surface); transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--limestoned); background: var(--tint-2); }
.icon-btn .ic { width: 20px; height: 20px; }
.link-btn { color: var(--accent); font-weight: 600; font-size: .88rem; }
.copy-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--accent); background: var(--accent-soft); vertical-align: middle; }
.copy-btn .ic { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(21, 122, 50, .16); margin-bottom: 16px; line-height: 1.6;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; }
.eyebrow .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; animation: ping 2.4s var(--ease) infinite; }
.eyebrow--light { color: #d9f5d2; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.eyebrow--glass { background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px); border-color: rgba(21, 122, 50, .2); }
[data-theme="dark"] .eyebrow--glass { background: rgba(18, 28, 21, .7); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

/* ---------------------------------------------------------------- preloader */
.preloader { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--bg); transition: opacity .6s var(--ease), visibility .6s; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.js-no-preload .preloader { display: none; }
.preloader-inner { position: relative; display: grid; justify-items: center; gap: 14px; }
.preloader-logo { width: 92px; height: auto; animation: preLogo 1.1s var(--ease-spring) both; }
.preloader-ring { position: absolute; top: -26px; width: 144px; height: 144px; border-radius: 50%; border: 2px solid var(--tint); border-top-color: var(--ultra); animation: spin 1s linear infinite; }
.preloader p { margin: 34px 0 0; font-weight: 600; color: var(--accent); font-size: .95rem; animation: fadeUp .8s .3s var(--ease) both; }
@keyframes preLogo { from { transform: scale(.5) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- topbar & header */
.topbar { background: linear-gradient(90deg, var(--broccoli), var(--kryptonite) 60%, var(--wicked)); color: #fff; font-size: .9rem; position: relative; z-index: 60; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; line-height: 1.5; padding-block: 6px; }
.topbar p .ic { width: 16px; height: 16px; color: #d6f5cd; }
.topbar a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.topbar a .ic { color: #fff; }
.topbar-close { position: absolute; inset-inline-end: 16px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #fff; opacity: .8; }
.topbar-close:hover { background: rgba(255, 255, 255, .15); opacity: 1; }
.topbar-close .ic { width: 16px; height: 16px; }
.topbar.is-closed { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(var(--shade), .82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: transform .45s var(--ease), border-color .3s, background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -20px rgba(0, 0, 0, .25); background: rgba(var(--shade), .92); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { width: 50px; height: auto; transition: transform .5s var(--ease-spring); }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: grid; line-height: 1.35; }
.brand-text b { font-size: 1.04rem; color: var(--ink); font-weight: 700; }
.brand-text small { font-size: .74rem; color: var(--muted-2); font-weight: 500; }
.main-nav { margin-inline-start: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 9px 12px; border-radius: 10px;
  font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: color .25s, background-color .25s;
}
.main-nav > ul > li > a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--ultra);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.is-active { color: var(--accent); }
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.is-active::after { transform: scaleX(1); }
.caret { width: 14px; height: 14px; transition: transform .3s; }
.has-mega:hover .caret, .has-mega:focus-within .caret { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 14px); inset-inline-start: 50%; transform: translate(50%, 10px);
  width: min(760px, 92vw); display: grid; grid-template-columns: 1fr 230px; gap: 14px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
}
.mega::before { content: ""; position: absolute; inset-inline: 0; top: -16px; height: 16px; }
.mega--sm { width: 330px; grid-template-columns: 1fr; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(50%, 0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-grid--1 { grid-template-columns: 1fr; }
.mega-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; transition: background-color .25s; }
.mega-item:hover { background: var(--tint-2); }
.mega-item b { display: block; font-size: .93rem; color: var(--ink); font-weight: 600; line-height: 1.4; }
.mega-item small { display: block; font-size: .78rem; color: var(--muted-2); line-height: 1.5; }
.mega-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); transition: transform .35s var(--ease-spring), background-color .25s, color .25s; }
.mega-item:hover .mega-ic { transform: scale(1.1) rotate(-6deg); background: var(--btn); color: #fff; }
.mega-ic .ic { width: 20px; height: 20px; }
.mega-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 20px; border-radius: 16px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, var(--ultra), transparent 60%), linear-gradient(160deg, var(--broccoli), var(--deep-2));
}
.mega-card b { font-size: 1.02rem; line-height: 1.6; }
.mega-card .link-arrow { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.scroll-progress { position: absolute; bottom: -1px; inset-inline: 0; height: 2px; transform-origin: right; transform: scaleX(0); background: linear-gradient(90deg, var(--fluo), var(--broccoli)); }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 10, .45); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.is-open > .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(380px, 88vw); background: var(--surface);
  display: flex; flex-direction: column; gap: 18px; padding: 18px; overflow-y: auto;
  transform: translateX(-100%); transition: transform .45s var(--ease); box-shadow: var(--shadow-lg);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head .brand-logo { width: 42px; }
.drawer-nav { display: grid; gap: 2px; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 12px; border-radius: 12px; font-weight: 600; color: var(--ink); }
.drawer-nav a .ic { width: 16px; height: 16px; color: var(--muted-2); }
.drawer-nav a.is-active, .drawer-nav a:hover { background: var(--tint-2); color: var(--accent); }
.drawer-label { margin: 0 0 6px; font-size: .78rem; font-weight: 700; color: var(--muted-2); padding-inline: 12px; }
.drawer-programs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.drawer-programs a { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--bg-alt); font-size: .86rem; font-weight: 500; }
.drawer-programs a .ic { color: var(--accent); width: 18px; height: 18px; }
.drawer-actions { display: grid; gap: 10px; margin-top: auto; }
.drawer-staff { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .88rem; color: var(--muted-2); padding: 8px; }
.drawer-staff .ic { width: 16px; height: 16px; }
.is-locked { overflow: hidden; }

/* ---------------------------------------------------------------- reveal / motion primitives */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="left"] { transform: translateX(-46px); }
.js [data-reveal="right"] { transform: translateX(46px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--w) * 55ms + 80ms); }
.is-split.is-in .split-word > span, .is-in .is-split .split-word > span { transform: none; }
[data-float] { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }
[data-spot] { --sx: 50%; --sy: 50%; }
[data-spot]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(320px circle at var(--sx) var(--sy), rgba(54, 173, 87, .16), transparent 60%);
}
[data-spot]:hover::before { opacity: 1; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding-block: clamp(70px, 9vw, 120px); }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { margin-inline: auto; }
.section-head--start { margin-bottom: 0; }
.section-head h2 { margin-bottom: 14px; }
.section-head .lead { margin: 0; }
.section-head--light h2 { color: #fff; }
.section-head--light .lead { color: rgba(230, 245, 230, .78); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------------------------------------------------------------- hero slider */
.hero { --dur: 7000ms; position: relative; height: clamp(600px, calc(100svh - var(--header-h) - 42px), 860px); overflow: hidden; background: var(--tint-2); isolation: isolate; }
.hero-stage { display: grid; height: 100%; }
.hero-slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-media { position: absolute; inset: 0; overflow: hidden; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.04); transition: transform 1.2s var(--ease); }
.hero-flip { width: 100%; height: 100%; transform: scaleX(-1); }
.hero-img, .hero-flip > img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-img { transform: scale(1.16); transition: transform 9s cubic-bezier(.2, .6, .3, 1); }
.hero-slide.is-active .hero-img { transform: scale(1.02); }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to left, rgba(var(--shade), .96) 0%, rgba(var(--shade), .86) 28%, rgba(var(--shade), .35) 50%, rgba(var(--shade), 0) 64%),
    linear-gradient(to top, rgba(var(--shade), .7), rgba(var(--shade), 0) 30%);
}
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-bottom: 96px; }
.hero-copy { max-width: 620px; }
.hero-copy > * { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
.hero-slide.is-active .hero-copy > * { opacity: 1; transform: none; filter: none; }
.hero-slide.is-active .hero-copy > :nth-child(1) { transition-delay: .25s; }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: .4s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: .58s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: .74s; }
.hero-title { font-size: clamp(2.1rem, 4.1vw, 3.6rem); line-height: 1.3; margin-bottom: 18px; color: var(--ink); }
.hero-title .hl { background: linear-gradient(90deg, var(--kryptonite), var(--ultra)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { font-size: clamp(1.02rem, 1.4vw, 1.17rem); color: var(--muted); max-width: 520px; margin-bottom: 30px; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-controls { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; padding-bottom: 26px; }
.hero-controls-inner { display: flex; align-items: flex-end; gap: 24px; }
.hero-tabs { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.hero-tab { display: grid; gap: 6px; text-align: start; padding-top: 4px; color: var(--muted-2); transition: color .3s; }
.hero-tab-bar { height: 3px; border-radius: 3px; background: rgba(21, 122, 50, .18); overflow: hidden; }
.hero-tab-bar i { display: block; height: 100%; width: 100%; background: var(--broccoli); transform: scaleX(0); transform-origin: right; }
.hero-tab.is-active .hero-tab-bar i { animation: tabfill var(--dur) linear forwards; }
.hero-tab.is-done .hero-tab-bar i { transform: scaleX(1); }
.hero.is-paused .hero-tab.is-active .hero-tab-bar i { animation-play-state: paused; }
.hero-tab-num { font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.hero-tab-label { font-size: .86rem; font-weight: 600; line-height: 1.3; }
.hero-tab:hover, .hero-tab.is-active { color: var(--ink); }
.hero-tab.is-active .hero-tab-num { color: var(--accent); }
@keyframes tabfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .75); border: 1px solid rgba(21, 122, 50, .18); color: var(--ink); backdrop-filter: blur(10px); transition: background-color .25s, transform .3s var(--ease-spring), color .25s; }
.hero-arrow:hover { background: var(--btn); color: #fff; transform: scale(1.08); }
[data-theme="dark"] .hero-arrow { background: rgba(20, 30, 23, .7); }
.hero-arrow .ic { width: 20px; height: 20px; }
.hero .when-paused, .hero.is-paused .when-playing { display: none; }
.hero.is-paused .when-paused { display: block; }
.hero-leaves { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-leaves i {
  position: absolute; top: -40px; width: 18px; height: 18px; border-radius: 0 70% 0 70%;
  background: linear-gradient(135deg, var(--fluo), var(--broccoli)); opacity: .55; animation: leaf 16s linear infinite;
}
.hero-leaves i:nth-child(1) { left: 12%; animation-delay: 0s; }
.hero-leaves i:nth-child(2) { left: 28%; width: 12px; height: 12px; animation-delay: -5s; animation-duration: 19s; }
.hero-leaves i:nth-child(3) { left: 46%; width: 14px; height: 14px; animation-delay: -9s; animation-duration: 22s; }
.hero-leaves i:nth-child(4) { left: 64%; width: 10px; height: 10px; animation-delay: -2s; animation-duration: 18s; }
.hero-leaves i:nth-child(5) { left: 84%; animation-delay: -12s; animation-duration: 24s; }
@keyframes leaf {
  0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; }
  10% { opacity: .55; }
  50% { transform: translate3d(40px, 50vh, 0) rotate(200deg); }
  90% { opacity: .4; }
  100% { transform: translate3d(-30px, 105vh, 0) rotate(420deg); opacity: 0; }
}

/* ---------------------------------------------------------------- ribbon marquee */
.ribbon { background: var(--broccoli); color: #fff; padding-block: 18px; position: relative; z-index: 2; overflow: hidden; }
.ribbon::before, .ribbon::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.ribbon::before { left: 0; background: linear-gradient(90deg, var(--broccoli), transparent); }
.ribbon::after { right: 0; background: linear-gradient(-90deg, var(--broccoli), transparent); }
.marquee { direction: ltr; overflow: hidden; }
.marquee-track { direction: ltr; display: flex; width: max-content; animation: marquee var(--marquee-dur, 50s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.ribbon-item { direction: rtl; display: inline-flex; align-items: center; gap: 28px; padding-inline: 14px; font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.ribbon-item .ic { width: 18px; height: 18px; color: var(--fluo); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- intro */
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.purpose-quote { position: relative; margin: 28px 0 0; padding: 22px 24px; border-radius: 18px; background: var(--tint-2); border: 1px solid var(--line-soft); display: flex; gap: 14px; }
.purpose-quote .ic { width: 28px; height: 28px; color: var(--ultra); flex: none; }
.purpose-quote p { margin: 0; color: var(--ink-2); line-height: 1.9; }
.purpose-quote b { color: var(--accent); }
.intro-visual { position: relative; min-height: 540px; }
.intro-photo { margin: 0; position: absolute; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow-lg); }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.intro-photo:hover img { transform: scale(1.05); }
.intro-photo--main { inset-inline-start: 0; top: 0; width: 84%; height: 82%; }
.intro-photo--small { inset-inline-end: 0; bottom: 0; width: 46%; height: 44%; border: 6px solid var(--bg); }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: rgba(var(--shade), .9); backdrop-filter: blur(12px); box-shadow: var(--shadow); border: 1px solid var(--line-soft);
  animation: floaty 6s ease-in-out infinite; z-index: 2;
}
.float-chip .ic { width: 22px; height: 22px; color: #fff; background: var(--btn); padding: 8px; box-sizing: content-box; border-radius: 12px; }
.float-chip b { display: block; color: var(--ink); font-size: .92rem; line-height: 1.4; }
.float-chip small { display: block; color: var(--muted-2); font-size: .78rem; }
.float-chip--a { top: 8%; inset-inline-end: -2%; }
.float-chip--b { bottom: 30%; inset-inline-start: -4%; animation-delay: -3s; }

/* ---------------------------------------------------------------- stats band */
.stats-band { background: radial-gradient(60% 120% at 85% 0%, rgba(125, 211, 145, .45), transparent 60%), linear-gradient(135deg, var(--broccoli), var(--deep-2)); color: #fff; padding-block: 54px; position: relative; overflow: hidden; }
.stats-band::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.stat { text-align: center; padding: 8px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-inline-start: -12px; top: 18%; bottom: 18%; width: 1px; background: rgba(255, 255, 255, .2); }
.stat b { display: block; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: rgba(235, 248, 232, .85); font-weight: 500; }

/* ---------------------------------------------------------------- journey */
.journey { --p: 0; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.journey-line { position: absolute; top: 44px; inset-inline: 16%; height: 3px; border-radius: 3px; background: var(--line); }
.journey-line i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(-90deg, var(--fluo), var(--broccoli)); transform-origin: right; transform: scaleX(var(--p)); }
.journey-node { position: relative; text-align: center; padding: 0 12px; }
.journey-ic { position: relative; z-index: 1; width: 88px; height: 88px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--accent); transition: transform .5s var(--ease-spring), background-color .4s, color .4s; }
.journey-ic .ic { width: 36px; height: 36px; }
.journey-node.is-lit .journey-ic { background: var(--btn); color: #fff; border-color: transparent; box-shadow: var(--glow); transform: translateY(-4px) rotate(-4deg); }
.journey-step { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.journey-node h3 { font-size: 1.4rem; }
.journey-node p { color: var(--muted); max-width: 330px; margin-inline: auto; }
.journey-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.journey-tags span { font-size: .8rem; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ---------------------------------------------------------------- program cards / bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prog-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden; transition: box-shadow .4s var(--ease), border-color .4s, transform .5s var(--ease);
}
.prog-card:hover { box-shadow: var(--shadow-lg); border-color: var(--limestoned); }
.prog-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.prog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.prog-card:hover .prog-card-media img { transform: scale(1.08); }
.prog-num { position: absolute; top: 14px; inset-inline-start: 14px; font-size: .82rem; font-weight: 700; color: var(--broccoli); background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); padding: 4px 11px; border-radius: 999px; }
.prog-num--lg { font-size: 1.6rem; padding: 6px 16px; border-radius: 16px; }
.prog-card-body { position: relative; padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prog-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; transition: transform .5s var(--ease-spring), background-color .3s, color .3s; }
.prog-ic .ic { width: 24px; height: 24px; }
.prog-ic--light { background: rgba(255, 255, 255, .16); color: #fff; }
.prog-card:hover .prog-ic { transform: rotate(-8deg) scale(1.08); background: var(--btn); color: #fff; }
.prog-card-body h3 { margin-bottom: 4px; font-size: 1.15rem; }
.prog-tag { color: var(--accent); font-weight: 600; margin-bottom: 10px; font-size: .95rem; }
.prog-sum { color: var(--muted); font-size: .94rem; flex: 1; }
.prog-card .link-arrow { margin-top: 4px; font-size: .92rem; }
.prog-card.span-2 { grid-column: span 2; flex-direction: row; }
.prog-card.span-2 .prog-card-media { aspect-ratio: auto; width: 48%; flex: none; }
.prog-card.span-2 .prog-card-body { padding: 28px; justify-content: center; }
.prog-card.span-2 h3 { font-size: 1.35rem; }
.prog-card--compact { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; }

/* ---------------------------------------------------------------- model */
.model-section { background: var(--deep); color: #e6f2e6; overflow: hidden; }
.model-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 85% 10%, rgba(54, 173, 87, .3), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(21, 122, 50, .35), transparent 70%); }
.model-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.model-section .container { position: relative; }
.model { --p: 0; position: relative; }
.model-line { position: absolute; top: 36px; inset-inline: 8%; height: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px; }
.model-line i { position: absolute; inset: 0; background: linear-gradient(-90deg, var(--fluo), var(--ultra)); transform-origin: right; transform: scaleX(var(--p)); box-shadow: 0 0 18px rgba(125, 211, 145, .7); border-radius: inherit; }
.model-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; }
.model-step { text-align: center; }
.model-dot { position: relative; width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: #10351b; border: 1.5px solid rgba(125, 211, 145, .35); color: var(--fluo); transition: background-color .5s, transform .5s var(--ease-spring), box-shadow .5s, color .5s; }
.model-dot > span { display: grid; }
.model-dot .ic { width: 28px; height: 28px; }
.model-dot b { position: absolute; top: -4px; inset-inline-end: -4px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--fluo); color: var(--deep); font-size: .8rem; }
.model-step.is-lit .model-dot { background: var(--kryptonite); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 8px rgba(54, 173, 87, .14), 0 14px 30px -8px rgba(54, 173, 87, .6); }
.model-step h3 { color: #fff; font-size: 1.08rem; margin-bottom: 6px; }
.model-step p { color: rgba(220, 238, 220, .72); font-size: .9rem; line-height: 1.8; margin: 0; }
.question-card { margin: 64px auto 0; max-width: 820px; text-align: center; padding: 38px 32px; border-radius: 28px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); }
.question-card span { display: block; font-size: .85rem; font-weight: 600; color: var(--fluo); margin-bottom: 8px; }
.question-card p { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 700; color: #fff; margin-bottom: 22px; line-height: 1.4; }

/* ---------------------------------------------------------------- values */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card { position: relative; overflow: hidden; padding: 28px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .4s, border-color .4s; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--limestoned); }
.value-ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg, var(--tint), var(--tint-2)); color: var(--accent); margin-bottom: 18px; transition: transform .6s var(--ease-spring); }
.value-ic .ic { width: 26px; height: 26px; }
.value-card:hover .value-ic { transform: rotate(-10deg) scale(1.1); }
.value-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.value-num { position: absolute; top: 14px; inset-inline-end: 18px; font-size: 2.6rem; font-weight: 700; color: var(--tint); line-height: 1; transition: color .4s; }
.value-card:hover .value-num { color: var(--limestoned); }

/* ---------------------------------------------------------------- film / promise */
.film-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.film-card { position: relative; aspect-ratio: 4 / 4.6; border-radius: 32px; overflow: hidden; background: #ebebeb; box-shadow: var(--shadow-lg); }
.film-video { width: 100%; height: 100%; object-fit: cover; }
.film-badge { position: absolute; top: 18px; inset-inline-start: 18px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--broccoli); font-weight: 700; font-size: .82rem; backdrop-filter: blur(6px); }
.film-badge .ic { width: 16px; height: 16px; }
.promise { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.4; }
.identity-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.identity-lines div { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.section--alt .identity-lines div { background: var(--surface); }
.identity-lines small { display: block; color: var(--muted-2); font-size: .8rem; font-weight: 600; margin-bottom: 4px; }
.identity-lines b { color: var(--ink); font-size: 1.02rem; line-height: 1.6; }

/* ---------------------------------------------------------------- doors */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.door { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 380px; padding: 34px 30px; border-radius: 28px; transition: transform .5s var(--ease), box-shadow .4s; isolation: isolate; }
.door:hover { box-shadow: var(--shadow-lg); }
.door h3 { font-size: 1.7rem; margin-bottom: 10px; }
.door p { flex: 1; }
.door-ic { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 20px; margin-bottom: 22px; }
.door-ic .ic { width: 28px; height: 28px; }
.door-kicker { font-size: .82rem; font-weight: 700; margin-bottom: 6px; opacity: .85; }
.door-bg { position: absolute; inset-inline-end: -40px; bottom: -40px; z-index: -1; opacity: .12; transition: transform 1s var(--ease); }
.door-bg .ic { width: 230px; height: 230px; stroke-width: 1.2; }
.door:hover .door-bg { transform: rotate(-12deg) scale(1.1); }
.door--help { background: linear-gradient(150deg, var(--kryptonite), var(--broccoli) 55%, var(--deep-2)); color: #e9f7e6; }
.door--help h3, .door--help .link-arrow { color: #fff; }
.door--help .door-ic { background: rgba(255, 255, 255, .16); color: #fff; }
.door--give { background: var(--tint-2); color: var(--ink-2); border: 1px solid var(--line); }
.door--give .door-ic { background: var(--btn); color: #fff; }
.door--give .door-bg { color: var(--broccoli); }
.door--join { background: var(--deep); color: #d4e8d4; }
.door--join h3, .door--join .link-arrow { color: #fff; }
.door--join .door-ic { background: rgba(125, 211, 145, .18); color: var(--fluo); }

/* ---------------------------------------------------------------- news */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .4s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card-media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--tint), var(--tint-2)); overflow: hidden; display: grid; place-items: center; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-card:hover .news-card-media img { transform: scale(1.06); }
.news-card-media .news-ph { width: 70px; opacity: .5; }
.news-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; gap: 12px; align-items: center; font-size: .8rem; color: var(--muted-2); margin-bottom: 8px; }
.news-meta .tag { color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.news-card h3 { font-size: 1.12rem; line-height: 1.55; }
.news-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.news-skeleton { height: 360px; border-radius: 22px; background: linear-gradient(90deg, var(--bg-alt), var(--tint-2), var(--bg-alt)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.news-toolbar { display: flex; justify-content: flex-start; margin-bottom: 26px; }
.empty-state { text-align: center; max-width: 560px; margin: 20px auto; padding: 50px 24px; border-radius: 28px; background: var(--bg-alt); border: 1px dashed var(--limestoned); }
.empty-art { width: 110px; margin: 0 auto 18px; }
.empty-logo { width: 110px; animation: floaty 6s ease-in-out infinite; }
.empty-state p { color: var(--muted); }
.article { max-width: 820px; margin-inline: auto; }
.article-back { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--accent); margin-bottom: 22px; }
.article-cover { border-radius: 26px; overflow: hidden; margin: 24px 0 30px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; }
.article-body p { font-size: 1.1rem; line-height: 2.05; color: var(--ink-2); }
.article-share { display: flex; gap: 10px; align-items: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- faq */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-contact { display: grid; gap: 10px; margin: 22px 0; }
.faq-contact a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.faq-contact .ic { color: var(--accent); }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; overflow: hidden; }
.faq-item[open] { border-color: var(--limestoned); box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--accent-soft); transition: background-color .3s, transform .4s var(--ease); }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--accent); border-radius: 2px; transition: transform .4s var(--ease), background-color .3s; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle { background: var(--btn); transform: rotate(180deg); }
.faq-item[open] .faq-toggle::before, .faq-item[open] .faq-toggle::after { background: #fff; }
.faq-item[open] .faq-toggle::after { transform: rotate(0); }
.faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-body p { margin: 0; }
.faq-narrow { max-width: 860px; }
.faq-cta { margin-top: 36px; padding: 28px; border-radius: 22px; background: var(--tint-2); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.faq-cta h3 { margin-bottom: 4px; }
.faq-cta p { margin: 0; color: var(--muted); }
.faq-cta .btn-row { margin: 0; }

/* ---------------------------------------------------------------- visit / contact */
.visit-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: stretch; }
.visit-side { display: grid; gap: 18px; align-content: start; }
.visit-photo { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; }
.map-card { position: relative; min-height: 460px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--tint); box-shadow: var(--shadow); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.9); }
[data-theme="dark"] .map-card iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }
.map-card--tall { min-height: 100%; }
.map-chip { position: absolute; inset-inline: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(var(--shade), .94); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.map-chip > .ic { width: 22px; height: 22px; color: #fff; background: var(--btn); padding: 10px; box-sizing: content-box; border-radius: 14px; }
.map-chip > span { flex: 1; }
.map-chip b { display: block; color: var(--ink); }
.map-chip small { color: var(--muted-2); font-size: .82rem; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s, box-shadow .3s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--limestoned); box-shadow: var(--shadow); }
.contact-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); flex: none; transition: background-color .3s, color .3s; }
.contact-card:hover .contact-ic { background: var(--btn); color: #fff; }
.contact-card small { display: block; color: var(--muted-2); font-size: .8rem; }
.contact-card b { color: var(--ink); font-size: 1rem; word-break: break-word; }
.page-contact .contact-cards { grid-template-columns: repeat(3, 1fr); margin-bottom: 30px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: stretch; }
.contact-side { display: grid; }

/* ---------------------------------------------------------------- final cta & footer */
.final-cta { padding-block: 0 80px; background: var(--bg); position: relative; z-index: 2; }
.section--alt + .final-cta, .page-dash .final-cta { background: var(--bg-alt); }
.final-cta-inner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: clamp(36px, 5vw, 60px); border-radius: 32px; color: #e5f3e2; background: linear-gradient(135deg, var(--broccoli), var(--deep-2)); max-width: 1192px; }
.final-cta-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; top: -260px; inset-inline-start: -120px; background: radial-gradient(circle, rgba(125, 211, 145, .55), transparent 65%); animation: drift 12s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate(-120px, 80px) scale(1.15); } }
.final-cta-copy { position: relative; max-width: 640px; }
.final-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 10px; }
.final-cta p { margin: 0; color: rgba(230, 245, 228, .8); }
.final-cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { position: relative; overflow: hidden; background: #07170c; color: rgba(220, 236, 220, .72); padding-top: 70px; }
.footer-aurora { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 70% at 90% 100%, rgba(29, 145, 66, .35), transparent 70%), radial-gradient(35% 60% at 5% 0%, rgba(54, 173, 87, .18), transparent 70%); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.brand--footer img { width: 54px; }
.brand--footer .brand-text b { color: #fff; }
.brand--footer .brand-text small { color: rgba(220, 236, 220, .6); }
.footer-about p { margin: 18px 0; font-size: .92rem; line-height: 1.95; }
.footer-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(125, 211, 145, .12); color: var(--fluo); font-weight: 600; font-size: .88rem; border: 1px solid rgba(125, 211, 145, .25); transition: background-color .3s; }
.footer-pill:hover { background: rgba(125, 211, 145, .22); }
.footer-pill .ic { width: 18px; height: 18px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a { font-size: .93rem; transition: color .25s, padding .3s var(--ease); }
.site-footer ul a:hover { color: var(--fluo); padding-inline-start: 4px; }
.footer-contact a { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { width: 18px; height: 18px; color: var(--fluo); margin-top: .35em; }
.footer-cta-row { display: flex; gap: 8px; margin-top: 18px; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { display: inline-flex; align-items: center; gap: 5px; }
.footer-links a:hover { color: var(--fluo); }
.footer-links .ic { width: 14px; height: 14px; }
.mobile-bar { display: none; }
.to-top { position: fixed; z-index: 40; inset-inline-start: 22px; bottom: 22px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--accent); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .4s, transform .5s var(--ease-spring); }
.to-top.is-on { opacity: 1; transform: none; }
.to-top svg { position: absolute; inset: 2px; width: 44px; height: 44px; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: var(--ultra); stroke-width: 2.5; stroke-dasharray: 126; stroke-dashoffset: calc(126 - 126 * var(--p, 0)); stroke-linecap: round; }
.to-top .ic { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- page hero */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(70px, 10vw, 130px) clamp(90px, 11vw, 150px); background: var(--tint-2); isolation: isolate; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.kenburns { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translateX(-1.5%); } }
.page-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(var(--shade), .97) 0%, rgba(var(--shade), .94) 40%, rgba(var(--shade), .72) 60%, rgba(var(--shade), .28) 82%, rgba(var(--shade), .12)); }
.page-hero-inner { max-width: 1240px; }
.page-hero h1 { max-width: 760px; margin-bottom: 16px; }
.page-hero .lead { max-width: 640px; margin: 0; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero-curve { position: absolute; inset-inline: -10%; bottom: -1px; height: 70px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted-2); margin-bottom: 22px; }
.crumbs a:hover { color: var(--accent); }
.crumbs .ic { width: 14px; height: 14px; }
.crumbs span { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- about */
.about-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-logo-card { position: relative; border-radius: 36px; background: radial-gradient(circle at 50% 40%, #fff, var(--tint)); padding: 30px; box-shadow: var(--shadow-lg); }
[data-theme="dark"] .about-logo-card { background: radial-gradient(circle at 50% 40%, #f5f8f5, #cfdccf); }
.about-logo-card img { border-radius: 26px; mix-blend-mode: multiply; }
.cover-banner { padding-bottom: clamp(50px, 7vw, 90px); }
.cover-img { width: 100%; border-radius: 28px; box-shadow: var(--shadow-lg); }
.vmp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vmp-card { position: relative; overflow: hidden; padding: 34px 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .4s; }
.vmp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vmp-card:nth-child(2) { background: linear-gradient(160deg, var(--broccoli), var(--deep-2)); color: #e3f2e0; border-color: transparent; }
.vmp-card:nth-child(2) h3 { color: #fff; }
.vmp-card:nth-child(2) .vmp-ic { background: rgba(255, 255, 255, .15); color: #fff; }
.vmp-ic { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.vmp-ic .ic { width: 28px; height: 28px; }
.vmp-card h3 { font-size: 1.45rem; }
.vmp-card p { margin: 0; line-height: 2; }
.focus-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.focus-side { position: sticky; top: calc(var(--header-h) + 30px); }
.principle-card { display: flex; gap: 14px; padding: 20px 22px; margin: 22px 0 0; border-radius: 20px; background: linear-gradient(135deg, var(--tint), var(--tint-2)); border: 1px solid var(--line-soft); }
.principle-card > .ic { width: 26px; height: 26px; color: var(--broccoli); fill: var(--limestoned); }
.principle-card small { display: block; font-weight: 700; color: var(--accent); font-size: .8rem; }
.principle-card p { margin: 0; font-weight: 600; color: var(--ink); }
.focus-list { display: grid; gap: 14px; counter-reset: f; }
.focus-item { position: relative; display: flex; align-items: flex-start; gap: 18px; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s, box-shadow .3s; }
.focus-item:hover { transform: translateX(-6px); border-color: var(--limestoned); box-shadow: var(--shadow); }
.focus-num { position: absolute; top: 18px; inset-inline-end: 20px; font-size: 2.4rem; line-height: 1; font-weight: 700; color: var(--tint); }
.focus-ic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--btn); color: #fff; box-shadow: var(--glow); }
.focus-ic .ic { width: 24px; height: 24px; }
.focus-item h3 { margin-bottom: 4px; padding-inline-end: 40px; }
.focus-item p { margin: 0; color: var(--muted); }
.goals-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.goals-list li { display: flex; gap: 16px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.goals-list span { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.goals-list p { margin: 0; color: var(--ink-2); }
.promise-section { padding-block: clamp(60px, 7vw, 90px); }
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promise-card { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--deep); color: rgba(220, 238, 220, .8); }
.promise-card::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; inset-inline-end: -100px; bottom: -140px; background: radial-gradient(circle, rgba(54, 173, 87, .4), transparent 65%); }
.promise-card--alt { background: linear-gradient(150deg, var(--kryptonite), var(--broccoli)); color: #eaf7e7; }
.promise-label { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: .85rem; color: var(--fluo); margin-bottom: 14px; }
.promise-card--alt .promise-label { color: #fff; }
.promise-label .ic { width: 18px; height: 18px; }
.promise-big { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; color: #fff; line-height: 1.5; margin-bottom: 12px; }
.promise-card p:last-child { margin: 0; position: relative; z-index: 1; }
.commit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.commit { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .3s; }
.commit:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.commit > .ic { width: 46px; height: 46px; padding: 11px; box-sizing: border-box; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.commit h3 { font-size: 1.05rem; margin-bottom: 6px; }
.commit p { margin: 0; color: var(--muted); font-size: .93rem; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery-item { margin: 0; }
.gallery-item button { display: block; width: 100%; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-item button:hover img { transform: scale(1.07); }
.gallery-item figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted-2); font-weight: 500; }
.film-inline { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; margin-top: 40px; padding: 24px; border-radius: 28px; background: var(--bg-alt); border: 1px solid var(--line-soft); }
.film-inline video { border-radius: 22px; aspect-ratio: 1; object-fit: cover; background: #ebebeb; }
.film-inline p { color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; background: rgba(4, 14, 7, .88); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-height: 88vh; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: scale(.94); transition: transform .5s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox button { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }

/* ---------------------------------------------------------------- programs page */
.prog-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.prog-group { padding: 30px; border-radius: 24px; background: var(--tint-2); border: 1px solid var(--line-soft); }
.prog-group .journey-tags { justify-content: flex-start; }
.pg-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--btn); color: #fff; margin-bottom: 16px; }
.pg-ic .ic { width: 24px; height: 24px; }
.prog-group p { color: var(--muted); }
.prog-rows { display: grid; gap: clamp(50px, 7vw, 90px); }
.prog-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; scroll-margin-top: 120px; }
.prog-row--flip .prog-row-media { order: 2; }
.prog-row-media { position: relative; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 11; }
.prog-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.prog-row-media:hover img { transform: scale(1.05); }
.prog-row-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 4px; }
.prog-row-copy .prog-tag { font-size: 1.08rem; }
.ticks { display: grid; gap: 10px; margin-top: 18px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.ticks .ic { width: 22px; height: 22px; padding: 4px; box-sizing: border-box; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-top: .3em; stroke-width: 3; }

/* program detail */
.prog-detail { display: grid; grid-template-columns: 1fr 360px; gap: clamp(30px, 5vw, 60px); align-items: start; }
.prog-detail-main { display: grid; gap: 44px; }
.detail-block h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 18px; }
.detail-block h3 .ic { width: 26px; height: 26px; color: var(--accent); }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--tint-2); border: 1px solid var(--line-soft); font-weight: 500; color: var(--ink-2); }
.pill-list .ic { width: 18px; height: 18px; color: var(--accent); }
.inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inc-card { position: relative; overflow: hidden; display: flex; gap: 12px; align-items: flex-start; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.inc-card .ic { width: 26px; height: 26px; padding: 5px; box-sizing: border-box; border-radius: 9px; background: var(--btn); color: #fff; stroke-width: 3; flex: none; }
.inc-card p { margin: 0; font-weight: 500; color: var(--ink-2); }
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; position: relative; }
.mini-steps li { position: relative; padding: 22px 18px; border-radius: 18px; background: var(--bg-alt); }
.mini-steps span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--btn); color: #fff; font-weight: 700; margin-bottom: 12px; }
.mini-steps p { margin: 0; font-size: .94rem; color: var(--ink-2); }
.goal-quotes { display: grid; gap: 12px; }
.goal-quotes li { padding: 18px 22px; border-radius: 18px; border-inline-start: 4px solid var(--ultra); background: var(--tint-2); }
.goal-quotes span { display: block; font-weight: 700; color: var(--accent); font-size: .82rem; margin-bottom: 4px; }
.goal-quotes p { margin: 0; color: var(--ink-2); }
.prog-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-card { padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.aside-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.12rem; }
.aside-card h3 .ic { color: var(--accent); }
.aside-card p { color: var(--muted); font-size: .95rem; }
.aside-card .btn + .btn { margin-top: 10px; }
.aside-card--brand { background: linear-gradient(155deg, var(--kryptonite), var(--broccoli) 50%, var(--deep-2)); color: #e3f3df; border: 0; box-shadow: var(--glow); }
.aside-card--brand h3 { color: #fff; }
.aside-card--brand p { color: rgba(230, 246, 226, .85); }
.aside-card--brand .btn--primary { background: #fff; color: var(--broccoli); box-shadow: none; }
.aside-phone { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: .88rem; color: rgba(235, 248, 232, .9); }
.aside-phone .ic { width: 16px; height: 16px; }
.contrib-list { display: grid; gap: 10px; margin-bottom: 18px; }
.contrib-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.contrib-list .ic { width: 18px; height: 18px; color: var(--ultra); margin-top: .35em; }
.aside-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aside-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px; border-radius: 16px; background: var(--bg-alt); font-weight: 600; font-size: .88rem; color: var(--ink); transition: background-color .3s; }
.aside-nav a:hover { background: var(--tint); }
.aside-nav a:last-child { text-align: end; }
.aside-nav small { display: block; font-weight: 500; color: var(--muted-2); font-size: .74rem; }
.aside-nav .ic { width: 18px; height: 18px; color: var(--accent); }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--limestoned) transparent; }
.rail-arrows { display: flex; gap: 8px; }

/* approach */
.question-hero { text-align: center; max-width: 900px; margin-inline: auto; padding: clamp(36px, 6vw, 64px) 24px; border-radius: 32px; background: radial-gradient(70% 90% at 50% 0%, var(--tint), var(--bg-alt)); border: 1px solid var(--line-soft); }
.question-hero span { display: block; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.question-hero p { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 14px; }
.question-hero small { color: var(--muted); font-size: 1rem; }
.path { --p: 0; position: relative; display: grid; gap: 28px; max-width: 900px; margin-inline: auto; }
.path-line { position: absolute; top: 20px; bottom: 20px; inset-inline-start: 31px; width: 3px; border-radius: 3px; background: var(--line); }
.path-line i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(var(--broccoli), var(--fluo)); transform-origin: top; transform: scaleY(var(--p)); }
.path-step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start; }
.path-marker { position: relative; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); color: var(--accent); transition: background-color .5s, color .5s, transform .5s var(--ease-spring), box-shadow .5s; }
.path-marker .ic { width: 28px; height: 28px; }
.path-step.is-lit .path-marker { background: var(--btn); color: #fff; border-color: transparent; transform: rotate(-6deg) scale(1.06); box-shadow: var(--glow); }
.path-card { position: relative; overflow: hidden; padding: 24px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.path-num { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.path-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.path-card p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- forms */
.form-shell { position: relative; padding: clamp(24px, 3.4vw, 40px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form { display: grid; gap: 18px; }
.form-title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin: 0; }
.form-title .ic { width: 28px; height: 28px; padding: 6px; box-sizing: content-box; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; position: relative; }
.field > span:first-child { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field em { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea, .search-field input, .filter-bar select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2);
  color: var(--ink); transition: border-color .25s, box-shadow .25s, background-color .25s; outline: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.8; }
.field select, .filter-bar select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236c726d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-inline-end: 16px; padding-inline-start: 16px; padding-left: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--silver); }
.field input:focus, .field select:focus, .field textarea:focus, .search-field input:focus, .filter-bar select:focus { border-color: var(--ultra); box-shadow: 0 0 0 4px rgba(54, 173, 87, .18); background: var(--surface); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(194, 65, 12, .12); }
.field-count { justify-self: end; font-size: .76rem; color: var(--muted-2); }
::placeholder { color: var(--dark-souls); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.is-invalid .chip span { border-color: var(--danger); }
.chip { position: relative; }
.chip input, .service-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface-2); font-weight: 500; font-size: .92rem; cursor: pointer; transition: all .25s var(--ease); user-select: none; }
.chip span .ic { width: 0; height: 16px; stroke-width: 3; transition: width .25s var(--ease); }
.chip:hover span { border-color: var(--limestoned); }
.chip input:checked + span { background: var(--btn); border-color: var(--btn); color: #fff; }
.chip input:checked + span .ic { width: 16px; }
.chip input:focus-visible + span { outline: 3px solid var(--ultra); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: var(--broccoli); margin-top: .3em; flex: none; }
.consent a { color: var(--accent); text-decoration: underline; }
.consent.is-invalid { color: var(--danger); }
.consent--sm { font-size: .84rem; margin-top: 8px; }
.form-error { display: flex; gap: 8px; align-items: center; margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(194, 65, 12, .1); color: var(--danger); font-weight: 500; font-size: .92rem; }
.form-success { text-align: center; padding: 30px 10px; animation: fadeUp .7s var(--ease) both; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--muted); }
.success-burst { position: relative; width: 96px; height: 96px; margin: 0 auto 22px; }
.success-burst::before, .success-burst::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ultra); opacity: .25; animation: burst 1.6s var(--ease) infinite; }
.success-burst::after { animation-delay: .5s; }
.success-burst span { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--btn); color: #fff; animation: pop .6s var(--ease-spring) both; box-shadow: var(--glow); }
.success-burst .ic { width: 44px; height: 44px; stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .35s var(--ease) forwards; }
@keyframes burst { from { transform: scale(1); opacity: .35; } to { transform: scale(1.9); opacity: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-ref { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--tint-2); font-size: 1rem; color: var(--ink-2); }
.success-ref b { color: var(--accent); font-size: 1.15rem; letter-spacing: .04em; }
.search-field { position: relative; display: flex; align-items: center; min-width: 260px; }
.search-field .ic { position: absolute; inset-inline-start: 14px; width: 18px; height: 18px; color: var(--muted-2); pointer-events: none; }
.search-field input { padding-inline-start: 42px; min-height: 44px; }

/* wizard */
.wizard-head { margin-bottom: 6px; }
.wizard-progress { height: 4px; border-radius: 4px; background: var(--line-soft); overflow: hidden; margin-bottom: 16px; }
.wizard-progress i { display: block; height: 100%; width: 33.33%; border-radius: inherit; background: linear-gradient(-90deg, var(--fluo), var(--broccoli)); transition: width .6s var(--ease); }
.wizard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wizard-steps li { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--muted-2); }
.wizard-steps span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); font-size: .82rem; transition: all .4s var(--ease); flex: none; }
.wizard-steps li.is-current { color: var(--ink); }
.wizard-steps li.is-current span { background: var(--btn); border-color: var(--btn); color: #fff; box-shadow: 0 0 0 5px var(--accent-soft); }
.wizard-steps li.is-done span { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.wizard-panel { border: 0; margin: 0; padding: 0; min-width: 0; display: none; gap: 18px; }
.wizard-panel.is-active { display: grid; animation: panelIn .55s var(--ease) both; }
.wizard-panel.is-back { animation-name: panelBack; }
@keyframes panelIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes panelBack { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.wizard-panel legend { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; padding: 0; float: right; width: 100%; }
.wizard-panel legend small { font-size: .85rem; font-weight: 500; color: var(--muted-2); }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.wizard-nav [data-wizard-next], .wizard-nav [data-wizard-submit] { margin-inline-start: auto; }
.toggle-q { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--bg-alt); }
.toggle-q p { margin: 0; font-weight: 600; color: var(--ink); font-size: .94rem; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-grid.is-invalid .service-box { border-color: var(--danger); }
.service-opt { position: relative; }
.service-box { position: relative; display: grid; gap: 2px; padding: 16px 18px; padding-inline-end: 50px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface-2); cursor: pointer; transition: all .3s var(--ease); height: 100%; }
.service-box b { color: var(--ink); font-size: .98rem; }
.service-box small { color: var(--muted-2); font-size: .82rem; line-height: 1.6; }
.service-check { position: absolute; top: 16px; inset-inline-end: 16px; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--silver); display: grid; place-items: center; color: transparent; transition: all .3s var(--ease-spring); }
.service-check .ic { width: 15px; height: 15px; stroke-width: 3.2; }
.service-opt:hover .service-box { border-color: var(--limestoned); }
.service-opt input:checked + .service-box { border-color: var(--ultra); background: var(--tint-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.service-opt input:checked + .service-box .service-check { background: var(--btn); border-color: var(--btn); color: #fff; transform: scale(1.1); }
.service-opt input:focus-visible + .service-box { outline: 3px solid var(--ultra); outline-offset: 2px; }
.help-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.help-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.help-steps { display: grid; gap: 16px; position: relative; }
.help-steps li { display: flex; gap: 12px; align-items: flex-start; }
.hs-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.hs-ic .ic { width: 20px; height: 20px; }
.help-steps b { display: block; color: var(--ink); font-size: .95rem; }
.help-steps p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.7; }
.aside-note { display: flex; gap: 12px; padding: 18px; border-radius: 18px; background: var(--tint-2); border: 1px solid var(--line-soft); }
.aside-note .ic { color: var(--accent); width: 22px; height: 22px; margin-top: .2em; }
.aside-note p { margin: 0; font-size: .9rem; color: var(--ink-2); }

/* involvement / donate */
.ways-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.way-card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .4s, border-color .4s; }
.way-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--limestoned); }
.way-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--btn); color: #fff; margin-bottom: 18px; box-shadow: var(--glow); transition: transform .5s var(--ease-spring); }
.way-card:hover .way-ic { transform: rotate(-8deg) scale(1.08); }
.way-ic .ic { width: 26px; height: 26px; }
.way-card p { color: var(--muted); flex: 1; font-size: .95rem; }
.split-form { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.split-form--tight { margin-top: 40px; }
.split-photo { margin: 28px 0 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.ptype-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ptype { padding: 24px; border-radius: 20px; background: var(--tint-2); border: 1px solid var(--line-soft); }
.ptype > .ic { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.ptype h3 { font-size: 1.05rem; margin-bottom: 4px; }
.ptype p { margin: 0; font-size: .9rem; color: var(--muted); }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pick-card { position: relative; display: grid; gap: 4px; justify-items: start; text-align: start; padding: 20px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); transition: all .35s var(--ease); }
.pick-card .prog-ic { width: 42px; height: 42px; margin-bottom: 8px; }
.pick-card b { color: var(--ink); }
.pick-card small { color: var(--muted-2); font-size: .82rem; }
.pick-card:hover { border-color: var(--limestoned); transform: translateY(-3px); }
.pick-check { position: absolute; top: 14px; inset-inline-end: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: #fff; transform: scale(0); transition: transform .4s var(--ease-spring); }
.pick-check .ic { width: 15px; height: 15px; stroke-width: 3; }
.pick-card.is-picked { border-color: var(--ultra); background: var(--tint-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.pick-card.is-picked .pick-check { transform: scale(1); }
.bank-card { margin-top: 26px; padding: 26px; border-radius: 22px; background: var(--tint-2); border: 1px solid var(--line-soft); }
.bank-card h3 { display: flex; gap: 8px; align-items: center; }
.bank-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.bank-rows div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px; border-radius: 14px; background: var(--surface); }
.bank-rows small { width: 100%; color: var(--muted-2); }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { list-style: disc; padding-inline-start: 1.4em; display: grid; gap: 6px; margin-bottom: 1em; }
.prose a { color: var(--accent); text-decoration: underline; }

/* 404 */
.nf { padding-block: clamp(80px, 12vw, 150px); text-align: center; }
.nf-inner { max-width: 640px; }
.nf-art { position: relative; display: grid; place-items: center; margin-bottom: 20px; }
.nf-art b { font-size: clamp(6rem, 18vw, 11rem); font-weight: 700; line-height: 1; color: var(--tint); }
.nf-logo { position: absolute; width: 110px; animation: floaty 5s ease-in-out infinite; }

/* auth */
.page-auth { background: var(--bg); }
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.auth-visual { position: relative; overflow: hidden; }
.auth-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 30s ease-in-out infinite alternate; }
.auth-visual-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 28, 13, .92), rgba(7, 28, 13, .35) 60%, rgba(7, 28, 13, .2)); }
.auth-visual-copy { position: absolute; inset-inline: 48px; bottom: 54px; color: #e6f3e2; }
.auth-visual-copy img { width: 70px; margin-bottom: 18px; }
.auth-visual-copy h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.auth-panel { position: relative; display: grid; place-items: center; padding: 40px 24px; }
.auth-back { position: absolute; top: 24px; inset-inline-start: 24px; display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; color: var(--muted); font-weight: 500; }
.auth-back:hover { color: var(--accent); }
.auth-back .ic { width: 16px; height: 16px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box .brand { margin-bottom: 34px; }
.auth-box h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-box .lead { font-size: .98rem; margin-bottom: 26px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-inline-end: 48px; }
.pw-toggle { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 6px; left: 6px; right: auto; width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted-2); border-radius: 10px; }
.pw-toggle:hover { color: var(--accent); background: var(--tint-2); }
.pw-wrap input[dir="ltr"] { padding-left: 50px; padding-right: 16px; }
.auth-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 26px; font-size: .85rem; color: var(--muted-2); }
.auth-note .ic { width: 16px; height: 16px; color: var(--accent); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .main-nav, .hide-md { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .prog-card.span-2 { grid-column: span 2; }
  .values-grid, .ways-grid, .commit-grid, .ptype-grid, .pick-grid { grid-template-columns: repeat(2, 1fr); }
  .model-steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .model-line { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .prog-detail, .help-grid { grid-template-columns: 1fr; }
  .prog-aside, .help-aside { position: static; }
  .hero-tab-label { font-size: .78rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .intro-grid, .film-grid, .faq-wrap, .about-intro, .focus-wrap, .visit-grid, .contact-grid, .split-form, .prog-row, .promise-grid, .prog-groups { grid-template-columns: 1fr; }
  .prog-row--flip .prog-row-media { order: 0; }
  .faq-side, .focus-side { position: static; }
  .intro-visual { min-height: 440px; }
  .film-card { max-width: 420px; margin-inline: auto; width: 100%; }
  .vmp-grid, .doors, .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .stat:nth-child(3)::before { display: none; }
  .journey { grid-template-columns: 1fr; gap: 36px; }
  .journey-line { display: none; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .about-logo-card { max-width: 380px; margin-inline: auto; }
  .film-inline { grid-template-columns: 1fr; }
  .film-inline video { max-width: 280px; }
  .goals-list { grid-template-columns: 1fr; }
  .page-contact .contact-cards { grid-template-columns: 1fr; }
  .map-card--tall { min-height: 420px; }
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .hero-tabs { grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .hero-tab-label, .hero-tab-num { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .container { padding-inline: 16px; }
  .hide-sm { display: none !important; }
  .brand-logo { width: 42px; }
  .brand-text b { font-size: .95rem; }
  .brand-text small { display: none; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; }
  .topbar-inner { padding-inline-end: 44px; font-size: .84rem; }

  .hero { height: auto; min-height: 0; }
  .hero-slide { display: flex; flex-direction: column; }
  .hero-media { position: relative; order: 2; aspect-ratio: 16 / 11; transform: none; }
  .hero-shade { background: linear-gradient(to bottom, rgba(var(--shade), 1) 0%, rgba(var(--shade), 0) 18%); top: auto; height: 0; }
  .hero-inner { order: 1; height: auto; padding: 30px 16px 6px; }
  .hero-title { font-size: 2.05rem; }
  .hero-text { font-size: 1rem; margin-bottom: 22px; }
  .hero-actions .btn { flex: 1; min-height: 50px; padding-inline: 1em; font-size: .95rem; }
  .hero-controls { position: relative; padding: 12px 0 18px; background: var(--tint-2); }
  .hero-controls-inner { align-items: center; }
  .hero-arrow { width: 40px; height: 40px; }
  .hero-leaves { display: none; }
  .ribbon-item { font-size: .95rem; gap: 20px; }

  .bento { grid-template-columns: 1fr; }
  .prog-card.span-2 { grid-column: auto; flex-direction: column; }
  .prog-card.span-2 .prog-card-media { width: 100%; aspect-ratio: 16 / 10; }
  .prog-card.span-2 .prog-card-body { padding: 22px; }
  .values-grid, .ways-grid, .commit-grid, .ptype-grid, .pick-grid, .inc-grid, .service-grid, .field-grid, .identity-lines, .gallery, .gallery--3 { grid-template-columns: 1fr; }
  .model-steps { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .mini-steps { grid-template-columns: 1fr 1fr; }
  .intro-visual { min-height: 360px; }
  .float-chip--b { display: none; }
  .float-chip--a { inset-inline-end: 0; top: -14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; padding-bottom: 96px; }
  .final-cta { padding-bottom: 50px; }
  .final-cta-actions { width: 100%; }
  .final-cta-actions .btn { flex: 1; }
  .door { min-height: 300px; }
  .wizard-steps li { font-size: 0; gap: 0; justify-content: center; }
  .wizard-steps li span { font-size: .82rem; }
  .search-field { min-width: 0; width: 100%; }
  .mobile-bar {
    position: fixed; z-index: 45; inset-inline: 10px; bottom: 10px; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 6px; padding: 6px;
    border-radius: 20px; background: rgba(var(--shade), .92); backdrop-filter: blur(16px); box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .35); border: 1px solid var(--line);
    padding-bottom: calc(6px + env(safe-area-inset-bottom) / 2);
  }
  .mobile-bar a { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; font-size: .74rem; font-weight: 600; color: var(--ink-2); }
  .mobile-bar a .ic { width: 20px; height: 20px; color: var(--accent); }
  .mobile-bar-main { background: var(--btn); color: #fff !important; }
  .mobile-bar-main .ic { color: #fff !important; }
  .to-top { bottom: 92px; inset-inline-start: 14px; width: 44px; height: 44px; }
  .to-top svg { width: 40px; height: 40px; }
  .page-hero { padding-block: 50px 80px; }
  .aside-nav { grid-template-columns: 1fr; }
  .map-card { min-height: 380px; }
  .map-chip { flex-wrap: wrap; }
  .map-chip .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .split-word > span { transform: none; }
  .hero-leaves { display: none; }
}
@media print {
  .topbar, .site-header, .site-footer, .mobile-bar, .to-top, .final-cta, .preloader { display: none !important; }
}

/* =============================================================================
   Staff dashboard
   ========================================================================== */
.page-dash { background: var(--bg-alt); }
.dash { display: grid; grid-template-columns: 260px 1fr; min-height: 100svh; }
.dash-side { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px; background: var(--surface); border-inline-end: 1px solid var(--line); }
.dash-side .brand-logo { width: 42px; }
.dash-nav { display: grid; gap: 4px; }
.dash-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 12px; font-weight: 500; color: var(--ink-2); transition: background-color .25s, color .25s; text-align: start; }
.dash-link .ic { width: 20px; height: 20px; color: var(--muted-2); transition: color .25s; }
.dash-link span { flex: 1; }
.dash-link:hover { background: var(--tint-2); color: var(--accent); }
.dash-link.is-active { background: var(--btn); color: #fff; box-shadow: var(--glow); }
.dash-link.is-active .ic { color: #fff; }
.dash-link:hover .ic { color: var(--accent); }
.dash-link.is-active:hover { color: #fff; }
.dash-badge { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--danger); color: #fff; font-size: .74rem; }
.dash-link.is-active .dash-badge { background: #fff; color: var(--broccoli); }
.dash-side-foot { margin-top: auto; display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.dash-main { min-width: 0; padding: 22px clamp(16px, 3vw, 34px) 60px; }
.dash-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.dash-top h1 { font-size: 1.6rem; margin: 0; }
.dash-sub { margin: 0; font-size: .86rem; color: var(--muted-2); }
.dash-top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.dash-user { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.dash-user .ic { width: 18px; height: 18px; color: var(--accent); }
.dash-menu { display: none; }
.dash-alert { display: flex; gap: 12px; align-items: center; padding: 14px 18px; margin-bottom: 20px; border-radius: 14px; background: rgba(180, 83, 9, .1); color: var(--warn); border: 1px solid rgba(180, 83, 9, .25); }
.dash-alert p { margin: 0; }
.dash-alert a { text-decoration: underline; font-weight: 700; }
.dash-view { animation: fadeUp .5s var(--ease) both; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.filter-bar select { width: auto; min-width: 150px; min-height: 42px; padding-block: 8px; border-radius: 12px; font-size: .9rem; background-color: var(--surface); }
.filter-bar .search-field { flex: 1; }
.filter-bar .btn { margin-inline-start: auto; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.seg button { padding: 7px 14px; border-radius: 9px; font-size: .86rem; font-weight: 500; color: var(--muted); transition: all .25s; }
.seg button:hover { color: var(--accent); }
.seg button.is-on { background: var(--btn); color: #fff; }
.chip-reset { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-size: .85rem; color: var(--danger); background: rgba(194, 65, 12, .08); }
.chip-reset .ic { width: 14px; height: 14px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { position: relative; overflow: hidden; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); animation: fadeUp .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kpi-top span { font-size: .86rem; color: var(--muted); font-weight: 500; }
.kpi-top .ic { width: 34px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.kpi b { display: block; font-size: 2rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi small { font-size: .8rem; color: var(--muted-2); }
.kpi--hot .kpi-top .ic { background: rgba(194, 65, 12, .1); color: var(--danger); }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.panel { min-width: 0; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.panel--wide { grid-column: 1 / -1; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.08rem; margin: 0; }
.panel-head p { margin: 0; font-size: .8rem; color: var(--muted-2); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 42%) 1fr 44px; gap: 12px; align-items: center; padding: 3px 6px; margin-inline: -6px; border-radius: 8px; font-size: .88rem; cursor: pointer; transition: background-color .2s; }
.bar-row:hover, .bar-row.is-on { background: var(--tint-2); }
.bar-row > span:first-child { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { position: relative; height: 12px; border-radius: 0 4px 4px 0; }
.bar-fill { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; border-radius: 4px 0 0 4px; background: var(--kryptonite); transform-origin: right; animation: grow .8s var(--ease) both; }
[dir="rtl"] .bar-fill { border-radius: 4px 0 0 4px; }
.bar-row:hover .bar-fill, .bar-row.is-on .bar-fill { background: var(--broccoli); }
[data-theme="dark"] .bar-fill { background: var(--ultra); }
.bar-row b { text-align: end; color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.chart-empty { padding: 30px 10px; text-align: center; color: var(--muted-2); font-size: .9rem; }
.chart-area { position: relative; height: 240px; }
.chart-area svg { width: 100%; height: 100%; overflow: visible; }
.chart-area .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.chart-area .axis-label { fill: var(--muted-2); font-size: 11px; font-family: var(--font); }
.chart-area .area { fill: url(#trendFill); }
.chart-area .line { fill: none; stroke: var(--kryptonite); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
[data-theme="dark"] .chart-area .line { stroke: var(--ultra); }
.chart-area .hover-line { stroke: var(--silver); stroke-dasharray: 3 3; }
.chart-area .hover-dot { fill: var(--surface); stroke: var(--broccoli); stroke-width: 2; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: .8rem; white-space: nowrap; transform: translate(50%, -110%); box-shadow: var(--shadow); }
.chart-tip b { display: block; font-size: .95rem; }
.status-chart { display: grid; gap: 14px; }
.status-stack { display: flex; height: 16px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--line-soft); }
.status-stack i { display: block; height: 100%; transition: flex-grow .6s var(--ease); }
.status-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.status-legend button { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); padding: 6px 8px; border-radius: 8px; text-align: start; }
.status-legend button:hover { background: var(--tint-2); }
.status-legend b { margin-inline-start: auto; color: var(--ink); }
.st-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.st-new { background: #2563eb; }
.st-review { background: #d97706; }
.st-accepted { background: #1d9142; }
.st-served { background: #0f5132; }
.st-rejected { background: #a3a5a3; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-stats div { padding: 14px 16px; border-radius: 14px; background: var(--bg-alt); }
.mini-stats small { display: block; font-size: .8rem; color: var(--muted-2); }
.mini-stats b { font-size: 1.4rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 900px; }
.table th { position: sticky; top: 0; text-align: start; padding: 14px 16px; font-weight: 600; font-size: .82rem; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th[data-sort] { cursor: pointer; user-select: none; }
.table th[data-sort]:hover { color: var(--accent); }
.table th.is-sorted::after { content: " ▾"; color: var(--accent); }
.table th.is-sorted.is-asc::after { content: " ▴"; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--ink-2); }
.table tbody tr { cursor: pointer; transition: background-color .2s; }
.table tbody tr:hover { background: var(--tint-2); }
.table tbody tr.is-new td:first-child { box-shadow: inset -3px 0 0 #2563eb; }
.table td:first-child, .table td:last-child { white-space: nowrap; }
.table .ref { font-family: ui-monospace, Menlo, monospace; font-size: .84rem; color: var(--accent); direction: ltr; unicode-bidi: isolate; }
.table-foot { font-size: .85rem; color: var(--muted-2); margin-top: 12px; }
.tag-s { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--bg-alt); color: var(--ink-2); white-space: nowrap; }
.tag-urgent { background: rgba(194, 65, 12, .1); color: var(--danger); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.svc-tags span { font-size: .75rem; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.empty-row td { text-align: center; padding: 50px 20px; color: var(--muted-2); cursor: default; }
.drawer-side { position: fixed; inset: 0; z-index: 220; visibility: hidden; }
.drawer-side.is-open { visibility: visible; }
.side-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(560px, 100vw); background: var(--surface); overflow-y: auto; transform: translateX(-100%); transition: transform .45s var(--ease); box-shadow: var(--shadow-lg); }
.drawer-side.is-open .side-panel { transform: none; }
.rd-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.rd-head h2 { font-size: 1.25rem; margin: 0 0 4px; }
.rd-head .icon-btn { margin-inline-start: auto; }
.rd-body { padding: 22px 24px 40px; display: grid; gap: 22px; }
.rd-section h3 { font-size: .92rem; color: var(--muted); margin-bottom: 10px; }
.rd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rd-grid div { padding: 12px 14px; border-radius: 12px; background: var(--bg-alt); }
.rd-grid small { display: block; font-size: .76rem; color: var(--muted-2); }
.rd-grid b { font-weight: 600; color: var(--ink); font-size: .94rem; word-break: break-word; }
.rd-details { padding: 16px; border-radius: 14px; background: var(--tint-2); white-space: pre-wrap; color: var(--ink-2); line-height: 1.9; margin: 0; }
.status-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.status-picker button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-size: .88rem; font-weight: 500; transition: all .25s; }
.status-picker button:hover { border-color: var(--limestoned); }
.status-picker button.is-on { border-color: var(--broccoli); background: var(--tint-2); color: var(--accent); font-weight: 700; }
.timeline { display: grid; gap: 12px; }
.timeline li { position: relative; padding-inline-start: 22px; font-size: .88rem; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--ultra); }
.timeline small { display: block; color: var(--muted-2); font-size: .76rem; }
.note-form { display: grid; gap: 10px; }
.note-form textarea { min-height: 80px; }
.rd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--danger { color: var(--danger); background: rgba(194, 65, 12, .08); }
.btn--danger:hover { background: rgba(194, 65, 12, .16); }
.msg-list { display: grid; gap: 12px; }
.msg-list .msg { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.msg-list .msg.is-new { border-inline-start: 4px solid #2563eb; }
.msg-list .msg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg-list .msg-head b { color: var(--ink); font-size: 1.02rem; }
.msg-list .msg-head time { margin-inline-start: auto; font-size: .8rem; color: var(--muted-2); }
.msg-list .msg-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); }
.msg-list .msg-meta a { color: var(--accent); }
.msg-list .msg-text { margin: 0; white-space: pre-wrap; color: var(--ink-2); }
.msg-list .msg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.news-admin { display: grid; gap: 12px; }
.na-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.na-thumb { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--tint); display: grid; place-items: center; color: var(--accent); }
.na-thumb img { width: 100%; height: 100%; object-fit: cover; }
.na-item h3 { font-size: 1rem; margin-bottom: 4px; }
.na-item p { margin: 0; font-size: .82rem; color: var(--muted-2); }
.na-actions { display: flex; gap: 6px; }
.modal { position: fixed; inset: 0; z-index: 230; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal-box { position: relative; width: min(720px, 100%); max-height: 92svh; overflow-y: auto; padding: 26px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px) scale(.97); transition: opacity .35s, transform .45s var(--ease); }
.modal.is-open .modal-box { opacity: 1; transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h2 { font-size: 1.3rem; margin: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; }
.upload { position: relative; display: block; border-radius: 16px; border: 2px dashed var(--line); background: var(--surface-2); cursor: pointer; overflow: hidden; transition: border-color .25s, background-color .25s; }
.upload:hover, .upload.is-drag { border-color: var(--ultra); background: var(--tint-2); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-preview { display: grid; place-items: center; gap: 6px; min-height: 150px; color: var(--muted-2); text-align: center; padding: 10px; }
.upload-preview .ic { width: 32px; height: 32px; color: var(--accent); }
.upload-preview img { max-height: 220px; border-radius: 10px; }
.info-list { display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.info-list .ic { color: var(--accent); width: 20px; height: 20px; margin-top: .3em; }
.toast-zone { position: fixed; z-index: 400; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; }
.toast { padding: 12px 20px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: .92rem; box-shadow: var(--shadow-lg); animation: toastIn .5s var(--ease-spring) both; display: flex; gap: 8px; align-items: center; }
.toast--err { background: var(--danger); color: #fff; }
.toast .ic { width: 18px; height: 18px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
.dash-empty { text-align: center; padding: 50px 20px; border-radius: 20px; background: var(--surface); border: 1px dashed var(--line); color: var(--muted-2); }
.dash-empty .ic { width: 40px; height: 40px; color: var(--limestoned); margin: 0 auto 10px; }
.latest-list { display: grid; }
.latest-list button { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line-soft); text-align: start; font-size: .9rem; border-radius: 10px; }
.latest-list button:hover { background: var(--tint-2); }
.latest-list button:last-child { border-bottom: 0; }

@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: fixed; z-index: 210; inset-block: 0; inset-inline-start: 0; width: 270px; transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); }
  .dash-side.is-open { transform: none; }
  .dash-menu { display: inline-grid; }
  .dash-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-user { display: none; }
}
@media (max-width: 600px) {
  .bar-row { grid-template-columns: 96px 1fr 34px; gap: 8px; }
  .rd-grid, .mini-stats, .status-legend { grid-template-columns: 1fr; }
  .na-item { grid-template-columns: 80px 1fr; }
  .na-actions { grid-column: 1 / -1; }
  .filter-bar select { flex: 1; min-width: 130px; }
  .filter-bar .btn { margin-inline-start: 0; width: 100%; }
  .latest-list button { grid-template-columns: 1fr auto; }
  .latest-list button > :nth-child(3) { display: none; }
}
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
.no-flip { width: 100%; height: 100%; }
/* off-screen reveal transforms must never widen the page (mobile layout viewport) */
main, .final-cta, .site-footer { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }

/* =============================================================================
   جمعية النداء للشباب وذوي الهمم — site components (appended to base.css)
   Brand: laurel green (primary) · figure rose («رفيق») · ring gold · category colours of the parents' guide
   ========================================================================== */

:root {
  --rose: #e3167b; --rose-deep: #b50d5a; --rose-soft: rgba(227, 22, 123, .09);
  --violet: #7d3cb0; --gold: #c3922a; --gold-light: #efd38c;
  --rafiq-grad: linear-gradient(135deg, #ff3d96 0%, #e3167b 45%, #8a3fb0 100%);
  --header-h: 78px;
}
[data-c] { --ct: var(--c); }
[data-c="violet"] { --c: #7d3cb0; --c2: #b27be0; --cs: rgba(125, 60, 176, .1); --cd: #3c1660; }
[data-c="rose"] { --c: #d4196f; --c2: #ff6aa9; --cs: rgba(212, 25, 111, .09); --cd: #6d0b39; }
[data-c="sky"] { --c: #1a7fc6; --c2: #63b6f0; --cs: rgba(26, 127, 198, .1); --cd: #0a3e66; }
[data-c="sun"] { --c: #cf6c06; --c2: #ffb04f; --cs: rgba(233, 131, 16, .12); --cd: #6b3700; }
[data-c="leaf"] { --c: #23893f; --c2: #6fd08a; --cs: rgba(42, 143, 68, .1); --cd: #0f4720; }
[data-c="gold"] { --c: #a87a12; --c2: #ebc463; --cs: rgba(195, 146, 42, .13); --cd: #553b05; }
[data-c="green"] { --c: #157a32; --c2: #6fd08a; --cs: rgba(21, 122, 50, .09); --cd: #062413; }
[data-c="slate"] { --c: #52626b; --c2: #9fb2bd; --cs: rgba(85, 101, 110, .1); --cd: #263035; }
[data-c="sand"] { --c: #9b7a3e; --c2: #dcc08b; --cs: rgba(168, 135, 77, .13); --cd: #4a3a1b; }
[data-theme="dark"] [data-c] { --ct: var(--c2); --cs: rgba(255, 255, 255, .06); }

/* ---------------------------------------------------------------- accessibility preferences */
html[data-fs="lg"] { font-size: 112.5%; }
html[data-fs="xl"] { font-size: 125%; }
html[data-fs] body { font-size: 1rem; }
.a11y-contrast { --muted: #222; --muted-2: #333; --line: #8a8f8b; --line-soft: #b9bdb9; --ink-2: #000; --ink: #000; }
[data-theme="dark"].a11y-contrast { --muted: #f1f1f1; --muted-2: #e3e3e3; --line: #9aa29c; --ink-2: #fff; --ink: #fff; --bg: #000; --surface: #0b0b0b; --bg-alt: #050505; }
.a11y-contrast .lead, .a11y-contrast p { color: var(--ink-2); }
.a11y-links a:not(.btn):not(.brand):not(.icon-btn):not(.cat-card):not(.door):not(.tool-card):not(.way-card):not(.contact-card):not(.mega-item) { text-decoration: underline !important; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.a11y-links a:focus, .a11y-links button:focus { outline: 3px solid var(--rose) !important; outline-offset: 3px; }
.a11y-spacing body { letter-spacing: .02em; word-spacing: .14em; line-height: 2.05; }
.a11y-spacing p, .a11y-spacing li { line-height: 2.1; }
.a11y-still *, .a11y-still *::before, .a11y-still *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
.a11y-still [data-reveal], .a11y-still .split-word > span { opacity: 1 !important; transform: none !important; }

/* ---------------------------------------------------------------- shared bits */
.hide-xs { }
.hl--rose { color: var(--rose) !important; }
.hl-light { color: var(--gold-light); }
.btn--rafiq { background: var(--rafiq-grad); color: #fff; box-shadow: 0 14px 30px -14px rgba(227, 22, 123, .7); border: 0; }
.btn--rafiq:hover { box-shadow: 0 18px 36px -12px rgba(227, 22, 123, .8); filter: saturate(1.15); }
.btn-av { width: 1.6em; height: 1.6em; margin-block: -.3em; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .15)); }
.btn--rafiq .btn-av path:first-of-type { fill: #fff; }
.btn--rafiq .btn-av circle:first-of-type { fill: #e3167b; }
.btn--rafiq .btn-av path:nth-of-type(2) { stroke: #e3167b; }
.btn--danger { color: #fff; background: #c0362c; }
.btn--danger:hover { background: #a42a21; }
.dash .btn--danger, .msg-actions .btn--danger, .rd-actions .btn--danger { color: var(--danger); background: rgba(194, 65, 12, .08); }
.rafiq-av, .topbar-av, .mega-av, .drawer-av, .pill-av, .mb-av, .fab-av, .chip-av, .demo-av, .kb-av, .cc-av, .faq-av, .aside-av, .side-av, .boot-av { flex: none; }
.topbar { background: linear-gradient(90deg, #0f6428, #157a32 45%, #1d9142); }
.topbar-av { width: 22px; height: 22px; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; }
.brand-text b { font-size: 1.08rem; }
.eyebrow--glass { background: rgba(255, 255, 255, .78); }

/* mega menu */
.mega-item[data-c] .mega-ic { background: var(--cs); color: var(--ct); }
.mega-item[data-c]:hover .mega-ic { background: var(--c); color: #fff; }
.mega-card--rafiq { background: var(--rafiq-grad); }
.mega-av { width: 52px; height: 52px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .2)); }
.mega-av path:first-of-type { fill: #fff; }
.mega-av circle:first-of-type { fill: #e3167b; }
.mega-av path:nth-of-type(2) { stroke: #e3167b; }

/* drawer */
.drawer-rafiq { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--rafiq-grad); color: #fff; box-shadow: 0 14px 30px -18px rgba(227, 22, 123, .8); }
.drawer-rafiq b { display: block; }
.drawer-rafiq small { opacity: .85; font-size: .82rem; }
.drawer-rafiq > .ic { margin-inline-start: auto; }
.drawer-av { width: 44px; height: 44px; }
.drawer-av path:first-of-type { fill: #fff; }
.drawer-av circle:first-of-type { fill: #e3167b; }
.drawer-av path:nth-of-type(2) { stroke: #e3167b; }
.drawer-programs a[data-c] .ic { color: var(--ct); }
.drawer-mini { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.drawer-mini button { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted-2); padding: 8px; }
.drawer-mini .ic { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- home hero */
.hero-n { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 96px); min-height: clamp(560px, calc(100svh - var(--header-h) - 42px), 820px); display: flex; align-items: center; background: linear-gradient(180deg, #fbfdf9, var(--bg)); }
[data-theme="dark"] .hero-n { background: linear-gradient(180deg, #08110b, var(--bg)); }
.hero-n-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; }
.blob--g { width: 520px; height: 520px; background: #a8e6b8; inset-inline-start: -160px; top: -120px; }
.blob--r { width: 420px; height: 420px; background: #ffc2dc; inset-inline-end: 4%; top: 10%; animation-delay: -6s; }
.blob--y { width: 360px; height: 360px; background: #ffe8ad; inset-inline-end: 30%; bottom: -160px; animation-delay: -11s; }
[data-theme="dark"] .blob { opacity: .14; }
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(21, 122, 50, .14) 1.2px, transparent 1.3px); background-size: 26px 26px; mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent 75%); }
.hero-n-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero-n-copy > * { animation: fadeUp .9s var(--ease) both; }
.hero-n-copy > :nth-child(2) { animation-delay: .12s; }
.hero-n-copy > :nth-child(3) { animation-delay: .24s; }
.hero-n-copy > :nth-child(4) { animation-delay: .36s; }
.hero-n-copy > :nth-child(5) { animation-delay: .48s; }
.hero-n .eyebrow { font-size: .86rem; font-weight: 700; }
.hero-n .hero-title { font-size: clamp(2.8rem, 6.6vw, 5.4rem); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 20px; font-weight: 700; color: var(--ink); }
.hero-n .hero-title .hl { background: linear-gradient(90deg, #157a32, #36ad57 40%, #e3167b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-n .hero-text { max-width: 560px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .ic { width: 18px; height: 18px; color: var(--accent); }
.hero-n-visual { position: relative; display: grid; place-items: center; }
.emblem { position: relative; width: min(470px, 100%); aspect-ratio: 1; display: grid; place-items: center; animation: fadeUp 1s .2s var(--ease) both; }
.emblem-logo { position: relative; z-index: 2; width: 74%; height: auto; border-radius: 50%; box-shadow: 0 40px 80px -30px rgba(21, 80, 40, .45), 0 0 0 10px rgba(255, 255, 255, .6); animation: floaty 8s ease-in-out infinite; }
.emblem-ring { position: absolute; inset: 4%; border-radius: 50%; border: 2px dashed rgba(195, 146, 42, .55); animation: spin 60s linear infinite; }
.emblem-ring--2 { inset: -3%; border: 1.5px solid rgba(21, 122, 50, .14); animation-duration: 90s; animation-direction: reverse; }
.orbit { position: absolute; inset: -2%; z-index: 3; animation: spin 48s linear infinite; }
.orb { position: absolute; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: #fff; box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .35), inset 0 -6px 12px rgba(0, 0, 0, .12), inset 0 6px 10px rgba(255, 255, 255, .35); animation: spin 48s linear infinite reverse; }
.orb .ic { width: 30px; height: 30px; stroke-width: 2.1; }
.orb--speech { background: radial-gradient(circle at 30% 25%, #5bb6ff, #1272c4); top: 6%; left: 8%; }
.orb--ear { background: radial-gradient(circle at 30% 25%, #ff74b4, #d4196f); top: 6%; right: 8%; }
.orb--motor { background: radial-gradient(circle at 30% 25%, #a6e263, #4c9a14); bottom: 6%; right: 8%; }
.orb--eye { background: radial-gradient(circle at 30% 25%, #ffb054, #e46f00); bottom: 6%; left: 8%; }
.float-chip--chat { position: absolute; z-index: 4; top: 8%; inset-inline-start: -4%; max-width: 270px; animation: floaty 9s ease-in-out infinite; }
.float-chip--plan { position: absolute; z-index: 4; bottom: 6%; inset-inline-end: -2%; animation: floaty 10s -3s ease-in-out infinite; }
.chip-av { width: 40px; height: 40px; }
.float-chip small { white-space: normal; }

/* intro identity card */
.intro-visual--id { min-height: 0; display: grid; place-items: center; }
.id-card { position: relative; width: 100%; max-width: 480px; padding: 30px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 18px; justify-items: center; overflow: hidden; }
.id-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; background: linear-gradient(135deg, #e9f6ec, #fdeef5 60%, #fff6dc); }
[data-theme="dark"] .id-card::before { background: linear-gradient(135deg, #10251a, #2a1020 60%, #2a2210); }
.id-card img { position: relative; width: 140px; height: 140px; border-radius: 50%; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .35); }
.id-card dl { width: 100%; margin: 0; display: grid; gap: 0; }
.id-card dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.id-card dl div:last-child { border-bottom: 0; }
.id-card dt { color: var(--muted-2); font-size: .85rem; font-weight: 600; }
.id-card dd { margin: 0; color: var(--ink); font-weight: 600; font-size: .95rem; }
.intro-visual--id .float-chip--a { position: absolute; top: auto; bottom: -18px; inset-inline-start: -8px; }
.purpose-quote small { display: block; margin-top: 10px; color: var(--muted-2); font-size: .85rem; }
.stats-band .stat b small { font-size: .45em; font-weight: 600; }

/* ---------------------------------------------------------------- category cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .4s, border-color .3s; isolation: isolate; }
.cat-card::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%; top: -150px; inset-inline-end: -110px; background: radial-gradient(circle, var(--cs), transparent 70%); transition: transform .6s var(--ease); }
.cat-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--c), var(--c2)); }
.cat-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card:hover::after { transform: scale(1.6); }
.cat-ic { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(145deg, var(--c2), var(--c)); color: #fff; box-shadow: 0 14px 26px -14px var(--c); margin-bottom: 8px; transition: transform .45s var(--ease-spring); }
.cat-card:hover .cat-ic { transform: rotate(-8deg) scale(1.06); }
.cat-ic .ic { width: 30px; height: 30px; }
.cat-card h3 { font-size: 1.28rem; margin: 0; }
.cat-card > p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.85; }
.cat-pillars { display: grid; gap: 6px; margin-top: 6px; }
.cat-pillars li { font-size: .86rem; color: var(--muted); line-height: 1.7; padding: 8px 12px; border-radius: 12px; background: var(--cs); }
.cat-pillars b { color: var(--ct); margin-inline-end: 6px; }
.cat-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-foot .link-arrow { color: var(--ct); }
.cat-foot small { font-size: .78rem; color: var(--muted-2); font-weight: 600; }

/* ---------------------------------------------------------------- رفيق showcase */
.rafiq-show-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.feature-list { display: grid; gap: 12px; margin: 22px 0 26px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.feature-list .ic { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--rose-soft); color: var(--rose); flex: none; }
.chat-demo { border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 520px; margin-inline: auto; width: 100%; }
.chat-demo-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--rafiq-grad); color: #fff; }
.demo-av { width: 44px; height: 44px; }
.demo-av path:first-of-type { fill: #fff; }
.demo-av circle:first-of-type { fill: #e3167b; }
.demo-av path:nth-of-type(2) { stroke: #e3167b; }
.chat-demo-head b { display: block; font-size: 1.05rem; }
.chat-demo-head small { display: inline-flex; align-items: center; gap: 6px; opacity: .9; font-size: .8rem; }
.chat-demo-head small i { width: 8px; height: 8px; border-radius: 50%; background: #7dffa8; box-shadow: 0 0 0 3px rgba(125, 255, 168, .25); }
.chat-demo-body { display: grid; gap: 12px; padding: 22px 18px; min-height: 360px; align-content: start; background: linear-gradient(180deg, var(--bg-alt), var(--surface)); }
.demo-msg { max-width: 88%; padding: 12px 16px; border-radius: 20px; font-size: .92rem; line-height: 1.85; opacity: 0; transform: translateY(14px) scale(.98); }
.is-in .demo-msg, .is-in .demo-typing { animation: msgIn .6s var(--ease) both; animation-delay: calc(.4s + var(--d) * 1.1s); }
.demo-msg--user { justify-self: end; background: #157a32; color: #fff; border-end-end-radius: 6px; }
.demo-msg--bot { justify-self: start; background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 6px; color: var(--ink-2); }
.demo-msg p { margin: 0 0 6px; }
.demo-msg ul { display: grid; gap: 4px; }
.demo-msg li { position: relative; padding-inline-start: 16px; }
.demo-msg li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.demo-typing { justify-self: start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); opacity: 0; }
.demo-typing i, .typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); animation: blink 1.2s infinite ease-in-out; }
.demo-typing i:nth-child(2), .typing i:nth-child(2) { animation-delay: .2s; }
.demo-typing i:nth-child(3), .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.chat-demo-input { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-demo-input span { flex: 1; padding: 10px 14px; border-radius: 999px; background: var(--bg-alt); color: var(--muted-2); font-size: .9rem; }
.chat-demo-input b { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-alt); color: var(--rose); }
.chat-demo-input b.is-send { background: var(--rafiq-grad); color: #fff; }
.chat-demo-input .ic { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- center */
.center-teaser-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: start; }
.plan-photo { margin: 0; border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.plan-photo img { width: 100%; height: auto; }
.plan-photo button { display: block; width: 100%; cursor: zoom-in; }
.plan-photo figcaption { display: flex; align-items: center; gap: 8px; padding: 12px 18px; font-size: .88rem; color: var(--muted); font-weight: 600; border-top: 1px solid var(--line); }
.plan-photo figcaption .ic { color: var(--gold); }
.plan-photo--wide { max-width: 1100px; margin-inline: auto; }
.center-services { display: grid; gap: 10px; }
.center-services li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.center-services li > span, .center-services button > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); flex: none; }
.center-services b { display: block; color: var(--ink); font-size: .96rem; }
.center-services small { color: var(--muted-2); font-size: .82rem; line-height: 1.6; display: block; }
.center-services--wide { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.center-services--wide li { padding: 0; }
.center-services--wide button { width: 100%; height: 100%; display: flex; gap: 12px; align-items: center; padding: 16px; text-align: start; border-radius: 16px; transition: background-color .25s; }
.center-services--wide button:hover { background: var(--tint-2); }

.plan-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.plan-board { padding: 18px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; direction: ltr; }
.plan-svg { width: 100%; min-width: 620px; height: auto; font-family: var(--font); direction: rtl; }
.pl-shell { fill: var(--bg-alt); stroke: #2f3a33; stroke-width: 8; }
[data-theme="dark"] .pl-shell { stroke: #9fb2a5; }
.pl-room rect { stroke: rgba(30, 40, 34, .55); stroke-width: 2; transition: fill .3s, stroke .3s, stroke-width .3s; }
.pl-room text { text-anchor: middle; font-weight: 700; fill: #1d2a22; pointer-events: none; }
.pl-name { font-size: 15px; }
.pl-sub { font-size: 13px; font-weight: 600 !important; }
.pl-hall { font-size: 17px; fill: #5c6a61 !important; letter-spacing: .02em; }
.pl-ic { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.pl-badge circle { stroke: #fff; stroke-width: 2.5; }
.pl-badge text { fill: #fff !important; font-size: 14px; }
.k-learn rect { fill: #dcecfa; } .k-learn .pl-ic { stroke: #1a7fc6; } .k-learn .pl-badge circle { fill: #1a7fc6; }
.k-therapy rect { fill: #fbdcea; } .k-therapy .pl-ic { stroke: #d4196f; } .k-therapy .pl-badge circle { fill: #d4196f; }
.k-skills rect { fill: #f7ebcc; } .k-skills .pl-ic { stroke: #a87a12; } .k-skills .pl-badge circle { fill: #a87a12; }
.k-lecture rect { fill: #dbf1e1; } .k-lecture .pl-ic { stroke: #23893f; } .k-lecture .pl-badge circle { fill: #23893f; }
.k-admin rect { fill: #e2e8eb; } .k-admin .pl-ic { stroke: #52626b; } .k-admin .pl-badge circle { fill: #52626b; }
.k-service rect { fill: #f1e8d6; } .k-service .pl-ic { stroke: #9b7a3e; } .k-service .pl-badge circle { fill: #9b7a3e; }
.k-move rect { fill: #eceeec; stroke-dasharray: 6 5; }
.k-move .pl-ic { stroke: #7a857e; }
.pl-room[data-room] { cursor: pointer; outline: none; }
.pl-room[data-room]:hover rect, .pl-room[data-room]:focus-visible rect { stroke: #157a32; stroke-width: 3.5; filter: brightness(.97); }
.pl-room.is-active rect { stroke: var(--rose); stroke-width: 4.5; }
.pl-room.is-active.k-learn rect { fill: #b9d9f5; } .pl-room.is-active.k-therapy rect { fill: #f7bcd7; } .pl-room.is-active.k-skills rect { fill: #f1d998; }
.pl-room.is-active.k-lecture rect { fill: #b6e4c3; } .pl-room.is-active.k-admin rect { fill: #c9d4d9; } .pl-room.is-active.k-service rect { fill: #e5d3ae; }
.pl-dim path { stroke: var(--muted-2); stroke-width: 1.5; fill: none; }
.pl-dim text { fill: var(--muted); font-size: 15px; font-weight: 700; text-anchor: middle; }
.plan-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.plan-legend li { display: inline-flex; align-items: center; gap: 7px; }
.plan-legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--cs); border: 2px solid var(--c); }
.plan-panel { position: sticky; top: calc(var(--header-h) + 20px); padding: 26px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 300px; }
.plan-panel-empty { text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 6px; padding-block: 20px; }
.plan-panel-empty > .ic { width: 54px; height: 54px; padding: 13px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.plan-panel-empty p { font-size: .92rem; }
.pp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pp-num { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 18px; background: var(--c); color: #fff; font-weight: 700; font-size: 1.3rem; box-shadow: 0 12px 22px -12px var(--c); }
.pp-head h3 { margin: 0; font-size: 1.2rem; }
.pp-kind { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--cs); color: var(--ct); font-size: .78rem; font-weight: 700; }
.pp-needs { margin: 16px 0; padding: 14px 16px; border-radius: 16px; background: var(--bg-alt); }
.pp-needs b { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }
.pp-needs b .ic { color: var(--gold); }
.pp-needs ul { display: grid; gap: 6px; }
.pp-needs li { position: relative; padding-inline-start: 18px; font-size: .9rem; }
.pp-needs li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pp-actions { display: grid; gap: 8px; }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.room-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); transition: box-shadow .3s, transform .4s var(--ease); scroll-margin-top: calc(var(--header-h) + 20px); }
.room-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.room-card-head { display: flex; align-items: center; gap: 12px; }
.room-num { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--cs); color: var(--ct); font-weight: 700; font-size: 1.05rem; }
.room-card h3 { margin: 0; font-size: 1.06rem; }
.room-card-head small { color: var(--ct); font-weight: 600; font-size: .8rem; }
.room-card > p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.85; }
.room-needs b { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink); margin-bottom: 6px; }
.room-needs .ic { width: 16px; height: 16px; color: var(--gold); }
.room-needs ul { display: flex; flex-wrap: wrap; gap: 6px; }
.room-needs li { padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); font-size: .8rem; color: var(--ink-2); }
.room-card .link-arrow { margin-top: auto; color: var(--ct); font-size: .9rem; }
.center-cta { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 28px 30px; border-radius: 24px; background: var(--tint-2); border: 1px solid var(--line-soft); }
.center-cta h3 { margin-bottom: 4px; }
.center-cta p { margin: 0; color: var(--muted); }

/* timeline */
.tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.tl::before { content: ""; position: absolute; top: 26px; inset-inline: 8%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--line) 0 30%, var(--accent) 60% 100%); }
.tl-step { position: relative; display: grid; justify-items: center; text-align: center; gap: 12px; }
.tl-dot { position: relative; z-index: 1; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); color: var(--muted-2); }
.tl-step--done .tl-dot { background: var(--btn); border-color: var(--btn); color: #fff; }
.tl-step--now .tl-dot { background: var(--rose); border-color: var(--rose); color: #fff; box-shadow: 0 0 0 7px var(--rose-soft); animation: pulseRing 2.4s infinite; }
@keyframes pulseRing { 50% { box-shadow: 0 0 0 12px rgba(227, 22, 123, .06); } }
.tl-step small { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--bg-alt); font-weight: 700; color: var(--accent); font-size: .8rem; }
.tl-step--now small { background: var(--rose-soft); color: var(--rose); }
.tl-step h3 { font-size: 1.02rem; margin: 6px 0 4px; }
.tl-step p { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.75; }

/* ---------------------------------------------------------------- page hero (illustrated, no photos) */
.page-hero--art { background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--c2, #36ad57) 55%, transparent), transparent 60%), linear-gradient(135deg, var(--cd, #062413) 0%, var(--c, #157a32) 100%); background-color: var(--c, #157a32); color: #fff; padding-block: clamp(56px, 8vw, 100px) clamp(80px, 10vw, 130px); }
.page-hero--art h1 { color: #fff; }
.page-hero--art .lead { color: rgba(255, 255, 255, .86); }
.page-hero--art .crumbs { color: rgba(255, 255, 255, .7); }
.page-hero--art .crumbs span { color: #fff; }
.page-hero--art .crumbs a:hover { color: #fff; }
.page-hero--art .eyebrow--glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
[data-theme="dark"] .page-hero--art .eyebrow--glass { background: rgba(255, 255, 255, .1); }
.page-hero--art .btn--glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.page-hero--art .btn--glass:hover { background: rgba(255, 255, 255, .24); }
.page-hero--art .btn--primary { background: #fff; color: var(--cd, #062413); }
.page-hero--art .btn--primary:hover { background: #f1f7f2; }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.ph-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ph-bg i { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); }
.ph-bg i:nth-child(1) { width: 560px; height: 560px; inset-inline-start: -180px; top: -300px; }
.ph-bg i:nth-child(2) { width: 380px; height: 380px; inset-inline-start: -90px; top: -210px; border-color: rgba(255, 255, 255, .08); }
.ph-bg i:nth-child(3) { width: 220px; height: 220px; inset-inline-end: 6%; bottom: -120px; background: rgba(255, 255, 255, .05); border: 0; }
.ph-art { position: relative; width: clamp(150px, 18vw, 230px); aspect-ratio: 1; display: grid; place-items: center; }
.ph-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); animation: spin 40s linear infinite; }
.ph-ring--2 { inset: 16%; border: 0; background: rgba(255, 255, 255, .1); animation: none; }
.ph-icon { position: relative; width: 46%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 30%; background: #fff; color: var(--c, #157a32); box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .45); animation: floaty 7s ease-in-out infinite; }
.ph-icon .ic { width: 52%; height: 52%; }
.ph-logo img { width: clamp(170px, 20vw, 270px); height: auto; border-radius: 50%; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55), 0 0 0 8px rgba(255, 255, 255, .15); }

/* ---------------------------------------------------------------- about */
.president-quote { position: relative; margin: 22px 0 26px; padding: 26px 28px; border-radius: 22px; background: var(--tint-2); border: 1px solid var(--line-soft); }
.president-quote > .ic { width: 34px; height: 34px; color: var(--gold); margin-bottom: 10px; }
.president-quote p { font-size: 1.06rem; line-height: 2; color: var(--ink-2); margin-bottom: 14px; }
.president-quote footer b { display: block; color: var(--ink); }
.president-quote footer small { color: var(--muted-2); }
.official-card { padding: 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.official-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 14px; }
.official-card h3 .ic { color: var(--accent); }
.official-card dl { margin: 0; }
.official-card dl div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.official-card dt { color: var(--muted-2); font-weight: 600; font-size: .86rem; }
.official-card dd { margin: 0; color: var(--ink); font-weight: 600; font-size: .94rem; }
.logo-meaning { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.logo-meaning-art img { width: 100%; max-width: 420px; height: auto; margin-inline: auto; border-radius: 50%; box-shadow: var(--shadow-lg); }
.lm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lm-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.lm-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--c); color: #fff; }
.lm-list b { color: var(--ink); }
.lm-list p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.7; }
.values-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------------------------------------------------------------- guide */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.pillar > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.page-guide-cat .pillar > span { background: var(--cs, var(--accent-soft)); color: var(--ct, var(--accent)); }
.pillar h3 { font-size: 1.05rem; margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.8; }
.guide-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.guide-aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.kb-toolbar { display: grid; gap: 12px; margin-bottom: 18px; }
.kb-toolbar .search-field { max-width: none; }
.kb-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-filters button { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: .86rem; font-weight: 600; color: var(--muted); transition: all .25s; }
.kb-filters button small { color: var(--muted-2); font-weight: 500; }
.kb-filters button.is-on { background: var(--btn); border-color: var(--btn); color: #fff; }
.kb-filters button.is-on small { color: rgba(255, 255, 255, .8); }
.kb-list { display: grid; gap: 10px; }
.kb-group { display: grid; gap: 10px; }
.kb-item { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; scroll-margin-top: calc(var(--header-h) + 20px); }
.kb-item[open] { box-shadow: var(--shadow); border-color: var(--limestoned); }
.kb-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.kb-item summary::-webkit-details-marker { display: none; }
.kb-q { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kb-urgent { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: #fde8e6; color: #b42318; font-size: .74rem; font-weight: 700; }
[data-theme="dark"] .kb-urgent { background: rgba(180, 35, 24, .25); color: #ffb4ab; }
.kb-urgent .ic { width: 14px; height: 14px; }
.kb-body { padding: 0 20px 20px; color: var(--ink-2); line-height: 1.95; }
.kb-body p { margin: 0 0 10px; }
.kb-body ul, .kb-body ol, .msg-text ul, .msg-text ol { display: grid; gap: 7px; margin: 6px 0 12px; }
.kb-body ul li, .msg-text ul li { position: relative; padding-inline-start: 20px; }
.kb-body ul li::before, .msg-text ul li::before { content: ""; position: absolute; inset-inline-start: 3px; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.kb-body ol, .msg-text ol { counter-reset: n; }
.kb-body ol li, .msg-text ol li { position: relative; padding-inline-start: 30px; counter-increment: n; }
.kb-body ol li::before, .msg-text ol li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: .2em; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .76rem; font-weight: 700; }
.kb-body strong, .msg-text strong { color: var(--ink); }
.kb-src { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted-2); margin: 10px 0 0 !important; }
.kb-src .ic { width: 15px; height: 15px; color: var(--accent); }
.kb-ask { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--rose-soft); color: var(--rose); font-weight: 600; font-size: .88rem; }
.kb-av { width: 26px; height: 26px; }
.aside-card--rafiq { background: var(--rafiq-grad); color: #fff; border: 0; }
.aside-card--rafiq h3 { color: #fff; }
.aside-card--rafiq p { color: rgba(255, 255, 255, .88); }
.aside-av { width: 56px; height: 56px; margin-bottom: 8px; }
.aside-av path:first-of-type { fill: #fff; }
.aside-av circle:first-of-type { fill: #e3167b; }
.aside-av path:nth-of-type(2) { stroke: #e3167b; }
.aside-card--alert { background: #fff4f2; border-color: #f6cfc9; }
[data-theme="dark"] .aside-card--alert { background: rgba(180, 35, 24, .12); border-color: rgba(180, 35, 24, .35); }
.aside-card--alert h3 .ic { color: #c0362c; }
.tool-minis { display: grid; gap: 8px; }
.tool-mini { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-alt); transition: background-color .25s; }
.tool-mini:hover { background: var(--tint); }
.tool-mini > .ic { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--surface); color: var(--violet); }
.tool-mini b { display: block; font-size: .92rem; color: var(--ink); }
.tool-mini small { font-size: .78rem; color: var(--muted-2); }
.guide-others p { margin: 0 0 8px; font-weight: 700; font-size: .86rem; color: var(--muted-2); }
.guide-others { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.guide-others p { width: 100%; }
.guide-others a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; }
.guide-others a .ic { width: 16px; height: 16px; color: var(--ct); }
.guide-infographic { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.guide-infographic figure { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); }
.guide-infographic figure button { display: block; cursor: zoom-in; }

/* tools teaser */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .35s; overflow: hidden; }
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tool-ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: linear-gradient(145deg, #b27be0, #7d3cb0); color: #fff; margin-bottom: 8px; }
.tool-card:nth-child(2) .tool-ic { background: linear-gradient(145deg, #63b6f0, #1a7fc6); }
.tool-card:nth-child(3) .tool-ic { background: linear-gradient(145deg, #ebc463, #a87a12); }
.tool-card h3 { margin: 0; }
.tool-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.tool-card .link-arrow { margin-top: auto; padding-top: 8px; }

/* footer, fab, mobile bar */
.footer-static { display: flex; gap: 10px; align-items: flex-start; }
.footer-static .ic { width: 18px; height: 18px; color: var(--fluo); margin-top: .35em; flex: none; }
.footer-pill { display: inline-flex; }
.pill-av { width: 22px; height: 22px; }
.mb-av { width: 30px; height: 30px; }
.mobile-bar-main .mb-av path:first-of-type { fill: #fff; }
.mobile-bar-main .mb-av circle:first-of-type { fill: #e3167b; }
.mobile-bar-main .mb-av path:nth-of-type(2) { stroke: #e3167b; }
.rafiq-fab { position: fixed; z-index: 45; inset-inline-end: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; border-radius: 999px; background: var(--rafiq-grad); color: #fff; font-weight: 700; box-shadow: 0 18px 36px -14px rgba(227, 22, 123, .75); transition: transform .4s var(--ease-spring), box-shadow .3s, opacity .3s; }
.rafiq-fab:hover { transform: translateY(-3px) scale(1.03); }
.fab-av { width: 42px; height: 42px; }
.fab-av path:first-of-type { fill: #fff; }
.fab-av circle:first-of-type { fill: #e3167b; }
.fab-av path:nth-of-type(2) { stroke: #e3167b; }
.fab-ping { position: absolute; top: 4px; inset-inline-start: 38px; width: 12px; height: 12px; border-radius: 50%; background: #7dffa8; border: 2px solid #fff; }
.fab-ping::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #7dffa8; animation: ping 2.2s infinite; }
.page-rafiq .rafiq-fab, .rafiq-panel-open .rafiq-fab { opacity: 0; pointer-events: none; transform: scale(.6); }
.page-dash .rafiq-fab, .page-auth .rafiq-fab { display: none; }

/* ---------------------------------------------------------------- «رفيق» chat (page + floating panel) */
.rafiq-page { position: relative; overflow: hidden; padding-block: 26px 30px; background: linear-gradient(180deg, #fdf3f8, var(--bg) 40%); }
[data-theme="dark"] .rafiq-page { background: linear-gradient(180deg, #1c0d16, var(--bg) 40%); }
.rafiq-page-bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none; }
.rafiq-page-bg i:nth-child(1) { width: 420px; height: 420px; background: #ffb7d6; top: -160px; inset-inline-start: -120px; }
.rafiq-page-bg i:nth-child(2) { width: 380px; height: 380px; background: #c9b2ff; top: 30%; inset-inline-end: -140px; }
[data-theme="dark"] .rafiq-page-bg i { opacity: .1; }
.rafiq-layout { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.rafiq-side { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 14px); }
.rafiq-id { display: flex; align-items: center; gap: 14px; }
.side-av { width: 64px; height: 64px; filter: drop-shadow(0 12px 18px rgba(227, 22, 123, .35)); }
.rafiq-id h1 { margin: 0; font-size: 1.8rem; background: var(--rafiq-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rafiq-id p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.rafiq-side-card { padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.rafiq-side-card h2 { display: flex; align-items: center; gap: 8px; font-size: .98rem; margin-bottom: 10px; }
.rafiq-side-card h2 .ic { color: var(--rose); width: 18px; height: 18px; }
.rafiq-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.rafiq-topics button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line-soft); font-size: .82rem; font-weight: 600; color: var(--ink-2); transition: all .25s; }
.rafiq-topics button .ic { width: 15px; height: 15px; color: var(--rose); }
.rafiq-topics button:hover, .rafiq-topics button.is-on { background: var(--rose); color: #fff; border-color: var(--rose); }
.rafiq-topics button:hover .ic, .rafiq-topics button.is-on .ic { color: #fff; }
.rafiq-how ul { display: grid; gap: 9px; }
.rafiq-how li { display: flex; gap: 9px; font-size: .86rem; color: var(--muted); line-height: 1.7; }
.rafiq-how li .ic { width: 18px; height: 18px; color: var(--accent); margin-top: .25em; }
.rafiq-sos { background: #fff4f2; border-color: #f6cfc9; }
[data-theme="dark"] .rafiq-sos { background: rgba(180, 35, 24, .12); border-color: rgba(180, 35, 24, .35); }
.rafiq-sos h2 .ic { color: #c0362c; }
.rafiq-sos p { font-size: .86rem; color: var(--muted); }
.rafiq-disclaimer { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 14px; font-size: .8rem; color: var(--muted-2); text-align: center; }
.rafiq-disclaimer .ic { width: 16px; height: 16px; flex: none; }
.rafiq-disclaimer a { text-decoration: underline; }
.rafiq-main { min-width: 0; }

.chat { position: relative; display: flex; flex-direction: column; height: clamp(560px, calc(100svh - var(--header-h) - 70px), 860px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.chat--loading { display: grid; place-items: center; }
.chat-boot { display: grid; justify-items: center; gap: 10px; color: var(--muted); }
.boot-av { width: 70px; height: 70px; animation: floaty 3s ease-in-out infinite; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--rafiq-grad); color: #fff; flex: none; }
.chat-head .rafiq-av { width: 42px; height: 42px; }
.chat-head .rafiq-av path:first-of-type { fill: #fff; }
.chat-head .rafiq-av circle:first-of-type { fill: #e3167b; }
.chat-head .rafiq-av path:nth-of-type(2) { stroke: #e3167b; }
.chat-head b { display: block; font-size: 1.04rem; }
.chat-head small { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; opacity: .92; }
.chat-head small i { width: 8px; height: 8px; border-radius: 50%; background: #7dffa8; }
.chat-head-actions { margin-inline-start: auto; display: flex; gap: 4px; }
.chat-head-actions button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; transition: background-color .25s; }
.chat-head-actions button:hover { background: rgba(255, 255, 255, .18); }
.chat-head-actions .ic { width: 19px; height: 19px; }
.chat-profile { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--rose-soft); color: var(--ink-2); font-size: .82rem; flex: none; }
.chat-profile b { color: var(--rose); }
.chat-profile button { margin-inline-start: auto; color: var(--rose); font-weight: 600; font-size: .8rem; text-decoration: underline; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; background: linear-gradient(180deg, var(--bg-alt), var(--surface) 160px); overscroll-behavior: contain; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; animation: msgIn .45s var(--ease) both; opacity: 0; transform: translateY(10px); }
.msg--bot { align-self: flex-start; }
.msg--user { align-self: flex-end; flex-direction: row-reverse; }
.msg-av { width: 32px; height: 32px; flex: none; }
.msg-bubble { min-width: 0; padding: 12px 16px; border-radius: 20px; line-height: 1.9; font-size: .95rem; }
.msg--bot .msg-bubble { background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 6px; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.msg--user .msg-bubble { background: #157a32; color: #fff; border-end-end-radius: 6px; white-space: pre-wrap; word-break: break-word; }
.msg-text p { margin: 0 0 8px; }
.msg-text p:last-child { margin-bottom: 0; }
.msg-title { display: block; font-weight: 700; color: var(--rose); font-size: .86rem; margin-bottom: 6px; }
.msg-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.msg-src { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--muted-2); margin-inline-end: auto; }
.msg-src .ic { width: 14px; height: 14px; color: var(--accent); }
.msg-tools { display: inline-flex; gap: 2px; }
.msg-tools button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--muted-2); transition: all .2s; }
.msg-tools button:hover { background: var(--bg-alt); color: var(--ink); }
.msg-tools button.is-on { color: var(--rose); background: var(--rose-soft); }
.msg-tools .ic { width: 16px; height: 16px; }
.msg-rel { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg-rel p { width: 100%; margin: 0; font-size: .76rem; color: var(--muted-2); font-weight: 600; }
.msg-rel button, .chat-sugs button { padding: 6px 12px; border-radius: 999px; background: var(--rose-soft); color: var(--rose-deep); font-size: .82rem; font-weight: 600; line-height: 1.5; text-align: start; transition: all .2s; border: 1px solid transparent; }
[data-theme="dark"] .msg-rel button, [data-theme="dark"] .chat-sugs button { color: #ff9cc8; }
.msg-rel button:hover, .chat-sugs button:hover { background: var(--rose); color: #fff; }
.msg-sos { margin-bottom: 10px; padding: 12px 14px; border-radius: 14px; background: #fde8e6; color: #8f1d14; border: 1px solid #f6c3bd; font-size: .9rem; }
[data-theme="dark"] .msg-sos { background: rgba(180, 35, 24, .2); color: #ffd2cc; border-color: rgba(180, 35, 24, .5); }
.msg-sos b { display: flex; align-items: center; gap: 6px; }
.msg-sos a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 14px; border-radius: 10px; background: #c0362c; color: #fff; font-weight: 700; }
.msg-sos .ic { width: 16px; height: 16px; }
.msg-ai { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: rgba(125, 60, 176, .1); color: var(--violet); font-size: .74rem; font-weight: 700; margin-bottom: 6px; }
[data-theme="dark"] .msg-ai { color: #c9a6ef; }
.msg-ai .ic { width: 13px; height: 13px; }
.msg-links { display: grid; gap: 4px; margin-top: 8px; font-size: .8rem; }
.msg-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); text-decoration: underline; word-break: break-all; }
.msg-links .ic { width: 13px; height: 13px; flex: none; }
.msg-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg-actions-row button, .msg-actions-row a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; border: 1.5px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.msg-actions-row button:hover, .msg-actions-row a:hover { border-color: var(--rose); color: var(--rose); }
.msg-actions-row .ic { width: 16px; height: 16px; }
.typing { display: inline-flex; gap: 5px; padding: 6px 4px; }
.chat-sugs { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px; border-top: 1px solid var(--line-soft); scrollbar-width: none; }
.chat-sugs::-webkit-scrollbar { display: none; }
.chat-sugs button { white-space: nowrap; flex: none; }
.chat-compose { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input { flex: 1; min-width: 0; resize: none; max-height: 140px; min-height: 48px; padding: 12px 16px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--bg-alt); font: inherit; font-size: 1rem; line-height: 1.6; color: var(--ink); outline: none; transition: border-color .25s, box-shadow .25s; }
.chat-input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); background: var(--surface); }
.chat-btn { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; transition: transform .3s var(--ease-spring), background-color .25s; }
.chat-btn .ic { width: 22px; height: 22px; }
.chat-mic { background: var(--rose-soft); color: var(--rose); position: relative; }
.chat-mic:hover { transform: scale(1.06); }
.chat-mic.is-on { background: #c0362c; color: #fff; }
.chat-mic.is-on::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid rgba(192, 54, 44, .45); animation: ping 1.4s infinite; }
.chat-send { background: var(--rafiq-grad); color: #fff; box-shadow: 0 10px 20px -10px rgba(227, 22, 123, .8); }
.chat-send:disabled { opacity: .45; box-shadow: none; }
.chat-send .ic { transform: scaleX(-1); }
.chat-note { flex: none; margin: 0; padding: 0 14px 10px; font-size: .74rem; color: var(--muted-2); text-align: center; background: var(--surface); }
.chat-listen { position: absolute; inset-inline: 14px; bottom: 84px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: #1d2a22; color: #fff; font-size: .88rem; box-shadow: var(--shadow-lg); animation: msgIn .3s var(--ease) both; opacity: 0; }
.chat-listen .wave { display: inline-flex; gap: 3px; align-items: center; height: 18px; }
.chat-listen .wave i { width: 3px; height: 100%; border-radius: 3px; background: #ff7cb6; animation: wave 1s infinite ease-in-out; }
.chat-listen .wave i:nth-child(2) { animation-delay: .15s; } .chat-listen .wave i:nth-child(3) { animation-delay: .3s; } .chat-listen .wave i:nth-child(4) { animation-delay: .45s; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.chat-listen button { margin-inline-start: auto; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .15); font-size: .8rem; }
.chat-lang { font-size: .74rem; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .15); color: #fff; font-weight: 700; }
.welcome-card { align-self: stretch; display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); animation: msgIn .5s var(--ease) both; opacity: 0; }
.welcome-card h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.1rem; }
.welcome-card h3 .rafiq-av { width: 40px; height: 40px; }
.welcome-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.85; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.welcome-grid button { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line-soft); font-size: .86rem; font-weight: 600; text-align: start; color: var(--ink-2); line-height: 1.5; transition: all .25s; }
.welcome-grid button:hover { border-color: var(--rose); background: var(--rose-soft); }
.welcome-grid .ic { width: 20px; height: 20px; color: var(--rose); flex: none; }

/* floating panel */
.rafiq-panel { position: fixed; z-index: 120; inset-inline-end: 22px; bottom: 22px; width: min(420px, calc(100vw - 32px)); height: min(680px, calc(100svh - 120px)); opacity: 0; transform: translateY(24px) scale(.96); transform-origin: bottom left; pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.rafiq-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.rafiq-panel .chat { height: 100%; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45); }

/* ---------------------------------------------------------------- tools page */
.tool-tabs { display: flex; gap: 8px; padding: 6px; border-radius: 20px; background: var(--bg-alt); border: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tool-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: all .25s; }
.tool-tabs button[aria-selected="true"] { background: var(--surface); color: var(--violet); box-shadow: var(--shadow-sm); }
.tool-tabs .ic { width: 20px; height: 20px; }
.tool-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.tool-intro h2 { margin-bottom: 6px; }
.tool-intro p { margin: 0; color: var(--muted); max-width: 720px; }
.sch-layout { display: grid; grid-template-columns: 360px 1fr; gap: 22px; align-items: start; }
.sch-library, .sch-board-wrap, .log-form, .log-side { padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.sch-library { position: sticky; top: calc(var(--header-h) + 16px); }
.sch-lib-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sch-lib-head h3 { display: flex; align-items: center; gap: 6px; font-size: 1rem; margin: 0; }
.sch-lib-head small { color: var(--muted-2); font-size: .78rem; }
.sch-lib-tabs, .board-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.sch-lib-tabs button, .board-tabs button { padding: 5px 12px; border-radius: 999px; background: var(--bg-alt); font-size: .82rem; font-weight: 600; color: var(--muted); }
.sch-lib-tabs button.is-on, .board-tabs button.is-on { background: var(--violet); color: #fff; }
.sch-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 380px; overflow-y: auto; padding: 2px; }
.sch-card { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; background: var(--bg-alt); border: 1.5px solid transparent; font-size: .8rem; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.4; transition: all .2s; }
.sch-card:hover { border-color: var(--violet); background: rgba(125, 60, 176, .07); transform: translateY(-2px); }
.sch-card .emo, .sch-item .emo, .board-card .emo { font-size: 2rem; line-height: 1.1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.sch-card img, .sch-item img, .board-card img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.sch-custom { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sch-custom .field { grid-column: 1 / -1; }
.sch-custom--row { grid-template-columns: 1fr auto auto; margin-top: 18px; padding: 16px; border-radius: 18px; border: 1px dashed var(--line); }
.sch-custom--row .field { grid-column: auto; }
.upload--sm { min-height: 0; }
.upload--sm > span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; border: 1.5px dashed var(--line); font-size: .82rem; color: var(--muted); cursor: pointer; }
.upload--sm.has-file > span { border-color: var(--violet); color: var(--violet); }
.upload--sm input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sch-board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sch-board-head h3 { margin: 0; }
.sch-board { display: grid; gap: 10px; min-height: 160px; counter-reset: step; }
.sch-board:empty::before { content: "اختر الأنشطة من القائمة لبناء جدول اليوم"; display: grid; place-items: center; min-height: 160px; border-radius: 18px; border: 2px dashed var(--line); color: var(--muted-2); font-size: .92rem; }
.sch-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--bg-alt); border: 2px solid transparent; transition: all .3s var(--ease); counter-increment: step; }
.sch-item::before { content: counter(step); width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 700; font-size: .85rem; }
.sch-item .emo { font-size: 2.4rem; }
.sch-item img { width: 56px; height: 56px; }
.sch-item-main { flex: 1; display: flex; align-items: center; gap: 12px; text-align: start; font-weight: 700; font-size: 1.05rem; color: var(--ink); min-width: 0; }
.sch-item.is-done { background: rgba(21, 122, 50, .08); border-color: rgba(21, 122, 50, .35); }
.sch-item.is-done .sch-item-main { text-decoration: line-through; color: var(--muted-2); }
.sch-item.is-done::before { content: "✓"; background: var(--btn); }
.sch-item-tools { display: flex; gap: 2px; }
.sch-item-tools button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--muted-2); }
.sch-item-tools button:hover { background: var(--surface); color: var(--ink); }
.sch-item-tools .ic { width: 17px; height: 17px; }
.sch-ft { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sch-ft-slot { display: grid; justify-items: center; align-content: start; gap: 10px; min-height: 260px; padding: 18px; border-radius: 22px; border: 3px dashed var(--line); background: var(--bg-alt); text-align: center; }
.sch-ft-slot > b { font-size: 1.35rem; color: var(--violet); }
.sch-ft-slot.has-item { border-style: solid; border-color: var(--violet); background: var(--surface); }
.sch-ft-slot .emo { font-size: 5rem; line-height: 1.1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.sch-ft-slot img { width: 140px; height: 140px; object-fit: cover; border-radius: 18px; }
.sch-ft-slot span { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.sch-ft-slot small { color: var(--muted-2); }
.sch-ft-slot button { font-size: .8rem; color: var(--muted-2); text-decoration: underline; }
.sch-ft-slot.is-target { box-shadow: 0 0 0 4px rgba(125, 60, 176, .2); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--line); transition: background-color .25s; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--violet); }
.switch input:checked + span::after { transform: translateX(-20px); }
.switch input:focus-visible + span { outline: 3px solid var(--ultra); outline-offset: 2px; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.board-card { position: relative; display: grid; justify-items: center; gap: 8px; padding: 18px 10px; border-radius: 22px; background: var(--surface); border: 2px solid var(--line); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-align: center; transition: transform .25s var(--ease-spring), border-color .2s, box-shadow .2s; }
.board-card .emo { font-size: 3.2rem; }
.board-card img { width: 80px; height: 80px; border-radius: 14px; }
.board-card:hover, .board-card:focus-visible { border-color: var(--c, var(--violet)); transform: scale(1.04); box-shadow: var(--shadow); }
.board-card:active { transform: scale(.97); }
.board-card[data-g="needs"] { --c: #1a7fc6; } .board-card[data-g="feel"] { --c: #d4196f; } .board-card[data-g="people"] { --c: #23893f; } .board-card[data-g="answers"] { --c: #a87a12; } .board-card[data-g="mine"] { --c: #7d3cb0; }
.board-card .del { position: absolute; top: 6px; inset-inline-end: 6px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--muted-2); }
.board-card .del .ic { width: 15px; height: 15px; }
.board-zoom { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(10, 15, 12, .7); backdrop-filter: blur(6px); animation: fadeIn .25s both; }
.board-zoom > button { position: absolute; inset: 0; }
.board-zoom-card { position: relative; display: grid; justify-items: center; gap: 20px; padding: clamp(30px, 6vw, 60px); border-radius: 36px; background: #fff; min-width: min(420px, 86vw); text-align: center; animation: zoomIn .4s var(--ease-spring) both; pointer-events: none; }
.board-zoom-card span { font-size: clamp(6rem, 22vw, 11rem); line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.board-zoom-card span img { width: clamp(160px, 40vw, 260px); height: auto; border-radius: 24px; }
.board-zoom-card b { font-size: clamp(2rem, 7vw, 3.2rem); color: #111; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { transform: scale(.6); opacity: 0; } }
.log-layout { display: grid; grid-template-columns: 420px 1fr; gap: 22px; align-items: start; }
.log-form { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; }
.scale { display: flex; gap: 8px; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; }
.scale span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; cursor: pointer; transition: all .2s; }
.scale input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.scale input:focus-visible + span { outline: 3px solid var(--ultra); }
.field-hint { color: var(--muted-2); font-size: .78rem; }
.log-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.log-stat { padding: 12px; border-radius: 14px; background: var(--bg-alt); }
.log-stat b { display: block; font-size: 1.5rem; color: var(--ink); line-height: 1.2; }
.log-stat small { color: var(--muted); font-size: .78rem; }
.log-filter { margin-bottom: 12px; }
.log-filter select { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); }
.log-list { display: grid; gap: 10px; }
.log-day { font-size: .82rem; font-weight: 700; color: var(--muted-2); margin-top: 6px; }
.log-entry { position: relative; padding: 14px 16px; border-radius: 16px; background: var(--bg-alt); border-inline-start: 4px solid var(--c, var(--violet)); }
.log-entry-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.log-entry-head b { color: var(--ink); }
.log-entry-head time, .log-entry-head small { color: var(--muted-2); font-size: .8rem; }
.log-entry p { margin: 2px 0; font-size: .9rem; color: var(--ink-2); line-height: 1.7; }
.log-entry p span { color: var(--muted-2); }
.log-entry .del { position: absolute; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--muted-2); }
.log-entry .del:hover { background: var(--surface); color: var(--danger); }
.log-entry .del .ic { width: 16px; height: 16px; }
.log-empty { padding: 30px; text-align: center; color: var(--muted-2); border: 2px dashed var(--line); border-radius: 18px; }
.print-sheet { display: none; }

/* ---------------------------------------------------------------- a11y panel */
.a11y { position: fixed; inset: 0; z-index: 260; visibility: hidden; }
.a11y.is-open { visibility: visible; }
.a11y-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 10, .45); opacity: 0; transition: opacity .3s; }
.a11y.is-open .a11y-backdrop { opacity: 1; }
.a11y-panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(380px, 92vw); padding: 20px; background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 18px; overflow-y: auto; transform: translateX(100%); transition: transform .4s var(--ease); }
.a11y.is-open .a11y-panel { transform: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.a11y-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 0; }
.a11y-head h2 .ic { color: var(--accent); }
.a11y-group p { margin: 0 0 8px; font-weight: 700; color: var(--ink); }
.seg--full { display: flex; width: 100%; }
.seg--full button { flex: 1; }
.a11y-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a11y-toggles button { display: grid; justify-items: center; gap: 8px; padding: 16px 10px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg-alt); font-weight: 600; font-size: .88rem; color: var(--ink-2); text-align: center; transition: all .25s; }
.a11y-toggles button .ic { width: 26px; height: 26px; color: var(--accent); }
.a11y-toggles button[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.a11y-toggles button[aria-pressed="true"] .ic { color: #fff; }
.a11y-note { font-size: .82rem; color: var(--muted-2); margin: 8px 0 0; }
.a11y-reset { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; color: var(--muted-2); font-size: .88rem; margin-top: auto; }
.a11y-reset .ic { width: 16px; height: 16px; }
.tts-on { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; background: rgba(239, 211, 140, .25); }

/* auth (no photo) */
.auth-visual--brand { background: radial-gradient(80% 80% at 30% 20%, #36ad57, transparent 60%), radial-gradient(70% 70% at 90% 90%, #e3167b, transparent 60%), linear-gradient(160deg, #0b3a1d, #062413); }
.auth-visual--brand .auth-visual-copy img { border-radius: 50%; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5); }

/* dashboard additions */
.ai-form { display: grid; gap: 14px; }
.ai-steps { display: grid; gap: 6px; padding: 14px 18px; border-radius: 14px; background: var(--bg-alt); counter-reset: s; font-size: .9rem; }
.ai-steps li { counter-increment: s; display: flex; gap: 8px; }
.ai-steps li::before { content: counter(s) "."; font-weight: 700; color: var(--accent); }
.ai-test-out { padding: 12px 14px; border-radius: 12px; background: var(--bg-alt); font-size: .9rem; white-space: pre-wrap; }
.uq-list, .custom-list { display: grid; gap: 8px; }
.uq-row, .custom-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--bg-alt); }
.uq-row p, .custom-row p { flex: 1; margin: 0; font-size: .92rem; color: var(--ink-2); min-width: 0; }
.uq-row small, .custom-row small { display: block; color: var(--muted-2); font-size: .76rem; }
.uq-row .btn, .custom-row .btn { flex: none; }
.custom-row.is-off { opacity: .55; }

/* ---------------------------------------------------------------- print */
@media print {
  body.printing > *:not(.print-sheet) { display: none !important; }
  body.printing .print-sheet { display: block !important; }
  .print-sheet { font-family: var(--font); color: #000; }
  .print-sheet h1 { font-size: 20pt; margin: 0 0 4pt; }
  .print-sheet .ps-sub { color: #444; margin: 0 0 12pt; font-size: 10pt; }
  .ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10pt; }
  .ps-card { border: 2pt solid #333; border-radius: 10pt; padding: 10pt; text-align: center; break-inside: avoid; }
  .ps-card .emo { font-size: 48pt; display: block; }
  .ps-card img { width: 90pt; height: 90pt; object-fit: cover; border-radius: 8pt; }
  .ps-card b { display: block; font-size: 16pt; margin-top: 4pt; }
  .ps-card small { font-size: 10pt; color: #555; }
  .ps-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .ps-table th, .ps-table td { border: 1pt solid #888; padding: 4pt 6pt; text-align: start; vertical-align: top; }
  .ps-table th { background: #eee; }
  @page { size: A4; margin: 14mm; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .plan-wrap { grid-template-columns: 1fr; }
  .plan-panel { position: static; min-height: 0; }
  .center-services--wide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .cat-grid, .room-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .guide-layout, .rafiq-layout { grid-template-columns: 1fr; }
  .guide-aside, .rafiq-side { position: static; }
  .rafiq-side { order: 2; }
  .tl { grid-template-columns: 1fr; gap: 0; }
  .tl::before { top: 0; bottom: 0; inset-inline: auto; inset-inline-start: 26px; width: 3px; height: auto; background: linear-gradient(180deg, var(--accent) 0 55%, var(--line) 75%); }
  .tl-step { grid-template-columns: 54px 1fr; justify-items: start; text-align: start; gap: 16px; padding-bottom: 22px; }
  .sch-layout, .log-layout { grid-template-columns: 1fr; }
  .sch-library, .log-form { position: static; }
  .values-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-n-grid, .rafiq-show-grid, .center-teaser-grid, .logo-meaning, .guide-infographic, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-n { min-height: 0; }
  .hero-n-visual { order: -1; max-width: 360px; margin-inline: auto; width: 100%; }
  .float-chip--chat { inset-inline-start: -8px; top: 0; max-width: 220px; }
  .float-chip--plan { inset-inline-end: -8px; bottom: 0; }
  .ph-art, .ph-logo { display: none; }
  .lm-list { grid-template-columns: 1fr; }
  .logo-meaning-art img { max-width: 280px; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .brand-logo { width: 44px; height: 44px; }
  .hero-n .hero-title { font-size: 3rem; }
  .hero-n-visual { max-width: 300px; }
  .orb { width: 50px; height: 50px; }
  .orb .ic { width: 24px; height: 24px; }
  .float-chip--chat, .float-chip--plan { display: none; }
  .hero-facts { font-size: .84rem; }
  .cat-grid, .room-grid, .tools-grid, .pillars, .values-grid--3, .welcome-grid { grid-template-columns: 1fr; }
  .center-services--wide { grid-template-columns: 1fr; }
  .id-card dl div, .official-card dl div { grid-template-columns: 1fr; gap: 2px; }
  .rafiq-fab { display: none; }
  .rafiq-page { padding-block: 10px 20px; }
  .rafiq-page .container.rafiq-layout { padding-inline: 10px; }
  .chat { height: calc(100svh - var(--header-h) - 92px); min-height: 480px; border-radius: 22px; }
  .rafiq-panel { inset: 0; width: 100%; height: 100%; bottom: 0; }
  .rafiq-panel .chat { border-radius: 0; height: 100%; min-height: 0; }
  .msg { max-width: 96%; }
  .msg-av { display: none; }
  .sch-cards { grid-template-columns: repeat(3, 1fr); max-height: 300px; }
  .sch-custom--row { grid-template-columns: 1fr; }
  .sch-ft { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sch-ft-slot { min-height: 200px; padding: 12px; }
  .sch-ft-slot .emo { font-size: 3.6rem; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-tabs button span { font-size: .86rem; }
  .tool-tabs button { padding: 10px; }
  .plan-board { padding: 10px; border-radius: 20px; }
  .center-cta { padding: 22px; }
}
@media (max-width: 420px) {
  .hide-xs { display: none !important; }
  .brand-text b { font-size: .92rem; }
  .tool-tabs button .ic { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit, .orb, .emblem-ring, .emblem-logo, .blob, .ph-ring, .ph-icon, .fab-ping::after { animation: none !important; }
  .demo-msg, .demo-typing, .msg, .welcome-card { opacity: 1; transform: none; animation: none !important; }
}
.chat-head-actions .chat-head-link { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; }
.chat-head-actions .chat-head-link:hover { background: rgba(255, 255, 255, .18); }
.chat-head-actions .chat-head-link .ic { width: 19px; height: 19px; }
.st-contacted { background: #d97706; }
.st-assessment { background: #7d3cb0; }
.st-enrolled { background: #1d9142; }
.st-waiting { background: #1a7fc6; }
.st-closed { background: #a3a5a3; }
.upload.upload--sm { display: inline-flex; width: auto; min-height: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.upload.upload--sm:hover { background: none; }
.mobile-bar .mobile-bar-main { background: var(--rafiq-grad); color: #fff; }
@media (max-width: 760px) {
  .hero-n-visual { max-width: 250px; }
  .hero-n { padding-top: 22px; }
}
@media (max-width: 760px) {
  .page-rafiq .mobile-bar { display: none; }
  .page-rafiq .chat { height: calc(100svh - var(--header-h) - 24px); }
  .page-rafiq .site-footer .footer-bottom { padding-bottom: 22px; }
}
.main-nav > ul > li > a { white-space: nowrap; padding-inline: 10px; }
.main-nav li.nav-optional { display: none; }
@media (min-width: 1440px) { .main-nav li.nav-optional { display: list-item; } }
@media (max-width: 1360px) { .header-actions .btn--outline { display: none; } .main-nav > ul > li > a { padding-inline: 8px; font-size: .92rem; } }

/* ---------------------------------------------------------------- posts published from the dashboard */
.news-card-media { position: relative; }
.news-badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.nb { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 18, 12, .62); color: #fff; font-size: .74rem; font-weight: 700; backdrop-filter: blur(6px); }
.nb .ic { width: 13px; height: 13px; }
.nb--pin { background: var(--gold); }
.nb--video { background: rgba(212, 25, 111, .9); }
.news-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--rose); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .5); transition: transform .35s var(--ease-spring); }
.news-play .ic { width: 26px; height: 26px; fill: currentColor; margin-left: 4px; }
.news-card:hover .news-play { transform: scale(1.1); }
.news-card--video .news-card-media { background: linear-gradient(135deg, #3c1660, #b50d5a); }
.news-grid[data-n="1"] { grid-template-columns: minmax(0, 560px); }
.news-grid[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-toolbar { display: grid; gap: 12px; }
.news-filters:empty { display: none; }
.tag--soft { background: var(--bg-alt) !important; color: var(--muted) !important; }
.topbar--news { background: linear-gradient(90deg, #b50d5a, #e3167b 55%, #8a3fb0); }
.topbar--news p > .ic { color: #fff; }

/* article page media */
.article-media { margin: 24px 0 26px; }
.post-video { width: 100%; max-height: 78vh; border-radius: 22px; background: #000; box-shadow: var(--shadow); }
.post-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.post-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-cover .gal-item { display: block; width: 100%; cursor: zoom-in; }
.article-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 10px; }
.article-gallery[data-n="2"], .article-gallery[data-n="4"] { grid-template-columns: repeat(2, 1fr); }
.article-gallery .gal-item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--tint); }
.article-gallery .gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.article-gallery .gal-item:hover img { transform: scale(1.05); }
.article-gallery[data-n="3"] .gal-item:first-child, .article-gallery[data-n="5"] .gal-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.lightbox .lb-nav { top: 50%; width: 52px; height: 52px; transform: translateY(-50%); background: rgba(255, 255, 255, .16); }
.lightbox .lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox .lb-prev { inset-inline-start: 18px; inset-inline-end: auto; }
.lightbox .lb-next { inset-inline-end: 18px; }
.lightbox .lb-close { top: 18px; inset-inline-end: 18px; }
.lb-count { position: absolute; bottom: 18px; inset-inline: 0; text-align: center; color: rgba(255, 255, 255, .85); font-weight: 700; font-size: .9rem; }
.lightbox--gallery img { max-width: min(1100px, 90vw); }

/* dashboard: posts list */
.post-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 22px; margin-bottom: 18px; border-radius: 20px; background: linear-gradient(135deg, var(--tint-2), #fdeef5); border: 1px solid var(--line-soft); }
[data-theme="dark"] .post-intro { background: linear-gradient(135deg, #10251a, #2a1020); }
.post-intro h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin-bottom: 4px; }
.post-intro h2 .ic { color: var(--accent); }
.post-intro p { margin: 0; font-size: .9rem; color: var(--muted); max-width: 720px; }
.news-admin { display: grid; gap: 10px; }
.na-item.is-draft { opacity: .72; border-style: dashed; }
.na-main { min-width: 0; }
.na-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.na-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--bg-alt); font-size: .74rem; font-weight: 600; color: var(--muted); }
.na-chip .ic { width: 13px; height: 13px; }
.na-chip--pin { background: rgba(195, 146, 42, .15); color: #8a6410; }
.na-chip--bar { background: var(--rose-soft); color: var(--rose-deep); }
.na-chip--m { background: var(--accent-soft); color: var(--accent); }
.na-live { color: var(--accent); }
.na-draft { color: var(--warn); }
.na-actions .icon-btn.is-on { color: var(--gold); background: rgba(195, 146, 42, .12); }

/* dashboard: post editor */
.modal-box--wide { width: min(860px, 100%); }
.post-form { display: grid; gap: 16px; }
.post-media { padding: 16px; border-radius: 18px; border: 2px dashed var(--line); background: var(--bg-alt); transition: border-color .25s, background-color .25s; }
.post-media.is-drag { border-color: var(--ultra); background: var(--tint-2); }
.post-media-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.post-media-head b { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.post-media-head small { color: var(--muted-2); font-size: .8rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.media-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted-2); font-size: .88rem; }
.media-item { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.media-item.is-err { border-color: var(--danger); }
.media-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); background: linear-gradient(135deg, #3c1660, #b50d5a); }
.media-ph .ic { width: 34px; height: 34px; color: #fff; }
.media-tag, .media-cover { position: absolute; top: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: #fff; }
.media-tag { inset-inline-start: 6px; background: rgba(212, 25, 111, .9); }
.media-cover { inset-inline-end: 6px; background: var(--gold); }
.media-tag .ic, .media-cover .ic { width: 12px; height: 12px; }
.media-prog { position: absolute; inset: auto 0 0 0; padding: 6px 8px; background: rgba(10, 18, 12, .72); color: #fff; font-size: .72rem; }
.media-prog i { display: block; height: 4px; border-radius: 4px; background: var(--fluo); margin-bottom: 4px; transition: width .2s; }
.media-prog b { font-weight: 600; }
.media-errmsg { position: absolute; inset: auto 0 0 0; padding: 6px 8px; background: rgba(192, 54, 44, .92); color: #fff; font-size: .72rem; line-height: 1.5; }
.media-tools { position: absolute; bottom: 6px; inset-inline: 6px; display: flex; justify-content: space-between; opacity: 0; transition: opacity .2s; }
.media-item:hover .media-tools, .media-item:focus-within .media-tools { opacity: 1; }
.media-item.is-up .media-tools, .media-item.is-err .media-tools { bottom: auto; top: 30px; }
.media-tools button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow-sm); }
.media-tools button:last-child { color: var(--danger); }
.media-tools .ic { width: 15px; height: 15px; }
.media-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.media-pick { position: relative; overflow: hidden; cursor: pointer; }
.media-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.media-link { display: flex; gap: 8px; margin-top: 10px; }
.media-link input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; }
.places { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 0; display: grid; gap: 12px; }
.places legend { font-weight: 700; color: var(--ink); padding: 0 6px; }
.places .field-hint { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.places .field-hint .ic { width: 15px; height: 15px; margin-top: .25em; color: var(--accent); flex: none; }
.places-group p { margin: 0 0 6px; font-size: .82rem; font-weight: 700; color: var(--muted-2); }
.places-group .chip span { padding: 7px 12px; font-size: .84rem; }
.places-opts { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 10px; border-top: 1px dashed var(--line); }
.places-opts .switch input:checked + span { background: var(--accent); }
.upload-status { margin-inline-end: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.modal-foot { flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) {
  .modal--sheet { padding: 0; place-items: end stretch; }
  .modal--sheet .modal-box { width: 100%; max-height: 100svh; height: 100svh; border-radius: 0; padding: 16px 14px 90px; }
  .modal--sheet .modal-foot { position: fixed; inset: auto 0 0 0; z-index: 2; padding: 12px 14px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, .4); }
  .modal--sheet .modal-foot .btn { flex: 1; }
  .modal--sheet .upload-status { flex-basis: 100%; }
  .media-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .media-tools { opacity: 1; }
  .na-item { grid-template-columns: 84px 1fr; }
  .na-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .news-grid[data-n="2"] { grid-template-columns: 1fr; }
  .article-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .article-gallery[data-n="3"] .gal-item:first-child, .article-gallery[data-n="5"] .gal-item:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
}
