/* =====================================================================
   AENSAN — Clean GovTech design system (v2, September 2026)
   ---------------------------------------------------------------------
   One brand purple for actions, deep navy for dark bands, one gold
   accent used sparingly. Arabic-first typography (IBM Plex Sans Arabic)
   paired with Plus Jakarta Sans for Latin. Replaces style.css,
   responsive.css, education-home.css and arabic.css.

   1. Tokens            7. Buttons              13. Page heroes
   2. Base / type       8. Sections & headings  14. UI visuals
   3. Utilities         9. Cards & tiles        15. Forms
   4. Reveal motion    10. Data display         16. Beneficiary app
   5. Header           11. Bands (stats / CTA)  17. Auth pages
   6. Footer           12. Ecosystem            18. Legacy compat · print
   ===================================================================== */

/* 1. TOKENS ------------------------------------------------------------ */
:root {
  --brand-900: #241257;
  --brand-800: #35198a;
  --brand-700: #4b25b8;
  --brand-600: #6a3bdb;
  --brand-500: #7c4def;
  --brand-400: #9a78f4;
  --brand-300: #bca6f8;
  --brand-200: #dcd0fc;
  --brand-100: #eee8fe;
  --brand-50: #f7f4ff;

  --navy-950: #070e22;
  --navy-900: #0b1530;
  --navy-800: #12204a;
  --navy-700: #1d2d5e;

  --ink: #0f172a;
  --text: #334155;
  --muted: #5b6474;
  --subtle: #94a3b8;
  --line: #e4e7ef;
  --line-strong: #cdd3df;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --surface-3: #eef0f6;

  --gold: #b8862a;
  --gold-on-dark: #e7c165;
  --gold-soft: #f8efd8;

  --success: #0e7c57;
  --success-soft: #e3f5ee;
  --warn: #a35f00;
  --warn-soft: #fdf1dd;
  --danger: #b42318;
  --danger-soft: #fdecea;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .06);
  --shadow-md: 0 16px 36px -16px rgba(15, 23, 42, .22);
  --shadow-lg: 0 28px 60px -24px rgba(36, 18, 87, .35);
  --shadow-soft: var(--shadow-sm);
  --ring: 0 0 0 4px rgba(106, 59, 219, .16);

  --font-sans: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: var(--font-sans);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr-top-h: 68px;

  /* aliases still referenced by inline styles in views */
  --aensan-purple: var(--brand-600);
  --aensan-purple-dark: var(--brand-700);
  --aensan-violet-deep: var(--navy-900);
  --aensan-lilac: var(--surface-2);
  --aensan-lilac-2: var(--brand-50);
  --aensan-navy: var(--navy-900);
  --aensan-ink: var(--ink);
  --aensan-muted: var(--muted);
  --aensan-line: var(--line);
  --aensan-green: var(--success);
  --aensan-amber: var(--warn);
  --aensan-gold: var(--gold-on-dark);
  --aensan-white: #fff;
  --purple: var(--brand-600);
  --purple-dark: var(--brand-700);
  --heading: var(--ink);
  --bg-light: var(--surface-2);
  --edu-radius: var(--radius-lg);
}

/* 2. BASE / TYPOGRAPHY -------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html[dir="rtl"] body { font-family: var(--font-ar); line-height: 1.8; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: inherit;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
html[dir="rtl"] :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) { letter-spacing: 0; line-height: 1.45; }
h1, .h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.15rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); }
h3, .h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
h4, .h4 { font-size: 1.25rem; }
h5, .h5 { font-size: 1.1rem; }
h6, .h6 { font-size: 1rem; }
p { color: var(--text); }
.small, small { font-size: .875em; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; }
::selection { background: var(--brand-200); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 2px; }
hr { border-color: var(--line); opacity: 1; }
.container { --bs-gutter-x: 2rem; }
@media (max-width: 575.98px) { .container { --bs-gutter-x: 1.5rem; } }

/* 3. UTILITIES ---------------------------------------------------------- */
.text-purple { color: var(--brand-600) !important; }
.text-green { color: var(--success) !important; }
.text-muted { color: var(--muted) !important; }
.bg-lilac { background: var(--surface-2) !important; }
.bg-lilac-2 { background: var(--brand-50) !important; }
.bg-navy, .bg-violet-deep { background: var(--navy-900) !important; }
.bg-purple-grad { background: linear-gradient(135deg, var(--brand-700), var(--brand-500)) !important; }
.hl-purple { color: var(--brand-600); }
.hl-gold { color: var(--gold-on-dark); }
.fw-semibold { font-weight: 600 !important; }
.lead-text { font-size: 1.125rem; color: var(--muted); line-height: 1.7; }

/* 4. REVEAL MOTION (progressive: only when JS added .reveal-on) -------- */
.reveal-on [data-aos] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-on [data-aos="zoom-in"] { transform: scale(.98); }
.reveal-on [data-aos].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on [data-aos] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 5. HEADER ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
@media (min-width: 1200px) {
  /* the top row scrolls away, the navigation row stays */
  .site-header { top: calc(-1 * var(--hdr-top-h)); }
}
.site-header.is-stuck { box-shadow: 0 8px 24px -18px rgba(15, 23, 42, .35); }
.hdr-top { border-bottom: 1px solid transparent; }
@media (min-width: 1200px) { .hdr-top { border-bottom-color: var(--line); } }
.hdr-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--hdr-top-h); }

.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.1rem;
  background: linear-gradient(145deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 6px 14px -6px rgba(106, 59, 219, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo img { height: 42px; width: auto; max-width: 160px; display: block; object-fit: contain; }
.hdr-mini-brand .brand-logo img { height: 30px; }
.site-footer .brand-logo img { height: 46px; }
.hdr-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.hdr-brand:hover { color: var(--ink); }

.hdr-actions { display: flex; align-items: center; gap: .55rem; }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch button {
  border: 0; background: transparent;
  font-size: .8rem; font-weight: 600;
  color: var(--muted);
  padding: .32rem .8rem;
  border-radius: 999px;
  line-height: 1.4;
  transition: background .15s ease, color .15s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-xs); }
.hdr-link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .8rem;
  border-radius: 10px;
  font-weight: 600; font-size: .9rem;
  color: var(--ink);
}
.hdr-link:hover { background: var(--surface-2); color: var(--ink); }
.hdr-toggle {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  color: var(--ink);
}
.hdr-toggle:hover { background: var(--surface-2); }

.hdr-nav-inner { display: flex; align-items: center; gap: 1rem; min-height: 56px; }
.hdr-mini-brand { display: none; }
.site-header.is-stuck .hdr-mini-brand { display: inline-flex; }
.hdr-mini-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: .9rem; }
.hdr-menu { display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.hdr-menu > li > a {
  position: relative;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .8rem;
  border-radius: 10px;
  font-weight: 600; font-size: .92rem;
  color: var(--text);
}
.hdr-menu > li > a:hover, .hdr-menu > li > a[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
.hdr-menu > li > a.is-active { color: var(--brand-700); }
.hdr-menu > li > a.is-active::after {
  content: "";
  position: absolute;
  inset-inline: .8rem;
  bottom: -9px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-600);
}
.hdr-menu .bi-chevron-down { font-size: .7rem; transition: transform .2s ease; }
.hdr-menu a[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.hdr-menu .dropdown-toggle::after { display: none; }
.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: .4rem;
  min-width: 260px;
}
.hdr-menu .dropdown-menu { margin-top: .65rem !important; }
.dropdown-item {
  border-radius: 10px;
  padding: .55rem .8rem;
  font-size: .9rem; font-weight: 500;
  color: var(--text);
  white-space: normal;
}
.dropdown-item:hover, .dropdown-item:focus { background: var(--brand-50); color: var(--brand-700); }
.hdr-search, .search-pill {
  display: flex; align-items: center; gap: .55rem;
  height: 40px;
  padding: 0 .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .875rem;
  min-width: 240px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.hdr-search { margin-inline-start: auto; }
.hdr-search:focus-within, .search-pill:focus-within { border-color: var(--brand-300); background: #fff; box-shadow: var(--ring); }
.hdr-search input, .search-pill input { border: 0; outline: 0; background: transparent; font-size: .875rem; width: 100%; color: var(--ink); min-width: 0; }
.hdr-search input::placeholder, .search-pill input::placeholder { color: var(--subtle); }
.search-pill--lg {
  max-width: 760px;
  height: 58px;
  margin: 2rem auto 0;
  padding: 0 1.25rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.search-pill--lg i { font-size: 1.1rem; color: var(--brand-600); }
.search-pill--lg input { font-size: 1rem; }

/* Filter chips: wrap on desktop, swipe on phones */
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 767.98px) {
  .chip-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
  .chip-row > * { flex-shrink: 0; }
}

/* mobile drawer */
.aensan-drawer { width: min(360px, 88vw) !important; border: 0; }
.aensan-drawer .offcanvas-header { border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; }
.aensan-drawer .offcanvas-body { padding: 1rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.drawer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.drawer-menu a {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink);
}
.drawer-menu a:hover, .drawer-menu a.is-active { background: var(--brand-50); color: var(--brand-700); }
.drawer-menu a i { width: 20px; text-align: center; color: var(--brand-600); }
.drawer-parent-row { display: flex; align-items: stretch; gap: .25rem; }
.drawer-parent-row a { flex: 1 1 auto; min-width: 0; }
.drawer-caret {
  flex-shrink: 0;
  width: 42px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer-caret:hover { background: var(--surface-2); color: var(--ink); }
.drawer-caret .bi-chevron-down { font-size: .8rem; transition: transform .2s ease; }
.drawer-caret[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.drawer-sub-list { list-style: none; margin: .15rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.drawer-sub-list a { font-weight: 500; font-size: .9rem; color: var(--text); padding-inline-start: 2.6rem; }
.drawer-sub-list a:hover, .drawer-sub-list a.is-active { background: var(--brand-50); color: var(--brand-700); }
.drawer-actions { display: grid; gap: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.drawer-actions .lang-switch { justify-self: start; }

/* 6. FOOTER ------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--navy-950);
  color: rgba(255, 255, 255, .7);
  padding: 4.5rem 0 1.75rem;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400) 60%, var(--gold-on-dark));
}
.site-footer::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  inset-inline-end: -180px; top: -260px;
  background: radial-gradient(circle, rgba(124, 77, 239, .22), transparent 65%);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer .ftr-about { color: rgba(255, 255, 255, .62); font-size: .92rem; max-width: 340px; margin: 1rem 0 0; }
.site-footer h6 {
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 1.1rem;
}
html[dir="rtl"] .site-footer h6 { letter-spacing: 0; font-size: .9rem; }
.ftr-links { display: flex; flex-direction: column; gap: .65rem; }
.site-footer a { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.social-row { display: flex; gap: .5rem; margin-top: 1.5rem; }
.site-footer .social-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .95rem;
}
.site-footer .social-icon:hover { background: var(--brand-600); border-color: var(--brand-600); }
.site-footer .social-icon i { color: #fff !important; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 3.25rem;
  padding-top: 1.5rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom a { font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* 7. BUTTONS ------------------------------------------------------------ */
.btn-aensan-purple, .btn-aensan-violet, .btn-aensan-outline, .btn-aensan-warning, .btn-aensan-gold,
.btn-aensan-amber, .btn-aensan-green, .btn-aensan-white, .btn-aensan-outline-white, .auth-submit-btn, .edu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-sm.btn-aensan-purple, .btn-sm.btn-aensan-outline, .btn-sm.btn-aensan-violet, .btn-sm.btn-aensan-white { padding: .45rem .85rem; font-size: .85rem; border-radius: 10px; }
.btn-aensan-purple, .auth-submit-btn, .edu-btn-primary {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 8px 18px -10px rgba(106, 59, 219, .7);
}
.btn-aensan-purple:hover, .auth-submit-btn:hover, .edu-btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn-aensan-purple:active { transform: translateY(1px); }
.btn-aensan-purple:disabled, .btn-aensan-purple.disabled { background: var(--brand-300); border-color: var(--brand-300); box-shadow: none; }
.btn-aensan-violet {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.btn-aensan-violet:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn-aensan-outline, .btn-aensan-warning, .btn-aensan-gold, .btn-aensan-amber, .edu-btn-outline, .edu-btn-outline-dark {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-aensan-outline:hover, .btn-aensan-warning:hover, .btn-aensan-gold:hover, .btn-aensan-amber:hover, .edu-btn-outline:hover {
  border-color: var(--brand-400);
  background: var(--brand-50);
  color: var(--brand-700);
}
.btn-aensan-green { background: var(--success); border-color: var(--success); color: #fff; }
.btn-aensan-green:hover { filter: brightness(.95); color: #fff; }
.btn-aensan-white { background: #fff; border-color: #fff; color: var(--brand-700); }
.btn-aensan-white:hover { background: var(--brand-50); border-color: var(--brand-50); color: var(--brand-800); }
.btn-aensan-outline-white { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-aensan-outline-white:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn-aensan-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 600; font-size: .9rem;
  color: var(--brand-600);
}
.btn-aensan-link:hover { color: var(--brand-800); }
.btn-aensan-link i { transition: transform .15s ease; }
.btn-aensan-link:hover i { transform: translateX(3px); }
html[dir="rtl"] .btn-aensan-link:hover i { transform: translateX(-3px); }
html[dir="rtl"] .bi-arrow-right, html[dir="rtl"] .bi-arrow-left { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .btn-aensan-link:hover i.bi-arrow-right { transform: scaleX(-1) translateX(3px); }

/* buttons inside dark / brand bands */
:is(.cta-purple, .cta-deep, .stat-strip, .band-dark) :is(.btn-aensan-warning, .btn-aensan-violet, .btn-aensan-outline, .btn-aensan-gold, .btn-aensan-amber) {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
  box-shadow: none;
}
:is(.cta-purple, .cta-deep, .stat-strip, .band-dark) :is(.btn-aensan-warning, .btn-aensan-violet, .btn-aensan-outline, .btn-aensan-gold, .btn-aensan-amber):hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
  color: #fff;
}
.cta-purple .btn-aensan-purple { background: #fff; border-color: #fff; color: var(--brand-700); box-shadow: none; }
/* on navy, gold is the single filled accent (primary action) */
:is(.cta-deep, .band-dark) .btn-aensan-gold { background: var(--gold-on-dark); border-color: var(--gold-on-dark); color: var(--navy-950); }
:is(.cta-deep, .band-dark) .btn-aensan-gold:hover { background: #f0d38a; border-color: #f0d38a; color: var(--navy-950); }
:is(.cta-purple, .cta-deep, .band-dark) .btn-aensan-link { color: rgba(255, 255, 255, .86); }
:is(.cta-purple, .cta-deep, .band-dark) .btn-aensan-link:hover { color: #fff; }

/* 8. SECTIONS & HEADINGS ----------------------------------------------- */
.section { padding-block: clamp(3.5rem, 2rem + 4.5vw, 6rem); }
.section p { color: var(--muted); }
.section h2 { margin-bottom: .75rem; }
.section h2 + p { max-width: 46rem; }
.text-center > h2 + p, .text-center.mx-auto h2 + p { margin-inline: auto; }
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .32rem .8rem;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); flex-shrink: 0; }
html[dir="rtl"] .badge-tag { letter-spacing: 0; font-size: .8rem; }

/* 9. CARDS & TILES ------------------------------------------------------ */
.card-soft {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-xs);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card-soft:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.card-soft h5, .card-soft h6 { color: var(--ink); }
.card-soft p { color: var(--muted); }
.card-soft.position-relative:hover { transform: translateY(-2px); }

.icon-tile {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
  font-size: 1.25rem;
}
.icon-tile i { color: inherit !important; }
.icon-tile.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }

.service-card {
  display: flex; flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-xs);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card h5 { font-size: 1.15rem; }
.service-card p { color: var(--muted); }
.service-card hr { margin: 1rem 0; }
.service-card ul { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.service-card ul li { display: flex; gap: .55rem; padding: .28rem 0; font-size: .9rem; color: var(--text); }
.service-card ul li::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: .22rem;
  border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236a3bdb'%3E%3Cpath d='M12.7 5.3a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4 0l-2.5-2.5a1 1 0 1 1 1.4-1.4L7 9.6l4.3-4.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.service-card .elig-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  font-size: .82rem;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.service-card .elig-box strong { color: var(--ink); }
.service-card-footer { margin-top: auto; padding-top: .25rem; }

.numbered-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-xs);
}
.numbered-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 .5rem;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 800;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: .9rem;
}
.numbered-card.is-done .num { background: var(--success-soft); color: var(--success); }
.numbered-card p { color: var(--muted); }
.step-num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}

.stakeholder-tile, .wallet-type-row {
  display: flex; align-items: center; gap: .75rem;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.stakeholder-tile:hover, .wallet-type-row:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.stakeholder-tile > i:first-child, .wallet-type-row > i:first-child {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--brand-50);
  color: var(--brand-600) !important;
  font-size: 1rem;
}
.stakeholder-tile.flex-column { align-items: flex-start; }

/* Compact icon + title + line feature (used beside section visuals) */
.feature-mini { display: flex; align-items: flex-start; gap: .75rem; }
.feature-mini-title { font-weight: 700; font-size: .92rem; color: var(--ink); line-height: 1.35; }
.feature-mini-text { font-size: .82rem; color: var(--muted); line-height: 1.5; margin-top: .15rem; }
@media (min-width: 576px) { .col-sm-4 > .feature-mini { flex-direction: column; gap: .6rem; } }

/* Bordered value chip (icon tile + label) */
.value-chip {
  display: flex; align-items: center; gap: .7rem;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  font-weight: 700; font-size: .92rem; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.value-chip:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }

/* Navy callout line (alignment notes, disclaimers) */
.note-bar {
  display: flex; align-items: center; gap: .8rem;
  background: var(--navy-900);
  color: rgba(255, 255, 255, .88);
  border-radius: var(--radius);
  padding: .95rem 1.15rem;
  font-size: .875rem; line-height: 1.55;
}
.note-bar i { color: var(--gold-on-dark); font-size: 1.1rem; flex-shrink: 0; }

.filter-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
button.filter-chip { cursor: pointer; }
button.filter-chip:hover, a.filter-chip:hover { border-color: var(--brand-300); color: var(--brand-700); }
.filter-chip.is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.filter-chip .count { background: var(--surface-3); color: var(--muted); border-radius: 999px; padding: 0 .45rem; font-size: .72rem; }
.filter-chip.is-active .count { background: rgba(255, 255, 255, .22); color: #fff; }

.faq-accordion .accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  margin-bottom: .75rem;
  overflow: hidden;
  background: #fff;
}
.faq-accordion .accordion-button {
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  background: #fff;
  padding: 1.05rem 1.25rem;
  box-shadow: none;
  gap: 1rem;
}
.faq-accordion .accordion-button:not(.collapsed) { color: var(--brand-700); background: var(--brand-50); }
.faq-accordion .accordion-button:focus { box-shadow: none; }
html[dir="rtl"] .faq-accordion .accordion-button::after { margin-left: 0; margin-right: auto; }
.faq-accordion .accordion-body { color: var(--muted); font-size: .93rem; padding: 1rem 1.25rem 1.25rem; }

/* 10. DATA DISPLAY ------------------------------------------------------ */
.smart-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 1.6rem;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .2) 0%, transparent 45%),
    radial-gradient(90% 90% at 0% 100%, rgba(8, 12, 40, .35) 0%, transparent 55%),
    linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 55%, var(--brand-500) 100%);
  box-shadow: var(--shadow-lg);
}
.smart-card::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  inset-inline-end: -70px; bottom: -110px;
  border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, .07);
  pointer-events: none;
}
.smart-card .fw-bold { color: #fff; }
.smart-card .brand-mark { background: rgba(255, 255, 255, .16); box-shadow: none; }
.smart-card .chip-icon { width: 42px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #f6dd9a, #c99a2e); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.smart-card .card-number { direction: ltr; unicode-bidi: plaintext; letter-spacing: .14em; font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 .6rem; font-variant-numeric: tabular-nums; }
.smart-card .status-pill { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: .2rem .65rem; font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.smart-card .text-white-50 { color: rgba(255, 255, 255, .7) !important; }

.wallet-summary-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  height: 100%;
  box-shadow: var(--shadow-xs);
}
.wallet-summary-box .label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .wallet-summary-box .label { letter-spacing: 0; font-size: .82rem; }
.wallet-summary-box .value { font-size: 1.55rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-top: .25rem; }

.txn-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.txn-row:last-child { border-bottom: 0; }

.status-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  white-space: nowrap;
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
}
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.tone-success, .status-badge.approved, .status-badge.credited, .status-badge.eligible, .status-badge.vetted, .status-badge.smart-card-accepted { background: var(--success-soft); color: var(--success); }
.status-badge.tone-pending, .status-badge.under-audit, .status-badge.expiring, .status-badge.pending { background: var(--warn-soft); color: var(--warn); }
.status-badge.tone-action { background: var(--brand-50); color: var(--brand-700); }
.status-badge.tone-not-eligible { background: var(--danger-soft); color: var(--danger); }
.status-badge.tone-offline { background: var(--surface-3); color: var(--muted); }

/* 11. BANDS: STATS / CTA ----------------------------------------------- */
.stat-strip {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0;
  color: #fff;
  background:
    radial-gradient(60% 140% at 100% 0%, rgba(124, 77, 239, .35) 0%, transparent 60%),
    radial-gradient(50% 120% at 0% 100%, rgba(124, 77, 239, .18) 0%, transparent 60%),
    var(--navy-900);
}
.stat-strip .num {
  position: relative;
  padding-top: .9rem;
  font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat-strip .num::before {
  content: "";
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 28px; height: 3px;
  border-radius: 3px;
  background: var(--gold-on-dark);
}
.stat-strip .label { font-weight: 700; color: rgba(255, 255, 255, .95); margin-top: .35rem; }
.stat-strip .desc { font-size: .84rem; color: rgba(255, 255, 255, .62); }
@media (min-width: 768px) {
  .stat-strip .row > [class*="col"] + [class*="col"] { border-inline-start: 1px solid rgba(255, 255, 255, .1); padding-inline-start: 1.75rem; }
}
@media (max-width: 767.98px) {
  .stat-strip .num::before { inset-inline-start: 50%; transform: translateX(-50%); }
  html[dir="rtl"] .stat-strip .num::before { transform: translateX(50%); }
}

.cta-purple, .cta-deep {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.25rem) clamp(1.5rem, 1rem + 3vw, 3rem);
  text-align: center;
  color: #fff;
  isolation: isolate;
}
.cta-purple {
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(255, 255, 255, .16) 0%, transparent 55%),
    linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 60%, var(--brand-500) 100%);
  box-shadow: var(--shadow-lg);
}
.cta-deep {
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(124, 77, 239, .4) 0%, transparent 60%),
    var(--navy-900);
}
.cta-purple::after, .cta-deep::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
.cta-purple h2, .cta-deep h2 { color: #fff; }
.cta-deep h2 { color: var(--gold-on-dark); }
.cta-purple p, .cta-deep p { color: rgba(255, 255, 255, .82); max-width: 42rem; margin-inline: auto; }
.cta-purple .badge-tag, .cta-deep .badge-tag { background: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .18); color: #fff !important; }
.cta-purple .badge-tag::before, .cta-deep .badge-tag::before { background: var(--gold-on-dark); }

/* 12. ECOSYSTEM ---------------------------------------------------------- */
.ecosystem-wrap {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  padding: 3rem;
  background:
    radial-gradient(circle at 50% 50%, var(--brand-50) 0%, transparent 55%),
    #fff !important;
  overflow: hidden;
}
.ecosystem-wrap::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 300px; height: 300px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed var(--brand-200);
}
.eco-node {
  position: absolute;
  width: 112px; height: 112px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  text-align: center;
  padding: .5rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: .76rem; font-weight: 600;
  color: var(--ink);
  z-index: 1;
}
.eco-node i { font-size: 1.35rem; color: var(--brand-600); }
.eco-node.center {
  width: 136px; height: 136px;
  color: #fff;
  border: 0;
  background: linear-gradient(145deg, var(--brand-500), var(--brand-800));
  box-shadow: 0 0 0 10px rgba(124, 77, 239, .12), var(--shadow-lg);
}
.eco-node.center i { color: #fff; font-size: 1.6rem; }
@media (max-width: 575.98px) {
  .ecosystem-wrap { min-height: 380px; padding: 1.5rem; }
  .eco-node { width: 92px; height: 92px; font-size: .68rem; }
  .eco-node.center { width: 108px; height: 108px; }
  .ecosystem-wrap::before { width: 220px; height: 220px; }
}
/* home "social-impact ecosystem" tiles */
#ecosystem .card-soft { padding: 1.4rem 1rem; }
#ecosystem .eco-center {
  background: linear-gradient(145deg, var(--brand-600), var(--brand-800));
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
#ecosystem .eco-center .small { color: #fff; }
#ecosystem .eco-center .icon-tile { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .2); color: #fff; }

/* 13. PAGE HEROES -------------------------------------------------------- */
.page-hero, .home-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem) clamp(3rem, 1.75rem + 4.5vw, 5.75rem);
  background:
    radial-gradient(900px 480px at 88% -10%, var(--brand-100) 0%, transparent 62%),
    radial-gradient(700px 380px at -8% 110%, #eaf0ff 0%, transparent 60%),
    linear-gradient(180deg, var(--surface-2) 0%, #fff 100%);
  isolation: isolate;
}
.page-hero::before, .home-hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 0%, transparent 75%);
  opacity: .55;
}
.home-hero { padding-block: clamp(3rem, 1.5rem + 5vw, 6rem) clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.home-hero h1 { font-size: clamp(1.95rem, 1.25rem + 1.75vw, 2.6rem); margin-bottom: 1.1rem; }
.page-hero h1 { font-size: clamp(1.9rem, 1.25rem + 1.8vw, 2.6rem); margin-bottom: 1rem; }
.page-hero .badge-tag { margin-bottom: 1.1rem; }
.page-hero .hero-sub { color: var(--brand-700); font-weight: 600; font-size: 1.05rem; margin-bottom: .75rem; }
.hero-lead { font-size: 1.1rem; color: var(--muted); line-height: 1.75; max-width: 38rem; }
.hero-note { font-size: .95rem; color: var(--muted); line-height: 1.7; max-width: 38rem; margin-top: -.25rem; }
.page-hero--center { text-align: center; }
.page-hero--center h1 { max-width: 48rem; margin-inline: auto; }
.page-hero--center .hero-lead { margin-inline: auto; max-width: 44rem; }
.page-hero--center .hero-actions, .page-hero--center .hero-trust { justify-content: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.1rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.5rem; font-size: .875rem; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust i { color: var(--brand-600); }
.hero-trust i.text-green { color: var(--success) !important; }
/* Breadcrumb: when a .page-hero follows, the hero slides up underneath so the
   trail sits inside the hero band instead of on a separate white strip. */
.breadcrumb-bar {
  position: relative; z-index: 2;
  min-height: 2.9rem;
  display: flex; align-items: center;
  padding-block: .55rem;
  font-size: .85rem; line-height: 1.4;
  color: var(--muted);
  background: var(--surface-2);
}
.breadcrumb-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; }
.breadcrumb-bar a { color: var(--muted); }
.breadcrumb-bar a:hover { color: var(--brand-700); }
.breadcrumb-bar .sep { color: var(--line-strong); }
.breadcrumb-bar .current { color: var(--brand-700); font-weight: 600; }
.breadcrumb-bar:has(+ .page-hero) { background: transparent; }
.breadcrumb-bar + .page-hero { margin-top: -2.9rem; padding-top: calc(2.9rem + clamp(1.75rem, 1rem + 2.5vw, 3.25rem)); }

/* 14. UI VISUALS (designed product illustrations; decorative) ----------- */
.uiv, .hero-stage {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(55% 55% at 25% 20%, var(--brand-100) 0%, transparent 70%),
    radial-gradient(50% 50% at 85% 90%, #e3e9ff 0%, transparent 70%),
    linear-gradient(160deg, #fbfaff 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.uiv { aspect-ratio: 5 / 4; }
.uiv::before, .hero-stage::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1.2px);
  background-size: 22px 22px;
  opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 80%);
}
/* Stage that frames real (text-bearing) card mockups in page heroes */
.hero-stage { padding: clamp(1.5rem, .75rem + 3.5vw, 3.25rem) clamp(1.25rem, .5rem + 3.5vw, 3.25rem); }
.hero-stage .smart-card { max-width: 440px; margin-inline: auto; }
.stage-note {
  position: relative;
  max-width: 440px;
  margin: 1rem auto 0;
  display: flex; align-items: center; gap: .8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  box-shadow: var(--shadow-sm);
}
.stage-note-title { font-weight: 700; font-size: .9rem; color: var(--ink); line-height: 1.35; }
.stage-note-text { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.smart-card > .chip-icon { display: block; margin-top: 1.4rem; }
.smart-card > .chip-icon + .card-number { margin-top: .9rem; }

.uiv--tall { aspect-ratio: 1 / 1; }
.uiv--wide { aspect-ratio: 16 / 10; }
.uiv-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 4% 4.5%;
}
.uiv-row { display: flex; align-items: center; gap: .6rem; }
.uiv-col { display: flex; flex-direction: column; gap: .35rem; flex: 1; min-width: 0; }
.uiv-sk { display: block; height: 7px; border-radius: 6px; background: var(--surface-3); }
.uiv-sk.sm { height: 5px; }
.uiv-sk.brand { background: var(--brand-200); }
.uiv-sk.dark { background: #cfd5e2; }
.uiv-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--brand-300), var(--brand-600)); }
.uiv-ic {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: .85rem;
}
.uiv-ic.ok { background: var(--success-soft); color: var(--success); }
.uiv-ic.gold { background: var(--gold-soft); color: var(--gold); }
.uiv-ic.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; }
.uiv-num { font-weight: 800; color: var(--ink); font-size: .95rem; line-height: 1.1; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: plaintext; }
.uiv-num.up { color: var(--success); }
.uiv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 5% 0; }
.uiv-kpi { border: 1px solid var(--line); border-radius: 10px; padding: .55rem; display: flex; flex-direction: column; gap: .35rem; }
.uiv-kpi i { color: var(--brand-600); font-size: .85rem; }
.uiv-bars { display: flex; align-items: flex-end; gap: 5px; height: 72px; }
.uiv-bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); }
.uiv-bars span:nth-child(odd) { background: linear-gradient(180deg, var(--brand-200), var(--brand-300)); }
.uiv-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 700; background: var(--success-soft); color: var(--success); }
.uiv-pill.brand { background: var(--brand-50); color: var(--brand-700); }
.uiv-pill.warn { background: var(--warn-soft); color: var(--warn); }
.uiv-smart {
  position: absolute;
  border-radius: 16px;
  padding: 4.5% 5%;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22) 0%, transparent 45%),
    linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 60%, var(--brand-500) 100%);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1.6 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
}
.uiv-smart .chip { width: 22%; aspect-ratio: 1.4 / 1; border-radius: 5px; background: linear-gradient(135deg, #f6dd9a, #c99a2e); }
.uiv-smart .digits { direction: ltr; letter-spacing: .14em; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.uiv-smart .uiv-sk { background: rgba(255, 255, 255, .35); }
.uiv-smart .mark { width: 24px; height: 24px; border-radius: 7px; background: rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.uiv-float { animation: uiv-float 6s ease-in-out infinite; }
.uiv-float-2 { animation: uiv-float 7s ease-in-out -2s infinite; }
@keyframes uiv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.uiv-phone {
  position: absolute;
  border-radius: 26px;
  background: #fff;
  border: 6px solid #1c2440;
  box-shadow: var(--shadow-lg);
  padding: 9% 6% 6%;
  display: flex; flex-direction: column; gap: .55rem;
  overflow: hidden;
}
.uiv-phone::before { content: ""; position: absolute; top: 6px; left: 50%; width: 34%; height: 10px; border-radius: 8px; background: #1c2440; transform: translateX(-50%); }
.uiv-phone .uiv-smart { position: relative; width: 100%; }
.uiv-list-row { display: flex; align-items: center; gap: .5rem; padding: .4rem .45rem; border: 1px solid var(--line); border-radius: 10px; }
.uiv-browser {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.uiv-browser-bar { display: flex; align-items: center; gap: 5px; padding: .5rem .7rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.uiv-browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.uiv-browser-bar i:first-child { background: #f87171; }
.uiv-browser-bar i:nth-child(2) { background: #fbbf24; }
.uiv-browser-bar i:nth-child(3) { background: #34d399; }
.uiv-browser-bar .url { flex: 1; height: 12px; margin-inline-start: .6rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.uiv-browser-body { flex: 1; display: grid; grid-template-columns: 28% 1fr; gap: 4%; padding: 4%; min-height: 0; }
.uiv-browser-body aside { display: flex; flex-direction: column; gap: .45rem; }
.uiv-browser-body aside .uiv-sk { height: 18px; border-radius: 8px; }
.uiv-browser-body aside .uiv-sk.on { background: var(--brand-100); }
.uiv-browser-body main { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-content: start; }
.uiv-prog { border: 1px solid var(--line); border-radius: 10px; padding: .55rem; display: flex; flex-direction: column; gap: .35rem; }
.uiv-prog .uiv-sk.btn { height: 14px; width: 45%; border-radius: 6px; background: var(--brand-600); margin-top: .2rem; }
.uiv-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.uiv-lines line, .uiv-lines path { stroke: var(--brand-300); stroke-width: .35; stroke-dasharray: 1.2 1.2; fill: none; }
.uiv-node {
  position: absolute;
  width: 15%; aspect-ratio: 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  color: var(--brand-600);
  font-size: 1.25rem;
  transform: translate(-50%, -50%);
}
.uiv-node.hub {
  width: 22%;
  color: #fff;
  border: 0;
  background: linear-gradient(145deg, var(--brand-500), var(--brand-800));
  box-shadow: 0 0 0 10px rgba(124, 77, 239, .12), var(--shadow-lg);
  font-size: 1.8rem;
}
.uiv-globe {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9) 0%, transparent 45%),
    radial-gradient(var(--brand-300) 1.3px, transparent 1.5px) 0 0 / 12px 12px,
    linear-gradient(145deg, var(--brand-50), #e7edff);
  border: 1px solid var(--brand-100);
  box-shadow: inset 0 -20px 40px rgba(106, 59, 219, .12), var(--shadow-md);
}
.uiv-pin { position: absolute; color: var(--brand-600); font-size: 1.3rem; filter: drop-shadow(0 4px 6px rgba(106, 59, 219, .35)); transform: translate(-50%, -100%); }
.uiv-pin.gold { color: var(--gold); }
.uiv-ring {
  width: 64px; aspect-ratio: 1;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--brand-600) 0 76%, var(--surface-3) 76% 100%);
  position: relative;
  flex-shrink: 0;
}
.uiv-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.uiv-ring b { position: relative; font-size: .8rem; color: var(--ink); direction: ltr; }
.uiv-progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.uiv-progress span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); }
.uiv-path { position: absolute; inset-inline: 12%; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-300) 0 6px, transparent 6px 12px); }
.uiv-step { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.uiv-step .uiv-ic { width: 46px; height: 46px; border-radius: 14px; font-size: 1.15rem; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.uiv-step.on .uiv-ic { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.uiv-hero-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 28%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: clamp(2rem, 1rem + 3vw, 3.4rem);
  background: linear-gradient(145deg, var(--brand-500), var(--brand-800));
  box-shadow: 0 0 0 14px rgba(124, 77, 239, .1), var(--shadow-lg);
}
html[dir="rtl"] .uiv-step { transform: translate(50%, -50%); }
.uiv-ic.mx-auto { display: flex; }
.uiv-chips { position: absolute; inset-inline: 0; bottom: 9%; display: flex; justify-content: center; gap: 2.5%; }
.uiv-chips .uiv-ic { width: 11%; height: auto; aspect-ratio: 1; border-radius: 12px; font-size: 1.1rem; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (max-width: 575.98px) {
  .uiv-kpi .uiv-sk { display: none; }
  .uiv-bars { height: 48px; }
  .uiv-node { font-size: 1rem; }
}

/* 15. FORMS -------------------------------------------------------------- */
.form-label-sm { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.form-label-sm .req, .req { color: var(--danger); }
.form-control, .form-select {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: .93rem;
  padding: .66rem .9rem;
  color: var(--ink);
  background-color: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control::placeholder { color: var(--subtle); }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: var(--ring); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--danger); }
.form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--brand-400); }
.pill-toggle-group { display: flex; gap: .5rem; flex-wrap: wrap; }
.pill-toggle {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: .5rem 1rem;
  font-size: .87rem;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.pill-toggle:hover { border-color: var(--brand-300); }
.pill-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pill-toggle:has(input:checked), .pill-toggle.is-selected { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.pill-toggle:has(input:focus-visible) { outline: 2px solid var(--brand-400); outline-offset: 2px; }
.chip-check { border-radius: 999px; }
.chip-check:has(input:checked)::after { content: "\2713"; margin-inline-start: .4rem; }
.choice-card {
  position: relative;
  display: block;
  height: 100%;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: .95rem 1.05rem;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.choice-card input { position: absolute; opacity: 0; }
.choice-card .t { font-weight: 700; font-size: .92rem; color: var(--ink); }
.choice-card .d { font-size: .78rem; color: var(--muted); }
.choice-card:hover { border-color: var(--brand-300); }
.choice-card:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-600); }
.choice-card:has(input:checked) .t { color: var(--brand-700); }
.upload-box {
  position: relative;
  cursor: pointer;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1rem;
  text-align: center;
  font-size: .87rem;
  color: var(--muted);
  background: var(--surface-2);
  transition: border-color .15s ease, background .15s ease;
}
.upload-box:hover { border-color: var(--brand-400); background: var(--brand-50); }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload-box.has-file { border-color: var(--brand-500); border-style: solid; color: var(--brand-700); background: var(--brand-50); }
.form-panel, .section-card, .completion-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, .75rem + 2vw, 2.25rem);
}
.section-card { margin-bottom: 1.5rem; }
.section-card .section-title { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.25rem; font-size: 1.08rem; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 1.75rem; padding-top: 1.25rem; }
.info-note { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: .95rem 1.15rem; font-size: .88rem; color: var(--brand-800); }
.invalid-feedback { font-size: .8rem; }

/* Password-rules popover appended by assets/global/js/secure_password.js
   (hidden until the field is focused; the script toggles .hover-input-popup) */
.input-popup {
  display: none;
  position: absolute; z-index: 30;
  top: calc(100% + 6px); inset-inline-start: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .65rem .85rem;
}
.hover-input-popup .input-popup { display: block; }
.input-popup p { position: relative; margin: 0; padding: .14rem 0; padding-inline-start: 1rem; font-size: .8rem; line-height: 1.45; }
.input-popup p::before { content: ""; position: absolute; inset-inline-start: 0; top: .52rem; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.input-popup p.error { color: var(--danger); }
.input-popup p.success { color: var(--success); }

/* Avatar picker (components/image-uploader) on the public side */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.profile-head .image--uploader { width: 120px; flex-shrink: 0; }
.image-upload-wrapper { position: relative; aspect-ratio: 1; }
.image-upload-preview { width: 100%; height: 100%; border-radius: 50%; background: var(--surface-2) center / cover no-repeat; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.image-upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.image-upload-wrapper label { position: absolute; inset: 0; margin: 0; border-radius: 50%; cursor: pointer; }
.image-upload-wrapper label::after {
  content: "\f219";
  font-family: "bootstrap-icons";
  position: absolute; bottom: 2px; inset-inline-end: 2px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--brand-600); color: #fff;
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
}
.image-upload-input:focus-visible + label { outline: 2px solid var(--brand-400); outline-offset: 3px; }
.profile-information p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.profile-information p.name { color: var(--ink); font-weight: 700; font-size: 1.1rem; }

/* 16. BENEFICIARY APP ---------------------------------------------------- */
.app-bg { background: var(--surface-2); min-height: 60vh; }
.app-nav { background: #fff; border-bottom: 1px solid var(--line); }
.app-nav .container { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; }
.app-nav .container::-webkit-scrollbar { display: none; }
.app-nav a {
  display: inline-flex; align-items: center;
  padding: .95rem 1rem;
  font-size: .88rem; font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.app-nav a:hover { color: var(--ink); }
.app-nav a.active { color: var(--brand-700); border-bottom-color: var(--brand-600); }
.app-nav .badge-dot { background: var(--danger); color: #fff; border-radius: 999px; font-size: .65rem; padding: 0 .42rem; margin-inline-start: .3rem; }
.app-header-strip {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.8rem;
  color: #fff;
  background:
    radial-gradient(60% 140% at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 55%),
    linear-gradient(135deg, var(--brand-800), var(--brand-600));
  box-shadow: var(--shadow-md);
}
.app-header-strip h2 { color: #fff; margin: 0; font-size: 1.35rem; }
.app-header-strip p { color: rgba(255, 255, 255, .8) !important; }
.app-header-strip .btn-aensan-purple { background: #fff; border-color: #fff; color: var(--brand-700); box-shadow: none; }
.avatar-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem; }
.alert-item { border-inline-start: 3px solid var(--brand-500); padding: .45rem 0; padding-inline-start: 1rem; margin-bottom: .85rem; }
.alert-item .t { font-size: .88rem; font-weight: 500; color: var(--ink); }
.alert-item.is-unread .t { font-weight: 700; }
.alert-item .time { font-size: .74rem; color: var(--muted); }
.reg-sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-xs); }
.reg-step { display: flex; gap: .85rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.reg-step:last-of-type { border-bottom: 0; }
.reg-step .dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3);
  color: var(--muted);
  font-size: .75rem; font-weight: 700;
}
.reg-step.is-active .dot { background: var(--brand-600); color: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
.reg-step.is-done .dot { background: var(--success-soft); color: var(--success); }
.reg-step .t { font-weight: 600; font-size: .88rem; color: var(--ink); }
.reg-step.is-active .t { color: var(--brand-700); }
.reg-step .d { font-size: .76rem; color: var(--muted); }
.reg-step a { color: inherit; }
.eligibility-box { border-radius: 12px; padding: .95rem 1.05rem; font-size: .84rem; border: 1px solid; }
.eligibility-box.is-passed { background: var(--success-soft); border-color: rgba(14, 124, 87, .35); }
.eligibility-box.is-passed strong { color: var(--success); }
.eligibility-box.is-failed { background: var(--danger-soft); border-color: rgba(180, 35, 24, .3); }
.eligibility-box.is-failed strong { color: var(--danger); }
.check-list { list-style: none; padding: 0; margin: 0; font-size: .87rem; }
.check-list li { display: flex; gap: .55rem; padding: .32rem 0; }
.check-list .bi-check-lg { color: var(--success); }
.check-list .bi-x-lg { color: var(--danger); }
.completion-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.completion-head .ok { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--success-soft); color: var(--success); font-size: 1.5rem; box-shadow: 0 0 0 6px rgba(14, 124, 87, .08); }
.completion-head :is(h1, h2) { font-size: 1.5rem; margin: 0 0 .25rem; }
.completion-head p { margin: 0; color: var(--success); font-size: .9rem; }
.ref-tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: .95rem 1.05rem; height: 100%; }
.ref-tile .label { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .ref-tile .label { letter-spacing: 0; font-size: .78rem; }
.ref-tile .value { font-weight: 700; font-size: .96rem; color: var(--ink); }
.kv-list { font-size: .87rem; }
.kv-list .row-kv { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.kv-list .row-kv span:first-child { color: var(--muted); }
.kv-list .row-kv span:last-child { font-weight: 600; color: var(--ink); text-align: end; }
.next-box { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: 1rem 1.2rem; font-size: .87rem; color: var(--text); }
.next-box .badge-line { display: block; margin-bottom: .35rem; font-weight: 700; color: var(--brand-700); }
.status-library .status-badge { display: flex; width: 100%; margin-bottom: .5rem; border-radius: 10px; padding: .5rem .75rem; }
.status-library small { font-weight: 500; opacity: .85; margin-inline-start: auto; }
.portal-filter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-xs); }
.portal-filter .cat-link { display: flex; justify-content: space-between; padding: .5rem .65rem; border-radius: 9px; font-size: .88rem; color: var(--text); }
.portal-filter .cat-link:hover { background: var(--surface-2); }
.portal-filter .cat-link.active { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.portal-filter .cat-link small { color: var(--muted); }
.program-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow-xs); transition: border-color .2s ease, box-shadow .2s ease; }
.program-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.program-card h5 { font-size: 1.08rem; margin: .55rem 0 .2rem; }
.program-card .cat-tag { background: var(--brand-50); color: var(--brand-700); font-size: .72rem; font-weight: 700; padding: .22rem .6rem; border-radius: 6px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding-inline-start: 1.6rem; padding-bottom: 1.1rem; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 5px; top: 8px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.timeline .when { font-size: .74rem; color: var(--muted); }
.empty-state { text-align: center; padding: 2.25rem 1rem; color: var(--muted); font-size: .9rem; }
.empty-state i { display: block; margin-bottom: .6rem; font-size: 2rem; color: var(--brand-400); }
.doc-list { list-style: none; padding: 0; margin: .75rem 0 0; font-size: .85rem; }
.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }

/* 17. AUTH PAGES ---------------------------------------------------------- */
.auth-split { display: flex; min-height: 100vh; background: #fff; border: 1px solid var(--line); }
.auth-left {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 1rem + 4vw, 4rem);
  color: #fff;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 55%),
    radial-gradient(70% 60% at 0% 100%, rgba(8, 12, 40, .35) 0%, transparent 60%),
    linear-gradient(150deg, var(--brand-800), var(--brand-600) 60%, var(--brand-500));
}
.auth-left::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}
.auth-left > * { position: relative; z-index: 1; }
.auth-left h1 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem); }
.auth-left .text-white-50 { color: rgba(255, 255, 255, .78) !important; }
.auth-left .brand-mark { background: rgba(255, 255, 255, .18) !important; box-shadow: none; }
.auth-left .trust-box { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-lg); padding: 1.15rem 1.3rem; margin-top: 2rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); background: #fff; }
.auth-form-wrap { width: 100%; max-width: 440px; }
.auth-form-wrap h2 { font-size: 1.75rem; }
.sso-box { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin-bottom: 1.2rem; border: 1px solid var(--brand-200); background: var(--brand-50); border-radius: 12px; }
.password-toggle-btn { color: var(--muted); }
html[dir="rtl"] .password-toggle-btn { right: auto !important; left: 0 !important; margin-right: 0 !important; margin-left: .5rem !important; }
@media (max-width: 991.98px) {
  .auth-split { flex-direction: column; min-height: auto; }
}
.auth-page { padding: clamp(2rem, 1rem + 3vw, 4rem) 0; background: var(--surface-2); }

/* 18. LEGACY COMPAT · PRINT --------------------------------------------- */
/* section-heading component, campaign unsubscribe page, cta-button */
.edu-section { padding-block: clamp(3.5rem, 2rem + 4.5vw, 6rem); }
.edu-section--muted { background: var(--surface-2); }
.edu-eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .8rem; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; }
.edu-section-title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); }
.edu-section-sub { color: var(--muted); margin-inline: auto; }
.edu-accent { color: var(--brand-600); }
.edu-icon-box { background: var(--success-soft) !important; color: var(--success) !important; }
.edu-center-btn { margin-top: 1.5rem; }
.edu-logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--ink); }
.edu-logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-600); }

@media print {
  .site-header, .site-footer, .app-nav, .no-print, .cookies-card { display: none !important; }
  .completion-card, .card-soft, .section-card, .form-panel { box-shadow: none !important; border: 1px solid #ddd; }
  body, .app-bg { background: #fff; }
}
