/* Kariz design tokens (FUS 2.1) -- v0.1 subset over Bootstrap 5 */
@font-face { font-family: "Bahij Zar"; src: url("/static/fonts/Bahij-Zar.ttf") format("truetype"); font-style: normal; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("/static/fonts/Amiri-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("/static/fonts/Amiri-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
html[lang="ps"] { --n24-font: "Bahij Zar", "Noto Naskh Arabic", sans-serif; }
html[lang="fa"] { --n24-font: "Amiri", "Noto Naskh Arabic", serif; }
html[lang="ps"] body, html[lang="ps"] input, html[lang="ps"] textarea, html[lang="ps"] button, html[lang="ps"] select,
html[lang="fa"] body, html[lang="fa"] input, html[lang="fa"] textarea, html[lang="fa"] button, html[lang="fa"] select { font-family: var(--n24-font); }

/* NOTE (UI/UX modernization): the surface/neutral tokens below were retuned
   from the original warm "sand" ramp to a cool enterprise neutral ramp. The
   variable NAMES are unchanged on purpose, so every existing module inherits
   the modern surface treatment without any template edits. Brand (lapis /
   turquoise) and the score band colors keep their meaning. */
:root {
  --k-lapis-900: #14213D;
  --k-lapis-800: #1B2C50;
  --k-lapis-700: #2E4380;
  --k-lapis-500: #4A63A9;
  --k-turquoise-500: #2A9D8F;
  --k-turquoise-600: #21806F;
  --k-turquoise-300: #7FC8BF;
  --k-sand-50: #F6F8FB;   /* app canvas   */
  --k-sand-100: #EEF1F6;  /* subtle fill  */
  --k-sand-200: #DFE4EC;  /* hairline border */
  --k-ink-900: #131922;
  --k-ink-600: #5A6478;
  --k-ink-400: #8892A6;
  /* Band colors: reserved for score semantics only (FUS rule) */
  --band-a: #1E7F4F;
  --band-b: #4E9B3B;
  --band-c: #C9930A;
  --band-d: #D9662B;
  --band-e: #B3362C;

  /* Enterprise design system: status, elevation, radius, typography. */
  --n24-info: #3D6BE5;
  --n24-success: #1E9E6A;
  --n24-warning: #D9922B;
  --n24-danger: #D64550;
  --n24-radius-sm: 8px;
  --n24-radius: 14px;
  --n24-radius-lg: 18px;
  --n24-shadow-xs: 0 1px 2px rgba(19, 25, 34, .05);
  --n24-shadow-sm: 0 1px 3px rgba(19, 25, 34, .06), 0 1px 2px rgba(19, 25, 34, .04);
  --n24-shadow-md: 0 4px 16px rgba(19, 25, 34, .07), 0 1px 3px rgba(19, 25, 34, .04);
  --n24-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
              "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
}

.kariz-body {
  background: var(--k-sand-50);
  color: var(--k-ink-900);
  font-family: var(--n24-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 0;
}
.kariz-body h1, .kariz-body h2, .kariz-body h3,
.kariz-body h4, .kariz-body h5, .kariz-body h6 {
  letter-spacing: -.015em; font-weight: 650;
}
.kariz-auth { background: linear-gradient(160deg, var(--k-lapis-900), var(--k-lapis-700)); }

.kariz-card {
  border: 1px solid var(--k-sand-200);
  border-radius: var(--n24-radius);
  background: #fff;
  box-shadow: var(--n24-shadow-sm);
}

.kariz-mark {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--k-lapis-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: .5px;
}

.kariz-btn-primary {
  background: var(--k-lapis-700); color: #fff; border: none; border-radius: 8px;
}
.kariz-btn-primary:hover, .kariz-btn-primary:focus {
  background: var(--k-lapis-900); color: #fff;
}

.kariz-eyebrow {
  color: var(--k-turquoise-500);
  text-transform: uppercase; letter-spacing: .06em; font-size: .78rem;
}

.form-control:focus {
  border-color: var(--k-turquoise-500);
  box-shadow: 0 0 0 .2rem rgba(42, 157, 143, .18);
}

/* -- Module 3.5: BI preview dashboard (CSS-only charts; Chart.js is
   reserved for the real Module 5 dashboards) ------------------------- */

.kariz-donut {
  --pct: 0;
  --donut-color: var(--k-turquoise-500);
  width: 96px; height: 96px; border-radius: 50%;
  background: conic-gradient(var(--donut-color) calc(var(--pct) * 1%), var(--k-sand-200) 0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.kariz-donut::after {
  content: "";
  width: 68px; height: 68px; border-radius: 50%; background: #fff;
  position: absolute;
}
.kariz-donut-label {
  position: relative; z-index: 1; font-weight: 700; font-size: 1rem;
}

.kariz-bar-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.kariz-bar-label { width: 110px; flex-shrink: 0; font-size: .8rem; color: var(--k-ink-600); }
.kariz-bar-track {
  flex: 1; height: 10px; background: var(--k-sand-200); border-radius: 6px; overflow: hidden;
}
.kariz-bar-fill { display: block; height: 100%; background: var(--k-turquoise-300); }
.kariz-bar-fill.kariz-bar-current { background: var(--k-lapis-700); }
.kariz-bar-count { width: 28px; text-align: right; font-size: .8rem; color: var(--k-ink-600); }

/* -- Module 3.6: desktop app shell (sidebar + top bar + breadcrumbs).
   Desktop-focused (MacBook / Windows / large monitors), not mobile-first.
   No JS framework: Bootstrap's bundled JS handles dropdowns via data
   attributes; app-shell.js only does sidebar persistence, shortcuts,
   and the notifications fetch. ------------------------------------- */

:root {
  --app-sidebar-width: 248px;
  --app-sidebar-width-collapsed: 64px;
  --app-topbar-height: 60px;
  --app-breadcrumb-height: 40px;
}

.app-shell { display: flex; min-height: 100vh; align-items: stretch; }

.app-sidebar {
  width: var(--app-sidebar-width);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--k-lapis-900) 0%, #101A33 100%);
  color: rgba(255, 255, 255, .85);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: width .15s ease;
  z-index: 20;
}
html[data-sidebar-collapsed="1"] .app-sidebar { width: var(--app-sidebar-width-collapsed); }

.app-sidebar-brand {
  display: flex; align-items: center; gap: .6rem;
  padding: 1rem; height: var(--app-topbar-height); flex-shrink: 0;
  color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.app-sidebar-brand:hover { color: #fff; }
.app-sidebar-brand .kariz-mark { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; font-size: .8rem; }

.app-sidebar-nav { flex: 1; padding: .75rem .5rem; list-style: none; margin: 0; }
.app-sidebar-nav .nav-link {
  display: flex; align-items: center; gap: .75rem;
  color: rgba(255, 255, 255, .75); border-radius: 8px;
  padding: .55rem .75rem; margin-bottom: .15rem; white-space: nowrap;
  font-size: .92rem;
}
.app-sidebar-nav .nav-link i { width: 1.2em; text-align: center; flex-shrink: 0; font-size: 1.05rem; }
.app-sidebar-nav .nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.app-sidebar-nav .nav-link.active {
  background: var(--k-turquoise-500); color: #fff; font-weight: 600;
}
html[data-sidebar-collapsed="1"] .app-sidebar-nav .nav-link span,
html[data-sidebar-collapsed="1"] .app-sidebar-brand span { display: none; }
html[data-sidebar-collapsed="1"] .app-sidebar-section { display: none; }

.app-sidebar-toggle {
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: transparent; color: rgba(255, 255, 255, .7); border: none;
  padding: .75rem 1rem; text-align: left; display: flex; align-items: center; gap: .6rem;
  white-space: nowrap; font-size: .85rem;
}
.app-sidebar-toggle:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.app-topbar {
  height: var(--app-topbar-height); flex-shrink: 0;
  background: #fff; border-bottom: 1px solid var(--k-sand-200);
  display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem;
  position: sticky; top: 0; z-index: 15;
}

.app-search { position: relative; width: 320px; max-width: 40vw; }
.app-search input {
  padding-left: 2.1rem; background: var(--k-sand-50); border-color: var(--k-sand-200);
}
.app-search i {
  position: absolute; left: .7rem; top: 50%; transform: translateY(-50%);
  color: var(--k-ink-600); pointer-events: none;
}
.app-search kbd {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  font-size: .7rem; color: var(--k-ink-600); background: var(--k-sand-100);
  border: 1px solid var(--k-sand-200); border-radius: 4px; padding: .05rem .35rem;
}

.app-topbar-icon-btn {
  position: relative; border: none; background: transparent; color: var(--k-ink-600);
  width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem;
}
.app-topbar-icon-btn:hover { background: var(--k-sand-100); color: var(--k-ink-900); }
.app-topbar-icon-btn .badge {
  position: absolute; top: 2px; right: 2px; font-size: .55rem; padding: .2em .4em;
}

.app-notification-item { padding: .6rem .9rem; border-bottom: 1px solid var(--k-sand-100); }
.app-notification-item:last-child { border-bottom: none; }
.app-notification-empty { padding: 1.25rem; text-align: center; color: var(--k-ink-600); font-size: .85rem; }

.app-breadcrumbs {
  height: var(--app-breadcrumb-height); flex-shrink: 0;
  display: flex; align-items: center; padding: 0 1.25rem;
  background: var(--k-sand-50); border-bottom: 1px solid var(--k-sand-200);
  font-size: .82rem; color: var(--k-ink-600);
}
.app-breadcrumbs a { color: var(--k-ink-600); text-decoration: none; }
.app-breadcrumbs a:hover { color: var(--k-lapis-700); text-decoration: underline; }
.app-breadcrumbs .divider { margin: 0 .5rem; color: var(--k-sand-200); }
.app-breadcrumbs .current { color: var(--k-ink-900); font-weight: 600; }

.app-content { flex: 1; padding: 1.5rem; }

.app-quick-stat {
  border: 1px solid var(--k-sand-200); border-radius: 12px; background: #fff;
  padding: 1.1rem 1.25rem;
}
.app-quick-stat .value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.app-quick-stat .label { font-size: .82rem; color: var(--k-ink-600); }
.app-quick-stat i { font-size: 1.4rem; color: var(--k-turquoise-500); }

/* Large monitors: cap content width so lines don't stretch unreadably wide */
@media (min-width: 1600px) {
  .app-content { padding: 2rem 3rem; }
}

/* Smaller laptop windows: app-shell.js auto-collapses the sidebar on
   load (still overridable via the toggle); this only narrows search. */
@media (max-width: 900px) {
  .app-search { width: 200px; }
}

/* ===================================================================
   AFRA SHARQ enterprise UI system.
   Additive component layer used by the Executive Dashboard. All spacing
   uses LOGICAL properties (inline-start/end) so Pashto/Dari RTL mirrors
   correctly without a separate stylesheet.
   =================================================================== */

/* --- brand lockup in the sidebar ---------------------------------- */
.n24-brand { display: flex; align-items: center; gap: .65rem; min-width: 0; }
/* Official logo tile. The supplied asset is a square, dark-navy lockup, so it
   sits flush against the navy sidebar; object-fit keeps it undistorted
   whatever exact dimensions the installed file has. */
.n24-brand-mark {
  width: 36px; height: 36px; flex-shrink: 0; display: block;
  border-radius: 9px; object-fit: cover; background: rgba(255, 255, 255, .04);
}
.n24-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.n24-brand-name {
  font-size: .95rem; font-weight: 700; letter-spacing: -.01em; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.n24-brand-sub {
  /* Tuned to fit "INNOVATE | ELEVATE | SUCCEED" in the 248px sidebar
     without ellipsis. */
  font-size: .52rem; letter-spacing: .03em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-sidebar-collapsed="1"] .n24-brand-text { display: none; }

/* Sidebar group headings + active indicator */
.app-sidebar-section span { color: rgba(255, 255, 255, .42) !important; font-weight: 600; }
.app-sidebar-nav .nav-link.active {
  background: linear-gradient(90deg, rgba(42, 157, 143, .95), rgba(42, 157, 143, .62));
  box-shadow: inset 3px 0 0 0 #7FE3D5;
}
html[dir="rtl"] .app-sidebar-nav .nav-link.active {
  background: linear-gradient(270deg, rgba(42, 157, 143, .95), rgba(42, 157, 143, .62));
  box-shadow: inset -3px 0 0 0 #7FE3D5;
}

/* --- page header -------------------------------------------------- */
.n24-page-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.n24-page-title { font-size: 1.4rem; font-weight: 680; margin: 0 0 .2rem; letter-spacing: -.02em; }
.n24-page-sub { color: var(--k-ink-600); font-size: .88rem; margin: 0; }

/* --- KPI cards ---------------------------------------------------- */
.n24-kpi-grid {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}
/* Laptops and up: keep the seven executive KPIs on one uninterrupted row. */
@media (min-width: 1320px) { .n24-kpi-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.n24-kpi {
  position: relative; display: block; overflow: hidden;
  background: #fff; border: 1px solid var(--k-sand-200);
  border-radius: var(--n24-radius); padding: 1rem 1.1rem;
  text-decoration: none; color: inherit;
  box-shadow: var(--n24-shadow-sm);
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
a.n24-kpi:hover {
  box-shadow: var(--n24-shadow-md); transform: translateY(-2px);
  border-color: #C9D2E0; color: inherit;
}
.n24-kpi::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 100%; height: 3px; background: var(--n24-accent, var(--k-turquoise-500));
  opacity: .9;
}
.n24-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.n24-kpi-label {
  font-size: .74rem; font-weight: 600; letter-spacing: .045em; text-transform: uppercase;
  color: var(--k-ink-600);
}
.n24-kpi-icon {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .98rem;
  background: color-mix(in srgb, var(--n24-accent, var(--k-turquoise-500)) 12%, #fff);
  color: var(--n24-accent, var(--k-turquoise-500));
}
.n24-kpi-value {
  font-size: 1.85rem; font-weight: 700; line-height: 1.15; margin-top: .45rem;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.n24-kpi-foot { font-size: .76rem; color: var(--k-ink-600); margin-top: .15rem; }
.n24-kpi-foot .n24-delta { font-weight: 600; }
.n24-delta-up { color: var(--n24-success); }
.n24-delta-flat { color: var(--k-ink-400); }

/* --- panels ------------------------------------------------------- */
.n24-panel {
  background: #fff; border: 1px solid var(--k-sand-200);
  border-radius: var(--n24-radius); box-shadow: var(--n24-shadow-sm);
  display: flex; flex-direction: column; height: 100%;
}
.n24-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--k-sand-200);
}
.n24-panel-title {
  font-size: .82rem; font-weight: 680; margin: 0; letter-spacing: .01em;
  display: flex; align-items: center; gap: .45rem;
}
.n24-panel-title i { color: var(--k-turquoise-500); font-size: .95rem; }
.n24-panel-body { padding: 1.1rem; flex: 1; }
.n24-panel-link { font-size: .78rem; text-decoration: none; color: var(--k-lapis-700); font-weight: 600; white-space: nowrap; }
.n24-panel-link:hover { text-decoration: underline; }

/* --- empty states (honest zeros still look designed) -------------- */
.n24-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem .75rem; color: var(--k-ink-400); gap: .35rem; height: 100%;
}
.n24-empty i { font-size: 1.5rem; opacity: .55; }
.n24-empty-text { font-size: .8rem; }
.n24-empty-hint { font-size: .74rem; color: var(--k-ink-400); }

/* --- charts (inline SVG, rendered server-side from real rows) ----- */
.n24-chart { width: 100%; height: auto; display: block; overflow: visible; }
.n24-chart-grid { stroke: var(--k-sand-200); stroke-width: 1; }
.n24-chart-axis { fill: var(--k-ink-400); font-size: 10px; }
.n24-area { fill: url(#n24AreaFill); }
.n24-line { fill: none; stroke: var(--k-lapis-700); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.n24-dot { fill: #fff; stroke: var(--k-lapis-700); stroke-width: 2; }

/* progress ring */
.n24-ring-wrap { display: flex; align-items: center; gap: 1rem; }
.n24-ring { width: 104px; height: 104px; flex-shrink: 0; transform: rotate(-90deg); }
.n24-ring-track { fill: none; stroke: var(--k-sand-100); stroke-width: 10; }
.n24-ring-fill { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.n24-ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none;
}
.n24-ring-holder { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.n24-ring-value { font-size: 1.35rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.n24-ring-label { font-size: .64rem; color: var(--k-ink-600); text-transform: uppercase; letter-spacing: .06em; }

/* horizontal meters (provinces, workload, pipeline) */
.n24-meter { margin-bottom: .7rem; }
.n24-meter:last-child { margin-bottom: 0; }
.n24-meter-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .5rem; font-size: .8rem; margin-bottom: .28rem;
}
.n24-meter-name { color: var(--k-ink-900); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n24-meter-val { color: var(--k-ink-600); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.n24-meter-track { height: 7px; background: var(--k-sand-100); border-radius: 99px; overflow: hidden; }
.n24-meter-fill {
  height: 100%; border-radius: 99px; background: var(--k-turquoise-500);
  display: block; min-width: 2px;
}

/* status pills + legend */
.n24-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 99px;
  border: 1px solid transparent; white-space: nowrap;
}
.n24-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.n24-pill-info { color: #2A4FA8; background: #EAF0FE; border-color: #D5E0FB; }
.n24-pill-success { color: #14684A; background: #E6F5EF; border-color: #CFEBE0; }
.n24-pill-warning { color: #8A5A05; background: #FDF3E2; border-color: #F7E4C4; }
.n24-pill-danger { color: #98262F; background: #FDECEE; border-color: #F8D6DA; }
.n24-pill-neutral { color: var(--k-ink-600); background: var(--k-sand-100); border-color: var(--k-sand-200); }

/* stacked distribution bar */
.n24-stack { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--k-sand-100); }
.n24-stack span { display: block; height: 100%; }
.n24-legend { display: flex; flex-wrap: wrap; gap: .5rem .95rem; margin-top: .75rem; }
.n24-legend-item { display: flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--k-ink-600); }
.n24-legend-swatch { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }

/* timeline / activity list */
.n24-list { list-style: none; margin: 0; padding: 0; }
.n24-list li {
  display: flex; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--k-sand-100);
  font-size: .84rem; align-items: flex-start;
}
.n24-list li:last-child { border-bottom: none; padding-bottom: 0; }
.n24-list li:first-child { padding-top: 0; }
.n24-list-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .8rem;
  background: var(--k-sand-100); color: var(--k-ink-600);
}
.n24-list-main { min-width: 0; flex: 1; }
.n24-list-title { font-weight: 550; color: var(--k-ink-900); text-decoration: none; display: block; }
a.n24-list-title:hover { color: var(--k-lapis-700); text-decoration: underline; }
.n24-list-meta { color: var(--k-ink-600); font-size: .76rem; }
.n24-list-right { flex-shrink: 0; text-align: end; font-size: .76rem; color: var(--k-ink-600); }

/* --- AI Executive Assistant panel --------------------------------- */
.n24-ai {
  border-radius: var(--n24-radius-lg); overflow: hidden;
  border: 1px solid rgba(20, 33, 61, .12);
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(42, 157, 143, .16) 0%, rgba(42, 157, 143, 0) 55%),
    linear-gradient(160deg, #16233F 0%, #101A33 60%, #0D1529 100%);
  color: #E8ECF4; box-shadow: var(--n24-shadow-md);
}
.n24-ai-head {
  display: flex; align-items: center; gap: .7rem;
  padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.n24-ai-badge {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, #3D6BE5, #2A9D8F);
}
.n24-ai-title { font-size: .95rem; font-weight: 680; margin: 0; color: #fff; letter-spacing: -.01em; }
.n24-ai-sub { font-size: .73rem; color: rgba(232, 236, 244, .62); margin: 0; }
.n24-ai-body {
  padding: 1.1rem 1.2rem 1.25rem;
  display: grid; gap: 1rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.n24-ai-group-title {
  font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(232, 236, 244, .55); margin: 0 0 .5rem;
  display: flex; align-items: center; gap: .4rem;
}
.n24-ai-group-title i { font-size: .85rem; }
.n24-ai-list { list-style: none; margin: 0; padding: 0; }
.n24-ai-list li {
  font-size: .82rem; line-height: 1.45; padding: .38rem 0 .38rem .85rem;
  position: relative; color: rgba(232, 236, 244, .9);
}
.n24-ai-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .78rem;
  width: 5px; height: 5px; border-radius: 50%; background: var(--n24-ai-dot, #2A9D8F);
}
.n24-ai-list a { color: #8FD5CB; text-decoration: none; font-weight: 550; }
.n24-ai-list a:hover { text-decoration: underline; color: #A8E4DC; }
.n24-ai-list .n24-ai-num { font-variant-numeric: tabular-nums; font-weight: 680; color: #fff; }
.n24-ai-empty { font-size: .8rem; color: rgba(232, 236, 244, .45); padding: .38rem 0; }
.n24-ai-foot {
  padding: .6rem 1.2rem; border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: .7rem; color: rgba(232, 236, 244, .45);
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}

/* ===================================================================
   Sign-in page. Two panels: brand (dark navy, collapses under 992px)
   and the credential card. Logical properties throughout so Pashto /
   Dari RTL mirrors without a second stylesheet.
   =================================================================== */
.n24-auth {
  min-height: 100vh; min-height: 100dvh;
  background: #0B1424;
  color: var(--k-ink-900);
}
.n24-auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; min-height: 100dvh; }

/* left: brand panel */
.n24-auth-brand {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2.5rem;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(61, 107, 229, .30) 0%, rgba(61, 107, 229, 0) 55%),
    radial-gradient(90% 80% at 85% 90%, rgba(42, 157, 143, .22) 0%, rgba(42, 157, 143, 0) 60%),
    linear-gradient(160deg, #0E1B33 0%, #0B1424 55%, #070E1B 100%);
}
/* Two soft light arcs echoing the brand mark -- subtle, not decorative noise. */
.n24-auth-brand::before,
.n24-auth-brand::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(120, 170, 255, .16);
}
.n24-auth-brand::before { width: 780px; height: 780px; inset-block-start: -34%; inset-inline-start: -26%; }
.n24-auth-brand::after  { width: 560px; height: 560px; inset-block-end: -30%; inset-inline-end: -18%;
                          border-color: rgba(42, 157, 143, .16); }

.n24-auth-brand-inner { position: relative; z-index: 1; max-width: 430px; text-align: center; }
/* The official logo ships on its own dark navy field. Two things stop that
   field reading as a pasted rectangle on the panel: `screen` drops the
   darkest pixels toward the background, and a radial mask feathers the outer
   edge so the remaining glow fades out instead of ending on a hard line. */
.n24-auth-logo {
  width: min(360px, 82%); height: auto; display: block; margin: 0 auto 1.25rem;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 47%,
                      #000 58%, rgba(0, 0, 0, .55) 76%, transparent 92%);
          mask-image: radial-gradient(ellipse 62% 58% at 50% 47%,
                      #000 58%, rgba(0, 0, 0, .55) 76%, transparent 92%);
}
/* Transparent AS monogram, shown above the wordmark on the dark brand panel.
   No blend/mask needed -- the supplied PNG already has an alpha channel. */
.n24-auth-logo-mark {
  width: min(200px, 48%); height: auto; display: block; margin: 0 auto 1.4rem;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, .5));
}

.n24-auth-wordmark { margin-bottom: 1.5rem; line-height: 1; }
.n24-wm-light { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 300; color: #E9EFFA; letter-spacing: -.02em; }
.n24-wm-bold  { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.n24-wm-light,
.n24-wm-bold { text-transform: uppercase; }
.n24-wm-light { margin-inline-end: .12em; }
.n24-wm-rule {
  display: flex; align-items: center; justify-content: center; gap: .85rem;
  margin-top: .6rem; font-size: .72rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(233, 239, 250, .8);
}
.n24-wm-rule i { display: block; width: 64px; height: 1px; background: rgba(120, 170, 255, .5); }

.n24-auth-tagline {
  color: #9FC0F0; font-size: .82rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; margin: 0 0 2.25rem;
}
.n24-auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; text-align: start; }
.n24-auth-points li {
  display: flex; align-items: center; gap: .8rem;
  color: rgba(226, 234, 247, .80); font-size: .92rem;
}
.n24-auth-points i {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
  color: #8FD5CB; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09);
}

/* right: credential panel */
.n24-auth-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem 1.5rem 1.75rem; background: var(--k-sand-50);
}
.n24-auth-card {
  width: 100%; max-width: 420px; background: #fff;
  border: 1px solid var(--k-sand-200); border-radius: var(--n24-radius-lg);
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: 0 24px 60px rgba(11, 20, 36, .13), 0 2px 6px rgba(11, 20, 36, .05);
}
.n24-auth-card-head { text-align: center; margin-bottom: 1.6rem; }
/* Card logo shows only on narrow screens, where the brand panel is hidden.
   On the white card the logo's dark field cannot be blended away, so it is
   presented deliberately as a rounded brand tile. */
.n24-auth-card-logo {
  display: none; width: 84px; height: 84px; object-fit: cover;
  margin: 0 auto 1rem; border-radius: 18px;
  box-shadow: 0 8px 20px rgba(11, 20, 36, .22);
}
.n24-auth-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .3rem; }
.n24-auth-sub { color: var(--k-ink-600); font-size: .88rem; margin: 0; }

.n24-auth-alert {
  display: flex; align-items: flex-start; gap: .55rem;
  background: #FDECEE; border: 1px solid #F8D6DA; color: #98262F;
  border-radius: var(--n24-radius-sm); padding: .65rem .8rem;
  font-size: .84rem; margin-bottom: 1.1rem;
}
.n24-auth-alert i { margin-top: .1rem; }

.n24-auth-form { display: grid; gap: 1.05rem; }
.n24-field { display: block; }
.n24-label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--k-ink-900); margin-bottom: .4rem;
}
.n24-input-wrap { position: relative; display: block; }
.n24-input-wrap > i {
  position: absolute; inset-inline-start: .9rem; inset-block-start: 50%;
  transform: translateY(-50%); color: var(--k-ink-400); font-size: .95rem;
  pointer-events: none;
}
.n24-input {
  width: 100%; border: 1px solid var(--k-sand-200); border-radius: var(--n24-radius-sm);
  background: #FBFCFE; color: var(--k-ink-900);
  padding: .8rem 1rem .8rem 2.6rem; font-size: .95rem; line-height: 1.3;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.n24-input:focus {
  outline: none; background: #fff; border-color: var(--k-turquoise-500);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, .16);
}
/* Mirror the icon inset for RTL without flipping the LTR phone field itself. */
html[dir="rtl"] .n24-input { padding-inline-start: 2.6rem; padding-inline-end: 1rem; }
.n24-input#phone { text-align: start; }
.n24-reveal {
  position: absolute; inset-inline-end: .35rem; inset-block-start: 50%;
  transform: translateY(-50%);
  border: none; background: transparent; color: var(--k-ink-400);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.n24-reveal:hover { color: var(--k-ink-900); background: var(--k-sand-100); }

.n24-auth-submit {
  width: 100%; border: none; border-radius: var(--n24-radius-sm);
  background: linear-gradient(135deg, var(--k-lapis-700) 0%, #24356A 55%, var(--k-lapis-900) 100%);
  color: #fff; font-size: .98rem; font-weight: 600; padding: .85rem 1rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  cursor: pointer; margin-top: .35rem;
  box-shadow: 0 8px 20px rgba(20, 33, 61, .22);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.n24-auth-submit:hover { filter: brightness(1.08); box-shadow: 0 12px 26px rgba(20, 33, 61, .28); transform: translateY(-1px); }
.n24-auth-submit:active { transform: translateY(0); }
.n24-auth-submit i { font-size: .9rem; transition: transform .14s ease; }
.n24-auth-submit:hover i { transform: translateX(3px); }
html[dir="rtl"] .n24-auth-submit i { transform: scaleX(-1); }
html[dir="rtl"] .n24-auth-submit:hover i { transform: scaleX(-1) translateX(3px); }

.n24-auth-note {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  color: var(--k-ink-600); font-size: .8rem; margin: 1.25rem 0 0; text-align: center;
}
.n24-auth-langs {
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--k-sand-100);
}
.n24-auth-lang {
  font-size: .82rem; color: var(--k-ink-600); text-decoration: none;
  padding: .3rem .7rem; border-radius: 99px; transition: background .14s ease, color .14s ease;
}
.n24-auth-lang:hover { background: var(--k-sand-100); color: var(--k-ink-900); }
.n24-auth-lang.is-active { background: var(--k-lapis-700); color: #fff; font-weight: 600; }

.n24-auth-footer {
  margin-top: 1.75rem; text-align: center; color: var(--k-ink-600);
  font-size: .76rem; line-height: 1.7; max-width: 30rem; text-wrap: balance;
}
.n24-auth-footer p { margin: 0; }
.n24-auth-footer p + p { color: var(--k-ink-400); }

/* --- sign-in responsive ------------------------------------------- */
@media (max-width: 991.98px) {
  .n24-auth-shell { grid-template-columns: 1fr; }
  .n24-auth-brand { display: none; }
  .n24-auth-panel {
    min-height: 100vh; min-height: 100dvh;
    background:
      radial-gradient(110% 60% at 50% 0%, rgba(61, 107, 229, .28) 0%, rgba(61, 107, 229, 0) 60%),
      linear-gradient(170deg, #0E1B33 0%, #0B1424 60%, #070E1B 100%);
    padding: 2rem 1.1rem 1.5rem;
  }
  .n24-auth-card-logo { display: block; }
  .n24-auth-footer { color: rgba(226, 234, 247, .62); }
  .n24-auth-footer p + p { color: rgba(226, 234, 247, .42); }
}
@media (max-width: 420px) {
  .n24-auth-card { padding: 1.75rem 1.25rem 1.4rem; border-radius: var(--n24-radius); }
  .n24-auth-title { font-size: 1.3rem; }
  .n24-auth-card-logo { width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .n24-auth-submit, .n24-auth-submit i, .n24-input { transition: none; }
  .n24-auth-submit:hover { transform: none; }
}

/* Refined sign-in treatment, inspired by the second supplied reference:
   layered blue atmosphere and precise interface-like texture, while keeping
   the real AFRA SHARQ identity and the existing phone/password flow. */
.n24-auth {
  background: #f3f6fb;
  background-image: radial-gradient(ellipse at 84% 12%, rgba(71, 121, 204, .09), transparent 38%);
}
.n24-auth-shell { grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); }
.n24-auth-brand {
  isolation: isolate;
  background-color: #09172e;
  background-image:
    linear-gradient(rgba(151, 184, 229, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 184, 229, .035) 1px, transparent 1px),
    radial-gradient(ellipse at 18% 12%, rgba(28, 126, 209, .30), transparent 48%),
    radial-gradient(ellipse at 90% 82%, rgba(21, 151, 145, .19), transparent 42%),
    linear-gradient(145deg, #102849 0%, #09172e 58%, #071222 100%);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
}
.n24-auth-brand::before {
  width: min(760px, 84vw); height: min(760px, 84vw);
  inset-block-start: -32%; inset-inline-start: -27%;
  border-color: rgba(119, 178, 246, .14);
  box-shadow: 0 0 0 44px rgba(119, 178, 246, .025), 0 0 0 96px rgba(119, 178, 246, .018);
}
.n24-auth-brand::after {
  width: 480px; height: 480px; inset-block-end: -33%; inset-inline-end: -18%;
  border-color: rgba(72, 207, 188, .17);
  box-shadow: 0 0 70px rgba(24, 164, 164, .08);
}
.n24-auth-brand-inner { max-width: 470px; }
.n24-auth-logo-mark {
  width: min(188px, 44%); margin-bottom: 1.2rem;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, .38));
}
.n24-auth-tagline { color: #a9c9f2; letter-spacing: .16em; }
.n24-auth-points { gap: .72rem; max-width: 390px; margin-inline: auto; }
.n24-auth-points li { font-size: .88rem; }
.n24-auth-points i {
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  border-color: rgba(163, 196, 238, .14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.n24-auth-panel {
  background:
    radial-gradient(ellipse at 88% 9%, rgba(57, 112, 198, .075), transparent 36%),
    linear-gradient(145deg, #f7f9fc 0%, #eef2f8 100%);
}
.n24-auth-card {
  position: relative; overflow: hidden; max-width: 440px;
  border: 1px solid rgba(203, 213, 227, .85); border-radius: 22px;
  padding: 2.45rem 2.25rem 1.85rem;
  box-shadow: 0 30px 80px rgba(20, 38, 70, .13), 0 4px 14px rgba(20, 38, 70, .045);
}
.n24-auth-card::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, #2d5ca8, #35a99e 52%, #2d5ca8);
}
.n24-auth-card-head { margin-bottom: 1.8rem; }
.n24-auth-title { font-size: 1.62rem; letter-spacing: -.035em; color: #15233b; }
.n24-auth-sub { color: #68758a; font-size: .9rem; }
.n24-label { color: #26364d; font-size: .82rem; }
.n24-input {
  min-height: 52px; border-color: #dce3ed; border-radius: 10px;
  background: #f8fafc; font-size: .94rem;
}
.n24-input:focus {
  border-color: #398caa;
  box-shadow: 0 0 0 4px rgba(47, 139, 166, .12);
}
.n24-auth-submit {
  min-height: 52px; border-radius: 10px;
  background: linear-gradient(112deg, #294d91 0%, #182c59 100%);
  box-shadow: 0 12px 24px rgba(31, 58, 109, .20);
}
.n24-auth-submit:hover { box-shadow: 0 15px 28px rgba(31, 58, 109, .26); }
.n24-auth-note { color: #68758a; font-size: .78rem; }
.n24-auth-langs { border-color: #e7ecf3; margin-top: 1.25rem; }
.n24-auth-lang { color: #58677c; }
.n24-auth-lang.is-active { background: #243f79; }
.n24-auth-footer { color: #68758a; }
.n24-auth-footer p + p { color: #8792a3; }

@media (max-width: 991.98px) {
  .n24-auth-shell { grid-template-columns: 1fr; }
  .n24-auth-panel {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(61, 107, 229, .24), transparent 48%),
      linear-gradient(160deg, #0c1b34 0%, #09172e 60%, #071222 100%);
  }
  .n24-auth-card { border-radius: 20px; }
  .n24-auth-title { color: #15233b; }
  .n24-auth-footer { color: rgba(226, 234, 247, .72); }
  .n24-auth-footer p + p { color: rgba(226, 234, 247, .52); }
}
@media (max-width: 575.98px) {
  .n24-auth-panel { padding: 1.3rem .9rem 1rem; }
  .n24-auth-card { padding: 1.75rem 1.25rem 1.35rem; }
  .n24-auth-card-head { margin-bottom: 1.4rem; }
  .n24-auth-footer { font-size: .7rem; margin-top: 1.1rem; }
}

/* Glass login direction based on the supplied references. The abstract
   light field stays CSS-only; it adds atmosphere without implying extra
   sign-in methods or adding a stock-photo watermark. */
.n24-auth {
  position: relative; overflow: hidden;
  color: #f4f8ff;
  background-color: #071426;
  background-image:
    linear-gradient(110deg, rgba(3, 13, 29, .24), rgba(4, 15, 31, .08) 54%, rgba(3, 12, 26, .27)),
    url("/static/img/login-glass-hero.png");
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: scroll, scroll;
}
.n24-auth-shell { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr) minmax(440px, .92fr); }
.n24-auth-laptop-mark {
  position: absolute; z-index: 0; left: 43.7%; top: 62.7%;
  width: clamp(48px, 5vw, 78px); height: auto;
  transform: translate(-50%, -50%); opacity: .94;
  filter: drop-shadow(0 0 12px rgba(75, 171, 255, .38));
  pointer-events: none;
}
.n24-auth-brand {
  background-color: transparent;
  background-image:
    linear-gradient(rgba(155, 195, 236, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 195, 236, .035) 1px, transparent 1px),
    radial-gradient(ellipse at 30% 35%, rgba(18, 155, 198, .16), transparent 42%),
    linear-gradient(145deg, rgba(10, 30, 58, .35), rgba(3, 14, 30, .38));
  background-size: 42px 42px, 42px 42px, auto, auto;
}
.n24-auth-brand::before {
  border-color: rgba(94, 190, 233, .16);
  box-shadow: 0 0 0 44px rgba(94, 190, 233, .025), 0 0 0 96px rgba(94, 190, 233, .018);
}
.n24-auth-brand::after { border-color: rgba(64, 215, 193, .17); }
.n24-auth-logo-frame {
  width: min(318px, 76%); margin: 0 auto 1.15rem;
  padding: 1.1rem 1.2rem .85rem; border-radius: 24px;
  background: linear-gradient(145deg, rgba(213,238,255,.12), rgba(114,185,233,.035));
  border: 1px solid rgba(223,242,255,.31);
  box-shadow: 0 24px 62px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.21);
  -webkit-backdrop-filter: blur(15px) saturate(145%);
  backdrop-filter: blur(15px) saturate(145%);
}
.n24-auth-full-logo { display: block; width: min(235px, 100%); height: auto; margin: 0 auto; }
.n24-auth-wordmark {
  display: block; margin-top: .3rem; color: #f5f9ff;
  font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 720;
  letter-spacing: .13em; text-align: center; white-space: nowrap;
}
.n24-auth-card-brand { display: none; }
.n24-auth-panel {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: rgba(6, 19, 39, .10);
  background-image:
    radial-gradient(ellipse at 70% 24%, rgba(11, 151, 196, .18), transparent 40%),
    radial-gradient(ellipse at 15% 88%, rgba(55, 94, 186, .16), transparent 38%),
    linear-gradient(150deg, rgba(8, 28, 54, .22), rgba(5, 16, 33, .34));
}
.n24-auth-panel::before,
.n24-auth-panel::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  border: 1px solid rgba(130, 202, 238, .13); border-radius: 50%;
}
.n24-auth-panel::before {
  width: 520px; height: 520px; inset-block-start: -22%; inset-inline-end: -28%;
  box-shadow: 0 0 0 38px rgba(130, 202, 238, .025), 0 0 0 82px rgba(130, 202, 238, .018);
}
.n24-auth-panel::after {
  width: 330px; height: 330px; inset-block-end: -24%; inset-inline-start: -20%;
  border-color: rgba(63, 216, 192, .14);
}
.n24-auth-card {
  z-index: 1; color: #f4f8ff;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(222,240,255,.018));
  border: 1px solid rgba(223, 242, 255, .31); border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
.n24-auth-card::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(108, 226, 225, .95), #86c9ff, transparent);
}
.n24-auth-title { color: #f7fbff; }
.n24-auth-sub { color: rgba(226, 238, 251, .72); }
.n24-label { color: #e5effa; }
.n24-input {
  color: #f7fbff; background: rgba(4, 16, 34, .34);
  border-color: rgba(209, 231, 250, .24);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
}
.n24-input::placeholder { color: rgba(217, 231, 246, .56); }
.n24-input:focus {
  color: #fff; background: rgba(4, 16, 34, .48);
  border-color: rgba(111, 220, 224, .8);
  box-shadow: 0 0 0 4px rgba(67, 199, 205, .14), inset 0 1px 2px rgba(0,0,0,.12);
}
.n24-input-wrap > i { color: rgba(204, 225, 244, .67); }
.n24-reveal { color: rgba(204, 225, 244, .72); }
.n24-reveal:hover { color: #fff; background: rgba(255,255,255,.10); }
.n24-auth-submit {
  color: #06213a;
  background: linear-gradient(110deg, #91e4e2 0%, #54c7d0 52%, #81c6ff 100%);
  box-shadow: 0 12px 30px rgba(24, 181, 199, .20), inset 0 1px 0 rgba(255,255,255,.52);
}
.n24-auth-submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(24, 181, 199, .27), inset 0 1px 0 rgba(255,255,255,.58);
}
.n24-auth-note { color: rgba(226, 238, 251, .7); }
.n24-auth-langs { border-color: rgba(220, 238, 255, .17); }
.n24-auth-lang { color: rgba(226, 238, 251, .76); }
.n24-auth-lang:hover { color: #fff; background: rgba(255,255,255,.10); }
.n24-auth-lang.is-active {
  color: #06213a; background: #8adfdf;
}
.n24-auth-footer { color: rgba(226, 238, 251, .68); }
.n24-auth-footer p + p { color: rgba(226, 238, 251, .48); }

@media (max-width: 991.98px) {
  .n24-auth-shell { grid-template-columns: 1fr; }
  .n24-auth-panel {
    background-color: rgba(5, 17, 35, .10);
    background-image:
      radial-gradient(ellipse at 50% 18%, rgba(11, 151, 196, .16), transparent 46%),
      linear-gradient(rgba(5, 17, 35, .12), rgba(5, 17, 35, .24)),
      url("/static/img/login-glass-hero.png");
    background-size: auto, cover, auto 125%;
    background-position: center, center, 52% center;
  }
  .n24-auth { background-position: center, center; }
  .n24-auth-laptop-mark { display: none; }
  .n24-auth-card { border-radius: 22px; }
  .n24-auth-card-brand {
    display: grid; justify-items: center; gap: .25rem;
    width: fit-content; margin: 0 auto 1rem; padding: .55rem 1.3rem .6rem;
    border: 1px solid rgba(223,242,255,.3); border-radius: 18px;
    background: linear-gradient(145deg, rgba(226,244,255,.11), rgba(255,255,255,.025));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
    -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px);
  }
  .n24-auth-card-brand span { color: #f5f9ff; font-size: .82rem; font-weight: 700; letter-spacing: .12em; }
  .n24-auth-card-logo { display: block; width: 86px; height: 86px; object-fit: contain; }
}
@media (max-width: 575.98px) {
  .n24-auth-panel { padding: 1.2rem .85rem 1rem; }
  .n24-auth-card { padding: 1.65rem 1.2rem 1.3rem; }
  .n24-auth-card-logo { width: 80px; height: 80px; }
}

/* Carry the sign-in page's navy and glass identity into the signed-in shell. */
.app-shell {
  background: radial-gradient(ellipse at 75% 0%, rgba(59,135,200,.11), transparent 35%),
              linear-gradient(165deg, #edf4fb, #f7f9fc 58%, #eaf2fa);
}
.app-sidebar {
  background: radial-gradient(ellipse at 5% 6%, rgba(39,148,194,.24), transparent 42%),
              linear-gradient(165deg, #0b213e, #0a172c 68%, #071321);
}
.app-topbar {
  background: rgba(248,251,255,.86);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}
.app-content .kariz-card {
  background: rgba(255,255,255,.91);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(12,35,68,.055), inset 0 1px 0 rgba(255,255,255,.75);
}

/* --- dashboard responsive grid ------------------------------------ */
.n24-grid { display: grid; gap: 1rem; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.n24-col-3 { grid-column: span 3; }
.n24-col-4 { grid-column: span 4; }
.n24-col-5 { grid-column: span 5; }
.n24-col-6 { grid-column: span 6; }
.n24-col-7 { grid-column: span 7; }
.n24-col-8 { grid-column: span 8; }
.n24-col-12 { grid-column: span 12; }
@media (max-width: 1400px) {
  .n24-col-3 { grid-column: span 4; }
}
@media (max-width: 1200px) {
  .n24-col-3, .n24-col-4, .n24-col-5, .n24-col-7, .n24-col-8 { grid-column: span 6; }
}
@media (max-width: 820px) {
  .n24-col-3, .n24-col-4, .n24-col-5, .n24-col-6, .n24-col-7, .n24-col-8 { grid-column: span 12; }
}

/* ===================================================================
   Global Idea → Afghan Opportunity module.
   Logical properties throughout (inline-start/end, text-align:start) so
   Pashto and Dari mirror without a second stylesheet.
   =================================================================== */
.gia { max-width: 1400px; }
.gia-head { margin-bottom: 1.1rem; }
.gia-head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.gia-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .15rem; }
.gia-subtitle { color: var(--k-ink-600); font-size: .88rem; margin: 0; }
.gia-head-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.gia-langs { display: inline-flex; gap: .2rem; background: var(--k-sand-100);
             border-radius: 99px; padding: .18rem; }
.gia-lang { font-size: .78rem; color: var(--k-ink-600); text-decoration: none;
            padding: .26rem .68rem; border-radius: 99px; }
.gia-lang:hover { color: var(--k-ink-900); }
.gia-lang.is-active { background: var(--k-lapis-700); color: #fff; font-weight: 600; }

.gia-tabs { display: flex; gap: .3rem; margin-top: .9rem;
            border-bottom: 1px solid var(--k-sand-200); }
.gia-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem;
           font-size: .9rem; color: var(--k-ink-600); text-decoration: none;
           border-bottom: 2px solid transparent; margin-bottom: -1px; }
.gia-tab:hover { color: var(--k-ink-900); }
.gia-tab.is-active { color: var(--k-lapis-700); border-bottom-color: var(--k-lapis-700); font-weight: 600; }

.gia-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; margin-bottom: 1rem; }
.gia-kpi { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem;
           background: #fff; border: 1px solid var(--k-sand-200);
           border-radius: var(--n24-radius); text-decoration: none; color: inherit;
           box-shadow: var(--n24-shadow-xs); transition: box-shadow .14s ease, transform .14s ease; }
.gia-kpi:hover { box-shadow: var(--n24-shadow-md); transform: translateY(-1px); color: inherit; }
.gia-kpi-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--k-ink-600); }
.gia-kpi-value { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.gia-kpi-foot { font-size: .76rem; color: var(--k-ink-400); }

.gia-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.gia-card { padding: 1.05rem 1.15rem; }
.gia-card-title { font-size: .78rem; font-weight: 700; text-transform: uppercase;
                  letter-spacing: .06em; color: var(--k-turquoise-600); margin: 0 0 .7rem; }
.gia-note { font-size: .74rem; color: var(--k-ink-400); margin: .6rem 0 0; line-height: 1.5; }
.gia-link { font-size: .8rem; color: var(--k-lapis-700); text-decoration: none; }

.gia-bar-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .38rem;
               text-decoration: none; color: inherit; }
.gia-bar-label { width: 92px; flex-shrink: 0; font-size: .78rem; color: var(--k-ink-600);
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.gia-bar-track { flex: 1; height: 8px; background: var(--k-sand-100); border-radius: 6px; overflow: hidden; }
.gia-bar-fill { display: block; height: 100%; background: var(--k-lapis-500); border-radius: 6px; }
.gia-bar-count { width: 26px; text-align: end; font-size: .78rem; font-weight: 600; }
.gia-dec-fill-go { background: var(--n24-success); }
.gia-dec-fill-test { background: var(--n24-info); }
.gia-dec-fill-research { background: var(--n24-warning); }
.gia-dec-fill-no_go { background: var(--n24-danger); }
.gia-prio-P1 { background: var(--n24-danger); }
.gia-prio-P2 { background: var(--n24-warning); }
.gia-prio-P3 { background: var(--k-ink-400); }
.gia-band-high { background: var(--n24-success); }
.gia-band-medium { background: var(--n24-warning); }
.gia-band-low { background: var(--k-ink-400); }
.gia-cap-fill { background: var(--k-turquoise-500); }
.gia-cat-fill { background: var(--k-lapis-700); }

.gia-pill { display: inline-block; font-size: .7rem; font-weight: 600; padding: .17rem .5rem;
            border-radius: 99px; white-space: nowrap; }
.gia-pill-high, .gia-pill-strong { background: #E4F5EC; color: #14764C; }
.gia-pill-medium, .gia-pill-moderate { background: #FBF0DC; color: #8A5B10; }
.gia-pill-low, .gia-pill-limited { background: var(--k-sand-100); color: var(--k-ink-600); }
.gia-pill-archived { background: var(--k-sand-200); color: var(--k-ink-600); }
.gia-dec-go { background: #E4F5EC; color: #14764C; }
.gia-dec-test { background: #E6EDFB; color: #24418F; }
.gia-dec-research { background: #FBF0DC; color: #8A5B10; }
.gia-dec-no_go { background: #FBE6E8; color: #98262F; }
.gia-prio-tag { display: inline-block; min-width: 30px; text-align: center; color: #fff;
                font-size: .7rem; font-weight: 700; padding: .16rem .42rem; border-radius: 6px; }

.gia-table { font-size: .86rem; }
.gia-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
                      color: var(--k-ink-600); font-weight: 600; white-space: nowrap; }
.gia-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem;
            color: var(--k-ink-600); white-space: nowrap; }
.gia-code a { color: inherit; text-decoration: none; }
.gia-idea a { color: var(--k-ink-900); text-decoration: none; font-weight: 500; }
.gia-idea a:hover { color: var(--k-lapis-700); }
.gia-cat { display: block; font-size: .72rem; color: var(--k-ink-400); }
.gia-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.gia-row-archived { opacity: .55; }
.gia-sort { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .2rem; }
.gia-sort:hover { color: var(--k-lapis-700); }
.gia-sort.is-active { color: var(--k-lapis-700); }

.gia-filters { padding: .95rem 1.05rem; }
.gia-filter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.gia-field { display: flex; flex-direction: column; gap: .22rem; }
.gia-field > span { font-size: .72rem; font-weight: 600; color: var(--k-ink-600); }
.gia-field-wide { grid-column: span 2; }
.gia-field-block { margin-bottom: .7rem; }
.gia-filter-actions { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.gia-filter-spacer { flex: 1; }
.gia-count { font-size: .78rem; color: var(--k-ink-600); }

.gia-pager { display: flex; justify-content: space-between; align-items: center;
             gap: .8rem; margin-top: .8rem; flex-wrap: wrap; }
.gia-pager-left { display: flex; align-items: center; gap: .7rem; }
.gia-page-size a { font-size: .76rem; color: var(--k-ink-600); text-decoration: none;
                   padding: .16rem .42rem; border-radius: 6px; }
.gia-page-size a.is-active { background: var(--k-lapis-700); color: #fff; }
.gia-pages { display: flex; gap: .22rem; }
.gia-page { min-width: 30px; text-align: center; padding: .28rem .5rem; font-size: .8rem;
            border: 1px solid var(--k-sand-200); border-radius: 8px;
            color: var(--k-ink-600); text-decoration: none; background: #fff; }
.gia-page:hover { border-color: var(--k-lapis-500); color: var(--k-lapis-700); }
.gia-page.is-active { background: var(--k-lapis-700); color: #fff; border-color: var(--k-lapis-700); }
.gia-page.is-disabled { opacity: .4; pointer-events: none; }
.gia-page-gap { padding: .28rem .2rem; color: var(--k-ink-400); }

.gia-compare-bar { position: fixed; inset-block-end: 1.1rem; inset-inline-end: 1.1rem;
                   display: flex; align-items: center; gap: .7rem; z-index: 30;
                   background: #fff; border: 1px solid var(--k-sand-200);
                   border-radius: 99px; padding: .5rem .8rem; box-shadow: var(--n24-shadow-md); }

.gia-detail-head { display: flex; justify-content: space-between; align-items: flex-start;
                   gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.gia-detail-eyebrow { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-bottom: .35rem; }
.gia-detail-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.gia-detail-sub { color: var(--k-ink-600); font-size: .85rem; margin: .2rem 0 0; }
.gia-detail-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.gia-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; margin-bottom: 1rem; }
.gia-fact { background: #fff; border: 1px solid var(--k-sand-200); border-radius: var(--n24-radius-sm);
            padding: .6rem .8rem; display: flex; flex-direction: column; gap: .2rem; }
.gia-fact span { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--k-ink-400); }
.gia-fact strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
.gia-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .95rem; }
.gia-fields { margin: 0; }
.gia-field-row { padding: .6rem 0; border-bottom: 1px solid var(--k-sand-100); }
.gia-field-row:last-child { border-bottom: none; }
.gia-field-row dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
                    color: var(--k-turquoise-600); font-weight: 600; margin-bottom: .2rem; }
.gia-field-row dd { margin: 0; font-size: .9rem; line-height: 1.6; }

.gia-src { font-size: .68rem; font-weight: 600; padding: .12rem .45rem; border-radius: 99px; }
.gia-src-workbook { background: #E4F5EC; color: #14764C; }
.gia-src-ai { background: #FBF0DC; color: #8A5B10; }
.gia-src-manual { background: #E6EDFB; color: #24418F; }

.gia-tools { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.gia-tool-btn { width: 100%; border: 1px solid var(--k-sand-200); background: #fff;
                border-radius: var(--n24-radius-sm); padding: .45rem .55rem;
                font-size: .8rem; color: var(--k-ink-900); cursor: pointer; }
.gia-tool-btn:hover { border-color: var(--k-lapis-500); color: var(--k-lapis-700); }
.gia-translate { display: flex; align-items: center; gap: .35rem; margin-top: .5rem; }
.gia-translate select { max-width: 76px; }
.gia-arrow { color: var(--k-ink-400); }
.gia-saved { border-top: 1px solid var(--k-sand-100); padding: .5rem 0; }
.gia-saved summary { cursor: pointer; font-size: .84rem; font-weight: 600; }
.gia-saved-meta { font-weight: 400; color: var(--k-ink-400); font-size: .74rem; }
.gia-saved-text { white-space: pre-wrap; font-size: .8rem; background: var(--k-sand-50);
                  border-radius: var(--n24-radius-sm); padding: .6rem .7rem; margin: .5rem 0 0;
                  font-family: inherit; }
.gia-locale-row { display: flex; align-items: center; gap: .5rem; padding: .35rem 0;
                  border-bottom: 1px solid var(--k-sand-100); font-size: .82rem; }
.gia-locale-row:last-child { border-bottom: none; }
.gia-locale-code { font-weight: 700; min-width: 26px; }
.gia-locale-picker { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.gia-locale-opt { position: relative; }
.gia-locale-opt input { position: absolute; opacity: 0; }
.gia-locale-opt span { display: inline-block; padding: .3rem .8rem; border-radius: 99px;
                       border: 1px solid var(--k-sand-200); font-size: .8rem; cursor: pointer; }
.gia-locale-opt.is-active span { background: var(--k-lapis-700); color: #fff; border-color: var(--k-lapis-700); }

.gia-badge-preview { display: inline-flex; align-items: center; gap: .35rem;
                     background: #FBF0DC; color: #8A5B10; font-size: .74rem; font-weight: 700;
                     padding: .2rem .6rem; border-radius: 99px; text-transform: uppercase; }
.gia-alert-note { display: flex; align-items: flex-start; gap: .55rem; background: var(--k-sand-50);
                  border: 1px solid var(--k-sand-200); color: var(--k-ink-600);
                  font-size: .82rem; border-radius: var(--n24-radius-sm); }
.gia-preview-list { margin: 0; padding-inline-start: 1.1rem; font-size: .88rem; line-height: 1.7; }
.gia-source-list { font-size: .78rem; color: var(--k-ink-600); margin: 0; }
.gia-preview-actions { display: flex; gap: .5rem; align-items: center; }
.gia-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.gia-compare-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.gia-compare-table th { font-size: .76rem; color: var(--k-ink-600); vertical-align: top; }
.gia-compare-table td { font-size: .84rem; vertical-align: top; }
.gia-compare-cell { max-width: 260px; }

@media (max-width: 1200px) {
  .gia-kpis, .gia-grid, .gia-facts { grid-template-columns: repeat(2, 1fr); }
  .gia-filter-grid { grid-template-columns: repeat(3, 1fr); }
  .gia-detail-grid { grid-template-columns: 1fr; }
  .gia-form-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .gia-kpis, .gia-grid, .gia-facts, .gia-filter-grid,
  .gia-form-grid, .gia-compare-picker { grid-template-columns: 1fr; }
  .gia-field-wide { grid-column: auto; }
  .gia-tabs { overflow-x: auto; }
  .gia-tools { grid-template-columns: 1fr; }
  .gia-head-top { flex-direction: column; align-items: stretch; }
}
