/* ==========================================================================
   NixPay Design System
   A Supreonix product.
   Clean, professional fintech SaaS. White/light-grey surfaces, deep navy
   typography, blue accent, subtle borders, restrained shadows.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --np-blue-50:  #eff5ff;
  --np-blue-100: #dbe8fe;
  --np-blue-200: #bfd6fe;
  --np-blue-300: #93bbfd;
  --np-blue-400: #6096fa;
  --np-blue-500: #3b76f6;
  --np-blue-600: #2559e8;
  --np-blue-700: #1d45d4;
  --np-blue-800: #1e3aac;
  --np-blue-900: #1e3588;

  --np-navy-500: #3d4a63;
  --np-navy-600: #2b3550;
  --np-navy-700: #1c2438;
  --np-navy-800: #141a29;
  --np-navy-900: #0d111c;

  /* Neutrals */
  --np-white: #ffffff;
  --np-grey-25:  #fcfcfd;
  --np-grey-50:  #f8f9fb;
  --np-grey-100: #f1f3f7;
  --np-grey-200: #e6e9ef;
  --np-grey-300: #d3d8e2;
  --np-grey-400: #a8b0c0;
  --np-grey-500: #737e93;
  --np-grey-600: #525c70;

  /* Semantic */
  --np-green-50:  #e9f9f0;
  --np-green-500: #12a150;
  --np-green-700: #0b6b36;
  --np-amber-50:  #fff7e6;
  --np-amber-500: #d98b00;
  --np-amber-700: #8a5800;
  --np-red-50:    #fdecec;
  --np-red-500:   #dc2b2b;
  --np-red-700:   #9c1c1c;

  /* Text */
  --np-text:        var(--np-navy-800);
  --np-text-soft:   var(--np-navy-500);
  --np-text-muted:  var(--np-grey-500);
  --np-text-invert: var(--np-white);

  /* Surfaces */
  --np-bg:        var(--np-grey-50);
  --np-surface:   var(--np-white);
  --np-surface-2: var(--np-grey-25);

  /* Borders */
  --np-border:        var(--np-grey-200);
  --np-border-strong: var(--np-grey-300);

  /* Radii */
  --np-r-sm: 4px;
  --np-r-md: 6px;
  --np-r-lg: 8px;
  --np-r-xl: 12px;

  /* Shadows (restrained) */
  --np-shadow-xs: 0 1px 2px rgba(20, 26, 41, 0.05);
  --np-shadow-sm: 0 1px 3px rgba(20, 26, 41, 0.07), 0 1px 2px rgba(20, 26, 41, 0.04);
  --np-shadow-md: 0 4px 12px rgba(20, 26, 41, 0.08);
  --np-shadow-lg: 0 12px 32px rgba(20, 26, 41, 0.12);

  /* Spacing */
  --np-s1: 4px;  --np-s2: 8px;  --np-s3: 12px; --np-s4: 16px;
  --np-s5: 20px; --np-s6: 24px; --np-s8: 32px; --np-s10: 40px; --np-s12: 48px;

  /* Layout */
  --np-sidebar-w: 244px;
  --np-topbar-h: 60px;

  /* Type */
  --np-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
             "Helvetica Neue", Arial, sans-serif;
  --np-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
             "Liberation Mono", monospace;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--np-font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--np-text);
  background: var(--np-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.3; letter-spacing: -0.011em; }
p { margin: 0 0 var(--np-s4); }
a { color: var(--np-blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font: inherit; }
code, pre, kbd { font-family: var(--np-mono); font-size: 0.9em; }
hr { border: 0; border-top: 1px solid var(--np-border); margin: var(--np-s6) 0; }

/* --- Typography scale --------------------------------------------------- */
.np-h1 { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; }
.np-h2 { font-size: 21px; font-weight: 620; letter-spacing: -0.015em; }
.np-h3 { font-size: 16px; font-weight: 600; }
.np-h4 { font-size: 14px; font-weight: 600; }
.np-subtle { color: var(--np-text-muted); }
.np-soft { color: var(--np-text-soft); }
.np-small { font-size: 12.5px; }
.np-tiny { font-size: 11.5px; }
.np-mono { font-family: var(--np-mono); }
.np-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   Application shell
   ========================================================================== */
.np-app { display: flex; min-height: 100vh; }

/* --- Sidebar ------------------------------------------------------------ */
.np-sidebar {
  width: var(--np-sidebar-w);
  flex: 0 0 var(--np-sidebar-w);
  background: var(--np-surface);
  border-right: 1px solid var(--np-border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.np-sidebar__brand {
  height: var(--np-topbar-h);
  display: flex;
  align-items: center;
  gap: var(--np-s3);
  padding: 0 var(--np-s5);
  border-bottom: 1px solid var(--np-border);
  flex: 0 0 auto;
}
.np-logo { display: flex; align-items: center; gap: var(--np-s2); font-weight: 680; letter-spacing: -0.02em; font-size: 16px; color: var(--np-navy-800); }
.np-logo:hover { text-decoration: none; }
.np-logo__mark {
  width: 26px; height: 26px; border-radius: var(--np-r-md);
  background: linear-gradient(150deg, var(--np-blue-500), var(--np-blue-700));
  color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: -0.03em;
}
.np-logo__mark--lg { width: 34px; height: 34px; font-size: 16px; border-radius: var(--np-r-lg); }
.np-sidebar__nav { padding: var(--np-s4) var(--np-s3) var(--np-s8); flex: 1 1 auto; }
.np-navgroup { margin-bottom: var(--np-s5); }
.np-navgroup__title {
  padding: 0 var(--np-s3) var(--np-s2);
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--np-grey-400);
}
.np-navlink {
  display: flex; align-items: center; gap: var(--np-s3);
  padding: 7px var(--np-s3);
  border-radius: var(--np-r-md);
  color: var(--np-navy-600);
  font-weight: 500;
  margin-bottom: 1px;
}
.np-navlink:hover { background: var(--np-grey-100); text-decoration: none; color: var(--np-navy-800); }
.np-navlink.is-active { background: var(--np-blue-50); color: var(--np-blue-700); font-weight: 600; }
.np-navlink__icon { width: 16px; height: 16px; flex: 0 0 16px; opacity: 0.75; }
.np-navlink.is-active .np-navlink__icon { opacity: 1; }
.np-navlink__badge {
  margin-left: auto; font-size: 10.5px; font-weight: 600;
  background: var(--np-grey-200); color: var(--np-grey-600);
  border-radius: 999px; padding: 1px 7px;
}
.np-sidebar__foot { padding: var(--np-s4) var(--np-s5); border-top: 1px solid var(--np-border); font-size: 11.5px; color: var(--np-text-muted); }

/* --- Main column -------------------------------------------------------- */
.np-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

/* --- Topbar ------------------------------------------------------------- */
.np-topbar {
  height: var(--np-topbar-h);
  flex: 0 0 auto;
  background: var(--np-surface);
  border-bottom: 1px solid var(--np-border);
  display: flex;
  align-items: center;
  gap: var(--np-s4);
  padding: 0 var(--np-s6);
  position: sticky; top: 0; z-index: 30;
}
.np-topbar__title { font-size: 14.5px; font-weight: 620; }
.np-breadcrumb { display: flex; align-items: center; gap: var(--np-s2); font-size: 13px; color: var(--np-text-muted); }
.np-breadcrumb a { color: var(--np-text-muted); }
.np-breadcrumb a:hover { color: var(--np-blue-600); }
.np-topbar__spacer { flex: 1 1 auto; }
.np-topbar__actions { display: flex; align-items: center; gap: var(--np-s3); }

/* Environment switcher */
.np-envswitch { display: inline-flex; background: var(--np-grey-100); border: 1px solid var(--np-border); border-radius: 999px; padding: 2px; }
.np-envswitch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 4px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--np-text-muted);
}
.np-envswitch button.is-on { background: var(--np-surface); color: var(--np-navy-800); box-shadow: var(--np-shadow-xs); }
.np-envswitch button.is-on[data-env="live"] { color: var(--np-green-700); }
.np-envswitch button.is-on[data-env="sandbox"] { color: var(--np-amber-700); }

/* Icon button */
.np-iconbtn {
  width: 34px; height: 34px; border-radius: var(--np-r-md);
  border: 1px solid transparent; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--np-text-soft);
  position: relative;
}
.np-iconbtn:hover { background: var(--np-grey-100); color: var(--np-navy-800); }
.np-iconbtn__dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--np-blue-500); border: 2px solid var(--np-surface); }

/* Avatar + profile menu */
.np-profile { position: relative; }
.np-profile__btn { display: flex; align-items: center; gap: var(--np-s2); border: 1px solid var(--np-border); background: var(--np-surface); border-radius: 999px; padding: 3px 10px 3px 3px; cursor: pointer; }
.np-profile__btn:hover { background: var(--np-grey-50); }
.np-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--np-blue-100); color: var(--np-blue-700);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 650;
}
.np-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 224px; background: var(--np-surface);
  border: 1px solid var(--np-border); border-radius: var(--np-r-lg);
  box-shadow: var(--np-shadow-lg); padding: var(--np-s2); z-index: 50;
  display: none;
}
.np-menu.is-open { display: block; }
.np-menu__head { padding: var(--np-s2) var(--np-s3); border-bottom: 1px solid var(--np-border); margin-bottom: var(--np-s2); }
.np-menu__item { display: block; padding: 7px var(--np-s3); border-radius: var(--np-r-md); color: var(--np-navy-600); font-size: 13px; }
.np-menu__item:hover { background: var(--np-grey-100); text-decoration: none; }
.np-menu__item--danger { color: var(--np-red-700); }

/* --- Content ------------------------------------------------------------ */
.np-content { padding: var(--np-s8); flex: 1 1 auto; width: 100%; max-width: 1320px; margin: 0 auto; }
.np-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--np-s4); margin-bottom: var(--np-s6); flex-wrap: wrap; }
.np-page-head__text p { margin: var(--np-s2) 0 0; color: var(--np-text-muted); max-width: 68ch; }
.np-page-head__actions { display: flex; gap: var(--np-s2); flex-wrap: wrap; }

/* ==========================================================================
   Components
   ========================================================================== */

/* --- Buttons ------------------------------------------------------------ */
.np-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--np-s2);
  height: 36px; padding: 0 15px;
  border-radius: var(--np-r-md);
  border: 1px solid var(--np-border-strong);
  background: var(--np-surface); color: var(--np-navy-700);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  white-space: nowrap; text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.np-btn:hover { background: var(--np-grey-50); text-decoration: none; }
.np-btn:focus-visible { outline: 2px solid var(--np-blue-400); outline-offset: 1px; }
.np-btn--primary { background: var(--np-blue-600); border-color: var(--np-blue-600); color: #fff; }
.np-btn--primary:hover { background: var(--np-blue-700); border-color: var(--np-blue-700); }
.np-btn--dark { background: var(--np-navy-800); border-color: var(--np-navy-800); color: #fff; }
.np-btn--dark:hover { background: var(--np-navy-700); }
.np-btn--ghost { border-color: transparent; background: transparent; }
.np-btn--ghost:hover { background: var(--np-grey-100); }
.np-btn--danger { color: var(--np-red-700); border-color: var(--np-border-strong); }
.np-btn--danger:hover { background: var(--np-red-50); border-color: var(--np-red-500); }
.np-btn--sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.np-btn--lg { height: 44px; padding: 0 22px; font-size: 15px; }
.np-btn--block { width: 100%; }
.np-btn[disabled], .np-btn.is-disabled { opacity: 0.55; cursor: not-allowed; }

/* --- Cards -------------------------------------------------------------- */
.np-card {
  background: var(--np-surface);
  border: 1px solid var(--np-border);
  border-radius: var(--np-r-lg);
  box-shadow: var(--np-shadow-xs);
}
.np-card__head { padding: var(--np-s5) var(--np-s5) var(--np-s3); display: flex; align-items: center; justify-content: space-between; gap: var(--np-s3); flex-wrap: wrap; }
.np-card__head h3 { font-size: 15px; }
.np-card__head p { margin: 2px 0 0; font-size: 12.5px; color: var(--np-text-muted); }
.np-card__body { padding: var(--np-s5); }
.np-card__body--flush { padding: 0; }
.np-card__foot { padding: var(--np-s3) var(--np-s5); border-top: 1px solid var(--np-border); background: var(--np-grey-25); border-radius: 0 0 var(--np-r-lg) var(--np-r-lg); }

/* --- Stat cards --------------------------------------------------------- */
.np-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--np-s4); }
.np-stat { background: var(--np-surface); border: 1px solid var(--np-border); border-radius: var(--np-r-lg); padding: var(--np-s5); box-shadow: var(--np-shadow-xs); }
.np-stat__label { font-size: 12.5px; font-weight: 550; color: var(--np-text-muted); display: flex; align-items: center; gap: var(--np-s2); }
.np-stat__value { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; margin-top: var(--np-s2); font-variant-numeric: tabular-nums; }
.np-stat__meta { font-size: 12px; color: var(--np-text-muted); margin-top: var(--np-s1); }
.np-stat__delta { font-weight: 600; }
.np-stat__delta--up { color: var(--np-green-700); }
.np-stat__delta--down { color: var(--np-red-700); }

/* --- Tables ------------------------------------------------------------- */
.np-table-wrap { overflow-x: auto; }
.np-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.np-table thead th {
  text-align: left; font-size: 11.5px; font-weight: 620; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--np-text-muted);
  padding: var(--np-s3) var(--np-s4); border-bottom: 1px solid var(--np-border);
  background: var(--np-grey-25); white-space: nowrap;
}
.np-table tbody td { padding: var(--np-s3) var(--np-s4); border-bottom: 1px solid var(--np-border); vertical-align: middle; }
.np-table tbody tr:last-child td { border-bottom: 0; }
.np-table tbody tr:hover { background: var(--np-grey-25); }
.np-table .np-num { text-align: right; font-variant-numeric: tabular-nums; }
.np-table__ref { font-family: var(--np-mono); font-size: 12.5px; color: var(--np-navy-700); font-weight: 550; }
.np-table__empty { text-align: center; padding: var(--np-s12) var(--np-s4); color: var(--np-text-muted); }

/* --- Badges ------------------------------------------------------------- */
.np-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 620; line-height: 1;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.np-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.np-badge--ok    { background: var(--np-green-50); color: var(--np-green-700); border-color: #bfe6cf; }
.np-badge--warn  { background: var(--np-amber-50); color: var(--np-amber-700); border-color: #f0dcb0; }
.np-badge--bad   { background: var(--np-red-50);   color: var(--np-red-700);   border-color: #f3c7c7; }
.np-badge--muted { background: var(--np-grey-100); color: var(--np-grey-600);  border-color: var(--np-grey-200); }
.np-badge--blue  { background: var(--np-blue-50);  color: var(--np-blue-700);  border-color: var(--np-blue-200); }
.np-badge--plain::before { display: none; }

/* --- Forms -------------------------------------------------------------- */
.np-field { margin-bottom: var(--np-s4); }
.np-label { display: block; font-size: 13px; font-weight: 580; margin-bottom: var(--np-s2); color: var(--np-navy-700); }
.np-label__hint { font-weight: 400; color: var(--np-text-muted); }
.np-input, .np-select, .np-textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--np-border-strong); border-radius: var(--np-r-md);
  background: var(--np-surface); color: var(--np-text); font-size: 14px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.np-textarea { min-height: 88px; resize: vertical; }
.np-input:focus, .np-select:focus, .np-textarea:focus {
  outline: none; border-color: var(--np-blue-500);
  box-shadow: 0 0 0 3px var(--np-blue-100);
}
.np-input::placeholder { color: var(--np-grey-400); }
.np-help { font-size: 12px; color: var(--np-text-muted); margin-top: var(--np-s1); }
.np-error-text { font-size: 12.5px; color: var(--np-red-700); margin-top: var(--np-s1); }
.np-input-group { display: flex; }
.np-input-group .np-input { border-radius: var(--np-r-md) 0 0 var(--np-r-md); }
.np-input-group .np-btn { border-radius: 0 var(--np-r-md) var(--np-r-md) 0; border-left: 0; height: auto; }
.np-fieldset { border: 1px solid var(--np-border); border-radius: var(--np-r-lg); padding: var(--np-s5); margin-bottom: var(--np-s5); }
.np-fieldset legend { font-size: 13px; font-weight: 620; padding: 0 var(--np-s2); }
.np-check { display: flex; align-items: flex-start; gap: var(--np-s2); font-size: 13.5px; }
.np-check input { margin-top: 3px; }

/* --- Alerts ------------------------------------------------------------- */
.np-alert { display: flex; gap: var(--np-s3); padding: var(--np-s3) var(--np-s4); border-radius: var(--np-r-md); font-size: 13.5px; margin-bottom: var(--np-s4); border: 1px solid; }
.np-alert--info { background: var(--np-blue-50); border-color: var(--np-blue-200); color: var(--np-blue-800); }
.np-alert--ok   { background: var(--np-green-50); border-color: #bfe6cf; color: var(--np-green-700); }
.np-alert--warn { background: var(--np-amber-50); border-color: #f0dcb0; color: var(--np-amber-700); }
.np-alert--error{ background: var(--np-red-50); border-color: #f3c7c7; color: var(--np-red-700); }
.np-alert__title { font-weight: 620; }

/* --- Tabs --------------------------------------------------------------- */
.np-tabs { display: flex; gap: var(--np-s1); border-bottom: 1px solid var(--np-border); margin-bottom: var(--np-s5); overflow-x: auto; }
.np-tab {
  padding: var(--np-s3) var(--np-s4); font-size: 13.5px; font-weight: 570;
  color: var(--np-text-muted); border-bottom: 2px solid transparent;
  background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer;
  white-space: nowrap;
}
.np-tab:hover { color: var(--np-navy-700); }
.np-tab.is-active { color: var(--np-blue-700); border-bottom-color: var(--np-blue-600); font-weight: 620; }
.np-tabpanel { display: none; }
.np-tabpanel.is-active { display: block; }

/* --- Code / secret reveal ---------------------------------------------- */
.np-code {
  background: var(--np-navy-900); color: #e6ebf5;
  border-radius: var(--np-r-md); padding: var(--np-s4);
  font-family: var(--np-mono); font-size: 12.5px; line-height: 1.7;
  overflow-x: auto; position: relative;
}
.np-code--light { background: var(--np-grey-100); color: var(--np-navy-800); border: 1px solid var(--np-border); }
.np-code .c-key { color: #7fb2ff; }
.np-code .c-str { color: #7ee2a8; }
.np-code .c-com { color: #8b98b0; }
.np-code .c-fn  { color: #ffd479; }
.np-secret {
  display: flex; align-items: center; gap: var(--np-s3);
  background: var(--np-navy-900); color: #fff; border-radius: var(--np-r-md);
  padding: var(--np-s3) var(--np-s4); font-family: var(--np-mono); font-size: 13px;
}
.np-secret code { flex: 1 1 auto; overflow-x: auto; white-space: nowrap; }
.np-copy { border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; border-radius: var(--np-r-sm); padding: 4px 9px; font-size: 12px; cursor: pointer; }
.np-copy:hover { background: rgba(255,255,255,0.18); }
.np-copy--light { border-color: var(--np-border-strong); background: var(--np-surface); color: var(--np-navy-700); }
.np-copy--light:hover { background: var(--np-grey-100); }

/* --- Charts ------------------------------------------------------------- */
.np-chart { width: 100%; height: 240px; display: block; }
.np-legend { display: flex; gap: var(--np-s4); flex-wrap: wrap; font-size: 12.5px; color: var(--np-text-soft); }
.np-legend__item { display: flex; align-items: center; gap: var(--np-s2); }
.np-legend__swatch { width: 10px; height: 10px; border-radius: 3px; }

/* --- Empty state -------------------------------------------------------- */
.np-empty { text-align: center; padding: var(--np-s12) var(--np-s6); }
.np-empty__icon { width: 44px; height: 44px; margin: 0 auto var(--np-s4); border-radius: var(--np-r-lg); background: var(--np-grey-100); display: grid; place-items: center; color: var(--np-grey-500); }
.np-empty h3 { font-size: 15px; margin-bottom: var(--np-s2); }
.np-empty p { color: var(--np-text-muted); max-width: 46ch; margin: 0 auto var(--np-s4); }

/* --- Grids -------------------------------------------------------------- */
.np-grid { display: grid; gap: var(--np-s4); }
.np-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.np-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.np-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.np-grid--sidebar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.np-stack { display: flex; flex-direction: column; gap: var(--np-s4); }
.np-row { display: flex; gap: var(--np-s3); align-items: center; flex-wrap: wrap; }
.np-row--between { justify-content: space-between; }
.np-mt-4 { margin-top: var(--np-s4); } .np-mt-6 { margin-top: var(--np-s6); }
.np-mb-4 { margin-bottom: var(--np-s4); } .np-mb-6 { margin-bottom: var(--np-s6); }

/* --- Definition list ---------------------------------------------------- */
.np-dl { display: grid; grid-template-columns: 190px 1fr; gap: var(--np-s3) var(--np-s4); font-size: 13.5px; }
.np-dl dt { color: var(--np-text-muted); }
.np-dl dd { margin: 0; }

/* --- Timeline ----------------------------------------------------------- */
.np-timeline { list-style: none; margin: 0; padding: 0; }
.np-timeline li { position: relative; padding: 0 0 var(--np-s5) var(--np-s6); border-left: 1px solid var(--np-border); }
.np-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.np-timeline li::before { content: ""; position: absolute; left: -5px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--np-grey-300); border: 2px solid var(--np-surface); }
.np-timeline li.is-ok::before { background: var(--np-green-500); }
.np-timeline li.is-bad::before { background: var(--np-red-500); }
.np-timeline li.is-warn::before { background: var(--np-amber-500); }
.np-timeline__title { font-weight: 600; font-size: 13.5px; }
.np-timeline__meta { font-size: 12px; color: var(--np-text-muted); }

/* --- Progress ----------------------------------------------------------- */
.np-progress { height: 7px; background: var(--np-grey-200); border-radius: 999px; overflow: hidden; }
.np-progress__bar { height: 100%; background: var(--np-blue-500); border-radius: 999px; }
.np-progress__bar--ok { background: var(--np-green-500); }

/* --- Drawer / overlay (mobile nav) ------------------------------------- */
.np-overlay { position: fixed; inset: 0; background: rgba(13,17,28,0.45); z-index: 60; display: none; }
.np-overlay.is-open { display: block; }
.np-hamburger { display: none; }

/* ==========================================================================
   Public marketing site
   ========================================================================== */
.np-public { background: var(--np-white); }
.np-nav {
  height: 66px; display: flex; align-items: center; gap: var(--np-s8);
  padding: 0 var(--np-s8); border-bottom: 1px solid var(--np-border);
  position: sticky; top: 0; background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px); z-index: 40;
}
.np-nav__links { display: flex; gap: var(--np-s6); margin-left: var(--np-s4); }
.np-nav__links a { color: var(--np-navy-600); font-size: 14px; font-weight: 520; }
.np-nav__links a:hover { color: var(--np-blue-600); text-decoration: none; }
.np-nav__spacer { flex: 1 1 auto; }
.np-wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--np-s8); }
.np-hero { padding: 88px 0 64px; }
.np-hero__eyebrow { display: inline-flex; align-items: center; gap: var(--np-s2); font-size: 12.5px; font-weight: 600; color: var(--np-blue-700); background: var(--np-blue-50); border: 1px solid var(--np-blue-200); border-radius: 999px; padding: 5px 12px; margin-bottom: var(--np-s5); }
.np-hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.032em; font-weight: 680; max-width: 17ch; }
.np-hero__lead { font-size: 18px; color: var(--np-text-soft); max-width: 60ch; margin: var(--np-s5) 0 var(--np-s8); line-height: 1.6; }
.np-hero__actions { display: flex; gap: var(--np-s3); flex-wrap: wrap; }
.np-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.np-hero__panel { background: var(--np-navy-900); border-radius: var(--np-r-xl); box-shadow: var(--np-shadow-lg); overflow: hidden; }
.np-hero__panel-head { display: flex; align-items: center; gap: var(--np-s2); padding: 11px var(--np-s4); border-bottom: 1px solid rgba(255,255,255,0.08); }
.np-hero__panel-head span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.np-hero__panel-body { padding: var(--np-s5); }
.np-section { padding: 72px 0; border-top: 1px solid var(--np-border); }
.np-section__title { font-size: 30px; letter-spacing: -0.024em; font-weight: 650; }
.np-section__lead { font-size: 16px; color: var(--np-text-muted); max-width: 62ch; margin-top: var(--np-s3); }
.np-feature { padding: var(--np-s6) 0; }
.np-feature__icon { width: 38px; height: 38px; border-radius: var(--np-r-md); background: var(--np-blue-50); border: 1px solid var(--np-blue-200); display: grid; place-items: center; color: var(--np-blue-700); margin-bottom: var(--np-s4); }
.np-feature h3 { font-size: 15.5px; margin-bottom: var(--np-s2); }
.np-feature p { color: var(--np-text-muted); font-size: 14px; margin: 0; }
.np-pillars { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--np-s5); }
.np-pillar { border: 1px solid var(--np-border); border-radius: var(--np-r-lg); padding: var(--np-s5); }
.np-pillar h4 { font-size: 14px; margin-bottom: var(--np-s2); }
.np-pillar p { font-size: 13px; color: var(--np-text-muted); margin: 0; }
.np-footer { border-top: 1px solid var(--np-border); padding: var(--np-s10) 0; margin-top: var(--np-s10); color: var(--np-text-muted); font-size: 13px; }
.np-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--np-s8); }
.np-footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--np-grey-400); margin-bottom: var(--np-s3); }
.np-footer a { display: block; color: var(--np-text-muted); margin-bottom: var(--np-s2); font-size: 13px; }
.np-footer a:hover { color: var(--np-blue-600); text-decoration: none; }

/* Auth screens */
.np-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.np-auth__aside { background: var(--np-navy-900); color: #fff; padding: var(--np-s10); display: flex; flex-direction: column; justify-content: space-between; }
.np-auth__aside h2 { font-size: 26px; letter-spacing: -0.02em; max-width: 22ch; line-height: 1.25; }
.np-auth__aside p { color: rgba(255,255,255,0.66); font-size: 14.5px; }
.np-auth__points { list-style: none; padding: 0; margin: var(--np-s6) 0 0; }
.np-auth__points li { display: flex; gap: var(--np-s3); align-items: flex-start; color: rgba(255,255,255,0.8); font-size: 13.5px; margin-bottom: var(--np-s3); }
.np-auth__main { display: flex; align-items: center; justify-content: center; padding: var(--np-s10) var(--np-s6); }
.np-auth__form { width: 100%; max-width: 396px; }

/* Docs */
.np-docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--np-s10); max-width: 1160px; margin: 0 auto; padding: var(--np-s8); }
.np-docs__nav { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.np-docs__nav h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--np-grey-400); margin: var(--np-s5) 0 var(--np-s2); }
.np-docs__nav a { display: block; padding: 5px var(--np-s3); border-radius: var(--np-r-md); color: var(--np-text-soft); font-size: 13.5px; border-left: 2px solid transparent; }
.np-docs__nav a:hover { background: var(--np-grey-100); text-decoration: none; }
.np-docs__nav a.is-active { color: var(--np-blue-700); border-left-color: var(--np-blue-600); background: var(--np-blue-50); font-weight: 600; }
.np-docs__body { max-width: 760px; }
.np-docs__body h1 { font-size: 32px; letter-spacing: -0.024em; margin-bottom: var(--np-s4); }
.np-docs__body h2 { font-size: 21px; margin: var(--np-s10) 0 var(--np-s4); padding-top: var(--np-s4); border-top: 1px solid var(--np-border); }
.np-docs__body h3 { font-size: 16px; margin: var(--np-s6) 0 var(--np-s3); }
.np-docs__body p, .np-docs__body li { color: var(--np-text-soft); font-size: 14.5px; line-height: 1.75; }
.np-docs__body ul { padding-left: var(--np-s5); }
.np-docs__body li { margin-bottom: var(--np-s2); }
.np-docs__body table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: var(--np-s5) 0; }
.np-docs__body th, .np-docs__body td { text-align: left; padding: var(--np-s3); border: 1px solid var(--np-border); }
.np-docs__body th { background: var(--np-grey-25); font-weight: 620; }
.np-endpoint { display: inline-flex; align-items: center; gap: var(--np-s2); font-family: var(--np-mono); font-size: 13px; border: 1px solid var(--np-border); border-radius: var(--np-r-md); padding: 6px 12px; background: var(--np-grey-25); margin: var(--np-s3) 0; }
.np-method { font-weight: 700; font-size: 11px; padding: 2px 7px; border-radius: var(--np-r-sm); }
.np-method--post { background: var(--np-green-50); color: var(--np-green-700); }
.np-method--get { background: var(--np-blue-50); color: var(--np-blue-700); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .np-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-hero__grid { grid-template-columns: 1fr; gap: var(--np-s10); }
  .np-hero h1 { font-size: 42px; }
  .np-pillars { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .np-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .np-sidebar {
    position: fixed; left: 0; top: 0; z-index: 70;
    transform: translateX(-100%); transition: transform 0.2s ease;
    box-shadow: var(--np-shadow-lg);
  }
  .np-sidebar.is-open { transform: translateX(0); }
  .np-hamburger { display: grid; }
  .np-content { padding: var(--np-s5); }
  .np-topbar { padding: 0 var(--np-s5); }
  .np-nav { padding: 0 var(--np-s5); }
  .np-nav__links { display: none; }
  .np-grid--2, .np-grid--3, .np-grid--sidebar { grid-template-columns: 1fr; }
  .np-auth { grid-template-columns: 1fr; }
  .np-auth__aside { display: none; }
  .np-docs { grid-template-columns: 1fr; }
  .np-docs__nav { position: static; max-height: none; }
  .np-dl { grid-template-columns: 1fr; gap: var(--np-s1) 0; }
  .np-dl dd { margin-bottom: var(--np-s3); }
}

@media (max-width: 560px) {
  .np-stats { grid-template-columns: 1fr; }
  .np-grid--4 { grid-template-columns: 1fr; }
  .np-hero { padding: 48px 0 32px; }
  .np-hero h1 { font-size: 34px; }
  .np-hero__lead { font-size: 16px; }
  .np-section { padding: 48px 0; }
  .np-pillars { grid-template-columns: 1fr; }
  .np-footer__grid { grid-template-columns: 1fr; }
  .np-wrap { padding: 0 var(--np-s5); }
  .np-content { padding: var(--np-s4); }
  .np-page-head { flex-direction: column; }
  .np-page-head__actions { width: 100%; }
  .np-page-head__actions .np-btn { flex: 1 1 auto; }
  .np-stat__value { font-size: 22px; }
}

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