/* NASH V1 Final Full Integrated UI Lock
   Visual target: dark navy enterprise HR command center with cyan/blue NASH logo palette.
   This shell hides legacy stacked layers and renders one stable product UI only. */
:root {
  --nash-bg-0: #020713;
  --nash-bg-1: #041225;
  --nash-bg-2: #071b34;
  --nash-panel: rgba(7, 25, 48, .84);
  --nash-panel-strong: rgba(8, 31, 59, .96);
  --nash-card: rgba(8, 27, 51, .92);
  --nash-line: rgba(49, 221, 255, .23);
  --nash-line-strong: rgba(49, 221, 255, .45);
  --nash-cyan: #35e7ff;
  --nash-blue: #0d8eff;
  --nash-blue-2: #0a5eea;
  --nash-text: #f4fbff;
  --nash-soft: #b9d9ed;
  --nash-muted: #7fa2ba;
  --nash-green: #36df9b;
  --nash-red: #ff5d72;
  --nash-yellow: #ffcc5f;
  --nash-radius-lg: 22px;
  --nash-radius-md: 16px;
  --nash-shadow: 0 24px 70px rgba(0, 0, 0, .36);
  --nash-glow: 0 0 24px rgba(53, 231, 255, .16);
}

html, body { min-height: 100%; }
body.nash-final-reference-ui-active {
  margin: 0 !important;
  color: var(--nash-text) !important;
  background:
    radial-gradient(circle at 11% -4%, rgba(53, 231, 255, .18), transparent 28%),
    radial-gradient(circle at 78% 0%, rgba(10, 94, 234, .23), transparent 33%),
    radial-gradient(circle at 50% 92%, rgba(53, 231, 255, .08), transparent 32%),
    linear-gradient(135deg, #010610 0%, #041225 46%, #020916 100%) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 16px !important;
  letter-spacing: .005em;
}

#appShell.nash-reference-hidden,
body.nash-final-reference-ui-active > #appShell:not(.nash-reference-visible) {
  display: none !important;
}

#nashReferenceApp {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(53,231,255,.045) 0, transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,0));
}

.nrf-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 16px 12px 14px;
  background: linear-gradient(180deg, rgba(2, 9, 20, .98), rgba(4, 20, 38, .96));
  border-right: 1px solid var(--nash-line-strong);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.04), 14px 0 50px rgba(0,0,0,.24);
}
.nrf-sidebar::-webkit-scrollbar { width: 7px; }
.nrf-sidebar::-webkit-scrollbar-thumb { background: rgba(53,231,255,.28); border-radius: 999px; }

.nrf-brand {
  height: 176px;
  width: 142px;
  margin: 2px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(4,18,36,.88), rgba(8,31,59,.72)),
    radial-gradient(circle at 50% 16%, rgba(53,231,255,.18), transparent 52%);
  border: 1px solid rgba(53,231,255,.55);
  box-shadow: inset 0 0 22px rgba(53,231,255,.06), 0 0 28px rgba(53,231,255,.14);
  overflow: hidden;
}
.nrf-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: scale(1.08);
  filter: drop-shadow(0 0 16px rgba(53,231,255,.34));
}

.nrf-nav-section { margin: 13px 0 7px; }
.nrf-nav-title {
  margin: 10px 9px 6px;
  color: #5feeff;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  font-weight: 800;
}
.nrf-nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 13px;
  margin: 4px 0;
  padding: 10px 11px;
  color: #d7effb;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}
.nrf-nav-button:hover { background: rgba(53,231,255,.08); border-color: rgba(53,231,255,.22); }
.nrf-nav-button.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(53,231,255,.27), rgba(13,142,255,.18));
  border-color: rgba(53,231,255,.48);
  box-shadow: inset 4px 0 0 var(--nash-cyan), var(--nash-glow);
}
.nrf-nav-button svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .95; }

.nrf-user-card {
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #dff9ff;
  background: rgba(53,231,255,.07);
  border: 1px solid rgba(53,231,255,.24);
}
.nrf-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--nash-cyan), var(--nash-blue));
  color: #02101f;
  font-weight: 900;
}
.nrf-user-card strong { display: block; font-size: 14px; }
.nrf-user-card small { color: var(--nash-soft); font-size: 12px; }

.nrf-main { min-width: 0; padding: 18px 22px 34px; }
.nrf-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -18px -22px 18px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(2, 9, 20, .86);
  border-bottom: 1px solid rgba(53,231,255,.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 42px rgba(0,0,0,.28);
}
.nrf-title-block .nrf-eyebrow { margin: 0 0 5px; color: var(--nash-cyan); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; font-weight: 900; }
.nrf-title-block h1 { margin: 0; font-size: clamp(27px, 2.2vw, 38px); line-height: 1.05; letter-spacing: -.03em; }
.nrf-title-block p { margin: 6px 0 0; color: var(--nash-soft); max-width: 850px; line-height: 1.45; font-size: 15px; }
.nrf-top-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nrf-search { width: min(330px, 28vw); min-width: 230px; height: 42px; padding: 0 14px; border-radius: 13px; border: 1px solid rgba(53,231,255,.32); background: rgba(5,20,38,.88); color: var(--nash-text); outline: none; }
.nrf-search:focus { border-color: rgba(53,231,255,.72); box-shadow: var(--nash-glow); }

.nrf-btn, .nrf-icon-btn {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 13px;
  border: 1px solid rgba(53,231,255,.34);
  background: rgba(8,31,59,.78);
  color: #e8fbff;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}
.nrf-btn:hover, .nrf-icon-btn:hover { border-color: rgba(53,231,255,.72); box-shadow: var(--nash-glow); }
.nrf-btn.primary { color: #02101f; background: linear-gradient(180deg, #61f0ff, #0aa5ff 58%, #0863d0); border-color: rgba(125,242,255,.86); }
.nrf-btn.ghost { background: rgba(255,255,255,.03); }
.nrf-btn.danger { border-color: rgba(255,93,114,.45); background: rgba(255,93,114,.10); color: #ffd9df; }
.nrf-icon-btn { width: 42px; padding: 0; display: grid; place-items: center; }

.nrf-status-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(53,231,255,.17), rgba(13,142,255,.12));
  border: 1px solid rgba(53,231,255,.38);
  color: #effcff;
  box-shadow: inset 0 0 22px rgba(53,231,255,.05);
}
.nrf-status-strip span { font-size: 13px; font-weight: 800; }
.nrf-status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--nash-green); box-shadow: 0 0 14px var(--nash-green); }

.nrf-content { display: grid; gap: 16px; }
.nrf-grid { display: grid; gap: 16px; }
.nrf-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nrf-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nrf-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nrf-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nrf-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.nrf-card, .nrf-hero, .nrf-kpi {
  background: var(--nash-card);
  border: 1px solid var(--nash-line);
  border-radius: var(--nash-radius-lg);
  box-shadow: var(--nash-shadow);
  min-width: 0;
}
.nrf-card { padding: 17px; }
.nrf-hero { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background:
  radial-gradient(circle at 85% 10%, rgba(53,231,255,.13), transparent 34%),
  linear-gradient(180deg, rgba(8, 36, 66, .95), rgba(5, 22, 43, .94)); }
.nrf-hero h2 { margin: 0 0 6px; font-size: clamp(28px, 2vw, 36px); letter-spacing: -.03em; }
.nrf-hero p { margin: 0; color: var(--nash-soft); line-height: 1.45; }
.nrf-hero-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.nrf-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 13px; }
.nrf-card h3, .nrf-card-head h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.nrf-card p, .nrf-card small { color: var(--nash-soft); line-height: 1.45; }
.nrf-card-head p { margin: 5px 0 0; }

.nrf-kpi { padding: 16px; position: relative; overflow: hidden; background:
  radial-gradient(circle at 84% 10%, rgba(53,231,255,.14), transparent 34%),
  linear-gradient(180deg, rgba(7, 45, 76, .95), rgba(4, 26, 50, .96)); }
.nrf-kpi::after { content: ""; position: absolute; width: 86px; height: 86px; border-radius: 50%; right: -22px; top: -28px; background: rgba(53,231,255,.10); }
.nrf-kpi span { display: block; color: #86efff; text-transform: uppercase; letter-spacing: .11em; font-size: 11px; font-weight: 900; }
.nrf-kpi strong { display: block; margin: 8px 0 3px; font-size: clamp(28px, 2.8vw, 42px); line-height: 1; letter-spacing: -.04em; }
.nrf-kpi small { color: var(--nash-soft); font-size: 13px; }
.nrf-kpi.good { border-color: rgba(54,223,155,.42); }
.nrf-kpi.warn { border-color: rgba(255,204,95,.45); }
.nrf-kpi.bad { border-color: rgba(255,93,114,.45); }

.nrf-table-wrap { width: 100%; overflow: auto; border: 1px solid rgba(53,231,255,.14); border-radius: 16px; }
.nrf-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.nrf-table th, .nrf-table td { padding: 12px 13px; text-align: left; border-bottom: 1px solid rgba(53,231,255,.10); vertical-align: top; font-size: 14px; }
.nrf-table th { color: #8ff1ff; text-transform: uppercase; letter-spacing: .11em; font-size: 11px; background: rgba(53,231,255,.045); }
.nrf-table tr:hover td { background: rgba(53,231,255,.045); }
.nrf-table strong { display: block; color: #fff; }
.nrf-table small { display: block; color: var(--nash-muted); margin-top: 3px; }

.nrf-employee-row { cursor: pointer; }
.nrf-mini-avatar { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; margin-right: 10px; vertical-align: middle; background: linear-gradient(135deg, rgba(53,231,255,.94), rgba(13,142,255,.78)); color: #03101f; font-weight: 900; box-shadow: 0 0 18px rgba(53,231,255,.18); }
.nrf-person-cell { display: flex; align-items: center; gap: 10px; }

.nrf-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 5px 9px; border-radius: 999px; background: rgba(53,231,255,.10); border: 1px solid rgba(53,231,255,.25); color: #dffaff; font-size: 12px; font-weight: 800; }
.nrf-badge.good { background: rgba(54,223,155,.11); border-color: rgba(54,223,155,.30); color: #bfffe3; }
.nrf-badge.warn { background: rgba(255,204,95,.12); border-color: rgba(255,204,95,.32); color: #ffe8b0; }
.nrf-badge.bad { background: rgba(255,93,114,.12); border-color: rgba(255,93,114,.32); color: #ffd5dc; }

.nrf-profile-hero { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 18px; border-radius: 24px; border: 1px solid rgba(53,231,255,.24); background: linear-gradient(180deg, rgba(10, 37, 68, .94), rgba(5, 20, 39, .95)); }
.nrf-profile-photo { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; font-size: 32px; font-weight: 900; color: #02101f; background: linear-gradient(135deg, #70f4ff, #0b8fff); box-shadow: 0 0 28px rgba(53,231,255,.24); }
.nrf-profile-hero h2 { margin: 0; font-size: 31px; letter-spacing: -.03em; }
.nrf-profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nrf-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(53,231,255,.15); }
.nrf-tab { padding: 9px 12px; border-radius: 12px; background: rgba(53,231,255,.08); color: #dffaff; font-weight: 800; font-size: 13px; border: 1px solid rgba(53,231,255,.18); }

.nrf-bar-list { display: grid; gap: 12px; }
.nrf-bar-row { display: grid; grid-template-columns: 130px 1fr 58px; gap: 10px; align-items: center; color: var(--nash-soft); font-size: 13px; }
.nrf-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.nrf-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nash-cyan), var(--nash-blue)); box-shadow: 0 0 16px rgba(53,231,255,.20); }
.nrf-chart-bars { height: 220px; display: flex; align-items: end; gap: 12px; padding: 14px 8px 0; }
.nrf-chart-bars div { flex: 1; min-width: 22px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--nash-cyan), var(--nash-blue)); box-shadow: 0 0 16px rgba(53,231,255,.15); position: relative; }
.nrf-chart-bars div span { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); color: var(--nash-muted); font-size: 11px; }
.nrf-donut { width: 142px; height: 142px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto; background: conic-gradient(var(--nash-cyan) var(--pct, 72%), rgba(255,255,255,.09) 0); box-shadow: inset 0 0 0 18px rgba(4,18,34,.96), 0 0 22px rgba(53,231,255,.16); }
.nrf-donut strong { font-size: 26px; }

.nrf-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nrf-action-tile { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; justify-content: center; min-height: 78px; padding: 13px; border-radius: 16px; border: 1px solid rgba(53,231,255,.18); background: rgba(53,231,255,.055); cursor: pointer; color: #e8fbff; }
.nrf-action-tile:hover { border-color: rgba(53,231,255,.62); box-shadow: var(--nash-glow); }
.nrf-action-tile strong { font-size: 14px; }
.nrf-action-tile small { color: var(--nash-soft); }

.nrf-empty, .nrf-error { padding: 18px; border-radius: 18px; border: 1px dashed rgba(53,231,255,.28); background: rgba(53,231,255,.045); color: var(--nash-soft); }
.nrf-error { border-color: rgba(255,93,114,.42); color: #ffd7dc; }

.nrf-toast { position: fixed; right: 20px; bottom: 20px; z-index: 1000; max-width: min(480px, calc(100vw - 40px)); padding: 14px 16px; border-radius: 16px; background: rgba(4,18,34,.96); border: 1px solid rgba(53,231,255,.36); box-shadow: var(--nash-shadow); color: #e8fbff; display: none; }
.nrf-toast.show { display: block; }
.nrf-toast.good { border-color: rgba(54,223,155,.38); }
.nrf-toast.error { border-color: rgba(255,93,114,.44); }

@media (max-width: 1280px) {
  #nashReferenceApp { grid-template-columns: 226px minmax(0, 1fr); }
  .nrf-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nrf-grid.four, .nrf-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nrf-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nrf-brand { width: 132px; height: 166px; }
}
@media (max-width: 940px) {
  #nashReferenceApp { grid-template-columns: 1fr; }
  .nrf-sidebar { position: relative; height: auto; display: block; }
  .nrf-topbar, .nrf-hero, .nrf-profile-hero { flex-direction: column; display: flex; align-items: stretch; }
  .nrf-grid.two, .nrf-grid.three, .nrf-grid.four, .nrf-grid.five, .nrf-kpi-grid { grid-template-columns: 1fr; }
  .nrf-search { width: 100%; }
}


/* Market-ready sales/demo/pricing closeout */
body.nash-market-ready-sales .nrf-brand { width: 160px; height: 196px; }
body.nash-market-ready-sales .nrf-brand img { transform: scale(1.12); }
.nrf-product-hero { min-height: 210px; }
.nrf-pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nrf-price-card { display: flex; flex-direction: column; gap: 12px; min-height: 410px; }
.nrf-price-card .nrf-btn { margin-top: auto; justify-content: center; text-align: center; }
.nrf-price { display: block; font-size: clamp(26px, 2.2vw, 38px); letter-spacing: -.04em; color: #fff; }
.nrf-bullets { margin: 12px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.nrf-bullets li { color: var(--nash-soft); line-height: 1.35; display: flex; gap: 8px; align-items: flex-start; }
.nrf-bullets li::before { content: "✓"; color: var(--nash-cyan); font-weight: 900; }
.nrf-sales-form { display: grid; gap: 12px; }
.nrf-sales-form label { display: grid; gap: 7px; color: #8ff1ff; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.nrf-sales-form input, .nrf-sales-form select { width: 100%; min-height: 44px; border-radius: 13px; border: 1px solid rgba(53,231,255,.30); background: rgba(5,20,38,.88); color: var(--nash-text); padding: 0 12px; outline: none; font-size: 15px; }
.nrf-sales-form input:focus, .nrf-sales-form select:focus { border-color: rgba(53,231,255,.72); box-shadow: var(--nash-glow); }
.nrf-note { padding: 12px; border-radius: 14px; border: 1px solid rgba(53,231,255,.20); background: rgba(53,231,255,.06); color: #dffaff !important; }
@media (max-width: 1400px) { .nrf-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .nrf-pricing-grid { grid-template-columns: 1fr; } }
